@usereactify/search 4.2.6 → 4.2.7

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.2.7](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.2.6...v4.2.7) (2022-07-19)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * only apply inventory sensor to products, not callouts ([7c186b8](https://bitbucket.org/usereactify/reactify-search-ui/commit/7c186b83c9f403f0987ef088714db1438f27cd84))
11
+
5
12
  ### [4.2.6](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.2.5...v4.2.6) (2022-07-11)
6
13
 
7
14
  ### [4.2.5](https://bitbucket.org/usereactify/reactify-search-ui/compare/v4.2.4...v4.2.5) (2022-07-11)
package/dist/provider.js CHANGED
@@ -56,7 +56,17 @@ const Provider = (_a) => {
56
56
  return renderBooting();
57
57
  return null;
58
58
  }
59
- return react_1.default.createElement(exports.ConfiguredProvider, Object.assign({}, props, { config: config }));
59
+ return (react_1.default.createElement(Sentry.ErrorBoundary, { fallback: react_1.default.createElement("p", null, "An error has occurred"), beforeCapture: (scope) => {
60
+ scope.setTag("index", props.index);
61
+ scope.setTag("shop", props.shopifyPermanentDomain);
62
+ if (!!props.collection)
63
+ scope.setTag("collection", props.collection.handle);
64
+ if (!!props.filterStackHandle)
65
+ scope.setTag("filter", props.filterStackHandle);
66
+ if (!!props.instantSearch)
67
+ scope.setTag("search", true);
68
+ } },
69
+ react_1.default.createElement(exports.ConfiguredProvider, Object.assign({}, props, { config: config }))));
60
70
  };
61
71
  exports.Provider = Provider;
62
72
  const ConfiguredProvider = (props) => {
@@ -13,11 +13,38 @@ const SensorInventoryAvailable = () => {
13
13
  return null;
14
14
  return (react_1.default.createElement(ReactiveComponent_1.default, { componentId: "SensorInventoryAvailable", customQuery: () => ({
15
15
  query: {
16
- nested: {
17
- path: "variants",
18
- query: {
19
- match: { "variants.available": true },
20
- },
16
+ bool: {
17
+ should: [
18
+ {
19
+ bool: {
20
+ must: [
21
+ {
22
+ term: {
23
+ type: {
24
+ value: "product",
25
+ },
26
+ },
27
+ },
28
+ {
29
+ nested: {
30
+ path: "variants",
31
+ query: {
32
+ match: { "variants.available": true },
33
+ },
34
+ },
35
+ },
36
+ ],
37
+ },
38
+ },
39
+ {
40
+ term: {
41
+ type: {
42
+ value: "callout",
43
+ },
44
+ },
45
+ },
46
+ ],
47
+ minimum_should_match: "1",
21
48
  },
22
49
  },
23
50
  }) }));
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.2.6",
4
+ "version": "4.2.7",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",