@graphcommerce/magento-search 10.0.0-canary.68 → 10.0.0-canary.72

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,5 +1,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 10.0.0-canary.72
4
+
5
+ ## 10.0.0-canary.71
6
+
7
+ ## 10.0.0-canary.70
8
+
9
+ ### Major Changes
10
+
11
+ - [#2565](https://github.com/graphcommerce-org/graphcommerce/pull/2565) [`c96dfcd`](https://github.com/graphcommerce-org/graphcommerce/commit/c96dfcdca981baca387c270ad9e2b9515cdd00cc) - Updated to Apollo Client 4 ([@paales](https://github.com/paales))
12
+
13
+ ## 10.0.0-canary.69
14
+
3
15
  ## 10.0.0-canary.68
4
16
 
5
17
  ### Major Changes
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-search",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "10.0.0-canary.68",
5
+ "version": "10.0.0-canary.72",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,17 +12,17 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^10.0.0-canary.68",
16
- "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.68",
17
- "@graphcommerce/framer-utils": "^10.0.0-canary.68",
18
- "@graphcommerce/graphql": "^10.0.0-canary.68",
19
- "@graphcommerce/image": "^10.0.0-canary.68",
20
- "@graphcommerce/magento-product": "^10.0.0-canary.68",
21
- "@graphcommerce/magento-store": "^10.0.0-canary.68",
22
- "@graphcommerce/next-ui": "^10.0.0-canary.68",
23
- "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.68",
24
- "@graphcommerce/react-hook-form": "^10.0.0-canary.68",
25
- "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.68",
15
+ "@graphcommerce/ecommerce-ui": "^10.0.0-canary.72",
16
+ "@graphcommerce/eslint-config-pwa": "^10.0.0-canary.72",
17
+ "@graphcommerce/framer-utils": "^10.0.0-canary.72",
18
+ "@graphcommerce/graphql": "^10.0.0-canary.72",
19
+ "@graphcommerce/image": "^10.0.0-canary.72",
20
+ "@graphcommerce/magento-product": "^10.0.0-canary.72",
21
+ "@graphcommerce/magento-store": "^10.0.0-canary.72",
22
+ "@graphcommerce/next-ui": "^10.0.0-canary.72",
23
+ "@graphcommerce/prettier-config-pwa": "^10.0.0-canary.72",
24
+ "@graphcommerce/react-hook-form": "^10.0.0-canary.72",
25
+ "@graphcommerce/typescript-config-pwa": "^10.0.0-canary.72",
26
26
  "@lingui/core": "^5",
27
27
  "@lingui/macro": "^5",
28
28
  "@lingui/react": "^5",
@@ -27,16 +27,16 @@ export function useProductListApplySearchDefaults(
27
27
 
28
28
  export function productListApplySearchDefaults(
29
29
  params: ProductListParams,
30
- conf: StoreConfigQuery,
30
+ conf: StoreConfigQuery | undefined,
31
31
  ): ProductListQueryVariables
32
32
  export function productListApplySearchDefaults(
33
33
  params: ProductListParams | undefined,
34
- conf: StoreConfigQuery,
34
+ conf: StoreConfigQuery | undefined,
35
35
  ): ProductListQueryVariables | undefined {
36
36
  if (!params) return params
37
37
  const newParams = cloneDeep(params)
38
38
 
39
- if (!newParams.pageSize) newParams.pageSize = conf.storeConfig?.grid_per_page ?? 12
39
+ if (!newParams.pageSize) newParams.pageSize = conf?.storeConfig?.grid_per_page ?? 12
40
40
 
41
41
  if (Object.keys(newParams.sort).length === 0) {
42
42
  newParams.sort = { relevance: 'DESC' }