@graphcommerce/magento-product-configurable 4.3.4 → 4.3.6

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,37 @@
1
1
  # Change Log
2
2
 
3
+ ## 4.3.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`2b5451395`](https://github.com/graphcommerce-org/graphcommerce/commit/2b5451395dc1173de55d18d08968866e561f90ab), [`e76df6dc3`](https://github.com/graphcommerce-org/graphcommerce/commit/e76df6dc37c11c793a5d008ba36932d17dc23855), [`c4ed376e2`](https://github.com/graphcommerce-org/graphcommerce/commit/c4ed376e2c72b16b34704d7d1ca69c074de172ba), [`78d7d51cb`](https://github.com/graphcommerce-org/graphcommerce/commit/78d7d51cb1551601d3a4756cd1f2157a49ff93b9), [`0bd9ea582`](https://github.com/graphcommerce-org/graphcommerce/commit/0bd9ea58230dde79c5fe2cdb07e9860151460270)]:
8
+ - @graphcommerce/magento-product@4.8.0
9
+ - @graphcommerce/next-ui@4.29.0
10
+ - @graphcommerce/magento-category@4.8.0
11
+ - @graphcommerce/magento-cart-items@3.1.17
12
+ - @graphcommerce/magento-product-simple@4.1.6
13
+ - @graphcommerce/magento-cart@4.9.1
14
+ - @graphcommerce/magento-customer@4.12.1
15
+ - @graphcommerce/magento-store@4.3.3
16
+
17
+ ## 4.3.5
18
+
19
+ ### Patch Changes
20
+
21
+ - [#1675](https://github.com/graphcommerce-org/graphcommerce/pull/1675) [`1b1504c9b`](https://github.com/graphcommerce-org/graphcommerce/commit/1b1504c9b0e51f2787bce91e1ff1940f540411d6) Thanks [@paales](https://github.com/paales)! - Added crosssel functionality
22
+
23
+ - Updated dependencies [[`9e630670f`](https://github.com/graphcommerce-org/graphcommerce/commit/9e630670ff6c952ab7b938d890b5509804985cf3), [`cf3518499`](https://github.com/graphcommerce-org/graphcommerce/commit/cf351849999ad6fe73ce2bb258098a7dd301d517), [`2e9fa5984`](https://github.com/graphcommerce-org/graphcommerce/commit/2e9fa5984a07ff14fc1b3a4f62189a26e8e3ecdd), [`adf13069a`](https://github.com/graphcommerce-org/graphcommerce/commit/adf13069af6460c960276b402237371c12fc6dec), [`1b1504c9b`](https://github.com/graphcommerce-org/graphcommerce/commit/1b1504c9b0e51f2787bce91e1ff1940f540411d6), [`8a34f8081`](https://github.com/graphcommerce-org/graphcommerce/commit/8a34f808186274a6fe1d4f309472f1a9c6d00efd), [`3dde492ad`](https://github.com/graphcommerce-org/graphcommerce/commit/3dde492ad3a49d96481eeb7453fb305d0017b1a5)]:
24
+ - @graphcommerce/next-ui@4.28.1
25
+ - @graphcommerce/graphql@3.5.0
26
+ - @graphcommerce/magento-cart@4.9.0
27
+ - @graphcommerce/magento-cart-items@3.1.16
28
+ - @graphcommerce/magento-customer@4.12.0
29
+ - @graphcommerce/magento-product@4.7.3
30
+ - @graphcommerce/magento-category@4.7.2
31
+ - @graphcommerce/magento-store@4.3.2
32
+ - @graphcommerce/magento-product-simple@4.1.5
33
+ - @graphcommerce/image@3.1.10
34
+
3
35
  ## 4.3.4
4
36
 
5
37
  ### Patch Changes
@@ -5,4 +5,7 @@ fragment ConfigurableCartItem on ConfigurableCartItem @inject(into: ["CartItem"]
5
5
  option_label
6
6
  value_label
7
7
  }
8
+ configurable_customizable: customizable_options {
9
+ ...SelectedCustomizableOption
10
+ }
8
11
  }
@@ -10,6 +10,7 @@ const name = 'ColorSwatchData' as const
10
10
  const parts = ['root', 'option'] as const
11
11
  const { classes } = extendableComponent(name, parts)
12
12
 
13
+ /** @deprecated */
13
14
  export function OptionsList(props: CartItemOptionsListProps) {
14
15
  const { configurable_options, sx = [] } = props
15
16
 
@@ -0,0 +1,19 @@
1
+ import { SelectedCustomizableOptions } from '@graphcommerce/magento-cart-items'
2
+ import { Box } from '@mui/material'
3
+ import { ConfigurableCartItemFragment } from '../../ConfigurableCartItem/ConfigurableCartItem.gql'
4
+
5
+ type ConfigurableActionCartItemProps = ConfigurableCartItemFragment
6
+
7
+ export function ConfigurableCartItemOptions(props: ConfigurableActionCartItemProps) {
8
+ const { configurable_customizable, configurable_options } = props
9
+ return (
10
+ <>
11
+ {configurable_options?.map((option) => (
12
+ <Box key={option?.configurable_product_option_uid}>
13
+ {option?.option_label} {option?.value_label}
14
+ </Box>
15
+ ))}
16
+ <SelectedCustomizableOptions customizable_options={configurable_customizable} />
17
+ </>
18
+ )
19
+ }
@@ -0,0 +1 @@
1
+ export * from './ConfigurableCartItemOptions'
@@ -24,8 +24,7 @@ fragment ProductListItemConfigurable on ConfigurableProduct @inject(into: ["Prod
24
24
  sku
25
25
  name
26
26
  small_image {
27
- label
28
- url
27
+ ...ProductImage
29
28
  }
30
29
  }
31
30
  }
@@ -1,3 +1,4 @@
1
+ export * from './ConfigurableCartItemOptions'
1
2
  export * from './ConfigurableOptionValue'
2
3
  export * from './ConfigurableOptionValueColor'
3
4
  export * from './ConfigurableOptionValueImage'
@@ -32,10 +32,7 @@ fragment ConfigurableOptionsSelection on ConfigurableProduct @injectable {
32
32
  uid
33
33
  name
34
34
  thumbnail {
35
- disabled
36
- label
37
- position
38
- url
35
+ ...ProductImage
39
36
  }
40
37
  price_range {
41
38
  minimum_price {
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.3.4",
5
+ "version": "4.3.6",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -19,17 +19,17 @@
19
19
  "type-fest": "^2.12.2"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/graphql": "3.4.8",
22
+ "@graphcommerce/graphql": "3.5.0",
23
23
  "@graphcommerce/graphql-mesh": "4.2.0",
24
- "@graphcommerce/image": "3.1.9",
25
- "@graphcommerce/magento-cart": "4.8.7",
26
- "@graphcommerce/magento-cart-items": "3.1.15",
27
- "@graphcommerce/magento-category": "4.7.1",
28
- "@graphcommerce/magento-customer": "4.11.7",
29
- "@graphcommerce/magento-product": "4.7.2",
30
- "@graphcommerce/magento-product-simple": "4.1.4",
31
- "@graphcommerce/magento-store": "4.3.1",
32
- "@graphcommerce/next-ui": "4.28.0",
24
+ "@graphcommerce/image": "3.1.10",
25
+ "@graphcommerce/magento-cart": "4.9.1",
26
+ "@graphcommerce/magento-cart-items": "3.1.17",
27
+ "@graphcommerce/magento-category": "4.8.0",
28
+ "@graphcommerce/magento-customer": "4.12.1",
29
+ "@graphcommerce/magento-product": "4.8.0",
30
+ "@graphcommerce/magento-product-simple": "4.1.6",
31
+ "@graphcommerce/magento-store": "4.3.3",
32
+ "@graphcommerce/next-ui": "4.29.0",
33
33
  "@graphcommerce/react-hook-form": "3.3.5"
34
34
  },
35
35
  "peerDependencies": {