@graphcommerce/mollie-magento-payment 3.0.2 → 3.0.5
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 +76 -77
- package/components/MollieOptionsIssuer/MollieIdealOptions.tsx +2 -3
- package/components/MollieOptionsIssuer/MollieIssuerOptions.tsx +3 -2
- package/components/MollieOptionsToken/MollieCreditCardOptions.tsx +2 -2
- package/components/MollieOptionsToken/MollieField.tsx +3 -3
- package/components/MolliePaymentHandler/MolliePaymentHandler.tsx +1 -1
- 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 +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,33 +1,61 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#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.
|
|
8
|
+
|
|
9
|
+
* [#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
|
|
10
|
+
|
|
11
|
+
* 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)]:
|
|
12
|
+
- @graphcommerce/next-ui@4.2.4
|
|
13
|
+
- @graphcommerce/graphql@3.0.4
|
|
14
|
+
- @graphcommerce/image@3.1.1
|
|
15
|
+
- @graphcommerce/magento-cart@4.1.4
|
|
16
|
+
- @graphcommerce/magento-cart-payment-method@3.0.5
|
|
17
|
+
- @graphcommerce/magento-store@4.1.2
|
|
18
|
+
- @graphcommerce/react-hook-form@3.0.4
|
|
19
|
+
|
|
20
|
+
## 3.0.4
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- [#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
|
|
25
|
+
|
|
26
|
+
- 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)]:
|
|
27
|
+
- @graphcommerce/magento-cart@4.1.3
|
|
28
|
+
- @graphcommerce/magento-cart-payment-method@3.0.4
|
|
29
|
+
- @graphcommerce/next-ui@4.2.0
|
|
30
|
+
|
|
31
|
+
## 3.0.3
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
|
|
36
|
+
|
|
37
|
+
* [#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
|
|
38
|
+
|
|
39
|
+
* 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)]:
|
|
40
|
+
- @graphcommerce/graphql@3.0.3
|
|
41
|
+
- @graphcommerce/image@3.1.0
|
|
42
|
+
- @graphcommerce/magento-cart@4.1.2
|
|
43
|
+
- @graphcommerce/magento-cart-payment-method@3.0.3
|
|
44
|
+
- @graphcommerce/magento-store@4.0.3
|
|
45
|
+
- @graphcommerce/next-ui@4.1.2
|
|
46
|
+
- @graphcommerce/react-hook-form@3.0.3
|
|
47
|
+
|
|
3
48
|
## 3.0.2
|
|
4
49
|
|
|
5
50
|
### Patch Changes
|
|
6
51
|
|
|
7
|
-
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* [
|
|
14
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
|
|
15
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to
|
|
16
|
-
[NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
|
|
17
|
-
implementing
|
|
18
|
-
[On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
|
|
19
|
-
soon.
|
|
20
|
-
|
|
21
|
-
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
|
|
22
|
-
frontend to be able to revalidate pages manually.
|
|
23
|
-
|
|
24
|
-
* Updated dependencies
|
|
25
|
-
[[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
|
|
26
|
-
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
|
|
27
|
-
[`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
|
|
28
|
-
[`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
|
|
29
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
|
|
30
|
-
[`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
|
|
52
|
+
- [#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.
|
|
53
|
+
|
|
54
|
+
* [#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.
|
|
55
|
+
|
|
56
|
+
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.
|
|
57
|
+
|
|
58
|
+
* 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)]:
|
|
31
59
|
- @graphcommerce/magento-cart@4.1.1
|
|
32
60
|
- @graphcommerce/magento-cart-payment-method@3.0.2
|
|
33
61
|
- @graphcommerce/next-ui@4.1.1
|
|
@@ -40,11 +68,8 @@
|
|
|
40
68
|
|
|
41
69
|
### Patch Changes
|
|
42
70
|
|
|
43
|
-
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
|
|
44
|
-
|
|
45
|
-
so that the packages link to back to the website and repository
|
|
46
|
-
- Updated dependencies
|
|
47
|
-
[[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
71
|
+
- [`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
|
|
72
|
+
- Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
48
73
|
- @graphcommerce/graphql@3.0.1
|
|
49
74
|
- @graphcommerce/image@3.0.1
|
|
50
75
|
- @graphcommerce/magento-cart@4.0.1
|
|
@@ -57,14 +82,11 @@
|
|
|
57
82
|
|
|
58
83
|
### Major Changes
|
|
59
84
|
|
|
60
|
-
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
|
|
61
|
-
[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
|
|
62
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
85
|
+
- [#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
|
|
63
86
|
|
|
64
87
|
### Patch Changes
|
|
65
88
|
|
|
66
|
-
- Updated dependencies
|
|
67
|
-
[[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
89
|
+
- Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
68
90
|
- @graphcommerce/graphql@3.0.0
|
|
69
91
|
- @graphcommerce/image@3.0.0
|
|
70
92
|
- @graphcommerce/magento-cart@4.0.0
|
|
@@ -73,68 +95,55 @@
|
|
|
73
95
|
- @graphcommerce/next-ui@4.0.0
|
|
74
96
|
- @graphcommerce/react-hook-form@3.0.0
|
|
75
97
|
|
|
76
|
-
All notable changes to this project will be documented in this file. See
|
|
77
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
98
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
78
99
|
|
|
79
100
|
## [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)
|
|
80
101
|
|
|
81
102
|
### Bug Fixes
|
|
82
103
|
|
|
83
|
-
- animations would run on background page, make sure animations are not running when page is not
|
|
84
|
-
active
|
|
85
|
-
([2fcf4b8](https://github.com/ho-nl/m2-pwa/commit/2fcf4b8a853108147477e3a67c7ea202abb2842f))
|
|
104
|
+
- 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))
|
|
86
105
|
|
|
87
106
|
# [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)
|
|
88
107
|
|
|
89
108
|
### Features
|
|
90
109
|
|
|
91
|
-
- added tons of translations
|
|
92
|
-
([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
110
|
+
- added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
93
111
|
|
|
94
112
|
## [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)
|
|
95
113
|
|
|
96
114
|
### Bug Fixes
|
|
97
115
|
|
|
98
|
-
- input labels
|
|
99
|
-
|
|
100
|
-
- overlapping checkmark icon
|
|
101
|
-
([b4da61a](https://github.com/ho-nl/m2-pwa/commit/b4da61ae33ab058a56f0f32c2874a2e77d77d01d))
|
|
116
|
+
- input labels ([ba46c9a](https://github.com/ho-nl/m2-pwa/commit/ba46c9a17b3b460daab5015df39ac9ae66858df4))
|
|
117
|
+
- overlapping checkmark icon ([b4da61a](https://github.com/ho-nl/m2-pwa/commit/b4da61ae33ab058a56f0f32c2874a2e77d77d01d))
|
|
102
118
|
|
|
103
119
|
# [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)
|
|
104
120
|
|
|
105
121
|
### Features
|
|
106
122
|
|
|
107
|
-
- **nextjs:** upgraded to nextjs 12
|
|
108
|
-
([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
123
|
+
- **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
109
124
|
|
|
110
125
|
## [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)
|
|
111
126
|
|
|
112
127
|
### Bug Fixes
|
|
113
128
|
|
|
114
|
-
- **mollie:** make sure we're redirected to the success page
|
|
115
|
-
([316d2b2](https://github.com/ho-nl/m2-pwa/commit/316d2b2a99189f093e74db98521c27e8e7267dd4))
|
|
129
|
+
- **mollie:** make sure we're redirected to the success page ([316d2b2](https://github.com/ho-nl/m2-pwa/commit/316d2b2a99189f093e74db98521c27e8e7267dd4))
|
|
116
130
|
|
|
117
131
|
## [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)
|
|
118
132
|
|
|
119
133
|
### Bug Fixes
|
|
120
134
|
|
|
121
|
-
- make sure if no payment method is filled in we get an error shown
|
|
122
|
-
([a203e57](https://github.com/ho-nl/m2-pwa/commit/a203e570caad0732427a178e8e8b10b4a15d676b))
|
|
135
|
+
- make sure if no payment method is filled in we get an error shown ([a203e57](https://github.com/ho-nl/m2-pwa/commit/a203e570caad0732427a178e8e8b10b4a15d676b))
|
|
123
136
|
|
|
124
137
|
# 2.104.0 (2021-09-29)
|
|
125
138
|
|
|
126
139
|
### Bug Fixes
|
|
127
140
|
|
|
128
|
-
- make sure mollie only gets build optionally
|
|
129
|
-
|
|
130
|
-
- make sure the mollie module doesn't start with magento- to prevent building from node moduels
|
|
131
|
-
([ed406b9](https://github.com/ho-nl/m2-pwa/commit/ed406b9f56bd8cb5df0463cc50e4b1e9a728d4ca))
|
|
141
|
+
- make sure mollie only gets build optionally ([e5e2347](https://github.com/ho-nl/m2-pwa/commit/e5e23475e170dc2fc0c13103dfb8fbdb9009715f))
|
|
142
|
+
- 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))
|
|
132
143
|
|
|
133
144
|
### Features
|
|
134
145
|
|
|
135
|
-
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
|
|
136
|
-
[@reachdigital](https://github.com/reachdigital)
|
|
137
|
-
([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
146
|
+
- 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))
|
|
138
147
|
|
|
139
148
|
## [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)
|
|
140
149
|
|
|
@@ -144,58 +153,48 @@ All notable changes to this project will be documented in this file. See
|
|
|
144
153
|
|
|
145
154
|
### Bug Fixes
|
|
146
155
|
|
|
147
|
-
- make sure mollie only gets build optionally
|
|
148
|
-
([e5e2347](https://github.com/ho-nl/m2-pwa/commit/e5e23475e170dc2fc0c13103dfb8fbdb9009715f))
|
|
156
|
+
- make sure mollie only gets build optionally ([e5e2347](https://github.com/ho-nl/m2-pwa/commit/e5e23475e170dc2fc0c13103dfb8fbdb9009715f))
|
|
149
157
|
|
|
150
158
|
### Features
|
|
151
159
|
|
|
152
|
-
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
|
|
153
|
-
[@reachdigital](https://github.com/reachdigital)
|
|
154
|
-
([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
160
|
+
- 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))
|
|
155
161
|
|
|
156
162
|
# Change Log
|
|
157
163
|
|
|
158
|
-
All notable changes to this project will be documented in this file. See
|
|
159
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
164
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
160
165
|
|
|
161
166
|
## [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)
|
|
162
167
|
|
|
163
168
|
### Bug Fixes
|
|
164
169
|
|
|
165
|
-
- make sure mollie only gets build optionally
|
|
166
|
-
([e5e2347](https://github.com/ho-nl/m2-pwa/commit/e5e23475e170dc2fc0c13103dfb8fbdb9009715f))
|
|
170
|
+
- make sure mollie only gets build optionally ([e5e2347](https://github.com/ho-nl/m2-pwa/commit/e5e23475e170dc2fc0c13103dfb8fbdb9009715f))
|
|
167
171
|
|
|
168
172
|
# [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)
|
|
169
173
|
|
|
170
174
|
### Features
|
|
171
175
|
|
|
172
|
-
- upgraded to nextjs 11
|
|
173
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
176
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
174
177
|
|
|
175
178
|
## [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)
|
|
176
179
|
|
|
177
180
|
### Reverts
|
|
178
181
|
|
|
179
|
-
- Revert "chore: upgrade @apollo/client"
|
|
180
|
-
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
182
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
181
183
|
|
|
182
184
|
## [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)
|
|
183
185
|
|
|
184
186
|
### Bug Fixes
|
|
185
187
|
|
|
186
|
-
- paymentDone removed in favor of a more simple clearCart method
|
|
187
|
-
([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
|
|
188
|
+
- paymentDone removed in favor of a more simple clearCart method ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
|
|
188
189
|
|
|
189
190
|
# [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)
|
|
190
191
|
|
|
191
192
|
### Features
|
|
192
193
|
|
|
193
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
194
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
194
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
195
195
|
|
|
196
196
|
## [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)
|
|
197
197
|
|
|
198
198
|
### Bug Fixes
|
|
199
199
|
|
|
200
|
-
- ignore md files from triggering version updates
|
|
201
|
-
([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
200
|
+
- 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>
|
|
@@ -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()
|
|
@@ -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.5",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": "14.x"
|
|
@@ -15,23 +15,23 @@
|
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@graphcommerce/eslint-config-pwa": "^4.0.
|
|
19
|
-
"@graphcommerce/magento-cart-shipping-address": "^3.0.
|
|
20
|
-
"@graphcommerce/magento-product": "^4.0.
|
|
21
|
-
"@graphcommerce/magento-product-configurable": "^4.0.
|
|
22
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
23
|
-
"@graphcommerce/typescript-config-pwa": "^4.0.
|
|
24
|
-
"@playwright/test": "^1.19.
|
|
18
|
+
"@graphcommerce/eslint-config-pwa": "^4.0.5",
|
|
19
|
+
"@graphcommerce/magento-cart-shipping-address": "^3.0.4",
|
|
20
|
+
"@graphcommerce/magento-product": "^4.0.6",
|
|
21
|
+
"@graphcommerce/magento-product-configurable": "^4.0.6",
|
|
22
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.3",
|
|
23
|
+
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
24
|
+
"@playwright/test": "^1.19.2"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@graphcommerce/graphql": "^3.0.
|
|
28
|
-
"@graphcommerce/image": "^3.
|
|
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.
|
|
34
|
-
"type-fest": "^2.
|
|
27
|
+
"@graphcommerce/graphql": "^3.0.4",
|
|
28
|
+
"@graphcommerce/image": "^3.1.1",
|
|
29
|
+
"@graphcommerce/magento-cart": "^4.1.4",
|
|
30
|
+
"@graphcommerce/magento-cart-payment-method": "^3.0.5",
|
|
31
|
+
"@graphcommerce/magento-store": "^4.1.2",
|
|
32
|
+
"@graphcommerce/next-ui": "^4.2.4",
|
|
33
|
+
"@graphcommerce/react-hook-form": "^3.0.4",
|
|
34
|
+
"type-fest": "^2.12.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@lingui/macro": "^3.13.2",
|