@graphcommerce/magento-payment-braintree 9.0.0-canary.58 → 9.0.0-canary.60
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +8 -0
- package/package.json +14 -14
- package/plugins/AddBraintreeMethods.tsx +8 -6
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 9.0.0-canary.60
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#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))
|
8
|
+
|
9
|
+
## 9.0.0-canary.59
|
10
|
+
|
3
11
|
## 9.0.0-canary.58
|
4
12
|
|
5
13
|
## 9.0.0-canary.57
|
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.60",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -18,19 +18,19 @@
|
|
18
18
|
"braintree-web": "^3.103.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.60",
|
22
|
+
"@graphcommerce/graphql": "^9.0.0-canary.60",
|
23
|
+
"@graphcommerce/image": "^9.0.0-canary.60",
|
24
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.60",
|
25
|
+
"@graphcommerce/magento-cart-payment-method": "^9.0.0-canary.60",
|
26
|
+
"@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.60",
|
27
|
+
"@graphcommerce/magento-product": "^9.0.0-canary.60",
|
28
|
+
"@graphcommerce/magento-product-configurable": "^9.0.0-canary.60",
|
29
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.60",
|
30
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.60",
|
31
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.60",
|
32
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.60",
|
33
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.60",
|
34
34
|
"@lingui/core": "^4.2.1",
|
35
35
|
"@lingui/macro": "^4.2.1",
|
36
36
|
"@lingui/react": "^4.2.1",
|
@@ -1,13 +1,17 @@
|
|
1
1
|
import { PaymentMethodContextProviderProps } from '@graphcommerce/magento-cart-payment-method'
|
2
|
-
import type { PluginProps } from '@graphcommerce/next-config'
|
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'
|
5
5
|
import { braintree_paypal } from '../methods/braintree_paypal'
|
6
6
|
|
7
|
-
export const
|
8
|
-
|
7
|
+
export const config: PluginConfig = {
|
8
|
+
type: 'component',
|
9
|
+
module: '@graphcommerce/magento-cart-payment-method',
|
10
|
+
}
|
9
11
|
|
10
|
-
function
|
12
|
+
export function PaymentMethodContextProvider(
|
13
|
+
props: PluginProps<PaymentMethodContextProviderProps>,
|
14
|
+
) {
|
11
15
|
const { modules, Prev, ...rest } = props
|
12
16
|
return (
|
13
17
|
<Prev
|
@@ -21,5 +25,3 @@ function AddBrainTreeMethods(props: PluginProps<PaymentMethodContextProviderProp
|
|
21
25
|
/>
|
22
26
|
)
|
23
27
|
}
|
24
|
-
|
25
|
-
export const Plugin = AddBrainTreeMethods
|