@graphcommerce/magento-payment-braintree 9.0.0-canary.59 → 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 CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 9.0.0-canary.59
4
10
 
5
11
  ## 9.0.0-canary.58
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.59",
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.59",
22
- "@graphcommerce/graphql": "^9.0.0-canary.59",
23
- "@graphcommerce/image": "^9.0.0-canary.59",
24
- "@graphcommerce/magento-cart": "^9.0.0-canary.59",
25
- "@graphcommerce/magento-cart-payment-method": "^9.0.0-canary.59",
26
- "@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.59",
27
- "@graphcommerce/magento-product": "^9.0.0-canary.59",
28
- "@graphcommerce/magento-product-configurable": "^9.0.0-canary.59",
29
- "@graphcommerce/magento-store": "^9.0.0-canary.59",
30
- "@graphcommerce/next-ui": "^9.0.0-canary.59",
31
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.59",
32
- "@graphcommerce/react-hook-form": "^9.0.0-canary.59",
33
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.59",
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 component = 'PaymentMethodContextProvider'
8
- export const exported = '@graphcommerce/magento-cart-payment-method'
7
+ export const config: PluginConfig = {
8
+ type: 'component',
9
+ module: '@graphcommerce/magento-cart-payment-method',
10
+ }
9
11
 
10
- function AddBrainTreeMethods(props: PluginProps<PaymentMethodContextProviderProps>) {
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