@graphcommerce/mollie-magento-payment 8.1.0-canary.9 → 9.0.0-canary.101
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,201 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.101
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.100
|
|
6
|
+
|
|
7
|
+
## 9.0.0-canary.99
|
|
8
|
+
|
|
9
|
+
## 9.0.0-canary.98
|
|
10
|
+
|
|
11
|
+
## 9.0.0-canary.97
|
|
12
|
+
|
|
13
|
+
## 9.0.0-canary.96
|
|
14
|
+
|
|
15
|
+
## 9.0.0-canary.95
|
|
16
|
+
|
|
17
|
+
## 9.0.0-canary.94
|
|
18
|
+
|
|
19
|
+
## 9.0.0-canary.93
|
|
20
|
+
|
|
21
|
+
## 9.0.0-canary.92
|
|
22
|
+
|
|
23
|
+
## 9.0.0-canary.91
|
|
24
|
+
|
|
25
|
+
## 9.0.0-canary.90
|
|
26
|
+
|
|
27
|
+
## 9.0.0-canary.89
|
|
28
|
+
|
|
29
|
+
## 9.0.0-canary.88
|
|
30
|
+
|
|
31
|
+
## 9.0.0-canary.87
|
|
32
|
+
|
|
33
|
+
## 9.0.0-canary.86
|
|
34
|
+
|
|
35
|
+
## 9.0.0-canary.85
|
|
36
|
+
|
|
37
|
+
## 9.0.0-canary.84
|
|
38
|
+
|
|
39
|
+
## 9.0.0-canary.83
|
|
40
|
+
|
|
41
|
+
## 9.0.0-canary.82
|
|
42
|
+
|
|
43
|
+
## 9.0.0-canary.81
|
|
44
|
+
|
|
45
|
+
## 9.0.0-canary.80
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- [#2341](https://github.com/graphcommerce-org/graphcommerce/pull/2341) [`86ecf9a`](https://github.com/graphcommerce-org/graphcommerce/commit/86ecf9a1bb4c48ceabd4944d81483bcd5b990350) - Payment method will now throw an error in onComplete to handle obscure errors ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
50
|
+
|
|
51
|
+
## 9.0.0-canary.79
|
|
52
|
+
|
|
53
|
+
## 9.0.0-canary.78
|
|
54
|
+
|
|
55
|
+
## 9.0.0-canary.77
|
|
56
|
+
|
|
57
|
+
## 9.0.0-canary.76
|
|
58
|
+
|
|
59
|
+
## 9.0.0-canary.75
|
|
60
|
+
|
|
61
|
+
## 9.0.0-canary.74
|
|
62
|
+
|
|
63
|
+
## 9.0.0-canary.73
|
|
64
|
+
|
|
65
|
+
## 9.0.0-canary.72
|
|
66
|
+
|
|
67
|
+
## 9.0.0-canary.71
|
|
68
|
+
|
|
69
|
+
## 9.0.0-canary.70
|
|
70
|
+
|
|
71
|
+
## 9.0.0-canary.69
|
|
72
|
+
|
|
73
|
+
## 9.0.0-canary.68
|
|
74
|
+
|
|
75
|
+
## 9.0.0-canary.67
|
|
76
|
+
|
|
77
|
+
## 9.0.0-canary.66
|
|
78
|
+
|
|
79
|
+
## 9.0.0-canary.65
|
|
80
|
+
|
|
81
|
+
## 9.0.0-canary.64
|
|
82
|
+
|
|
83
|
+
## 9.0.0-canary.63
|
|
84
|
+
|
|
85
|
+
## 9.0.0-canary.62
|
|
86
|
+
|
|
87
|
+
## 9.0.0-canary.61
|
|
88
|
+
|
|
89
|
+
## 9.0.0-canary.60
|
|
90
|
+
|
|
91
|
+
### Patch Changes
|
|
92
|
+
|
|
93
|
+
- [#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))
|
|
94
|
+
|
|
95
|
+
## 9.0.0-canary.59
|
|
96
|
+
|
|
97
|
+
## 9.0.0-canary.58
|
|
98
|
+
|
|
99
|
+
## 9.0.0-canary.57
|
|
100
|
+
|
|
101
|
+
## 9.0.0-canary.56
|
|
102
|
+
|
|
103
|
+
## 9.0.0-canary.55
|
|
104
|
+
|
|
105
|
+
## 9.0.0-canary.54
|
|
106
|
+
|
|
107
|
+
## 8.1.0-canary.53
|
|
108
|
+
|
|
109
|
+
## 8.1.0-canary.52
|
|
110
|
+
|
|
111
|
+
## 8.1.0-canary.51
|
|
112
|
+
|
|
113
|
+
## 8.1.0-canary.50
|
|
114
|
+
|
|
115
|
+
## 8.1.0-canary.49
|
|
116
|
+
|
|
117
|
+
## 8.1.0-canary.48
|
|
118
|
+
|
|
119
|
+
## 8.1.0-canary.47
|
|
120
|
+
|
|
121
|
+
## 8.1.0-canary.46
|
|
122
|
+
|
|
123
|
+
## 8.1.0-canary.45
|
|
124
|
+
|
|
125
|
+
## 8.1.0-canary.44
|
|
126
|
+
|
|
127
|
+
## 8.1.0-canary.43
|
|
128
|
+
|
|
129
|
+
## 8.1.0-canary.42
|
|
130
|
+
|
|
131
|
+
## 8.1.0-canary.41
|
|
132
|
+
|
|
133
|
+
## 8.1.0-canary.40
|
|
134
|
+
|
|
135
|
+
## 8.1.0-canary.39
|
|
136
|
+
|
|
137
|
+
## 8.1.0-canary.38
|
|
138
|
+
|
|
139
|
+
### Patch Changes
|
|
140
|
+
|
|
141
|
+
- [#2305](https://github.com/graphcommerce-org/graphcommerce/pull/2305) [`77e8297`](https://github.com/graphcommerce-org/graphcommerce/commit/77e82976816994336c616208a651cb18ce9ea270) - Fix bug with persist not applying saved changes by moving <FromPersist/> below the form components ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
142
|
+
|
|
143
|
+
## 8.1.0-canary.37
|
|
144
|
+
|
|
145
|
+
## 8.1.0-canary.36
|
|
146
|
+
|
|
147
|
+
## 8.1.0-canary.35
|
|
148
|
+
|
|
149
|
+
## 8.1.0-canary.34
|
|
150
|
+
|
|
151
|
+
## 8.1.0-canary.33
|
|
152
|
+
|
|
153
|
+
## 8.1.0-canary.32
|
|
154
|
+
|
|
155
|
+
## 8.1.0-canary.31
|
|
156
|
+
|
|
157
|
+
## 8.1.0-canary.30
|
|
158
|
+
|
|
159
|
+
## 8.1.0-canary.29
|
|
160
|
+
|
|
161
|
+
## 8.1.0-canary.28
|
|
162
|
+
|
|
163
|
+
## 8.1.0-canary.27
|
|
164
|
+
|
|
165
|
+
## 8.1.0-canary.26
|
|
166
|
+
|
|
167
|
+
## 8.1.0-canary.25
|
|
168
|
+
|
|
169
|
+
## 8.1.0-canary.24
|
|
170
|
+
|
|
171
|
+
## 8.1.0-canary.23
|
|
172
|
+
|
|
173
|
+
## 8.1.0-canary.22
|
|
174
|
+
|
|
175
|
+
## 8.1.0-canary.21
|
|
176
|
+
|
|
177
|
+
## 8.1.0-canary.20
|
|
178
|
+
|
|
179
|
+
## 8.1.0-canary.19
|
|
180
|
+
|
|
181
|
+
## 8.1.0-canary.18
|
|
182
|
+
|
|
183
|
+
## 8.1.0-canary.17
|
|
184
|
+
|
|
185
|
+
## 8.1.0-canary.16
|
|
186
|
+
|
|
187
|
+
## 8.1.0-canary.15
|
|
188
|
+
|
|
189
|
+
## 8.1.0-canary.14
|
|
190
|
+
|
|
191
|
+
## 8.1.0-canary.13
|
|
192
|
+
|
|
193
|
+
## 8.1.0-canary.12
|
|
194
|
+
|
|
195
|
+
## 8.1.0-canary.11
|
|
196
|
+
|
|
197
|
+
## 8.1.0-canary.10
|
|
198
|
+
|
|
3
199
|
## 8.1.0-canary.9
|
|
4
200
|
|
|
5
201
|
## 8.1.0-canary.8
|
|
@@ -18,8 +214,7 @@
|
|
|
18
214
|
|
|
19
215
|
### Patch Changes
|
|
20
216
|
|
|
21
|
-
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`530076e`](https://github.com/graphcommerce-org/graphcommerce/commit/530076e3664703cb8b577b7fcf1998a420819f60) - Moved all usages of useFormPersist to the <FormPersist/> component to prevent rerenders.
|
|
22
|
-
([@FrankHarland](https://github.com/FrankHarland))
|
|
217
|
+
- [#2234](https://github.com/graphcommerce-org/graphcommerce/pull/2234) [`530076e`](https://github.com/graphcommerce-org/graphcommerce/commit/530076e3664703cb8b577b7fcf1998a420819f60) - Moved all usages of useFormPersist to the <FormPersist/> component to prevent rerenders. ([@FrankHarland](https://github.com/FrankHarland))
|
|
23
218
|
|
|
24
219
|
## 8.0.6-canary.1
|
|
25
220
|
|
|
@@ -97,11 +292,9 @@
|
|
|
97
292
|
|
|
98
293
|
### Patch Changes
|
|
99
294
|
|
|
100
|
-
- [#2092](https://github.com/graphcommerce-org/graphcommerce/pull/2092) [`1edd198`](https://github.com/graphcommerce-org/graphcommerce/commit/1edd198dc6b102be423a5285d9fe4437b69ca165) - An error message would be shown when a payment was sucessfull instead of when an error occured.
|
|
101
|
-
([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
295
|
+
- [#2092](https://github.com/graphcommerce-org/graphcommerce/pull/2092) [`1edd198`](https://github.com/graphcommerce-org/graphcommerce/commit/1edd198dc6b102be423a5285d9fe4437b69ca165) - An error message would be shown when a payment was sucessfull instead of when an error occured. ([@Giovanni-Schroevers](https://github.com/Giovanni-Schroevers))
|
|
102
296
|
|
|
103
|
-
- [#2124](https://github.com/graphcommerce-org/graphcommerce/pull/2124) [`3bd80b8`](https://github.com/graphcommerce-org/graphcommerce/commit/3bd80b88351963ae95aaa97b2cfa25f8e526a128) - Fixed the issue where a guest returned to a empty cart after a canceled payment with Mollie
|
|
104
|
-
([@mikekeehnen](https://github.com/mikekeehnen))
|
|
297
|
+
- [#2124](https://github.com/graphcommerce-org/graphcommerce/pull/2124) [`3bd80b8`](https://github.com/graphcommerce-org/graphcommerce/commit/3bd80b88351963ae95aaa97b2cfa25f8e526a128) - Fixed the issue where a guest returned to a empty cart after a canceled payment with Mollie ([@mikekeehnen](https://github.com/mikekeehnen))
|
|
105
298
|
|
|
106
299
|
## 8.0.0-canary.100
|
|
107
300
|
|
|
@@ -1450,31 +1643,31 @@
|
|
|
1450
1643
|
All occurences of `<Trans>` and `t` need to be replaced:
|
|
1451
1644
|
|
|
1452
1645
|
```tsx
|
|
1453
|
-
import { Trans, t } from
|
|
1646
|
+
import { Trans, t } from '@lingui/macro'
|
|
1454
1647
|
|
|
1455
1648
|
function MyComponent() {
|
|
1456
|
-
const foo =
|
|
1649
|
+
const foo = 'bar'
|
|
1457
1650
|
return (
|
|
1458
1651
|
<div aria-label={t`Account ${foo}`}>
|
|
1459
1652
|
<Trans>My Translation {foo}</Trans>
|
|
1460
1653
|
</div>
|
|
1461
|
-
)
|
|
1654
|
+
)
|
|
1462
1655
|
}
|
|
1463
1656
|
```
|
|
1464
1657
|
|
|
1465
1658
|
Needs to be replaced with:
|
|
1466
1659
|
|
|
1467
1660
|
```tsx
|
|
1468
|
-
import { Trans } from
|
|
1469
|
-
import { i18n } from
|
|
1661
|
+
import { Trans } from '@lingui/react'
|
|
1662
|
+
import { i18n } from '@lingui/core'
|
|
1470
1663
|
|
|
1471
1664
|
function MyComponent() {
|
|
1472
|
-
const foo =
|
|
1665
|
+
const foo = 'bar'
|
|
1473
1666
|
return (
|
|
1474
1667
|
<div aria-label={i18n._(/* i18n */ `Account {foo}`, { foo })}>
|
|
1475
|
-
<Trans key=
|
|
1668
|
+
<Trans key='My Translation {foo}' values={{ foo }}></Trans>
|
|
1476
1669
|
</div>
|
|
1477
|
-
)
|
|
1670
|
+
)
|
|
1478
1671
|
}
|
|
1479
1672
|
```
|
|
1480
1673
|
|
|
@@ -26,13 +26,6 @@ export function MollieIssuerOptions(props: MollieIssuerOptionsProps) {
|
|
|
26
26
|
return (
|
|
27
27
|
<>
|
|
28
28
|
<form onSubmit={submit} noValidate>
|
|
29
|
-
<FormPersist
|
|
30
|
-
// Since the issuer isn't retrievable from Magento we persist this value.
|
|
31
|
-
form={form}
|
|
32
|
-
name={`PaymentMethodOptions_${code}`}
|
|
33
|
-
persist={['issuer']}
|
|
34
|
-
storage='localStorage'
|
|
35
|
-
/>
|
|
36
29
|
<FormRow>
|
|
37
30
|
<SelectElement
|
|
38
31
|
control={control}
|
|
@@ -53,6 +46,13 @@ export function MollieIssuerOptions(props: MollieIssuerOptionsProps) {
|
|
|
53
46
|
</FormRow>
|
|
54
47
|
</form>
|
|
55
48
|
{children}
|
|
49
|
+
<FormPersist
|
|
50
|
+
// Since the issuer isn't retrievable from Magento we persist this value.
|
|
51
|
+
form={form}
|
|
52
|
+
name={`PaymentMethodOptions_${code}`}
|
|
53
|
+
persist={['issuer']}
|
|
54
|
+
storage='localStorage'
|
|
55
|
+
/>
|
|
56
56
|
</>
|
|
57
57
|
)
|
|
58
58
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useFormGqlMutationCart } from '@graphcommerce/magento-cart'
|
|
2
2
|
import { PaymentPlaceOrderProps } from '@graphcommerce/magento-cart-payment-method'
|
|
3
3
|
import { useFormCompose } from '@graphcommerce/react-hook-form'
|
|
4
|
+
import { t } from '@lingui/macro'
|
|
4
5
|
import { useRouter } from 'next/router'
|
|
5
6
|
import { useCartLockWithToken } from '../../hooks/useCartLockWithToken'
|
|
6
7
|
import { MolliePlaceOrderDocument } from './MolliePlaceOrder.gql'
|
|
@@ -37,12 +38,9 @@ export function MolliePlaceOrder(props: PaymentPlaceOrderProps) {
|
|
|
37
38
|
|
|
38
39
|
await push(mollie_redirect_url)
|
|
39
40
|
} else {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
message:
|
|
44
|
-
'An error occurred while processing your payment. Please contact the store owner',
|
|
45
|
-
})
|
|
41
|
+
throw Error(
|
|
42
|
+
t`An error occurred while processing your payment. Please contact the store owner`,
|
|
43
|
+
)
|
|
46
44
|
}
|
|
47
45
|
},
|
|
48
46
|
})
|
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": "
|
|
5
|
+
"version": "9.0.0-canary.101",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,21 +12,21 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
|
-
"@graphcommerce/ecommerce-ui": "^
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "^
|
|
17
|
-
"@graphcommerce/graphql": "^
|
|
18
|
-
"@graphcommerce/graphql-mesh": "^
|
|
19
|
-
"@graphcommerce/image": "^
|
|
20
|
-
"@graphcommerce/magento-cart": "^
|
|
21
|
-
"@graphcommerce/magento-cart-payment-method": "^
|
|
22
|
-
"@graphcommerce/magento-cart-shipping-address": "^
|
|
23
|
-
"@graphcommerce/magento-product": "^
|
|
24
|
-
"@graphcommerce/magento-product-configurable": "^
|
|
25
|
-
"@graphcommerce/magento-store": "^
|
|
26
|
-
"@graphcommerce/next-ui": "^
|
|
27
|
-
"@graphcommerce/prettier-config-pwa": "^
|
|
28
|
-
"@graphcommerce/react-hook-form": "^
|
|
29
|
-
"@graphcommerce/typescript-config-pwa": "^
|
|
15
|
+
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.101",
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.101",
|
|
17
|
+
"@graphcommerce/graphql": "^9.0.0-canary.101",
|
|
18
|
+
"@graphcommerce/graphql-mesh": "^9.0.0-canary.101",
|
|
19
|
+
"@graphcommerce/image": "^9.0.0-canary.101",
|
|
20
|
+
"@graphcommerce/magento-cart": "^9.0.0-canary.101",
|
|
21
|
+
"@graphcommerce/magento-cart-payment-method": "^9.0.0-canary.101",
|
|
22
|
+
"@graphcommerce/magento-cart-shipping-address": "^9.0.0-canary.101",
|
|
23
|
+
"@graphcommerce/magento-product": "^9.0.0-canary.101",
|
|
24
|
+
"@graphcommerce/magento-product-configurable": "^9.0.0-canary.101",
|
|
25
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.101",
|
|
26
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.101",
|
|
27
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.101",
|
|
28
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.101",
|
|
29
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.101",
|
|
30
30
|
"@lingui/core": "^4.2.1",
|
|
31
31
|
"@lingui/macro": "^4.2.1",
|
|
32
32
|
"@lingui/react": "^4.2.1",
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import type { 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 { molliepayments } from '../methods'
|
|
4
4
|
|
|
5
|
-
export const
|
|
6
|
-
|
|
5
|
+
export const config: PluginConfig = {
|
|
6
|
+
type: 'component',
|
|
7
|
+
module: '@graphcommerce/magento-cart-payment-method',
|
|
8
|
+
}
|
|
7
9
|
|
|
8
|
-
function
|
|
10
|
+
export function PaymentMethodContextProvider(
|
|
11
|
+
props: PluginProps<PaymentMethodContextProviderProps>,
|
|
12
|
+
) {
|
|
9
13
|
const { modules, Prev, ...rest } = props
|
|
10
14
|
return <Prev {...rest} modules={{ ...modules, ...molliepayments }} />
|
|
11
15
|
}
|
|
12
|
-
export const Plugin = AddMollieMethods
|