@graphcommerce/magento-product 9.0.0-canary.101 → 9.0.0-canary.103

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 (96) hide show
  1. package/CHANGELOG.md +83 -1254
  2. package/components/AddProductsToCart/AddProductsToCartButton.tsx +4 -5
  3. package/components/AddProductsToCart/AddProductsToCartError.tsx +2 -1
  4. package/components/AddProductsToCart/AddProductsToCartFab.tsx +5 -6
  5. package/components/AddProductsToCart/AddProductsToCartForm.tsx +15 -19
  6. package/components/AddProductsToCart/AddProductsToCartQuantity.tsx +5 -3
  7. package/components/AddProductsToCart/AddProductsToCartSnackbar.tsx +2 -1
  8. package/components/AddProductsToCart/AddProductsToCartSnackbarMessage.tsx +3 -4
  9. package/components/AddProductsToCart/findAddedItems.ts +2 -2
  10. package/components/AddProductsToCart/toUserErrors.ts +2 -2
  11. package/components/AddProductsToCart/useAddProductsToCartAction.ts +4 -3
  12. package/components/AddProductsToCart/useFormAddProductsToCart.ts +2 -2
  13. package/components/JsonLdProduct/ProductPageJsonLd.tsx +1 -1
  14. package/components/JsonLdProduct/jsonLdProduct.tsx +2 -2
  15. package/components/ProductAddToCart/ProductAddToCart.tsx +6 -3
  16. package/components/ProductCustomizable/CustomizableAreaOption.tsx +4 -3
  17. package/components/ProductCustomizable/CustomizableCheckboxOption.tsx +3 -7
  18. package/components/ProductCustomizable/CustomizableDateOption.tsx +2 -2
  19. package/components/ProductCustomizable/CustomizableDropDownOption.tsx +5 -5
  20. package/components/ProductCustomizable/CustomizableFieldOption.tsx +2 -2
  21. package/components/ProductCustomizable/CustomizableMultipleOption.tsx +3 -7
  22. package/components/ProductCustomizable/CustomizableRadioOption.tsx +3 -7
  23. package/components/ProductCustomizable/ProductCustomizable.tsx +5 -4
  24. package/components/ProductFiltersPro/PriceSlider.tsx +4 -2
  25. package/components/ProductFiltersPro/ProductFiltersPro.tsx +10 -19
  26. package/components/ProductFiltersPro/ProductFiltersProAggregations.tsx +2 -2
  27. package/components/ProductFiltersPro/ProductFiltersProAllFiltersChip.tsx +5 -6
  28. package/components/ProductFiltersPro/ProductFiltersProAllFiltersSidebar.tsx +7 -12
  29. package/components/ProductFiltersPro/ProductFiltersProCategorySection.tsx +6 -8
  30. package/components/ProductFiltersPro/ProductFiltersProChips.tsx +1 -1
  31. package/components/ProductFiltersPro/ProductFiltersProClearAll.tsx +2 -2
  32. package/components/ProductFiltersPro/ProductFiltersProLayoutSidebar.tsx +4 -2
  33. package/components/ProductFiltersPro/ProductFiltersProLimitChip.tsx +4 -2
  34. package/components/ProductFiltersPro/ProductFiltersProLimitSection.tsx +3 -2
  35. package/components/ProductFiltersPro/ProductFiltersProNoResults.tsx +3 -2
  36. package/components/ProductFiltersPro/ProductFiltersProSortChip.tsx +4 -2
  37. package/components/ProductFiltersPro/ProductFiltersProSortDirectionArrow.tsx +1 -1
  38. package/components/ProductFiltersPro/ProductFiltersProSortSection.tsx +3 -2
  39. package/components/ProductFiltersPro/activeAggregations.ts +2 -2
  40. package/components/ProductFiltersPro/applyAggregationCount.ts +2 -2
  41. package/components/ProductFiltersPro/useProductFiltersProClearAllAction.ts +1 -1
  42. package/components/ProductFiltersPro/useProductFiltersProSort.tsx +3 -3
  43. package/components/ProductListCount/ProductListCount.tsx +3 -2
  44. package/components/ProductListFilters/FilterCheckboxType.tsx +4 -3
  45. package/components/ProductListFilters/FilterEqualType.tsx +5 -4
  46. package/components/ProductListFilters/FilterRangeType.tsx +3 -2
  47. package/components/ProductListFilters/ProductListFilters.tsx +3 -3
  48. package/components/ProductListFiltersContainer/ProductListFiltersContainer.tsx +3 -2
  49. package/components/ProductListItem/ProductDiscountLabel.tsx +3 -2
  50. package/components/ProductListItem/ProductListItem.tsx +10 -15
  51. package/components/ProductListItem/ProductListItemImage.tsx +4 -2
  52. package/components/ProductListItem/ProductListItemImageContainer.tsx +7 -6
  53. package/components/ProductListItem/ProductListItemLinkOrDiv.tsx +2 -1
  54. package/components/ProductListItem/ProductListItemTitleAndPrice.tsx +4 -3
  55. package/components/ProductListItems/ProductListItemsBase.tsx +5 -4
  56. package/components/ProductListItems/ProductListParamsProvider.tsx +1 -1
  57. package/components/ProductListItems/filteredProductList.tsx +2 -2
  58. package/components/ProductListItems/getFilterTypes.ts +2 -1
  59. package/components/ProductListItems/productListApplyCategoryDefaults.ts +5 -4
  60. package/components/ProductListItems/renderer.tsx +2 -2
  61. package/components/ProductListLink/ProductListLink.tsx +5 -3
  62. package/components/ProductListPagination/ProductListPagination.tsx +5 -4
  63. package/components/ProductListPrice/ProductListPrice.tsx +3 -2
  64. package/components/ProductListSort/ProductListSort.tsx +7 -5
  65. package/components/ProductListSuggestions/ProductListSuggestions.tsx +1 -1
  66. package/components/ProductPage/ProductPageAddToCartRow.tsx +3 -2
  67. package/components/ProductPageBreadcrumb/ProductPageBreadcrumb.tsx +3 -2
  68. package/components/ProductPageBreadcrumb/ProductPageBreadcrumbs.tsx +3 -3
  69. package/components/ProductPageCategory/productPageCategory.ts +1 -1
  70. package/components/ProductPageDescription/ProductPageDescription.tsx +5 -4
  71. package/components/ProductPageGallery/ProductImage.tsx +1 -1
  72. package/components/ProductPageGallery/ProductPageGallery.tsx +3 -7
  73. package/components/ProductPageGallery/ProductVideo.tsx +1 -1
  74. package/components/ProductPageMeta/ProductPageMeta.tsx +2 -2
  75. package/components/ProductPageName/ProductPageName.tsx +2 -2
  76. package/components/ProductPagePrice/ProductPagePrice.tsx +5 -6
  77. package/components/ProductPagePrice/ProductPagePriceTiers.tsx +2 -2
  78. package/components/ProductPagePrice/getProductTierPrice.ts +2 -2
  79. package/components/ProductPagePrice/useCustomizableOptionPrice.ts +6 -5
  80. package/components/ProductScroller/ProductScroller.tsx +6 -13
  81. package/components/ProductShortDescription/ProductShortDescription.tsx +3 -2
  82. package/components/ProductSidebarDelivery/ProductSidebarDelivery.tsx +2 -2
  83. package/components/ProductSpecs/ProductSpecs.tsx +4 -3
  84. package/components/ProductSpecs/ProductSpecsAggregations.tsx +2 -2
  85. package/components/ProductSpecs/ProductSpecsCustomAttributes.tsx +2 -2
  86. package/components/ProductStaticPaths/getProductStaticPaths.ts +4 -3
  87. package/components/ProductStaticPaths/getSitemapPaths.ts +2 -2
  88. package/components/ProductWeight/ProductWeight.tsx +3 -2
  89. package/context/productListParamsContext.ts +1 -1
  90. package/hooks/useProductLink.ts +1 -1
  91. package/hooks/useProductList.ts +10 -13
  92. package/hooks/useProductListLink.ts +7 -5
  93. package/hooks/useProductListLinkReplace.ts +1 -1
  94. package/package.json +14 -14
  95. package/test/productURL.fixture.ts +1 -1
  96. package/tsconfig.json +1 -1
