@graphcommerce/magento-product 9.0.4-canary.9 → 9.0.4

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +8 -16
  2. package/components/AddProductsToCart/AddProductsToCartForm.tsx +9 -3
  3. package/components/AddProductsToCart/AddProductsToCartQuantity.tsx +1 -1
  4. package/components/AddProductsToCart/AddProductsToCartSnackbarMessage.tsx +1 -1
  5. package/components/AddProductsToCart/useAddProductsToCartAction.ts +1 -1
  6. package/components/ProductCustomizable/CustomizableCheckboxOption.tsx +1 -1
  7. package/components/ProductCustomizable/CustomizableDropDownOption.tsx +1 -1
  8. package/components/ProductCustomizable/CustomizableMultipleOption.tsx +1 -1
  9. package/components/ProductCustomizable/CustomizableRadioOption.tsx +1 -1
  10. package/components/ProductCustomizable/ProductCustomizable.tsx +1 -1
  11. package/components/ProductFiltersPro/ProductFilterEqualChip.tsx +1 -1
  12. package/components/ProductFiltersPro/ProductFilterEqualSection.tsx +1 -1
  13. package/components/ProductFiltersPro/ProductFilterRangeChip.tsx +1 -1
  14. package/components/ProductFiltersPro/ProductFilterRangeSection.tsx +1 -1
  15. package/components/ProductFiltersPro/ProductFiltersPro.tsx +3 -1
  16. package/components/ProductFiltersPro/ProductFiltersProAggregations.tsx +2 -2
  17. package/components/ProductFiltersPro/ProductFiltersProAllFiltersChip.tsx +2 -2
  18. package/components/ProductFiltersPro/ProductFiltersProSortDirectionArrow.tsx +1 -1
  19. package/components/ProductFiltersPro/useProductFiltersProHasFiltersApplied.ts +1 -1
  20. package/components/ProductListFilters/FilterCheckboxType.tsx +1 -1
  21. package/components/ProductListFiltersContainer/ProductListFiltersContainer.tsx +1 -1
  22. package/components/ProductListItem/ProductListItem.tsx +1 -2
  23. package/components/ProductListItems/ProductListItemsBase.tsx +3 -7
  24. package/components/ProductListSuggestions/ProductListSuggestions.tsx +1 -1
  25. package/components/ProductPageDescription/ProductPageDescription.tsx +2 -2
  26. package/components/ProductPageGallery/ProductPageGallery.tsx +1 -1
  27. package/components/ProductPagePrice/useCustomizableOptionPrice.ts +1 -1
  28. package/components/ProductSidebarDelivery/ProductSidebarDelivery.tsx +1 -1
  29. package/components/ProductSpecs/ProductSpecs.tsx +1 -1
  30. package/components/ProductSpecs/ProductSpecsCustomAttributes.tsx +1 -1
  31. package/hooks/useProductList.ts +2 -2
  32. package/hooks/useProductListLinkReplace.ts +3 -1
  33. package/package.json +13 -13
  34. package/test/productURL.fixture.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,30 +1,22 @@
1
1
  # Change Log
2
2
 
3
- ## 9.0.4-canary.9
3
+ ## 9.0.4
4
4
 
5
- ## 9.0.4-canary.8
5
+ ## 9.0.3
6
6
 
7
- ## 9.0.4-canary.7
7
+ ## 9.0.3-canary.0
8
8
 
9
- ## 9.0.4-canary.6
9
+ ## 9.0.2
10
10
 
11
- ## 9.0.4-canary.5
11
+ ## 9.0.2-canary.0
12
12
 
13
- ## 9.0.4-canary.4
14
-
15
- ## 9.0.4-canary.3
16
-
17
- ## 9.0.4-canary.2
13
+ ## 9.0.1
18
14
 
19
15
  ### Patch Changes
20
16
 
