@graphcommerce/magento-product-configurable 4.1.8 → 4.1.12

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,61 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.1.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`d205b037f`](https://github.com/graphcommerce-org/graphcommerce/commit/d205b037fee82b8c03993f2c586f477e826093bf)]:
8
+ - @graphcommerce/magento-cart@4.4.1
9
+ - @graphcommerce/magento-customer@4.5.1
10
+ - @graphcommerce/magento-cart-items@3.0.28
11
+ - @graphcommerce/magento-product@4.4.5
12
+ - @graphcommerce/magento-product-simple@4.0.27
13
+ - @graphcommerce/magento-category@4.1.13
14
+
15
+ ## 4.1.11
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [[`ffec8800a`](https://github.com/graphcommerce-org/graphcommerce/commit/ffec8800a50ff2fe9b9fc5feeb5a0a878b573f0e), [`bed806ddd`](https://github.com/graphcommerce-org/graphcommerce/commit/bed806dddd7e025806a69798ef9587aa165d392f)]:
20
+ - @graphcommerce/react-hook-form@3.2.1
21
+ - @graphcommerce/graphql@3.2.0
22
+ - @graphcommerce/magento-cart@4.4.0
23
+ - @graphcommerce/magento-customer@4.5.0
24
+ - @graphcommerce/magento-cart-items@3.0.27
25
+ - @graphcommerce/magento-category@4.1.12
26
+ - @graphcommerce/magento-product@4.4.4
27
+ - @graphcommerce/magento-product-simple@4.0.26
28
+ - @graphcommerce/magento-store@4.2.8
29
+
30
+ ## 4.1.10
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies [[`858a3b3a3`](https://github.com/graphcommerce-org/graphcommerce/commit/858a3b3a3601cd00491219daf45557c2f1cc804b)]:
35
+ - @graphcommerce/react-hook-form@3.2.0
36
+ - @graphcommerce/magento-cart@4.3.4
37
+ - @graphcommerce/magento-cart-items@3.0.26
38
+ - @graphcommerce/magento-customer@4.4.2
39
+ - @graphcommerce/magento-product@4.4.3
40
+ - @graphcommerce/magento-product-simple@4.0.25
41
+ - @graphcommerce/magento-category@4.1.11
42
+
43
+ ## 4.1.9
44
+
45
+ ### Patch Changes
46
+
47
+ - [#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
48
+
49
+ - 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)]:
50
+ - @graphcommerce/magento-product@4.4.2
51
+ - @graphcommerce/magento-customer@4.4.1
52
+ - @graphcommerce/magento-category@4.1.10
53
+ - @graphcommerce/next-ui@4.8.3
54
+ - @graphcommerce/magento-cart-items@3.0.25
55
+ - @graphcommerce/magento-product-simple@4.0.24
56
+ - @graphcommerce/magento-cart@4.3.3
57
+ - @graphcommerce/magento-store@4.2.7
58
+
3
59
  ## 4.1.8
4
60
 
5
61
  ### 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.8",
5
+ "version": "4.1.12",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -19,18 +19,18 @@
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/graphql": "3.1.3",
22
+ "@graphcommerce/graphql": "3.2.0",
23
23
  "@graphcommerce/graphql-mesh": "4.1.3",
24
24
  "@graphcommerce/image": "3.1.6",
25
- "@graphcommerce/magento-cart": "4.3.2",
26
- "@graphcommerce/magento-cart-items": "3.0.24",
27
- "@graphcommerce/magento-category": "4.1.9",
28
- "@graphcommerce/magento-customer": "4.4.0",
29
- "@graphcommerce/magento-product": "4.4.1",
30
- "@graphcommerce/magento-product-simple": "4.0.23",
31
- "@graphcommerce/magento-store": "4.2.6",
32
- "@graphcommerce/next-ui": "4.8.2",
33
- "@graphcommerce/react-hook-form": "3.1.3"
25
+ "@graphcommerce/magento-cart": "4.4.1",
26
+ "@graphcommerce/magento-cart-items": "3.0.28",
27
+ "@graphcommerce/magento-category": "4.1.13",
28
+ "@graphcommerce/magento-customer": "4.5.1",
29
+ "@graphcommerce/magento-product": "4.4.5",
30
+ "@graphcommerce/magento-product-simple": "4.0.27",
31
+ "@graphcommerce/magento-store": "4.2.8",
32
+ "@graphcommerce/next-ui": "4.8.3",
33
+ "@graphcommerce/react-hook-form": "3.2.1"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "@lingui/react": "^3.13.2",