@graphcommerce/magento-payment-braintree 9.0.4-canary.8 → 9.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
@@ -1,22 +1,18 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
-
## 9.0.4
|
3
|
+
## 9.0.4
|
4
4
|
|
5
|
-
## 9.0.
|
5
|
+
## 9.0.3
|
6
6
|
|
7
|
-
## 9.0.
|
7
|
+
## 9.0.3-canary.0
|
8
8
|
|
9
|
-
## 9.0.
|
9
|
+
## 9.0.2
|
10
10
|
|
11
|
-
## 9.0.
|
11
|
+
## 9.0.2-canary.0
|
12
12
|
|
13
|
-
## 9.0.
|
13
|
+
## 9.0.1
|
14
14
|
|
15
|
-
## 9.0.
|
16
|
-
|
17
|
-
## 9.0.4-canary.1
|
18
|
-
|
19
|
-
## 9.0.4-canary.0
|
15
|
+
## 9.0.1-canary.1
|
20
16
|
|
21
17
|
## 9.0.0
|
22
18
|
|
@@ -120,7 +120,6 @@ export function PaymentMethodOptions(props: PaymentOptionsProps) {
|
|
120
120
|
code,
|
121
121
|
}
|
122
122
|
} catch (e) {
|
123
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
124
123
|
if (isBraintreeError(e)) unlock({ payment_id: null })
|
125
124
|
throw e
|
126
125
|
}
|
@@ -133,10 +132,7 @@ export function PaymentMethodOptions(props: PaymentOptionsProps) {
|
|
133
132
|
/** To use an external Pay button we register the current form to be handled there as well. */
|
134
133
|
useFormCompose({ form, step, submit, key: `PaymentMethodOptions_${code}` })
|
135
134
|
|
136
|
-
/**
|
137
|
-
* This is the form that the user can fill in. In this case we don't wat the user to fill in
|
138
|
-
* anything.
|
139
|
-
*/
|
135
|
+
/** This is the form that the user can fill in. In this case we don't wat the user to fill in anything. */
|
140
136
|
return (
|
141
137
|
<form onSubmit={submit}>
|
142
138
|
<input type='hidden' {...register('code')} />
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { PaymentModule } from '@graphcommerce/magento-cart-payment-method'
|
2
2
|
import { PaymentMethodPlaceOrderNoop } from '@graphcommerce/magento-cart-payment-method'
|
3
|
-
import { expandMethods } from './expandMethods'
|
4
3
|
import { PaymentHandler } from './PaymentHandler'
|
5
4
|
import { PaymentMethodOptions } from './PaymentMethodOptions'
|
5
|
+
import { expandMethods } from './expandMethods'
|
6
6
|
|
7
7
|
export const braintree_local_payment: PaymentModule = {
|
8
8
|
PaymentOptions: PaymentMethodOptions,
|
@@ -14,7 +14,9 @@ import { BraintreeLocalPaymentsCartDocument } from '../braintree_local_payments/
|
|
14
14
|
export function PaymentMethodOptions(props: PaymentOptionsProps) {
|
15
15
|
const paypal = useBraintreePaypal()
|
16
16
|
|
17
|
-
|
17
|
+
useEffect(() => {})
|
18
|
+
|
19
|
+
const { code, step, child } = props
|
18
20
|
const { data: cartData } = useCartQuery(BraintreeLocalPaymentsCartDocument)
|
19
21
|
const [lockState, lock, unlock] = useBraintreeCartLock()
|
20
22
|
const { selectedMethod } = usePaymentMethodContext()
|
@@ -74,10 +76,7 @@ export function PaymentMethodOptions(props: PaymentOptionsProps) {
|
|
74
76
|
/** To use an external Pay button we register the current form to be handled there as well. */
|
75
77
|
useFormCompose({ form, step, submit, key: `PaymentMethodOptions_${code}` })
|
76
78
|
|
77
|
-
/**
|
78
|
-
* This is the form that the user can fill in. In this case we don't wat the user to fill in
|
79
|
-
* anything.
|
80
|
-
*/
|
79
|
+
/** This is the form that the user can fill in. In this case we don't wat the user to fill in anything. */
|
81
80
|
return (
|
82
81
|
<form onSubmit={submit}>
|
83
82
|
<input type='hidden' {...register('code')} />
|
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.4
|
5
|
+
"version": "9.0.4",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -18,19 +18,19 @@
|
|
18
18
|
"braintree-web": "^3.112.1"
|
19
19
|
},
|
20
20
|
"peerDependencies": {
|
21
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.4
|
22
|
-
"@graphcommerce/graphql": "^9.0.4
|
23
|
-
"@graphcommerce/image": "^9.0.4
|
24
|
-
"@graphcommerce/magento-cart": "^9.0.4
|
25
|
-
"@graphcommerce/magento-cart-payment-method": "^9.0.4
|
26
|
-
"@graphcommerce/magento-cart-shipping-address": "^9.0.4
|
27
|
-
"@graphcommerce/magento-product": "^9.0.4
|
28
|
-
"@graphcommerce/magento-product-configurable": "^9.0.4
|
29
|
-
"@graphcommerce/magento-store": "^9.0.4
|
30
|
-
"@graphcommerce/next-ui": "^9.0.4
|
31
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.4
|
32
|
-
"@graphcommerce/react-hook-form": "^9.0.4
|
33
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.4
|
21
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.4",
|
22
|
+
"@graphcommerce/graphql": "^9.0.4",
|
23
|
+
"@graphcommerce/image": "^9.0.4",
|
24
|
+
"@graphcommerce/magento-cart": "^9.0.4",
|
25
|
+
"@graphcommerce/magento-cart-payment-method": "^9.0.4",
|
26
|
+
"@graphcommerce/magento-cart-shipping-address": "^9.0.4",
|
27
|
+
"@graphcommerce/magento-product": "^9.0.4",
|
28
|
+
"@graphcommerce/magento-product-configurable": "^9.0.4",
|
29
|
+
"@graphcommerce/magento-store": "^9.0.4",
|
30
|
+
"@graphcommerce/next-ui": "^9.0.4",
|
31
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.4",
|
32
|
+
"@graphcommerce/react-hook-form": "^9.0.4",
|
33
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.4",
|
34
34
|
"@lingui/core": "^4.2.1",
|
35
35
|
"@lingui/macro": "^4.2.1",
|
36
36
|
"@lingui/react": "^4.2.1",
|