@graphcommerce/magento-payment-braintree 9.0.0-canary.100 → 9.0.0-canary.103
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +19 -1004
- 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 +17 -17
- package/plugins/AddBraintreeMethods.tsx +1 -1
- package/utils/isBraintreeError.ts +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,788 +1,42 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## 9.0.0-canary.
|
3
|
+
## 9.0.0-canary.103
|
4
4
|
|
5
|
-
## 9.0.0-canary.
|
6
|
-
|
7
|
-
## 9.0.0-canary.98
|
8
|
-
|
9
|
-
## 9.0.0-canary.97
|
10
|
-
|
11
|
-
## 9.0.0-canary.96
|
12
|
-
|
13
|
-
## 9.0.0-canary.95
|
14
|
-
|
15
|
-
## 9.0.0-canary.94
|
16
|
-
|
17
|
-
## 9.0.0-canary.93
|
18
|
-
|
19
|
-
## 9.0.0-canary.92
|
20
|
-
|
21
|
-
## 9.0.0-canary.91
|
22
|
-
|
23
|
-
## 9.0.0-canary.90
|
24
|
-
|
25
|
-
## 9.0.0-canary.89
|
26
|
-
|
27
|
-
## 9.0.0-canary.88
|
28
|
-
|
29
|
-
## 9.0.0-canary.87
|
30
|
-
|
31
|
-
## 9.0.0-canary.86
|
32
|
-
|
33
|
-
## 9.0.0-canary.85
|
34
|
-
|
35
|
-
## 9.0.0-canary.84
|
36
|
-
|
37
|
-
## 9.0.0-canary.83
|
38
|
-
|
39
|
-
## 9.0.0-canary.82
|
40
|
-
|
41
|
-
## 9.0.0-canary.81
|
42
|
-
|
43
|
-
## 9.0.0-canary.80
|
44
|
-
|
45
|
-
### Minor Changes
|
46
|
-
|
47
|
-
- [#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))
|
48
|
-
|
49
|
-
## 9.0.0-canary.79
|
50
|
-
|
51
|
-
## 9.0.0-canary.78
|
52
|
-
|
53
|
-
## 9.0.0-canary.77
|
54
|
-
|
55
|
-
## 9.0.0-canary.76
|
56
|
-
|
57
|
-
## 9.0.0-canary.75
|
58
|
-
|
59
|
-
## 9.0.0-canary.74
|
60
|
-
|
61
|
-
## 9.0.0-canary.73
|
62
|
-
|
63
|
-
## 9.0.0-canary.72
|
64
|
-
|
65
|
-
## 9.0.0-canary.71
|
66
|
-
|
67
|
-
## 9.0.0-canary.70
|
68
|
-
|
69
|
-
## 9.0.0-canary.69
|
70
|
-
|
71
|
-
## 9.0.0-canary.68
|
72
|
-
|
73
|
-
## 9.0.0-canary.67
|
74
|
-
|
75
|
-
## 9.0.0-canary.66
|
76
|
-
|
77
|
-
## 9.0.0-canary.65
|
78
|
-
|
79
|
-
## 9.0.0-canary.64
|
80
|
-
|
81
|
-
## 9.0.0-canary.63
|
82
|
-
|
83
|
-
## 9.0.0-canary.62
|
84
|
-
|
85
|
-
## 9.0.0-canary.61
|
86
|
-
|
87
|
-
## 9.0.0-canary.60
|
88
|
-
|
89
|
-
### Patch Changes
|
90
|
-
|
91
|
-
- [#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))
|
92
|
-
|
93
|
-
## 9.0.0-canary.59
|
94
|
-
|
95
|
-
## 9.0.0-canary.58
|
96
|
-
|
97
|
-
## 9.0.0-canary.57
|
98
|
-
|
99
|
-
## 9.0.0-canary.56
|
100
|
-
|
101
|
-
## 9.0.0-canary.55
|
102
|
-
|
103
|
-
## 9.0.0-canary.54
|
104
|
-
|
105
|
-
## 8.1.0-canary.53
|
106
|
-
|
107
|
-
## 8.1.0-canary.52
|
108
|
-
|
109
|
-
## 8.1.0-canary.51
|
110
|
-
|
111
|
-
## 8.1.0-canary.50
|
112
|
-
|
113
|
-
## 8.1.0-canary.49
|
114
|
-
|
115
|
-
## 8.1.0-canary.48
|
116
|
-
|
117
|
-
## 8.1.0-canary.47
|
118
|
-
|
119
|
-
## 8.1.0-canary.46
|
120
|
-
|
121
|
-
## 8.1.0-canary.45
|
122
|
-
|
123
|
-
## 8.1.0-canary.44
|
124
|
-
|
125
|
-
## 8.1.0-canary.43
|
126
|
-
|
127
|
-
## 8.1.0-canary.42
|
128
|
-
|
129
|
-
## 8.1.0-canary.41
|
130
|
-
|
131
|
-
## 8.1.0-canary.40
|
132
|
-
|
133
|
-
## 8.1.0-canary.39
|
134
|
-
|
135
|
-
## 8.1.0-canary.38
|
136
|
-
|
137
|
-
## 8.1.0-canary.37
|
138
|
-
|
139
|
-
## 8.1.0-canary.36
|
140
|
-
|
141
|
-
## 8.1.0-canary.35
|
142
|
-
|
143
|
-
## 8.1.0-canary.34
|
144
|
-
|
145
|
-
## 8.1.0-canary.33
|
146
|
-
|
147
|
-
## 8.1.0-canary.32
|
148
|
-
|
149
|
-
## 8.1.0-canary.31
|
150
|
-
|
151
|
-
## 8.1.0-canary.30
|
152
|
-
|
153
|
-
## 8.1.0-canary.29
|
154
|
-
|
155
|
-
## 8.1.0-canary.28
|
156
|
-
|
157
|
-
## 8.1.0-canary.27
|
158
|
-
|
159
|
-
## 8.1.0-canary.26
|
160
|
-
|
161
|
-
## 8.1.0-canary.25
|
162
|
-
|
163
|
-
## 8.1.0-canary.24
|
164
|
-
|
165
|
-
## 8.1.0-canary.23
|
166
|
-
|
167
|
-
## 8.1.0-canary.22
|
168
|
-
|
169
|
-
## 8.1.0-canary.21
|
170
|
-
|
171
|
-
## 8.1.0-canary.20
|
172
|
-
|
173
|
-
## 8.1.0-canary.19
|
174
|
-
|
175
|
-
## 8.1.0-canary.18
|
176
|
-
|
177
|
-
### Patch Changes
|
178
|
-
|
179
|
-
- [#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))
|
180
|
-
|
181
|
-
## 8.1.0-canary.17
|
182
|
-
|
183
|
-
## 8.1.0-canary.16
|
184
|
-
|
185
|
-
## 8.1.0-canary.15
|
186
|
-
|
187
|
-
## 8.1.0-canary.14
|
188
|
-
|
189
|
-
## 8.1.0-canary.13
|
190
|
-
|
191
|
-
## 8.1.0-canary.12
|
192
|
-
|
193
|
-
## 8.1.0-canary.11
|
194
|
-
|
195
|
-
## 8.1.0-canary.10
|
196
|
-
|
197
|
-
## 8.1.0-canary.9
|
198
|
-
|
199
|
-
## 8.1.0-canary.8
|
200
|
-
|
201
|
-
## 8.1.0-canary.7
|
202
|
-
|
203
|
-
## 8.1.0-canary.6
|
204
|
-
|
205
|
-
## 8.1.0-canary.5
|
206
|
-
|
207
|
-
## 8.0.6-canary.4
|
208
|
-
|
209
|
-
## 8.0.6-canary.3
|
210
|
-
|
211
|
-
## 8.0.6-canary.2
|
212
|
-
|
213
|
-
### Patch Changes
|
214
|
-
|
215
|
-
- [#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))
|
216
|
-
|
217
|
-
## 8.0.6-canary.1
|
218
|
-
|
219
|
-
## 8.0.6-canary.0
|
220
|
-
|
221
|
-
## 8.0.5
|
222
|
-
|
223
|
-
### Patch Changes
|
224
|
-
|
225
|
-
- [#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))
|
226
|
-
|
227
|
-
## 8.0.5-canary.10
|
228
|
-
|
229
|
-
## 8.0.5-canary.9
|
230
|
-
|
231
|
-
## 8.0.5-canary.8
|
232
|
-
|
233
|
-
## 8.0.5-canary.7
|
234
|
-
|
235
|
-
## 8.0.5-canary.6
|
236
|
-
|
237
|
-
## 8.0.5-canary.5
|
238
|
-
|
239
|
-
### Patch Changes
|
240
|
-
|
241
|
-
- [#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))
|
242
|
-
|
243
|
-
## 8.0.5-canary.4
|
244
|
-
|
245
|
-
## 8.0.5-canary.3
|
246
|
-
|
247
|
-
## 8.0.5-canary.2
|
248
|
-
|
249
|
-
## 8.0.5-canary.1
|
250
|
-
|
251
|
-
## 8.0.5-canary.0
|
252
|
-
|
253
|
-
## 8.0.4
|
254
|
-
|
255
|
-
## 8.0.4-canary.1
|
256
|
-
|
257
|
-
## 8.0.4-canary.0
|
258
|
-
|
259
|
-
## 8.0.3
|
260
|
-
|
261
|
-
## 8.0.3-canary.6
|
262
|
-
|
263
|
-
## 8.0.3-canary.5
|
264
|
-
|
265
|
-
## 8.0.3-canary.4
|
266
|
-
|
267
|
-
## 8.0.3-canary.3
|
268
|
-
|
269
|
-
## 8.0.3-canary.2
|
270
|
-
|
271
|
-
## 8.0.3-canary.1
|
272
|
-
|
273
|
-
## 8.0.3-canary.0
|
274
|
-
|
275
|
-
## 8.0.2
|
276
|
-
|
277
|
-
## 8.0.2-canary.3
|
278
|
-
|
279
|
-
## 8.0.2-canary.2
|
280
|
-
|
281
|
-
## 8.0.2-canary.1
|
282
|
-
|
283
|
-
## 8.0.2-canary.0
|
284
|
-
|
285
|
-
## 8.0.1
|
286
|
-
|
287
|
-
## 8.0.1-canary.4
|
288
|
-
|
289
|
-
## 8.0.1-canary.3
|
290
|
-
|
291
|
-
## 8.0.1-canary.2
|
292
|
-
|
293
|
-
## 8.0.1-canary.1
|
294
|
-
|
295
|
-
## 8.0.1-canary.0
|
296
|
-
|
297
|
-
## 8.0.0
|
298
|
-
|
299
|
-
## 8.0.0-canary.100
|
300
|
-
|
301
|
-
## 8.0.0-canary.99
|
302
|
-
|
303
|
-
## 8.0.0-canary.98
|
304
|
-
|
305
|
-
## 8.0.0-canary.97
|
306
|
-
|
307
|
-
## 8.0.0-canary.96
|
308
|
-
|
309
|
-
## 8.0.0-canary.95
|
310
|
-
|
311
|
-
## 8.0.0-canary.94
|
312
|
-
|
313
|
-
## 8.0.0-canary.93
|
314
|
-
|
315
|
-
## 8.0.0-canary.92
|
316
|
-
|
317
|
-
## 8.0.0-canary.91
|
318
|
-
|
319
|
-
## 8.0.0-canary.90
|
320
|
-
|
321
|
-
## 8.0.0-canary.89
|
322
|
-
|
323
|
-
## 8.0.0-canary.88
|
324
|
-
|
325
|
-
## 8.0.0-canary.87
|
326
|
-
|
327
|
-
## 8.0.0-canary.86
|
328
|
-
|
329
|
-
## 8.0.0-canary.85
|
330
|
-
|
331
|
-
## 8.0.0-canary.84
|
332
|
-
|
333
|
-
## 8.0.0-canary.83
|
334
|
-
|
335
|
-
## 8.0.0-canary.82
|
336
|
-
|
337
|
-
## 8.0.0-canary.81
|
338
|
-
|
339
|
-
## 8.0.0-canary.80
|
340
|
-
|
341
|
-
## 8.0.0-canary.79
|
342
|
-
|
343
|
-
## 8.0.0-canary.78
|
344
|
-
|
345
|
-
## 8.0.0-canary.77
|
346
|
-
|
347
|
-
## 8.0.0-canary.76
|
348
|
-
|
349
|
-
## 8.0.0-canary.75
|
350
|
-
|
351
|
-
## 8.0.0-canary.74
|
352
|
-
|
353
|
-
## 8.0.0-canary.73
|
354
|
-
|
355
|
-
## 8.0.0-canary.72
|
356
|
-
|
357
|
-
## 8.0.0-canary.71
|
358
|
-
|
359
|
-
## 8.0.0-canary.70
|
360
|
-
|
361
|
-
## 8.0.0-canary.69
|
362
|
-
|
363
|
-
## 7.1.0-canary.68
|
364
|
-
|
365
|
-
## 7.1.0-canary.67
|
366
|
-
|
367
|
-
## 7.1.0-canary.66
|
368
|
-
|
369
|
-
## 7.1.0-canary.65
|
370
|
-
|
371
|
-
## 7.1.0-canary.64
|
372
|
-
|
373
|
-
## 7.1.0-canary.63
|
374
|
-
|
375
|
-
## 7.1.0-canary.62
|
376
|
-
|
377
|
-
## 7.1.0-canary.61
|
378
|
-
|
379
|
-
## 7.1.0-canary.60
|
380
|
-
|
381
|
-
## 7.1.0-canary.59
|
382
|
-
|
383
|
-
## 7.1.0-canary.58
|
384
|
-
|
385
|
-
## 7.1.0-canary.57
|
386
|
-
|
387
|
-
## 7.1.0-canary.56
|
388
|
-
|
389
|
-
## 7.1.0-canary.55
|
390
|
-
|
391
|
-
## 7.1.0-canary.54
|
392
|
-
|
393
|
-
## 7.1.0-canary.53
|
394
|
-
|
395
|
-
## 7.1.0-canary.52
|
396
|
-
|
397
|
-
## 7.1.0-canary.51
|
398
|
-
|
399
|
-
## 7.1.0-canary.50
|
400
|
-
|
401
|
-
## 7.1.0-canary.49
|
402
|
-
|
403
|
-
## 7.1.0-canary.48
|
404
|
-
|
405
|
-
## 7.1.0-canary.47
|
406
|
-
|
407
|
-
## 7.1.0-canary.46
|
408
|
-
|
409
|
-
## 7.1.0-canary.45
|
410
|
-
|
411
|
-
## 7.1.0-canary.38
|
412
|
-
|
413
|
-
## 7.1.0-canary.37
|
414
|
-
|
415
|
-
## 7.1.0-canary.36
|
416
|
-
|
417
|
-
## 7.1.0-canary.35
|
418
|
-
|
419
|
-
## 7.1.0-canary.34
|
420
|
-
|
421
|
-
## 7.1.0-canary.33
|
422
|
-
|
423
|
-
## 7.1.0-canary.32
|
424
|
-
|
425
|
-
## 7.1.0-canary.31
|
426
|
-
|
427
|
-
## 7.1.0-canary.30
|
428
|
-
|
429
|
-
## 7.1.0-canary.29
|
430
|
-
|
431
|
-
## 7.1.0-canary.28
|
432
|
-
|
433
|
-
## 7.1.0-canary.27
|
434
|
-
|
435
|
-
## 7.1.0-canary.26
|
436
|
-
|
437
|
-
## 7.1.0-canary.25
|
438
|
-
|
439
|
-
## 7.1.0-canary.24
|
440
|
-
|
441
|
-
## 7.1.0-canary.23
|
442
|
-
|
443
|
-
## 7.1.0-canary.22
|
444
|
-
|
445
|
-
## 7.1.0-canary.21
|
446
|
-
|
447
|
-
## 7.1.0-canary.20
|
448
|
-
|
449
|
-
## 7.1.0-canary.19
|
450
|
-
|
451
|
-
## 7.1.0-canary.18
|
452
|
-
|
453
|
-
## 7.1.0-canary.17
|
454
|
-
|
455
|
-
## 7.1.0-canary.16
|
456
|
-
|
457
|
-
## 7.1.0-canary.15
|
458
|
-
|
459
|
-
## 7.1.0-canary.14
|
460
|
-
|
461
|
-
## 7.1.0-canary.13
|
462
|
-
|
463
|
-
## 7.1.0-canary.12
|
464
|
-
|
465
|
-
## 7.1.0-canary.11
|
466
|
-
|
467
|
-
## 7.1.0-canary.10
|
468
|
-
|
469
|
-
## 7.1.0-canary.9
|
470
|
-
|
471
|
-
## 7.1.0-canary.8
|
472
|
-
|
473
|
-
## 7.0.2-canary.7
|
474
|
-
|
475
|
-
## 7.0.2-canary.6
|
476
|
-
|
477
|
-
## 7.0.2-canary.5
|
478
|
-
|
479
|
-
## 7.0.1
|
480
|
-
|
481
|
-
### Patch Changes
|
482
|
-
|
483
|
-
- [#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))
|
484
|
-
|
485
|
-
## 7.0.1-canary.15
|
486
|
-
|
487
|
-
## 7.0.1-canary.14
|
488
|
-
|
489
|
-
## 7.0.1-canary.13
|
490
|
-
|
491
|
-
## 7.0.1-canary.12
|
492
|
-
|
493
|
-
## 7.0.1-canary.11
|
494
|
-
|
495
|
-
## 7.0.1-canary.10
|
496
|
-
|
497
|
-
## 7.0.1-canary.9
|
498
|
-
|
499
|
-
## 7.0.1-canary.8
|
500
|
-
|
501
|
-
## 7.0.1-canary.7
|
502
|
-
|
503
|
-
## 7.0.1-canary.6
|
504
|
-
|
505
|
-
## 7.0.1-canary.5
|
506
|
-
|
507
|
-
## 7.0.1-canary.4
|
508
|
-
|
509
|
-
## 7.0.1-canary.3
|
510
|
-
|
511
|
-
## 7.0.1-canary.2
|
512
|
-
|
513
|
-
## 7.0.1-canary.1
|
514
|
-
|
515
|
-
## 7.0.1-canary.0
|
516
|
-
|
517
|
-
### Patch Changes
|
518
|
-
|
519
|
-
- [#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))
|
520
|
-
|
521
|
-
## 7.0.0
|
522
|
-
|
523
|
-
## 6.2.0-canary.98
|
524
|
-
|
525
|
-
## 6.2.0-canary.97
|
526
|
-
|
527
|
-
## 6.2.0-canary.96
|
528
|
-
|
529
|
-
## 6.2.0-canary.95
|
530
|
-
|
531
|
-
## 6.2.0-canary.94
|
532
|
-
|
533
|
-
## 6.2.0-canary.93
|
534
|
-
|
535
|
-
## 6.2.0-canary.92
|
536
|
-
|
537
|
-
## 6.2.0-canary.91
|
538
|
-
|
539
|
-
## 6.2.0-canary.90
|
540
|
-
|
541
|
-
## 6.2.0-canary.89
|
542
|
-
|
543
|
-
## 6.2.0-canary.88
|
544
|
-
|
545
|
-
## 6.2.0-canary.87
|
546
|
-
|
547
|
-
## 6.2.0-canary.86
|
548
|
-
|
549
|
-
## 6.2.0-canary.85
|
550
|
-
|
551
|
-
## 6.2.0-canary.84
|
552
|
-
|
553
|
-
## 6.2.0-canary.83
|
554
|
-
|
555
|
-
## 6.2.0-canary.82
|
556
|
-
|
557
|
-
## 6.2.0-canary.81
|
558
|
-
|
559
|
-
## 6.2.0-canary.80
|
560
|
-
|
561
|
-
## 6.2.0-canary.79
|
562
|
-
|
563
|
-
## 6.2.0-canary.78
|
564
|
-
|
565
|
-
## 6.2.0-canary.77
|
566
|
-
|
567
|
-
## 6.2.0-canary.76
|
568
|
-
|
569
|
-
## 6.2.0-canary.75
|
570
|
-
|
571
|
-
## 6.2.0-canary.74
|
572
|
-
|
573
|
-
## 6.2.0-canary.73
|
574
|
-
|
575
|
-
## 6.2.0-canary.72
|
576
|
-
|
577
|
-
## 6.2.0-canary.71
|
578
|
-
|
579
|
-
## 6.2.0-canary.70
|
580
|
-
|
581
|
-
## 6.2.0-canary.69
|
582
|
-
|
583
|
-
## 6.2.0-canary.68
|
584
|
-
|
585
|
-
## 6.2.0-canary.67
|
586
|
-
|
587
|
-
## 6.2.0-canary.66
|
588
|
-
|
589
|
-
## 6.2.0-canary.65
|
590
|
-
|
591
|
-
## 6.2.0-canary.64
|
592
|
-
|
593
|
-
## 6.2.0-canary.63
|
594
|
-
|
595
|
-
## 6.2.0-canary.62
|
596
|
-
|
597
|
-
## 6.2.0-canary.61
|
598
|
-
|
599
|
-
## 6.2.0-canary.60
|
600
|
-
|
601
|
-
## 6.2.0-canary.59
|
602
|
-
|
603
|
-
## 6.2.0-canary.58
|
604
|
-
|
605
|
-
## 6.2.0-canary.57
|
606
|
-
|
607
|
-
## 6.2.0-canary.56
|
608
|
-
|
609
|
-
## 6.2.0-canary.55
|
610
|
-
|
611
|
-
## 6.2.0-canary.54
|
612
|
-
|
613
|
-
## 6.2.0-canary.53
|
614
|
-
|
615
|
-
## 6.2.0-canary.52
|
616
|
-
|
617
|
-
## 6.2.0-canary.51
|
618
|
-
|
619
|
-
## 6.2.0-canary.50
|
620
|
-
|
621
|
-
## 6.2.0-canary.49
|
622
|
-
|
623
|
-
## 6.2.0-canary.48
|
624
|
-
|
625
|
-
## 6.2.0-canary.47
|
626
|
-
|
627
|
-
## 6.2.0-canary.46
|
628
|
-
|
629
|
-
## 6.2.0-canary.45
|
630
|
-
|
631
|
-
## 6.2.0-canary.44
|
632
|
-
|
633
|
-
## 6.2.0-canary.43
|
634
|
-
|
635
|
-
## 6.2.0-canary.42
|
636
|
-
|
637
|
-
## 6.2.0-canary.41
|
638
|
-
|
639
|
-
## 6.2.0-canary.40
|
640
|
-
|
641
|
-
## 6.2.0-canary.39
|
642
|
-
|
643
|
-
## 6.2.0-canary.38
|
644
|
-
|
645
|
-
## 6.2.0-canary.37
|
646
|
-
|
647
|
-
## 6.2.0-canary.36
|
648
|
-
|
649
|
-
## 6.2.0-canary.35
|
650
|
-
|
651
|
-
## 6.2.0-canary.34
|
652
|
-
|
653
|
-
## 6.2.0-canary.33
|
654
|
-
|
655
|
-
## 6.2.0-canary.32
|
656
|
-
|
657
|
-
## 6.2.0-canary.31
|
658
|
-
|
659
|
-
## 6.2.0-canary.30
|
660
|
-
|
661
|
-
## 6.2.0-canary.29
|
662
|
-
|
663
|
-
## 6.2.0-canary.28
|
664
|
-
|
665
|
-
## 6.2.0-canary.27
|
666
|
-
|
667
|
-
## 6.2.0-canary.26
|
668
|
-
|
669
|
-
## 6.2.0-canary.25
|
670
|
-
|
671
|
-
## 6.2.0-canary.24
|
672
|
-
|
673
|
-
## 6.2.0-canary.23
|
674
|
-
|
675
|
-
## 6.2.0-canary.22
|
676
|
-
|
677
|
-
## 6.2.0-canary.21
|
678
|
-
|
679
|
-
## 6.2.0-canary.20
|
680
|
-
|
681
|
-
## 6.2.0-canary.19
|
682
|
-
|
683
|
-
## 6.2.0-canary.18
|
684
|
-
|
685
|
-
## 6.2.0-canary.17
|
686
|
-
|
687
|
-
## 6.2.0-canary.16
|
688
|
-
|
689
|
-
## 6.2.0-canary.15
|
690
|
-
|
691
|
-
## 6.2.0-canary.14
|
692
|
-
|
693
|
-
## 6.2.0-canary.13
|
694
|
-
|
695
|
-
## 6.2.0-canary.12
|
696
|
-
|
697
|
-
## 6.2.0-canary.11
|
698
|
-
|
699
|
-
## 6.2.0-canary.10
|
700
|
-
|
701
|
-
## 6.2.0-canary.9
|
702
|
-
|
703
|
-
## 6.2.0-canary.8
|
704
|
-
|
705
|
-
## 6.2.0-canary.7
|
706
|
-
|
707
|
-
## 6.2.0-canary.6
|
708
|
-
|
709
|
-
## 6.1.1-canary.5
|
710
|
-
|
711
|
-
## 6.1.1-canary.4
|
712
|
-
|
713
|
-
## 6.1.1-canary.3
|
714
|
-
|
715
|
-
## 6.1.1-canary.2
|
716
|
-
|
717
|
-
## 6.1.1-canary.1
|
718
|
-
|
719
|
-
## 6.1.1-canary.0
|
720
|
-
|
721
|
-
## 6.1.0
|
722
|
-
|
723
|
-
## 6.0.2-canary.22
|
724
|
-
|
725
|
-
## 6.0.2-canary.21
|
726
|
-
|
727
|
-
## 6.0.2-canary.20
|
728
|
-
|
729
|
-
## 6.0.2-canary.19
|
730
|
-
|
731
|
-
## 6.0.2-canary.18
|
732
|
-
|
733
|
-
## 6.0.2-canary.17
|
734
|
-
|
735
|
-
## 6.0.2-canary.16
|
736
|
-
|
737
|
-
## 6.0.2-canary.15
|
738
|
-
|
739
|
-
## 6.0.2-canary.14
|
740
|
-
|
741
|
-
## 6.0.2-canary.13
|
742
|
-
|
743
|
-
## 6.0.2-canary.12
|
744
|
-
|
745
|
-
## 6.0.2-canary.11
|
746
|
-
|
747
|
-
## 6.0.2-canary.10
|
748
|
-
|
749
|
-
## 6.0.2-canary.9
|
750
|
-
|
751
|
-
## 6.0.2-canary.8
|
5
|
+
## 9.0.0-canary.80
|
752
6
|
|
753
|
-
|
7
|
+
### Minor Changes
|
754
8
|
|
755
|
-
|
9
|
+
- [#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))
|
756
10
|
|
757
|
-
##
|
11
|
+
## 9.0.0-canary.60
|
758
12
|
|
759
|
-
|
13
|
+
### Patch Changes
|
760
14
|
|
761
|
-
|
15
|
+
- [#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))
|
762
16
|
|
763
|
-
##
|
17
|
+
## 8.1.0-canary.18
|
764
18
|
|
765
|
-
|
19
|
+
### Patch Changes
|
766
20
|
|
767
|
-
|
21
|
+
- [#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))
|
768
22
|
|
769
|
-
##
|
23
|
+
## 8.0.6-canary.2
|
770
24
|
|
771
|
-
|
25
|
+
### Patch Changes
|
772
26
|
|
773
|
-
|
27
|
+
- [#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))
|
774
28
|
|
775
|
-
##
|
29
|
+
## 8.0.5
|
776
30
|
|
777
|
-
|
31
|
+
### Patch Changes
|
778
32
|
|
779
|
-
|
33
|
+
- [#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))
|
780
34
|
|
781
|
-
##
|
35
|
+
## 7.0.1
|
782
36
|
|
783
|
-
|
37
|
+
### Patch Changes
|
784
38
|
|
785
|
-
|
39
|
+
- [#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))
|
786
40
|
|
787
41
|
## 6.0.0
|
788
42
|
|
@@ -798,136 +52,6 @@
|
|
798
52
|
|
799
53
|
- [#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))
|
800
54
|
|
801
|
-
## 6.0.0-canary.54
|
802
|
-
|
803
|
-
## 6.0.0-canary.53
|
804
|
-
|
805
|
-
## 6.0.0-canary.52
|
806
|
-
|
807
|
-
## 6.0.0-canary.51
|
808
|
-
|
809
|
-
## 6.0.0-canary.50
|
810
|
-
|
811
|
-
## 6.0.0-canary.49
|
812
|
-
|
813
|
-
## 6.0.0-canary.48
|
814
|
-
|
815
|
-
## 6.0.0-canary.47
|
816
|
-
|
817
|
-
## 6.0.0-canary.46
|
818
|
-
|
819
|
-
## 6.0.0-canary.45
|
820
|
-
|
821
|
-
## 6.0.0-canary.44
|
822
|
-
|
823
|
-
## 6.0.0-canary.43
|
824
|
-
|
825
|
-
### Patch Changes
|
826
|
-
|
827
|
-
- [#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))
|
828
|
-
|
829
|
-
## 6.0.0-canary.42
|
830
|
-
|
831
|
-
## 6.0.0-canary.41
|
832
|
-
|
833
|
-
## 6.0.0-canary.40
|
834
|
-
|
835
|
-
## 6.0.0-canary.39
|
836
|
-
|
837
|
-
## 6.0.0-canary.38
|
838
|
-
|
839
|
-
## 6.0.0-canary.37
|
840
|
-
|
841
|
-
## 6.0.0-canary.36
|
842
|
-
|
843
|
-
## 6.0.0-canary.35
|
844
|
-
|
845
|
-
## 6.0.0-canary.34
|
846
|
-
|
847
|
-
## 6.0.0-canary.33
|
848
|
-
|
849
|
-
## 6.0.0-canary.32
|
850
|
-
|
851
|
-
## 6.0.0-canary.31
|
852
|
-
|
853
|
-
## 6.0.0-canary.30
|
854
|
-
|
855
|
-
## 6.0.0-canary.29
|
856
|
-
|
857
|
-
## 6.0.0-canary.28
|
858
|
-
|
859
|
-
## 6.0.0-canary.27
|
860
|
-
|
861
|
-
## 6.0.0-canary.26
|
862
|
-
|
863
|
-
## 6.0.0-canary.25
|
864
|
-
|
865
|
-
## 6.0.0-canary.24
|
866
|
-
|
867
|
-
## 6.0.0-canary.23
|
868
|
-
|
869
|
-
## 6.0.0-canary.22
|
870
|
-
|
871
|
-
## 6.0.0-canary.21
|
872
|
-
|
873
|
-
## 6.0.0-canary.20
|
874
|
-
|
875
|
-
## 5.2.0-canary.19
|
876
|
-
|
877
|
-
## 5.2.0-canary.18
|
878
|
-
|
879
|
-
## 5.2.0-canary.17
|
880
|
-
|
881
|
-
## 5.2.0-canary.16
|
882
|
-
|
883
|
-
## 5.2.0-canary.15
|
884
|
-
|
885
|
-
## 5.2.0-canary.14
|
886
|
-
|
887
|
-
## 5.2.0-canary.13
|
888
|
-
|
889
|
-
## 5.2.0-canary.12
|
890
|
-
|
891
|
-
## 5.2.0-canary.11
|
892
|
-
|
893
|
-
## 5.2.0-canary.10
|
894
|
-
|
895
|
-
## 5.2.0-canary.9
|
896
|
-
|
897
|
-
## 5.2.0-canary.8
|
898
|
-
|
899
|
-
## 5.2.0-canary.7
|
900
|
-
|
901
|
-
## 5.2.0-canary.6
|
902
|
-
|
903
|
-
## 5.2.0-canary.5
|
904
|
-
|
905
|
-
## 5.2.0-canary.4
|
906
|
-
|
907
|
-
## 5.2.0-canary.3
|
908
|
-
|
909
|
-
### Minor Changes
|
910
|
-
|
911
|
-
- [#1766](https://github.com/graphcommerce-org/graphcommerce/pull/1766) [`e34169ee2`](https://github.com/graphcommerce-org/graphcommerce/commit/e34169ee2e0fdc052ff589ceca0bc67557584c1f) - Upgraded to Next.js 13
|
912
|
-
|
913
|
-
- NextLink integrates the next/link functionality with @mui/material's Link and ButtonBase (and all it's derivatives) components.
|
914
|
-
- NextLink automatically adds `target="_blank"` when the href is external.
|
915
|
-
- NextLink makes all relative href absolute. `href="my-page"` will be rendered as `href="/my-page"`.
|
916
|
-
|
917
|
-
Upgrade instructions: https://www.graphcommerce.org/docs/framework/links#upgrading-from-nextjs-12 ([@paales](https://github.com/paales))
|
918
|
-
|
919
|
-
## 5.2.0-canary.2
|
920
|
-
|
921
|
-
## 5.2.0-canary.1
|
922
|
-
|
923
|
-
## 5.2.0-canary.0
|
924
|
-
|
925
|
-
## 5.1.1
|
926
|
-
|
927
|
-
## 5.1.1-canary.1
|
928
|
-
|
929
|
-
## 5.1.1-canary.0
|
930
|
-
|
931
55
|
## 5.1.0
|
932
56
|
|
933
57
|
### Patch Changes
|
@@ -941,43 +65,6 @@
|
|
941
65
|
- Upgraded dependencies including type-fest and graphql-mesh
|
942
66
|
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
943
67
|
|
944
|
-
## 5.1.0-canary.11
|
945
|
-
|
946
|
-
## 5.1.0-canary.10
|
947
|
-
|
948
|
-
### Patch Changes
|
949
|
-
|
950
|
-
- [#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))
|
951
|
-
|
952
|
-
## 5.1.0-canary.9
|
953
|
-
|
954
|
-
## 5.1.0-canary.8
|
955
|
-
|
956
|
-
## 5.1.0-canary.7
|
957
|
-
|
958
|
-
## 5.1.0-canary.6
|
959
|
-
|
960
|
-
## 5.1.0-canary.5
|
961
|
-
|
962
|
-
## 5.1.0-canary.4
|
963
|
-
|
964
|
-
## 5.1.0-canary.3
|
965
|
-
|
966
|
-
### Patch Changes
|
967
|
-
|
968
|
-
- [#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.
|
969
|
-
|
970
|
-
- Updated the @mui/material package
|
971
|
-
- Removed dependencies on react-hook-form-mui and @playwright/test
|
972
|
-
- Upgraded dependencies including type-fest and graphql-mesh
|
973
|
-
- Solved peer dependency issues ([@paales](https://github.com/paales))
|
974
|
-
|
975
|
-
## 5.1.0-canary.2
|
976
|
-
|
977
|
-
## 5.1.0-canary.1
|
978
|
-
|
979
|
-
## 5.1.0-canary.0
|
980
|
-
|
981
68
|
## 5.0.0
|
982
69
|
|
983
70
|
### Major Changes
|
@@ -1006,84 +93,12 @@
|
|
1006
93
|
|
1007
94
|
- [#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))
|
1008
95
|
|
1009
|
-
## 5.0.0-canary.14
|
1010
|
-
|
1011
|
-
## 5.0.0-canary.13
|
1012
|
-
|
1013
|
-
### Major Changes
|
1014
|
-
|
1015
|
-
- [`e4c7fe17e`](https://github.com/graphcommerce-org/graphcommerce/commit/e4c7fe17e413e37362ceae92e67f1b3a5f62d398) - Bump major version of all packages ([@paales](https://github.com/paales))
|
1016
|
-
|
1017
|
-
## 4.14.0-canary.12
|
1018
|
-
|
1019
|
-
## 4.14.0-canary.11
|
1020
|
-
|
1021
|
-
## 4.14.0-canary.10
|
1022
|
-
|
1023
|
-
## 4.14.0-canary.9
|
1024
|
-
|
1025
|
-
## 4.14.0-canary.8
|
1026
|
-
|
1027
|
-
## 4.14.0-canary.7
|
1028
|
-
|
1029
|
-
### Patch Changes
|
1030
|
-
|
1031
|
-
- [#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))
|
1032
|
-
|
1033
|
-
## 4.14.0-canary.6
|
1034
|
-
|
1035
|
-
## 4.14.0-canary.5
|
1036
|
-
|
1037
|
-
## 4.14.0-canary.4
|
1038
|
-
|
1039
|
-
### Patch Changes
|
1040
|
-
|
1041
|
-
- [#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))
|
1042
|
-
|
1043
|
-
- [#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))
|
1044
|
-
|
1045
|
-
## 4.14.0-canary.3
|
1046
|
-
|
1047
|
-
### Patch Changes
|
1048
|
-
|
1049
|
-
- [#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))
|
1050
|
-
|
1051
|
-
## 4.14.0-canary.2
|
1052
|
-
|
1053
|
-
### Minor Changes
|
1054
|
-
|
1055
|
-
- [#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))
|
1056
|
-
|
1057
|
-
## 4.13.2-canary.1
|
1058
|
-
|
1059
|
-
## 4.13.2-canary.0
|
1060
|
-
|
1061
|
-
## 4.13.3
|
1062
|
-
|
1063
|
-
## 4.13.2
|
1064
|
-
|
1065
|
-
## 4.13.1
|
1066
|
-
|
1067
|
-
## 4.13.1-canary.2
|
1068
|
-
|
1069
|
-
## 4.13.1-canary.1
|
1070
|
-
|
1071
|
-
## 4.13.1-canary.0
|
1072
|
-
|
1073
96
|
## 4.13.0
|
1074
97
|
|
1075
98
|
### Patch Changes
|
1076
99
|
|
1077
100
|
- [#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
101
|
|
1079
|
-
## 4.13.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.13.0-canary.0
|
1086
|
-
|
1087
102
|
## 3.0.66
|
1088
103
|
|
1089
104
|
### Patch Changes
|
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.103",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -12,30 +12,30 @@
|
|
12
12
|
}
|
13
13
|
},
|
14
14
|
"devDependencies": {
|
15
|
-
"@types/braintree-web": "^3.96.
|
15
|
+
"@types/braintree-web": "^3.96.15"
|
16
16
|
},
|
17
17
|
"dependencies": {
|
18
|
-
"braintree-web": "^3.
|
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.103",
|
22
|
+
"@graphcommerce/graphql": "^9.0.0-canary.103",
|
23
|
+
"@graphcommerce/image": "^9.0.0-canary.103",
|
24
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.103",
|
25
|
+
"@graphcommerce/magento-cart-payment-method": "^9.0.0-canary.103",
|
26
|
+
"@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.103",
|
27
|
+
"@graphcommerce/magento-product": "^9.0.0-canary.103",
|
28
|
+
"@graphcommerce/magento-product-configurable": "^9.0.0-canary.103",
|
29
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.103",
|
30
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.103",
|
31
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.103",
|
32
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.103",
|
33
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.103",
|
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'
|