@graphcommerce/magento-newsletter 8.1.0-canary.8 → 9.0.0-canary.100
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.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
|
+
### Minor Changes
|
102
|
+
|
103
|
+
- [#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))
|
104
|
+
|
105
|
+
## 8.1.0-canary.51
|
106
|
+
|
107
|
+
## 8.1.0-canary.50
|
108
|
+
|
109
|
+
## 8.1.0-canary.49
|
110
|
+
|
111
|
+
## 8.1.0-canary.48
|
112
|
+
|
113
|
+
## 8.1.0-canary.47
|
114
|
+
|
115
|
+
## 8.1.0-canary.46
|
116
|
+
|
117
|
+
## 8.1.0-canary.45
|
118
|
+
|
119
|
+
## 8.1.0-canary.44
|
120
|
+
|
121
|
+
## 8.1.0-canary.43
|
122
|
+
|
123
|
+
## 8.1.0-canary.42
|
124
|
+
|
125
|
+
## 8.1.0-canary.41
|
126
|
+
|
127
|
+
## 8.1.0-canary.40
|
128
|
+
|
129
|
+
## 8.1.0-canary.39
|
130
|
+
|
131
|
+
## 8.1.0-canary.38
|
132
|
+
|
133
|
+
### Patch Changes
|
134
|
+
|
135
|
+
- [#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))
|
136
|
+
|
137
|
+
## 8.1.0-canary.37
|
138
|
+
|
139
|
+
## 8.1.0-canary.36
|
140
|
+
|
141
|
+
## 8.1.0-canary.35
|
142
|
+
|
143
|
+
### Patch Changes
|
144
|
+
|
145
|
+
- [#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))
|
146
|
+
|
147
|
+
## 8.1.0-canary.34
|
148
|
+
|
149
|
+
## 8.1.0-canary.33
|
150
|
+
|
151
|
+
## 8.1.0-canary.32
|
152
|
+
|
153
|
+
## 8.1.0-canary.31
|
154
|
+
|
155
|
+
## 8.1.0-canary.30
|
156
|
+
|
157
|
+
## 8.1.0-canary.29
|
158
|
+
|
159
|
+
## 8.1.0-canary.28
|
160
|
+
|
161
|
+
## 8.1.0-canary.27
|
162
|
+
|
163
|
+
## 8.1.0-canary.26
|
164
|
+
|
165
|
+
## 8.1.0-canary.25
|
166
|
+
|
167
|
+
## 8.1.0-canary.24
|
168
|
+
|
169
|
+
## 8.1.0-canary.23
|
170
|
+
|
171
|
+
## 8.1.0-canary.22
|
172
|
+
|
173
|
+
## 8.1.0-canary.21
|
174
|
+
|
175
|
+
## 8.1.0-canary.20
|
176
|
+
|
177
|
+
## 8.1.0-canary.19
|
178
|
+
|
179
|
+
## 8.1.0-canary.18
|
180
|
+
|
181
|
+
## 8.1.0-canary.17
|
182
|
+
|
183
|
+
## 8.1.0-canary.16
|
184
|
+
|
185
|
+
## 8.1.0-canary.15
|
186
|
+
|
187
|
+
## 8.1.0-canary.14
|
188
|
+
|
189
|
+
## 8.1.0-canary.13
|
190
|
+
|
191
|
+
## 8.1.0-canary.12
|
192
|
+
|
193
|
+
## 8.1.0-canary.11
|
194
|
+
|
195
|
+
## 8.1.0-canary.10
|
196
|
+
|
197
|
+
## 8.1.0-canary.9
|
198
|
+
|
3
199
|
## 8.1.0-canary.8
|
4
200
|
|
5
201
|
## 8.1.0-canary.7
|
@@ -16,8 +212,7 @@
|
|
16
212
|
|
17
213
|
### Patch Changes
|
18
214
|
|
19
|
-
- [#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.
|
20
|
-
([@FrankHarland](https://github.com/FrankHarland))
|
215
|
+
- [#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))
|
21
216
|
|
22
217
|
## 8.0.6-canary.1
|
23
218
|
|
@@ -57,8 +252,7 @@
|
|
57
252
|
|
58
253
|
### Patch Changes
|
59
254
|
|
60
|
-
- [#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.
|
61
|
-
([@paales](https://github.com/paales))
|
255
|
+
- [#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))
|
62
256
|
|
63
257
|
## 8.0.3-canary.6
|
64
258
|
|
@@ -72,8 +266,7 @@
|
|
72
266
|
|
73
267
|
### Patch Changes
|
74
268
|
|
75
|
-
- [#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.
|
76
|
-
([@paales](https://github.com/paales))
|
269
|
+
- [#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))
|
77
270
|
|
78
271
|
## 8.0.3-canary.1
|
79
272
|
|
@@ -1310,31 +1503,31 @@
|
|
1310
1503
|
All occurences of `<Trans>` and `t` need to be replaced:
|
1311
1504
|
|
1312
1505
|
```tsx
|
1313
|
-
import { Trans, t } from
|
1506
|
+
import { Trans, t } from '@lingui/macro'
|
1314
1507
|
|
1315
1508
|
function MyComponent() {
|
1316
|
-
const foo =
|
1509
|
+
const foo = 'bar'
|
1317
1510
|
return (
|
1318
1511
|
<div aria-label={t`Account ${foo}`}>
|
1319
1512
|
<Trans>My Translation {foo}</Trans>
|
1320
1513
|
</div>
|
1321
|
-
)
|
1514
|
+
)
|
1322
1515
|
}
|
1323
1516
|
```
|
1324
1517
|
|
1325
1518
|
Needs to be replaced with:
|
1326
1519
|
|
1327
1520
|
```tsx
|
1328
|
-
import { Trans } from
|
1329
|
-
import { i18n } from
|
1521
|
+
import { Trans } from '@lingui/react'
|
1522
|
+
import { i18n } from '@lingui/core'
|
1330
1523
|
|
1331
1524
|
function MyComponent() {
|
1332
|
-
const foo =
|
1525
|
+
const foo = 'bar'
|
1333
1526
|
return (
|
1334
1527
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
1335
|
-
<Trans key=
|
1528
|
+
<Trans key='My Translation {foo}' values={{ foo }}></Trans>
|
1336
1529
|
</div>
|
1337
|
-
)
|
1530
|
+
)
|
1338
1531
|
}
|
1339
1532
|
```
|
1340
1533
|
|
@@ -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.100",
|
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.100",
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.100",
|
17
|
+
"@graphcommerce/graphql": "^9.0.0-canary.100",
|
18
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.100",
|
19
|
+
"@graphcommerce/magento-customer": "^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/react-hook-form": "^9.0.0-canary.100",
|
23
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.100",
|
24
24
|
"@lingui/core": "^4.2.1",
|
25
25
|
"@lingui/macro": "^4.2.1",
|
26
26
|
"@lingui/react": "^4.2.1",
|