@graphcommerce/magento-product-simple 8.1.0-canary.9 → 9.0.0-canary.100
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 +192 -12
- package/package.json +9 -9
- package/plugins/SimpleCartItemActionCard.tsx +6 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,187 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.100
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.99
|
|
6
|
+
|
|
7
|
+
## 9.0.0-canary.98
|
|
8
|
+
|
|
9
|
+
## 9.0.0-canary.97
|
|
10
|
+
|
|
11
|
+
## 9.0.0-canary.96
|
|
12
|
+
|
|
13
|
+
## 9.0.0-canary.95
|
|
14
|
+
|
|
15
|
+
## 9.0.0-canary.94
|
|
16
|
+
|
|
17
|
+
## 9.0.0-canary.93
|
|
18
|
+
|
|
19
|
+
## 9.0.0-canary.92
|
|
20
|
+
|
|
21
|
+
## 9.0.0-canary.91
|
|
22
|
+
|
|
23
|
+
## 9.0.0-canary.90
|
|
24
|
+
|
|
25
|
+
## 9.0.0-canary.89
|
|
26
|
+
|
|
27
|
+
## 9.0.0-canary.88
|
|
28
|
+
|
|
29
|
+
## 9.0.0-canary.87
|
|
30
|
+
|
|
31
|
+
## 9.0.0-canary.86
|
|
32
|
+
|
|
33
|
+
## 9.0.0-canary.85
|
|
34
|
+
|
|
35
|
+
## 9.0.0-canary.84
|
|
36
|
+
|
|
37
|
+
## 9.0.0-canary.83
|
|
38
|
+
|
|
39
|
+
## 9.0.0-canary.82
|
|
40
|
+
|
|
41
|
+
## 9.0.0-canary.81
|
|
42
|
+
|
|
43
|
+
## 9.0.0-canary.80
|
|
44
|
+
|
|
45
|
+
## 9.0.0-canary.79
|
|
46
|
+
|
|
47
|
+
## 9.0.0-canary.78
|
|
48
|
+
|
|
49
|
+
## 9.0.0-canary.77
|
|
50
|
+
|
|
51
|
+
## 9.0.0-canary.76
|
|
52
|
+
|
|
53
|
+
## 9.0.0-canary.75
|
|
54
|
+
|
|
55
|
+
## 9.0.0-canary.74
|
|
56
|
+
|
|
57
|
+
## 9.0.0-canary.73
|
|
58
|
+
|
|
59
|
+
## 9.0.0-canary.72
|
|
60
|
+
|
|
61
|
+
## 9.0.0-canary.71
|
|
62
|
+
|
|
63
|
+
## 9.0.0-canary.70
|
|
64
|
+
|
|
65
|
+
## 9.0.0-canary.69
|
|
66
|
+
|
|
67
|
+
## 9.0.0-canary.68
|
|
68
|
+
|
|
69
|
+
## 9.0.0-canary.67
|
|
70
|
+
|
|
71
|
+
## 9.0.0-canary.66
|
|
72
|
+
|
|
73
|
+
## 9.0.0-canary.65
|
|
74
|
+
|
|
75
|
+
## 9.0.0-canary.64
|
|
76
|
+
|
|
77
|
+
## 9.0.0-canary.63
|
|
78
|
+
|
|
79
|
+
## 9.0.0-canary.62
|
|
80
|
+
|
|
81
|
+
## 9.0.0-canary.61
|
|
82
|
+
|
|
83
|
+
## 9.0.0-canary.60
|
|
84
|
+
|
|
85
|
+
## 9.0.0-canary.59
|
|
86
|
+
|
|
87
|
+
## 9.0.0-canary.58
|
|
88
|
+
|
|
89
|
+
## 9.0.0-canary.57
|
|
90
|
+
|
|
91
|
+
## 9.0.0-canary.56
|
|
92
|
+
|
|
93
|
+
## 9.0.0-canary.55
|
|
94
|
+
|
|
95
|
+
## 9.0.0-canary.54
|
|
96
|
+
|
|
97
|
+
## 8.1.0-canary.53
|
|
98
|
+
|
|
99
|
+
## 8.1.0-canary.52
|
|
100
|
+
|
|
101
|
+
## 8.1.0-canary.51
|
|
102
|
+
|
|
103
|
+
## 8.1.0-canary.50
|
|
104
|
+
|
|
105
|
+
## 8.1.0-canary.49
|
|
106
|
+
|
|
107
|
+
## 8.1.0-canary.48
|
|
108
|
+
|
|
109
|
+
## 8.1.0-canary.47
|
|
110
|
+
|
|
111
|
+
## 8.1.0-canary.46
|
|
112
|
+
|
|
113
|
+
## 8.1.0-canary.45
|
|
114
|
+
|
|
115
|
+
## 8.1.0-canary.44
|
|
116
|
+
|
|
117
|
+
## 8.1.0-canary.43
|
|
118
|
+
|
|
119
|
+
## 8.1.0-canary.42
|
|
120
|
+
|
|
121
|
+
## 8.1.0-canary.41
|
|
122
|
+
|
|
123
|
+
## 8.1.0-canary.40
|
|
124
|
+
|
|
125
|
+
## 8.1.0-canary.39
|
|
126
|
+
|
|
127
|
+
## 8.1.0-canary.38
|
|
128
|
+
|
|
129
|
+
## 8.1.0-canary.37
|
|
130
|
+
|
|
131
|
+
## 8.1.0-canary.36
|
|
132
|
+
|
|
133
|
+
## 8.1.0-canary.35
|
|
134
|
+
|
|
135
|
+
## 8.1.0-canary.34
|
|
136
|
+
|
|
137
|
+
## 8.1.0-canary.33
|
|
138
|
+
|
|
139
|
+
## 8.1.0-canary.32
|
|
140
|
+
|
|
141
|
+
## 8.1.0-canary.31
|
|
142
|
+
|
|
143
|
+
## 8.1.0-canary.30
|
|
144
|
+
|
|
145
|
+
## 8.1.0-canary.29
|
|
146
|
+
|
|
147
|
+
## 8.1.0-canary.28
|
|
148
|
+
|
|
149
|
+
## 8.1.0-canary.27
|
|
150
|
+
|
|
151
|
+
## 8.1.0-canary.26
|
|
152
|
+
|
|
153
|
+
## 8.1.0-canary.25
|
|
154
|
+
|
|
155
|
+
## 8.1.0-canary.24
|
|
156
|
+
|
|
157
|
+
## 8.1.0-canary.23
|
|
158
|
+
|
|
159
|
+
## 8.1.0-canary.22
|
|
160
|
+
|
|
161
|
+
## 8.1.0-canary.21
|
|
162
|
+
|
|
163
|
+
## 8.1.0-canary.20
|
|
164
|
+
|
|
165
|
+
## 8.1.0-canary.19
|
|
166
|
+
|
|
167
|
+
## 8.1.0-canary.18
|
|
168
|
+
|
|
169
|
+
## 8.1.0-canary.17
|
|
170
|
+
|
|
171
|
+
## 8.1.0-canary.16
|
|
172
|
+
|
|
173
|
+
## 8.1.0-canary.15
|
|
174
|
+
|
|
175
|
+
## 8.1.0-canary.14
|
|
176
|
+
|
|
177
|
+
## 8.1.0-canary.13
|
|
178
|
+
|
|
179
|
+
## 8.1.0-canary.12
|
|
180
|
+
|
|
181
|
+
## 8.1.0-canary.11
|
|
182
|
+
|
|
183
|
+
## 8.1.0-canary.10
|
|
184
|
+
|
|
3
185
|
## 8.1.0-canary.9
|
|
4
186
|
|
|
5
187
|
## 8.1.0-canary.8
|
|
@@ -92,8 +274,7 @@
|
|
|
92
274
|
|
|
93
275
|
### Minor Changes
|
|
94
276
|
|
|
95
|
-
- [#2099](https://github.com/graphcommerce-org/graphcommerce/pull/2099) [`ff796b8`](https://github.com/graphcommerce-org/graphcommerce/commit/ff796b838fae6cb5e35b101500133b0235a8677d) - Support for all customizable product options (except file upload) on the product pages and in the cart.
|
|
96
|
-
([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
277
|
+
- [#2099](https://github.com/graphcommerce-org/graphcommerce/pull/2099) [`ff796b8`](https://github.com/graphcommerce-org/graphcommerce/commit/ff796b838fae6cb5e35b101500133b0235a8677d) - Support for all customizable product options (except file upload) on the product pages and in the cart. ([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
97
278
|
|
|
98
279
|
## 8.0.0-canary.100
|
|
99
280
|
|
|
@@ -157,8 +338,7 @@
|
|
|
157
338
|
|
|
158
339
|
### Minor Changes
|
|
159
340
|
|
|
160
|
-
- [#2099](https://github.com/graphcommerce-org/graphcommerce/pull/2099) [`ff796b8`](https://github.com/graphcommerce-org/graphcommerce/commit/ff796b838fae6cb5e35b101500133b0235a8677d) - Created UI for all customizable options except for the file upload customizable option
|
|
161
|
-
([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
341
|
+
- [#2099](https://github.com/graphcommerce-org/graphcommerce/pull/2099) [`ff796b8`](https://github.com/graphcommerce-org/graphcommerce/commit/ff796b838fae6cb5e35b101500133b0235a8677d) - Created UI for all customizable options except for the file upload customizable option ([@Jessevdpoel](https://github.com/Jessevdpoel))
|
|
162
342
|
|
|
163
343
|
## 8.0.0-canary.70
|
|
164
344
|
|
|
@@ -1254,31 +1434,31 @@
|
|
|
1254
1434
|
All occurences of `<Trans>` and `t` need to be replaced:
|
|
1255
1435
|
|
|
1256
1436
|
```tsx
|
|
1257
|
-
import { Trans, t } from
|
|
1437
|
+
import { Trans, t } from '@lingui/macro'
|
|
1258
1438
|
|
|
1259
1439
|
function MyComponent() {
|
|
1260
|
-
const foo =
|
|
1440
|
+
const foo = 'bar'
|
|
1261
1441
|
return (
|
|
1262
1442
|
<div aria-label={t`Account ${foo}`}>
|
|
1263
1443
|
<Trans>My Translation {foo}</Trans>
|
|
1264
1444
|
</div>
|
|
1265
|
-
)
|
|
1445
|
+
)
|
|
1266
1446
|
}
|
|
1267
1447
|
```
|
|
1268
1448
|
|
|
1269
1449
|
Needs to be replaced with:
|
|
1270
1450
|
|
|
1271
1451
|
```tsx
|
|
1272
|
-
import { Trans } from
|
|
1273
|
-
import { i18n } from
|
|
1452
|
+
import { Trans } from '@lingui/react'
|
|
1453
|
+
import { i18n } from '@lingui/core'
|
|
1274
1454
|
|
|
1275
1455
|
function MyComponent() {
|
|
1276
|
-
const foo =
|
|
1456
|
+
const foo = 'bar'
|
|
1277
1457
|
return (
|
|
1278
1458
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
1279
|
-
<Trans key=
|
|
1459
|
+
<Trans key='My Translation {foo}' values={{ foo }}></Trans>
|
|
1280
1460
|
</div>
|
|
1281
|
-
)
|
|
1461
|
+
)
|
|
1282
1462
|
}
|
|
1283
1463
|
```
|
|
1284
1464
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-product-simple",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "9.0.0-canary.100",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^
|
|
16
|
-
"@graphcommerce/graphql": "^
|
|
17
|
-
"@graphcommerce/magento-cart": "^
|
|
18
|
-
"@graphcommerce/magento-cart-items": "^
|
|
19
|
-
"@graphcommerce/magento-product": "^
|
|
20
|
-
"@graphcommerce/next-ui": "^
|
|
21
|
-
"@graphcommerce/prettier-config-pwa": "^
|
|
22
|
-
"@graphcommerce/typescript-config-pwa": "^
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.100",
|
|
16
|
+
"@graphcommerce/graphql": "^9.0.0-canary.100",
|
|
17
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.100",
|
|
18
|
+
"@graphcommerce/magento-cart-items": "^9.0.0-canary.100",
|
|
19
|
+
"@graphcommerce/magento-product": "^9.0.0-canary.100",
|
|
20
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.100",
|
|
21
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.100",
|
|
22
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.100",
|
|
23
23
|
"@lingui/core": "^4.2.1",
|
|
24
24
|
"@lingui/macro": "^4.2.1",
|
|
25
25
|
"@lingui/react": "^4.2.1",
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SelectedCustomizableOptions,
|
|
3
|
-
type CartItemActionCard,
|
|
4
3
|
CartItemActionCardProps,
|
|
5
4
|
} from '@graphcommerce/magento-cart-items'
|
|
6
|
-
import type { PluginProps } from '@graphcommerce/next-config'
|
|
5
|
+
import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
|
|
7
6
|
import { isTypename } from '@graphcommerce/next-ui'
|
|
8
7
|
|
|
9
|
-
export const
|
|
10
|
-
|
|
8
|
+
export const config: PluginConfig = {
|
|
9
|
+
type: 'component',
|
|
10
|
+
module: '@graphcommerce/magento-cart-items',
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
export function
|
|
13
|
+
export function CartItemActionCard(props: PluginProps<CartItemActionCardProps>) {
|
|
13
14
|
const { Prev, ...rest } = props
|
|
14
15
|
|
|
15
16
|
if (!isTypename(rest.cartItem, ['SimpleCartItem'])) return <Prev {...rest} />
|
|
@@ -26,5 +27,3 @@ export function SimpleCartItemActionCard(props: PluginProps<CartItemActionCardPr
|
|
|
26
27
|
/>
|
|
27
28
|
)
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
-
export const Plugin = SimpleCartItemActionCard
|