@graphcommerce/magento-payment-braintree 4.13.2-canary.1 → 4.14.0-canary.2
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 +6 -0
- package/package.json +11 -11
- package/plugins/AddBraintreeMethods.tsx +15 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 4.14.0-canary.2
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#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))
|
8
|
+
|
3
9
|
## 4.13.2-canary.1
|
4
10
|
|
5
11
|
## 4.13.2-canary.0
|
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": "4.
|
5
|
+
"version": "4.14.0-canary.2",
|
6
6
|
"sideEffects": false,
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
8
8
|
"eslintConfig": {
|
@@ -13,9 +13,9 @@
|
|
13
13
|
},
|
14
14
|
"devDependencies": {
|
15
15
|
"@graphcommerce/eslint-config-pwa": "^4.1.11",
|
16
|
-
"@graphcommerce/magento-cart-shipping-address": "4.
|
17
|
-
"@graphcommerce/magento-product": "4.
|
18
|
-
"@graphcommerce/magento-product-configurable": "4.
|
16
|
+
"@graphcommerce/magento-cart-shipping-address": "4.14.0-canary.2",
|
17
|
+
"@graphcommerce/magento-product": "4.14.0-canary.2",
|
18
|
+
"@graphcommerce/magento-product-configurable": "4.14.0-canary.2",
|
19
19
|
"@graphcommerce/prettier-config-pwa": "^4.0.7",
|
20
20
|
"@graphcommerce/typescript-config-pwa": "^4.0.5",
|
21
21
|
"@playwright/test": "^1.21.1",
|
@@ -23,13 +23,13 @@
|
|
23
23
|
"type-fest": "^2.12.2"
|
24
24
|
},
|
25
25
|
"dependencies": {
|
26
|
-
"@graphcommerce/graphql": "4.31.0-canary.
|
27
|
-
"@graphcommerce/image": "4.31.0-canary.
|
28
|
-
"@graphcommerce/magento-cart": "4.
|
29
|
-
"@graphcommerce/magento-cart-payment-method": "4.
|
30
|
-
"@graphcommerce/magento-store": "4.
|
31
|
-
"@graphcommerce/next-ui": "4.31.0-canary.
|
32
|
-
"@graphcommerce/react-hook-form": "4.31.0-canary.
|
26
|
+
"@graphcommerce/graphql": "4.31.0-canary.1",
|
27
|
+
"@graphcommerce/image": "4.31.0-canary.1",
|
28
|
+
"@graphcommerce/magento-cart": "4.14.0-canary.2",
|
29
|
+
"@graphcommerce/magento-cart-payment-method": "4.14.0-canary.2",
|
30
|
+
"@graphcommerce/magento-store": "4.14.0-canary.2",
|
31
|
+
"@graphcommerce/next-ui": "4.31.0-canary.1",
|
32
|
+
"@graphcommerce/react-hook-form": "4.31.0-canary.1",
|
33
33
|
"braintree-web": "^3.86.0"
|
34
34
|
},
|
35
35
|
"peerDependencies": {
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { PaymentMethodContextProviderProps } from '@graphcommerce/magento-cart-payment-method'
|
2
|
+
import type { PluginProps } from '@graphcommerce/next-config'
|
3
|
+
import { braintree } from '../methods/braintree'
|
4
|
+
import { braintree_local_payment } from '../methods/braintree_local_payments'
|
5
|
+
|
6
|
+
export const component = 'PaymentMethodContextProvider'
|
7
|
+
export const exported =
|
8
|
+
'@graphcommerce/magento-cart-payment-method/PaymentMethodContext/PaymentMethodContext'
|
9
|
+
|
10
|
+
function AddBrainTreeMethods(props: PluginProps<PaymentMethodContextProviderProps>) {
|
11
|
+
const { modules, Component } = props
|
12
|
+
return <Component {...props} modules={{ ...modules, braintree, braintree_local_payment }} />
|
13
|
+
}
|
14
|
+
|
15
|
+
export const Plugin = AddBrainTreeMethods
|