@graphcommerce/magento-product-bundle 8.1.0-canary.8 → 9.0.0-canary.54

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,97 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.54
4
+
5
+ ## 8.1.0-canary.53
6
+
7
+ ## 8.1.0-canary.52
8
+
9
+ ## 8.1.0-canary.51
10
+
11
+ ## 8.1.0-canary.50
12
+
13
+ ## 8.1.0-canary.49
14
+
15
+ ## 8.1.0-canary.48
16
+
17
+ ## 8.1.0-canary.47
18
+
19
+ ## 8.1.0-canary.46
20
+
21
+ ## 8.1.0-canary.45
22
+
23
+ ## 8.1.0-canary.44
24
+
25
+ ## 8.1.0-canary.43
26
+
27
+ ## 8.1.0-canary.42
28
+
29
+ ## 8.1.0-canary.41
30
+
31
+ ## 8.1.0-canary.40
32
+
33
+ ## 8.1.0-canary.39
34
+
35
+ ## 8.1.0-canary.38
36
+
37
+ ## 8.1.0-canary.37
38
+
39
+ ## 8.1.0-canary.36
40
+
41
+ ## 8.1.0-canary.35
42
+
43
+ ## 8.1.0-canary.34
44
+
45
+ ## 8.1.0-canary.33
46
+
47
+ ## 8.1.0-canary.32
48
+
49
+ ## 8.1.0-canary.31
50
+
51
+ ## 8.1.0-canary.30
52
+
53
+ ## 8.1.0-canary.29
54
+
55
+ ## 8.1.0-canary.28
56
+
57
+ ## 8.1.0-canary.27
58
+
59
+ ## 8.1.0-canary.26
60
+
61
+ ## 8.1.0-canary.25
62
+
63
+ ## 8.1.0-canary.24
64
+
65
+ ## 8.1.0-canary.23
66
+
67
+ ## 8.1.0-canary.22
68
+
69
+ ## 8.1.0-canary.21
70
+
71
+ ## 8.1.0-canary.20
72
+
73
+ ## 8.1.0-canary.19
74
+
75
+ ## 8.1.0-canary.18
76
+
77
+ ## 8.1.0-canary.17
78
+
79
+ ## 8.1.0-canary.16
80
+
81
+ ## 8.1.0-canary.15
82
+
83
+ ## 8.1.0-canary.14
84
+
85
+ ## 8.1.0-canary.13
86
+
87
+ ## 8.1.0-canary.12
88
+
89
+ ## 8.1.0-canary.11
90
+
91
+ ## 8.1.0-canary.10
92
+
93
+ ## 8.1.0-canary.9
94
+
3
95
  ## 8.1.0-canary.8
4
96
 
5
97
  ## 8.1.0-canary.7
