Skip to content

Releases: sajari/sdk-react

@sajari/react-search-ui@4.17.0

31 May 15:00
207c477
Compare
Choose a tag to compare

Minor Changes

@sajari/react-search-ui@4.16.3

31 May 08:39
149aec0
Compare
Choose a tag to compare

Patch Changes

  • 4ef6dac4 #814 Thanks @wwalser! - chore: all packages have had their version bumped in order to facilitate a new release procedure using modern yarn

  • 6ad2dfb6 #811 Thanks @zlatanpham! - Fix incorrect intial value of viewType

  • Updated dependencies [4ef6dac4, 6ad2dfb6]:

    • @sajari/react-components@1.14.5
    • @sajari/react-hooks@3.13.3
    • @sajari/react-sdk-utils@1.6.5

@sajari/react-sdk-utils@1.6.5

31 May 08:39
149aec0
Compare
Choose a tag to compare

Patch Changes

  • 4ef6dac4 #814 Thanks @wwalser! - chore: all packages have had their version bumped in order to facilitate a new release procedure using modern yarn

  • 6ad2dfb6 #811 Thanks @zlatanpham! - Fix incorrect intial value of viewType

@sajari/react-hooks@3.13.3

31 May 08:39
149aec0
Compare
Choose a tag to compare

Patch Changes

  • 4ef6dac4 #814 Thanks @wwalser! - chore: all packages have had their version bumped in order to facilitate a new release procedure using modern yarn

  • 6ad2dfb6 #811 Thanks @zlatanpham! - Fix incorrect intial value of viewType

  • Updated dependencies [4ef6dac4, 6ad2dfb6]:

    • @sajari/react-sdk-utils@1.6.5

@sajari/react-components@1.14.5

31 May 08:39
149aec0
Compare
Choose a tag to compare

Patch Changes

  • 4ef6dac4 #814 Thanks @wwalser! - chore: all packages have had their version bumped in order to facilitate a new release procedure using modern yarn

  • Updated dependencies [4ef6dac4, 6ad2dfb6]:

    • @sajari/react-sdk-utils@1.6.5

@sajari/react-search-ui@4.16.2

25 May 11:15
fa54b00
Compare
Choose a tag to compare

Patch Changes

  • c235dcc6 #808 Thanks @zlatanpham! - Fix initial value for a filter will be overridden to an empty value if the URL param doesn't exist

  • Updated dependencies [c235dcc6]:

    • @sajari/react-hooks@3.13.2

@sajari/react-hooks@3.13.2

25 May 11:15
fa54b00
Compare
Choose a tag to compare

Patch Changes

  • c235dcc6 #808 Thanks @zlatanpham! - Fix initial value for a filter will be overridden to an empty value if the URL param doesn't exist

@sajari/react-search-ui@4.16.1

24 May 08:01
8a26c4f
Compare
Choose a tag to compare

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.

  • Updated dependencies [05105918, 1e7ee9b2]:

    • @sajari/react-hooks@3.13.1

@sajari/react-search-ui@4.16.0

24 May 06:34
9c10497
Compare
Choose a tag to compare

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 the SearchProvider. 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 and resultsPerPage but we can extend other options via extendedParams prop:

    const defaultViewType = 'list';
    const [viewType, setViewType] = useState(defaultViewType);
    
    <SearchProvider {...}>
      <URLStateSync />
      <YourSearchUI
         extendedParams={[
            {
              key: 'viewType',
              value: viewType,
              defaultValue: defaultViewType,
              callback: setViewType,
            },
          ]}
       />
    </SearchProvider>

Patch Changes

  • Updated dependencies [0e0e4712]:
    • @sajari/react-hooks@3.13.0

@sajari/react-search-ui@4.15.0

24 May 04:36
b99c6c4
Compare
Choose a tag to compare

Minor Changes