@graphcommerce/magento-product-configurable 4.1.6 → 4.1.9
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,50 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.1.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1491](https://github.com/graphcommerce-org/graphcommerce/pull/1491) [`c63ab89c2`](https://github.com/graphcommerce-org/graphcommerce/commit/c63ab89c20cb81d79188900d57f3d65a7bba71cc) Thanks [@FrankHarland](https://github.com/FrankHarland)! - add sx support to ConfigurableProductAddToCart
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`c63ab89c2`](https://github.com/graphcommerce-org/graphcommerce/commit/c63ab89c20cb81d79188900d57f3d65a7bba71cc), [`238aa4d34`](https://github.com/graphcommerce-org/graphcommerce/commit/238aa4d3478773b8cb0973f4112c9829e59e16d6), [`13b174d28`](https://github.com/graphcommerce-org/graphcommerce/commit/13b174d28d1886043d9e02aef09c794ff23ea918), [`afc67103d`](https://github.com/graphcommerce-org/graphcommerce/commit/afc67103d0e00583e274465036fd287537f95e79)]:
|
|
10
|
+
- @graphcommerce/magento-product@4.4.2
|
|
11
|
+
- @graphcommerce/magento-customer@4.4.1
|
|
12
|
+
- @graphcommerce/magento-category@4.1.10
|
|
13
|
+
- @graphcommerce/next-ui@4.8.3
|
|
14
|
+
- @graphcommerce/magento-cart-items@3.0.25
|
|
15
|
+
- @graphcommerce/magento-product-simple@4.0.24
|
|
16
|
+
- @graphcommerce/magento-cart@4.3.3
|
|
17
|
+
- @graphcommerce/magento-store@4.2.7
|
|
18
|
+
|
|
19
|
+
## 4.1.8
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies [[`d6262de71`](https://github.com/graphcommerce-org/graphcommerce/commit/d6262de71d2254a2b0b492e1a60f9e141767470e), [`c8c246b8a`](https://github.com/graphcommerce-org/graphcommerce/commit/c8c246b8aaab0621b68a2fca2a1c529a56fad962), [`e3005fe63`](https://github.com/graphcommerce-org/graphcommerce/commit/e3005fe6306093d47b08c6756c21c8175649e30b)]:
|
|
24
|
+
- @graphcommerce/magento-customer@4.4.0
|
|
25
|
+
- @graphcommerce/magento-cart@4.3.2
|
|
26
|
+
- @graphcommerce/next-ui@4.8.2
|
|
27
|
+
- @graphcommerce/magento-cart-items@3.0.24
|
|
28
|
+
- @graphcommerce/magento-product@4.4.1
|
|
29
|
+
- @graphcommerce/magento-product-simple@4.0.23
|
|
30
|
+
- @graphcommerce/magento-category@4.1.9
|
|
31
|
+
- @graphcommerce/magento-store@4.2.6
|
|
32
|
+
|
|
33
|
+
## 4.1.7
|
|
34
|
+
|
|
35
|
+
### Patch Changes
|
|
36
|
+
|
|
37
|
+
- Updated dependencies [[`a9df81310`](https://github.com/graphcommerce-org/graphcommerce/commit/a9df81310c051876dd82fb2819105dece47cc213), [`b359fe252`](https://github.com/graphcommerce-org/graphcommerce/commit/b359fe252a50bb8195601ba97c3eef6a7be146ba), [`f167f9963`](https://github.com/graphcommerce-org/graphcommerce/commit/f167f99630966a7de43717937d43669e66132494)]:
|
|
38
|
+
- @graphcommerce/next-ui@4.8.1
|
|
39
|
+
- @graphcommerce/magento-product@4.4.0
|
|
40
|
+
- @graphcommerce/magento-cart@4.3.1
|
|
41
|
+
- @graphcommerce/magento-cart-items@3.0.23
|
|
42
|
+
- @graphcommerce/magento-category@4.1.8
|
|
43
|
+
- @graphcommerce/magento-customer@4.3.2
|
|
44
|
+
- @graphcommerce/magento-store@4.2.5
|
|
45
|
+
- @graphcommerce/magento-product-simple@4.0.22
|
|
46
|
+
- @graphcommerce/image@3.1.6
|
|
47
|
+
|
|
3
48
|
## 4.1.6
|
|
4
49
|
|
|
5
50
|
### Patch Changes
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
TextInputNumber,
|
|
11
11
|
} from '@graphcommerce/next-ui'
|
|
12
12
|
import { Trans } from '@lingui/react'
|
|
13
|
-
import { Divider, Typography, Alert, Box } from '@mui/material'
|
|
13
|
+
import { Divider, Typography, Alert, Box, SxProps, Theme } from '@mui/material'
|
|
14
14
|
import { AnimatePresence } from 'framer-motion'
|
|
15
15
|
import PageLink from 'next/link'
|
|
16
16
|
import React from 'react'
|
|
@@ -31,6 +31,7 @@ type ConfigurableProductAddToCartProps = {
|
|
|
31
31
|
optionEndLabels?: Record<string, React.ReactNode>
|
|
32
32
|
children?: React.ReactNode
|
|
33
33
|
additionalButtons?: React.ReactNode
|
|
34
|
+
sx?: SxProps<Theme>
|
|
34
35
|
optionsProps?: Omit<
|
|
35
36
|
ConfigurableOptionsInputProps,
|
|
36
37
|
'name' | 'sku' | 'control' | 'rules' | 'errors' | 'optionEndLabels'
|
|
@@ -49,8 +50,10 @@ export function ConfigurableProductAddToCart(props: ConfigurableProductAddToCart
|
|
|
49
50
|
optionEndLabels,
|
|
50
51
|
optionsProps,
|
|
51
52
|
additionalButtons,
|
|
53
|
+
sx = [],
|
|
52
54
|
...buttonProps
|
|
53
55
|
} = props
|
|
56
|
+
|
|
54
57
|
const { getUids, getVariants, selection } = useConfigurableContext(variables.sku)
|
|
55
58
|
|
|
56
59
|
const form = useFormGqlMutationCart(ConfigurableProductAddToCartDocument, {
|
|
@@ -71,7 +74,7 @@ export function ConfigurableProductAddToCart(props: ConfigurableProductAddToCart
|
|
|
71
74
|
onSubmit={submitHandler}
|
|
72
75
|
noValidate
|
|
73
76
|
className={classes.form}
|
|
74
|
-
sx={{ width: '100%' }}
|
|
77
|
+
sx={{ width: '100%', ...(Array.isArray(sx) ? sx : [sx]) }}
|
|
75
78
|
>
|
|
76
79
|
<Divider className={classes.divider} sx={(theme) => ({ margin: `${theme.spacings.sm} 0` })} />
|
|
77
80
|
<ConfigurableOptionsInput
|
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": "4.1.
|
|
5
|
+
"version": "4.1.9",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@graphcommerce/graphql": "3.1.3",
|
|
23
23
|
"@graphcommerce/graphql-mesh": "4.1.3",
|
|
24
|
-
"@graphcommerce/image": "3.1.
|
|
25
|
-
"@graphcommerce/magento-cart": "4.3.
|
|
26
|
-
"@graphcommerce/magento-cart-items": "3.0.
|
|
27
|
-
"@graphcommerce/magento-category": "4.1.
|
|
28
|
-
"@graphcommerce/magento-customer": "4.
|
|
29
|
-
"@graphcommerce/magento-product": "4.
|
|
30
|
-
"@graphcommerce/magento-product-simple": "4.0.
|
|
31
|
-
"@graphcommerce/magento-store": "4.2.
|
|
32
|
-
"@graphcommerce/next-ui": "4.8.
|
|
24
|
+
"@graphcommerce/image": "3.1.6",
|
|
25
|
+
"@graphcommerce/magento-cart": "4.3.3",
|
|
26
|
+
"@graphcommerce/magento-cart-items": "3.0.25",
|
|
27
|
+
"@graphcommerce/magento-category": "4.1.10",
|
|
28
|
+
"@graphcommerce/magento-customer": "4.4.1",
|
|
29
|
+
"@graphcommerce/magento-product": "4.4.2",
|
|
30
|
+
"@graphcommerce/magento-product-simple": "4.0.24",
|
|
31
|
+
"@graphcommerce/magento-store": "4.2.7",
|
|
32
|
+
"@graphcommerce/next-ui": "4.8.3",
|
|
33
33
|
"@graphcommerce/react-hook-form": "3.1.3"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|