@graphcommerce/magento-cart-payment-method 9.0.0-canary.101 → 9.0.0-canary.104

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.
@@ -1,10 +1,10 @@
1
- import { ApolloClient } from '@graphcommerce/graphql'
2
- import { ActionCardProps, LinkOrButtonProps } from '@graphcommerce/next-ui'
3
- import { UseFormComposeOptions } from '@graphcommerce/react-hook-form'
4
- import React from 'react'
5
- import { AvailablePaymentMethodFragment } from './AvailablePaymentMethod/AvailablePaymentMethod.gql'
6
- import { PaymentMethodContextFragment } from './PaymentMethodContext.gql'
7
- import { SelectedPaymentMethodFragment } from './SelectedPaymentMethod/SelectedPaymentMethod.gql'
1
+ import type { ApolloClient } from '@graphcommerce/graphql'
2
+ import type { ActionCardProps, LinkOrButtonProps } from '@graphcommerce/next-ui'
3
+ import type { UseFormComposeOptions } from '@graphcommerce/react-hook-form'
4
+ import type React from 'react'
5
+ import type { AvailablePaymentMethodFragment } from './AvailablePaymentMethod/AvailablePaymentMethod.gql'
6
+ import type { PaymentMethodContextFragment } from './PaymentMethodContext.gql'
7
+ import type { SelectedPaymentMethodFragment } from './SelectedPaymentMethod/SelectedPaymentMethod.gql'
8
8
 
9
9
  export type PaymentMethod = Partial<AvailablePaymentMethodFragment> &