@@ -1,10 +1,10 @@
1
- import { ProductPageNameFragment } from './ProductPageName.gql'
1
+ import type { ProductPageNameFragment } from './ProductPageName.gql'
2
2
 
3
3
  export type ProductPageNameProps = {
4
4
  product: ProductPageNameFragment
5
5
  }
6
6
 
7
- export const ProductPageName = (props: ProductPageNameProps) => {
7
+ export function ProductPageName(props: ProductPageNameProps) {
8
8
  const { product } = props
9
9
  return <>{product.name}</>
10
10
  }
@@ -2,13 +2,12 @@ import { useWatch } from '@graphcommerce/ecommerce-ui'
2
2
  import { InContextMask } from '@graphcommerce/graphql'
3
3
  import { Money } from '@graphcommerce/magento-store'
4
4
  import { extendableComponent } from '@graphcommerce/next-ui'
5
- import { AddToCartItemSelector, useFormAddProductsToCart } from '../AddProductsToCart'
6
- import { ProductPagePriceFragment } from './ProductPagePrice.gql'
5
+ import type { AddToCartItemSelector } from '../AddProductsToCart'
6
+ import { useFormAddProductsToCart } from '../AddProductsToCart'
7
+ import type { ProductPagePriceFragment } from './ProductPagePrice.gql'
7
8
  import { getProductTierPrice } from './getProductTierPrice'
8
- import {
9
- UseCustomizableOptionPriceProps,
10
- useCustomizableOptionPrice,
11
- } from './useCustomizableOptionPrice'
9
+ import type { UseCustomizableOptionPriceProps } from './useCustomizableOptionPrice'
10
+ import { useCustomizableOptionPrice } from './useCustomizableOptionPrice'
12
11
 
13
12
  export type ProductPagePriceProps = { product: ProductPagePriceFragment } & AddToCartItemSelector &
14
13
  UseCustomizableOptionPriceProps
@@ -2,8 +2,8 @@ import { InContextMask } from '@graphcommerce/graphql'
2
2
  import { Money } from '@graphcommerce/magento-store'
3
3
  import { filterNonNullableKeys } from '@graphcommerce/next-ui'
4
4
  import { Trans } from '@lingui/react'
5
- import { SxProps, Theme } from '@mui/material'
6
- import { ProductPagePriceFragment } from './ProductPagePrice.gql'
5
+ import type { SxProps, Theme } from '@mui/material'
6
+ import type { ProductPagePriceFragment } from './ProductPagePrice.gql'
7
7
 
8
8
  export type ProductPagePriceTiersProps = {
9
9
  sx?: SxProps<Theme>
@@ -1,5 +1,5 @@
1
- import { MoneyFragment } from '@graphcommerce/magento-store'
2
- import { ProductPagePriceFragment } from './ProductPagePrice.gql'
1
+ import type { MoneyFragment } from '@graphcommerce/magento-store'
2
+ import type { ProductPagePriceFragment } from './ProductPagePrice.gql'
3
3
 
4
4
  export function getProductTierPrice(
5
5
  price: Pick<ProductPagePriceFragment, 'price_tiers'>,
@@ -1,15 +1,16 @@
1
1
  import { useWatch } from '@graphcommerce/ecommerce-ui'
2
- import { MoneyFragment } from '@graphcommerce/magento-store'
2
+ import type { MoneyFragment } from '@graphcommerce/magento-store'
3
3
  import { filterNonNullableKeys, isTypename, nonNullable } from '@graphcommerce/next-ui'
4
- import { AddToCartItemSelector, useFormAddProductsToCart } from '../AddProductsToCart'
5
- import {
6
- productCustomizableSelectors,
4
+ import type { AddToCartItemSelector } from '../AddProductsToCart'
5
+ import { useFormAddProductsToCart } from '../AddProductsToCart'
6
+ import type {
7
7
  CustomizableProductOptionBase,
8
8
  OptionValueSelector,
9
9
  AnyOption,
10
10
  SelectorsProp,
11
11
  } from '../ProductCustomizable/productCustomizableSelectors'
12
- import { ProductPagePriceFragment } from './ProductPagePrice.gql'
12
+ import { productCustomizableSelectors } from '../ProductCustomizable/productCustomizableSelectors'
13
+ import type { ProductPagePriceFragment } from './ProductPagePrice.gql'
13
14
  import { getProductTierPrice } from './getProductTierPrice'
14
15
 
15
16
  export type UseCustomizableOptionPriceProps = {
@@ -1,18 +1,11 @@
1
- import { ItemScroller, ItemScrollerProps, RenderType, responsiveVal } from '@graphcommerce/next-ui'
2
- import {
3
- Box,
4
- Container,
5
- ContainerProps,
6
- SxProps,
7
- Theme,
8
- Typography,
9
- TypographyProps,
10
- useTheme,
11
- } from '@mui/material'
1
+ import type { ItemScrollerProps } from '@graphcommerce/next-ui'
2
+ import { ItemScroller, RenderType, responsiveVal } from '@graphcommerce/next-ui'
3
+ import type { ContainerProps, SxProps, Theme, TypographyProps } from '@mui/material'
4
+ import { Box, Container, Typography, useTheme } from '@mui/material'
12
5
  import React, { forwardRef, useContext } from 'react'
13
6
  import { AddProductsToCartContext, AddProductsToCartForm } from '../AddProductsToCart'
14
- import { ProductListItemProps } from '../ProductListItem/ProductListItem'
15
- import { ProductListItemRenderer, ProductListItemType } from '../ProductListItems/renderer'
7
+ import type { ProductListItemProps } from '../ProductListItem/ProductListItem'
8
+ import type { ProductListItemRenderer, ProductListItemType } from '../ProductListItems/renderer'
16
9
 
17
10
  export type ProductScrollerProps = {
18
11
  title?: React.ReactNode
@@ -1,6 +1,7 @@
1
1
  import { extendableComponent } from '@graphcommerce/next-ui'
2
- import { SxProps, Theme, Typography } from '@mui/material'
3
- import { ProductShortDescriptionFragment } from './ProductShortDescription.gql'
2
+ import type { SxProps, Theme } from '@mui/material'
3
+ import { Typography } from '@mui/material'
4
+ import type { ProductShortDescriptionFragment } from './ProductShortDescription.gql'
4
5
 
5
6
  export type ProductShortDescriptionProps = {
6
7
  product: ProductShortDescriptionFragment
@@ -1,7 +1,7 @@
1
1
  import { breakpointVal, iconOrderBefore, IconSvg } from '@graphcommerce/next-ui'
2
2
  import { Trans } from '@lingui/react'
3
3
  import { Box, darken, lighten } from '@mui/material'
4
- import { UseAddProductsToCartActionFragment } from '../AddProductsToCart/UseAddProductsToCartAction.gql'
4
+ import type { UseAddProductsToCartActionFragment } from '../AddProductsToCart/UseAddProductsToCartAction.gql'
5
5
 
6
6
  type ProductSidebarDeliveryProps = {
7
7
  product?: UseAddProductsToCartActionFragment
@@ -39,7 +39,7 @@ export function ProductSidebarDelivery(props: ProductSidebarDeliveryProps) {
39
39
  "image title"
40
40
  ". subtitle"
41
41
  `,
42
- gridTemplateColumns: `min-content auto`,
42
+ gridTemplateColumns: 'min-content auto',
43
43
  columnGap: theme.spacings.xxs,
44
44
  background:
45
45
  theme.palette.mode === 'light'
@@ -1,6 +1,7 @@
1
1
  import { responsiveVal, Row, SectionContainer, extendableComponent } from '@graphcommerce/next-ui'
2
- import { Box, SxProps, Theme } from '@mui/material'
3
- import { ProductSpecsFragment } from './ProductSpecs.gql'
2
+ import type { SxProps, Theme } from '@mui/material'
3
+ import { Box } from '@mui/material'
4
+ import type { ProductSpecsFragment } from './ProductSpecs.gql'
4
5
  import { ProductSpecsAggregations } from './ProductSpecsAggregations'
5
6
  import { ProductSpecsCustomAttributes } from './ProductSpecsCustomAttributes'
6
7
 
@@ -10,7 +11,7 @@ export type ProductSpecsProps = ProductSpecsFragment & {
10
11
  children?: React.ReactNode
11
12
  }
12
13
 
13
- const name = 'ProductSpecs' as const
14
+ const name = 'ProductSpecs'
14
15
  const parts = ['root', 'specs', 'options'] as const
15
16
  const { classes } = extendableComponent(name, parts)
16
17
 
@@ -1,8 +1,8 @@
1
1
  import { extendableComponent } from '@graphcommerce/next-ui'
2
2
  import { Box } from '@mui/material'
3
- import { ProductSpecsFragment } from './ProductSpecs.gql'
3
+ import type { ProductSpecsFragment } from './ProductSpecs.gql'
4
4
 
5
- const name = 'ProductSpecs' as const
5
+ const name = 'ProductSpecs'
6
6
  const parts = ['root', 'specs', 'options'] as const
7
7
  const { classes } = extendableComponent(name, parts)
8
8
 
@@ -1,10 +1,10 @@
1
1
  import { useQuery } from '@graphcommerce/graphql'
2
2
  import { extendableComponent, ListFormat } from '@graphcommerce/next-ui'
3
3
  import { Box } from '@mui/material'
4
- import { ProductSpecsFragment } from './ProductSpecs.gql'
4
+ import type { ProductSpecsFragment } from './ProductSpecs.gql'
5
5
  import { ProductSpecsTypesDocument } from './ProductSpecsTypes.gql'
6
6
 
7
- const name = 'ProductSpecs' as const
7
+ const name = 'ProductSpecs'
8
8
  const parts = ['root', 'specs', 'options'] as const
9
9
  const { classes } = extendableComponent(name, parts)
10
10
 
@@ -1,6 +1,7 @@
1
- import { ApolloClient, ApolloQueryResult, NormalizedCacheObject } from '@graphcommerce/graphql'
2
- import { GetStaticPathsResult } from 'next'
3
- import { ProductStaticPathsDocument, ProductStaticPathsQuery } from './ProductStaticPaths.gql'
1
+ import type { ApolloClient, ApolloQueryResult, NormalizedCacheObject } from '@graphcommerce/graphql'
2
+ import type { GetStaticPathsResult } from 'next'
3
+ import type { ProductStaticPathsQuery } from './ProductStaticPaths.gql'
4
+ import { ProductStaticPathsDocument } from './ProductStaticPaths.gql'
4
5
 
5
6
  type Return = GetStaticPathsResult<{ url: string }>
6
7
 
@@ -1,4 +1,4 @@
1
- import { ApolloClient, NormalizedCacheObject } from '@graphcommerce/graphql'
1
+ import type { ApolloClient, NormalizedCacheObject } from '@graphcommerce/graphql'
2
2
  import { canonicalize, nonNullable } from '@graphcommerce/next-ui'
3
3
  import { productLink } from '../../hooks/useProductLink'
4
4
  import { ProductStaticPathsDocument } from './ProductStaticPaths.gql'
@@ -24,7 +24,7 @@ export async function getSitemapPaths(
24
24
 
25
25
  const options = { locale, defaultLocale, pathname: '/', isLocaleDomain: false }
26
26
  const lastmod = new Date().toISOString()
27
- const changefreq = 'daily' as const
27
+ const changefreq = 'daily'
28
28
  const priority = 0.7
29
29
 
30
30
  const paths = (await Promise.all(result))
@@ -1,7 +1,8 @@
1
1
  import { useQuery } from '@graphcommerce/graphql'
2
2
  import { StoreConfigDocument } from '@graphcommerce/magento-store'
3
- import { UnitFormat, UnitFormatProps } from '@graphcommerce/next-ui'
4
- import { ProductWeightFragment } from './ProductWeight.gql'
3
+ import type { UnitFormatProps } from '@graphcommerce/next-ui'
4
+ import { UnitFormat } from '@graphcommerce/next-ui'
5
+ import type { ProductWeightFragment } from './ProductWeight.gql'
5
6
 
6
7
  export type ProductWeightProps = Omit<UnitFormatProps, 'unit'> & { product: ProductWeightFragment }
7
8
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { ProductListParams } from '../components/ProductListItems/filterTypes'
2
+ import type { ProductListParams } from '../components/ProductListItems/filterTypes'
3
3
 
4
4
  export const productListParamsContext = React.createContext<{
5
5
  params: ProductListParams
@@ -1,4 +1,4 @@
1
- import { ProductLinkFragment } from './ProductLink.gql'
1
+ import type { ProductLinkFragment } from './ProductLink.gql'
2
2
 
3
3
  export type ProductLinkProps = Omit<ProductLinkFragment, 'uid'>
4
4
 
@@ -1,26 +1,23 @@
1
1
  import { debounce } from '@graphcommerce/ecommerce-ui'
2
- import {
3
- ApolloClient,
4
- useQuery,
5
- useInContextQuery,
6
- getInContextInput,
7
- } from '@graphcommerce/graphql'
2
+ import type { ApolloClient } from '@graphcommerce/graphql'
3
+ import { useQuery, useInContextQuery, getInContextInput } from '@graphcommerce/graphql'
8
4
  import { StoreConfigDocument } from '@graphcommerce/magento-store'
9
5
  import { showPageLoadIndicator } from '@graphcommerce/next-ui'
10
6
  import { useEventCallback } from '@mui/material'
11
- import {
7
+ import type {
12
8
  FilterFormProviderProps,
13
- ProductFiltersDocument,
14
9
  ProductFiltersQuery,
15
10
  ProductFiltersQueryVariables,
16
11
  } from '../components'
17
- import {
18
- ProductListDocument,
12
+ import { ProductFiltersDocument } from '../components'
13
+ import type {
19
14
  ProductListQuery,
20
15
  ProductListQueryVariables,
21
16
  } from '../components/ProductList/ProductList.gql'
22
- import { CategoryDefaultFragment } from '../components/ProductListItems/CategoryDefault.gql'
23
- import { ProductListParams, toProductListParams } from '../components/ProductListItems/filterTypes'
17
+ import { ProductListDocument } from '../components/ProductList/ProductList.gql'
18
+ import type { CategoryDefaultFragment } from '../components/ProductListItems/CategoryDefault.gql'
19
+ import type { ProductListParams } from '../components/ProductListItems/filterTypes'
20
+ import { toProductListParams } from '../components/ProductListItems/filterTypes'
24
21
  import { useRouterFilterParams } from '../components/ProductListItems/filteredProductList'
25
22
  import {
26
23
  productListApplyCategoryDefaults,
@@ -37,7 +34,7 @@ export const prefetchProductList = debounce(
37
34
  variables: ProductListQueryVariables,
38
35
  filtersVariables: ProductFiltersQueryVariables,
39
36
  next: Next,
40
- client: ApolloClient<any>,
37
+ client: ApolloClient<unknown>,
41
38
  shallow: boolean,
42
39
  ) => {
43
40
  if (!shallow) return next(shallow)
@@ -1,9 +1,11 @@
1
+ import type {
2
+ ProductFilterParams,
3
+ ProductListParams,
4
+ } from '../components/ProductListItems/filterTypes'
1
5
  import {
2
6
  isFilterTypeEqual,
3
7
  isFilterTypeMatch,
4
8
  isFilterTypeRange,
5
- ProductFilterParams,
6
- ProductListParams,
7
9
  toFilterParams,
8
10
  } from '../components/ProductListItems/filterTypes'
9
11
 
@@ -17,15 +19,15 @@ export function productListLinkFromFilter(props: ProductFilterParams): string {
17
19
  if (isSearch) urlBase = search ? `search/${search}` : 'search'
18
20
 
19
21
  // base url path generation
20
- let paginateSort = ``
21
- let query = ``
22
+ let paginateSort = ''
23
+ let query = ''
22
24
 
23
25
  if (currentPage && currentPage > 1) paginateSort += `/page/${currentPage}`
24
26
 
25
27
  // todo(paales): How should the URL look like with multiple sorts?
26
28
  // Something like: /sort/position,price/dir/asc,asc
27
29
  if (sort) query += `/sort/${sort}`
28
- if (dir) query += `/dir/desc`
30
+ if (dir) query += '/dir/desc'
29
31
  if (pageSize) query += `/page-size/${pageSize}`
30
32
 
31
33
  // Apply filters
@@ -1,5 +1,5 @@
1
1
  import { useRouter } from 'next/router'
2
- import { ProductListParams } from '../components/ProductListItems/filterTypes'
2
+ import type { ProductListParams } from '../components/ProductListItems/filterTypes'
3
3
  import { productListLink } from './useProductListLink'
4
4
  import { useProductListParamsContext } from './useProductListParamsContext'
5
5
 
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.101",
5
+ "version": "9.0.0-canary.103",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -18,23 +18,23 @@
18
18
  "typescript": "5.6.2"
19
19
  },
20
20
  "peerDependencies": {
21
- "@graphcommerce/ecommerce-ui": "^9.0.0-canary.101",
22
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.101",
23
- "@graphcommerce/framer-next-pages": "^9.0.0-canary.101",
24
- "@graphcommerce/framer-scroller": "^9.0.0-canary.101",
25
- "@graphcommerce/graphql": "^9.0.0-canary.101",
26
- "@graphcommerce/graphql-mesh": "^9.0.0-canary.101",
27
- "@graphcommerce/image": "^9.0.0-canary.101",
28
- "@graphcommerce/magento-cart": "^9.0.0-canary.101",
29
- "@graphcommerce/magento-store": "^9.0.0-canary.101",
30
- "@graphcommerce/next-ui": "^9.0.0-canary.101",
31
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.101",
32
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.101",
21
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.103",
22
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.103",
23
+ "@graphcommerce/framer-next-pages": "^9.0.0-canary.103",
24
+ "@graphcommerce/framer-scroller": "^9.0.0-canary.103",
25
+ "@graphcommerce/graphql": "^9.0.0-canary.103",
26
+ "@graphcommerce/graphql-mesh": "^9.0.0-canary.103",
27
+ "@graphcommerce/image": "^9.0.0-canary.103",
28
+ "@graphcommerce/magento-cart": "^9.0.0-canary.103",
29
+ "@graphcommerce/magento-store": "^9.0.0-canary.103",
30
+ "@graphcommerce/next-ui": "^9.0.0-canary.103",
31
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.103",
32
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.103",
33
33
  "@lingui/core": "^4.2.1",
34
34
  "@lingui/macro": "^4.2.1",
35
35
  "@lingui/react": "^4.2.1",
36
36
  "@mui/material": "^5.10.16",
37
- "framer-motion": "^10.0.0",
37
+ "framer-motion": "^11.0.0",
38
38
  "next": "*",
39
39
  "react": "^18.2.0",
40
40
  "react-dom": "^18.2.0"
@@ -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
3
  import { ProductStaticPathsDocument } from '../components/ProductStaticPaths/ProductStaticPaths.gql'
4
- import { ProductTypenames } from '../components/ProductStaticPaths/getProductStaticPaths'
4
+ import type { ProductTypenames } from '../components/ProductStaticPaths/getProductStaticPaths'
5
5
  import { productLink } from '../hooks/useProductLink'
6
6
 
7
7
  type ProductUrls = {
package/tsconfig.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "exclude": ["**/node_modules", "**/.*/"],
3
3
  "include": ["**/*.ts", "**/*.tsx"],
4
- "extends": "@graphcommerce/typescript-config-pwa/nextjs.json",
4
+ "extends": "@graphcommerce/typescript-config-pwa/nextjs.json"
5
5
  }