@graphcommerce/magento-newsletter 8.1.0-canary.9 → 9.0.0-canary.101
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +207 -14
- package/components/CheckoutNewsletter/CheckoutNewsletter.tsx +1 -1
- package/components/CheckoutNewsletter/SubscribeCustomer.graphql +1 -1
- package/components/CustomerNewsletterToggle/UpdateNewsletterSubscription.graphql +1 -1
- package/components/GuestNewsletter/GuestNewsletter.tsx +4 -6
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,201 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 9.0.0-canary.101
|
4
|
+
|
5
|
+
## 9.0.0-canary.100
|
6
|
+
|
7
|
+
## 9.0.0-canary.99
|
8
|
+
|
9
|
+
## 9.0.0-canary.98
|
10
|
+
|
11
|
+
## 9.0.0-canary.97
|
12
|
+
|
13
|
+
## 9.0.0-canary.96
|
14
|
+
|
15
|
+
## 9.0.0-canary.95
|
16
|
+
|
17
|
+
## 9.0.0-canary.94
|
18
|
+
|
19
|
+
## 9.0.0-canary.93
|
20
|
+
|
21
|
+
## 9.0.0-canary.92
|
22
|
+
|
23
|
+
## 9.0.0-canary.91
|
24
|
+
|
25
|
+
## 9.0.0-canary.90
|
26
|
+
|
27
|
+
## 9.0.0-canary.89
|
28
|
+
|
29
|
+
## 9.0.0-canary.88
|
30
|
+
|
31
|
+
## 9.0.0-canary.87
|
32
|
+
|
33
|
+
## 9.0.0-canary.86
|
34
|
+
|
35
|
+
## 9.0.0-canary.85
|
36
|
+
|
37
|
+
## 9.0.0-canary.84
|
38
|
+
|
39
|
+
## 9.0.0-canary.83
|
40
|
+
|
41
|
+
## 9.0.0-canary.82
|
42
|
+
|
43
|
+
## 9.0.0-canary.81
|
44
|
+
|
45
|
+
## 9.0.0-canary.80
|
46
|
+
|
47
|
+
## 9.0.0-canary.79
|
48
|
+
|
49
|
+
## 9.0.0-canary.78
|
50
|
+
|
51
|
+
## 9.0.0-canary.77
|
52
|
+
|
53
|
+
## 9.0.0-canary.76
|
54
|
+
|
55
|
+
## 9.0.0-canary.75
|
56
|
+
|
57
|
+
## 9.0.0-canary.74
|
58
|
+
|
59
|
+
## 9.0.0-canary.73
|
60
|
+
|
61
|
+
## 9.0.0-canary.72
|
62
|
+
|
63
|
+
## 9.0.0-canary.71
|
64
|
+
|
65
|
+
## 9.0.0-canary.70
|
66
|
+
|
67
|
+
## 9.0.0-canary.69
|
68
|
+
|
69
|
+
## 9.0.0-canary.68
|
70
|
+
|
71
|
+
## 9.0.0-canary.67
|
72
|
+
|
73
|
+
## 9.0.0-canary.66
|
74
|
+
|
75
|
+
## 9.0.0-canary.65
|
76
|
+
|
77
|
+
## 9.0.0-canary.64
|
78
|
+
|
79
|
+
## 9.0.0-canary.63
|
80
|
+
|
81
|
+
## 9.0.0-canary.62
|
82
|
+
|
83
|
+
## 9.0.0-canary.61
|
84
|
+
|
85
|
+
## 9.0.0-canary.60
|
86
|
+
|
87
|
+
## 9.0.0-canary.59
|
88
|
+
|
89
|
+
## 9.0.0-canary.58
|
90
|
+
|
91
|
+
## 9.0.0-canary.57
|
92
|
+
|
93
|
+
## 9.0.0-canary.56
|
94
|
+
|
95
|
+
## 9.0.0-canary.55
|
96
|
+
|
97
|
+
## 9.0.0-canary.54
|
98
|
+
|
99
|
+
## 8.1.0-canary.53
|
100
|
+
|
101
|
+
## 8.1.0-canary.52
|
102
|
+
|
103
|
+
### Minor Changes
|
104
|
+
|
105
|
+
- [#2320](https://github.com/graphcommerce-org/graphcommerce/pull/2320) [`dc5e85c`](https://github.com/graphcommerce-org/graphcommerce/commit/dc5e85c95dad6145fde02a6e54f0fbd1cdfe9e3d) - Replace depricated updateCustomer mutations with updateCustomerV2 ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
106
|
+
|
107
|
+
## 8.1.0-canary.51
|
108
|
+
|
109
|
+
## 8.1.0-canary.50
|
110
|
+
|
111
|
+
## 8.1.0-canary.49
|
112
|
+
|
113
|
+
## 8.1.0-canary.48
|
114
|
+
|
115
|
+
## 8.1.0-canary.47
|
116
|
+
|
117
|
+
## 8.1.0-canary.46
|
118
|
+
|
119
|
+
## 8.1.0-canary.45
|
120
|
+
|
121
|
+
## 8.1.0-canary.44
|
122
|
+
|
123
|
+
## 8.1.0-canary.43
|
124
|
+
|
125
|
+
## 8.1.0-canary.42
|
126
|
+
|
127
|
+
## 8.1.0-canary.41
|
128
|
+
|
129
|
+
## 8.1.0-canary.40
|
130
|
+
|
131
|
+
## 8.1.0-canary.39
|
132
|
+
|
133
|
+
## 8.1.0-canary.38
|
134
|
+
|
135
|
+
### Patch Changes
|
136
|
+
|
137
|
+
- [#2305](https://github.com/graphcommerce-org/graphcommerce/pull/2305) [`77e8297`](https://github.com/graphcommerce-org/graphcommerce/commit/77e82976816994336c616208a651cb18ce9ea270) - Fix bug with persist not applying saved changes by moving <FromPersist/> below the form components ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
138
|
+
|
139
|
+
## 8.1.0-canary.37
|
140
|
+
|
141
|
+
## 8.1.0-canary.36
|
142
|
+
|
143
|
+
## 8.1.0-canary.35
|
144
|
+
|
145
|
+
### Patch Changes
|
146
|
+
|
147
|
+
- [#2301](https://github.com/graphcommerce-org/graphcommerce/pull/2301) [`13d0649`](https://github.com/graphcommerce-org/graphcommerce/commit/13d06498d121f93b52c25930e50aa3b0bd12a818) - Created a new EmailElement component to make re-use easier ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
148
|
+
|
149
|
+
## 8.1.0-canary.34
|
150
|
+
|
151
|
+
## 8.1.0-canary.33
|
152
|
+
|
153
|
+
## 8.1.0-canary.32
|
154
|
+
|
155
|
+
## 8.1.0-canary.31
|
156
|
+
|
157
|
+
## 8.1.0-canary.30
|
158
|
+
|
159
|
+
## 8.1.0-canary.29
|
160
|
+
|
161
|
+
## 8.1.0-canary.28
|
162
|
+
|
163
|
+
## 8.1.0-canary.27
|
164
|
+
|
165
|
+
## 8.1.0-canary.26
|
166
|
+
|
167
|
+
## 8.1.0-canary.25
|
168
|
+
|
169
|
+
## 8.1.0-canary.24
|
170
|
+
|
171
|
+
## 8.1.0-canary.23
|
172
|
+
|
173
|
+
## 8.1.0-canary.22
|
174
|
+
|
175
|
+
## 8.1.0-canary.21
|
176
|
+
|
177
|
+
## 8.1.0-canary.20
|
178
|
+
|
179
|
+
## 8.1.0-canary.19
|
180
|
+
|
181
|
+
## 8.1.0-canary.18
|
182
|
+
|
183
|
+
## 8.1.0-canary.17
|
184
|
+
|
185
|
+
## 8.1.0-canary.16
|
186
|
+
|
187
|
+
## 8.1.0-canary.15
|
188
|
+
|
189
|
+
## 8.1.0-canary.14
|
190
|
+
|
191
|
+
## 8.1.0-canary.13
|
192
|
+
|
193
|
+
## 8.1.0-canary.12
|
194
|
+
|
195
|
+
## 8.1.0-canary.11
|
196
|
+
|
197
|
+
## 8.1.0-canary.10
|
198
|
+
|
3
199
|
## 8.1.0-canary.9
|
4
200
|
|
5
201
|
## 8.1.0-canary.8
|
@@ -18,8 +214,7 @@
|
|
18
214
|
|
19
215
|
### Patch Changes
|
20
216
|
|
21
|
-
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`530076e`](https://github.com/graphcommerce-org/graphcommerce/commit/530076e3664703cb8b577b7fcf1998a420819f60) - Moved all usages of useFormPersist to the <FormPersist/> component to prevent rerenders.
|
22
|
-
([@FrankHarland](https://github.com/FrankHarland))
|
217
|
+
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`530076e`](https://github.com/graphcommerce-org/graphcommerce/commit/530076e3664703cb8b577b7fcf1998a420819f60) - Moved all usages of useFormPersist to the <FormPersist/> component to prevent rerenders. ([@FrankHarland](https://github.com/FrankHarland))
|
23
218
|
|
24
219
|
## 8.0.6-canary.1
|
25
220
|
|
@@ -59,8 +254,7 @@
|
|
59
254
|
|
60
255
|
### Patch Changes
|
61
256
|
|
62
|
-
- [#2205](https://github.com/graphcommerce-org/graphcommerce/pull/2205) [`d67c89d`](https://github.com/graphcommerce-org/graphcommerce/commit/d67c89d464a60f0e2618dab670b63a39f6291341) - Deprecate the allowUrl option for useCartQuery, it was already enabled by default and should never be set to false.
|
63
|
-
([@paales](https://github.com/paales))
|
257
|
+
- [#2205](https://github.com/graphcommerce-org/graphcommerce/pull/2205) [`d67c89d`](https://github.com/graphcommerce-org/graphcommerce/commit/d67c89d464a60f0e2618dab670b63a39f6291341) - Deprecate the allowUrl option for useCartQuery, it was already enabled by default and should never be set to false. ([@paales](https://github.com/paales))
|
64
258
|
|
65
259
|
## 8.0.3-canary.6
|
66
260
|
|
@@ -74,8 +268,7 @@
|
|
74
268
|
|
75
269
|
### Patch Changes
|
76
270
|
|
77
|
-
- [#2205](https://github.com/graphcommerce-org/graphcommerce/pull/2205) [`d67c89d`](https://github.com/graphcommerce-org/graphcommerce/commit/d67c89d464a60f0e2618dab670b63a39f6291341) - Deprecate the allowUrl option for useCartQuery, it was already enabled by default and should never be set to false.
|
78
|
-
([@paales](https://github.com/paales))
|
271
|
+
- [#2205](https://github.com/graphcommerce-org/graphcommerce/pull/2205) [`d67c89d`](https://github.com/graphcommerce-org/graphcommerce/commit/d67c89d464a60f0e2618dab670b63a39f6291341) - Deprecate the allowUrl option for useCartQuery, it was already enabled by default and should never be set to false. ([@paales](https://github.com/paales))
|
79
272
|
|
80
273
|
## 8.0.3-canary.1
|
81
274
|
|
@@ -1312,31 +1505,31 @@
|
|
1312
1505
|
All occurences of `<Trans>` and `t` need to be replaced:
|
1313
1506
|
|
1314
1507
|
```tsx
|
1315
|
-
import { Trans, t } from
|
1508
|
+
import { Trans, t } from '@lingui/macro'
|
1316
1509
|
|
1317
1510
|
function MyComponent() {
|
1318
|
-
const foo =
|
1511
|
+
const foo = 'bar'
|
1319
1512
|
return (
|
1320
1513
|
<div aria-label={t`Account ${foo}`}>
|
1321
1514
|
<Trans>My Translation {foo}</Trans>
|
1322
1515
|
</div>
|
1323
|
-
)
|
1516
|
+
)
|
1324
1517
|
}
|
1325
1518
|
```
|
1326
1519
|
|
1327
1520
|
Needs to be replaced with:
|
1328
1521
|
|
1329
1522
|
```tsx
|
1330
|
-
import { Trans } from
|
1331
|
-
import { i18n } from
|
1523
|
+
import { Trans } from '@lingui/react'
|
1524
|
+
import { i18n } from '@lingui/core'
|
1332
1525
|
|
1333
1526
|
function MyComponent() {
|
1334
|
-
const foo =
|
1527
|
+
const foo = 'bar'
|
1335
1528
|
return (
|
1336
1529
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
1337
|
-
<Trans key=
|
1530
|
+
<Trans key='My Translation {foo}' values={{ foo }}></Trans>
|
1338
1531
|
</div>
|
1339
|
-
)
|
1532
|
+
)
|
1340
1533
|
}
|
1341
1534
|
```
|
1342
1535
|
|
@@ -49,10 +49,10 @@ export function SubscribeToNewsletter(props: CheckoutNewsletterProps) {
|
|
49
49
|
|
50
50
|
return (
|
51
51
|
<Box sx={sx}>
|
52
|
-
<FormPersist form={form} name='NewsletterSubscribeForm' />
|
53
52
|
<form onSubmit={submit} noValidate>
|
54
53
|
<CheckboxElement color='secondary' control={control} name='subscribe' label={label} />
|
55
54
|
</form>
|
55
|
+
<FormPersist form={form} name='NewsletterSubscribeForm' />
|
56
56
|
</Box>
|
57
57
|
)
|
58
58
|
}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import {
|
2
2
|
ApolloErrorSnackbar,
|
3
|
+
EmailElement,
|
3
4
|
TextFieldElement,
|
4
5
|
useFormGqlMutation,
|
5
6
|
} from '@graphcommerce/ecommerce-ui'
|
@@ -28,15 +29,12 @@ export function GuestNewsletter(props: GuestNewsletterProps) {
|
|
28
29
|
onSubmit={submit}
|
29
30
|
sx={[(theme) => ({ gap: theme.spacings.xs }), ...(Array.isArray(sx) ? sx : [sx])]}
|
30
31
|
>
|
31
|
-
<
|
32
|
-
required
|
33
|
-
variant='outlined'
|
34
|
-
type='email'
|
35
|
-
label={i18n._(/* i18n */ 'Email address')}
|
32
|
+
<EmailElement
|
36
33
|
control={control}
|
37
34
|
name='email'
|
35
|
+
required
|
36
|
+
variant='outlined'
|
38
37
|
size='medium'
|
39
|
-
inputProps={{ autoComplete: 'email' }}
|
40
38
|
disabled={submittedWithoutErrors}
|
41
39
|
/>
|
42
40
|
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@graphcommerce/magento-newsletter",
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
5
|
-
"version": "
|
5
|
+
"version": "9.0.0-canary.101",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -12,15 +12,15 @@
|
|
12
12
|
}
|
13
13
|
},
|
14
14
|
"peerDependencies": {
|
15
|
-
"@graphcommerce/ecommerce-ui": "^
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^
|
17
|
-
"@graphcommerce/graphql": "^
|
18
|
-
"@graphcommerce/magento-cart": "^
|
19
|
-
"@graphcommerce/magento-customer": "^
|
20
|
-
"@graphcommerce/next-ui": "^
|
21
|
-
"@graphcommerce/prettier-config-pwa": "^
|
22
|
-
"@graphcommerce/react-hook-form": "^
|
23
|
-
"@graphcommerce/typescript-config-pwa": "^
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.101",
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.101",
|
17
|
+
"@graphcommerce/graphql": "^9.0.0-canary.101",
|
18
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.101",
|
19
|
+
"@graphcommerce/magento-customer": "^9.0.0-canary.101",
|
20
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.101",
|
21
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.101",
|
22
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.101",
|
23
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.101",
|
24
24
|
"@lingui/core": "^4.2.1",
|
25
25
|
"@lingui/macro": "^4.2.1",
|
26
26
|
"@lingui/react": "^4.2.1",
|