@graphcommerce/magento-cart-payment-method 8.1.0-canary.8 → 9.0.0-canary.54

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,4 +1,4 @@
1
- fragment AvailablePaymentMethod on AvailablePaymentMethod @injectable {
1
+ fragment AvailablePaymentMethod on AvailablePaymentMethod {
2
2
  code
3
3
  title
4
4
  }
@@ -1,4 +1,4 @@
1
- fragment PaymentMethodContext on Cart @injectable {
1
+ fragment PaymentMethodContext on Cart {
2
2
  id
3
3
  available_payment_methods {
4
4
  ...AvailablePaymentMethod
@@ -1,4 +1,4 @@
1
- fragment PaymentMethodUpdated on Cart @injectable {
1
+ fragment PaymentMethodUpdated on Cart {
2
2
  id
3
3
  selected_payment_method {
4
4
  ...SelectedPaymentMethod
@@ -1,4 +1,4 @@
1
- fragment SelectedPaymentMethod on SelectedPaymentMethod @injectable {
1
+ fragment SelectedPaymentMethod on SelectedPaymentMethod {
2
2
  code
3
3
  title
4
4
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,112 @@
1
1
  # Change Log
2
2
 
3
+ ## 9.0.0-canary.54
4
+
5
+ ## 8.1.0-canary.53
6
+
7
+ ## 8.1.0-canary.52
8
+
9
+ ## 8.1.0-canary.51
10
+
11
+ ## 8.1.0-canary.50
12
+
13
+ ## 8.1.0-canary.49
14
+
15
+ ## 8.1.0-canary.48
16
+
17
+ ## 8.1.0-canary.47
18
+
19
+ ## 8.1.0-canary.46
20
+
21
+ ## 8.1.0-canary.45
22
+
23
+ ## 8.1.0-canary.44
24
+
25
+ ## 8.1.0-canary.43
26
+
27
+ ## 8.1.0-canary.42
28
+
29
+ ## 8.1.0-canary.41
30
+
31
+ ## 8.1.0-canary.40
32
+
33
+ ## 8.1.0-canary.39
34
+
35
+ ## 8.1.0-canary.38
36
+
37
+ ### Patch Changes
38
+
39
+ - [#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
40
+ ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
41
+
42
+ ## 8.1.0-canary.37
43
+
44
+ ## 8.1.0-canary.36
45
+
46
+ ## 8.1.0-canary.35
47
+
48
+ ## 8.1.0-canary.34
49
+
50
+ ## 8.1.0-canary.33
51
+
52
+ ## 8.1.0-canary.32
53
+
54
+ ## 8.1.0-canary.31
55
+
56
+ ## 8.1.0-canary.30
57
+
58
+ ## 8.1.0-canary.29
59
+
60
+ ## 8.1.0-canary.28
61
+
62
+ ## 8.1.0-canary.27
63
+
64
+ ## 8.1.0-canary.26
65
+
66
+ ## 8.1.0-canary.25
67
+
68
+ ## 8.1.0-canary.24
69
+
70
+ ## 8.1.0-canary.23
71
+
72
+ ## 8.1.0-canary.22
73
+
74
+ ## 8.1.0-canary.21
75
+
76
+ ## 8.1.0-canary.20
77
+
78
+ ## 8.1.0-canary.19
79
+
80
+ ## 8.1.0-canary.18
81
+
82
+ ### Patch Changes
83
+
84
+ - [#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.
85
+ ([@paales](https://github.com/paales))
86
+
87
+ ## 8.1.0-canary.17
88
+
89
+ ## 8.1.0-canary.16
90
+
91
+ ## 8.1.0-canary.15
92
+
93
+ ## 8.1.0-canary.14
94
+
95
+ ### Patch Changes
96
+
97
+ - [`831d7cd`](https://github.com/graphcommerce-org/graphcommerce/commit/831d7cd64a40b7b58748fd9637199b88938e75b7) - Compatibility with Magento 2.4.7
98
+ ([@paales](https://github.com/paales))
99
+
100
+ ## 8.1.0-canary.13
101
+
102
+ ## 8.1.0-canary.12
103
+
104
+ ## 8.1.0-canary.11
105
+
106
+ ## 8.1.0-canary.10
107
+
108
+ ## 8.1.0-canary.9
109
+
3
110
  ## 8.1.0-canary.8
4
111
 
5
112
  ### Patch Changes
@@ -109,7 +109,6 @@ export function PaymentMethodActionCardListForm(props: PaymentMethodActionCardLi
109
109
 
110
110
  return (
111
111
  <>
112
- <FormPersist form={form} name='PaymentMethodActionCardList' />
113
112
  <ActionCardListForm<PaymentOptionsProps & ActionCardProps, FormFields>
114
113
  control={control}
115
114
  name='paymentMethod'
@@ -126,6 +125,7 @@ export function PaymentMethodActionCardListForm(props: PaymentMethodActionCardLi
126
125
  }))}
127
126
  render={PaymentMethodActionCard}
128
127
  />
128
+ <FormPersist form={form} name='PaymentMethodActionCardList' />
129
129
  </>
130
130
  )
131
131
  }
@@ -10,9 +10,10 @@ export function PaymentMethodPlaceOrderNoop(props: PaymentPlaceOrderProps) {
10
10
 
11
11
  const form = useFormGqlMutationCart(PaymentMethodPlaceOrderNoopDocument, {
12
12
  onComplete: async (result) => {
13
- if (!result.data?.placeOrder) return
13
+ if (!result.data?.placeOrder?.order) return
14
14
  await onSuccess(result.data.placeOrder.order.order_number)
15
15
  },
16
+ submitWhileLocked: true,
16
17
  })
17
18
 
18
19
  const { handleSubmit } = form
@@ -90,7 +90,6 @@ export function PaymentMethodToggles(props: PaymentMethodTogglesProps) {
90
90
  ...(Array.isArray(sx) ? sx : [sx]),
91
91
  ]}
92
92
  >
93
- <FormPersist form={form} name='PaymentMethodToggles' />
94
93
  <input type='hidden' {...register('code', { required: true })} required />
95
94
  <FormRow className={classes.root} sx={{ position: 'relative', padding: 0 }}>
96
95
  <ScrollerProvider scrollSnapAlign='center'>
@@ -215,6 +214,7 @@ export function PaymentMethodToggles(props: PaymentMethodTogglesProps) {
215
214
  </Box>
216
215
  </ScrollerProvider>
217
216
  </FormRow>
217
+ <FormPersist form={form} name='PaymentMethodToggles' />
218
218
  </Form>
219
219
  )
220
220
  }
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": "8.1.0-canary.8",
5
+ "version": "9.0.0-canary.54",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,17 +12,17 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.8",
16
- "@graphcommerce/framer-scroller": "^8.1.0-canary.8",
17
- "@graphcommerce/graphql": "^8.1.0-canary.8",
18
- "@graphcommerce/image": "^8.1.0-canary.8",
19
- "@graphcommerce/magento-cart": "^8.1.0-canary.8",
20
- "@graphcommerce/magento-cart-shipping-address": "^8.1.0-canary.8",
21
- "@graphcommerce/magento-store": "^8.1.0-canary.8",
22
- "@graphcommerce/next-ui": "^8.1.0-canary.8",
23
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.8",
24
- "@graphcommerce/react-hook-form": "^8.1.0-canary.8",
25
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.8",
15
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.54",
16
+ "@graphcommerce/framer-scroller": "^9.0.0-canary.54",
17
+ "@graphcommerce/graphql": "^9.0.0-canary.54",
18
+ "@graphcommerce/image": "^9.0.0-canary.54",
19
+ "@graphcommerce/magento-cart": "^9.0.0-canary.54",
20
+ "@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.54",
21
+ "@graphcommerce/magento-store": "^9.0.0-canary.54",
22
+ "@graphcommerce/next-ui": "^9.0.0-canary.54",
23
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.54",
24
+ "@graphcommerce/react-hook-form": "^9.0.0-canary.54",
25
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.54",
26
26
  "@lingui/core": "^4.2.1",
27
27
  "@lingui/macro": "^4.2.1",
28
28
  "@lingui/react": "^4.2.1",