@graphcommerce/react-hook-form 9.0.0-canary.100 → 9.0.0-canary.103
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 +3 -962
- package/package.json +6 -8
- package/src/ComposedForm/ComposedSubmit.tsx +1 -2
- package/src/ComposedForm/context.ts +1 -1
- package/src/ComposedForm/reducer.ts +1 -1
- package/src/ComposedForm/types.ts +2 -2
- package/src/ComposedForm/useFormCompose.ts +2 -2
- package/src/useFormAutoSubmit.tsx +4 -4
- package/src/useFormGql.tsx +8 -7
- package/src/useFormGqlMutation.tsx +10 -6
- package/src/useFormGqlQuery.tsx +7 -4
- package/src/useFormMuiRegister.tsx +1 -1
- package/src/useFormPersist.tsx +3 -10
- package/src/useFormValidFields.tsx +2 -2
- package/src/useGqlDocumentHandler.tsx +15 -14
- package/src/utils/debounce.ts +1 -1
- package/src/utils/useDebounceCallback.ts +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,10 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
## 9.0.0-canary.
|
|
3
|
+
## 9.0.0-canary.103
|
|
4
4
|
|
|
5
|
-
|
|
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
|
|
5
|
+
### Patch Changes
|
|
20
6
|
|
|
21
|
-
|
|
7
|
+
- [#2421](https://github.com/graphcommerce-org/graphcommerce/pull/2421) [`d500643`](https://github.com/graphcommerce-org/graphcommerce/commit/d500643138799b6db1610cb10a1d065d6219d8ea) - Resolve peer dependency issues so we get a clean install ([@paales](https://github.com/paales))
|
|
22
8
|
|
|
23
9
|
## 9.0.0-canary.90
|
|
24
10
|
|
|
@@ -26,24 +12,6 @@
|
|
|
26
12
|
|
|
27
13
|
- [#2391](https://github.com/graphcommerce-org/graphcommerce/pull/2391) [`c1fa10f`](https://github.com/graphcommerce-org/graphcommerce/commit/c1fa10f995f562741b7574d465580e5405982a70) - Prevent overwriting custom context in useFormGqlMutation by merging operationOptions before execution. ([@wimvdputten](https://github.com/wimvdputten))
|
|
28
14
|
|
|
29
|
-
## 9.0.0-canary.89
|
|
30
|
-
|
|
31
|
-
## 9.0.0-canary.88
|
|
32
|
-
|
|
33
|
-
## 9.0.0-canary.87
|
|
34
|
-
|
|
35
|
-
## 9.0.0-canary.86
|
|
36
|
-
|
|
37
|
-
## 9.0.0-canary.85
|
|
38
|
-
|
|
39
|
-
## 9.0.0-canary.84
|
|
40
|
-
|
|
41
|
-
## 9.0.0-canary.83
|
|
42
|
-
|
|
43
|
-
## 9.0.0-canary.82
|
|
44
|
-
|
|
45
|
-
## 9.0.0-canary.81
|
|
46
|
-
|
|
47
15
|
## 9.0.0-canary.80
|
|
48
16
|
|
|
49
17
|
### Minor Changes
|
|
@@ -56,172 +24,24 @@
|
|
|
56
24
|
|
|
57
25
|
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`af45239`](https://github.com/graphcommerce-org/graphcommerce/commit/af452399eaab59ee4e13484fdc9cb0a7660da531) - When a useFormGql throws an error in the onBeforeSubmit method or onComplete method it will setError('root.thrown') with the message, allowing it to be displayed somewhere. PaymentMethodButton will now render this as an ErrorSnackbar. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
58
26
|
|
|
59
|
-
## 9.0.0-canary.79
|
|
60
|
-
|
|
61
|
-
## 9.0.0-canary.78
|
|
62
|
-
|
|
63
|
-
## 9.0.0-canary.77
|
|
64
|
-
|
|
65
|
-
## 9.0.0-canary.76
|
|
66
|
-
|
|
67
|
-
## 9.0.0-canary.75
|
|
68
|
-
|
|
69
|
-
## 9.0.0-canary.74
|
|
70
|
-
|
|
71
|
-
## 9.0.0-canary.73
|
|
72
|
-
|
|
73
|
-
## 9.0.0-canary.72
|
|
74
|
-
|
|
75
|
-
## 9.0.0-canary.71
|
|
76
|
-
|
|
77
|
-
## 9.0.0-canary.70
|
|
78
|
-
|
|
79
|
-
## 9.0.0-canary.69
|
|
80
|
-
|
|
81
|
-
## 9.0.0-canary.68
|
|
82
|
-
|
|
83
|
-
## 9.0.0-canary.67
|
|
84
|
-
|
|
85
|
-
## 9.0.0-canary.66
|
|
86
|
-
|
|
87
|
-
## 9.0.0-canary.65
|
|
88
|
-
|
|
89
|
-
## 9.0.0-canary.64
|
|
90
|
-
|
|
91
|
-
## 9.0.0-canary.63
|
|
92
|
-
|
|
93
|
-
## 9.0.0-canary.62
|
|
94
|
-
|
|
95
|
-
## 9.0.0-canary.61
|
|
96
|
-
|
|
97
|
-
## 9.0.0-canary.60
|
|
98
|
-
|
|
99
|
-
## 9.0.0-canary.59
|
|
100
|
-
|
|
101
|
-
## 9.0.0-canary.58
|
|
102
|
-
|
|
103
|
-
## 9.0.0-canary.57
|
|
104
|
-
|
|
105
|
-
## 9.0.0-canary.56
|
|
106
|
-
|
|
107
|
-
## 9.0.0-canary.55
|
|
108
|
-
|
|
109
|
-
## 9.0.0-canary.54
|
|
110
|
-
|
|
111
27
|
## 8.1.0-canary.53
|
|
112
28
|
|
|
113
29
|
### Minor Changes
|
|
114
30
|
|
|
115
31
|
- [#2325](https://github.com/graphcommerce-org/graphcommerce/pull/2325) [`058fb17`](https://github.com/graphcommerce-org/graphcommerce/commit/058fb1777bdaa51ded6d37529e59a3cc5f0eac06) - Solve an issue where onBeforeSubmit and onComplete would become an 'stale closure' where variables inside wouldn't be updated. By wrapping onBeforeSubmit and onComplete in useEventCallback these functions are updated when outside values get changed. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
116
32
|
|
|
117
|
-
## 8.1.0-canary.52
|
|
118
|
-
|
|
119
|
-
## 8.1.0-canary.51
|
|
120
|
-
|
|
121
|
-
## 8.1.0-canary.50
|
|
122
|
-
|
|
123
|
-
## 8.1.0-canary.49
|
|
124
|
-
|
|
125
|
-
## 8.1.0-canary.48
|
|
126
|
-
|
|
127
|
-
## 8.1.0-canary.47
|
|
128
|
-
|
|
129
33
|
## 8.1.0-canary.46
|
|
130
34
|
|
|
131
35
|
### Patch Changes
|
|
132
36
|
|
|
133
37
|
- [#2314](https://github.com/graphcommerce-org/graphcommerce/pull/2314) [`490bbfb`](https://github.com/graphcommerce-org/graphcommerce/commit/490bbfb5d88a7f58e83fa9c8b7f475c277a0eda3) - Added missing dependencies of lodash and @types/lodash ([@paales](https://github.com/paales))
|
|
134
38
|
|
|
135
|
-
## 8.1.0-canary.45
|
|
136
|
-
|
|
137
|
-
## 8.1.0-canary.44
|
|
138
|
-
|
|
139
|
-
## 8.1.0-canary.43
|
|
140
|
-
|
|
141
|
-
## 8.1.0-canary.42
|
|
142
|
-
|
|
143
|
-
## 8.1.0-canary.41
|
|
144
|
-
|
|
145
|
-
## 8.1.0-canary.40
|
|
146
|
-
|
|
147
|
-
## 8.1.0-canary.39
|
|
148
|
-
|
|
149
39
|
## 8.1.0-canary.38
|
|
150
40
|
|
|
151
41
|
### Patch Changes
|
|
152
42
|
|
|
153
43
|
- [#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))
|
|
154
44
|
|
|
155
|
-
## 8.1.0-canary.37
|
|
156
|
-
|
|
157
|
-
## 8.1.0-canary.36
|
|
158
|
-
|
|
159
|
-
## 8.1.0-canary.35
|
|
160
|
-
|
|
161
|
-
## 8.1.0-canary.34
|
|
162
|
-
|
|
163
|
-
## 8.1.0-canary.33
|
|
164
|
-
|
|
165
|
-
## 8.1.0-canary.32
|
|
166
|
-
|
|
167
|
-
## 8.1.0-canary.31
|
|
168
|
-
|
|
169
|
-
## 8.1.0-canary.30
|
|
170
|
-
|
|
171
|
-
## 8.1.0-canary.29
|
|
172
|
-
|
|
173
|
-
## 8.1.0-canary.28
|
|
174
|
-
|
|
175
|
-
## 8.1.0-canary.27
|
|
176
|
-
|
|
177
|
-
## 8.1.0-canary.26
|
|
178
|
-
|
|
179
|
-
## 8.1.0-canary.25
|
|
180
|
-
|
|
181
|
-
## 8.1.0-canary.24
|
|
182
|
-
|
|
183
|
-
## 8.1.0-canary.23
|
|
184
|
-
|
|
185
|
-
## 8.1.0-canary.22
|
|
186
|
-
|
|
187
|
-
## 8.1.0-canary.21
|
|
188
|
-
|
|
189
|
-
## 8.1.0-canary.20
|
|
190
|
-
|
|
191
|
-
## 8.1.0-canary.19
|
|
192
|
-
|
|
193
|
-
## 8.1.0-canary.18
|
|
194
|
-
|
|
195
|
-
## 8.1.0-canary.17
|
|
196
|
-
|
|
197
|
-
## 8.1.0-canary.16
|
|
198
|
-
|
|
199
|
-
## 8.1.0-canary.15
|
|
200
|
-
|
|
201
|
-
## 8.1.0-canary.14
|
|
202
|
-
|
|
203
|
-
## 8.1.0-canary.13
|
|
204
|
-
|
|
205
|
-
## 8.1.0-canary.12
|
|
206
|
-
|
|
207
|
-
## 8.1.0-canary.11
|
|
208
|
-
|
|
209
|
-
## 8.1.0-canary.10
|
|
210
|
-
|
|
211
|
-
## 8.1.0-canary.9
|
|
212
|
-
|
|
213
|
-
## 8.1.0-canary.8
|
|
214
|
-
|
|
215
|
-
## 8.1.0-canary.7
|
|
216
|
-
|
|
217
|
-
## 8.1.0-canary.6
|
|
218
|
-
|
|
219
|
-
## 8.1.0-canary.5
|
|
220
|
-
|
|
221
|
-
## 8.0.6-canary.4
|
|
222
|
-
|
|
223
|
-
## 8.0.6-canary.3
|
|
224
|
-
|
|
225
45
|
## 8.0.6-canary.2
|
|
226
46
|
|
|
227
47
|
### Patch Changes
|
|
@@ -236,48 +56,12 @@
|
|
|
236
56
|
|
|
237
57
|
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`1a6d0c4`](https://github.com/graphcommerce-org/graphcommerce/commit/1a6d0c4a3584b1e404b444f1ca44c68eaad56cb7) - Mark useFormValidFields as deprecated: Please use TextInputElement, SelectElement, etc. with the showValid prop ([@FrankHarland](https://github.com/FrankHarland))
|
|
238
58
|
|
|
239
|
-
## 8.0.6-canary.1
|
|
240
|
-
|
|
241
|
-
## 8.0.6-canary.0
|
|
242
|
-
|
|
243
59
|
## 8.0.5
|
|
244
60
|
|
|
245
61
|
### Patch Changes
|
|
246
62
|
|
|
247
63
|
- [#2237](https://github.com/graphcommerce-org/graphcommerce/pull/2237) [`60f387d`](https://github.com/graphcommerce-org/graphcommerce/commit/60f387d4a037736aa8105fa45728ee481bdaf887) - Solve an issue where the checkout address form wouldn't be automatically submitted on change. ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
248
64
|
|
|
249
|
-
## 8.0.5-canary.10
|
|
250
|
-
|
|
251
|
-
## 8.0.5-canary.9
|
|
252
|
-
|
|
253
|
-
## 8.0.5-canary.8
|
|
254
|
-
|
|
255
|
-
## 8.0.5-canary.7
|
|
256
|
-
|
|
257
|
-
## 8.0.5-canary.6
|
|
258
|
-
|
|
259
|
-
## 8.0.5-canary.5
|
|
260
|
-
|
|
261
|
-
## 8.0.5-canary.4
|
|
262
|
-
|
|
263
|
-
### Patch Changes
|
|
264
|
-
|
|
265
|
-
- [#2237](https://github.com/graphcommerce-org/graphcommerce/pull/2237) [`60f387d`](https://github.com/graphcommerce-org/graphcommerce/commit/60f387d4a037736aa8105fa45728ee481bdaf887) - Solve an issue where the checkout address form wouldn't be automatically submitted on change. ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
266
|
-
|
|
267
|
-
## 8.0.5-canary.3
|
|
268
|
-
|
|
269
|
-
## 8.0.5-canary.2
|
|
270
|
-
|
|
271
|
-
## 8.0.5-canary.1
|
|
272
|
-
|
|
273
|
-
## 8.0.5-canary.0
|
|
274
|
-
|
|
275
|
-
## 8.0.4
|
|
276
|
-
|
|
277
|
-
## 8.0.4-canary.1
|
|
278
|
-
|
|
279
|
-
## 8.0.4-canary.0
|
|
280
|
-
|
|
281
65
|
## 8.0.3
|
|
282
66
|
|
|
283
67
|
### Patch Changes
|
|
@@ -286,50 +70,6 @@
|
|
|
286
70
|
|
|
287
71
|
- [#2212](https://github.com/graphcommerce-org/graphcommerce/pull/2212) [`7c9f5da`](https://github.com/graphcommerce-org/graphcommerce/commit/7c9f5da1d458a19b0316c556c75415ff28bc5b2d) - Added noValidate prop so we can use the FormAutoSubmit component to submit partial forms ([@paales](https://github.com/paales))
|
|
288
72
|
|
|
289
|
-
## 8.0.3-canary.6
|
|
290
|
-
|
|
291
|
-
## 8.0.3-canary.5
|
|
292
|
-
|
|
293
|
-
### Patch Changes
|
|
294
|
-
|
|
295
|
-
- [#2212](https://github.com/graphcommerce-org/graphcommerce/pull/2212) [`7c9f5da`](https://github.com/graphcommerce-org/graphcommerce/commit/7c9f5da1d458a19b0316c556c75415ff28bc5b2d) - Added noValidate prop so we can use the FormAutoSubmit component to submit partial forms ([@paales](https://github.com/paales))
|
|
296
|
-
|
|
297
|
-
## 8.0.3-canary.4
|
|
298
|
-
|
|
299
|
-
## 8.0.3-canary.3
|
|
300
|
-
|
|
301
|
-
### Patch Changes
|
|
302
|
-
|
|
303
|
-
- [#2206](https://github.com/graphcommerce-org/graphcommerce/pull/2206) [`855ab09`](https://github.com/graphcommerce-org/graphcommerce/commit/855ab097b9ea204a7c73c6550b7a5e9e2290f378) - Cleanup `<FormAutoSubmit/>` and remove internal hook. ([@paales](https://github.com/paales))
|
|
304
|
-
|
|
305
|
-
## 8.0.3-canary.2
|
|
306
|
-
|
|
307
|
-
## 8.0.3-canary.1
|
|
308
|
-
|
|
309
|
-
## 8.0.3-canary.0
|
|
310
|
-
|
|
311
|
-
## 8.0.2
|
|
312
|
-
|
|
313
|
-
## 8.0.2-canary.3
|
|
314
|
-
|
|
315
|
-
## 8.0.2-canary.2
|
|
316
|
-
|
|
317
|
-
## 8.0.2-canary.1
|
|
318
|
-
|
|
319
|
-
## 8.0.2-canary.0
|
|
320
|
-
|
|
321
|
-
## 8.0.1
|
|
322
|
-
|
|
323
|
-
## 8.0.1-canary.4
|
|
324
|
-
|
|
325
|
-
## 8.0.1-canary.3
|
|
326
|
-
|
|
327
|
-
## 8.0.1-canary.2
|
|
328
|
-
|
|
329
|
-
## 8.0.1-canary.1
|
|
330
|
-
|
|
331
|
-
## 8.0.1-canary.0
|
|
332
|
-
|
|
333
73
|
## 8.0.0
|
|
334
74
|
|
|
335
75
|
### Patch Changes
|
|
@@ -338,240 +78,12 @@
|
|
|
338
78
|
|
|
339
79
|
- [#2007](https://github.com/graphcommerce-org/graphcommerce/pull/2007) [`f59c276`](https://github.com/graphcommerce-org/graphcommerce/commit/f59c276605f9ed649d1197a9ba0e3f12d7c6d026) - Crosssell behavior now properly shows for the latest added product. Added latest submitted variables to be retrieved when using the useFormGql hook. ([@JoshuaS98](https://github.com/JoshuaS98))
|
|
340
80
|
|
|
341
|
-
## 8.0.0-canary.100
|
|
342
|
-
|
|
343
|
-
## 8.0.0-canary.99
|
|
344
|
-
|
|
345
|
-
## 8.0.0-canary.98
|
|
346
|
-
|
|
347
|
-
## 8.0.0-canary.97
|
|
348
|
-
|
|
349
|
-
## 8.0.0-canary.96
|
|
350
|
-
|
|
351
|
-
## 8.0.0-canary.95
|
|
352
|
-
|
|
353
|
-
## 8.0.0-canary.94
|
|
354
|
-
|
|
355
|
-
## 8.0.0-canary.93
|
|
356
|
-
|
|
357
|
-
## 8.0.0-canary.92
|
|
358
|
-
|
|
359
|
-
## 8.0.0-canary.91
|
|
360
|
-
|
|
361
|
-
## 8.0.0-canary.90
|
|
362
|
-
|
|
363
|
-
## 8.0.0-canary.89
|
|
364
|
-
|
|
365
|
-
## 8.0.0-canary.88
|
|
366
|
-
|
|
367
|
-
## 8.0.0-canary.87
|
|
368
|
-
|
|
369
|
-
## 8.0.0-canary.86
|
|
370
|
-
|
|
371
|
-
## 8.0.0-canary.85
|
|
372
|
-
|
|
373
|
-
## 8.0.0-canary.84
|
|
374
|
-
|
|
375
|
-
## 8.0.0-canary.83
|
|
376
|
-
|
|
377
|
-
## 8.0.0-canary.82
|
|
378
|
-
|
|
379
|
-
## 8.0.0-canary.81
|
|
380
|
-
|
|
381
|
-
## 8.0.0-canary.80
|
|
382
|
-
|
|
383
|
-
## 8.0.0-canary.79
|
|
384
|
-
|
|
385
|
-
## 8.0.0-canary.78
|
|
386
|
-
|
|
387
|
-
## 8.0.0-canary.77
|
|
388
|
-
|
|
389
|
-
## 8.0.0-canary.76
|
|
390
|
-
|
|
391
|
-
## 8.0.0-canary.75
|
|
392
|
-
|
|
393
|
-
## 8.0.0-canary.74
|
|
394
|
-
|
|
395
|
-
## 8.0.0-canary.73
|
|
396
|
-
|
|
397
|
-
## 8.0.0-canary.72
|
|
398
|
-
|
|
399
|
-
## 8.0.0-canary.71
|
|
400
|
-
|
|
401
|
-
## 8.0.0-canary.70
|
|
402
|
-
|
|
403
|
-
## 8.0.0-canary.69
|
|
404
|
-
|
|
405
|
-
## 7.1.0-canary.68
|
|
406
|
-
|
|
407
|
-
## 7.1.0-canary.67
|
|
408
|
-
|
|
409
|
-
## 7.1.0-canary.66
|
|
410
|
-
|
|
411
|
-
## 7.1.0-canary.65
|
|
412
|
-
|
|
413
|
-
## 7.1.0-canary.64
|
|
414
|
-
|
|
415
|
-
## 7.1.0-canary.63
|
|
416
|
-
|
|
417
|
-
## 7.1.0-canary.62
|
|
418
|
-
|
|
419
|
-
## 7.1.0-canary.61
|
|
420
|
-
|
|
421
|
-
## 7.1.0-canary.60
|
|
422
|
-
|
|
423
|
-
## 7.1.0-canary.59
|
|
424
|
-
|
|
425
|
-
## 7.1.0-canary.58
|
|
426
|
-
|
|
427
|
-
## 7.1.0-canary.57
|
|
428
|
-
|
|
429
|
-
## 7.1.0-canary.56
|
|
430
|
-
|
|
431
|
-
## 7.1.0-canary.55
|
|
432
|
-
|
|
433
|
-
## 7.1.0-canary.54
|
|
434
|
-
|
|
435
|
-
## 7.1.0-canary.53
|
|
436
|
-
|
|
437
|
-
## 7.1.0-canary.52
|
|
438
|
-
|
|
439
|
-
## 7.1.0-canary.51
|
|
440
|
-
|
|
441
|
-
## 7.1.0-canary.50
|
|
442
|
-
|
|
443
|
-
## 7.1.0-canary.49
|
|
444
|
-
|
|
445
|
-
## 7.1.0-canary.48
|
|
446
|
-
|
|
447
|
-
## 7.1.0-canary.47
|
|
448
|
-
|
|
449
|
-
## 7.1.0-canary.46
|
|
450
|
-
|
|
451
|
-
## 7.1.0-canary.45
|
|
452
|
-
|
|
453
|
-
## 7.1.0-canary.38
|
|
454
|
-
|
|
455
|
-
## 7.1.0-canary.37
|
|
456
|
-
|
|
457
|
-
## 7.1.0-canary.36
|
|
458
|
-
|
|
459
|
-
## 7.1.0-canary.35
|
|
460
|
-
|
|
461
|
-
## 7.1.0-canary.34
|
|
462
|
-
|
|
463
|
-
## 7.1.0-canary.33
|
|
464
|
-
|
|
465
|
-
## 7.1.0-canary.32
|
|
466
|
-
|
|
467
|
-
## 7.1.0-canary.31
|
|
468
|
-
|
|
469
|
-
## 7.1.0-canary.30
|
|
470
|
-
|
|
471
|
-
## 7.1.0-canary.29
|
|
472
|
-
|
|
473
|
-
## 7.1.0-canary.28
|
|
474
|
-
|
|
475
|
-
## 7.1.0-canary.27
|
|
476
|
-
|
|
477
|
-
## 7.1.0-canary.26
|
|
478
|
-
|
|
479
|
-
## 7.1.0-canary.25
|
|
480
|
-
|
|
481
|
-
## 7.1.0-canary.24
|
|
482
|
-
|
|
483
|
-
## 7.1.0-canary.23
|
|
484
|
-
|
|
485
|
-
## 7.1.0-canary.22
|
|
486
|
-
|
|
487
|
-
### Patch Changes
|
|
488
|
-
|
|
489
|
-
- [#2097](https://github.com/graphcommerce-org/graphcommerce/pull/2097) [`cdc89cedb`](https://github.com/graphcommerce-org/graphcommerce/commit/cdc89cedb9eb4d37a2c37497689e74ff6df21bf6) - Set default value of `experimental_v2` to false in `useFormGql`, since we don't want an experimental feature as default ([@mikekeehnen](https://github.com/mikekeehnen))
|
|
490
|
-
|
|
491
|
-
## 7.1.0-canary.21
|
|
492
|
-
|
|
493
|
-
### Patch Changes
|
|
494
|
-
|
|
495
|
-
- [#2093](https://github.com/graphcommerce-org/graphcommerce/pull/2093) [`112b041f0`](https://github.com/graphcommerce-org/graphcommerce/commit/112b041f01a33fbd521ce3eb3955844f96b29917) - Created a new experimental mutation abort feature inside `useFormGql`. This will allow redundant mutations to be canceled. This feature can be enabled via the `experimental_useV2` prop on the `useFormGql` component ([@mikekeehnen](https://github.com/mikekeehnen))
|
|
496
|
-
|
|
497
|
-
## 7.1.0-canary.20
|
|
498
|
-
|
|
499
|
-
## 7.1.0-canary.19
|
|
500
|
-
|
|
501
|
-
## 7.1.0-canary.18
|
|
502
|
-
|
|
503
|
-
## 7.1.0-canary.17
|
|
504
|
-
|
|
505
|
-
## 7.1.0-canary.16
|
|
506
|
-
|
|
507
|
-
## 7.1.0-canary.15
|
|
508
|
-
|
|
509
|
-
## 7.1.0-canary.14
|
|
510
|
-
|
|
511
|
-
## 7.1.0-canary.13
|
|
512
|
-
|
|
513
|
-
## 7.1.0-canary.12
|
|
514
|
-
|
|
515
|
-
## 7.1.0-canary.11
|
|
516
|
-
|
|
517
|
-
## 7.1.0-canary.10
|
|
518
|
-
|
|
519
|
-
## 7.1.0-canary.9
|
|
520
|
-
|
|
521
|
-
### Patch Changes
|
|
522
|
-
|
|
523
|
-
- [#2007](https://github.com/graphcommerce-org/graphcommerce/pull/2007) [`f59c27660`](https://github.com/graphcommerce-org/graphcommerce/commit/f59c276605f9ed649d1197a9ba0e3f12d7c6d026) - Reconstruct crosssells behaviour. Add submitted variables & showSuccess to RHF ([@JoshuaS98](https://github.com/JoshuaS98))
|
|
524
|
-
|
|
525
|
-
## 7.1.0-canary.8
|
|
526
|
-
|
|
527
|
-
## 7.0.2-canary.7
|
|
528
|
-
|
|
529
|
-
## 7.0.2-canary.6
|
|
530
|
-
|
|
531
|
-
## 7.0.2-canary.5
|
|
532
|
-
|
|
533
81
|
## 7.0.1
|
|
534
82
|
|
|
535
83
|
### Patch Changes
|
|
536
84
|
|
|
537
85
|
- [#2047](https://github.com/graphcommerce-org/graphcommerce/pull/2047) [`136580b39`](https://github.com/graphcommerce-org/graphcommerce/commit/136580b39e3cffdd07e3fa087e049bd532c3e8f1) - Updated all dependencies to the latest version where possible. ([@paales](https://github.com/paales))
|
|
538
86
|
|
|
539
|
-
## 7.0.1-canary.15
|
|
540
|
-
|
|
541
|
-
## 7.0.1-canary.14
|
|
542
|
-
|
|
543
|
-
## 7.0.1-canary.13
|
|
544
|
-
|
|
545
|
-
## 7.0.1-canary.12
|
|
546
|
-
|
|
547
|
-
## 7.0.1-canary.11
|
|
548
|
-
|
|
549
|
-
## 7.0.1-canary.10
|
|
550
|
-
|
|
551
|
-
## 7.0.1-canary.9
|
|
552
|
-
|
|
553
|
-
## 7.0.1-canary.8
|
|
554
|
-
|
|
555
|
-
## 7.0.1-canary.7
|
|
556
|
-
|
|
557
|
-
## 7.0.1-canary.6
|
|
558
|
-
|
|
559
|
-
## 7.0.1-canary.5
|
|
560
|
-
|
|
561
|
-
## 7.0.1-canary.4
|
|
562
|
-
|
|
563
|
-
## 7.0.1-canary.3
|
|
564
|
-
|
|
565
|
-
## 7.0.1-canary.2
|
|
566
|
-
|
|
567
|
-
## 7.0.1-canary.1
|
|
568
|
-
|
|
569
|
-
## 7.0.1-canary.0
|
|
570
|
-
|
|
571
|
-
### Patch Changes
|
|
572
|
-
|
|
573
|
-
- [#2047](https://github.com/graphcommerce-org/graphcommerce/pull/2047) [`136580b39`](https://github.com/graphcommerce-org/graphcommerce/commit/136580b39e3cffdd07e3fa087e049bd532c3e8f1) - Updated all dependencies to the latest version where possible. ([@paales](https://github.com/paales))
|
|
574
|
-
|
|
575
87
|
## 7.0.0
|
|
576
88
|
|
|
577
89
|
### Major Changes
|
|
@@ -584,412 +96,12 @@
|
|
|
584
96
|
|
|
585
97
|
- [#2012](https://github.com/graphcommerce-org/graphcommerce/pull/2012) [`1dbb3ae13`](https://github.com/graphcommerce-org/graphcommerce/commit/1dbb3ae13553992ee1ed77f375375560f28c418c) - Upgrade graphql to 16.7.1, add graphql as peer dependency ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
586
98
|
|
|
587
|
-
## 6.2.0-canary.98
|
|
588
|
-
|
|
589
|
-
## 6.2.0-canary.97
|
|
590
|
-
|
|
591
|
-
## 6.2.0-canary.96
|
|
592
|
-
|
|
593
|
-
## 6.2.0-canary.95
|
|
594
|
-
|
|
595
|
-
## 6.2.0-canary.94
|
|
596
|
-
|
|
597
|
-
## 6.2.0-canary.93
|
|
598
|
-
|
|
599
|
-
## 6.2.0-canary.92
|
|
600
|
-
|
|
601
|
-
## 6.2.0-canary.91
|
|
602
|
-
|
|
603
|
-
## 6.2.0-canary.90
|
|
604
|
-
|
|
605
|
-
## 6.2.0-canary.89
|
|
606
|
-
|
|
607
|
-
## 6.2.0-canary.88
|
|
608
|
-
|
|
609
|
-
## 6.2.0-canary.87
|
|
610
|
-
|
|
611
|
-
## 6.2.0-canary.86
|
|
612
|
-
|
|
613
|
-
## 6.2.0-canary.85
|
|
614
|
-
|
|
615
|
-
## 6.2.0-canary.84
|
|
616
|
-
|
|
617
|
-
## 6.2.0-canary.83
|
|
618
|
-
|
|
619
|
-
## 6.2.0-canary.82
|
|
620
|
-
|
|
621
|
-
## 6.2.0-canary.81
|
|
622
|
-
|
|
623
|
-
## 6.2.0-canary.80
|
|
624
|
-
|
|
625
|
-
## 6.2.0-canary.79
|
|
626
|
-
|
|
627
|
-
## 6.2.0-canary.78
|
|
628
|
-
|
|
629
|
-
## 6.2.0-canary.77
|
|
630
|
-
|
|
631
|
-
## 6.2.0-canary.76
|
|
632
|
-
|
|
633
|
-
## 6.2.0-canary.75
|
|
634
|
-
|
|
635
|
-
## 6.2.0-canary.74
|
|
636
|
-
|
|
637
|
-
## 6.2.0-canary.73
|
|
638
|
-
|
|
639
|
-
## 6.2.0-canary.72
|
|
640
|
-
|
|
641
|
-
## 6.2.0-canary.71
|
|
642
|
-
|
|
643
|
-
## 6.2.0-canary.70
|
|
644
|
-
|
|
645
|
-
## 6.2.0-canary.69
|
|
646
|
-
|
|
647
|
-
### Patch Changes
|
|
648
|
-
|
|
649
|
-
- [#2012](https://github.com/graphcommerce-org/graphcommerce/pull/2012) [`1dbb3ae13`](https://github.com/graphcommerce-org/graphcommerce/commit/1dbb3ae13553992ee1ed77f375375560f28c418c) - Upgrade graphql to 16.7.1, add graphql as peer dependency ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
650
|
-
|
|
651
|
-
## 6.2.0-canary.68
|
|
652
|
-
|
|
653
|
-
## 6.2.0-canary.67
|
|
654
|
-
|
|
655
|
-
### Patch Changes
|
|
656
|
-
|
|
657
|
-
- [#2002](https://github.com/graphcommerce-org/graphcommerce/pull/2002) [`1234bb61f`](https://github.com/graphcommerce-org/graphcommerce/commit/1234bb61f8332da8a9e4dd7262b0c70beaed8c91) - Updated next and apollo/client ([@paales](https://github.com/paales))
|
|
658
|
-
|
|
659
|
-
## 6.2.0-canary.66
|
|
660
|
-
|
|
661
|
-
## 6.2.0-canary.65
|
|
662
|
-
|
|
663
|
-
## 6.2.0-canary.64
|
|
664
|
-
|
|
665
|
-
## 6.2.0-canary.63
|
|
666
|
-
|
|
667
|
-
## 6.2.0-canary.62
|
|
668
|
-
|
|
669
|
-
## 6.2.0-canary.61
|
|
670
|
-
|
|
671
|
-
## 6.2.0-canary.60
|
|
672
|
-
|
|
673
|
-
## 6.2.0-canary.59
|
|
674
|
-
|
|
675
|
-
## 6.2.0-canary.58
|
|
676
|
-
|
|
677
|
-
## 6.2.0-canary.57
|
|
678
|
-
|
|
679
|
-
## 6.2.0-canary.56
|
|
680
|
-
|
|
681
|
-
## 6.2.0-canary.55
|
|
682
|
-
|
|
683
|
-
## 6.2.0-canary.54
|
|
684
|
-
|
|
685
|
-
## 6.2.0-canary.53
|
|
686
|
-
|
|
687
|
-
## 6.2.0-canary.52
|
|
688
|
-
|
|
689
|
-
## 6.2.0-canary.51
|
|
690
|
-
|
|
691
|
-
## 6.2.0-canary.50
|
|
692
|
-
|
|
693
|
-
### Minor Changes
|
|
694
|
-
|
|
695
|
-
- [`e55d8c390`](https://github.com/graphcommerce-org/graphcommerce/commit/e55d8c390d90b4bb7bab11c6a99027ac72bd7e3e) - Created a new sidebar layout system, can be configured with productFiltersLayout in the graphcommerce.config.js ([@paales](https://github.com/paales))
|
|
696
|
-
|
|
697
|
-
## 6.2.0-canary.49
|
|
698
|
-
|
|
699
|
-
## 6.2.0-canary.48
|
|
700
|
-
|
|
701
|
-
## 6.2.0-canary.47
|
|
702
|
-
|
|
703
|
-
## 6.2.0-canary.46
|
|
704
|
-
|
|
705
|
-
## 6.2.0-canary.45
|
|
706
|
-
|
|
707
|
-
## 6.2.0-canary.44
|
|
708
|
-
|
|
709
|
-
## 6.2.0-canary.43
|
|
710
|
-
|
|
711
|
-
## 6.2.0-canary.42
|
|
712
|
-
|
|
713
|
-
## 6.2.0-canary.41
|
|
714
|
-
|
|
715
|
-
### Patch Changes
|
|
716
|
-
|
|
717
|
-
- [#1960](https://github.com/graphcommerce-org/graphcommerce/pull/1960) [`f78caf5a8`](https://github.com/graphcommerce-org/graphcommerce/commit/f78caf5a83683f1ae4b901fb94bd22d50943fa2f) - Updated packages @apollo/client, react-hook-form, @emotion/\*, @lingui/\*, @mui/\* and various others. ([@paales](https://github.com/paales))
|
|
718
|
-
|
|
719
|
-
## 6.2.0-canary.40
|
|
720
|
-
|
|
721
|
-
## 6.2.0-canary.39
|
|
722
|
-
|
|
723
|
-
## 6.2.0-canary.38
|
|
724
|
-
|
|
725
|
-
## 6.2.0-canary.37
|
|
726
|
-
|
|
727
|
-
## 6.2.0-canary.36
|
|
728
|
-
|
|
729
|
-
## 6.2.0-canary.35
|
|
730
|
-
|
|
731
|
-
## 6.2.0-canary.34
|
|
732
|
-
|
|
733
|
-
## 6.2.0-canary.33
|
|
734
|
-
|
|
735
|
-
## 6.2.0-canary.32
|
|
736
|
-
|
|
737
|
-
## 6.2.0-canary.31
|
|
738
|
-
|
|
739
|
-
## 6.2.0-canary.30
|
|
740
|
-
|
|
741
|
-
## 6.2.0-canary.29
|
|
742
|
-
|
|
743
|
-
## 6.2.0-canary.28
|
|
744
|
-
|
|
745
|
-
## 6.2.0-canary.27
|
|
746
|
-
|
|
747
|
-
## 6.2.0-canary.26
|
|
748
|
-
|
|
749
|
-
## 6.2.0-canary.25
|
|
750
|
-
|
|
751
|
-
## 6.2.0-canary.24
|
|
752
|
-
|
|
753
|
-
## 6.2.0-canary.23
|
|
754
|
-
|
|
755
|
-
## 6.2.0-canary.22
|
|
756
|
-
|
|
757
|
-
## 6.2.0-canary.21
|
|
758
|
-
|
|
759
|
-
## 6.2.0-canary.20
|
|
760
|
-
|
|
761
|
-
## 6.2.0-canary.19
|
|
762
|
-
|
|
763
|
-
## 6.2.0-canary.18
|
|
764
|
-
|
|
765
|
-
## 6.2.0-canary.17
|
|
766
|
-
|
|
767
|
-
## 6.2.0-canary.16
|
|
768
|
-
|
|
769
|
-
## 6.2.0-canary.15
|
|
770
|
-
|
|
771
|
-
## 6.2.0-canary.14
|
|
772
|
-
|
|
773
|
-
## 6.2.0-canary.13
|
|
774
|
-
|
|
775
|
-
## 6.2.0-canary.12
|
|
776
|
-
|
|
777
|
-
## 6.2.0-canary.11
|
|
778
|
-
|
|
779
|
-
## 6.2.0-canary.10
|
|
780
|
-
|
|
781
|
-
## 6.2.0-canary.9
|
|
782
|
-
|
|
783
|
-
## 6.2.0-canary.8
|
|
784
|
-
|
|
785
|
-
## 6.2.0-canary.7
|
|
786
|
-
|
|
787
|
-
## 6.2.0-canary.6
|
|
788
|
-
|
|
789
|
-
## 6.1.1-canary.5
|
|
790
|
-
|
|
791
|
-
## 6.1.1-canary.4
|
|
792
|
-
|
|
793
|
-
## 6.1.1-canary.3
|
|
794
|
-
|
|
795
|
-
## 6.1.1-canary.2
|
|
796
|
-
|
|
797
|
-
## 6.1.1-canary.1
|
|
798
|
-
|
|
799
|
-
## 6.1.1-canary.0
|
|
800
|
-
|
|
801
|
-
## 6.1.0
|
|
802
|
-
|
|
803
|
-
## 6.0.2-canary.22
|
|
804
|
-
|
|
805
|
-
## 6.0.2-canary.21
|
|
806
|
-
|
|
807
|
-
## 6.0.2-canary.20
|
|
808
|
-
|
|
809
|
-
## 6.0.2-canary.19
|
|
810
|
-
|
|
811
|
-
## 6.0.2-canary.18
|
|
812
|
-
|
|
813
|
-
## 6.0.2-canary.17
|
|
814
|
-
|
|
815
|
-
## 6.0.2-canary.16
|
|
816
|
-
|
|
817
|
-
## 6.0.2-canary.15
|
|
818
|
-
|
|
819
|
-
## 6.0.2-canary.14
|
|
820
|
-
|
|
821
|
-
## 6.0.2-canary.13
|
|
822
|
-
|
|
823
|
-
## 6.0.2-canary.12
|
|
824
|
-
|
|
825
|
-
## 6.0.2-canary.11
|
|
826
|
-
|
|
827
|
-
## 6.0.2-canary.10
|
|
828
|
-
|
|
829
|
-
## 6.0.2-canary.9
|
|
830
|
-
|
|
831
|
-
## 6.0.2-canary.8
|
|
832
|
-
|
|
833
|
-
## 6.0.2-canary.7
|
|
834
|
-
|
|
835
|
-
## 6.0.2-canary.6
|
|
836
|
-
|
|
837
|
-
## 6.0.2-canary.5
|
|
838
|
-
|
|
839
|
-
## 6.0.2-canary.4
|
|
840
|
-
|
|
841
|
-
## 6.0.2-canary.3
|
|
842
|
-
|
|
843
|
-
## 6.0.2-canary.2
|
|
844
|
-
|
|
845
|
-
## 6.0.2-canary.1
|
|
846
|
-
|
|
847
|
-
## 6.0.2-canary.0
|
|
848
|
-
|
|
849
99
|
## 6.0.1
|
|
850
100
|
|
|
851
101
|
### Patch Changes
|
|
852
102
|
|
|
853
103
|
- [#1859](https://github.com/graphcommerce-org/graphcommerce/pull/1859) [`08ea612a1`](https://github.com/graphcommerce-org/graphcommerce/commit/08ea612a1d26166b8e55f20525c1004642cc85aa) - Resolved multiple onSubmitSuccessful callbacks in ComposedForm, when we have multiple ComposedForm Components on a page ([@mikekeehnen](https://github.com/mikekeehnen))
|
|
854
104
|
|
|
855
|
-
## 6.0.1-canary.7
|
|
856
|
-
|
|
857
|
-
## 6.0.1-canary.6
|
|
858
|
-
|
|
859
|
-
## 6.0.1-canary.5
|
|
860
|
-
|
|
861
|
-
## 6.0.1-canary.4
|
|
862
|
-
|
|
863
|
-
## 6.0.1-canary.3
|
|
864
|
-
|
|
865
|
-
## 6.0.1-canary.2
|
|
866
|
-
|
|
867
|
-
### Patch Changes
|
|
868
|
-
|
|
869
|
-
- [#1859](https://github.com/graphcommerce-org/graphcommerce/pull/1859) [`08ea612a1`](https://github.com/graphcommerce-org/graphcommerce/commit/08ea612a1d26166b8e55f20525c1004642cc85aa) - Resolved multiple onSubmitSuccessful callbacks in ComposedForm, when we have multiple ComposedForm Components on a page ([@mikekeehnen](https://github.com/mikekeehnen))
|
|
870
|
-
|
|
871
|
-
## 6.0.1-canary.1
|
|
872
|
-
|
|
873
|
-
## 6.0.1-canary.0
|
|
874
|
-
|
|
875
|
-
## 6.0.0
|
|
876
|
-
|
|
877
|
-
## 6.0.0-canary.54
|
|
878
|
-
|
|
879
|
-
## 6.0.0-canary.53
|
|
880
|
-
|
|
881
|
-
## 6.0.0-canary.52
|
|
882
|
-
|
|
883
|
-
## 6.0.0-canary.51
|
|
884
|
-
|
|
885
|
-
## 6.0.0-canary.50
|
|
886
|
-
|
|
887
|
-
## 6.0.0-canary.49
|
|
888
|
-
|
|
889
|
-
## 6.0.0-canary.48
|
|
890
|
-
|
|
891
|
-
## 6.0.0-canary.47
|
|
892
|
-
|
|
893
|
-
## 6.0.0-canary.46
|
|
894
|
-
|
|
895
|
-
## 6.0.0-canary.45
|
|
896
|
-
|
|
897
|
-
## 6.0.0-canary.44
|
|
898
|
-
|
|
899
|
-
## 6.0.0-canary.43
|
|
900
|
-
|
|
901
|
-
## 6.0.0-canary.42
|
|
902
|
-
|
|
903
|
-
## 6.0.0-canary.41
|
|
904
|
-
|
|
905
|
-
## 6.0.0-canary.40
|
|
906
|
-
|
|
907
|
-
## 6.0.0-canary.39
|
|
908
|
-
|
|
909
|
-
## 6.0.0-canary.38
|
|
910
|
-
|
|
911
|
-
## 6.0.0-canary.37
|
|
912
|
-
|
|
913
|
-
## 6.0.0-canary.36
|
|
914
|
-
|
|
915
|
-
## 6.0.0-canary.35
|
|
916
|
-
|
|
917
|
-
## 6.0.0-canary.34
|
|
918
|
-
|
|
919
|
-
## 6.0.0-canary.33
|
|
920
|
-
|
|
921
|
-
## 6.0.0-canary.32
|
|
922
|
-
|
|
923
|
-
## 6.0.0-canary.31
|
|
924
|
-
|
|
925
|
-
## 6.0.0-canary.30
|
|
926
|
-
|
|
927
|
-
## 6.0.0-canary.29
|
|
928
|
-
|
|
929
|
-
## 6.0.0-canary.28
|
|
930
|
-
|
|
931
|
-
## 6.0.0-canary.27
|
|
932
|
-
|
|
933
|
-
## 6.0.0-canary.26
|
|
934
|
-
|
|
935
|
-
## 6.0.0-canary.25
|
|
936
|
-
|
|
937
|
-
## 6.0.0-canary.24
|
|
938
|
-
|
|
939
|
-
## 6.0.0-canary.23
|
|
940
|
-
|
|
941
|
-
## 6.0.0-canary.22
|
|
942
|
-
|
|
943
|
-
## 6.0.0-canary.21
|
|
944
|
-
|
|
945
|
-
## 6.0.0-canary.20
|
|
946
|
-
|
|
947
|
-
## 5.2.0-canary.19
|
|
948
|
-
|
|
949
|
-
## 5.2.0-canary.18
|
|
950
|
-
|
|
951
|
-
## 5.2.0-canary.17
|
|
952
|
-
|
|
953
|
-
## 5.2.0-canary.16
|
|
954
|
-
|
|
955
|
-
## 5.2.0-canary.15
|
|
956
|
-
|
|
957
|
-
## 5.2.0-canary.14
|
|
958
|
-
|
|
959
|
-
## 5.2.0-canary.13
|
|
960
|
-
|
|
961
|
-
## 5.2.0-canary.12
|
|
962
|
-
|
|
963
|
-
## 5.2.0-canary.11
|
|
964
|
-
|
|
965
|
-
## 5.2.0-canary.10
|
|
966
|
-
|
|
967
|
-
## 5.2.0-canary.9
|
|
968
|
-
|
|
969
|
-
## 5.2.0-canary.8
|
|
970
|
-
|
|
971
|
-
## 5.2.0-canary.7
|
|
972
|
-
|
|
973
|
-
## 5.2.0-canary.6
|
|
974
|
-
|
|
975
|
-
## 5.2.0-canary.5
|
|
976
|
-
|
|
977
|
-
## 5.2.0-canary.4
|
|
978
|
-
|
|
979
|
-
## 5.2.0-canary.3
|
|
980
|
-
|
|
981
|
-
## 5.2.0-canary.2
|
|
982
|
-
|
|
983
|
-
## 5.2.0-canary.1
|
|
984
|
-
|
|
985
|
-
## 5.2.0-canary.0
|
|
986
|
-
|
|
987
|
-
## 5.1.1
|
|
988
|
-
|
|
989
|
-
## 5.1.1-canary.1
|
|
990
|
-
|
|
991
|
-
## 5.1.1-canary.0
|
|
992
|
-
|
|
993
105
|
## 5.1.0
|
|
994
106
|
|
|
995
107
|
### Patch Changes
|
|
@@ -1001,89 +113,18 @@
|
|
|
1001
113
|
- Upgraded dependencies including type-fest and graphql-mesh
|
|
1002
114
|
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
|
1003
115
|
|
|
1004
|
-
## 5.1.0-canary.11
|
|
1005
|
-
|
|
1006
|
-
## 5.1.0-canary.10
|
|
1007
|
-
|
|
1008
|
-
## 5.1.0-canary.9
|
|
1009
|
-
|
|
1010
|
-
## 5.1.0-canary.8
|
|
1011
|
-
|
|
1012
|
-
## 5.1.0-canary.7
|
|
1013
|
-
|
|
1014
|
-
## 5.1.0-canary.6
|
|
1015
|
-
|
|
1016
|
-
## 5.1.0-canary.5
|
|
1017
|
-
|
|
1018
|
-
## 5.1.0-canary.4
|
|
1019
|
-
|
|
1020
|
-
## 5.1.0-canary.3
|
|
1021
|
-
|
|
1022
|
-
### Patch Changes
|
|
1023
|
-
|
|
1024
|
-
- [#1752](https://github.com/graphcommerce-org/graphcommerce/pull/1752) [`2a6a4d9ec`](https://github.com/graphcommerce-org/graphcommerce/commit/2a6a4d9ecfa1b58a66ba9b9d00016d6feda9aa95) - Updated dependencies to latest versions, except for nextjs; Solve tons of peer dependency issues.
|
|
1025
|
-
|
|
1026
|
-
- Updated the @mui/material package
|
|
1027
|
-
- Removed dependencies on react-hook-form-mui and @playwright/test
|
|
1028
|
-
- Upgraded dependencies including type-fest and graphql-mesh
|
|
1029
|
-
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
|
1030
|
-
|
|
1031
|
-
## 5.1.0-canary.2
|
|
1032
|
-
|
|
1033
|
-
## 5.1.0-canary.1
|
|
1034
|
-
|
|
1035
|
-
## 5.1.0-canary.0
|
|
1036
|
-
|
|
1037
116
|
## 5.0.0
|
|
1038
117
|
|
|
1039
118
|
### Major Changes
|
|
1040
119
|
|
|
1041
120
|
- [#1734](https://github.com/graphcommerce-org/graphcommerce/pull/1734) [`e4c7fe17e`](https://github.com/graphcommerce-org/graphcommerce/commit/e4c7fe17e413e37362ceae92e67f1b3a5f62d398) - Bump major version of all packages ([@github-actions](https://github.com/apps/github-actions))
|
|
1042
121
|
|
|
1043
|
-
## 5.0.0-canary.14
|
|
1044
|
-
|
|
1045
|
-
## 5.0.0-canary.9
|
|
1046
|
-
|
|
1047
|
-
### Major Changes
|
|
1048
|
-
|
|
1049
|
-
- [`e4c7fe17e`](https://github.com/graphcommerce-org/graphcommerce/commit/e4c7fe17e413e37362ceae92e67f1b3a5f62d398) - Bump major version of all packages ([@paales](https://github.com/paales))
|
|
1050
|
-
|
|
1051
|
-
## 4.31.0-canary.8
|
|
1052
|
-
|
|
1053
|
-
## 4.31.0-canary.7
|
|
1054
|
-
|
|
1055
|
-
## 4.31.0-canary.6
|
|
1056
|
-
|
|
1057
|
-
## 4.31.0-canary.5
|
|
1058
|
-
|
|
1059
|
-
## 4.31.0-canary.4
|
|
1060
|
-
|
|
1061
|
-
## 4.31.0-canary.3
|
|
1062
|
-
|
|
1063
|
-
## 4.31.0-canary.2
|
|
1064
|
-
|
|
1065
|
-
## 4.31.0-canary.1
|
|
1066
|
-
|
|
1067
|
-
## 4.31.0-canary.0
|
|
1068
|
-
|
|
1069
|
-
## 4.30.2
|
|
1070
|
-
|
|
1071
|
-
## 4.30.1
|
|
1072
|
-
|
|
1073
122
|
## 4.30.0
|
|
1074
123
|
|
|
1075
124
|
### Patch Changes
|
|
1076
125
|
|
|
1077
126
|
- [#1702](https://github.com/graphcommerce-org/graphcommerce/pull/1702) [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
|
|
1078
127
|
|
|
1079
|
-
## 4.30.0-canary.1
|
|
1080
|
-
|
|
1081
|
-
### Patch Changes
|
|
1082
|
-
|
|
1083
|
-
- [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
|
|
1084
|
-
|
|
1085
|
-
## 4.30.0-canary.0
|
|
1086
|
-
|
|
1087
128
|
## 3.3.5
|
|
1088
129
|
|
|
1089
130
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/react-hook-form",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "9.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.103",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -11,22 +11,20 @@
|
|
|
11
11
|
"project": "./tsconfig.json"
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
|
-
"devDependencies": {
|
|
15
|
-
"@testing-library/react": "^14.3.1"
|
|
16
|
-
},
|
|
17
14
|
"peerDependencies": {
|
|
18
15
|
"@apollo/client": "^3",
|
|
19
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
|
20
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
21
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.103",
|
|
17
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.103",
|
|
18
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.103",
|
|
22
19
|
"@mui/utils": "^5",
|
|
20
|
+
"@testing-library/react": "^14.3.1",
|
|
23
21
|
"graphql": "^16.6.0",
|
|
24
22
|
"react": "^18.2.0",
|
|
25
23
|
"react-dom": "^18.2.0",
|
|
26
24
|
"react-hook-form": "^7"
|
|
27
25
|
},
|
|
28
26
|
"dependencies": {
|
|
29
|
-
"@types/lodash": "^4.17.
|
|
27
|
+
"@types/lodash": "^4.17.10",
|
|
30
28
|
"lodash": "^4.17.21"
|
|
31
29
|
}
|
|
32
30
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ApolloError } from '@apollo/client'
|
|
2
2
|
import React, { useContext, useEffect, useRef } from 'react'
|
|
3
|
-
import { GlobalError } from 'react-hook-form'
|
|
4
3
|
import { isFormGqlOperation } from '../useFormGqlMutation'
|
|
5
4
|
import { composedFormContext } from './context'
|
|
6
|
-
import { ComposedSubmitRenderComponentProps } from './types'
|
|
5
|
+
import type { ComposedSubmitRenderComponentProps } from './types'
|
|
7
6
|
|
|
8
7
|
export type ComposedSubmitProps = {
|
|
9
8
|
onSubmitSuccessful?: () => void
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isFormGqlOperation } from '../useFormGqlMutation'
|
|
2
|
-
import { ComposedFormReducer, ComposedFormState } from './types'
|
|
2
|
+
import type { ComposedFormReducer, ComposedFormState } from './types'
|
|
3
3
|
|
|
4
4
|
function updateFormStateIfNecessary(state: ComposedFormState): ComposedFormState {
|
|
5
5
|
const formEntries = Object.entries(state.forms)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApolloError } from '@apollo/client'
|
|
2
|
-
import type { FieldValues, FormState,
|
|
1
|
+
import type { ApolloError } from '@apollo/client'
|
|
2
|
+
import type { FieldValues, FormState, UseFormReturn } from 'react-hook-form'
|
|
3
3
|
import type { SetOptional } from 'type-fest'
|
|
4
4
|
|
|
5
5
|
export type UseFormComposeOptions<V extends FieldValues = FieldValues> = {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useContext, useEffect } from 'react'
|
|
2
|
-
import { FieldValues, UseFormReturn } from 'react-hook-form'
|
|
2
|
+
import type { FieldValues, UseFormReturn } from 'react-hook-form'
|
|
3
3
|
import { isFormGqlOperation } from '../useFormGqlMutation'
|
|
4
4
|
import { composedFormContext } from './context'
|
|
5
|
-
import { UseFormComposeOptions } from './types'
|
|
5
|
+
import type { UseFormComposeOptions } from './types'
|
|
6
6
|
|
|
7
7
|
export function useFormCompose<V extends Record<string, unknown>>(
|
|
8
8
|
fields: UseFormComposeOptions<V>,
|
|
@@ -5,16 +5,16 @@ import { useMemoObject } from '@graphcommerce/next-ui/hooks/useMemoObject'
|
|
|
5
5
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
6
6
|
import { debounce } from '@mui/material'
|
|
7
7
|
import React, { useCallback, useEffect, useRef, useState } from 'react'
|
|
8
|
-
import {
|
|
8
|
+
import type {
|
|
9
9
|
DeepPartialSkipArrayKey,
|
|
10
10
|
FieldPath,
|
|
11
11
|
FieldValues,
|
|
12
12
|
UseFormReturn,
|
|
13
13
|
UseWatchProps,
|
|
14
|
-
useFormState,
|
|
15
|
-
useWatch,
|
|
16
14
|
} from 'react-hook-form'
|
|
17
|
-
import {
|
|
15
|
+
import { useFormState, useWatch } from 'react-hook-form'
|
|
16
|
+
import type { DebounceSettings } from './utils/useDebounce'
|
|
17
|
+
import { useDebounce } from './utils/useDebounce'
|
|
18
18
|
|
|
19
19
|
export type UseFormAutoSubmitOptions<TForm extends UseFormReturn<V>, V extends FieldValues> = {
|
|
20
20
|
/** Instance of current form */
|
package/src/useFormGql.tsx
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
ApolloError,
|
|
3
3
|
FetchResult,
|
|
4
4
|
LazyQueryResultTuple,
|
|
5
5
|
MutationTuple,
|
|
6
6
|
TypedDocumentNode,
|
|
7
|
-
isApolloError,
|
|
8
7
|
MutationHookOptions,
|
|
9
8
|
LazyQueryHookOptions,
|
|
10
9
|
} from '@apollo/client'
|
|
10
|
+
import { isApolloError } from '@apollo/client'
|
|
11
11
|
import { getOperationName } from '@apollo/client/utilities'
|
|
12
12
|
import useEventCallback from '@mui/utils/useEventCallback'
|
|
13
13
|
import { useEffect, useRef } from 'react'
|
|
14
|
-
import { DefaultValues, FieldValues, UseFormProps, UseFormReturn } from 'react-hook-form'
|
|
14
|
+
import type { DefaultValues, FieldValues, UseFormProps, UseFormReturn } from 'react-hook-form'
|
|
15
15
|
import diff from './diff'
|
|
16
|
-
import {
|
|
16
|
+
import type { UseGqlDocumentHandler } from './useGqlDocumentHandler'
|
|
17
|
+
import { useGqlDocumentHandler } from './useGqlDocumentHandler'
|
|
17
18
|
import { tryAsync } from './utils/tryTuple'
|
|
18
19
|
|
|
19
20
|
export type OnCompleteFn<Q, V> = (data: FetchResult<Q>, variables: V) => void | Promise<void>
|
|
@@ -154,7 +155,7 @@ export function useFormGql<Q, V extends FieldValues>(
|
|
|
154
155
|
: true
|
|
155
156
|
|
|
156
157
|
if (skipUnchanged && !hasDirtyFields) {
|
|
157
|
-
console.
|
|
158
|
+
console.info(
|
|
158
159
|
`[useFormGql ${getOperationName(document)}] skipped submission, no dirty fields`,
|
|
159
160
|
)
|
|
160
161
|
await onValid(formValues, event)
|
|
@@ -173,7 +174,7 @@ export function useFormGql<Q, V extends FieldValues>(
|
|
|
173
174
|
if (isApolloError(onBeforeSubmitError)) {
|
|
174
175
|
returnedError.current = onBeforeSubmitError
|
|
175
176
|
} else {
|
|
176
|
-
console.
|
|
177
|
+
console.info(
|
|
177
178
|
'A non ApolloError was thrown during the onBeforeSubmit handler.',
|
|
178
179
|
onBeforeSubmitError,
|
|
179
180
|
)
|
|
@@ -209,7 +210,7 @@ export function useFormGql<Q, V extends FieldValues>(
|
|
|
209
210
|
if (isApolloError(onCompleteError)) {
|
|
210
211
|
returnedError.current = onCompleteError
|
|
211
212
|
} else {
|
|
212
|
-
console.
|
|
213
|
+
console.info(
|
|
213
214
|
'A non ApolloError was thrown during the onComplete handler.',
|
|
214
215
|
onCompleteError,
|
|
215
216
|
)
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import { MutationHookOptions, TypedDocumentNode
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import type { MutationHookOptions, TypedDocumentNode } from '@apollo/client'
|
|
2
|
+
import { useMutation } from '@apollo/client'
|
|
3
|
+
import type { FieldValues, UseFormReturn } from 'react-hook-form'
|
|
4
|
+
import { useForm } from 'react-hook-form'
|
|
5
|
+
import type { UseFormGqlMethods, UseFormGraphQlOptions } from './useFormGql'
|
|
6
|
+
import { useFormGql } from './useFormGql'
|
|
7
|
+
import type { UseMuiFormRegister } from './useFormMuiRegister'
|
|
8
|
+
import { useFormMuiRegister } from './useFormMuiRegister'
|
|
9
|
+
import type { UseFormValidReturn } from './useFormValidFields'
|
|
6
10
|
|
|
7
11
|
export type UseFormGqlMutationReturn<
|
|
8
12
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -33,7 +37,7 @@ export function assertFormGqlOperation<
|
|
|
33
37
|
Q extends Record<string, unknown> = Record<string, unknown>,
|
|
34
38
|
>(form: UseFormReturn<V>): asserts form is UseFormGqlMutationReturn<Q, V> {
|
|
35
39
|
if (typeof (form as UseFormGqlMutationReturn<Q, V>).muiRegister !== 'function') {
|
|
36
|
-
throw Error(
|
|
40
|
+
throw Error("form must be one of 'useFromGqlMutation' or 'useFormGqlQuery'")
|
|
37
41
|
}
|
|
38
42
|
}
|
|
39
43
|
|
package/src/useFormGqlQuery.tsx
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { LazyQueryHookOptions, TypedDocumentNode
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { LazyQueryHookOptions, TypedDocumentNode } from '@apollo/client'
|
|
2
|
+
import { useLazyQuery } from '@apollo/client'
|
|
3
|
+
import type { FieldValues } from 'react-hook-form'
|
|
4
|
+
import { useForm } from 'react-hook-form'
|
|
5
|
+
import type { UseFormGraphQlOptions } from './useFormGql'
|
|
6
|
+
import { useFormGql } from './useFormGql'
|
|
7
|
+
import type { UseFormGqlMutationReturn } from './useFormGqlMutation'
|
|
5
8
|
import { useFormMuiRegister } from './useFormMuiRegister'
|
|
6
9
|
|
|
7
10
|
export type UseFormGqlQueryReturn<
|
package/src/useFormPersist.tsx
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable react/no-unused-prop-types */
|
|
2
2
|
import { useEffect } from 'react'
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
UseFormReturn,
|
|
6
|
-
Path,
|
|
7
|
-
FieldPath,
|
|
8
|
-
PathValue,
|
|
9
|
-
useWatch,
|
|
10
|
-
useFormState,
|
|
11
|
-
} from 'react-hook-form'
|
|
3
|
+
import type { FieldValues, UseFormReturn, Path, FieldPath, PathValue } from 'react-hook-form'
|
|
4
|
+
import { useWatch, useFormState } from 'react-hook-form'
|
|
12
5
|
|
|
13
6
|
export type UseFormPersistOptions<
|
|
14
7
|
TFieldValues extends FieldValues = FieldValues,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FieldValues, Path, UseFormReturn } from 'react-hook-form'
|
|
2
|
-
import { IsRequired } from './useGqlDocumentHandler'
|
|
1
|
+
import type { FieldValues, Path, UseFormReturn } from 'react-hook-form'
|
|
2
|
+
import type { IsRequired } from './useGqlDocumentHandler'
|
|
3
3
|
|
|
4
4
|
export type UseFormValidReturn<TFieldValues> = Partial<Record<Path<TFieldValues>, boolean>>
|
|
5
5
|
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import type { TypedDocumentNode } from '@apollo/client'
|
|
2
|
-
import
|
|
3
|
-
DefinitionNode,
|
|
4
|
-
OperationDefinitionNode,
|
|
5
|
-
ValueNode,
|
|
6
|
-
NullValueNode,
|
|
7
|
-
ObjectValueNode,
|
|
8
|
-
ListValueNode,
|
|
9
|
-
VariableNode,
|
|
10
|
-
VariableDefinitionNode,
|
|
11
|
-
TypeNode,
|
|
12
|
-
OperationTypeNode,
|
|
2
|
+
import {
|
|
3
|
+
type DefinitionNode,
|
|
4
|
+
type OperationDefinitionNode,
|
|
5
|
+
type ValueNode,
|
|
6
|
+
type NullValueNode,
|
|
7
|
+
type ObjectValueNode,
|
|
8
|
+
type ListValueNode,
|
|
9
|
+
type VariableNode,
|
|
10
|
+
type VariableDefinitionNode,
|
|
11
|
+
type TypeNode,
|
|
12
|
+
type OperationTypeNode,
|
|
13
|
+
Kind,
|
|
13
14
|
} from 'graphql'
|
|
14
15
|
import { useMemo } from 'react'
|
|
15
16
|
import type { FieldValues } from 'react-hook-form'
|
|
@@ -64,10 +65,10 @@ type DeepStringify<V> = {
|
|
|
64
65
|
type FieldTypes = LiteralUnion<keyof Scalars, string> | FieldTypes[]
|
|
65
66
|
|
|
66
67
|
function variableType<T extends TypeNode>(type: T): FieldTypes {
|
|
67
|
-
if (type.kind ===
|
|
68
|
+
if (type.kind === Kind.LIST_TYPE) {
|
|
68
69
|
return [variableType(type.type)]
|
|
69
70
|
}
|
|
70
|
-
if (type.kind ===
|
|
71
|
+
if (type.kind === Kind.NON_NULL_TYPE) {
|
|
71
72
|
return variableType(type.type)
|
|
72
73
|
}
|
|
73
74
|
|
|
@@ -103,7 +104,7 @@ export function handlerFactory<Q, V extends FieldValues>(
|
|
|
103
104
|
definition.variableDefinitions.forEach((variable: VariableDefinitionNode) => {
|
|
104
105
|
const name = variable.variable.name.value as keyof V
|
|
105
106
|
|
|
106
|
-
requiredPartial = { ...requiredPartial, [name]: variable.type.kind ===
|
|
107
|
+
requiredPartial = { ...requiredPartial, [name]: variable.type.kind === Kind.NON_NULL_TYPE }
|
|
107
108
|
encodingPartial = { ...encodingPartial, [name]: variableType(variable.type) }
|
|
108
109
|
|
|
109
110
|
if (variable.defaultValue && isWithValueNode(variable.defaultValue)) {
|
package/src/utils/debounce.ts
CHANGED
|
@@ -50,7 +50,7 @@ export default function debounce<T extends (...args: unknown[]) => unknown>({
|
|
|
50
50
|
console.warn(`debounce: ${invalidParams.join(', ')} should not be negative.`)
|
|
51
51
|
|
|
52
52
|
if (maxWait < wait)
|
|
53
|
-
console.warn(
|
|
53
|
+
console.warn('debounce: maxWait should not be less than wait. This does nothing')
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
const clear = () => {
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
2
1
|
import useEventCallback from '@mui/utils/useEventCallback'
|
|
3
2
|
import { useMemo } from 'react'
|
|
4
|
-
import
|
|
3
|
+
import type { DebounceOptions } from './debounce'
|
|
4
|
+
import debounce from './debounce'
|
|
5
5
|
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
7
|
export function useDebouncedCallback<T extends (...args: any[]) => unknown>(
|
|
7
8
|
callback: T,
|
|
8
9
|
{ initialWait, maxWait, wait }: DebounceOptions = {},
|