@@ -11,27 +11,28 @@ export function BundleProductCartItemOptions(props: BundleProductCartItemOptions
11
11
 
12
12
  return (
13
13
  <>
14
- {bundle_options?.map(
15
- (option) =>
16
- option?.values.filter(nonNullable).map((option_value) => (
17
- <Box
18
- key={option_value.uid}
19
- sx={(theme) => ({
20
- display: 'flex',
21
- gap: theme.spacings.xxs,
22
- [theme.breakpoints.down('sm')]: {
23
- fontSize: theme.typography.caption.fontSize,
24
- },
25
- })}
26
- >
27
- <Box sx={{ color: 'text.primary' }}>{option_value.label}</Box>
28
- {option_value.price > 0 && (
29
- <Box sx={(theme) => ({ position: 'absolute', right: theme.spacings.xs })}>
30
- <Money currency={prices?.price.currency} value={option_value.price} />
31
- </Box>
32
- )}
14
+ {bundle_options?.map((option) =>
15
+ option?.values.filter(nonNullable).map((option_value) => (
16
+ <Box
17
+ key={option_value.uid}
18
+ sx={(theme) => ({
19
+ display: 'flex',
20
+ gap: theme.spacings.xxs,
21
+ [theme.breakpoints.down('sm')]: {
22
+ fontSize: theme.typography.caption.fontSize,
23
+ },
24
+ })}
25
+ >
26
+ <Box sx={{ color: 'text.primary' }}>
27
+ {option_value.label} {option_value.quantity > 1 && `x${option_value.quantity}`}
33
28
  </Box>
34
- )),
29
+ {option_value.price > 0 && (
30
+ <Box sx={(theme) => ({ position: 'absolute', right: theme.spacings.xs })}>
31
+ <Money currency={prices?.price.currency} value={option_value.price} />
32
+ </Box>
33
+ )}
34
+ </Box>
35
+ )),
35
36
  )}
36
37
 
37
38
  <SelectedCustomizableOptions {...props} />
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-product-bundle",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "8.1.0-canary.8",
5
+ "version": "9.0.0-canary.54",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,19 +12,19 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^8.1.0-canary.8",
16
- "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.8",
17
- "@graphcommerce/graphql": "^8.1.0-canary.8",
18
- "@graphcommerce/image": "^8.1.0-canary.8",
19
- "@graphcommerce/magento-cart": "^8.1.0-canary.8",
20
- "@graphcommerce/magento-cart-items": "^8.1.0-canary.8",
21
- "@graphcommerce/magento-product": "^8.1.0-canary.8",
22
- "@graphcommerce/magento-product-simple": "^8.1.0-canary.8",
23
- "@graphcommerce/magento-product-virtual": "^8.1.0-canary.8",
24
- "@graphcommerce/magento-store": "^8.1.0-canary.8",
25
- "@graphcommerce/next-ui": "^8.1.0-canary.8",
26
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.8",
27
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.8",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.54",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.54",
17
+ "@graphcommerce/graphql": "^9.0.0-canary.54",
18
+ "@graphcommerce/image": "^9.0.0-canary.54",
19
+ "@graphcommerce/magento-cart": "^9.0.0-canary.54",
20
+ "@graphcommerce/magento-cart-items": "^9.0.0-canary.54",
21
+ "@graphcommerce/magento-product": "^9.0.0-canary.54",
22
+ "@graphcommerce/magento-product-simple": "^9.0.0-canary.54",
23
+ "@graphcommerce/magento-product-virtual": "^9.0.0-canary.54",
24
+ "@graphcommerce/magento-store": "^9.0.0-canary.54",
25
+ "@graphcommerce/next-ui": "^9.0.0-canary.54",
26
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.54",
27
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.54",
28
28
  "@lingui/core": "^4.2.1",
29
29
  "@lingui/macro": "^4.2.1",
30
30
  "@lingui/react": "^4.2.1",
@@ -1,12 +1,14 @@
1
1
  import { CartItemActionCardProps } from '@graphcommerce/magento-cart-items'
2
- import type { PluginProps } from '@graphcommerce/next-config'
2
+ import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
3
3
  import { isTypename } from '@graphcommerce/next-ui'
4
4
  import { BundleProductCartItemOptions } from '../components/BundleProductCartItemOptions/BundleProductCartItemOptions'
5
5
 
6
- export const component = 'CartItemActionCard'
7
- export const exported = '@graphcommerce/magento-cart-items'
6
+ export const config: PluginConfig = {
7
+ type: 'component',
8
+ module: '@graphcommerce/magento-cart-items',
9
+ }
8
10
 
9
- export function BundleCartItemActionCard(props: PluginProps<CartItemActionCardProps>) {
11
+ export function CartItemActionCard(props: PluginProps<CartItemActionCardProps>) {
10
12
  const { Prev, ...rest } = props
11
13
 
12
14
  if (!isTypename(rest.cartItem, ['BundleCartItem'])) return <Prev {...rest} />
@@ -23,5 +25,3 @@ export function BundleCartItemActionCard(props: PluginProps<CartItemActionCardPr
23
25
  />
24
26
  )
25
27
  }
26
-
27
- export const Plugin = BundleCartItemActionCard