Releases: sajari/sdk-react
@sajari/[email protected]
Patch Changes
-
05105918
#803 Thanks @zlatanpham! - There are no changes in the version bump. This aims to release the most recent update in the hooks package when the version 3.13.0 failed to be published by changeset. -
1e7ee9b2
#802 Thanks @wwalser! - chore: bump version of sdk-js used in order to get access to new bug fixes
@sajari/[email protected]
Minor Changes
-
0e0e4712
#794 Thanks @zlatanpham! - Motivation: It’s super useful to have the search UI state synchronizing with the browser URL and we had the functionality internally developed in the search widgets. However, when users build the search UI with React SDK (or JS SDK), they have to develop the feature by themselves and the work could be challenging even for an experienced developer. Thus, the goal of the change is to have the sync URLs functionality as a generic solution in the React SDK so it can be easily used by both our internal development (search-widgets, demo,…) and the outside world.API proposal
The
URLStateSync
should be placed inside theSearchProvider
. It will work out of box with any UI that consumes data from our hook components.<SearchProvider {...}> <URLStateSync /> <YourSearchUI /> </SearchProvider>
By default, it supports state sync for the core params including
q
,filters
,sort
andresultsPerPage
but we can extend other options viaextendedParams
prop:const defaultViewType = 'list'; const [viewType, setViewType] = useState(defaultViewType); <SearchProvider {...}> <URLStateSync /> <YourSearchUI extendedParams={[ { key: 'viewType', value: viewType, defaultValue: defaultViewType, callback: setViewType, }, ]} /> </SearchProvider>
@sajari/[email protected]
Patch Changes
c7193557
#792 Thanks @chidojiro! - Add data-testid for range filter track
@sajari/[email protected]
Patch Changes
-
c7193557
#792 Thanks @chidojiro! - Add data-testid for range filter track -
Updated dependencies [
c7193557
]:- @sajari/[email protected]
@sajari/[email protected]
Patch Changes
c7193557
#792 Thanks @chidojiro! - Add data-testid for range filter track
@sajari/[email protected]
@sajari/[email protected]
@sajari/[email protected]
Minor Changes
b7c398a8
#784 Thanks @JasonBerry! - feat: add ability to pass custom SearchIOAnalytics instance to EventTracking