@graphcommerce/mollie-magento-payment 3.0.3 → 3.0.6
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 +72 -87
- package/components/MollieOptionsIssuer/MollieIdealOptions.tsx +2 -3
- package/components/MollieOptionsIssuer/MollieIssuerOptions.tsx +4 -3
- package/components/MollieOptionsToken/MollieCreditCardOptions.tsx +2 -2
- package/components/MollieOptionsToken/MollieField.tsx +3 -3
- package/components/MolliePaymentHandler/MolliePaymentHandler.tsx +2 -2
- package/components/MolliePaymentToggle/MolliePaymentToggle.tsx +5 -2
- package/components/MolliePlaceOrder/MolliePlaceOrder.tsx +1 -1
- package/hooks/useMolliePaymentTokenHandler.ts +1 -2
- package/index.ts +1 -2
- package/methods/mollie_methods_creditcard.ts +4 -4
- package/methods/mollie_methods_ideal.ts +5 -5
- package/methods/mollie_methods_klarnapaylater.ts +3 -3
- package/methods/mollie_methods_paypal.ts +3 -3
- package/next-env.d.ts +4 -0
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,21 +1,52 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1353](https://github.com/graphcommerce-org/graphcommerce/pull/1353) [`0e5ee7ba8`](https://github.com/graphcommerce-org/graphcommerce/commit/0e5ee7ba89698e5e711001e846ed182528060cba) Thanks [@paales](https://github.com/paales)! - Eslint: enable rules that were previously disabled and make fixes
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`49a2d6617`](https://github.com/graphcommerce-org/graphcommerce/commit/49a2d661712e1787fba46c6195f7b559189e23d9), [`f67da3cfb`](https://github.com/graphcommerce-org/graphcommerce/commit/f67da3cfbe2dcf5ea23519d088c5aa0074029182), [`218766869`](https://github.com/graphcommerce-org/graphcommerce/commit/218766869f7468c067a590857c942f3819f8add4), [`0e5ee7ba8`](https://github.com/graphcommerce-org/graphcommerce/commit/0e5ee7ba89698e5e711001e846ed182528060cba), [`829b8690b`](https://github.com/graphcommerce-org/graphcommerce/commit/829b8690bc5d0a46e596299e4120e9837a9f179c), [`829b8690b`](https://github.com/graphcommerce-org/graphcommerce/commit/829b8690bc5d0a46e596299e4120e9837a9f179c)]:
|
|
10
|
+
- @graphcommerce/next-ui@4.4.0
|
|
11
|
+
- @graphcommerce/magento-cart@4.2.1
|
|
12
|
+
|
|
13
|
+
## 3.0.5
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655) Thanks [@paales](https://github.com/paales)! - All default exports are now named exports internally and all `index.tsx` are renamed to the component name.
|
|
18
|
+
|
|
19
|
+
* [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef) Thanks [@paales](https://github.com/paales)! - upgrade dependencies
|
|
20
|
+
|
|
21
|
+
* Updated dependencies [[`3d63b39f7`](https://github.com/ho-nl/m2-pwa/commit/3d63b39f7e330d1827a32dba782667d7b21adaba), [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655), [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef)]:
|
|
22
|
+
- @graphcommerce/next-ui@4.2.4
|
|
23
|
+
- @graphcommerce/graphql@3.0.4
|
|
24
|
+
- @graphcommerce/image@3.1.1
|
|
25
|
+
- @graphcommerce/magento-cart@4.1.4
|
|
26
|
+
- @graphcommerce/magento-cart-payment-method@3.0.5
|
|
27
|
+
- @graphcommerce/magento-store@4.1.2
|
|
28
|
+
- @graphcommerce/react-hook-form@3.0.4
|
|
29
|
+
|
|
30
|
+
## 3.0.4
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- [#1292](https://github.com/ho-nl/m2-pwa/pull/1292) [`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0) Thanks [@paales](https://github.com/paales)! - Renamed SvgIcon to IconSvg to prevent collisions with MUI
|
|
35
|
+
|
|
36
|
+
- Updated dependencies [[`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0), [`990df655b`](https://github.com/ho-nl/m2-pwa/commit/990df655b73b469718d6cb5837ee65dfe2ad6a1d), [`63f9b56eb`](https://github.com/ho-nl/m2-pwa/commit/63f9b56eb68ba790567ff1427e599fd2c3c8f1ee)]:
|
|
37
|
+
- @graphcommerce/magento-cart@4.1.3
|
|
38
|
+
- @graphcommerce/magento-cart-payment-method@3.0.4
|
|
39
|
+
- @graphcommerce/next-ui@4.2.0
|
|
40
|
+
|
|
3
41
|
## 3.0.3
|
|
4
42
|
|
|
5
43
|
### Patch Changes
|
|
6
44
|
|
|
7
|
-
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
|
|
8
|
-
Thanks [@paales](https://github.com/paales)! - made packages public
|
|
45
|
+
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
|
|
9
46
|
|
|
10
|
-
* [#1278](https://github.com/ho-nl/m2-pwa/pull/1278)
|
|
11
|
-
[`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20)
|
|
12
|
-
Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
|
|
47
|
+
* [#1278](https://github.com/ho-nl/m2-pwa/pull/1278) [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
|
|
13
48
|
|
|
14
|
-
* Updated dependencies
|
|
15
|
-
[[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
|
|
16
|
-
[`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
|
|
17
|
-
[`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
|
|
18
|
-
[`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
|
|
49
|
+
* Updated dependencies [[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96), [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20), [`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d), [`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
|
|
19
50
|
- @graphcommerce/graphql@3.0.3
|
|
20
51
|
- @graphcommerce/image@3.1.0
|
|
21
52
|
- @graphcommerce/magento-cart@4.1.2
|
|
@@ -28,30 +59,13 @@
|
|
|
28
59
|
|
|
29
60
|
### Patch Changes
|
|
30
61
|
|
|
31
|
-
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
* [
|
|
38
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
|
|
39
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to
|
|
40
|
-
[NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
|
|
41
|
-
implementing
|
|
42
|
-
[On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
|
|
43
|
-
soon.
|
|
44
|
-
|
|
45
|
-
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
|
|
46
|
-
frontend to be able to revalidate pages manually.
|
|
47
|
-
|
|
48
|
-
* Updated dependencies
|
|
49
|
-
[[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
|
|
50
|
-
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
|
|
51
|
-
[`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
|
|
52
|
-
[`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
|
|
53
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
|
|
54
|
-
[`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
|
|
62
|
+
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2) Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from `dependencies` to `peerDependencies`. The result of this is that there will be significantly less duplicate packages in the node_modules folders.
|
|
63
|
+
|
|
64
|
+
* [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d) Thanks [@paales](https://github.com/paales)! - Upgraded to [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be implementing [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta) soon.
|
|
65
|
+
|
|
66
|
+
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the frontend to be able to revalidate pages manually.
|
|
67
|
+
|
|
68
|
+
* Updated dependencies [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7), [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2), [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b), [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275), [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d), [`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
|
|
55
69
|
- @graphcommerce/magento-cart@4.1.1
|
|
56
70
|
- @graphcommerce/magento-cart-payment-method@3.0.2
|
|
57
71
|
- @graphcommerce/next-ui@4.1.1
|
|
@@ -64,11 +78,8 @@
|
|
|
64
78
|
|
|
65
79
|
### Patch Changes
|
|
66
80
|
|
|
67
|
-
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
|
|
68
|
-
|
|
69
|
-
so that the packages link to back to the website and repository
|
|
70
|
-
- Updated dependencies
|
|
71
|
-
[[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
81
|
+
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514) Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files, so that the packages link to back to the website and repository
|
|
82
|
+
- Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
72
83
|
- @graphcommerce/graphql@3.0.1
|
|
73
84
|
- @graphcommerce/image@3.0.1
|
|
74
85
|
- @graphcommerce/magento-cart@4.0.1
|
|
@@ -81,14 +92,11 @@
|
|
|
81
92
|
|
|
82
93
|
### Major Changes
|
|
83
94
|
|
|
84
|
-
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
|
|
85
|
-
[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
|
|
86
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
95
|
+
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258) [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05) Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
87
96
|
|
|
88
97
|
### Patch Changes
|
|
89
98
|
|
|
90
|
-
- Updated dependencies
|
|
91
|
-
[[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
99
|
+
- Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
92
100
|
- @graphcommerce/graphql@3.0.0
|
|
93
101
|
- @graphcommerce/image@3.0.0
|
|
94
102
|
- @graphcommerce/magento-cart@4.0.0
|
|
@@ -97,68 +105,55 @@
|
|
|
97
105
|
- @graphcommerce/next-ui@4.0.0
|
|
98
106
|
- @graphcommerce/react-hook-form@3.0.0
|
|
99
107
|
|
|
100
|
-
All notable changes to this project will be documented in this file. See
|
|
101
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
108
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
102
109
|
|
|
103
110
|
## [2.106.24](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/mollie-magento-payment@2.106.23...@graphcommerce/mollie-magento-payment@2.106.24) (2021-12-20)
|
|
104
111
|
|
|
105
112
|
### Bug Fixes
|
|
106
113
|
|
|
107
|
-
- animations would run on background page, make sure animations are not running when page is not
|
|
108
|
-
active
|
|
109
|
-
([2fcf4b8](https://github.com/ho-nl/m2-pwa/commit/2fcf4b8a853108147477e3a67c7ea202abb2842f))
|
|
114
|
+
- animations would run on background page, make sure animations are not running when page is not active ([2fcf4b8](https://github.com/ho-nl/m2-pwa/commit/2fcf4b8a853108147477e3a67c7ea202abb2842f))
|
|
110
115
|
|
|
111
116
|
# [2.106.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/mollie-magento-payment@2.105.32...@graphcommerce/mollie-magento-payment@2.106.0) (2021-11-12)
|
|
112
117
|
|
|
113
118
|
### Features
|
|
114
119
|
|
|
115
|
-
- added tons of translations
|
|
116
|
-
([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
120
|
+
- added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
117
121
|
|
|
118
122
|
## [2.105.9](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/mollie-magento-payment@2.105.8...@graphcommerce/mollie-magento-payment@2.105.9) (2021-11-02)
|
|
119
123
|
|
|
120
124
|
### Bug Fixes
|
|
121
125
|
|
|
122
|
-
- input labels
|
|
123
|
-
|
|
124
|
-
- overlapping checkmark icon
|
|
125
|
-
([b4da61a](https://github.com/ho-nl/m2-pwa/commit/b4da61ae33ab058a56f0f32c2874a2e77d77d01d))
|
|
126
|
+
- input labels ([ba46c9a](https://github.com/ho-nl/m2-pwa/commit/ba46c9a17b3b460daab5015df39ac9ae66858df4))
|
|
127
|
+
- overlapping checkmark icon ([b4da61a](https://github.com/ho-nl/m2-pwa/commit/b4da61ae33ab058a56f0f32c2874a2e77d77d01d))
|
|
126
128
|
|
|
127
129
|
# [2.105.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/mollie-magento-payment@2.104.33...@graphcommerce/mollie-magento-payment@2.105.0) (2021-10-27)
|
|
128
130
|
|
|
129
131
|
### Features
|
|
130
132
|
|
|
131
|
-
- **nextjs:** upgraded to nextjs 12
|
|
132
|
-
([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
133
|
+
- **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
133
134
|
|
|
134
135
|
## [2.104.13](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/mollie-magento-payment@2.104.12...@graphcommerce/mollie-magento-payment@2.104.13) (2021-10-08)
|
|
135
136
|
|
|
136
137
|
### Bug Fixes
|
|
137
138
|
|
|
138
|
-
- **mollie:** make sure we're redirected to the success page
|
|
139
|
-
([316d2b2](https://github.com/ho-nl/m2-pwa/commit/316d2b2a99189f093e74db98521c27e8e7267dd4))
|
|
139
|
+
- **mollie:** make sure we're redirected to the success page ([316d2b2](https://github.com/ho-nl/m2-pwa/commit/316d2b2a99189f093e74db98521c27e8e7267dd4))
|
|
140
140
|
|
|
141
141
|
## [2.104.11](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/mollie-magento-payment@2.104.10...@graphcommerce/mollie-magento-payment@2.104.11) (2021-10-07)
|
|
142
142
|
|
|
143
143
|
### Bug Fixes
|
|
144
144
|
|
|
145
|
-
- make sure if no payment method is filled in we get an error shown
|
|
146
|
-
([a203e57](https://github.com/ho-nl/m2-pwa/commit/a203e570caad0732427a178e8e8b10b4a15d676b))
|
|
145
|
+
- make sure if no payment method is filled in we get an error shown ([a203e57](https://github.com/ho-nl/m2-pwa/commit/a203e570caad0732427a178e8e8b10b4a15d676b))
|
|
147
146
|
|
|
148
147
|
# 2.104.0 (2021-09-29)
|
|
149
148
|
|
|
150
149
|
### Bug Fixes
|
|
151
150
|
|
|
152
|
-
- make sure mollie only gets build optionally
|
|
153
|
-
|
|
154
|
-
- make sure the mollie module doesn't start with magento- to prevent building from node moduels
|
|
155
|
-
([ed406b9](https://github.com/ho-nl/m2-pwa/commit/ed406b9f56bd8cb5df0463cc50e4b1e9a728d4ca))
|
|
151
|
+
- make sure mollie only gets build optionally ([e5e2347](https://github.com/ho-nl/m2-pwa/commit/e5e23475e170dc2fc0c13103dfb8fbdb9009715f))
|
|
152
|
+
- make sure the mollie module doesn't start with magento- to prevent building from node moduels ([ed406b9](https://github.com/ho-nl/m2-pwa/commit/ed406b9f56bd8cb5df0463cc50e4b1e9a728d4ca))
|
|
156
153
|
|
|
157
154
|
### Features
|
|
158
155
|
|
|
159
|
-
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
|
|
160
|
-
[@reachdigital](https://github.com/reachdigital)
|
|
161
|
-
([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
156
|
+
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of [@reachdigital](https://github.com/reachdigital) ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
162
157
|
|
|
163
158
|
## [2.103.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-mollie@2.103.0...@graphcommerce/magento-payment-mollie@2.103.1) (2021-09-27)
|
|
164
159
|
|
|
@@ -168,58 +163,48 @@ All notable changes to this project will be documented in this file. See
|
|
|
168
163
|
|
|
169
164
|
### Bug Fixes
|
|
170
165
|
|
|
171
|
-
- make sure mollie only gets build optionally
|
|
172
|
-
([e5e2347](https://github.com/ho-nl/m2-pwa/commit/e5e23475e170dc2fc0c13103dfb8fbdb9009715f))
|
|
166
|
+
- make sure mollie only gets build optionally ([e5e2347](https://github.com/ho-nl/m2-pwa/commit/e5e23475e170dc2fc0c13103dfb8fbdb9009715f))
|
|
173
167
|
|
|
174
168
|
### Features
|
|
175
169
|
|
|
176
|
-
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
|
|
177
|
-
[@reachdigital](https://github.com/reachdigital)
|
|
178
|
-
([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
170
|
+
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of [@reachdigital](https://github.com/reachdigital) ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
179
171
|
|
|
180
172
|
# Change Log
|
|
181
173
|
|
|
182
|
-
All notable changes to this project will be documented in this file. See
|
|
183
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
174
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
184
175
|
|
|
185
176
|
## [2.102.18](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-mollie@2.102.17...@graphcommerce/magento-payment-mollie@2.102.18) (2021-09-23)
|
|
186
177
|
|
|
187
178
|
### Bug Fixes
|
|
188
179
|
|
|
189
|
-
- make sure mollie only gets build optionally
|
|
190
|
-
([e5e2347](https://github.com/ho-nl/m2-pwa/commit/e5e23475e170dc2fc0c13103dfb8fbdb9009715f))
|
|
180
|
+
- make sure mollie only gets build optionally ([e5e2347](https://github.com/ho-nl/m2-pwa/commit/e5e23475e170dc2fc0c13103dfb8fbdb9009715f))
|
|
191
181
|
|
|
192
182
|
# [2.102.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-mollie@2.101.10...@graphcommerce/magento-payment-mollie@2.102.0) (2021-08-12)
|
|
193
183
|
|
|
194
184
|
### Features
|
|
195
185
|
|
|
196
|
-
- upgraded to nextjs 11
|
|
197
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
186
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
198
187
|
|
|
199
188
|
## [2.101.9](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-mollie@2.101.8...@graphcommerce/magento-payment-mollie@2.101.9) (2021-08-09)
|
|
200
189
|
|
|
201
190
|
### Reverts
|
|
202
191
|
|
|
203
|
-
- Revert "chore: upgrade @apollo/client"
|
|
204
|
-
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
192
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
205
193
|
|
|
206
194
|
## [2.101.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-mollie@2.101.2...@graphcommerce/magento-payment-mollie@2.101.3) (2021-07-29)
|
|
207
195
|
|
|
208
196
|
### Bug Fixes
|
|
209
197
|
|
|
210
|
-
- paymentDone removed in favor of a more simple clearCart method
|
|
211
|
-
([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
|
|
198
|
+
- paymentDone removed in favor of a more simple clearCart method ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
|
|
212
199
|
|
|
213
200
|
# [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-mollie@2.100.19...@graphcommerce/magento-payment-mollie@2.101.0) (2021-07-26)
|
|
214
201
|
|
|
215
202
|
### Features
|
|
216
203
|
|
|
217
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
218
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
204
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
219
205
|
|
|
220
206
|
## [2.100.11](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-payment-mollie@2.100.10...@graphcommerce/magento-payment-mollie@2.100.11) (2021-07-20)
|
|
221
207
|
|
|
222
208
|
### Bug Fixes
|
|
223
209
|
|
|
224
|
-
- ignore md files from triggering version updates
|
|
225
|
-
([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
210
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { PaymentOptionsProps } from '@graphcommerce/magento-cart-payment-method'
|
|
2
|
-
import
|
|
3
|
-
import MollieIssuerOptions from './MollieIssuerOptions'
|
|
2
|
+
import { MollieIssuerOptions } from './MollieIssuerOptions'
|
|
4
3
|
|
|
5
|
-
export
|
|
4
|
+
export function MollieIdealOptions(props: PaymentOptionsProps) {
|
|
6
5
|
return <MollieIssuerOptions label='Choose your bank' {...props} />
|
|
7
6
|
}
|
|
@@ -12,7 +12,7 @@ const compName = 'MollieIssuerOptions' as const
|
|
|
12
12
|
const parts = ['root', 'list'] as const
|
|
13
13
|
const { classes } = extendableComponent(compName, parts)
|
|
14
14
|
|
|
15
|
-
export
|
|
15
|
+
export function MollieIssuerOptions(props: MollieIssuerOptionsProps) {
|
|
16
16
|
const { mollie_available_issuers = [] } = props
|
|
17
17
|
const { code, step, Container, label, title = '' } = props
|
|
18
18
|
|
|
@@ -49,6 +49,7 @@ export default function MollieIssuerOptions(props: MollieIssuerOptionsProps) {
|
|
|
49
49
|
endAdornment: <InputCheckmark show={valid.issuer} select />,
|
|
50
50
|
}}
|
|
51
51
|
>
|
|
52
|
+
{/* eslint-disable-next-line jsx-a11y/control-has-associated-label */}
|
|
52
53
|
<option value='' />
|
|
53
54
|
{/* <MenuItem value='' /> */}
|
|
54
55
|
{mollie_available_issuers?.map((issuer) => {
|
|
@@ -62,7 +63,7 @@ export default function MollieIssuerOptions(props: MollieIssuerOptionsProps) {
|
|
|
62
63
|
// return (
|
|
63
64
|
// <MenuItem key={issuer.code} value={issuer.code}>
|
|
64
65
|
// <ListItemIcon>
|
|
65
|
-
// <
|
|
66
|
+
// <IconSvg src={issuer.svg} alt={issuer.name} size='small' />
|
|
66
67
|
// </ListItemIcon>
|
|
67
68
|
// <Typography variant='inherit'>{issuer.name}</Typography>
|
|
68
69
|
// </MenuItem>
|
|
@@ -83,7 +84,7 @@ export default function MollieIssuerOptions(props: MollieIssuerOptionsProps) {
|
|
|
83
84
|
<Trans>Choose your bank, and place your order.</Trans>
|
|
84
85
|
</li>
|
|
85
86
|
<li>
|
|
86
|
-
<Trans>Complete the payment on your bank
|
|
87
|
+
<Trans>Complete the payment on your bank’s website.</Trans>
|
|
87
88
|
</li>
|
|
88
89
|
<li>
|
|
89
90
|
<Trans>
|
|
@@ -9,11 +9,11 @@ import { Typography, Alert } from '@mui/material'
|
|
|
9
9
|
import Script from 'next/script'
|
|
10
10
|
import React, { useEffect, useState } from 'react'
|
|
11
11
|
import { Mollie } from '../../Mollie'
|
|
12
|
-
import MollieField from './MollieField'
|
|
12
|
+
import { MollieField } from './MollieField'
|
|
13
13
|
import { SetMolliePaymentMethodTokenOnCartDocument } from './SetMolliePaymentMethodTokenOnCart.gql'
|
|
14
14
|
import { mollieContext, MollieContext } from './mollieContext'
|
|
15
15
|
|
|
16
|
-
export
|
|
16
|
+
export function MollieCreditCardOptions(props: PaymentOptionsProps) {
|
|
17
17
|
const { code, step, Container, title = '' } = props
|
|
18
18
|
const [loaded, setLoaded] = useState<boolean>(false)
|
|
19
19
|
const [mollie, setMollie] = useState<MollieContext>(undefined)
|
|
@@ -14,7 +14,7 @@ import { useMollieContext } from './mollieContext'
|
|
|
14
14
|
type MollieFieldContext = [ComponentFieldState, Dispatch<SetStateAction<ComponentFieldState>>]
|
|
15
15
|
const mollieFieldContext = React.createContext(undefined as unknown as MollieFieldContext)
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
function InputComponent(props) {
|
|
18
18
|
const { component, inputRef, ...other } = props
|
|
19
19
|
const Component = component as typeof IframeField
|
|
20
20
|
return <Component {...other} ref={inputRef} />
|
|
@@ -25,7 +25,7 @@ type IframeFieldProps = Omit<InputBaseComponentProps, 'onChange'> & {
|
|
|
25
25
|
onChange: (event: { target: { name: string; value: string } }) => void
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
const IframeField = React.forwardRef<
|
|
28
|
+
const IframeField = React.forwardRef<HTMLInputElement, IframeFieldProps>((props, forwardedRef) => {
|
|
29
29
|
const { name, onChange, onFocus, onBlur, ...otherProps } = props
|
|
30
30
|
const internalRef = useRef<HTMLDivElement>(null)
|
|
31
31
|
const forkRef = forwardedRef
|
|
@@ -98,7 +98,7 @@ type MollieFieldProps = {
|
|
|
98
98
|
isSubmitted?: boolean
|
|
99
99
|
} & TextFieldProps
|
|
100
100
|
|
|
101
|
-
export
|
|
101
|
+
export function MollieField(props: MollieFieldProps) {
|
|
102
102
|
const { isSubmitted = false, label, ...fieldProps } = props
|
|
103
103
|
|
|
104
104
|
const [state, setState] = useState<ComponentFieldState>({
|
|
@@ -4,7 +4,7 @@ import { useRouter } from 'next/router'
|
|
|
4
4
|
import React from 'react'
|
|
5
5
|
import { useMolliePaymentTokenHandler } from '../../hooks/useMolliePaymentTokenHandler'
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export function MolliePaymentHandler() {
|
|
8
8
|
const { error } = useMolliePaymentTokenHandler()
|
|
9
9
|
const clear = useClearCurrentCartId()
|
|
10
10
|
const router = useRouter()
|
|
@@ -27,7 +27,7 @@ export default function MolliePaymentHandler() {
|
|
|
27
27
|
</Button>
|
|
28
28
|
}
|
|
29
29
|
>
|
|
30
|
-
If you
|
|
30
|
+
If you’ve successfully paid your order, the order <strong>will</strong> come through, but
|
|
31
31
|
there is a communication error with the website.
|
|
32
32
|
</ApolloCartErrorFullPage>
|
|
33
33
|
</Dialog>
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { Image } from '@graphcommerce/image'
|
|
1
2
|
import { PaymentToggleProps } from '@graphcommerce/magento-cart-payment-method'
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
+
export function PaymentToggle(props: PaymentToggleProps) {
|
|
4
5
|
const { mollie_meta, title } = props
|
|
5
6
|
|
|
6
7
|
return (
|
|
7
8
|
<>
|
|
8
|
-
{mollie_meta?.image &&
|
|
9
|
+
{mollie_meta?.image && (
|
|
10
|
+
<Image layout='fixed' src={mollie_meta?.image} unoptimized alt={title} />
|
|
11
|
+
)}
|
|
9
12
|
|
|
10
13
|
{title}
|
|
11
14
|
</>
|
|
@@ -9,7 +9,7 @@ import { useRouter } from 'next/router'
|
|
|
9
9
|
import { useEffect } from 'react'
|
|
10
10
|
import { MolliePlaceOrderDocument } from './MolliePlaceOrder.gql'
|
|
11
11
|
|
|
12
|
-
export
|
|
12
|
+
export function MolliePlaceOrder(props: PaymentPlaceOrderProps) {
|
|
13
13
|
const { step, code } = props
|
|
14
14
|
const router = useRouter()
|
|
15
15
|
const cartId = useCurrentCartId()
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { useMutation } from '@graphcommerce/graphql'
|
|
2
|
-
import { PaymentStatusEnum } from '@graphcommerce/graphql'
|
|
1
|
+
import { useMutation , PaymentStatusEnum } from '@graphcommerce/graphql'
|
|
3
2
|
import { useClearCurrentCartId, useCurrentCartId } from '@graphcommerce/magento-cart'
|
|
4
3
|
import { useCartLock, usePaymentMethodContext } from '@graphcommerce/magento-cart-payment-method'
|
|
5
4
|
import { useRouter } from 'next/router'
|
package/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { PaymentModule } from '@graphcommerce/magento-cart-payment-method'
|
|
2
|
-
import MollieCreditCardOptions from '../components/MollieOptionsToken/MollieCreditCardOptions'
|
|
3
|
-
import
|
|
4
|
-
import MolliePlaceOrder from '../components/MolliePlaceOrder/MolliePlaceOrder'
|
|
2
|
+
import { MollieCreditCardOptions } from '../components/MollieOptionsToken/MollieCreditCardOptions'
|
|
3
|
+
import { PaymentToggle } from '../components/MolliePaymentToggle/MolliePaymentToggle'
|
|
4
|
+
import { MolliePlaceOrder } from '../components/MolliePlaceOrder/MolliePlaceOrder'
|
|
5
5
|
|
|
6
6
|
export const mollie_methods_creditcard: PaymentModule = {
|
|
7
|
-
PaymentToggle
|
|
7
|
+
PaymentToggle,
|
|
8
8
|
PaymentOptions: MollieCreditCardOptions,
|
|
9
9
|
PaymentPlaceOrder: MolliePlaceOrder,
|
|
10
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { PaymentModule } from '@graphcommerce/magento-cart-payment-method'
|
|
2
|
-
import MollieIdealOptions from '../components/MollieOptionsIssuer/MollieIdealOptions'
|
|
3
|
-
import MolliePaymentHandler from '../components/MolliePaymentHandler/MolliePaymentHandler'
|
|
4
|
-
import
|
|
5
|
-
import MolliePlaceOrder from '../components/MolliePlaceOrder/MolliePlaceOrder'
|
|
2
|
+
import { MollieIdealOptions } from '../components/MollieOptionsIssuer/MollieIdealOptions'
|
|
3
|
+
import { MolliePaymentHandler } from '../components/MolliePaymentHandler/MolliePaymentHandler'
|
|
4
|
+
import { PaymentToggle } from '../components/MolliePaymentToggle/MolliePaymentToggle'
|
|
5
|
+
import { MolliePlaceOrder } from '../components/MolliePlaceOrder/MolliePlaceOrder'
|
|
6
6
|
|
|
7
7
|
export const mollie_methods_ideal: PaymentModule = {
|
|
8
|
-
PaymentToggle
|
|
8
|
+
PaymentToggle,
|
|
9
9
|
PaymentOptions: MollieIdealOptions,
|
|
10
10
|
PaymentPlaceOrder: MolliePlaceOrder,
|
|
11
11
|
PaymentHandler: MolliePaymentHandler,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PaymentMethodOptionsNoop, PaymentModule } from '@graphcommerce/magento-cart-payment-method'
|
|
2
|
-
import
|
|
3
|
-
import MolliePlaceOrder from '../components/MolliePlaceOrder/MolliePlaceOrder'
|
|
2
|
+
import { PaymentToggle } from '../components/MolliePaymentToggle/MolliePaymentToggle'
|
|
3
|
+
import { MolliePlaceOrder } from '../components/MolliePlaceOrder/MolliePlaceOrder'
|
|
4
4
|
|
|
5
5
|
export const mollie_methods_klarnapaylater: PaymentModule = {
|
|
6
|
-
PaymentToggle
|
|
6
|
+
PaymentToggle,
|
|
7
7
|
PaymentOptions: PaymentMethodOptionsNoop,
|
|
8
8
|
PaymentPlaceOrder: MolliePlaceOrder,
|
|
9
9
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { PaymentMethodOptionsNoop, PaymentModule } from '@graphcommerce/magento-cart-payment-method'
|
|
2
|
-
import
|
|
3
|
-
import MolliePlaceOrder from '../components/MolliePlaceOrder/MolliePlaceOrder'
|
|
2
|
+
import { PaymentToggle } from '../components/MolliePaymentToggle/MolliePaymentToggle'
|
|
3
|
+
import { MolliePlaceOrder } from '../components/MolliePlaceOrder/MolliePlaceOrder'
|
|
4
4
|
|
|
5
5
|
export const mollie_methods_paypal: PaymentModule = {
|
|
6
|
-
PaymentToggle
|
|
6
|
+
PaymentToggle,
|
|
7
7
|
PaymentOptions: PaymentMethodOptionsNoop,
|
|
8
8
|
PaymentPlaceOrder: MolliePlaceOrder,
|
|
9
9
|
}
|
package/next-env.d.ts
ADDED
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.0.
|
|
5
|
+
"version": "3.0.6",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": "14.x"
|
|
@@ -15,22 +15,22 @@
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@graphcommerce/eslint-config-pwa": "^4.
|
|
19
|
-
"@graphcommerce/magento-cart-shipping-address": "^3.0.
|
|
20
|
-
"@graphcommerce/magento-product": "^4.
|
|
21
|
-
"@graphcommerce/magento-product-configurable": "^4.0.
|
|
22
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
18
|
+
"@graphcommerce/eslint-config-pwa": "^4.1.2",
|
|
19
|
+
"@graphcommerce/magento-cart-shipping-address": "^3.0.4",
|
|
20
|
+
"@graphcommerce/magento-product": "^4.1.2",
|
|
21
|
+
"@graphcommerce/magento-product-configurable": "^4.0.6",
|
|
22
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.3",
|
|
23
23
|
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
24
|
-
"@playwright/test": "^1.19.
|
|
24
|
+
"@playwright/test": "^1.19.2"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@graphcommerce/graphql": "^3.0.
|
|
28
|
-
"@graphcommerce/image": "^3.1.
|
|
29
|
-
"@graphcommerce/magento-cart": "^4.1
|
|
30
|
-
"@graphcommerce/magento-cart-payment-method": "^3.0.
|
|
31
|
-
"@graphcommerce/magento-store": "^4.
|
|
32
|
-
"@graphcommerce/next-ui": "^4.
|
|
33
|
-
"@graphcommerce/react-hook-form": "^3.0.
|
|
27
|
+
"@graphcommerce/graphql": "^3.0.4",
|
|
28
|
+
"@graphcommerce/image": "^3.1.1",
|
|
29
|
+
"@graphcommerce/magento-cart": "^4.2.1",
|
|
30
|
+
"@graphcommerce/magento-cart-payment-method": "^3.0.5",
|
|
31
|
+
"@graphcommerce/magento-store": "^4.1.2",
|
|
32
|
+
"@graphcommerce/next-ui": "^4.4.0",
|
|
33
|
+
"@graphcommerce/react-hook-form": "^3.0.4",
|
|
34
34
|
"type-fest": "^2.12.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|