@graphcommerce/magento-product 9.0.0-canary.73 → 9.0.0-canary.75

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,9 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.75
4
+
5
+ ## 9.0.0-canary.74
6
+
3
7
  ## 9.0.0-canary.73
4
8
 
5
9
  ## 9.0.0-canary.72
@@ -36,6 +36,7 @@ export type ProductItemsGridProps = ProductListItemsFragment & {
36
36
  title: string
37
37
  sx?: BoxProps['sx']
38
38
  columns?: ((theme: Theme) => ColumnsConfig) | ColumnsConfig
39
+ containerRef?: React.Ref<HTMLDivElement>
39
40
  } & Pick<ProductListItemProps, 'onClick' | 'titleComponent'> &
40
41
  ComponentState
41
42
 
@@ -47,6 +48,7 @@ const { withState } = extendableComponent<ComponentState, typeof name, typeof sl
47
48
  export function ProductListItemsBase(props: ProductItemsGridProps) {
48
49
  const {
49
50
  items,
51
+ containerRef,
50
52
  sx = [],
51
53
  renderers,
52
54
  loadingEager = 0,
@@ -80,6 +82,7 @@ export function ProductListItemsBase(props: ProductItemsGridProps) {
80
82
  return (
81
83
  <AddProductsToCartForm>
82
84
  <Box
85
+ ref={containerRef}
83
86
  className={classes.root}
84
87
  sx={[
85
88
  ...Object.entries(columnConfig).map(([key, column]) => ({
@@ -50,15 +50,15 @@ export const prefetchProductList = debounce(
50
50
  variables: { ...variables, context },
51
51
  })
52
52
 
53
- const productFilters = client.query({
54
- query: ProductFiltersDocument,
55
- variables: {
56
- ...filtersVariables,
57
- context,
58
- },
59
- })
60
-
61
- const both = Promise.all([productList, productFilters])
53
+ // const productFilters = client.query({
54
+ // query: ProductFiltersDocument,
55
+ // variables: {
56
+ // ...filtersVariables,
57
+ // context,
58
+ // },
59
+ // })
60
+
61
+ const both = Promise.all([productList])
62
62
 
63
63
  // Push the query to the queue array.
64
64
  productListQueries.push(both)
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-product",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.73",
5
+ "version": "9.0.0-canary.75",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,19 +18,18 @@
18
18
  "typescript": "5.5.3"
19
19
  },
20
20
  "peerDependencies": {
21
- "@graphcommerce/ecommerce-ui": "^9.0.0-canary.73",
22
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.73",
23
- "@graphcommerce/framer-next-pages": "^9.0.0-canary.73",
24
- "@graphcommerce/framer-scroller": "^9.0.0-canary.73",
25
- "@graphcommerce/graphql": "^9.0.0-canary.73",
26
- "@graphcommerce/graphql-mesh": "^9.0.0-canary.73",
27
- "@graphcommerce/image": "^9.0.0-canary.73",
28
- "@graphcommerce/magento-cart": "^9.0.0-canary.73",
29
- "@graphcommerce/magento-category": "^9.0.0-canary.73",
30
- "@graphcommerce/magento-store": "^9.0.0-canary.73",
31
- "@graphcommerce/next-ui": "^9.0.0-canary.73",
32
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.73",
33
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.73",
21
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.75",
22
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.75",
23
+ "@graphcommerce/framer-next-pages": "^9.0.0-canary.75",
24
+ "@graphcommerce/framer-scroller": "^9.0.0-canary.75",
25
+ "@graphcommerce/graphql": "^9.0.0-canary.75",
26
+ "@graphcommerce/graphql-mesh": "^9.0.0-canary.75",
27
+ "@graphcommerce/image": "^9.0.0-canary.75",
28
+ "@graphcommerce/magento-cart": "^9.0.0-canary.75",
29
+ "@graphcommerce/magento-store": "^9.0.0-canary.75",
30
+ "@graphcommerce/next-ui": "^9.0.0-canary.75",
31
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.75",
32
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.75",
34
33
  "@lingui/core": "^4.2.1",
35
34
  "@lingui/macro": "^4.2.1",
36
35
  "@lingui/react": "^4.2.1",