@usereactify/search 4.4.4 → 4.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [4.4.5](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.4.4...v4.4.5) (2022-08-08)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * rename "additonalComponentHandles" to "additonalComponentIds" ([d2b3fd3](https://bitbucket.org/usereactify/reactify-search-ui/commit/d2b3fd3a829168ca1150540b32d9cd21c07b397f))
11
+
5
12
  ### [4.4.4](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.4.3...v4.4.4) (2022-08-05)
6
13
 
7
14
 
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@usereactify/search",
3
3
  "description": "React UI library for Reactify Search",
4
- "version": "4.4.4",
4
+ "version": "4.4.5",
5
5
  "license": "MIT",
6
6
  "main": "dist/src/index.js",
7
7
  "types": "dist/src/index.d.ts",
@@ -10,13 +10,13 @@ const useFilters_1 = require("../useFilters");
10
10
  const provider_1 = require("../../provider");
11
11
  const useReactiveReactProp = (currentHandle) => {
12
12
  const filters = (0, useFilters_1.useFilters)();
13
- const { additionalComponentHandles } = (0, provider_1.useContext)();
13
+ const { additionalComponentIds } = (0, provider_1.useContext)();
14
14
  return react_1.default.useMemo(() => {
15
15
  return {
16
16
  and: [
17
17
  "SearchInput",
18
18
  ...sensor_1.SENSOR_IDS,
19
- ...(additionalComponentHandles !== null && additionalComponentHandles !== void 0 ? additionalComponentHandles : []),
19
+ ...(additionalComponentIds !== null && additionalComponentIds !== void 0 ? additionalComponentIds : []),
20
20
  ...filters.map((filter) => filter.handle),
21
21
  ].filter((handle) => handle !== currentHandle),
22
22
  };
@@ -20,7 +20,7 @@ declare type Context = {
20
20
  theme?: Theme;
21
21
  curation?: ConfigCuration;
22
22
  /** Array of additional component IDs managed outside of Reactify Search */
23
- additionalComponentHandles?: string[];
23
+ additionalComponentIds?: string[];
24
24
  };
25
25
  declare const Context: React.Context<Context | undefined>;
26
26
  declare type Props = {
@@ -35,7 +35,7 @@ declare type Props = {
35
35
  credentials?: Credentials;
36
36
  theme?: Theme;
37
37
  /** Array of additional component IDs managed outside of Reactify Search */
38
- additionalComponentHandles?: string[];
38
+ additionalComponentIds?: string[];
39
39
  /**
40
40
  * Optional render function to display a component when the config is loading.
41
41
  */
@@ -71,7 +71,7 @@ const Provider = (_a) => {
71
71
  exports.Provider = Provider;
72
72
  const ConfiguredProvider = (props) => {
73
73
  var _a, _b;
74
- const { index, config, children, collection, instantSearch, filterStackHandle, noReactiveBase, shopifyPermanentDomain, additionalComponentHandles, onRedirect, } = props;
74
+ const { index, config, children, collection, instantSearch, filterStackHandle, noReactiveBase, shopifyPermanentDomain, additionalComponentIds, onRedirect, } = props;
75
75
  const credentials = (_a = props.credentials) !== null && _a !== void 0 ? _a : defaultCredentials;
76
76
  const theme = (_b = props.theme) !== null && _b !== void 0 ? _b : {
77
77
  typography: {
@@ -152,7 +152,7 @@ const ConfiguredProvider = (props) => {
152
152
  setShowInstantSearchResults,
153
153
  theme,
154
154
  curation,
155
- additionalComponentHandles,
155
+ additionalComponentIds,
156
156
  instantSearch: !!instantSearch,
157
157
  showInstantSearchResults: !!showInstantSearchResults && !!searchQuery,
158
158
  }), [
@@ -169,7 +169,7 @@ const ConfiguredProvider = (props) => {
169
169
  onRedirect,
170
170
  submitSearch,
171
171
  instantSearch,
172
- additionalComponentHandles,
172
+ additionalComponentIds,
173
173
  showInstantSearchResults,
174
174
  theme,
175
175
  ]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@usereactify/search",
3
3
  "description": "React UI library for Reactify Search",
4
- "version": "4.4.4",
4
+ "version": "4.4.5",
5
5
  "license": "MIT",
6
6
  "main": "dist/src/index.js",
7
7
  "types": "dist/src/index.d.ts",