@graphcommerce/magento-payment-braintree 9.0.0-canary.101 → 9.0.0-canary.104
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +21 -1006
- package/hooks/useBraintree.ts +4 -2
- package/hooks/useBraintreeCartLock.ts +2 -1
- package/hooks/useBraintreeHostedFields.ts +2 -1
- package/hooks/useBraintreeLocalPayment.ts +2 -1
- package/hooks/useBraintreePaypal.ts +2 -1
- package/methods/braintree/PaymentMethodOptions.tsx +11 -13
- package/methods/braintree_local_payments/PaymentMethodOptions.tsx +5 -9
- package/methods/braintree_local_payments/expandMethods.ts +4 -1
- package/methods/braintree_local_payments/index.ts +2 -4
- package/methods/braintree_paypal/PaymentMethodOptions.tsx +2 -4
- package/methods/braintree_paypal/index.ts +2 -4
- package/package.json +15 -15
- package/plugins/AddBraintreeMethods.tsx +1 -1
- package/test/braintree.playwright.ts +2 -1
- package/test/braintree_local_payments.playwright.ts +2 -1
- package/utils/isBraintreeError.ts +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,790 +1,44 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## 9.0.0-canary.
|
3
|
+
## 9.0.0-canary.104
|
4
4
|
|
5
|
-
## 9.0.0-canary.
|
5
|
+
## 9.0.0-canary.103
|
6
6
|
|
7
|
-
## 9.0.0-canary.
|
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
|
-
### Minor Changes
|
48
|
-
|
49
|
-
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`1d6512d`](https://github.com/graphcommerce-org/graphcommerce/commit/1d6512d4118cfb46602aa1f2432c3566fdb3261d) - Rename experimental_useV2 prop to deprecated_useV1 in useFromGql and enable it by default ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
50
|
-
|
51
|
-
## 9.0.0-canary.79
|
52
|
-
|
53
|
-
## 9.0.0-canary.78
|
54
|
-
|
55
|
-
## 9.0.0-canary.77
|
56
|
-
|
57
|
-
## 9.0.0-canary.76
|
58
|
-
|
59
|
-
## 9.0.0-canary.75
|
60
|
-
|
61
|
-
## 9.0.0-canary.74
|
62
|
-
|
63
|
-
## 9.0.0-canary.73
|
64
|
-
|
65
|
-
## 9.0.0-canary.72
|
66
|
-
|
67
|
-
## 9.0.0-canary.71
|
68
|
-
|
69
|
-
## 9.0.0-canary.70
|
70
|
-
|
71
|
-
## 9.0.0-canary.69
|
72
|
-
|
73
|
-
## 9.0.0-canary.68
|
74
|
-
|
75
|
-
## 9.0.0-canary.67
|
76
|
-
|
77
|
-
## 9.0.0-canary.66
|
78
|
-
|
79
|
-
## 9.0.0-canary.65
|
80
|
-
|
81
|
-
## 9.0.0-canary.64
|
82
|
-
|
83
|
-
## 9.0.0-canary.63
|
84
|
-
|
85
|
-
## 9.0.0-canary.62
|
86
|
-
|
87
|
-
## 9.0.0-canary.61
|
88
|
-
|
89
|
-
## 9.0.0-canary.60
|
90
|
-
|
91
|
-
### Patch Changes
|
92
|
-
|
93
|
-
- [#2331](https://github.com/graphcommerce-org/graphcommerce/pull/2331) [`702bfc9`](https://github.com/graphcommerce-org/graphcommerce/commit/702bfc93566c9745546988e57988431d5d4d8cb0) - Moved plugins to new format ([@paales](https://github.com/paales))
|
94
|
-
|
95
|
-
## 9.0.0-canary.59
|
96
|
-
|
97
|
-
## 9.0.0-canary.58
|
98
|
-
|
99
|
-
## 9.0.0-canary.57
|
100
|
-
|
101
|
-
## 9.0.0-canary.56
|
102
|
-
|
103
|
-
## 9.0.0-canary.55
|
104
|
-
|
105
|
-
## 9.0.0-canary.54
|
106
|
-
|
107
|
-
## 8.1.0-canary.53
|
108
|
-
|
109
|
-
## 8.1.0-canary.52
|
110
|
-
|
111
|
-
## 8.1.0-canary.51
|
112
|
-
|
113
|
-
## 8.1.0-canary.50
|
114
|
-
|
115
|
-
## 8.1.0-canary.49
|
116
|
-
|
117
|
-
## 8.1.0-canary.48
|
118
|
-
|
119
|
-
## 8.1.0-canary.47
|
120
|
-
|
121
|
-
## 8.1.0-canary.46
|
122
|
-
|
123
|
-
## 8.1.0-canary.45
|
124
|
-
|
125
|
-
## 8.1.0-canary.44
|
126
|
-
|
127
|
-
## 8.1.0-canary.43
|
128
|
-
|
129
|
-
## 8.1.0-canary.42
|
130
|
-
|
131
|
-
## 8.1.0-canary.41
|
132
|
-
|
133
|
-
## 8.1.0-canary.40
|
134
|
-
|
135
|
-
## 8.1.0-canary.39
|
136
|
-
|
137
|
-
## 8.1.0-canary.38
|
138
|
-
|
139
|
-
## 8.1.0-canary.37
|
140
|
-
|
141
|
-
## 8.1.0-canary.36
|
142
|
-
|
143
|
-
## 8.1.0-canary.35
|
144
|
-
|
145
|
-
## 8.1.0-canary.34
|
146
|
-
|
147
|
-
## 8.1.0-canary.33
|
148
|
-
|
149
|
-
## 8.1.0-canary.32
|
150
|
-
|
151
|
-
## 8.1.0-canary.31
|
152
|
-
|
153
|
-
## 8.1.0-canary.30
|
154
|
-
|
155
|
-
## 8.1.0-canary.29
|
156
|
-
|
157
|
-
## 8.1.0-canary.28
|
158
|
-
|
159
|
-
## 8.1.0-canary.27
|
160
|
-
|
161
|
-
## 8.1.0-canary.26
|
162
|
-
|
163
|
-
## 8.1.0-canary.25
|
164
|
-
|
165
|
-
## 8.1.0-canary.24
|
166
|
-
|
167
|
-
## 8.1.0-canary.23
|
168
|
-
|
169
|
-
## 8.1.0-canary.22
|
170
|
-
|
171
|
-
## 8.1.0-canary.21
|
172
|
-
|
173
|
-
## 8.1.0-canary.20
|
174
|
-
|
175
|
-
## 8.1.0-canary.19
|
176
|
-
|
177
|
-
## 8.1.0-canary.18
|
178
|
-
|
179
|
-
### Patch Changes
|
180
|
-
|
181
|
-
- [#2277](https://github.com/graphcommerce-org/graphcommerce/pull/2277) [`f9199f7`](https://github.com/graphcommerce-org/graphcommerce/commit/f9199f798583138a68dd641ea6637375c487f29b) - Solve issue where Braintree wouldn't place the order after successfully validating a Credit Card. ([@paales](https://github.com/paales))
|
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
|
-
|
199
|
-
## 8.1.0-canary.9
|
200
|
-
|
201
|
-
## 8.1.0-canary.8
|
202
|
-
|
203
|
-
## 8.1.0-canary.7
|
204
|
-
|
205
|
-
## 8.1.0-canary.6
|
206
|
-
|
207
|
-
## 8.1.0-canary.5
|
208
|
-
|
209
|
-
## 8.0.6-canary.4
|
210
|
-
|
211
|
-
## 8.0.6-canary.3
|
212
|
-
|
213
|
-
## 8.0.6-canary.2
|
214
|
-
|
215
|
-
### Patch Changes
|
216
|
-
|
217
|
-
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`43bd04a`](https://github.com/graphcommerce-org/graphcommerce/commit/43bd04a777c5800cc7e01bee1e123a5aad82f194) - Prevent BillingPage query from rerunning on each mutation ([@FrankHarland](https://github.com/FrankHarland))
|
218
|
-
|
219
|
-
## 8.0.6-canary.1
|
220
|
-
|
221
|
-
## 8.0.6-canary.0
|
222
|
-
|
223
|
-
## 8.0.5
|
224
|
-
|
225
|
-
### Patch Changes
|
226
|
-
|
227
|
-
- [#2188](https://github.com/graphcommerce-org/graphcommerce/pull/2188) [`eec7498`](https://github.com/graphcommerce-org/graphcommerce/commit/eec7498213f34f0f850123b577b77bf678e3c80b) - Braintree Credit Card: Hosted payment fields now have proper styling and all focus/blur and error states are correctly handled. ([@paales](https://github.com/paales))
|
228
|
-
|
229
|
-
## 8.0.5-canary.10
|
230
|
-
|
231
|
-
## 8.0.5-canary.9
|
232
|
-
|
233
|
-
## 8.0.5-canary.8
|
234
|
-
|
235
|
-
## 8.0.5-canary.7
|
236
|
-
|
237
|
-
## 8.0.5-canary.6
|
238
|
-
|
239
|
-
## 8.0.5-canary.5
|
240
|
-
|
241
|
-
### Patch Changes
|
242
|
-
|
243
|
-
- [#2188](https://github.com/graphcommerce-org/graphcommerce/pull/2188) [`eec7498`](https://github.com/graphcommerce-org/graphcommerce/commit/eec7498213f34f0f850123b577b77bf678e3c80b) - Braintree Credit Card: Hosted payment fields now have proper styling and all focus/blur and error states are correctly handled. ([@paales](https://github.com/paales))
|
244
|
-
|
245
|
-
## 8.0.5-canary.4
|
246
|
-
|
247
|
-
## 8.0.5-canary.3
|
248
|
-
|
249
|
-
## 8.0.5-canary.2
|
250
|
-
|
251
|
-
## 8.0.5-canary.1
|
252
|
-
|
253
|
-
## 8.0.5-canary.0
|
254
|
-
|
255
|
-
## 8.0.4
|
256
|
-
|
257
|
-
## 8.0.4-canary.1
|
258
|
-
|
259
|
-
## 8.0.4-canary.0
|
260
|
-
|
261
|
-
## 8.0.3
|
262
|
-
|
263
|
-
## 8.0.3-canary.6
|
264
|
-
|
265
|
-
## 8.0.3-canary.5
|
266
|
-
|
267
|
-
## 8.0.3-canary.4
|
268
|
-
|
269
|
-
## 8.0.3-canary.3
|
270
|
-
|
271
|
-
## 8.0.3-canary.2
|
272
|
-
|
273
|
-
## 8.0.3-canary.1
|
274
|
-
|
275
|
-
## 8.0.3-canary.0
|
276
|
-
|
277
|
-
## 8.0.2
|
278
|
-
|
279
|
-
## 8.0.2-canary.3
|
280
|
-
|
281
|
-
## 8.0.2-canary.2
|
282
|
-
|
283
|
-
## 8.0.2-canary.1
|
284
|
-
|
285
|
-
## 8.0.2-canary.0
|
286
|
-
|
287
|
-
## 8.0.1
|
288
|
-
|
289
|
-
## 8.0.1-canary.4
|
290
|
-
|
291
|
-
## 8.0.1-canary.3
|
292
|
-
|
293
|
-
## 8.0.1-canary.2
|
294
|
-
|
295
|
-
## 8.0.1-canary.1
|
296
|
-
|
297
|
-
## 8.0.1-canary.0
|
298
|
-
|
299
|
-
## 8.0.0
|
300
|
-
|
301
|
-
## 8.0.0-canary.100
|
302
|
-
|
303
|
-
## 8.0.0-canary.99
|
304
|
-
|
305
|
-
## 8.0.0-canary.98
|
306
|
-
|
307
|
-
## 8.0.0-canary.97
|
308
|
-
|
309
|
-
## 8.0.0-canary.96
|
310
|
-
|
311
|
-
## 8.0.0-canary.95
|
312
|
-
|
313
|
-
## 8.0.0-canary.94
|
314
|
-
|
315
|
-
## 8.0.0-canary.93
|
316
|
-
|
317
|
-
## 8.0.0-canary.92
|
318
|
-
|
319
|
-
## 8.0.0-canary.91
|
320
|
-
|
321
|
-
## 8.0.0-canary.90
|
322
|
-
|
323
|
-
## 8.0.0-canary.89
|
324
|
-
|
325
|
-
## 8.0.0-canary.88
|
326
|
-
|
327
|
-
## 8.0.0-canary.87
|
328
|
-
|
329
|
-
## 8.0.0-canary.86
|
330
|
-
|
331
|
-
## 8.0.0-canary.85
|
332
|
-
|
333
|
-
## 8.0.0-canary.84
|
334
|
-
|
335
|
-
## 8.0.0-canary.83
|
336
|
-
|
337
|
-
## 8.0.0-canary.82
|
338
|
-
|
339
|
-
## 8.0.0-canary.81
|
340
|
-
|
341
|
-
## 8.0.0-canary.80
|
342
|
-
|
343
|
-
## 8.0.0-canary.79
|
344
|
-
|
345
|
-
## 8.0.0-canary.78
|
346
|
-
|
347
|
-
## 8.0.0-canary.77
|
348
|
-
|
349
|
-
## 8.0.0-canary.76
|
350
|
-
|
351
|
-
## 8.0.0-canary.75
|
352
|
-
|
353
|
-
## 8.0.0-canary.74
|
354
|
-
|
355
|
-
## 8.0.0-canary.73
|
356
|
-
|
357
|
-
## 8.0.0-canary.72
|
358
|
-
|
359
|
-
## 8.0.0-canary.71
|
360
|
-
|
361
|
-
## 8.0.0-canary.70
|
362
|
-
|
363
|
-
## 8.0.0-canary.69
|
364
|
-
|
365
|
-
## 7.1.0-canary.68
|
366
|
-
|
367
|
-
## 7.1.0-canary.67
|
368
|
-
|
369
|
-
## 7.1.0-canary.66
|
370
|
-
|
371
|
-
## 7.1.0-canary.65
|
372
|
-
|
373
|
-
## 7.1.0-canary.64
|
374
|
-
|
375
|
-
## 7.1.0-canary.63
|
376
|
-
|
377
|
-
## 7.1.0-canary.62
|
378
|
-
|
379
|
-
## 7.1.0-canary.61
|
380
|
-
|
381
|
-
## 7.1.0-canary.60
|
382
|
-
|
383
|
-
## 7.1.0-canary.59
|
384
|
-
|
385
|
-
## 7.1.0-canary.58
|
386
|
-
|
387
|
-
## 7.1.0-canary.57
|
388
|
-
|
389
|
-
## 7.1.0-canary.56
|
390
|
-
|
391
|
-
## 7.1.0-canary.55
|
392
|
-
|
393
|
-
## 7.1.0-canary.54
|
394
|
-
|
395
|
-
## 7.1.0-canary.53
|
396
|
-
|
397
|
-
## 7.1.0-canary.52
|
398
|
-
|
399
|
-
## 7.1.0-canary.51
|
400
|
-
|
401
|
-
## 7.1.0-canary.50
|
402
|
-
|
403
|
-
## 7.1.0-canary.49
|
404
|
-
|
405
|
-
## 7.1.0-canary.48
|
406
|
-
|
407
|
-
## 7.1.0-canary.47
|
408
|
-
|
409
|
-
## 7.1.0-canary.46
|
410
|
-
|
411
|
-
## 7.1.0-canary.45
|
412
|
-
|
413
|
-
## 7.1.0-canary.38
|
414
|
-
|
415
|
-
## 7.1.0-canary.37
|
416
|
-
|
417
|
-
## 7.1.0-canary.36
|
418
|
-
|
419
|
-
## 7.1.0-canary.35
|
420
|
-
|
421
|
-
## 7.1.0-canary.34
|
422
|
-
|
423
|
-
## 7.1.0-canary.33
|
424
|
-
|
425
|
-
## 7.1.0-canary.32
|
426
|
-
|
427
|
-
## 7.1.0-canary.31
|
428
|
-
|
429
|
-
## 7.1.0-canary.30
|
430
|
-
|
431
|
-
## 7.1.0-canary.29
|
432
|
-
|
433
|
-
## 7.1.0-canary.28
|
434
|
-
|
435
|
-
## 7.1.0-canary.27
|
436
|
-
|
437
|
-
## 7.1.0-canary.26
|
438
|
-
|
439
|
-
## 7.1.0-canary.25
|
440
|
-
|
441
|
-
## 7.1.0-canary.24
|
442
|
-
|
443
|
-
## 7.1.0-canary.23
|
444
|
-
|
445
|
-
## 7.1.0-canary.22
|
446
|
-
|
447
|
-
## 7.1.0-canary.21
|
448
|
-
|
449
|
-
## 7.1.0-canary.20
|
450
|
-
|
451
|
-
## 7.1.0-canary.19
|
452
|
-
|
453
|
-
## 7.1.0-canary.18
|
454
|
-
|
455
|
-
## 7.1.0-canary.17
|
456
|
-
|
457
|
-
## 7.1.0-canary.16
|
458
|
-
|
459
|
-
## 7.1.0-canary.15
|
460
|
-
|
461
|
-
## 7.1.0-canary.14
|
462
|
-
|
463
|
-
## 7.1.0-canary.13
|
464
|
-
|
465
|
-
## 7.1.0-canary.12
|
466
|
-
|
467
|
-
## 7.1.0-canary.11
|
468
|
-
|
469
|
-
## 7.1.0-canary.10
|
470
|
-
|
471
|
-
## 7.1.0-canary.9
|
472
|
-
|
473
|
-
## 7.1.0-canary.8
|
474
|
-
|
475
|
-
## 7.0.2-canary.7
|
476
|
-
|
477
|
-
## 7.0.2-canary.6
|
478
|
-
|
479
|
-
## 7.0.2-canary.5
|
480
|
-
|
481
|
-
## 7.0.1
|
482
|
-
|
483
|
-
### Patch Changes
|
484
|
-
|
485
|
-
- [#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))
|
486
|
-
|
487
|
-
## 7.0.1-canary.15
|
488
|
-
|
489
|
-
## 7.0.1-canary.14
|
490
|
-
|
491
|
-
## 7.0.1-canary.13
|
492
|
-
|
493
|
-
## 7.0.1-canary.12
|
494
|
-
|
495
|
-
## 7.0.1-canary.11
|
496
|
-
|
497
|
-
## 7.0.1-canary.10
|
498
|
-
|
499
|
-
## 7.0.1-canary.9
|
500
|
-
|
501
|
-
## 7.0.1-canary.8
|
502
|
-
|
503
|
-
## 7.0.1-canary.7
|
504
|
-
|
505
|
-
## 7.0.1-canary.6
|
506
|
-
|
507
|
-
## 7.0.1-canary.5
|
508
|
-
|
509
|
-
## 7.0.1-canary.4
|
510
|
-
|
511
|
-
## 7.0.1-canary.3
|
512
|
-
|
513
|
-
## 7.0.1-canary.2
|
514
|
-
|
515
|
-
## 7.0.1-canary.1
|
516
|
-
|
517
|
-
## 7.0.1-canary.0
|
518
|
-
|
519
|
-
### Patch Changes
|
520
|
-
|
521
|
-
- [#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))
|
522
|
-
|
523
|
-
## 7.0.0
|
524
|
-
|
525
|
-
## 6.2.0-canary.98
|
526
|
-
|
527
|
-
## 6.2.0-canary.97
|
528
|
-
|
529
|
-
## 6.2.0-canary.96
|
530
|
-
|
531
|
-
## 6.2.0-canary.95
|
532
|
-
|
533
|
-
## 6.2.0-canary.94
|
534
|
-
|
535
|
-
## 6.2.0-canary.93
|
536
|
-
|
537
|
-
## 6.2.0-canary.92
|
538
|
-
|
539
|
-
## 6.2.0-canary.91
|
540
|
-
|
541
|
-
## 6.2.0-canary.90
|
542
|
-
|
543
|
-
## 6.2.0-canary.89
|
544
|
-
|
545
|
-
## 6.2.0-canary.88
|
546
|
-
|
547
|
-
## 6.2.0-canary.87
|
548
|
-
|
549
|
-
## 6.2.0-canary.86
|
550
|
-
|
551
|
-
## 6.2.0-canary.85
|
552
|
-
|
553
|
-
## 6.2.0-canary.84
|
554
|
-
|
555
|
-
## 6.2.0-canary.83
|
556
|
-
|
557
|
-
## 6.2.0-canary.82
|
558
|
-
|
559
|
-
## 6.2.0-canary.81
|
560
|
-
|
561
|
-
## 6.2.0-canary.80
|
562
|
-
|
563
|
-
## 6.2.0-canary.79
|
564
|
-
|
565
|
-
## 6.2.0-canary.78
|
566
|
-
|
567
|
-
## 6.2.0-canary.77
|
568
|
-
|
569
|
-
## 6.2.0-canary.76
|
570
|
-
|
571
|
-
## 6.2.0-canary.75
|
572
|
-
|
573
|
-
## 6.2.0-canary.74
|
574
|
-
|
575
|
-
## 6.2.0-canary.73
|
576
|
-
|
577
|
-
## 6.2.0-canary.72
|
578
|
-
|
579
|
-
## 6.2.0-canary.71
|
580
|
-
|
581
|
-
## 6.2.0-canary.70
|
582
|
-
|
583
|
-
## 6.2.0-canary.69
|
584
|
-
|
585
|
-
## 6.2.0-canary.68
|
586
|
-
|
587
|
-
## 6.2.0-canary.67
|
588
|
-
|
589
|
-
## 6.2.0-canary.66
|
590
|
-
|
591
|
-
## 6.2.0-canary.65
|
592
|
-
|
593
|
-
## 6.2.0-canary.64
|
594
|
-
|
595
|
-
## 6.2.0-canary.63
|
596
|
-
|
597
|
-
## 6.2.0-canary.62
|
598
|
-
|
599
|
-
## 6.2.0-canary.61
|
600
|
-
|
601
|
-
## 6.2.0-canary.60
|
602
|
-
|
603
|
-
## 6.2.0-canary.59
|
604
|
-
|
605
|
-
## 6.2.0-canary.58
|
606
|
-
|
607
|
-
## 6.2.0-canary.57
|
608
|
-
|
609
|
-
## 6.2.0-canary.56
|
610
|
-
|
611
|
-
## 6.2.0-canary.55
|
612
|
-
|
613
|
-
## 6.2.0-canary.54
|
614
|
-
|
615
|
-
## 6.2.0-canary.53
|
616
|
-
|
617
|
-
## 6.2.0-canary.52
|
618
|
-
|
619
|
-
## 6.2.0-canary.51
|
620
|
-
|
621
|
-
## 6.2.0-canary.50
|
622
|
-
|
623
|
-
## 6.2.0-canary.49
|
624
|
-
|
625
|
-
## 6.2.0-canary.48
|
626
|
-
|
627
|
-
## 6.2.0-canary.47
|
628
|
-
|
629
|
-
## 6.2.0-canary.46
|
630
|
-
|
631
|
-
## 6.2.0-canary.45
|
632
|
-
|
633
|
-
## 6.2.0-canary.44
|
634
|
-
|
635
|
-
## 6.2.0-canary.43
|
636
|
-
|
637
|
-
## 6.2.0-canary.42
|
638
|
-
|
639
|
-
## 6.2.0-canary.41
|
640
|
-
|
641
|
-
## 6.2.0-canary.40
|
642
|
-
|
643
|
-
## 6.2.0-canary.39
|
644
|
-
|
645
|
-
## 6.2.0-canary.38
|
646
|
-
|
647
|
-
## 6.2.0-canary.37
|
648
|
-
|
649
|
-
## 6.2.0-canary.36
|
650
|
-
|
651
|
-
## 6.2.0-canary.35
|
652
|
-
|
653
|
-
## 6.2.0-canary.34
|
654
|
-
|
655
|
-
## 6.2.0-canary.33
|
656
|
-
|
657
|
-
## 6.2.0-canary.32
|
658
|
-
|
659
|
-
## 6.2.0-canary.31
|
660
|
-
|
661
|
-
## 6.2.0-canary.30
|
662
|
-
|
663
|
-
## 6.2.0-canary.29
|
664
|
-
|
665
|
-
## 6.2.0-canary.28
|
666
|
-
|
667
|
-
## 6.2.0-canary.27
|
668
|
-
|
669
|
-
## 6.2.0-canary.26
|
670
|
-
|
671
|
-
## 6.2.0-canary.25
|
672
|
-
|
673
|
-
## 6.2.0-canary.24
|
674
|
-
|
675
|
-
## 6.2.0-canary.23
|
676
|
-
|
677
|
-
## 6.2.0-canary.22
|
678
|
-
|
679
|
-
## 6.2.0-canary.21
|
680
|
-
|
681
|
-
## 6.2.0-canary.20
|
682
|
-
|
683
|
-
## 6.2.0-canary.19
|
684
|
-
|
685
|
-
## 6.2.0-canary.18
|
686
|
-
|
687
|
-
## 6.2.0-canary.17
|
688
|
-
|
689
|
-
## 6.2.0-canary.16
|
690
|
-
|
691
|
-
## 6.2.0-canary.15
|
692
|
-
|
693
|
-
## 6.2.0-canary.14
|
694
|
-
|
695
|
-
## 6.2.0-canary.13
|
696
|
-
|
697
|
-
## 6.2.0-canary.12
|
698
|
-
|
699
|
-
## 6.2.0-canary.11
|
700
|
-
|
701
|
-
## 6.2.0-canary.10
|
702
|
-
|
703
|
-
## 6.2.0-canary.9
|
704
|
-
|
705
|
-
## 6.2.0-canary.8
|
706
|
-
|
707
|
-
## 6.2.0-canary.7
|
708
|
-
|
709
|
-
## 6.2.0-canary.6
|
710
|
-
|
711
|
-
## 6.1.1-canary.5
|
712
|
-
|
713
|
-
## 6.1.1-canary.4
|
714
|
-
|
715
|
-
## 6.1.1-canary.3
|
716
|
-
|
717
|
-
## 6.1.1-canary.2
|
718
|
-
|
719
|
-
## 6.1.1-canary.1
|
720
|
-
|
721
|
-
## 6.1.1-canary.0
|
722
|
-
|
723
|
-
## 6.1.0
|
724
|
-
|
725
|
-
## 6.0.2-canary.22
|
726
|
-
|
727
|
-
## 6.0.2-canary.21
|
728
|
-
|
729
|
-
## 6.0.2-canary.20
|
730
|
-
|
731
|
-
## 6.0.2-canary.19
|
732
|
-
|
733
|
-
## 6.0.2-canary.18
|
734
|
-
|
735
|
-
## 6.0.2-canary.17
|
736
|
-
|
737
|
-
## 6.0.2-canary.16
|
738
|
-
|
739
|
-
## 6.0.2-canary.15
|
740
|
-
|
741
|
-
## 6.0.2-canary.14
|
742
|
-
|
743
|
-
## 6.0.2-canary.13
|
744
|
-
|
745
|
-
## 6.0.2-canary.12
|
746
|
-
|
747
|
-
## 6.0.2-canary.11
|
748
|
-
|
749
|
-
## 6.0.2-canary.10
|
750
|
-
|
751
|
-
## 6.0.2-canary.9
|
752
|
-
|
753
|
-
## 6.0.2-canary.8
|
7
|
+
## 9.0.0-canary.80
|
754
8
|
|
755
|
-
|
9
|
+
### Minor Changes
|
756
10
|
|
757
|
-
|
11
|
+
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`1d6512d`](https://github.com/graphcommerce-org/graphcommerce/commit/1d6512d4118cfb46602aa1f2432c3566fdb3261d) - Rename experimental_useV2 prop to deprecated_useV1 in useFromGql and enable it by default ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
758
12
|
|
759
|
-
##
|
13
|
+
## 9.0.0-canary.60
|
760
14
|
|
761
|
-
|
15
|
+
### Patch Changes
|
762
16
|
|
763
|
-
|
17
|
+
- [#2331](https://github.com/graphcommerce-org/graphcommerce/pull/2331) [`702bfc9`](https://github.com/graphcommerce-org/graphcommerce/commit/702bfc93566c9745546988e57988431d5d4d8cb0) - Moved plugins to new format ([@paales](https://github.com/paales))
|
764
18
|
|
765
|
-
##
|
19
|
+
## 8.1.0-canary.18
|
766
20
|
|
767
|
-
|
21
|
+
### Patch Changes
|
768
22
|
|
769
|
-
|
23
|
+
- [#2277](https://github.com/graphcommerce-org/graphcommerce/pull/2277) [`f9199f7`](https://github.com/graphcommerce-org/graphcommerce/commit/f9199f798583138a68dd641ea6637375c487f29b) - Solve issue where Braintree wouldn't place the order after successfully validating a Credit Card. ([@paales](https://github.com/paales))
|
770
24
|
|
771
|
-
##
|
25
|
+
## 8.0.6-canary.2
|
772
26
|
|
773
|
-
|
27
|
+
### Patch Changes
|
774
28
|
|
775
|
-
|
29
|
+
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`43bd04a`](https://github.com/graphcommerce-org/graphcommerce/commit/43bd04a777c5800cc7e01bee1e123a5aad82f194) - Prevent BillingPage query from rerunning on each mutation ([@FrankHarland](https://github.com/FrankHarland))
|
776
30
|
|
777
|
-
##
|
31
|
+
## 8.0.5
|
778
32
|
|
779
|
-
|
33
|
+
### Patch Changes
|
780
34
|
|
781
|
-
|
35
|
+
- [#2188](https://github.com/graphcommerce-org/graphcommerce/pull/2188) [`eec7498`](https://github.com/graphcommerce-org/graphcommerce/commit/eec7498213f34f0f850123b577b77bf678e3c80b) - Braintree Credit Card: Hosted payment fields now have proper styling and all focus/blur and error states are correctly handled. ([@paales](https://github.com/paales))
|
782
36
|
|
783
|
-
##
|
37
|
+
## 7.0.1
|
784
38
|
|
785
|
-
|
39
|
+
### Patch Changes
|
786
40
|
|
787
|
-
|
41
|
+
- [#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))
|
788
42
|
|
789
43
|
## 6.0.0
|
790
44
|
|
@@ -800,136 +54,6 @@
|
|
800
54
|
|
801
55
|
- [#1841](https://github.com/graphcommerce-org/graphcommerce/pull/1841) [`1ff022c4b`](https://github.com/graphcommerce-org/graphcommerce/commit/1ff022c4bd8ad1d9fa8c1760076f003af06ce421) - PaymentMethodUpdated is now @injectable to allow for easier customisation. ([@paales](https://github.com/paales))
|
802
56
|
|
803
|
-
## 6.0.0-canary.54
|
804
|
-
|
805
|
-
## 6.0.0-canary.53
|
806
|
-
|
807
|
-
## 6.0.0-canary.52
|
808
|
-
|
809
|
-
## 6.0.0-canary.51
|
810
|
-
|
811
|
-
## 6.0.0-canary.50
|
812
|
-
|
813
|
-
## 6.0.0-canary.49
|
814
|
-
|
815
|
-
## 6.0.0-canary.48
|
816
|
-
|
817
|
-
## 6.0.0-canary.47
|
818
|
-
|
819
|
-
## 6.0.0-canary.46
|
820
|
-
|
821
|
-
## 6.0.0-canary.45
|
822
|
-
|
823
|
-
## 6.0.0-canary.44
|
824
|
-
|
825
|
-
## 6.0.0-canary.43
|
826
|
-
|
827
|
-
### Patch Changes
|
828
|
-
|
829
|
-
- [#1841](https://github.com/graphcommerce-org/graphcommerce/pull/1841) [`1ff022c4b`](https://github.com/graphcommerce-org/graphcommerce/commit/1ff022c4bd8ad1d9fa8c1760076f003af06ce421) - Make sure we're using the the PaymentMethodUpdated fragment to allow for injection ([@paales](https://github.com/paales))
|
830
|
-
|
831
|
-
## 6.0.0-canary.42
|
832
|
-
|
833
|
-
## 6.0.0-canary.41
|
834
|
-
|
835
|
-
## 6.0.0-canary.40
|
836
|
-
|
837
|
-
## 6.0.0-canary.39
|
838
|
-
|
839
|
-
## 6.0.0-canary.38
|
840
|
-
|
841
|
-
## 6.0.0-canary.37
|
842
|
-
|
843
|
-
## 6.0.0-canary.36
|
844
|
-
|
845
|
-
## 6.0.0-canary.35
|
846
|
-
|
847
|
-
## 6.0.0-canary.34
|
848
|
-
|
849
|
-
## 6.0.0-canary.33
|
850
|
-
|
851
|
-
## 6.0.0-canary.32
|
852
|
-
|
853
|
-
## 6.0.0-canary.31
|
854
|
-
|
855
|
-
## 6.0.0-canary.30
|
856
|
-
|
857
|
-
## 6.0.0-canary.29
|
858
|
-
|
859
|
-
## 6.0.0-canary.28
|
860
|
-
|
861
|
-
## 6.0.0-canary.27
|
862
|
-
|
863
|
-
## 6.0.0-canary.26
|
864
|
-
|
865
|
-
## 6.0.0-canary.25
|
866
|
-
|
867
|
-
## 6.0.0-canary.24
|
868
|
-
|
869
|
-
## 6.0.0-canary.23
|
870
|
-
|
871
|
-
## 6.0.0-canary.22
|
872
|
-
|
873
|
-
## 6.0.0-canary.21
|
874
|
-
|
875
|
-
## 6.0.0-canary.20
|
876
|
-
|
877
|
-
## 5.2.0-canary.19
|
878
|
-
|
879
|
-
## 5.2.0-canary.18
|
880
|
-
|
881
|
-
## 5.2.0-canary.17
|
882
|
-
|
883
|
-
## 5.2.0-canary.16
|
884
|
-
|
885
|
-
## 5.2.0-canary.15
|
886
|
-
|
887
|
-
## 5.2.0-canary.14
|
888
|
-
|
889
|
-
## 5.2.0-canary.13
|
890
|
-
|
891
|
-
## 5.2.0-canary.12
|
892
|
-
|
893
|
-
## 5.2.0-canary.11
|
894
|
-
|
895
|
-
## 5.2.0-canary.10
|
896
|
-
|
897
|
-
## 5.2.0-canary.9
|
898
|
-
|
899
|
-
## 5.2.0-canary.8
|
900
|
-
|
901
|
-
## 5.2.0-canary.7
|
902
|
-
|
903
|
-
## 5.2.0-canary.6
|
904
|
-
|
905
|
-
## 5.2.0-canary.5
|
906
|
-
|
907
|
-
## 5.2.0-canary.4
|
908
|
-
|
909
|
-
## 5.2.0-canary.3
|
910
|
-
|
911
|
-
### Minor Changes
|
912
|
-
|
913
|
-
- [#1766](https://github.com/graphcommerce-org/graphcommerce/pull/1766) [`e34169ee2`](https://github.com/graphcommerce-org/graphcommerce/commit/e34169ee2e0fdc052ff589ceca0bc67557584c1f) - Upgraded to Next.js 13
|
914
|
-
|
915
|
-
- NextLink integrates the next/link functionality with @mui/material's Link and ButtonBase (and all it's derivatives) components.
|
916
|
-
- NextLink automatically adds `target="_blank"` when the href is external.
|
917
|
-
- NextLink makes all relative href absolute. `href="my-page"` will be rendered as `href="/my-page"`.
|
918
|
-
|
919
|
-
Upgrade instructions: https://www.graphcommerce.org/docs/framework/links#upgrading-from-nextjs-12 ([@paales](https://github.com/paales))
|
920
|
-
|
921
|
-
## 5.2.0-canary.2
|
922
|
-
|
923
|
-
## 5.2.0-canary.1
|
924
|
-
|
925
|
-
## 5.2.0-canary.0
|
926
|
-
|
927
|
-
## 5.1.1
|
928
|
-
|
929
|
-
## 5.1.1-canary.1
|
930
|
-
|
931
|
-
## 5.1.1-canary.0
|
932
|
-
|
933
57
|
## 5.1.0
|
934
58
|
|
935
59
|
### Patch Changes
|
@@ -943,43 +67,6 @@
|
|
943
67
|
- Upgraded dependencies including type-fest and graphql-mesh
|
944
68
|
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
945
69
|
|
946
|
-
## 5.1.0-canary.11
|
947
|
-
|
948
|
-
## 5.1.0-canary.10
|
949
|
-
|
950
|
-
### Patch Changes
|
951
|
-
|
952
|
-
- [#1760](https://github.com/graphcommerce-org/graphcommerce/pull/1760) [`8badc8550`](https://github.com/graphcommerce-org/graphcommerce/commit/8badc8550c402ac7b80c8d3238d313550c28a055) - Updated dependencies ([@paales](https://github.com/paales))
|
953
|
-
|
954
|
-
## 5.1.0-canary.9
|
955
|
-
|
956
|
-
## 5.1.0-canary.8
|
957
|
-
|
958
|
-
## 5.1.0-canary.7
|
959
|
-
|
960
|
-
## 5.1.0-canary.6
|
961
|
-
|
962
|
-
## 5.1.0-canary.5
|
963
|
-
|
964
|
-
## 5.1.0-canary.4
|
965
|
-
|
966
|
-
## 5.1.0-canary.3
|
967
|
-
|
968
|
-
### Patch Changes
|
969
|
-
|
970
|
-
- [#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.
|
971
|
-
|
972
|
-
- Updated the @mui/material package
|
973
|
-
- Removed dependencies on react-hook-form-mui and @playwright/test
|
974
|
-
- Upgraded dependencies including type-fest and graphql-mesh
|
975
|
-
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
976
|
-
|
977
|
-
## 5.1.0-canary.2
|
978
|
-
|
979
|
-
## 5.1.0-canary.1
|
980
|
-
|
981
|
-
## 5.1.0-canary.0
|
982
|
-
|
983
70
|
## 5.0.0
|
984
71
|
|
985
72
|
### Major Changes
|
@@ -1008,84 +95,12 @@
|
|
1008
95
|
|
1009
96
|
- [#1738](https://github.com/graphcommerce-org/graphcommerce/pull/1738) [`52882a63e`](https://github.com/graphcommerce-org/graphcommerce/commit/52882a63e96c0d3ba9641c3714d288fa4f420c82) - Do not forward the Prev prop in plugins ([@paales](https://github.com/paales))
|
1010
97
|
|
1011
|
-
## 5.0.0-canary.14
|
1012
|
-
|
1013
|
-
## 5.0.0-canary.13
|
1014
|
-
|
1015
|
-
### Major Changes
|
1016
|
-
|
1017
|
-
- [`e4c7fe17e`](https://github.com/graphcommerce-org/graphcommerce/commit/e4c7fe17e413e37362ceae92e67f1b3a5f62d398) - Bump major version of all packages ([@paales](https://github.com/paales))
|
1018
|
-
|
1019
|
-
## 4.14.0-canary.12
|
1020
|
-
|
1021
|
-
## 4.14.0-canary.11
|
1022
|
-
|
1023
|
-
## 4.14.0-canary.10
|
1024
|
-
|
1025
|
-
## 4.14.0-canary.9
|
1026
|
-
|
1027
|
-
## 4.14.0-canary.8
|
1028
|
-
|
1029
|
-
## 4.14.0-canary.7
|
1030
|
-
|
1031
|
-
### Patch Changes
|
1032
|
-
|
1033
|
-
- [#1738](https://github.com/graphcommerce-org/graphcommerce/pull/1738) [`52882a63e`](https://github.com/graphcommerce-org/graphcommerce/commit/52882a63e96c0d3ba9641c3714d288fa4f420c82) - Do not forward the Prev prop in plugins ([@paales](https://github.com/paales))
|
1034
|
-
|
1035
|
-
## 4.14.0-canary.6
|
1036
|
-
|
1037
|
-
## 4.14.0-canary.5
|
1038
|
-
|
1039
|
-
## 4.14.0-canary.4
|
1040
|
-
|
1041
|
-
### Patch Changes
|
1042
|
-
|
1043
|
-
- [#1733](https://github.com/graphcommerce-org/graphcommerce/pull/1733) [`b2d73c726`](https://github.com/graphcommerce-org/graphcommerce/commit/b2d73c726fa123435fa6c54b4e0fd0db2df7c4ab) - Move to <Prev/> instead of <Component/> to call the plugin component ([@paales](https://github.com/paales))
|
1044
|
-
|
1045
|
-
- [#1733](https://github.com/graphcommerce-org/graphcommerce/pull/1733) [`be10e8cd1`](https://github.com/graphcommerce-org/graphcommerce/commit/be10e8cd1dce172a914ee9e5f65fdca4d0929fc8) - Migrated payment methods to use the new `onSuccess` method from `PaymentMethodContextProvider` instead of redirecting manually, makes sure the onSuccess method can be used by plugins. ([@paales](https://github.com/paales))
|
1046
|
-
|
1047
|
-
## 4.14.0-canary.3
|
1048
|
-
|
1049
|
-
### Patch Changes
|
1050
|
-
|
1051
|
-
- [#1729](https://github.com/graphcommerce-org/graphcommerce/pull/1729) [`4f85e4878`](https://github.com/graphcommerce-org/graphcommerce/commit/4f85e4878e4ad0dd528d60ad35826da0677059a9) - Add the ability to specificy plugins on the package name (e.g. `@graphcommerce/magento-cart-payment-method`) ([@paales](https://github.com/paales))
|
1052
|
-
|
1053
|
-
## 4.14.0-canary.2
|
1054
|
-
|
1055
|
-
### Minor Changes
|
1056
|
-
|
1057
|
-
- [#1718](https://github.com/graphcommerce-org/graphcommerce/pull/1718) [`f08bffd63`](https://github.com/graphcommerce-org/graphcommerce/commit/f08bffd63780cb626f072b25c2fd4da37543b6f7) - Add payment methods with a plugin ([@paales](https://github.com/paales))
|
1058
|
-
|
1059
|
-
## 4.13.2-canary.1
|
1060
|
-
|
1061
|
-
## 4.13.2-canary.0
|
1062
|
-
|
1063
|
-
## 4.13.3
|
1064
|
-
|
1065
|
-
## 4.13.2
|
1066
|
-
|
1067
|
-
## 4.13.1
|
1068
|
-
|
1069
|
-
## 4.13.1-canary.2
|
1070
|
-
|
1071
|
-
## 4.13.1-canary.1
|
1072
|
-
|
1073
|
-
## 4.13.1-canary.0
|
1074
|
-
|
1075
98
|
## 4.13.0
|
1076
99
|
|
1077
100
|
### Patch Changes
|
1078
101
|
|
1079
102
|
- [#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
|
1080
103
|
|
1081
|
-
## 4.13.0-canary.1
|
1082
|
-
|
1083
|
-
### Patch Changes
|
1084
|
-
|
1085
|
-
- [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
|
1086
|
-
|
1087
|
-
## 4.13.0-canary.0
|
1088
|
-
|
1089
104
|
## 3.0.66
|
1090
105
|
|
1091
106
|
### Patch Changes
|
@@ -1619,8 +634,8 @@
|
|
1619
634
|
Needs to be replaced with:
|
1620
635
|
|
1621
636
|
```tsx
|
1622
|
-
import { Trans } from '@lingui/react'
|
1623
637
|
import { i18n } from '@lingui/core'
|
638
|
+
import { Trans } from '@lingui/react'
|
1624
639
|
|
1625
640
|
function MyComponent() {
|
1626
641
|
const foo = 'bar'
|
package/hooks/useBraintree.ts
CHANGED
@@ -1,5 +1,7 @@
|
|
1
|
-
import { ApolloClient
|
2
|
-
import
|
1
|
+
import type { ApolloClient } from '@graphcommerce/graphql'
|
2
|
+
import { useApolloClient } from '@graphcommerce/graphql'
|
3
|
+
import type { Client } from 'braintree-web'
|
4
|
+
import braintree from 'braintree-web'
|
3
5
|
import { useRef } from 'react'
|
4
6
|
import { UseBraintreeDocument } from './UseBraintree.gql'
|
5
7
|
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { CartLockState
|
1
|
+
import type { CartLockState } from '@graphcommerce/magento-cart-payment-method'
|
2
|
+
import { useCartLock } from '@graphcommerce/magento-cart-payment-method'
|
2
3
|
|
3
4
|
type BraintreeCartLock = CartLockState & {
|
4
5
|
payment_id: string | null
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import type { HostedFields, ThreeDSecure } from 'braintree-web'
|
2
|
+
import braintree from 'braintree-web'
|
2
3
|
import { useEffect, useState } from 'react'
|
3
4
|
import { useBraintreeClient } from './useBraintree'
|
4
5
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import braintree from 'braintree-web'
|
2
2
|
import { useRef } from 'react'
|
3
|
-
import { StartPaymentOptions
|
3
|
+
import type { StartPaymentOptions } from './useBraintree'
|
4
|
+
import { useBraintreeClient } from './useBraintree'
|
4
5
|
|
5
6
|
type StartPaymentPayload = {
|
6
7
|
nonce: string
|
@@ -1,27 +1,25 @@
|
|
1
1
|
/* eslint-disable jsx-a11y/label-has-associated-control */
|
2
2
|
import { useCartQuery, useFormGqlMutationCart } from '@graphcommerce/magento-cart'
|
3
|
-
import { PaymentOptionsProps, useCartLock } from '@graphcommerce/magento-cart-payment-method'
|
4
3
|
import { BillingPageDocument } from '@graphcommerce/magento-cart-checkout'
|
4
|
+
import type { PaymentOptionsProps } from '@graphcommerce/magento-cart-payment-method'
|
5
|
+
import { useCartLock } from '@graphcommerce/magento-cart-payment-method'
|
5
6
|
import { ErrorSnackbar, FormRow, FullPageMessage } from '@graphcommerce/next-ui'
|
6
|
-
import {
|
7
|
-
|
8
|
-
FormProvider,
|
9
|
-
Path,
|
10
|
-
UseControllerProps,
|
11
|
-
useController,
|
12
|
-
useFormCompose,
|
13
|
-
} from '@graphcommerce/react-hook-form'
|
7
|
+
import type { FieldValues, Path, UseControllerProps } from '@graphcommerce/react-hook-form'
|
8
|
+
import { FormProvider, useController, useFormCompose } from '@graphcommerce/react-hook-form'
|
14
9
|
import { i18n } from '@lingui/core'
|
15
10
|
import { Trans } from '@lingui/react'
|
16
11
|
import { Box, CircularProgress, TextField } from '@mui/material'
|
17
|
-
import { HostedFields } from 'braintree-web'
|
18
|
-
import {
|
12
|
+
import type { HostedFields } from 'braintree-web'
|
13
|
+
import type {
|
14
|
+
HostedFieldsEvent,
|
15
|
+
HostedFieldsHostedFieldsFieldName,
|
16
|
+
} from 'braintree-web/hosted-fields'
|
19
17
|
import React, { useEffect, useState } from 'react'
|
20
|
-
import {
|
21
|
-
BraintreePaymentMethodOptionsDocument,
|
18
|
+
import type {
|
22
19
|
BraintreePaymentMethodOptionsMutation,
|
23
20
|
BraintreePaymentMethodOptionsMutationVariables,
|
24
21
|
} from '../../BraintreePaymentMethodOptions.gql'
|
22
|
+
import { BraintreePaymentMethodOptionsDocument } from '../../BraintreePaymentMethodOptions.gql'
|
25
23
|
import { useBraintreeHostedFields } from '../../hooks/useBraintreeHostedFields'
|
26
24
|
import { isBraintreeError } from '../../utils/isBraintreeError'
|
27
25
|
|
@@ -1,19 +1,15 @@
|
|
1
1
|
import { useCartQuery, useFormGqlMutationCart } from '@graphcommerce/magento-cart'
|
2
|
-
import {
|
3
|
-
|
4
|
-
usePaymentMethodContext,
|
5
|
-
} from '@graphcommerce/magento-cart-payment-method'
|
2
|
+
import type { PaymentOptionsProps } from '@graphcommerce/magento-cart-payment-method'
|
3
|
+
import { usePaymentMethodContext } from '@graphcommerce/magento-cart-payment-method'
|
6
4
|
import { useFormCompose } from '@graphcommerce/react-hook-form'
|
7
5
|
import { useEffect } from 'react'
|
8
6
|
import { BraintreePaymentMethodOptionsDocument } from '../../BraintreePaymentMethodOptions.gql'
|
9
|
-
import { StartPaymentOptions } from '../../hooks/useBraintree'
|
7
|
+
import type { StartPaymentOptions } from '../../hooks/useBraintree'
|
10
8
|
import { useBraintreeCartLock } from '../../hooks/useBraintreeCartLock'
|
11
9
|
import { useBraintreeLocalPayment } from '../../hooks/useBraintreeLocalPayment'
|
12
10
|
import { isBraintreeError } from '../../utils/isBraintreeError'
|
13
|
-
import {
|
14
|
-
|
15
|
-
BraintreeLocalPaymentsCartQuery,
|
16
|
-
} from './BraintreeLocalPaymentsCart.gql'
|
11
|
+
import type { BraintreeLocalPaymentsCartQuery } from './BraintreeLocalPaymentsCart.gql'
|
12
|
+
import { BraintreeLocalPaymentsCartDocument } from './BraintreeLocalPaymentsCart.gql'
|
17
13
|
|
18
14
|
function validateAndBuildStartPaymentParams(cartData: BraintreeLocalPaymentsCartQuery): Partial {
|
19
15
|
const cart = cartData?.cart
|
@@ -1,4 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import type {
|
2
|
+
ExpandPaymentMethods,
|
3
|
+
PaymentMethod,
|
4
|
+
} from '@graphcommerce/magento-cart-payment-method'
|
2
5
|
|
3
6
|
/**
|
4
7
|
* Local payment methods can be expanded to multiple separate methods logic taken from
|
@@ -1,7 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
PaymentModule,
|
4
|
-
} from '@graphcommerce/magento-cart-payment-method'
|
1
|
+
import type { PaymentModule } from '@graphcommerce/magento-cart-payment-method'
|
2
|
+
import { PaymentMethodPlaceOrderNoop } from '@graphcommerce/magento-cart-payment-method'
|
5
3
|
import { PaymentHandler } from './PaymentHandler'
|
6
4
|
import { PaymentMethodOptions } from './PaymentMethodOptions'
|
7
5
|
import { expandMethods } from './expandMethods'
|
@@ -1,8 +1,6 @@
|
|
1
1
|
import { useCartQuery, useFormGqlMutationCart } from '@graphcommerce/magento-cart'
|
2
|
-
import {
|
3
|
-
|
4
|
-
usePaymentMethodContext,
|
5
|
-
} from '@graphcommerce/magento-cart-payment-method'
|
2
|
+
import type { PaymentOptionsProps } from '@graphcommerce/magento-cart-payment-method'
|
3
|
+
import { usePaymentMethodContext } from '@graphcommerce/magento-cart-payment-method'
|
6
4
|
import { useFormCompose } from '@graphcommerce/react-hook-form'
|
7
5
|
// import { PayPalCheckoutCreatePaymentOptions } from 'braintree-web/paypal-checkout'
|
8
6
|
import type { FlowType, Intent } from 'paypal-checkout-components'
|
@@ -1,7 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
PaymentModule,
|
4
|
-
} from '@graphcommerce/magento-cart-payment-method'
|
1
|
+
import type { PaymentModule } from '@graphcommerce/magento-cart-payment-method'
|
2
|
+
import { PaymentMethodPlaceOrderNoop } from '@graphcommerce/magento-cart-payment-method'
|
5
3
|
import { PaymentMethodOptions } from './PaymentMethodOptions'
|
6
4
|
|
7
5
|
export const braintree_paypal: PaymentModule = {
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "@graphcommerce/magento-payment-braintree",
|
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.104",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -18,24 +18,24 @@
|
|
18
18
|
"braintree-web": "^3.109.0"
|
19
19
|
},
|
20
20
|
"peerDependencies": {
|
21
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
22
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
23
|
-
"@graphcommerce/image": "^9.0.0-canary.
|
24
|
-
"@graphcommerce/magento-cart": "^9.0.0-canary.
|
25
|
-
"@graphcommerce/magento-cart-payment-method": "^9.0.0-canary.
|
26
|
-
"@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.
|
27
|
-
"@graphcommerce/magento-product": "^9.0.0-canary.
|
28
|
-
"@graphcommerce/magento-product-configurable": "^9.0.0-canary.
|
29
|
-
"@graphcommerce/magento-store": "^9.0.0-canary.
|
30
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
31
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
32
|
-
"@graphcommerce/react-hook-form": "^9.0.0-canary.
|
33
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
21
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.104",
|
22
|
+
"@graphcommerce/graphql": "^9.0.0-canary.104",
|
23
|
+
"@graphcommerce/image": "^9.0.0-canary.104",
|
24
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.104",
|
25
|
+
"@graphcommerce/magento-cart-payment-method": "^9.0.0-canary.104",
|
26
|
+
"@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.104",
|
27
|
+
"@graphcommerce/magento-product": "^9.0.0-canary.104",
|
28
|
+
"@graphcommerce/magento-product-configurable": "^9.0.0-canary.104",
|
29
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.104",
|
30
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.104",
|
31
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.104",
|
32
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.104",
|
33
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.104",
|
34
34
|
"@lingui/core": "^4.2.1",
|
35
35
|
"@lingui/macro": "^4.2.1",
|
36
36
|
"@lingui/react": "^4.2.1",
|
37
37
|
"@mui/material": "^5.10.16",
|
38
|
-
"framer-motion": "^
|
38
|
+
"framer-motion": "^11.0.0",
|
39
39
|
"next": "*",
|
40
40
|
"react": "^18.2.0",
|
41
41
|
"react-dom": "^18.2.0"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PaymentMethodContextProviderProps } from '@graphcommerce/magento-cart-payment-method'
|
1
|
+
import type { PaymentMethodContextProviderProps } from '@graphcommerce/magento-cart-payment-method'
|
2
2
|
import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
|
3
3
|
import { braintree } from '../methods/braintree'
|
4
4
|
import { braintree_local_payment } from '../methods/braintree_local_payments'
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies */
|
2
|
+
|
2
3
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
3
4
|
import { waitForGraphQlResponse } from '@graphcommerce/graphql/test/apolloClient.fixture'
|
4
5
|
import { PaymentMethodPlaceOrderNoopDocument } from '@graphcommerce/magento-cart-payment-method/PaymentMethodPlaceOrderNoop/PaymentMethodPlaceOrderNoop.gql'
|
5
6
|
import { fillShippingAddressForm } from '@graphcommerce/magento-cart-shipping-address/test/fillShippingAddressForm'
|
6
|
-
import { test } from '@graphcommerce/magento-product/test/productURL.fixture'
|
7
7
|
import { addConfigurableProductToCart } from '@graphcommerce/magento-product-configurable/test/addConfigurableProductToCart'
|
8
|
+
import { test } from '@graphcommerce/magento-product/test/productURL.fixture'
|
8
9
|
import { expect } from '@playwright/test'
|
9
10
|
|
10
11
|
test('place order', async ({ page, productURL }) => {
|
@@ -1,10 +1,11 @@
|
|
1
1
|
/* eslint-disable import/no-extraneous-dependencies */
|
2
|
+
|
2
3
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
3
4
|
import { waitForGraphQlResponse } from '@graphcommerce/graphql/test/apolloClient.fixture'
|
4
5
|
import { PaymentMethodPlaceOrderNoopDocument } from '@graphcommerce/magento-cart-payment-method/PaymentMethodPlaceOrderNoop/PaymentMethodPlaceOrderNoop.gql'
|
5
6
|
import { goToPayment } from '@graphcommerce/magento-cart-payment-method/test/goToPayment'
|
6
|
-
import { test } from '@graphcommerce/magento-product/test/productURL.fixture'
|
7
7
|
import { addConfigurableProductToCart } from '@graphcommerce/magento-product-configurable/test/addConfigurableProductToCart'
|
8
|
+
import { test } from '@graphcommerce/magento-product/test/productURL.fixture'
|
8
9
|
import { expect } from '@playwright/test'
|
9
10
|
|
10
11
|
test('place order ideal', async ({ page, productURL, apolloClient, locale }) => {
|