@graphcommerce/magento-search 9.0.0-canary.115 → 9.0.0-canary.116

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,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.116
4
+
5
+ ### Patch Changes
6
+
7
+ - [#2452](https://github.com/graphcommerce-org/graphcommerce/pull/2452) [`5dfd3b2`](https://github.com/graphcommerce-org/graphcommerce/commit/5dfd3b201255ef35263485d04153d37bb7e4fe67) - Renamed useInContextQuery to usePrivateQuery ([@paales](https://github.com/paales))
8
+
3
9
  ## 9.0.0-canary.115
4
10
 
5
11
  ## 9.0.0-canary.114
@@ -6,6 +6,7 @@ export type CategorySearchResultsProps = {
6
6
  sx?: SxProps<Theme>
7
7
  }
8
8
 
9
+ /** @public */
9
10
  export function CategorySearchResults(props: CategorySearchResultsProps) {
10
11
  const { children, sx = [] } = props
11
12
  return <Box sx={sx}>{children}</Box>
@@ -9,6 +9,10 @@ const name = 'NoSearchResults'
9
9
  const parts = ['root'] as const
10
10
  const { classes } = extendableComponent(name, parts)
11
11
 
12
+ /**
13
+ * @deprecated
14
+ * @public
15
+ */
12
16
  export function NoSearchResults(props: NoSearchResultsProps) {
13
17
  const { sx = [] } = props
14
18
 
@@ -1,4 +1,4 @@
1
- import { useInContextQuery, useQuery } from '@graphcommerce/graphql'
1
+ import { usePrivateQuery, useQuery } from '@graphcommerce/graphql'
2
2
  import type {
3
3
  FilterFormProviderProps,
4
4
  ProductFiltersQuery,
@@ -33,8 +33,8 @@ export function useProductList<
33
33
  >(props: T) {
34
34
  const { params, shallow } = useRouterFilterParams(props)
35
35
  const variables = useProductListApplySearchDefaults(params)
36
- const result = useInContextQuery(ProductListDocument, { variables, skip: !shallow }, props)
37
- const filters = useInContextQuery(
36
+ const result = usePrivateQuery(ProductListDocument, { variables, skip: !shallow }, props)
37
+ const filters = usePrivateQuery(
38
38
  ProductFiltersDocument,
39
39
  { variables: searchDefaultsToProductListFilters(variables), skip: !shallow },
40
40
  props,
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": "9.0.0-canary.115",
5
+ "version": "9.0.0-canary.116",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,16 +12,16 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.0.0-canary.115",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.115",
17
- "@graphcommerce/graphql": "^9.0.0-canary.115",
18
- "@graphcommerce/image": "^9.0.0-canary.115",
19
- "@graphcommerce/magento-product": "^9.0.0-canary.115",
20
- "@graphcommerce/magento-store": "^9.0.0-canary.115",
21
- "@graphcommerce/next-ui": "^9.0.0-canary.115",
22
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.115",
23
- "@graphcommerce/react-hook-form": "^9.0.0-canary.115",
24
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.115",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.116",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.116",
17
+ "@graphcommerce/graphql": "^9.0.0-canary.116",
18
+ "@graphcommerce/image": "^9.0.0-canary.116",
19
+ "@graphcommerce/magento-product": "^9.0.0-canary.116",
20
+ "@graphcommerce/magento-store": "^9.0.0-canary.116",
21
+ "@graphcommerce/next-ui": "^9.0.0-canary.116",
22
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.116",
23
+ "@graphcommerce/react-hook-form": "^9.0.0-canary.116",
24
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.116",
25
25
  "@lingui/core": "^4.2.1",
26
26
  "@lingui/macro": "^4.2.1",
27
27
  "@lingui/react": "^4.2.1",