10
10
  Pick<AvailablePaymentMethodFragment, 'code' | 'title'> & {
package/CHANGELOG.md CHANGED
@@ -1,818 +1,64 @@
1
1
  # Change Log
2
2
 
3
- ## 9.0.0-canary.101
3
+ ## 9.0.0-canary.104
4
4
 
5
- ## 9.0.0-canary.100
5
+ ## 9.0.0-canary.103
6
6
 
7
- ## 9.0.0-canary.99
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
- ## 9.0.0-canary.79
48
-
49
- ## 9.0.0-canary.78
50
-
51
- ## 9.0.0-canary.77
52
-
53
- ## 9.0.0-canary.76
54
-
55
- ## 9.0.0-canary.75
56
-
57
- ## 9.0.0-canary.74
58
-
59
- ## 9.0.0-canary.73
60
-
61
- ## 9.0.0-canary.72
62
-
63
- ## 9.0.0-canary.71
64
-
65
- ## 9.0.0-canary.70
66
-
67
- ## 9.0.0-canary.69
68
-
69
- ## 9.0.0-canary.68
70
-
71
- ## 9.0.0-canary.67
72
-
73
- ## 9.0.0-canary.66
74
-
75
- ## 9.0.0-canary.65
76
-
77
- ## 9.0.0-canary.64
78
-
79
- ## 9.0.0-canary.63
80
-
81
- ## 9.0.0-canary.62
82
-
83
- ## 9.0.0-canary.61
84
-
85
- ## 9.0.0-canary.60
86
-
87
- ## 9.0.0-canary.59
88
-
89
- ## 9.0.0-canary.58
90
-
91
- ## 9.0.0-canary.57
92
-
93
- ## 9.0.0-canary.56
94
-
95
- ## 9.0.0-canary.55
96
-
97
- ## 9.0.0-canary.54
98
-
99
- ## 8.1.0-canary.53
100
-
101
- ## 8.1.0-canary.52
102
-
103
- ## 8.1.0-canary.51
104
-
105
- ## 8.1.0-canary.50
106
-
107
- ## 8.1.0-canary.49
108
-
109
- ## 8.1.0-canary.48
110
-
111
- ## 8.1.0-canary.47
112
-
113
- ## 8.1.0-canary.46
114
-
115
- ## 8.1.0-canary.45
116
-
117
- ## 8.1.0-canary.44
118
-
119
- ## 8.1.0-canary.43
120
-
121
- ## 8.1.0-canary.42
122
-
123
- ## 8.1.0-canary.41
124
-
125
- ## 8.1.0-canary.40
126
-
127
- ## 8.1.0-canary.39
128
-
129
- ## 8.1.0-canary.38
130
-
131
- ### Patch Changes
132
-
133
- - [#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))
134
-
135
- ## 8.1.0-canary.37
136
-
137
- ## 8.1.0-canary.36
138
-
139
- ## 8.1.0-canary.35
140
-
141
- ## 8.1.0-canary.34
142
-
143
- ## 8.1.0-canary.33
144
-
145
- ## 8.1.0-canary.32
146
-
147
- ## 8.1.0-canary.31
148
-
149
- ## 8.1.0-canary.30
150
-
151
- ## 8.1.0-canary.29
152
-
153
- ## 8.1.0-canary.28
154
-
155
- ## 8.1.0-canary.27
156
-
157
- ## 8.1.0-canary.26
158
-
159
- ## 8.1.0-canary.25
160
-
161
- ## 8.1.0-canary.24
162
-
163
- ## 8.1.0-canary.23
164
-
165
- ## 8.1.0-canary.22
166
-
167
- ## 8.1.0-canary.21
168
-
169
- ## 8.1.0-canary.20
170
-
171
- ## 8.1.0-canary.19
172
-
173
- ## 8.1.0-canary.18
174
-
175
- ### Patch Changes
176
-
177
- - [#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))
178
-
179
- ## 8.1.0-canary.17
180
-
181
- ## 8.1.0-canary.16
182
-
183
- ## 8.1.0-canary.15
184
-
185
- ## 8.1.0-canary.14
186
-
187
- ### Patch Changes
188
-
189
- - [`831d7cd`](https://github.com/graphcommerce-org/graphcommerce/commit/831d7cd64a40b7b58748fd9637199b88938e75b7) - Compatibility with Magento 2.4.7 ([@paales](https://github.com/paales))
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
- ### Patch Changes
204
-
205
- - [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`d345474`](https://github.com/graphcommerce-org/graphcommerce/commit/d345474fb190d158629cd5fd5e68a78724fa2fb6) - Due to a cyclic dependency the actual PaymentMethodPlaceOrder button would sometimes be undefined. ([@paales](https://github.com/paales))
206
-
207
- ## 8.1.0-canary.7
208
-
209
- ## 8.1.0-canary.6
210
-
211
- ## 8.1.0-canary.5
212
-
213
- ## 8.0.6-canary.4
214
-
215
- ## 8.0.6-canary.3
216
-
217
- ## 8.0.6-canary.2
218
-
219
- ### Patch Changes
220
-
221
- - [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`43bd04a`](https://github.com/graphcommerce-org/graphcommerce/commit/43bd04a777c5800cc7e01bee1e123a5aad82f194) - Use the non resolved payment methods as a placeholder for the actual payment methods ([@FrankHarland](https://github.com/FrankHarland))
222
-
223
- - [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`530076e`](https://github.com/graphcommerce-org/graphcommerce/commit/530076e3664703cb8b577b7fcf1998a420819f60) - Moved all usages of useFormPersist to the <FormPersist/> component to prevent rerenders. ([@FrankHarland](https://github.com/FrankHarland))
224
-
225
- - [#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))
226
-
227
- ## 8.0.6-canary.1
228
-
229
- ## 8.0.6-canary.0
230
-
231
- ## 8.0.5
232
-
233
- ## 8.0.5-canary.10
234
-
235
- ## 8.0.5-canary.9
236
-
237
- ## 8.0.5-canary.8
238
-
239
- ## 8.0.5-canary.7
240
-
241
- ## 8.0.5-canary.6
242
-
243
- ## 8.0.5-canary.5
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
- ### Patch Changes
302
-
303
- - [#2115](https://github.com/graphcommerce-org/graphcommerce/pull/2115) [`105a1af`](https://github.com/graphcommerce-org/graphcommerce/commit/105a1af8b820de8873e430ae398f1922d39a9110) - Disabled ripple animations on all ActionCard ‘Select’ and ‘Change’ so the rendering is more subtle during checkout. ([@Jessevdpoel](https://github.com/Jessevdpoel))
304
-
305
- ## 8.0.0-canary.100
306
-
307
- ## 8.0.0-canary.99
308
-
309
- ## 8.0.0-canary.98
310
-
311
- ## 8.0.0-canary.97
312
-
313
- ## 8.0.0-canary.96
314
-
315
- ## 8.0.0-canary.95
316
-
317
- ## 8.0.0-canary.94
318
-
319
- ## 8.0.0-canary.93
320
-
321
- ## 8.0.0-canary.92
322
-
323
- ## 8.0.0-canary.91
324
-
325
- ## 8.0.0-canary.90
326
-
327
- ## 8.0.0-canary.89
328
-
329
- ## 8.0.0-canary.88
330
-
331
- ## 8.0.0-canary.87
332
-
333
- ## 8.0.0-canary.86
334
-
335
- ## 8.0.0-canary.85
336
-
337
- ## 8.0.0-canary.84
338
-
339
- ## 8.0.0-canary.83
340
-
341
- ## 8.0.0-canary.82
342
-
343
- ## 8.0.0-canary.81
344
-
345
- ## 8.0.0-canary.80
346
-
347
- ## 8.0.0-canary.79
348
-
349
- ## 8.0.0-canary.78
350
-
351
- ## 8.0.0-canary.77
352
-
353
- ## 8.0.0-canary.76
354
-
355
- ## 8.0.0-canary.75
356
-
357
- ## 8.0.0-canary.74
358
-
359
- ## 8.0.0-canary.73
360
-
361
- ## 8.0.0-canary.72
362
-
363
- ## 8.0.0-canary.71
364
-
365
- ## 8.0.0-canary.70
366
-
367
- ## 8.0.0-canary.69
368
-
369
- ## 7.1.0-canary.68
370
-
371
- ## 7.1.0-canary.67
372
-
373
- ## 7.1.0-canary.66
374
-
375
- ## 7.1.0-canary.65
376
-
377
- ## 7.1.0-canary.64
378
-
379
- ## 7.1.0-canary.63
380
-
381
- ## 7.1.0-canary.62
382
-
383
- ## 7.1.0-canary.61
384
-
385
- ## 7.1.0-canary.60
386
-
387
- ## 7.1.0-canary.59
388
-
389
- ## 7.1.0-canary.58
390
-
391
- ## 7.1.0-canary.57
392
-
393
- ## 7.1.0-canary.56
394
-
395
- ## 7.1.0-canary.55
396
-
397
- ## 7.1.0-canary.54
398
-
399
- ## 7.1.0-canary.53
400
-
401
- ## 7.1.0-canary.52
402
-
403
- ## 7.1.0-canary.51
404
-
405
- ## 7.1.0-canary.50
406
-
407
- ## 7.1.0-canary.49
408
-
409
- ### Patch Changes
410
-
411
- - [#2115](https://github.com/graphcommerce-org/graphcommerce/pull/2115) [`105a1af8b`](https://github.com/graphcommerce-org/graphcommerce/commit/105a1af8b820de8873e430ae398f1922d39a9110) - Disabled Ripple on all ActionCard ‘Select’ and ‘Change’ so the rendering is more subtle during checkout. ([@Jessevdpoel](https://github.com/Jessevdpoel))
412
-
413
- ## 7.1.0-canary.48
414
-
415
- ## 7.1.0-canary.47
416
-
417
- ## 7.1.0-canary.46
418
-
419
- ## 7.1.0-canary.45
420
-
421
- ## 7.1.0-canary.38
422
-
423
- ## 7.1.0-canary.37
424
-
425
- ## 7.1.0-canary.36
426
-
427
- ## 7.1.0-canary.35
428
-
429
- ## 7.1.0-canary.34
430
-
431
- ## 7.1.0-canary.33
432
-
433
- ## 7.1.0-canary.32
434
-
435
- ## 7.1.0-canary.31
436
-
437
- ## 7.1.0-canary.30
438
-
439
- ## 7.1.0-canary.29
440
-
441
- ## 7.1.0-canary.28
442
-
443
- ## 7.1.0-canary.27
444
-
445
- ## 7.1.0-canary.26
446
-
447
- ## 7.1.0-canary.25
448
-
449
- ## 7.1.0-canary.24
450
-
451
- ## 7.1.0-canary.23
452
-
453
- ## 7.1.0-canary.22
454
-
455
- ## 7.1.0-canary.21
456
-
457
- ## 7.1.0-canary.20
458
-
459
- ## 7.1.0-canary.19
460
-
461
- ## 7.1.0-canary.18
462
-
463
- ## 7.1.0-canary.17
464
-
465
- ## 7.1.0-canary.16
466
-
467
- ## 7.1.0-canary.15
468
-
469
- ## 7.1.0-canary.14
470
-
471
- ## 7.1.0-canary.13
472
-
473
- ## 7.1.0-canary.12
474
-
475
- ## 7.1.0-canary.11
476
-
477
- ## 7.1.0-canary.10
478
-
479
- ## 7.1.0-canary.9
480
-
481
- ## 7.1.0-canary.8
482
-
483
- ## 7.0.2-canary.7
484
-
485
- ## 7.0.2-canary.6
486
-
487
- ## 7.0.2-canary.5
488
-
489
- ## 7.0.1
490
-
491
- ### Patch Changes
492
-
493
- - [#2046](https://github.com/graphcommerce-org/graphcommerce/pull/2046) [`6c7197755`](https://github.com/graphcommerce-org/graphcommerce/commit/6c7197755ba54d35109fea0c44965a3aae3fd895) - Remove the selected payment method title from the Place order button so that the text always fits ([@carlocarels90](https://github.com/carlocarels90))
494
-
495
- ## 7.0.1-canary.15
496
-
497
- ## 7.0.1-canary.14
498
-
499
- ## 7.0.1-canary.13
500
-
501
- ## 7.0.1-canary.12
502
-
503
- ## 7.0.1-canary.11
504
-
505
- ## 7.0.1-canary.10
506
-
507
- ## 7.0.1-canary.9
508
-
509
- ### Patch Changes
510
-
511
- - [#2046](https://github.com/graphcommerce-org/graphcommerce/pull/2046) [`6c7197755`](https://github.com/graphcommerce-org/graphcommerce/commit/6c7197755ba54d35109fea0c44965a3aae3fd895) - Remove the selected payment method title from the Place order button so that the text always fits ([@carlocarels90](https://github.com/carlocarels90))
512
-
513
- ## 7.0.1-canary.8
514
-
515
- ## 7.0.1-canary.7
516
-
517
- ## 7.0.1-canary.6
518
-
519
- ## 7.0.1-canary.5
520
-
521
- ## 7.0.1-canary.4
522
-
523
- ## 7.0.1-canary.3
524
-
525
- ## 7.0.1-canary.2
526
-
527
- ## 7.0.1-canary.1
528
-
529
- ## 7.0.1-canary.0
530
-
531
- ## 7.0.0
532
-
533
- ### Patch Changes
534
-
535
- - [#2031](https://github.com/graphcommerce-org/graphcommerce/pull/2031) [`4d8fc9e99`](https://github.com/graphcommerce-org/graphcommerce/commit/4d8fc9e998fc9361282833316ec9564da0644ed6) - Eslint fixes and suppress accepted warnings ([@paales](https://github.com/paales))
536
-
537
- - [#1943](https://github.com/graphcommerce-org/graphcommerce/pull/1943) [`138215b45`](https://github.com/graphcommerce-org/graphcommerce/commit/138215b453703f44243c85b3bfab58814d86131c) - When a PayPal buyer would return to the website it would sometimes clear the buyers token ([@paales](https://github.com/paales))
538
-
539
- - [#2027](https://github.com/graphcommerce-org/graphcommerce/pull/2027) [`e384fe2e4`](https://github.com/graphcommerce-org/graphcommerce/commit/e384fe2e47d849fe6f7bfa7c6dd48b9b6b5b1bd1) - Solved an issue where the empty cart would be shown between the payment and success page. ([@Jessevdpoel](https://github.com/Jessevdpoel))
540
-
541
- ## 6.2.0-canary.98
542
-
543
- ## 6.2.0-canary.97
544
-
545
- ## 6.2.0-canary.96
546
-
547
- ## 6.2.0-canary.95
548
-
549
- ## 6.2.0-canary.94
550
-
551
- ## 6.2.0-canary.93
552
-
553
- ## 6.2.0-canary.92
554
-
555
- ## 6.2.0-canary.91
556
-
557
- ## 6.2.0-canary.90
558
-
559
- ## 6.2.0-canary.89
560
-
561
- ### Patch Changes
562
-
563
- - [#2031](https://github.com/graphcommerce-org/graphcommerce/pull/2031) [`4d8fc9e99`](https://github.com/graphcommerce-org/graphcommerce/commit/4d8fc9e998fc9361282833316ec9564da0644ed6) - Eslint fixes and suppress accepted warnings ([@paales](https://github.com/paales))
564
-
565
- ## 6.2.0-canary.88
566
-
567
- ## 6.2.0-canary.87
568
-
569
- ## 6.2.0-canary.86
570
-
571
- ## 6.2.0-canary.85
572
-
573
- ### Patch Changes
574
-
575
- - [#2027](https://github.com/graphcommerce-org/graphcommerce/pull/2027) [`e384fe2e4`](https://github.com/graphcommerce-org/graphcommerce/commit/e384fe2e47d849fe6f7bfa7c6dd48b9b6b5b1bd1) - Solved an issue where the empty cart would be shown between the payment and success page. ([@Jessevdpoel](https://github.com/Jessevdpoel))
576
-
577
- ## 6.2.0-canary.84
578
-
579
- ## 6.2.0-canary.83
580
-
581
- ## 6.2.0-canary.82
582
-
583
- ## 6.2.0-canary.81
584
-
585
- ## 6.2.0-canary.80
586
-
587
- ## 6.2.0-canary.79
588
-
589
- ## 6.2.0-canary.78
590
-
591
- ## 6.2.0-canary.77
592
-
593
- ## 6.2.0-canary.76
594
-
595
- ## 6.2.0-canary.75
596
-
597
- ## 6.2.0-canary.74
598
-
599
- ## 6.2.0-canary.73
600
-
601
- ## 6.2.0-canary.72
602
-
603
- ## 6.2.0-canary.71
604
-
605
- ## 6.2.0-canary.70
606
-
607
- ## 6.2.0-canary.69
608
-
609
- ## 6.2.0-canary.68
610
-
611
- ## 6.2.0-canary.67
612
-
613
- ## 6.2.0-canary.66
614
-
615
- ## 6.2.0-canary.65
616
-
617
- ## 6.2.0-canary.64
618
-
619
- ## 6.2.0-canary.63
620
-
621
- ## 6.2.0-canary.62
622
-
623
- ## 6.2.0-canary.61
624
-
625
- ## 6.2.0-canary.60
626
-
627
- ## 6.2.0-canary.59
628
-
629
- ## 6.2.0-canary.58
630
-
631
- ## 6.2.0-canary.57
632
-
633
- ## 6.2.0-canary.56
634
-
635
- ## 6.2.0-canary.55
636
-
637
- ## 6.2.0-canary.54
638
-
639
- ## 6.2.0-canary.53
640
-
641
- ## 6.2.0-canary.52
642
-
643
- ## 6.2.0-canary.51
644
-
645
- ## 6.2.0-canary.50
646
-
647
- ## 6.2.0-canary.49
648
-
649
- ## 6.2.0-canary.48
650
-
651
- ## 6.2.0-canary.47
652
-
653
- ## 6.2.0-canary.46
654
-
655
- ## 6.2.0-canary.45
656
-
657
- ## 6.2.0-canary.44
658
-
659
- ## 6.2.0-canary.43
660
-
661
- ## 6.2.0-canary.42
662
-
663
- ## 6.2.0-canary.41
664
-
665
- ## 6.2.0-canary.40
666
-
667
- ## 6.2.0-canary.39
668
-
669
- ## 6.2.0-canary.38
670
-
671
- ## 6.2.0-canary.37
672
-
673
- ## 6.2.0-canary.36
674
-
675
- ## 6.2.0-canary.35
676
-
677
- ## 6.2.0-canary.34
678
-
679
- ## 6.2.0-canary.33
680
-
681
- ## 6.2.0-canary.32
682
-
683
- ## 6.2.0-canary.31
684
-
685
- ## 6.2.0-canary.30
686
-
687
- ## 6.2.0-canary.29
688
-
689
- ## 6.2.0-canary.28
690
-
691
- ## 6.2.0-canary.27
692
-
693
- ## 6.2.0-canary.26
694
-
695
- ## 6.2.0-canary.25
696
-
697
- ## 6.2.0-canary.24
7
+ ## 8.1.0-canary.38
698
8
 
699
9
  ### Patch Changes
700
10
 
701
- - [#1943](https://github.com/graphcommerce-org/graphcommerce/pull/1943) [`138215b45`](https://github.com/graphcommerce-org/graphcommerce/commit/138215b453703f44243c85b3bfab58814d86131c) - When a PayPal buyer would return to the website it would sometimes clear the buyers token ([@paales](https://github.com/paales))
702
-
703
- ## 6.2.0-canary.23
704
-
705
- ## 6.2.0-canary.22
706
-
707
- ## 6.2.0-canary.21
708
-
709
- ## 6.2.0-canary.20
710
-
711
- ## 6.2.0-canary.19
712
-
713
- ## 6.2.0-canary.18
714
-
715
- ## 6.2.0-canary.17
716
-
717
- ## 6.2.0-canary.16
718
-
719
- ## 6.2.0-canary.15
720
-
721
- ## 6.2.0-canary.14
722
-
723
- ## 6.2.0-canary.13
724
-
725
- ## 6.2.0-canary.12
726
-
727
- ## 6.2.0-canary.11
728
-
729
- ## 6.2.0-canary.10
730
-
731
- ## 6.2.0-canary.9
732
-
733
- ## 6.2.0-canary.8
734
-
735
- ## 6.2.0-canary.7
736
-
737
- ## 6.2.0-canary.6
738
-
739
- ## 6.1.1-canary.5
740
-
741
- ## 6.1.1-canary.4
742
-
743
- ## 6.1.1-canary.3
744
-
745
- ## 6.1.1-canary.2
746
-
747
- ## 6.1.1-canary.1
748
-
749
- ## 6.1.1-canary.0
750
-
751
- ## 6.1.0
752
-
753
- ## 6.0.2-canary.22
754
-
755
- ## 6.0.2-canary.21
756
-
757
- ## 6.0.2-canary.20
758
-
759
- ## 6.0.2-canary.19
760
-
761
- ## 6.0.2-canary.18
762
-
763
- ## 6.0.2-canary.17
764
-
765
- ## 6.0.2-canary.16
11
+ - [#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))
766
12
 
767
- ## 6.0.2-canary.15
13
+ ## 8.1.0-canary.18
768
14
 
769
- ## 6.0.2-canary.14
15
+ ### Patch Changes
770
16
 
771
- ## 6.0.2-canary.13
17
+ - [#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))
772
18
 
773
- ## 6.0.2-canary.12
19
+ ## 8.1.0-canary.14
774
20
 
775
- ## 6.0.2-canary.11
21
+ ### Patch Changes
776
22
 
777
- ## 6.0.2-canary.10
23
+ - [`831d7cd`](https://github.com/graphcommerce-org/graphcommerce/commit/831d7cd64a40b7b58748fd9637199b88938e75b7) - Compatibility with Magento 2.4.7 ([@paales](https://github.com/paales))
778
24
 
779
- ## 6.0.2-canary.9
25
+ ## 8.1.0-canary.8
780
26
 
781
- ## 6.0.2-canary.8
27
+ ### Patch Changes
782
28
 
783
- ## 6.0.2-canary.7
29
+ - [#2247](https://github.com/graphcommerce-org/graphcommerce/pull/2247) [`d345474`](https://github.com/graphcommerce-org/graphcommerce/commit/d345474fb190d158629cd5fd5e68a78724fa2fb6) - Due to a cyclic dependency the actual PaymentMethodPlaceOrder button would sometimes be undefined. ([@paales](https://github.com/paales))
784
30
 
785
- ## 6.0.2-canary.6
31
+ ## 8.0.6-canary.2
786
32
 
787
- ## 6.0.2-canary.5
33
+ ### Patch Changes
788
34
 
789
- ## 6.0.2-canary.4
35
+ - [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`43bd04a`](https://github.com/graphcommerce-org/graphcommerce/commit/43bd04a777c5800cc7e01bee1e123a5aad82f194) - Use the non resolved payment methods as a placeholder for the actual payment methods ([@FrankHarland](https://github.com/FrankHarland))
790
36
 
791
- ## 6.0.2-canary.3
37
+ - [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`530076e`](https://github.com/graphcommerce-org/graphcommerce/commit/530076e3664703cb8b577b7fcf1998a420819f60) - Moved all usages of useFormPersist to the <FormPersist/> component to prevent rerenders. ([@FrankHarland](https://github.com/FrankHarland))
792
38
 
793
- ## 6.0.2-canary.2
39
+ - [#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))
794
40
 
795
- ## 6.0.2-canary.1
41
+ ## 8.0.0
796
42
 
797
- ## 6.0.2-canary.0
43
+ ### Patch Changes
798
44
 
799
- ## 6.0.1
45
+ - [#2115](https://github.com/graphcommerce-org/graphcommerce/pull/2115) [`105a1af`](https://github.com/graphcommerce-org/graphcommerce/commit/105a1af8b820de8873e430ae398f1922d39a9110) - Disabled ripple animations on all ActionCard ‘Select’ and ‘Change’ so the rendering is more subtle during checkout. ([@Jessevdpoel](https://github.com/Jessevdpoel))
800
46
 
801
- ## 6.0.1-canary.7
47
+ ## 7.0.1
802
48
 
803
- ## 6.0.1-canary.6
49
+ ### Patch Changes
804
50
 
805
- ## 6.0.1-canary.5
51
+ - [#2046](https://github.com/graphcommerce-org/graphcommerce/pull/2046) [`6c7197755`](https://github.com/graphcommerce-org/graphcommerce/commit/6c7197755ba54d35109fea0c44965a3aae3fd895) - Remove the selected payment method title from the Place order button so that the text always fits ([@carlocarels90](https://github.com/carlocarels90))
806
52
 
807
- ## 6.0.1-canary.4
53
+ ## 7.0.0
808
54
 
809
- ## 6.0.1-canary.3
55
+ ### Patch Changes
810
56
 
811
- ## 6.0.1-canary.2
57
+ - [#2031](https://github.com/graphcommerce-org/graphcommerce/pull/2031) [`4d8fc9e99`](https://github.com/graphcommerce-org/graphcommerce/commit/4d8fc9e998fc9361282833316ec9564da0644ed6) - Eslint fixes and suppress accepted warnings ([@paales](https://github.com/paales))
812
58
 
813
- ## 6.0.1-canary.1
59
+ - [#1943](https://github.com/graphcommerce-org/graphcommerce/pull/1943) [`138215b45`](https://github.com/graphcommerce-org/graphcommerce/commit/138215b453703f44243c85b3bfab58814d86131c) - When a PayPal buyer would return to the website it would sometimes clear the buyers token ([@paales](https://github.com/paales))
814
60
 
815
- ## 6.0.1-canary.0
61
+ - [#2027](https://github.com/graphcommerce-org/graphcommerce/pull/2027) [`e384fe2e4`](https://github.com/graphcommerce-org/graphcommerce/commit/e384fe2e47d849fe6f7bfa7c6dd48b9b6b5b1bd1) - Solved an issue where the empty cart would be shown between the payment and success page. ([@Jessevdpoel](https://github.com/Jessevdpoel))
816
62
 
817
63
  ## 6.0.0
818
64
 
@@ -824,130 +70,6 @@
824
70
 
825
71
  - [#1851](https://github.com/graphcommerce-org/graphcommerce/pull/1851) [`5adadf4ba`](https://github.com/graphcommerce-org/graphcommerce/commit/5adadf4ba023e861409a3925b5cda1e20dbb256c) - Make sure the PayerID isn’t required for non-paypal method ([@paales](https://github.com/paales))
826
72
 
827
- ## 6.0.0-canary.54
828
-
829
- ## 6.0.0-canary.53
830
-
831
- ## 6.0.0-canary.52
832
-
833
- ## 6.0.0-canary.51
834
-
835
- ## 6.0.0-canary.50
836
-
837
- ### Patch Changes
838
-
839
- - [#1851](https://github.com/graphcommerce-org/graphcommerce/pull/1851) [`5adadf4ba`](https://github.com/graphcommerce-org/graphcommerce/commit/5adadf4ba023e861409a3925b5cda1e20dbb256c) - Make sure the PayerID isn’t required for non-paypal method ([@paales](https://github.com/paales))
840
-
841
- ## 6.0.0-canary.49
842
-
843
- ## 6.0.0-canary.48
844
-
845
- ## 6.0.0-canary.47
846
-
847
- ## 6.0.0-canary.46
848
-
849
- ## 6.0.0-canary.45
850
-
851
- ## 6.0.0-canary.44
852
-
853
- ## 6.0.0-canary.43
854
-
855
- ### Minor Changes
856
-
857
- - [#1841](https://github.com/graphcommerce-org/graphcommerce/pull/1841) [`45befd304`](https://github.com/graphcommerce-org/graphcommerce/commit/45befd3040eb45f7f7204312cd532432ae84dc4d) - Always fetch the CartTotals when changing the payment method and automatically submit the currently selected payment method. ([@paales](https://github.com/paales))
858
-
859
- ## 6.0.0-canary.42
860
-
861
- ## 6.0.0-canary.41
862
-
863
- ## 6.0.0-canary.40
864
-
865
- ## 6.0.0-canary.39
866
-
867
- ## 6.0.0-canary.38
868
-
869
- ## 6.0.0-canary.37
870
-
871
- ## 6.0.0-canary.36
872
-
873
- ## 6.0.0-canary.35
874
-
875
- ## 6.0.0-canary.34
876
-
877
- ## 6.0.0-canary.33
878
-
879
- ## 6.0.0-canary.32
880
-
881
- ## 6.0.0-canary.31
882
-
883
- ## 6.0.0-canary.30
884
-
885
- ## 6.0.0-canary.29
886
-
887
- ## 6.0.0-canary.28
888
-
889
- ## 6.0.0-canary.27
890
-
891
- ## 6.0.0-canary.26
892
-
893
- ## 6.0.0-canary.25
894
-
895
- ## 6.0.0-canary.24
896
-
897
- ## 6.0.0-canary.23
898
-
899
- ## 6.0.0-canary.22
900
-
901
- ## 6.0.0-canary.21
902
-
903
- ## 6.0.0-canary.20
904
-
905
- ## 5.2.0-canary.19
906
-
907
- ## 5.2.0-canary.18
908
-
909
- ## 5.2.0-canary.17
910
-
911
- ## 5.2.0-canary.16
912
-
913
- ## 5.2.0-canary.15
914
-
915
- ## 5.2.0-canary.14
916
-
917
- ## 5.2.0-canary.13
918
-
919
- ## 5.2.0-canary.12
920
-
921
- ## 5.2.0-canary.11
922
-
923
- ## 5.2.0-canary.10
924
-
925
- ## 5.2.0-canary.9
926
-
927
- ## 5.2.0-canary.8
928
-
929
- ## 5.2.0-canary.7
930
-
931
- ## 5.2.0-canary.6
932
-
933
- ## 5.2.0-canary.5
934
-
935
- ## 5.2.0-canary.4
936
-
937
- ## 5.2.0-canary.3
938
-
939
- ## 5.2.0-canary.2
940
-
941
- ## 5.2.0-canary.1
942
-
943
- ## 5.2.0-canary.0
944
-
945
- ## 5.1.1
946
-
947
- ## 5.1.1-canary.1
948
-
949
- ## 5.1.1-canary.0
950
-
951
73
  ## 5.1.0
952
74
 
953
75
  ### Patch Changes
@@ -959,39 +81,6 @@
959
81
  - Upgraded dependencies including type-fest and graphql-mesh
960
82
  - Solved peer dependency issues ([@paales](https://github.com/paales))
961
83
 
962
- ## 5.1.0-canary.11
963
-
964
- ## 5.1.0-canary.10
965
-
966
- ## 5.1.0-canary.9
967
-
968
- ## 5.1.0-canary.8
969
-
970
- ## 5.1.0-canary.7
971
-
972
- ## 5.1.0-canary.6
973
-
974
- ## 5.1.0-canary.5
975
-
976
- ## 5.1.0-canary.4
977
-
978
- ## 5.1.0-canary.3
979
-
980
- ### Patch Changes
981
-
982
- - [#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.
983
-
984
- - Updated the @mui/material package
985
- - Removed dependencies on react-hook-form-mui and @playwright/test
986
- - Upgraded dependencies including type-fest and graphql-mesh
987
- - Solved peer dependency issues ([@paales](https://github.com/paales))
988
-
989
- ## 5.1.0-canary.2
990
-
991
- ## 5.1.0-canary.1
992
-
993
- ## 5.1.0-canary.0
994
-
995
84
  ## 5.0.0
996
85
 
997
86
  ### Major Changes
@@ -1012,82 +101,12 @@
1012
101
 
1013
102
  - [#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))
1014
103
 
1015
- ## 5.0.0-canary.14
1016
-
1017
- ## 5.0.0-canary.13
1018
-
1019
- ### Major Changes
1020
-
1021
- - [`e4c7fe17e`](https://github.com/graphcommerce-org/graphcommerce/commit/e4c7fe17e413e37362ceae92e67f1b3a5f62d398) - Bump major version of all packages ([@paales](https://github.com/paales))
1022
-
1023
- ## 4.14.0-canary.12
1024
-
1025
- ## 4.14.0-canary.11
1026
-
1027
- ## 4.14.0-canary.10
1028
-
1029
- ## 4.14.0-canary.9
1030
-
1031
- ## 4.14.0-canary.8
1032
-
1033
- ## 4.14.0-canary.7
1034
-
1035
- ## 4.14.0-canary.6
1036
-
1037
- ## 4.14.0-canary.5
1038
-
1039
- ## 4.14.0-canary.4
1040
-
1041
- ### Minor Changes
1042
-
1043
- - [#1733](https://github.com/graphcommerce-org/graphcommerce/pull/1733) [`0173d9307`](https://github.com/graphcommerce-org/graphcommerce/commit/0173d93075e1e3bdfb4667cf1ef3e53113b38994) - Add props to <PaymentMethodContextProvider/>: onSuccess and successUrl. ([@paales](https://github.com/paales))
1044
-
1045
- ### Patch Changes
1046
-
1047
- - [#1733](https://github.com/graphcommerce-org/graphcommerce/pull/1733) [`a0eefa762`](https://github.com/graphcommerce-org/graphcommerce/commit/a0eefa762f93f817f506b87753dfe0b92e3318f8) - Added better disabled state for an ActionCard ([@paales](https://github.com/paales))
1048
-
1049
- - [#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))
1050
-
1051
- ## 4.14.0-canary.3
1052
-
1053
- ## 4.14.0-canary.2
1054
-
1055
- ### Patch Changes
1056
-
1057
- - [#1718](https://github.com/graphcommerce-org/graphcommerce/pull/1718) [`37e86cdc8`](https://github.com/graphcommerce-org/graphcommerce/commit/37e86cdc86ccca3db77d6c59b1e14c8112bb7893) - Remove usage of PropsWithChildren ([@paales](https://github.com/paales))
1058
-
1059
- - [#1718](https://github.com/graphcommerce-org/graphcommerce/pull/1718) [`acef2a3ae`](https://github.com/graphcommerce-org/graphcommerce/commit/acef2a3aedd60e1882330cde56877bf26857d238) - Make the modules prop optional for the `<PaymentMethodContextProvider />` component ([@paales](https://github.com/paales))
1060
-
1061
- ## 4.13.2-canary.1
1062
-
1063
- ## 4.13.2-canary.0
1064
-
1065
- ## 4.13.3
1066
-
1067
- ## 4.13.2
1068
-
1069
- ## 4.13.1
1070
-
1071
- ## 4.13.1-canary.2
1072
-
1073
- ## 4.13.1-canary.1
1074
-
1075
- ## 4.13.1-canary.0
1076
-
1077
104
  ## 4.13.0
1078
105
 
1079
106
  ### Patch Changes
1080
107
 
1081
108
  - [#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
1082
109
 
1083
- ## 4.13.0-canary.1
1084
-
1085
- ### Patch Changes
1086
-
1087
- - [`abb15ef4a`](https://github.com/graphcommerce-org/graphcommerce/commit/abb15ef4a79b12eddb32cc006e5d1d31dd06ac2d) Thanks [@paales](https://github.com/paales)! - Added canary releases to GraphCommerce
1088
-
1089
- ## 4.13.0-canary.0
1090
-
1091
110
  ## 3.6.9
1092
111
 
1093
112
  ### Patch Changes
@@ -1648,8 +667,8 @@
1648
667
  Needs to be replaced with:
1649
668
 
1650
669
  ```tsx
1651
- import { Trans } from '@lingui/react'
1652
670
  import { i18n } from '@lingui/core'
671
+ import { Trans } from '@lingui/react'
1653
672
 
1654
673
  function MyComponent() {
1655
674
  const foo = 'bar'
@@ -2035,8 +1054,6 @@ All notable changes to this project will be documented in this file. See [Conven
2035
1054
 
2036
1055
  ## [2.103.15](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.103.14...@graphcommerce/magento-cart-payment-method@2.103.15) (2021-09-23)
2037
1056
 
2038
- ## [2.103.15](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.103.14...@graphcommerce/magento-cart-payment-method@2.103.15) (2021-09-23)
2039
-
2040
1057
  ### Bug Fixes
2041
1058
 
2042
1059
  - do not use ToggleButtonGroup, only use the ToggleButton ([5172f70](https://github.com/ho-nl/m2-pwa/commit/5172f709ee26122b0a8700afb4325f23cb9ba9b9))
@@ -1,16 +1,14 @@
1
- import { ActionCardItemRenderProps, ActionCardListForm } from '@graphcommerce/ecommerce-ui'
2
- import { ActionCard, ActionCardProps, Button, FormDiv } from '@graphcommerce/next-ui'
3
- import {
4
- FormPersist,
5
- useForm,
6
- useFormCompose,
7
- UseFormComposeOptions,
8
- } from '@graphcommerce/react-hook-form'
1
+ import type { ActionCardItemRenderProps } from '@graphcommerce/ecommerce-ui'
2
+ import { ActionCardListForm } from '@graphcommerce/ecommerce-ui'
3
+ import type { ActionCardProps } from '@graphcommerce/next-ui'
4
+ import { ActionCard, Button, FormDiv } from '@graphcommerce/next-ui'
5
+ import type { UseFormComposeOptions } from '@graphcommerce/react-hook-form'
6
+ import { FormPersist, useForm, useFormCompose } from '@graphcommerce/react-hook-form'
9
7
  import { i18n } from '@lingui/core'
10
8
  import { Trans } from '@lingui/react'
11
- import { SxProps, Theme } from '@mui/material'
9
+ import type { SxProps, Theme } from '@mui/material'
12
10
  import { useEffect } from 'react'
13
- import { PaymentOptionsProps } from '../Api/PaymentMethod'
11
+ import type { PaymentOptionsProps } from '../Api/PaymentMethod'
14
12
  import { usePaymentMethodContext } from '../PaymentMethodContext/paymentMethodContextType'
15
13
  import { useCartLock } from '../hooks'
16
14
 
@@ -1,10 +1,11 @@
1
1
  import { ApolloCartErrorSnackbar } from '@graphcommerce/magento-cart'
2
- import { LinkOrButton, LinkOrButtonProps } from '@graphcommerce/next-ui'
3
- import {
4
- ComposedSubmit,
2
+ import type { LinkOrButtonProps } from '@graphcommerce/next-ui'
3
+ import { LinkOrButton } from '@graphcommerce/next-ui'
4
+ import type {
5
5
  ComposedSubmitProps,
6
6
  ComposedSubmitRenderComponentProps,
7
7
  } from '@graphcommerce/react-hook-form'
8
+ import { ComposedSubmit } from '@graphcommerce/react-hook-form'
8
9
  import { usePaymentMethodContext } from '../PaymentMethodContext/paymentMethodContextType'
9
10
 
10
11
  export type PaymentMethodButtonProps = LinkOrButtonProps & { display?: 'inline' | 'block' } & Pick<
@@ -4,15 +4,16 @@ import { filterNonNullableKeys } from '@graphcommerce/next-ui'
4
4
  import { useEventCallback } from '@mui/material'
5
5
  import { useRouter } from 'next/router'
6
6
  import React, { useEffect, useMemo, useState } from 'react'
7
- import {
7
+ import type {
8
8
  ExpandPaymentMethodsContext,
9
9
  PaymentMethod,
10
10
  PaymentMethodModules,
11
11
  PaymentModule,
12
12
  } from '../Api/PaymentMethod'
13
- import { PaymentMethodContextFragment } from '../Api/PaymentMethodContext.gql'
13
+ import type { PaymentMethodContextFragment } from '../Api/PaymentMethodContext.gql'
14
14
  import { GetPaymentMethodContextDocument } from './GetPaymentMethodContext.gql'
15
- import { PaymentMethodContextType, paymentMethodContext } from './paymentMethodContextType'
15
+ import type { PaymentMethodContextType } from './paymentMethodContextType'
16
+ import { paymentMethodContext } from './paymentMethodContextType'
16
17
 
17
18
  export type PaymentMethodContextProviderProps = {
18
19
  modules?: PaymentMethodModules
@@ -74,7 +75,9 @@ export function PaymentMethodContextProvider(props: PaymentMethodContextProvider
74
75
  ;(async () => {
75
76
  const promises = availableMethods.map(async (method) =>
76
77
  method
77
- ? modules[method.code]?.expandMethods?.(method, cartContext) ?? [{ ...method, child: '' }]
78
+ ? (modules[method.code]?.expandMethods?.(method, cartContext) ?? [
79
+ { ...method, child: '' },
80
+ ])
78
81
  : Promise.resolve([]),
79
82
  )
80
83
  const loaded = (await Promise.all(promises)).flat(1).sort((a) => (a.preferred ? 1 : 0))
@@ -1,9 +1,10 @@
1
1
  import { extendableComponent } from '@graphcommerce/next-ui'
2
- import { Box, SxProps, Theme } from '@mui/material'
3
- import { PaymentMethodOptionsProps } from '../Api/PaymentMethod'
2
+ import type { SxProps, Theme } from '@mui/material'
3
+ import { Box } from '@mui/material'
4
+ import type { PaymentMethodOptionsProps } from '../Api/PaymentMethod'
4
5
  import { usePaymentMethodContext } from '../PaymentMethodContext/paymentMethodContextType'
5
6
 
6
- const name = 'PaymentMethodOptions' as const
7
+ const name = 'PaymentMethodOptions'
7
8
  const parts = ['root'] as const
8
9
  const { classes } = extendableComponent(name, parts)
9
10
 
@@ -1,6 +1,6 @@
1
1
  import { useCartQuery, useFormGqlMutationCart } from '@graphcommerce/magento-cart'
2
2
  import { useFormAutoSubmit, useFormCompose } from '@graphcommerce/react-hook-form'
3
- import { PaymentOptionsProps } from '../Api/PaymentMethod'
3
+ import type { PaymentOptionsProps } from '../Api/PaymentMethod'
4
4
  import { GetPaymentMethodContextDocument } from '../PaymentMethodContext/GetPaymentMethodContext.gql'
5
5
  import { PaymentMethodOptionsNoopDocument } from './PaymentMethodOptionsNoop.gql'
6
6
 
@@ -1,4 +1,4 @@
1
- import { UseFormComposeOptions } from '@graphcommerce/react-hook-form'
1
+ import type { UseFormComposeOptions } from '@graphcommerce/react-hook-form'
2
2
  import { usePaymentMethodContext } from '../PaymentMethodContext/paymentMethodContextType'
3
3
 
4
4
  export type PaymentMethodPlaceOrderProps = Pick<UseFormComposeOptions, 'step'>
@@ -1,7 +1,7 @@
1
1
  import { useFormGqlMutationCart } from '@graphcommerce/magento-cart'
2
2
  import { useFormCompose } from '@graphcommerce/react-hook-form'
3
3
  import { t } from '@lingui/macro'
4
- import { PaymentPlaceOrderProps } from '../Api/PaymentMethod'
4
+ import type { PaymentPlaceOrderProps } from '../Api/PaymentMethod'
5
5
  import { usePaymentMethodContext } from '../PaymentMethodContext/paymentMethodContextType'
6
6
  import { PaymentMethodPlaceOrderNoopDocument } from './PaymentMethodPlaceOrderNoop.gql'
7
7
 
@@ -2,22 +2,18 @@ import { Scroller, ScrollerButton, ScrollerProvider } from '@graphcommerce/frame
2
2
  import {
3
3
  Form,
4
4
  FormRow,
5
- iconChevronLeft,
6
- iconChevronRight,
7
- responsiveVal,
8
5
  IconSvg,
9
6
  ToggleButton,
10
7
  extendableComponent,
8
+ iconChevronLeft,
9
+ iconChevronRight,
10
+ responsiveVal,
11
11
  } from '@graphcommerce/next-ui'
12
- import {
13
- Controller,
14
- FormPersist,
15
- useForm,
16
- useFormCompose,
17
- UseFormComposeOptions,
18
- } from '@graphcommerce/react-hook-form'
12
+ import type { UseFormComposeOptions } from '@graphcommerce/react-hook-form'
13
+ import { Controller, FormPersist, useForm, useFormCompose } from '@graphcommerce/react-hook-form'
19
14
  import { i18n } from '@lingui/core'
20
- import { Box, FormControl, FormHelperText, SxProps, Theme } from '@mui/material'
15
+ import type { SxProps, Theme } from '@mui/material'
16
+ import { Box, FormControl, FormHelperText } from '@mui/material'
21
17
  import { useEffect } from 'react'
22
18
  import { usePaymentMethodContext } from '../PaymentMethodContext/paymentMethodContextType'
23
19
  import { useCartLock } from '../hooks/useCartLock'
@@ -26,7 +22,7 @@ export type PaymentMethodTogglesProps = Pick<UseFormComposeOptions, 'step'> & {
26
22
  sx?: SxProps<Theme>
27
23
  }
28
24
 
29
- const cmpName = 'PaymentMethodToggles' as const
25
+ const cmpName = 'PaymentMethodToggles'
30
26
  const parts = [
31
27
  'formRoot',
32
28
  'root',
@@ -130,8 +126,8 @@ export function PaymentMethodToggles(props: PaymentMethodTogglesProps) {
130
126
  hideScrollbar
131
127
  tabIndex={0}
132
128
  sx={{
133
- gridAutoColumns: `max-content`,
134
- gridTemplateRows: `100%`,
129
+ gridAutoColumns: 'max-content',
130
+ gridTemplateRows: '100%',
135
131
  gap: responsiveVal(4, 8),
136
132
  height: responsiveVal(60, 85),
137
133
  borderRadius: '5px',
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart-payment-method",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "9.0.0-canary.101",
5
+ "version": "9.0.0-canary.104",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,23 +12,23 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.0.0-canary.101",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.101",
17
- "@graphcommerce/framer-scroller": "^9.0.0-canary.101",
18
- "@graphcommerce/graphql": "^9.0.0-canary.101",
19
- "@graphcommerce/image": "^9.0.0-canary.101",
20
- "@graphcommerce/magento-cart": "^9.0.0-canary.101",
21
- "@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.101",
22
- "@graphcommerce/magento-store": "^9.0.0-canary.101",
23
- "@graphcommerce/next-ui": "^9.0.0-canary.101",
24
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.101",
25
- "@graphcommerce/react-hook-form": "^9.0.0-canary.101",
26
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.101",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.104",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.104",
17
+ "@graphcommerce/framer-scroller": "^9.0.0-canary.104",
18
+ "@graphcommerce/graphql": "^9.0.0-canary.104",
19
+ "@graphcommerce/image": "^9.0.0-canary.104",
20
+ "@graphcommerce/magento-cart": "^9.0.0-canary.104",
21
+ "@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.104",
22
+ "@graphcommerce/magento-store": "^9.0.0-canary.104",
23
+ "@graphcommerce/next-ui": "^9.0.0-canary.104",
24
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.104",
25
+ "@graphcommerce/react-hook-form": "^9.0.0-canary.104",
26
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.104",
27
27
  "@lingui/core": "^4.2.1",
28
28
  "@lingui/macro": "^4.2.1",
29
29
  "@lingui/react": "^4.2.1",
30
30
  "@mui/material": "^5.10.16",
31
- "framer-motion": "^10.0.0",
31
+ "framer-motion": "^11.0.0",
32
32
  "next": "*",
33
33
  "react": "^18.2.0",
34
34
  "react-dom": "^18.2.0"
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
- import { ApolloClient, NormalizedCacheObject } from '@graphcommerce/graphql'
3
- import { fillCartAgreementsForm } from '@graphcommerce/magento-cart/test/fillCartAgreementsForm'
2
+ import type { ApolloClient, NormalizedCacheObject } from '@graphcommerce/graphql'
4
3
  import { fillShippingAddressForm } from '@graphcommerce/magento-cart-shipping-address/test/fillShippingAddressForm'
5
- import { Page } from '@playwright/test'
4
+ import { fillCartAgreementsForm } from '@graphcommerce/magento-cart/test/fillCartAgreementsForm'
5
+ import type { Page } from '@playwright/test'
6
6
 
7
7
  export const goToPayment = async (
8
8
  page: Page,
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable import/no-extraneous-dependencies */
2
- import { Page } from '@playwright/test'
2
+ import type { Page } from '@playwright/test'
3
3
 
4
4
  export const selectPaymentMethod = async (page: Page, method: string) => {
5
5
  const locator = page.locator(`button[value=${method}]`)