@graphcommerce/magento-newsletter 8.1.0-canary.9 → 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 CHANGED
@@ -1,5 +1,199 @@
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
+
3
197
  ## 8.1.0-canary.9
4
198
 
5
199
  ## 8.1.0-canary.8
@@ -18,8 +212,7 @@
18
212
 
19
213
  ### Patch Changes
20
214
 
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))
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))
23
216
 
24
217
  ## 8.0.6-canary.1
25
218
 
@@ -59,8 +252,7 @@
59
252
 
60
253
  ### Patch Changes
61
254
 
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))
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))
64
256
 
65
257
  ## 8.0.3-canary.6
66
258
 
@@ -74,8 +266,7 @@
74
266
 
75
267
  ### Patch Changes
76
268
 
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))
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))
79
270
 
80
271
  ## 8.0.3-canary.1
81
272
 
@@ -1312,31 +1503,31 @@
1312
1503
  All occurences of `<Trans>` and `t` need to be replaced:
1313
1504
 
1314
1505
  ```tsx
1315
- import { Trans, t } from "@lingui/macro";
1506
+ import { Trans, t } from '@lingui/macro'
1316
1507
 
1317
1508
  function MyComponent() {
1318
- const foo = "bar";
1509
+ const foo = 'bar'
1319
1510
  return (
1320
1511
  <div aria-label={t`Account ${foo}`}>
1321
1512
  <Trans>My Translation {foo}</Trans>
1322
1513
  </div>
1323
- );
1514
+ )
1324
1515
  }
1325
1516
  ```
1326
1517
 
1327
1518
  Needs to be replaced with:
1328
1519
 
1329
1520
  ```tsx
1330
- import { Trans } from "@lingui/react";
1331
- import { i18n } from "@lingui/core";
1521
+ import { Trans } from '@lingui/react'
1522
+ import { i18n } from '@lingui/core'
1332
1523
 
1333
1524
  function MyComponent() {
1334
- const foo = "bar";
1525
+ const foo = 'bar'
1335
1526
  return (
1336
1527
  <div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
1337
- <Trans key="My Translation {foo}" values={{ foo }}></Trans>
1528
+ <Trans key='My Translation {foo}' values={{ foo }}></Trans>
1338
1529
  </div>
1339
- );
1530
+ )
1340
1531
  }
1341
1532
  ```
1342
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,5 @@
1
1
  mutation SubscribeCustomer {
2
- updateCustomer(input: { is_subscribed: true }) {
2
+ updateCustomerV2(input: { is_subscribed: true }) {
3
3
  customer {
4
4
  is_subscribed
5
5
  }
@@ -1,5 +1,5 @@
1
1
  mutation UpdateNewsletterSubscription($isSubscribed: Boolean!) {
2
- updateCustomer(input: { is_subscribed: $isSubscribed }) {
2
+ updateCustomerV2(input: { is_subscribed: $isSubscribed }) {
3
3
  customer {
4
4
  is_subscribed
5
5
  }
@@ -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
- <TextFieldElement
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": "8.1.0-canary.9",
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": "^8.1.0-canary.9",
16
- "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.9",
17
- "@graphcommerce/graphql": "^8.1.0-canary.9",
18
- "@graphcommerce/magento-cart": "^8.1.0-canary.9",
19
- "@graphcommerce/magento-customer": "^8.1.0-canary.9",
20
- "@graphcommerce/next-ui": "^8.1.0-canary.9",
21
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.9",
22
- "@graphcommerce/react-hook-form": "^8.1.0-canary.9",
23
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.9",
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",