@graphcommerce/magento-product-configurable 9.0.0-canary.103 → 9.0.0-canary.104
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 +3 -1
- package/ConfigurableContext/ConfigurableContext.tsx +1 -1
- package/ConfigurableOptions/ConfigurableOptions.tsx +1 -1
- package/ConfigurableProductAddToCart/ConfigurableProductAddToCart.tsx +3 -3
- package/Swatches/ColorSwatchData.tsx +1 -1
- package/Swatches/ImageSwatchData.tsx +1 -1
- package/components/ConfigurableProductOptions/ConfigurableProductOption.tsx +1 -1
- package/package.json +18 -18
- package/plugins/ConfigurableProductPage/ConfigurableProductPageMeta.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.104
|
|
4
|
+
|
|
3
5
|
## 9.0.0-canary.103
|
|
4
6
|
|
|
5
7
|
## 9.0.0-canary.90
|
|
@@ -939,8 +941,8 @@
|
|
|
939
941
|
Needs to be replaced with:
|
|
940
942
|
|
|
941
943
|
```tsx
|
|
942
|
-
import { Trans } from '@lingui/react'
|
|
943
944
|
import { i18n } from '@lingui/core'
|
|
945
|
+
import { Trans } from '@lingui/react'
|
|
944
946
|
|
|
945
947
|
function MyComponent() {
|
|
946
948
|
const foo = 'bar'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Context, Dispatch, SetStateAction } from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { createContext, useCallback, useContext, useMemo, useState } from 'react'
|
|
3
3
|
import type { ConfigurableProductFormFragment } from './ConfigurableProductForm.gql'
|
|
4
4
|
import cheapestVariant from './cheapestVariant'
|
|
5
5
|
|
|
@@ -15,7 +15,7 @@ import { useConfigurableContext } from '../ConfigurableContext/ConfigurableConte
|
|
|
15
15
|
import { ColorSwatchData } from '../Swatches/ColorSwatchData'
|
|
16
16
|
import { ImageSwatchData } from '../Swatches/ImageSwatchData'
|
|
17
17
|
import { TextSwatchData } from '../Swatches/TextSwatchData'
|
|
18
|
-
import type {
|
|
18
|
+
import type { SwatchSize, SwatchTypeRenderer } from '../Swatches/types'
|
|
19
19
|
|
|
20
20
|
export type ConfigurableOptionsInputProps = {
|
|
21
21
|
sku: string
|
|
@@ -3,14 +3,14 @@ import { ApolloCartErrorAlert, useFormGqlMutationCart } from '@graphcommerce/mag
|
|
|
3
3
|
import { Money } from '@graphcommerce/magento-store'
|
|
4
4
|
import {
|
|
5
5
|
Button,
|
|
6
|
+
IconSvg,
|
|
7
|
+
MessageSnackbar,
|
|
6
8
|
extendableComponent,
|
|
7
9
|
iconChevronRight,
|
|
8
|
-
MessageSnackbar,
|
|
9
|
-
IconSvg,
|
|
10
10
|
} from '@graphcommerce/next-ui'
|
|
11
11
|
import { Trans } from '@lingui/macro'
|
|
12
12
|
import type { SxProps, Theme } from '@mui/material'
|
|
13
|
-
import {
|
|
13
|
+
import { Alert, Box, Divider, Typography } from '@mui/material'
|
|
14
14
|
import React from 'react'
|
|
15
15
|
import { useConfigurableContext } from '../ConfigurableContext/ConfigurableContext'
|
|
16
16
|
import cheapestVariant from '../ConfigurableContext/cheapestVariant'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { 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 { ColorSwatchDataFragment } from './ColorSwatchData.gql'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Image } from '@graphcommerce/image'
|
|
2
|
-
import {
|
|
2
|
+
import { extendableComponent, responsiveVal } from '@graphcommerce/next-ui'
|
|
3
3
|
import type { SxProps, Theme } from '@mui/material'
|
|
4
4
|
import { Box } from '@mui/material'
|
|
5
5
|
import type { ImageSwatchDataFragment } from './ImageSwatchData.gql'
|
|
@@ -2,7 +2,7 @@ import type { ActionCardItemBase } from '@graphcommerce/ecommerce-ui'
|
|
|
2
2
|
import { ActionCardListForm } from '@graphcommerce/ecommerce-ui'
|
|
3
3
|
import type { AddProductsToCartFields } from '@graphcommerce/magento-product/components'
|
|
4
4
|
import { useFormAddProductsToCart } from '@graphcommerce/magento-product/components'
|
|
5
|
-
import { filterNonNullableKeys, nonNullable
|
|
5
|
+
import { SectionHeader, filterNonNullableKeys, nonNullable } from '@graphcommerce/next-ui'
|
|
6
6
|
import { useWatch } from '@graphcommerce/react-hook-form'
|
|
7
7
|
import { i18n } from '@lingui/core'
|
|
8
8
|
import type { SxProps, Theme } from '@mui/material'
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-product-configurable",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.104",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,23 +12,23 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
|
17
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
|
18
|
-
"@graphcommerce/graphql-mesh": "^9.0.0-canary.
|
|
19
|
-
"@graphcommerce/image": "^9.0.0-canary.
|
|
20
|
-
"@graphcommerce/lingui-next": "9.0.0-canary.
|
|
21
|
-
"@graphcommerce/magento-cart": "^9.0.0-canary.
|
|
22
|
-
"@graphcommerce/magento-cart-items": "^9.0.0-canary.
|
|
23
|
-
"@graphcommerce/magento-category": "^9.0.0-canary.
|
|
24
|
-
"@graphcommerce/magento-customer": "^9.0.0-canary.
|
|
25
|
-
"@graphcommerce/magento-product": "^9.0.0-canary.
|
|
26
|
-
"@graphcommerce/magento-product-simple": "^9.0.0-canary.
|
|
27
|
-
"@graphcommerce/magento-store": "^9.0.0-canary.
|
|
28
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
|
29
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
30
|
-
"@graphcommerce/react-hook-form": "^9.0.0-canary.
|
|
31
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.104",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.104",
|
|
17
|
+
"@graphcommerce/graphql": "^9.0.0-canary.104",
|
|
18
|
+
"@graphcommerce/graphql-mesh": "^9.0.0-canary.104",
|
|
19
|
+
"@graphcommerce/image": "^9.0.0-canary.104",
|
|
20
|
+
"@graphcommerce/lingui-next": "9.0.0-canary.104",
|
|
21
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.104",
|
|
22
|
+
"@graphcommerce/magento-cart-items": "^9.0.0-canary.104",
|
|
23
|
+
"@graphcommerce/magento-category": "^9.0.0-canary.104",
|
|
24
|
+
"@graphcommerce/magento-customer": "^9.0.0-canary.104",
|
|
25
|
+
"@graphcommerce/magento-product": "^9.0.0-canary.104",
|
|
26
|
+
"@graphcommerce/magento-product-simple": "^9.0.0-canary.104",
|
|
27
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.104",
|
|
28
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.104",
|
|
29
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.104",
|
|
30
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.104",
|
|
31
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.104",
|
|
32
32
|
"@lingui/core": "^4.2.1",
|
|
33
33
|
"@lingui/macro": "^4.2.1",
|
|
34
34
|
"@lingui/react": "^4.2.1",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mergeDeep } from '@graphcommerce/graphql'
|
|
2
2
|
import type { ProductPageMetaProps } from '@graphcommerce/magento-product'
|
|
3
|
-
import {
|
|
3
|
+
import { type AddToCartItemSelector, productLink } from '@graphcommerce/magento-product'
|
|
4
4
|
import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
|
|
5
5
|
import { useRouter } from 'next/router'
|
|
6
6
|
import { useEffect } from 'react'
|