@graphcommerce/mollie-magento-payment 3.2.8 → 3.2.11
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 +70 -0
- package/components/MollieOptionsIssuer/MollieIdealOptions.tsx +4 -6
- package/components/MollieOptionsIssuer/MollieIssuerOptions.tsx +2 -2
- package/components/MollieOptionsToken/MollieCreditCardOptions.tsx +2 -2
- package/components/MolliePaymentHandler/MolliePaymentHandler.tsx +7 -7
- package/package.json +14 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,75 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.2.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`0363b9671`](https://github.com/graphcommerce-org/graphcommerce/commit/0363b9671db7c2932321d97faf6f1eb385238397), [`3ac90b57c`](https://github.com/graphcommerce-org/graphcommerce/commit/3ac90b57c68b96f9d81771d6664ed9435a28fc1d), [`ed2b67a06`](https://github.com/graphcommerce-org/graphcommerce/commit/ed2b67a0618d9db97e79ed2a8226e0ae12403943)]:
|
|
8
|
+
- @graphcommerce/next-ui@4.8.0
|
|
9
|
+
- @graphcommerce/magento-cart@4.2.15
|
|
10
|
+
- @graphcommerce/magento-cart-payment-method@3.1.11
|
|
11
|
+
- @graphcommerce/magento-store@4.2.4
|
|
12
|
+
|
|
13
|
+
## 3.2.10
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [[`c30893857`](https://github.com/graphcommerce-org/graphcommerce/commit/c3089385791291e812a48c2691a39a2325ee0439)]:
|
|
18
|
+
- @graphcommerce/magento-store@4.2.3
|
|
19
|
+
- @graphcommerce/magento-cart@4.2.14
|
|
20
|
+
- @graphcommerce/magento-cart-payment-method@3.1.10
|
|
21
|
+
|
|
22
|
+
## 3.2.9
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- [#1451](https://github.com/graphcommerce-org/graphcommerce/pull/1451) [`50188e378`](https://github.com/graphcommerce-org/graphcommerce/commit/50188e378b4c77561ebc600958ea11cd114fa61a) Thanks [@paales](https://github.com/paales)! - Loosen node requirement
|
|
27
|
+
|
|
28
|
+
* [#1451](https://github.com/graphcommerce-org/graphcommerce/pull/1451) [`f698ff85d`](https://github.com/graphcommerce-org/graphcommerce/commit/f698ff85df6bb0922288471bb3c81856091b8061) Thanks [@paales](https://github.com/paales)! - Removed all occurences of @lingui/macro and moved to @lingui/macro / @lingui/core in preparation to move to swc.
|
|
29
|
+
|
|
30
|
+
Since we've removed @lingui/macro, all occurences need to be replaced with @lingui/core and @lingui/react.
|
|
31
|
+
|
|
32
|
+
All occurences of `<Trans>` and `t` need to be replaced:
|
|
33
|
+
|
|
34
|
+
```tsx
|
|
35
|
+
import { Trans, t } from '@lingui/macro'
|
|
36
|
+
|
|
37
|
+
function MyComponent() {
|
|
38
|
+
const foo = 'bar'
|
|
39
|
+
return (
|
|
40
|
+
<div aria-label={t`Account ${foo}`}>
|
|
41
|
+
<Trans>My Translation {foo}</Trans>
|
|
42
|
+
</div>
|
|
43
|
+
)
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Needs to be replaced with:
|
|
48
|
+
|
|
49
|
+
```tsx
|
|
50
|
+
import { Trans } from '@lingui/react'
|
|
51
|
+
import { i18n } from '@lingui/core'
|
|
52
|
+
|
|
53
|
+
function MyComponent() {
|
|
54
|
+
const foo = 'bar'
|
|
55
|
+
return (
|
|
56
|
+
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
57
|
+
<Trans key='My Translation {foo}' values={{ foo }}></Trans>
|
|
58
|
+
</div>
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
[More examples for Trans](https://lingui.js.org/ref/macro.html#examples-of-jsx-macros) and [more examples for `t`](https://lingui.js.org/ref/macro.html#examples-of-js-macros)
|
|
64
|
+
|
|
65
|
+
* Updated dependencies [[`50188e378`](https://github.com/graphcommerce-org/graphcommerce/commit/50188e378b4c77561ebc600958ea11cd114fa61a), [`f698ff85d`](https://github.com/graphcommerce-org/graphcommerce/commit/f698ff85df6bb0922288471bb3c81856091b8061)]:
|
|
66
|
+
- @graphcommerce/magento-cart-payment-method@3.1.9
|
|
67
|
+
- @graphcommerce/react-hook-form@3.1.3
|
|
68
|
+
- @graphcommerce/magento-cart@4.2.13
|
|
69
|
+
- @graphcommerce/magento-store@4.2.2
|
|
70
|
+
- @graphcommerce/next-ui@4.7.2
|
|
71
|
+
- @graphcommerce/graphql@3.1.3
|
|
72
|
+
|
|
3
73
|
## 3.2.8
|
|
4
74
|
|
|
5
75
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaymentOptionsProps } from '@graphcommerce/magento-cart-payment-method'
|
|
2
|
-
import { Trans } from '@lingui/
|
|
2
|
+
import { Trans } from '@lingui/react'
|
|
3
3
|
import { Box } from '@mui/material'
|
|
4
4
|
import { MollieIssuerOptions } from './MollieIssuerOptions'
|
|
5
5
|
|
|
@@ -11,15 +11,13 @@ export function MollieIdealOptions(props: PaymentOptionsProps) {
|
|
|
11
11
|
sx={(theme) => ({ typography: 'body2', paddingLeft: theme.spacings.xs, margin: 0 })}
|
|
12
12
|
>
|
|
13
13
|
<li>
|
|
14
|
-
<Trans
|
|
14
|
+
<Trans id='Choose your bank, and place your order.' />
|
|
15
15
|
</li>
|
|
16
16
|
<li>
|
|
17
|
-
<Trans
|
|
17
|
+
<Trans id='Complete the payment on your bank’s website.' />
|
|
18
18
|
</li>
|
|
19
19
|
<li>
|
|
20
|
-
<Trans
|
|
21
|
-
As soon as the payment is completed, you will automatically return to the webshop.
|
|
22
|
-
</Trans>
|
|
20
|
+
<Trans id='As soon as the payment is completed, you will automatically return to the webshop.' />
|
|
23
21
|
</li>
|
|
24
22
|
</Box>
|
|
25
23
|
</MollieIssuerOptions>
|
|
@@ -2,7 +2,7 @@ import { useFormGqlMutationCart } from '@graphcommerce/magento-cart'
|
|
|
2
2
|
import { PaymentOptionsProps } from '@graphcommerce/magento-cart-payment-method'
|
|
3
3
|
import { FormRow, InputCheckmark } from '@graphcommerce/next-ui'
|
|
4
4
|
import { useFormCompose, useFormPersist, useFormValidFields } from '@graphcommerce/react-hook-form'
|
|
5
|
-
import { Trans } from '@lingui/
|
|
5
|
+
import { Trans } from '@lingui/react'
|
|
6
6
|
import { TextField, Typography } from '@mui/material'
|
|
7
7
|
import { SetMolliePaymentMethodIssuerOnCartDocument } from './SetMolliePaymentMethodIssuerOnCart.gql'
|
|
8
8
|
|
|
@@ -32,7 +32,7 @@ export function MollieIssuerOptions(props: MollieIssuerOptionsProps) {
|
|
|
32
32
|
return (
|
|
33
33
|
<Container>
|
|
34
34
|
<Typography variant='h5' component='span'>
|
|
35
|
-
<Trans
|
|
35
|
+
<Trans id='Pay with {title}' values={{ title }} />
|
|
36
36
|
</Typography>
|
|
37
37
|
<form onSubmit={submit} noValidate>
|
|
38
38
|
<FormRow>
|
|
@@ -4,7 +4,7 @@ import { PaymentOptionsProps } from '@graphcommerce/magento-cart-payment-method'
|
|
|
4
4
|
import { StoreConfigDocument } from '@graphcommerce/magento-store'
|
|
5
5
|
import { FormRow } from '@graphcommerce/next-ui'
|
|
6
6
|
import { useFormCompose } from '@graphcommerce/react-hook-form'
|
|
7
|
-
import { Trans } from '@lingui/
|
|
7
|
+
import { Trans } from '@lingui/react'
|
|
8
8
|
import { Typography, Alert } from '@mui/material'
|
|
9
9
|
import Script from 'next/script'
|
|
10
10
|
import React, { useEffect, useState } from 'react'
|
|
@@ -62,7 +62,7 @@ export function MollieCreditCardOptions(props: PaymentOptionsProps) {
|
|
|
62
62
|
<Script src='https://js.mollie.com/v1/mollie.js' onLoad={() => setLoaded(true)} />
|
|
63
63
|
<mollieContext.Provider value={mollie}>
|
|
64
64
|
<Typography variant='h5' component='span'>
|
|
65
|
-
<Trans
|
|
65
|
+
<Trans id='Pay with {title}' values={{ title }} />
|
|
66
66
|
</Typography>
|
|
67
67
|
<form onSubmit={submit} noValidate>
|
|
68
68
|
<FormRow>
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
usePaymentMethodContext,
|
|
7
7
|
} from '@graphcommerce/magento-cart-payment-method'
|
|
8
8
|
import { ErrorSnackbar } from '@graphcommerce/next-ui'
|
|
9
|
-
import { Trans } from '@lingui/
|
|
9
|
+
import { Trans } from '@lingui/react'
|
|
10
10
|
import { Button, Dialog } from '@mui/material'
|
|
11
11
|
import { useRouter } from 'next/router'
|
|
12
12
|
import { useEffect } from 'react'
|
|
@@ -68,7 +68,7 @@ export function MolliePaymentHandler({ code }: PaymentHandlerProps) {
|
|
|
68
68
|
if (paymentStatus)
|
|
69
69
|
return (
|
|
70
70
|
<ErrorSnackbar open>
|
|
71
|
-
<Trans
|
|
71
|
+
<Trans id='Payment failed with status: {paymentStatus}' />
|
|
72
72
|
</ErrorSnackbar>
|
|
73
73
|
)
|
|
74
74
|
|
|
@@ -90,14 +90,14 @@ export function MolliePaymentHandler({ code }: PaymentHandlerProps) {
|
|
|
90
90
|
router.push('/')
|
|
91
91
|
}}
|
|
92
92
|
>
|
|
93
|
-
<Trans
|
|
93
|
+
<Trans id='Reset Cart and Return to home' />
|
|
94
94
|
</Button>
|
|
95
95
|
}
|
|
96
96
|
>
|
|
97
|
-
<Trans
|
|
98
|
-
If you’ve successfully paid your order, the order <
|
|
99
|
-
|
|
100
|
-
|
|
97
|
+
<Trans
|
|
98
|
+
id='If you’ve successfully paid your order, the order <0>will</0> come through, but there is a communication error with the website.'
|
|
99
|
+
components={{ 0: <strong /> }}
|
|
100
|
+
/>
|
|
101
101
|
</ApolloCartErrorFullPage>
|
|
102
102
|
</Dialog>
|
|
103
103
|
)
|
package/package.json
CHANGED
|
@@ -2,11 +2,8 @@
|
|
|
2
2
|
"name": "@graphcommerce/mollie-magento-payment",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "3.2.
|
|
5
|
+
"version": "3.2.11",
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"engines": {
|
|
8
|
-
"node": "14.x"
|
|
9
|
-
},
|
|
10
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
11
8
|
"eslintConfig": {
|
|
12
9
|
"extends": "@graphcommerce/eslint-config-pwa",
|
|
@@ -15,27 +12,28 @@
|
|
|
15
12
|
}
|
|
16
13
|
},
|
|
17
14
|
"devDependencies": {
|
|
18
|
-
"@graphcommerce/eslint-config-pwa": "^4.1.
|
|
19
|
-
"@graphcommerce/magento-cart-shipping-address": "3.0.
|
|
20
|
-
"@graphcommerce/magento-product": "4.3.
|
|
21
|
-
"@graphcommerce/magento-product-configurable": "4.1.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.1.7",
|
|
16
|
+
"@graphcommerce/magento-cart-shipping-address": "3.0.18",
|
|
17
|
+
"@graphcommerce/magento-product": "4.3.5",
|
|
18
|
+
"@graphcommerce/magento-product-configurable": "4.1.5",
|
|
22
19
|
"@graphcommerce/prettier-config-pwa": "^4.0.6",
|
|
23
|
-
"@graphcommerce/typescript-config-pwa": "^4.0.
|
|
20
|
+
"@graphcommerce/typescript-config-pwa": "^4.0.3",
|
|
24
21
|
"@playwright/test": "^1.21.1",
|
|
25
22
|
"type-fest": "^2.12.2"
|
|
26
23
|
},
|
|
27
24
|
"dependencies": {
|
|
28
|
-
"@graphcommerce/graphql": "3.1.
|
|
25
|
+
"@graphcommerce/graphql": "3.1.3",
|
|
29
26
|
"@graphcommerce/graphql-mesh": "4.1.3",
|
|
30
27
|
"@graphcommerce/image": "3.1.5",
|
|
31
|
-
"@graphcommerce/magento-cart": "4.2.
|
|
32
|
-
"@graphcommerce/magento-cart-payment-method": "3.1.
|
|
33
|
-
"@graphcommerce/magento-store": "4.2.
|
|
34
|
-
"@graphcommerce/next-ui": "4.
|
|
35
|
-
"@graphcommerce/react-hook-form": "3.1.
|
|
28
|
+
"@graphcommerce/magento-cart": "4.2.15",
|
|
29
|
+
"@graphcommerce/magento-cart-payment-method": "3.1.11",
|
|
30
|
+
"@graphcommerce/magento-store": "4.2.4",
|
|
31
|
+
"@graphcommerce/next-ui": "4.8.0",
|
|
32
|
+
"@graphcommerce/react-hook-form": "3.1.3"
|
|
36
33
|
},
|
|
37
34
|
"peerDependencies": {
|
|
38
|
-
"@lingui/
|
|
35
|
+
"@lingui/react": "^3.13.2",
|
|
36
|
+
"@lingui/core": "^3.13.2",
|
|
39
37
|
"@mui/material": "5.5.3",
|
|
40
38
|
"framer-motion": "^6.2.4",
|
|
41
39
|
"next": "12.1.2",
|