@graphcommerce/magento-search-overlay 9.0.1-canary.0 → 9.0.1

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
@@ -1,17 +1,19 @@
1
1
  # @graphcommerce/magento-search-overlay
2
2
 
3
- ## 9.0.1-canary.0
3
+ ## 9.0.1
4
4
 
5
- ## 9.0.0
5
+ ### Patch Changes
6
+
7
+ - [#2461](https://github.com/graphcommerce-org/graphcommerce/pull/2461) [`24c68c1`](https://github.com/graphcommerce-org/graphcommerce/commit/24c68c1903d5396efee7f571a1380ffa234338fd) - Solve issue with the SearchField throwing an error in production. ([@paales](https://github.com/paales))
6
8
 
7
- ### Minor Changes
9
+ ## 9.0.1-canary.1
8
10
 
9
- - [#2361](https://github.com/graphcommerce-org/graphcommerce/pull/2361) [`9c3149c`](https://github.com/graphcommerce-org/graphcommerce/commit/9c3149cb7550c6bf7de4b8e3bcaabe2f6a70d5c7) - Search overlay package this is compatible with Magento's default search as well as any other implementation like Algolia and Adobe Sensei. ([@paales](https://github.com/paales))
11
+ ### Patch Changes
10
12
 
11
- ## 9.0.0-canary.118
13
+ - [#2461](https://github.com/graphcommerce-org/graphcommerce/pull/2461) [`24c68c1`](https://github.com/graphcommerce-org/graphcommerce/commit/24c68c1903d5396efee7f571a1380ffa234338fd) - Solve issue with the SearchField throwing an error in production. ([@paales](https://github.com/paales))
12
14
 
13
- ## 9.0.0-canary.117
15
+ ## 9.0.0
14
16
 
15
- ### Minor Changes
17
+ ### Major Changes
16
18
 
17
- - [#2361](https://github.com/graphcommerce-org/graphcommerce/pull/2361) [`9c3149c`](https://github.com/graphcommerce-org/graphcommerce/commit/9c3149cb7550c6bf7de4b8e3bcaabe2f6a70d5c7) - Search overlay package this is compatible with Magento's default search as well as any other implementation like Algolia and Adobe Sensei. ([@paales](https://github.com/paales))
19
+ - [#2361](https://github.com/graphcommerce-org/graphcommerce/pull/2361) [`9c3149c`](https://github.com/graphcommerce-org/graphcommerce/commit/9c3149cb7550c6bf7de4b8e3bcaabe2f6a70d5c7) - Completely new SearchOverlay package this is compatible with Magento's default search as well as any other implementation like Algolia and Adobe Sensei. ([@paales](https://github.com/paales))
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-search-overlay",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.1-canary.0",
5
+ "version": "9.0.1",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,18 +12,18 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.0.1-canary.0",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.1-canary.0",
17
- "@graphcommerce/framer-utils": "^9.0.1-canary.0",
18
- "@graphcommerce/graphql": "^9.0.1-canary.0",
19
- "@graphcommerce/image": "^9.0.1-canary.0",
20
- "@graphcommerce/magento-product": "^9.0.1-canary.0",
21
- "@graphcommerce/magento-search": "^9.0.1-canary.0",
22
- "@graphcommerce/magento-store": "^9.0.1-canary.0",
23
- "@graphcommerce/next-ui": "^9.0.1-canary.0",
24
- "@graphcommerce/prettier-config-pwa": "^9.0.1-canary.0",
25
- "@graphcommerce/react-hook-form": "^9.0.1-canary.0",
26
- "@graphcommerce/typescript-config-pwa": "^9.0.1-canary.0",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.1",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.1",
17
+ "@graphcommerce/framer-utils": "^9.0.1",
18
+ "@graphcommerce/graphql": "^9.0.1",
19
+ "@graphcommerce/image": "^9.0.1",
20
+ "@graphcommerce/magento-product": "^9.0.1",
21
+ "@graphcommerce/magento-search": "^9.0.1",
22
+ "@graphcommerce/magento-store": "^9.0.1",
23
+ "@graphcommerce/next-ui": "^9.0.1",
24
+ "@graphcommerce/prettier-config-pwa": "^9.0.1",
25
+ "@graphcommerce/react-hook-form": "^9.0.1",
26
+ "@graphcommerce/typescript-config-pwa": "^9.0.1",
27
27
  "@lingui/core": "^4.2.1",
28
28
  "@lingui/macro": "^4.2.1",
29
29
  "@lingui/react": "^4.2.1",
@@ -18,9 +18,12 @@ export function SearchField(
18
18
 
19
19
  if (isSearchPage) return <Prev {...rest} />
20
20
  if (!searchField) {
21
- throw new Error(
22
- '<SearchField searchField={{ productListRenderer }}/> required when rendering the SearchOverlay',
23
- )
21
+ if (process.env.NODE_ENV !== 'production') {
22
+ throw new Error(
23
+ '<SearchField searchField={{ productListRenderer }}/> required when rendering the SearchOverlay',
24
+ )
25
+ }
26
+ return null
24
27
  }
25
28
 
26
29
  return (