@graphcommerce/magento-payment-paypal 9.0.0-canary.59 → 9.0.0-canary.60

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,5 +1,11 @@
1
1
  # @graphcommerce/magento-payment-paypal
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-paypal",
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": {
@@ -12,16 +12,16 @@
12
12
  }
13
13
  },
14
14
  "peerDependencies": {
15
- "@graphcommerce/ecommerce-ui": "^9.0.0-canary.59",
16
- "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.59",
17
- "@graphcommerce/graphql": "^9.0.0-canary.59",
18
- "@graphcommerce/image": "^9.0.0-canary.59",
19
- "@graphcommerce/magento-cart": "^9.0.0-canary.59",
20
- "@graphcommerce/magento-cart-payment-method": "^9.0.0-canary.59",
21
- "@graphcommerce/magento-store": "^9.0.0-canary.59",
22
- "@graphcommerce/next-ui": "^9.0.0-canary.59",
23
- "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.59",
24
- "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.59",
15
+ "@graphcommerce/ecommerce-ui": "^9.0.0-canary.60",
16
+ "@graphcommerce/eslint-config-pwa": "^9.0.0-canary.60",
17
+ "@graphcommerce/graphql": "^9.0.0-canary.60",
18
+ "@graphcommerce/image": "^9.0.0-canary.60",
19
+ "@graphcommerce/magento-cart": "^9.0.0-canary.60",
20
+ "@graphcommerce/magento-cart-payment-method": "^9.0.0-canary.60",
21
+ "@graphcommerce/magento-store": "^9.0.0-canary.60",
22
+ "@graphcommerce/next-ui": "^9.0.0-canary.60",
23
+ "@graphcommerce/prettier-config-pwa": "^9.0.0-canary.60",
24
+ "@graphcommerce/typescript-config-pwa": "^9.0.0-canary.60",
25
25
  "@lingui/core": "^4.2.1",
26
26
  "@lingui/macro": "^4.2.1",
27
27
  "@lingui/react": "^4.2.1",
@@ -2,13 +2,15 @@ import {
2
2
  PaymentMethodContextProviderProps,
3
3
  PaymentMethodOptionsNoop,
4
4
  } from '@graphcommerce/magento-cart-payment-method'
5
- import type { PluginProps } from '@graphcommerce/next-config'
5
+ import type { PluginConfig, PluginProps } from '@graphcommerce/next-config'
6
6
  import { PayPalExpressActionCard } from '../components/PayPalPaymentActionCard/PayPalPaymentActionCard'
7
7
  import { PayPalPaymentHandler } from '../components/PayPalPaymentHandler/PayPalPaymentHandler'
8
8
  import { PayPalPaymentPlaceOrder } from '../components/PayPalPaymentPlaceOrder/PayPalPaymentPlaceOrder'
9
9
 
10
- export const component = 'PaymentMethodContextProvider'
11
- export const exported = '@graphcommerce/magento-cart-payment-method'
10
+ export const config: PluginConfig = {
11
+ type: 'component',
12
+ module: '@graphcommerce/magento-cart-payment-method',
13
+ }
12
14
 
13
15
  const paypal_express = {
14
16
  PaymentOptions: PaymentMethodOptionsNoop,
@@ -17,9 +19,9 @@ const paypal_express = {
17
19
  PaymentPlaceOrder: PayPalPaymentPlaceOrder,
18
20
  }
19
21
 
20
- function AddPaypalMethods(props: PluginProps<PaymentMethodContextProviderProps>) {
22
+ export function PaymentMethodContextProvider(
23
+ props: PluginProps<PaymentMethodContextProviderProps>,
24
+ ) {
21
25
  const { modules, Prev, ...rest } = props
22
26
  return <Prev {...rest} modules={{ ...modules, paypal_express }} />
23
27
  }
24
-
25
- export const Plugin = AddPaypalMethods