21
- - [#2473](https://github.com/graphcommerce-org/graphcommerce/pull/2473) [`f085c89`](https://github.com/graphcommerce-org/graphcommerce/commit/f085c89416fd91cdc2729f8a6da0ec37d93e8e80) - Solve issue where the ProductListItemsBase was already wrapped in a form. ([@paales](https://github.com/paales))
22
-
23
- ## 9.0.4-canary.1
24
-
25
- ## 9.0.4-canary.0
17
+ - [#2461](https://github.com/graphcommerce-org/graphcommerce/pull/2461) [`c83aad6`](https://github.com/graphcommerce-org/graphcommerce/commit/c83aad64869ee4192aa4216cc41f8106642c38f9) - Prevent forwarding the isBack prop to the DOM element ([@paales](https://github.com/paales))
26
18
 
27
- ## 9.0.1
19
+ ## 9.0.1-canary.1
28
20
 
29
21
  ### Patch Changes
30
22
 
@@ -23,11 +23,17 @@ export type AddProductsToCartFormProps = {
23
23
  redirect?: RedirectType
24
24
  snackbarProps?: AddProductsToCartSnackbarProps
25
25
 
26
- /** @deprecated Use snackbarProps.errorSnackbar instead */
26
+ /**
27
+ * @deprecated use snackbarProps.errorSnackbar instead
28
+ */
27
29
  errorSnackbar?: Omit<ErrorSnackbarProps, 'open'>
28
- /** @deprecated Use snackbarProps.successSnackbar instead */
30
+ /**
31
+ * @deprecated use snackbarProps.successSnackbar instead
32
+ */
29
33
  successSnackbar?: Omit<MessageSnackbarProps, 'open' | 'action'>
30
- /** @deprecated Use snackbarProps.disableSuccessSnackbar instead */
34
+ /**
35
+ * @deprecated use snackbarProps.disableSuccessSnackbar instead
36
+ */
31
37
  disableSuccessSnackbar?: boolean
32
38
  } & UseFormGraphQlOptions<AddProductsToCartMutation, AddProductsToCartFields>
33
39
 
@@ -7,7 +7,7 @@ import { useFormAddProductsToCart } from './useFormAddProductsToCart'
7
7
 
8
8
  export type AddToCartQuantityProps = Omit<
9
9
  NumberFieldElementProps<AddProductsToCartMutationVariables>,
10
- 'error' | 'required' | 'inputProps' | 'helperText' | 'name' | 'control' | 'rules'
10
+ 'error' | 'required' | 'inputProps' | 'helperText' | 'name' | 'control'
11
11
  > &
12
12
  AddToCartItemSelector
13
13
 
@@ -5,10 +5,10 @@ import type { ErrorSnackbarProps, MessageSnackbarProps } from '@graphcommerce/ne
5
5
  import {
6
6
  Button,
7
7
  ErrorSnackbar,
8
- iconChevronRight,
9
8
  IconSvg,
10
9
  ListFormat,
11
10
  MessageSnackbar,
11
+ iconChevronRight,
12
12
  } from '@graphcommerce/next-ui'
13
13
  import { Plural, Trans } from '@lingui/macro'
14
14
 
@@ -1,8 +1,8 @@
1
1
  import { useFormState } from '@graphcommerce/ecommerce-ui'
2
2
  import { useEventCallback } from '@mui/material'
3
3
  import { startTransition, useEffect, useState } from 'react'
4
- import { toUserErrors } from './toUserErrors'
5
4
  import type { UseAddProductsToCartActionFragment } from './UseAddProductsToCartAction.gql'
5
+ import { toUserErrors } from './toUserErrors'
6
6
  import type { AddToCartItemSelector } from './useFormAddProductsToCart'
7
7
  import { useFormAddProductsToCart } from './useFormAddProductsToCart'
8
8
 
@@ -1,7 +1,7 @@
1
1
  import { ActionCardListForm } from '@graphcommerce/ecommerce-ui'
2
2
  import { Money } from '@graphcommerce/magento-store'
3
3
  import type { ActionCardProps } from '@graphcommerce/next-ui'
4
- import { ActionCard, filterNonNullableKeys, SectionHeader } from '@graphcommerce/next-ui'
4
+ import { ActionCard, SectionHeader, filterNonNullableKeys } from '@graphcommerce/next-ui'
5
5
  import { i18n } from '@lingui/core'
6
6
  import { Box, Checkbox } from '@mui/material'
7
7
  import { useFormAddProductsToCart } from '../AddProductsToCart'
@@ -1,6 +1,6 @@
1
1
  import { useController } from '@graphcommerce/ecommerce-ui'
2
2
  import { Money } from '@graphcommerce/magento-store'
3
- import { filterNonNullableKeys, SectionHeader } from '@graphcommerce/next-ui'
3
+ import { SectionHeader, filterNonNullableKeys } from '@graphcommerce/next-ui'
4
4
  import { Box, MenuItem, TextField } from '@mui/material'
5
5
  import { useFormAddProductsToCart } from '../AddProductsToCart'
6
6
  import type { OptionTypeRenderer } from './CustomizableAreaOption'
@@ -1,7 +1,7 @@
1
1
  import { ActionCardListForm } from '@graphcommerce/ecommerce-ui'
2
2
  import { Money } from '@graphcommerce/magento-store'
3
3
  import type { ActionCardProps } from '@graphcommerce/next-ui'
4
- import { ActionCard, filterNonNullableKeys, SectionHeader } from '@graphcommerce/next-ui'
4
+ import { ActionCard, SectionHeader, filterNonNullableKeys } from '@graphcommerce/next-ui'
5
5
  import { i18n } from '@lingui/core'
6
6
  import { Box } from '@mui/material'
7
7
  import { useFormAddProductsToCart } from '../AddProductsToCart'
@@ -1,7 +1,7 @@
1
1
  import { ActionCardListForm } from '@graphcommerce/ecommerce-ui'
2
2
  import { Money } from '@graphcommerce/magento-store'
3
3
  import type { ActionCardProps } from '@graphcommerce/next-ui'
4
- import { ActionCard, filterNonNullableKeys, SectionHeader } from '@graphcommerce/next-ui'
4
+ import { ActionCard, SectionHeader, filterNonNullableKeys } from '@graphcommerce/next-ui'
5
5
  import { i18n } from '@lingui/core'
6
6
  import { Box } from '@mui/material'
7
7
  import { useFormAddProductsToCart } from '../AddProductsToCart'
@@ -1,4 +1,4 @@
1
- import { filterNonNullableKeys, RenderType } from '@graphcommerce/next-ui'
1
+ import { RenderType, filterNonNullableKeys } from '@graphcommerce/next-ui'
2
2
  import type { AddToCartItemSelector } from '../AddProductsToCart'
3
3
  import type { ProductPagePriceFragment } from '../ProductPagePrice'
4
4
  import type { OptionTypeRenderer } from './CustomizableAreaOption'
@@ -3,9 +3,9 @@ import type { ProductAttributeFilterInput } from '@graphcommerce/graphql-mesh'
3
3
  import {
4
4
  ActionCard,
5
5
  ChipOverlayOrPopper,
6
+ IconSvg,
6
7
  filterNonNullableKeys,
7
8
  iconCirle,
8
- IconSvg,
9
9
  } from '@graphcommerce/next-ui'
10
10
  import { Box } from '@mui/material'
11
11
  import { useMemo } from 'react'
@@ -4,9 +4,9 @@ import {
4
4
  ActionCard,
5
5
  ActionCardAccordion,
6
6
  Button,
7
+ IconSvg,
7
8
  filterNonNullableKeys,
8
9
  iconCirle,
9
- IconSvg,
10
10
  } from '@graphcommerce/next-ui'
11
11
  import { Trans } from '@lingui/react'
12
12
  import { Box } from '@mui/material'
@@ -3,7 +3,7 @@ import type { ProductAttributeFilterInput } from '@graphcommerce/graphql-mesh'
3
3
  import { Money } from '@graphcommerce/magento-store'
4
4
  import { ChipOverlayOrPopper, extendableComponent } from '@graphcommerce/next-ui'
5
5
  import { isFilterTypeRange } from '../ProductListItems/filterTypes'
6
- import { getMinMaxFromOptions, PriceSlider } from './PriceSlider'
6
+ import { PriceSlider, getMinMaxFromOptions } from './PriceSlider'
7
7
  import { useProductFiltersPro } from './ProductFiltersPro'
8
8
  import type { FilterProps } from './ProductFiltersProAggregations'
9
9
 
@@ -3,7 +3,7 @@ import type { ProductAttributeFilterInput } from '@graphcommerce/graphql-mesh'
3
3
  import { ActionCardAccordion, Button } from '@graphcommerce/next-ui'
4
4
  import { Trans } from '@lingui/react'
5
5
  import { isFilterTypeRange } from '../ProductListItems/filterTypes'
6
- import { getMinMaxFromOptions, PriceSlider } from './PriceSlider'
6
+ import { PriceSlider, getMinMaxFromOptions } from './PriceSlider'
7
7
  import { useProductFiltersPro } from './ProductFiltersPro'
8
8
  import type { FilterProps } from './ProductFiltersProAggregations'
9
9
 
@@ -67,7 +67,9 @@ export type FilterFormProviderProps = Omit<
67
67
  > & {
68
68
  children: React.ReactNode
69
69
  params: ProductListParams
70
- /** Whether the filter should scroll to the products list and whether to submit the form on change. */
70
+ /**
71
+ * Whether the filter should scroll to the products list and whether to submit the form on change.
72
+ */
71
73
  autoSubmitMd?: boolean
72
74
 
73
75
  handleSubmit?: (
@@ -1,12 +1,12 @@
1
1
  import type { AttributeFrontendInputEnum } from '@graphcommerce/graphql-mesh'
2
2
  import type { ProductListFiltersFragment } from '../ProductListFilters/ProductListFilters.gql'
3
- import { excludeCategory } from './activeAggregations'
4
- import { applyAggregationCount } from './applyAggregationCount'
5
3
  import { ProductFilterEqualChip } from './ProductFilterEqualChip'
6
4
  import { ProductFilterEqualSection } from './ProductFilterEqualSection'
7
5
  import { ProductFilterRangeChip } from './ProductFilterRangeChip'
8
6
  import { ProductFilterRangeSection } from './ProductFilterRangeSection'
9
7
  import { useProductFiltersPro } from './ProductFiltersPro'
8
+ import { excludeCategory } from './activeAggregations'
9
+ import { applyAggregationCount } from './applyAggregationCount'
10
10
 
11
11
  export type FilterProps = {
12
12
  aggregation: NonNullable<NonNullable<ProductListFiltersFragment['aggregations']>[number]>
@@ -1,8 +1,6 @@
1
1
  import type { ChipOverlayOrPopperProps } from '@graphcommerce/next-ui'
2
2
  import { ChipOverlayOrPopper } from '@graphcommerce/next-ui'
3
3
  import { Trans } from '@lingui/react'
4
- import { activeAggregations } from './activeAggregations'
5
- import { applyAggregationCount } from './applyAggregationCount'
6
4
  import { useProductFiltersPro } from './ProductFiltersPro'
7
5
  import type { ProductFiltersProAggregationsProps } from './ProductFiltersProAggregations'
8
6
  import {
@@ -12,6 +10,8 @@ import {
12
10
  import { ProductFiltersProLimitSection } from './ProductFiltersProLimitSection'
13
11
  import type { ProductFiltersProSortSectionProps } from './ProductFiltersProSortSection'
14
12
  import { ProductFiltersProSortSection } from './ProductFiltersProSortSection'
13
+ import { activeAggregations } from './activeAggregations'
14
+ import { applyAggregationCount } from './applyAggregationCount'
15
15
  import { useProductFiltersProClearAllAction } from './useProductFiltersProClearAllAction'
16
16
 
17
17
  export type ProductFiltersProAllFiltersChipProps = ProductFiltersProAggregationsProps &
@@ -1,5 +1,5 @@
1
1
  import type { SortEnum } from '@graphcommerce/graphql-mesh'
2
- import { iconArrowDown, iconArrowUp, IconSvg } from '@graphcommerce/next-ui'
2
+ import { IconSvg, iconArrowDown, iconArrowUp } from '@graphcommerce/next-ui'
3
3
 
4
4
  export type ProductFiltersProSortDirectionArrowProps = {
5
5
  sortDirection: SortEnum | null
@@ -1,7 +1,7 @@
1
1
  import { useMemo } from 'react'
2
+ import { useProductFiltersPro } from './ProductFiltersPro'
2
3
  import { activeAggregations } from './activeAggregations'
3
4
  import { applyAggregationCount } from './applyAggregationCount'
4
- import { useProductFiltersPro } from './ProductFiltersPro'
5
5
 
6
6
  export function useProductFilterProHasFiltersApplied() {
7
7
  const { params, aggregations, appliedAggregations } = useProductFiltersPro()
@@ -1,5 +1,5 @@
1
1
  import { cloneDeep } from '@graphcommerce/graphql'
2
- import { iconCancelAlt, IconSvg } from '@graphcommerce/next-ui'
2
+ import { IconSvg, iconCancelAlt } from '@graphcommerce/next-ui'
3
3
  import type { ChipProps, SxProps, Theme } from '@mui/material'
4
4
  import { Chip } from '@mui/material'
5
5
  import { useProductListLinkReplace } from '../../hooks/useProductListLinkReplace'
@@ -1,9 +1,9 @@
1
1
  import { Scroller, ScrollerButton, ScrollerProvider } from '@graphcommerce/framer-scroller'
2
2
  import {
3
+ IconSvg,
3
4
  extendableComponent,
4
5
  iconChevronLeft,
5
6
  iconChevronRight,
6
- IconSvg,
7
7
  useScrollY,
8
8
  } from '@graphcommerce/next-ui'
9
9
  import type { SxProps, Theme } from '@mui/material'
@@ -14,8 +14,7 @@ import type {
14
14
  ProductListsItemImageAreaProps,
15
15
  } from './ProductListItemImageContainer'
16
16
  import { ProductImageContainer, ProductListItemImageAreas } from './ProductListItemImageContainer'
17
- import type { ProductListItemLinkOrDivProps } from './ProductListItemLinkOrDiv'
18
- import { ProductListItemLinkOrDiv } from './ProductListItemLinkOrDiv'
17
+ import { ProductListItemLinkOrDiv, ProductListItemLinkOrDivProps } from './ProductListItemLinkOrDiv'
19
18
  import type { ProductListItemTitleAndPriceProps } from './ProductListItemTitleAndPrice'
20
19
  import { ProductListItemTitleAndPrice } from './ProductListItemTitleAndPrice'
21
20
 
@@ -1,8 +1,7 @@
1
1
  import { extendableComponent, LazyHydrate, RenderType, responsiveVal } from '@graphcommerce/next-ui'
2
2
  import type { BoxProps, Breakpoint, Theme } from '@mui/material'
3
3
  import { Box, useTheme } from '@mui/material'
4
- import React from 'react'
5
- import { AddProductsToCartForm, useFormAddProductsToCart } from '../AddProductsToCart'
4
+ import { AddProductsToCartForm } from '../AddProductsToCart'
6
5
  import type { ProductListItemProps } from '../ProductListItem/ProductListItem'
7
6
  import type { ProductListItemsFragment } from './ProductListItems.gql'
8
7
  import type { ProductListItemRenderer } from './renderer'
@@ -85,11 +84,8 @@ export function ProductListItemsBase(props: ProductItemsGridProps) {
85
84
 
86
85
  const classes = withState({ size })
87
86
 
88
- const context = useFormAddProductsToCart(true)
89
- const MaybeAddProductsToCartForm = context ? React.Fragment : AddProductsToCartForm
90
-
91
87
  return (
92
- <MaybeAddProductsToCartForm>
88
+ <AddProductsToCartForm>
93
89
  <Box
94
90
  ref={containerRef}
95
91
  className={classes.root}
@@ -134,6 +130,6 @@ export function ProductListItemsBase(props: ProductItemsGridProps) {
134
130
  )}
135
131
  {children}
136
132
  </Box>
137
- </MaybeAddProductsToCartForm>
133
+ </AddProductsToCartForm>
138
134
  )
139
135
  }
@@ -1,4 +1,4 @@
1
- import { filterNonNullableKeys, ListFormat } from '@graphcommerce/next-ui'
1
+ import { ListFormat, filterNonNullableKeys } from '@graphcommerce/next-ui'
2
2
  import { Trans } from '@lingui/macro'
3
3
  import { Box, Link } from '@mui/material'
4
4
  import { productListLinkFromFilter } from '../../hooks/useProductListLink'
@@ -1,9 +1,9 @@
1
1
  import type { ColumnTwoWithTopProps } from '@graphcommerce/next-ui'
2
2
  import {
3
- breakpointVal,
4
3
  ColumnTwoWithTop,
5
- extendableComponent,
6
4
  LazyHydrate,
5
+ breakpointVal,
6
+ extendableComponent,
7
7
  } from '@graphcommerce/next-ui'
8
8
  import type { SxProps, Theme } from '@mui/material'
9
9
  import { Box, Typography } from '@mui/material'
@@ -1,5 +1,5 @@
1
1
  import type { SidebarGalleryProps, TypeRenderer } from '@graphcommerce/next-ui'
2
- import { nonNullable, SidebarGallery } from '@graphcommerce/next-ui'
2
+ import { SidebarGallery, nonNullable } from '@graphcommerce/next-ui'
3
3
  import type { ProductPageGalleryFragment } from './ProductPageGallery.gql'
4
4
 
5
5
  export type ProductPageGalleryRenderers = TypeRenderer<
@@ -10,8 +10,8 @@ import type {
10
10
  SelectorsProp,
11
11
  } from '../ProductCustomizable/productCustomizableSelectors'
12
12
  import { productCustomizableSelectors } from '../ProductCustomizable/productCustomizableSelectors'
13
- import { getProductTierPrice } from './getProductTierPrice'
14
13
  import type { ProductPagePriceFragment } from './ProductPagePrice.gql'
14
+ import { getProductTierPrice } from './getProductTierPrice'
15
15
 
16
16
  export type UseCustomizableOptionPriceProps = {
17
17
  product: ProductPagePriceFragment
@@ -1,4 +1,4 @@
1
- import { breakpointVal, iconOrderBefore, IconSvg } from '@graphcommerce/next-ui'
1
+ import { IconSvg, breakpointVal, iconOrderBefore } from '@graphcommerce/next-ui'
2
2
  import { Trans } from '@lingui/react'
3
3
  import { Box, darken, lighten } from '@mui/material'
4
4
  import type { UseAddProductsToCartActionFragment } from '../AddProductsToCart/UseAddProductsToCartAction.gql'
@@ -1,4 +1,4 @@
1
- import { extendableComponent, responsiveVal, Row, SectionContainer } from '@graphcommerce/next-ui'
1
+ import { Row, SectionContainer, extendableComponent, responsiveVal } from '@graphcommerce/next-ui'
2
2
  import type { SxProps, Theme } from '@mui/material'
3
3
  import { Box } from '@mui/material'
4
4
  import type { ProductSpecsFragment } from './ProductSpecs.gql'
@@ -1,5 +1,5 @@
1
1
  import { useQuery } from '@graphcommerce/graphql'
2
- import { extendableComponent, ListFormat } from '@graphcommerce/next-ui'
2
+ import { ListFormat, extendableComponent } from '@graphcommerce/next-ui'
3
3
  import { Box } from '@mui/material'
4
4
  import type { ProductSpecsFragment } from './ProductSpecs.gql'
5
5
  import { ProductSpecsTypesDocument } from './ProductSpecsTypes.gql'
@@ -16,16 +16,16 @@ import type {
16
16
  } from '../components/ProductList/ProductList.gql'
17
17
  import { ProductListDocument } from '../components/ProductList/ProductList.gql'
18
18
  import type { CategoryDefaultFragment } from '../components/ProductListItems/CategoryDefault.gql'
19
- import { useRouterFilterParams } from '../components/ProductListItems/filteredProductList'
20
19
  import type { ProductListParams } from '../components/ProductListItems/filterTypes'
21
20
  import { toProductListParams } from '../components/ProductListItems/filterTypes'
21
+ import { useRouterFilterParams } from '../components/ProductListItems/filteredProductList'
22
22
  import {
23
23
  categoryDefaultsToProductListFilters,
24
24
  productListApplyCategoryDefaults,
25
25
  useProductListApplyCategoryDefaults,
26
26
  } from '../components/ProductListItems/productListApplyCategoryDefaults'
27
27
 
28
- const productListQueries: Array<Promise<unknown>> = []
28
+ const productListQueries: Array<Promise<any>> = []
29
29
 
30
30
  type Next = Parameters<NonNullable<FilterFormProviderProps['handleSubmit']>>[1]
31
31
 
@@ -9,7 +9,9 @@ type UseProductLinkPushProps = {
9
9
  scroll?: boolean
10
10
  }
11
11
 
12
- /** @deprecated Replaced by custom function inside ProductFiltersPro */
12
+ /**
13
+ * @deprecated replaced by custom function inside ProductFiltersPro
14
+ */
13
15
  export function useProductListLinkReplace(props?: UseProductLinkPushProps) {
14
16
  const { setParams } = useProductListParamsContext()
15
17
  const router = useRouter()
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.4-canary.9",
5
+ "version": "9.0.4",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,18 +18,18 @@
18
18
  "typescript": "5.7.2"
19
19
  },
20
20
  "peerDependencies": {
21
- "@graphcommerce/ecommerce-ui": "^9.0.4-canary.9",
22
- "@graphcommerce/eslint-config-pwa": "^9.0.4-canary.9",
23
- "@graphcommerce/framer-next-pages": "^9.0.4-canary.9",
24
- "@graphcommerce/framer-scroller": "^9.0.4-canary.9",
25
- "@graphcommerce/graphql": "^9.0.4-canary.9",
26
- "@graphcommerce/graphql-mesh": "^9.0.4-canary.9",
27
- "@graphcommerce/image": "^9.0.4-canary.9",
28
- "@graphcommerce/magento-cart": "^9.0.4-canary.9",
29
- "@graphcommerce/magento-store": "^9.0.4-canary.9",
30
- "@graphcommerce/next-ui": "^9.0.4-canary.9",
31
- "@graphcommerce/prettier-config-pwa": "^9.0.4-canary.9",
32
- "@graphcommerce/typescript-config-pwa": "^9.0.4-canary.9",
21
+ "@graphcommerce/ecommerce-ui": "^9.0.4",
22
+ "@graphcommerce/eslint-config-pwa": "^9.0.4",
23
+ "@graphcommerce/framer-next-pages": "^9.0.4",
24
+ "@graphcommerce/framer-scroller": "^9.0.4",
25
+ "@graphcommerce/graphql": "^9.0.4",
26
+ "@graphcommerce/graphql-mesh": "^9.0.4",
27
+ "@graphcommerce/image": "^9.0.4",
28
+ "@graphcommerce/magento-cart": "^9.0.4",
29
+ "@graphcommerce/magento-store": "^9.0.4",
30
+ "@graphcommerce/next-ui": "^9.0.4",
31
+ "@graphcommerce/prettier-config-pwa": "^9.0.4",
32
+ "@graphcommerce/typescript-config-pwa": "^9.0.4",
33
33
  "@lingui/core": "^4.2.1",
34
34
  "@lingui/macro": "^4.2.1",
35
35
  "@lingui/react": "^4.2.1",
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-non-null-assertion */
2
2
  import { test as base } from '@graphcommerce/magento-store/test/apolloClientStore.fixture'
3
- import type { ProductTypenames } from '../components/ProductStaticPaths/getProductStaticPaths'
4
3
  import { ProductStaticPathsDocument } from '../components/ProductStaticPaths/ProductStaticPaths.gql'
4
+ import type { ProductTypenames } from '../components/ProductStaticPaths/getProductStaticPaths'
5
5
  import { productLink } from '../hooks/useProductLink'
6
6
 
7
7
  type ProductUrls = {