@graphcommerce/mollie-magento-payment 3.3.0 → 3.3.1

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,14 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1519](https://github.com/graphcommerce-org/graphcommerce/pull/1519) [`64c7b6b45`](https://github.com/graphcommerce-org/graphcommerce/commit/64c7b6b4595a13110453f98680ffd69f27f2c656) Thanks [@paales](https://github.com/paales)! - mollie_meta should not be in general package
8
+
9
+ - Updated dependencies [[`64c7b6b45`](https://github.com/graphcommerce-org/graphcommerce/commit/64c7b6b4595a13110453f98680ffd69f27f2c656)]:
10
+ - @graphcommerce/magento-cart-payment-method@3.3.1
11
+
3
12
  ## 3.3.0
4
13
 
5
14
  ### Minor Changes
@@ -1,10 +1,11 @@
1
1
  import { Image } from '@graphcommerce/image'
2
2
  import { PaymentMethodActionCardProps } from '@graphcommerce/magento-cart-payment-method'
3
3
  import { ActionCard, useIconSvgSize } from '@graphcommerce/next-ui'
4
- import idealIcon from './ideal-logo.svg'
5
4
 
6
- export function MollieActionCard(props: PaymentMethodActionCardProps) {
7
- const { mollie_meta } = props
5
+ type MollieActionCardProps = PaymentMethodActionCardProps & { icon: any }
6
+
7
+ export function MollieActionCard(props: MollieActionCardProps) {
8
+ const { mollie_meta, icon } = props
8
9
  const iconSize = useIconSvgSize('large')
9
10
 
10
11
  return (
@@ -12,12 +13,7 @@ export function MollieActionCard(props: PaymentMethodActionCardProps) {
12
13
  {...props}
13
14
  image={
14
15
  mollie_meta?.image && (
15
- <Image
16
- layout='fixed'
17
- sx={{ width: iconSize, height: iconSize }}
18
- unoptimized
19
- src={idealIcon}
20
- />
16
+ <Image layout='fixed' sx={{ width: iconSize, height: iconSize }} unoptimized src={icon} />
21
17
  )
22
18
  }
23
19
  />
@@ -3,10 +3,11 @@ import { MollieActionCard } from '../components/MollieActionCard/MollieIdealActi
3
3
  import { MollieIdealOptions } from '../components/MollieOptionsIssuer/MollieIdealOptions'
4
4
  import { MolliePaymentHandler } from '../components/MolliePaymentHandler/MolliePaymentHandler'
5
5
  import { MolliePlaceOrder } from '../components/MolliePlaceOrder/MolliePlaceOrder'
6
+ import idealIcon from '../icons/ideal.svg'
6
7
 
7
8
  export const mollie_methods_ideal: PaymentModule = {
8
9
  PaymentOptions: MollieIdealOptions,
9
10
  PaymentPlaceOrder: MolliePlaceOrder,
10
11
  PaymentHandler: MolliePaymentHandler,
11
- PaymentActionCard: MollieActionCard,
12
+ PaymentActionCard: (props) => <MollieActionCard {...props} icon={idealIcon} />,
12
13
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/mollie-magento-payment",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.3.0",
5
+ "version": "3.3.1",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -26,7 +26,7 @@
26
26
  "@graphcommerce/graphql-mesh": "4.1.4",
27
27
  "@graphcommerce/image": "3.1.7",
28
28
  "@graphcommerce/magento-cart": "4.4.4",
29
- "@graphcommerce/magento-cart-payment-method": "3.3.0",
29
+ "@graphcommerce/magento-cart-payment-method": "3.3.1",
30
30
  "@graphcommerce/magento-store": "4.2.11",
31
31
  "@graphcommerce/next-ui": "4.10.0",
32
32
  "@graphcommerce/react-hook-form": "3.2.2"