@graphcommerce/mollie-magento-payment 3.0.4 → 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 CHANGED
@@ -1,18 +1,29 @@
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
+
3
20
  ## 3.0.4
4
21
 
5
22
  ### Patch Changes
6
23
 
7
- - [#1292](https://github.com/ho-nl/m2-pwa/pull/1292)
8
- [`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0)
9
- Thanks [@paales](https://github.com/paales)! - Renamed SvgIcon to IconSvg to prevent collisions
10
- with MUI
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
11
25
 
12
- - Updated dependencies
13
- [[`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0),
14
- [`990df655b`](https://github.com/ho-nl/m2-pwa/commit/990df655b73b469718d6cb5837ee65dfe2ad6a1d),
15
- [`63f9b56eb`](https://github.com/ho-nl/m2-pwa/commit/63f9b56eb68ba790567ff1427e599fd2c3c8f1ee)]:
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)]:
16
27
  - @graphcommerce/magento-cart@4.1.3
17
28
  - @graphcommerce/magento-cart-payment-method@3.0.4
18
29
  - @graphcommerce/next-ui@4.2.0
@@ -21,18 +32,11 @@
21
32
 
22
33
  ### Patch Changes
23
34
 
24
- - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
25
- Thanks [@paales](https://github.com/paales)! - made packages public
35
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
26
36
 
27
- * [#1278](https://github.com/ho-nl/m2-pwa/pull/1278)
28
- [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20)
29
- Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
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
30
38
 
31
- * Updated dependencies
32
- [[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
33
- [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
34
- [`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
35
- [`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
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)]:
36
40
  - @graphcommerce/graphql@3.0.3
37
41
  - @graphcommerce/image@3.1.0
38
42
  - @graphcommerce/magento-cart@4.1.2
@@ -45,30 +49,13 @@
45
49
 
46
50
  ### Patch Changes
47
51
 
48
- - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
49
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
50
- Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
51
- `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
52
- duplicate packages in the node_modules folders.
53
-
54
- * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
55
- [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
56
- Thanks [@paales](https://github.com/paales)! - Upgraded to
57
- [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
58
- implementing
59
- [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
60
- soon.
61
-
62
- This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
63
- frontend to be able to revalidate pages manually.
64
-
65
- * Updated dependencies
66
- [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
67
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
68
- [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
69
- [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
70
- [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
71
- [`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)]:
72
59
  - @graphcommerce/magento-cart@4.1.1
73
60
  - @graphcommerce/magento-cart-payment-method@3.0.2
74
61
  - @graphcommerce/next-ui@4.1.1
@@ -81,11 +68,8 @@
81
68
 
82
69
  ### Patch Changes
83
70
 
84
- - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
85
- Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
86
- so that the packages link to back to the website and repository
87
- - Updated dependencies
88
- [[`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)]:
89
73
  - @graphcommerce/graphql@3.0.1
90
74
  - @graphcommerce/image@3.0.1
91
75
  - @graphcommerce/magento-cart@4.0.1
@@ -98,14 +82,11 @@
98
82
 
99
83
  ### Major Changes
100
84
 
101
- - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
102
- [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
103
- 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
104
86
 
105
87
  ### Patch Changes
106
88
 
107
- - Updated dependencies
108
- [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
89
+ - Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
109
90
  - @graphcommerce/graphql@3.0.0
110
91
  - @graphcommerce/image@3.0.0
111
92
  - @graphcommerce/magento-cart@4.0.0
@@ -114,68 +95,55 @@
114
95
  - @graphcommerce/next-ui@4.0.0
115
96
  - @graphcommerce/react-hook-form@3.0.0
116
97
 
117
- All notable changes to this project will be documented in this file. See
118
- [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.
119
99
 
120
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)
121
101
 
122
102
  ### Bug Fixes
123
103
 
124
- - animations would run on background page, make sure animations are not running when page is not
125
- active
126
- ([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))
127
105
 
128
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)
129
107
 
130
108
  ### Features
131
109
 
132
- - added tons of translations
133
- ([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))
134
111
 
135
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)
136
113
 
137
114
  ### Bug Fixes
138
115
 
139
- - input labels
140
- ([ba46c9a](https://github.com/ho-nl/m2-pwa/commit/ba46c9a17b3b460daab5015df39ac9ae66858df4))
141
- - overlapping checkmark icon
142
- ([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))
143
118
 
144
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)
145
120
 
146
121
  ### Features
147
122
 
148
- - **nextjs:** upgraded to nextjs 12
149
- ([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))
150
124
 
151
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)
152
126
 
153
127
  ### Bug Fixes
154
128
 
155
- - **mollie:** make sure we're redirected to the success page
156
- ([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))
157
130
 
158
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)
159
132
 
160
133
  ### Bug Fixes
161
134
 
162
- - make sure if no payment method is filled in we get an error shown
163
- ([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))
164
136
 
165
137
  # 2.104.0 (2021-09-29)
166
138
 
167
139
  ### Bug Fixes
168
140
 
169
- - make sure mollie only gets build optionally
170
- ([e5e2347](https://github.com/ho-nl/m2-pwa/commit/e5e23475e170dc2fc0c13103dfb8fbdb9009715f))
171
- - make sure the mollie module doesn't start with magento- to prevent building from node moduels
172
- ([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))
173
143
 
174
144
  ### Features
175
145
 
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))
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))
179
147
 
180
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)
181
149
 
@@ -185,58 +153,48 @@ All notable changes to this project will be documented in this file. See
185
153
 
186
154
  ### Bug Fixes
187
155
 
188
- - make sure mollie only gets build optionally
189
- ([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))
190
157
 
191
158
  ### Features
192
159
 
193
- - renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
194
- [@reachdigital](https://github.com/reachdigital)
195
- ([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))
196
161
 
197
162
  # Change Log
198
163
 
199
- All notable changes to this project will be documented in this file. See
200
- [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.
201
165
 
202
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)
203
167
 
204
168
  ### Bug Fixes
205
169
 
206
- - make sure mollie only gets build optionally
207
- ([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))
208
171
 
209
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)
210
173
 
211
174
  ### Features
212
175
 
213
- - upgraded to nextjs 11
214
- ([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))
215
177
 
216
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)
217
179
 
218
180
  ### Reverts
219
181
 
220
- - Revert "chore: upgrade @apollo/client"
221
- ([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))
222
183
 
223
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)
224
185
 
225
186
  ### Bug Fixes
226
187
 
227
- - paymentDone removed in favor of a more simple clearCart method
228
- ([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))
229
189
 
230
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)
231
191
 
232
192
  ### Features
233
193
 
234
- - **playwright:** added new playwright package to enable browser testing
235
- ([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))
236
195
 
237
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)
238
197
 
239
198
  ### Bug Fixes
240
199
 
241
- - ignore md files from triggering version updates
242
- ([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 React from 'react'
3
- import MollieIssuerOptions from './MollieIssuerOptions'
2
+ import { MollieIssuerOptions } from './MollieIssuerOptions'
4
3
 
5
- export default function MollieIdealOptions(props: PaymentOptionsProps) {
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 default function MollieIssuerOptions(props: MollieIssuerOptionsProps) {
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) => {
@@ -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 default function MollieCreditCardOptions(props: PaymentOptionsProps) {
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
- const InputComponent = (props) => {
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<any, IframeFieldProps>((props, forwardedRef) => {
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 default function MollieField(props: MollieFieldProps) {
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 default function MolliePaymentHandler() {
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 default function MollieToggle(props: PaymentToggleProps) {
4
+ export function PaymentToggle(props: PaymentToggleProps) {
4
5
  const { mollie_meta, title } = props
5
6
 
6
7
  return (
7
8
  <>
8
- {mollie_meta?.image && <img src={mollie_meta?.image} alt={title} />}
9
+ {mollie_meta?.image && (
10
+ <Image layout='fixed' src={mollie_meta?.image} unoptimized alt={title} />
11
+ )}
9
12
  &nbsp;
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 default function MolliePlaceOrder(props: PaymentPlaceOrderProps) {
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,4 +1,3 @@
1
1
  export * from './hooks'
2
2
  export * as mollie_methods from './methods'
3
-
4
- export { default as PaymentToggle } from './components/MolliePaymentToggle/MolliePaymentToggle'
3
+ export * from './components/MolliePaymentToggle/MolliePaymentToggle'
@@ -1,10 +1,10 @@
1
1
  import { PaymentModule } from '@graphcommerce/magento-cart-payment-method'
2
- import MollieCreditCardOptions from '../components/MollieOptionsToken/MollieCreditCardOptions'
3
- import MollieToggle from '../components/MolliePaymentToggle/MolliePaymentToggle'
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: MollieToggle,
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 MollieToggle from '../components/MolliePaymentToggle/MolliePaymentToggle'
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: MollieToggle,
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 MollieToggle from '../components/MolliePaymentToggle/MolliePaymentToggle'
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: MollieToggle,
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 MollieToggle from '../components/MolliePaymentToggle/MolliePaymentToggle'
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: MollieToggle,
6
+ PaymentToggle,
7
7
  PaymentOptions: PaymentMethodOptionsNoop,
8
8
  PaymentPlaceOrder: MolliePlaceOrder,
9
9
  }
package/next-env.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ /// <reference types="next" />
2
+ /// <reference types="next/types/global" />
3
+ /// <reference types="next/image-types/global" />
4
+ /// <reference types="@graphcommerce/next-ui/types" />
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.4",
5
+ "version": "3.0.5",
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.0.3",
19
- "@graphcommerce/magento-cart-shipping-address": "^3.0.3",
20
- "@graphcommerce/magento-product": "^4.0.5",
21
- "@graphcommerce/magento-product-configurable": "^4.0.5",
22
- "@graphcommerce/prettier-config-pwa": "^4.0.2",
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
23
  "@graphcommerce/typescript-config-pwa": "^4.0.2",
24
- "@playwright/test": "^1.19.1"
24
+ "@playwright/test": "^1.19.2"
25
25
  },
26
26
  "dependencies": {
27
- "@graphcommerce/graphql": "^3.0.3",
28
- "@graphcommerce/image": "^3.1.0",
29
- "@graphcommerce/magento-cart": "^4.1.3",
30
- "@graphcommerce/magento-cart-payment-method": "^3.0.4",
31
- "@graphcommerce/magento-store": "^4.0.3",
32
- "@graphcommerce/next-ui": "^4.2.0",
33
- "@graphcommerce/react-hook-form": "^3.0.3",
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
34
  "type-fest": "^2.12.0"
35
35
  },
36
36
  "peerDependencies": {