@graphcommerce/magento-cart-email 10.0.0-canary.72 → 10.0.1-canary.0
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 +5 -143
- package/EmailForm/EmailForm.tsx +2 -2
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,42 +1,12 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 10.0.
|
|
4
|
-
|
|
5
|
-
## 10.0.0-canary.71
|
|
6
|
-
|
|
7
|
-
## 10.0.0-canary.70
|
|
8
|
-
|
|
9
|
-
## 10.0.0-canary.69
|
|
10
|
-
|
|
11
|
-
## 10.0.0-canary.68
|
|
12
|
-
|
|
13
|
-
## 10.0.0-canary.67
|
|
14
|
-
|
|
15
|
-
## 10.0.0-canary.66
|
|
16
|
-
|
|
17
|
-
## 10.0.0-canary.65
|
|
18
|
-
|
|
19
|
-
## 10.0.0-canary.64
|
|
3
|
+
## 10.0.1-canary.0
|
|
20
4
|
|
|
21
5
|
### Patch Changes
|
|
22
6
|
|
|
23
|
-
- [#
|
|
24
|
-
|
|
25
|
-
## 10.0.0-canary.63
|
|
26
|
-
|
|
27
|
-
## 10.0.0-canary.62
|
|
28
|
-
|
|
29
|
-
## 10.0.0-canary.61
|
|
30
|
-
|
|
31
|
-
## 10.0.0-canary.60
|
|
32
|
-
|
|
33
|
-
## 10.0.0-canary.59
|
|
7
|
+
- [#2568](https://github.com/graphcommerce-org/graphcommerce/pull/2568) [`dc57da4`](https://github.com/graphcommerce-org/graphcommerce/commit/dc57da4897365ddb2b779eab3ad2b3a350ed115c) - Moved from form.watch to useWatch everywhere which works even if the fields are later initialized. ([@paales](https://github.com/paales))
|
|
34
8
|
|
|
35
|
-
## 10.0.0
|
|
36
|
-
|
|
37
|
-
## 10.0.0-canary.57
|
|
38
|
-
|
|
39
|
-
## 10.0.0-canary.56
|
|
9
|
+
## 10.0.0
|
|
40
10
|
|
|
41
11
|
### Major Changes
|
|
42
12
|
|
|
@@ -116,117 +86,9 @@
|
|
|
116
86
|
- `@mui/*` modern alias rewrites
|
|
117
87
|
- Debug plugins (`CircularDependencyPlugin`, `DuplicatesPlugin`) ([@paales](https://github.com/paales))
|
|
118
88
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
## 9.1.0-canary.54
|
|
122
|
-
|
|
123
|
-
## 9.1.0-canary.53
|
|
124
|
-
|
|
125
|
-
## 9.1.0-canary.52
|
|
126
|
-
|
|
127
|
-
## 9.1.0-canary.51
|
|
128
|
-
|
|
129
|
-
## 9.1.0-canary.50
|
|
130
|
-
|
|
131
|
-
## 9.1.0-canary.49
|
|
132
|
-
|
|
133
|
-
## 9.1.0-canary.48
|
|
134
|
-
|
|
135
|
-
## 9.1.0-canary.47
|
|
136
|
-
|
|
137
|
-
## 9.1.0-canary.46
|
|
138
|
-
|
|
139
|
-
## 9.1.0-canary.45
|
|
140
|
-
|
|
141
|
-
## 9.1.0-canary.44
|
|
142
|
-
|
|
143
|
-
## 9.1.0-canary.43
|
|
144
|
-
|
|
145
|
-
## 9.1.0-canary.42
|
|
146
|
-
|
|
147
|
-
## 9.1.0-canary.41
|
|
148
|
-
|
|
149
|
-
## 9.1.0-canary.40
|
|
150
|
-
|
|
151
|
-
## 9.1.0-canary.39
|
|
152
|
-
|
|
153
|
-
## 9.1.0-canary.38
|
|
154
|
-
|
|
155
|
-
## 9.1.0-canary.37
|
|
156
|
-
|
|
157
|
-
## 9.1.0-canary.36
|
|
158
|
-
|
|
159
|
-
## 9.1.0-canary.35
|
|
160
|
-
|
|
161
|
-
## 9.1.0-canary.34
|
|
162
|
-
|
|
163
|
-
## 9.1.0-canary.33
|
|
164
|
-
|
|
165
|
-
## 9.1.0-canary.32
|
|
166
|
-
|
|
167
|
-
## 9.1.0-canary.31
|
|
168
|
-
|
|
169
|
-
## 9.1.0-canary.30
|
|
170
|
-
|
|
171
|
-
## 9.1.0-canary.29
|
|
172
|
-
|
|
173
|
-
## 9.1.0-canary.28
|
|
174
|
-
|
|
175
|
-
## 9.1.0-canary.27
|
|
176
|
-
|
|
177
|
-
## 9.1.0-canary.26
|
|
178
|
-
|
|
179
|
-
## 9.1.0-canary.25
|
|
180
|
-
|
|
181
|
-
## 9.1.0-canary.24
|
|
182
|
-
|
|
183
|
-
## 9.1.0-canary.23
|
|
184
|
-
|
|
185
|
-
## 9.1.0-canary.22
|
|
186
|
-
|
|
187
|
-
## 9.1.0-canary.21
|
|
188
|
-
|
|
189
|
-
## 9.1.0-canary.20
|
|
190
|
-
|
|
191
|
-
## 9.1.0-canary.19
|
|
192
|
-
|
|
193
|
-
## 9.1.0-canary.18
|
|
194
|
-
|
|
195
|
-
## 9.1.0-canary.17
|
|
196
|
-
|
|
197
|
-
## 9.1.0-canary.16
|
|
198
|
-
|
|
199
|
-
## 9.1.0-canary.15
|
|
200
|
-
|
|
201
|
-
## 9.0.4-canary.14
|
|
202
|
-
|
|
203
|
-
## 9.0.4-canary.13
|
|
204
|
-
|
|
205
|
-
## 9.0.4-canary.12
|
|
206
|
-
|
|
207
|
-
## 9.0.4-canary.11
|
|
208
|
-
|
|
209
|
-
## 9.0.4-canary.10
|
|
210
|
-
|
|
211
|
-
## 9.0.4-canary.9
|
|
212
|
-
|
|
213
|
-
## 9.0.4-canary.8
|
|
214
|
-
|
|
215
|
-
## 9.0.4-canary.7
|
|
216
|
-
|
|
217
|
-
## 9.0.4-canary.6
|
|
218
|
-
|
|
219
|
-
## 9.0.4-canary.5
|
|
220
|
-
|
|
221
|
-
## 9.0.4-canary.4
|
|
222
|
-
|
|
223
|
-
## 9.0.4-canary.3
|
|
224
|
-
|
|
225
|
-
## 9.0.4-canary.2
|
|
226
|
-
|
|
227
|
-
## 9.0.4-canary.1
|
|
89
|
+
### Patch Changes
|
|
228
90
|
|
|
229
|
-
|
|
91
|
+
- [#2551](https://github.com/graphcommerce-org/graphcommerce/pull/2551) [`d029c16`](https://github.com/graphcommerce-org/graphcommerce/commit/d029c16be3daf94d25c3389dd904adc0a55765f0) - fix(checkout): fix faulty check if email exists in the checkout; keep special characters in email on redirect to login ([@FrankHarland](https://github.com/FrankHarland))
|
|
230
92
|
|
|
231
93
|
## 9.0.0
|
|
232
94
|
|
package/EmailForm/EmailForm.tsx
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import { enableGuestCheckoutLogin } from '@graphcommerce/next-config/config'
|
|
14
14
|
import { extendableComponent, FormRow } from '@graphcommerce/next-ui'
|
|
15
15
|
import type { UseFormComposeOptions } from '@graphcommerce/react-hook-form'
|
|
16
|
-
import { FormAutoSubmit, useFormCompose } from '@graphcommerce/react-hook-form'
|
|
16
|
+
import { FormAutoSubmit, useFormCompose, useWatch } from '@graphcommerce/react-hook-form'
|
|
17
17
|
import { Trans } from '@lingui/react/macro'
|
|
18
18
|
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
19
19
|
import type { SxProps, Theme } from '@mui/material'
|
|
@@ -42,7 +42,7 @@ const EmailFormBase = React.memo<EmailFormProps>((props) => {
|
|
|
42
42
|
skipUnchanged: true,
|
|
43
43
|
defaultValues: { email: cartEmail.data?.cart?.email ?? '' },
|
|
44
44
|
})
|
|
45
|
-
const email = form.
|
|
45
|
+
const email = useWatch({ control: form.control, name: 'email' })
|
|
46
46
|
|
|
47
47
|
const isEmailAvailable = useQuery(IsEmailAvailableDocument, {
|
|
48
48
|
variables: { email },
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cart-email",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "10.0.
|
|
5
|
+
"version": "10.0.1-canary.0",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
".": "./index.ts"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
|
-
"@graphcommerce/ecommerce-ui": "^10.0.
|
|
19
|
-
"@graphcommerce/eslint-config-pwa": "^10.0.
|
|
20
|
-
"@graphcommerce/graphql": "^10.0.
|
|
21
|
-
"@graphcommerce/image": "^10.0.
|
|
22
|
-
"@graphcommerce/magento-cart": "^10.0.
|
|
23
|
-
"@graphcommerce/magento-customer": "^10.0.
|
|
24
|
-
"@graphcommerce/magento-product": "^10.0.
|
|
25
|
-
"@graphcommerce/magento-store": "^10.0.
|
|
26
|
-
"@graphcommerce/next-ui": "^10.0.
|
|
27
|
-
"@graphcommerce/prettier-config-pwa": "^10.0.
|
|
28
|
-
"@graphcommerce/react-hook-form": "^10.0.
|
|
29
|
-
"@graphcommerce/typescript-config-pwa": "^10.0.
|
|
18
|
+
"@graphcommerce/ecommerce-ui": "^10.0.1-canary.0",
|
|
19
|
+
"@graphcommerce/eslint-config-pwa": "^10.0.1-canary.0",
|
|
20
|
+
"@graphcommerce/graphql": "^10.0.1-canary.0",
|
|
21
|
+
"@graphcommerce/image": "^10.0.1-canary.0",
|
|
22
|
+
"@graphcommerce/magento-cart": "^10.0.1-canary.0",
|
|
23
|
+
"@graphcommerce/magento-customer": "^10.0.1-canary.0",
|
|
24
|
+
"@graphcommerce/magento-product": "^10.0.1-canary.0",
|
|
25
|
+
"@graphcommerce/magento-store": "^10.0.1-canary.0",
|
|
26
|
+
"@graphcommerce/next-ui": "^10.0.1-canary.0",
|
|
27
|
+
"@graphcommerce/prettier-config-pwa": "^10.0.1-canary.0",
|
|
28
|
+
"@graphcommerce/react-hook-form": "^10.0.1-canary.0",
|
|
29
|
+
"@graphcommerce/typescript-config-pwa": "^10.0.1-canary.0",
|
|
30
30
|
"@lingui/core": "^5",
|
|
31
31
|
"@lingui/macro": "^5",
|
|
32
32
|
"@lingui/react": "^5",
|