@graphcommerce/magento-cart-payment-method 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 CHANGED
@@ -1,50 +1,70 @@
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/framer-scroller@2.0.6
14
+ - @graphcommerce/graphql@3.0.4
15
+ - @graphcommerce/image@3.1.1
16
+ - @graphcommerce/magento-cart@4.1.4
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/next-ui@4.2.0
29
+
30
+ ## 3.0.3
31
+
32
+ ### Patch Changes
33
+
34
+ - [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
35
+
36
+ * [#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
37
+
38
+ * 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)]:
39
+ - @graphcommerce/framer-scroller@2.0.3
40
+ - @graphcommerce/graphql@3.0.3
41
+ - @graphcommerce/image@3.1.0
42
+ - @graphcommerce/magento-cart@4.1.2
43
+ - @graphcommerce/magento-store@4.0.3
44
+ - @graphcommerce/next-ui@4.1.2
45
+ - @graphcommerce/react-hook-form@3.0.3
46
+
3
47
  ## 3.0.2
4
48
 
5
49
  ### Patch Changes
6
50
 
7
- - [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
8
- [`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7)
9
- Thanks [@paales](https://github.com/paales)! - Moved `ApolloErrorAlert`, `ApolloErrorFullPage` and
10
- `ApolloErrorSnackbar` to the ecommerce-ui package.
51
+ - [#1274](https://github.com/ho-nl/m2-pwa/pull/1274) [`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7) Thanks [@paales](https://github.com/paales)! - Moved `ApolloErrorAlert`, `ApolloErrorFullPage` and `ApolloErrorSnackbar` to the ecommerce-ui package.
11
52
 
12
- Created `ComposedSubmitButton` and `ComposedSubmitLinkOrButton` to reduce complexity from
13
- `magento-graphcms` example.
53
+ Created `ComposedSubmitButton` and `ComposedSubmitLinkOrButton` to reduce complexity from `magento-graphcms` example.
14
54
 
15
55
  Removed dependency an `@graphcommerce/react-hook-form` from `magento-graphcms` example.
16
56
 
17
57
  Added dependency `@graphcommerce/ecommerce-ui` from `magento-graphcms` example.
18
58
 
19
- * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
20
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
21
- Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
22
- `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
23
- duplicate packages in the node_modules folders.
24
-
25
- - [#1274](https://github.com/ho-nl/m2-pwa/pull/1274)
26
- [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275)
27
- Thanks [@paales](https://github.com/paales)! - Fixed extraction of translations and updated
28
- various translations for english πŸ‡ΊπŸ‡ΈπŸ‡¬πŸ‡§ and dutch πŸ‡³πŸ‡±
29
-
30
- * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
31
- [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
32
- Thanks [@paales](https://github.com/paales)! - Upgraded to
33
- [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
34
- implementing
35
- [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
36
- soon.
37
-
38
- This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
39
- frontend to be able to revalidate pages manually.
40
-
41
- * Updated dependencies
42
- [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
43
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
44
- [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
45
- [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
46
- [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
47
- [`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
59
+ * [#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.
60
+
61
+ - [#1274](https://github.com/ho-nl/m2-pwa/pull/1274) [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275) Thanks [@paales](https://github.com/paales)! - Fixed extraction of translations and updated various translations for english πŸ‡ΊπŸ‡ΈπŸ‡¬πŸ‡§ and dutch πŸ‡³πŸ‡±
62
+
63
+ * [#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.
64
+
65
+ 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.
66
+
67
+ * 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)]:
48
68
  - @graphcommerce/magento-cart@4.1.1
49
69
  - @graphcommerce/next-ui@4.1.1
50
70
  - @graphcommerce/react-hook-form@3.0.2
@@ -57,11 +77,8 @@
57
77
 
58
78
  ### Patch Changes
59
79
 
60
- - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
61
- Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
62
- so that the packages link to back to the website and repository
63
- - Updated dependencies
64
- [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
80
+ - [`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
81
+ - Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
65
82
  - @graphcommerce/framer-scroller@2.0.1
66
83
  - @graphcommerce/graphql@3.0.1
67
84
  - @graphcommerce/image@3.0.1
@@ -74,14 +91,11 @@
74
91
 
75
92
  ### Major Changes
76
93
 
77
- - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
78
- [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
79
- Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
94
+ - [#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
80
95
 
81
96
  ### Patch Changes
82
97
 
83
- - Updated dependencies
84
- [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
98
+ - Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
85
99
  - @graphcommerce/framer-scroller@2.0.0
86
100
  - @graphcommerce/graphql@3.0.0
87
101
  - @graphcommerce/image@3.0.0
@@ -90,90 +104,77 @@
90
104
  - @graphcommerce/next-ui@4.0.0
91
105
  - @graphcommerce/react-hook-form@3.0.0
92
106
 
93
- All notable changes to this project will be documented in this file. See
94
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
107
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
95
108
 
96
109
  # [2.111.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.110.20...@graphcommerce/magento-cart-payment-method@2.111.0) (2021-11-12)
97
110
 
98
111
  ### Bug Fixes
99
112
 
100
- - even more translations
101
- ([1a1f988](https://github.com/ho-nl/m2-pwa/commit/1a1f98837c704b978f6b42b619d9c52f540b2d48))
113
+ - even more translations ([1a1f988](https://github.com/ho-nl/m2-pwa/commit/1a1f98837c704b978f6b42b619d9c52f540b2d48))
102
114
 
103
115
  ### Features
104
116
 
105
- - added tons of translations
106
- ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
117
+ - added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
107
118
 
108
119
  ## [2.110.7](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.110.6...@graphcommerce/magento-cart-payment-method@2.110.7) (2021-11-04)
109
120
 
110
121
  ### Bug Fixes
111
122
 
112
- - remove hardcoded fontSize
113
- ([e4e09e1](https://github.com/ho-nl/m2-pwa/commit/e4e09e11baeb8edeff634550b8cdb88571d96911))
123
+ - remove hardcoded fontSize ([e4e09e1](https://github.com/ho-nl/m2-pwa/commit/e4e09e11baeb8edeff634550b8cdb88571d96911))
114
124
 
115
125
  # [2.110.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.109.1...@graphcommerce/magento-cart-payment-method@2.110.0) (2021-11-02)
116
126
 
117
127
  ### Features
118
128
 
119
- - shipping methods scroller
120
- ([3cc4413](https://github.com/ho-nl/m2-pwa/commit/3cc441320d2a3dd003c499be358a118a17e528c3))
129
+ - shipping methods scroller ([3cc4413](https://github.com/ho-nl/m2-pwa/commit/3cc441320d2a3dd003c499be358a118a17e528c3))
121
130
 
122
131
  # [2.109.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.108.8...@graphcommerce/magento-cart-payment-method@2.109.0) (2021-11-02)
123
132
 
124
133
  ### Features
125
134
 
126
- - darkTheme
127
- ([968f4f1](https://github.com/ho-nl/m2-pwa/commit/968f4f1360417bf7daa36454c19e6bc5cf53ae90))
135
+ - darkTheme ([968f4f1](https://github.com/ho-nl/m2-pwa/commit/968f4f1360417bf7daa36454c19e6bc5cf53ae90))
128
136
 
129
137
  ## [2.108.4](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.108.3...@graphcommerce/magento-cart-payment-method@2.108.4) (2021-10-28)
130
138
 
131
139
  ### Bug Fixes
132
140
 
133
- - External SVG's can't have alt tags
134
- ([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
141
+ - External SVG's can't have alt tags ([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
135
142
 
136
143
  ## [2.108.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.108.2...@graphcommerce/magento-cart-payment-method@2.108.3) (2021-10-28)
137
144
 
138
145
  ### Bug Fixes
139
146
 
140
- - update SvgImage to SvgImageSimple
141
- ([f116543](https://github.com/ho-nl/m2-pwa/commit/f116543730853fa9782abff0ccacee7032e85789))
147
+ - update SvgImage to SvgImageSimple ([f116543](https://github.com/ho-nl/m2-pwa/commit/f116543730853fa9782abff0ccacee7032e85789))
142
148
 
143
149
  # [2.108.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.107.6...@graphcommerce/magento-cart-payment-method@2.108.0) (2021-10-27)
144
150
 
145
151
  ### Features
146
152
 
147
- - **nextjs:** upgraded to nextjs 12
148
- ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
153
+ - **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
149
154
 
150
155
  # [2.107.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.106.16...@graphcommerce/magento-cart-payment-method@2.107.0) (2021-10-19)
151
156
 
152
157
  ### Features
153
158
 
154
- - **framer-scroller:** better defaults so the Scroller doesn't look broken when providing no props
155
- ([b177ce9](https://github.com/ho-nl/m2-pwa/commit/b177ce9570abb9ccfd4eb5cc34e43d157bb4e81a))
159
+ - **framer-scroller:** better defaults so the Scroller doesn't look broken when providing no props ([b177ce9](https://github.com/ho-nl/m2-pwa/commit/b177ce9570abb9ccfd4eb5cc34e43d157bb4e81a))
156
160
 
157
161
  ## [2.106.5](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.106.4...@graphcommerce/magento-cart-payment-method@2.106.5) (2021-10-08)
158
162
 
159
163
  ### Bug Fixes
160
164
 
161
- - make sure we can useCartLock on the success page
162
- ([139349a](https://github.com/ho-nl/m2-pwa/commit/139349a73836c0c58c5d8000a801c912dbe23b3b))
165
+ - make sure we can useCartLock on the success page ([139349a](https://github.com/ho-nl/m2-pwa/commit/139349a73836c0c58c5d8000a801c912dbe23b3b))
163
166
 
164
167
  ## [2.106.4](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.106.3...@graphcommerce/magento-cart-payment-method@2.106.4) (2021-10-07)
165
168
 
166
169
  ### Bug Fixes
167
170
 
168
- - make sure if no payment method is filled in we get an error shown
169
- ([a203e57](https://github.com/ho-nl/m2-pwa/commit/a203e570caad0732427a178e8e8b10b4a15d676b))
171
+ - make sure if no payment method is filled in we get an error shown ([a203e57](https://github.com/ho-nl/m2-pwa/commit/a203e570caad0732427a178e8e8b10b4a15d676b))
170
172
 
171
173
  # [2.106.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.105.11...@graphcommerce/magento-cart-payment-method@2.106.0) (2021-10-04)
172
174
 
173
175
  ### Features
174
176
 
175
- - sort payment methods by availability
176
- ([52f5d45](https://github.com/ho-nl/m2-pwa/commit/52f5d450a7a2fdec0c7eea9cd5d48336cb304138))
177
+ - sort payment methods by availability ([52f5d45](https://github.com/ho-nl/m2-pwa/commit/52f5d450a7a2fdec0c7eea9cd5d48336cb304138))
177
178
 
178
179
  ## [2.105.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.105.0...@graphcommerce/magento-cart-payment-method@2.105.1) (2021-09-27)
179
180
 
@@ -183,81 +184,50 @@ All notable changes to this project will be documented in this file. See
183
184
 
184
185
  ### Bug Fixes
185
186
 
186
- - **checkout:** purchaseorder and other build in methods wouldnt properly submit
187
- ([331cb8e](https://github.com/ho-nl/m2-pwa/commit/331cb8e2bed58c14cd41fceeab03e2cdfbe7e6a9))
188
- - do not use ToggleButtonGroup, only use the ToggleButton
189
- ([5172f70](https://github.com/ho-nl/m2-pwa/commit/5172f709ee26122b0a8700afb4325f23cb9ba9b9))
190
- - ignore md files from triggering version updates
191
- ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
192
- - implement next-ui barrel imports
193
- ([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
194
- - paymentDone removed in favor of a more simple clearCart method
195
- ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
196
- - playwright can't find the place order button
197
- ([b1fda5b](https://github.com/ho-nl/m2-pwa/commit/b1fda5b3e403dad621aba8ed895427f2166bc985))
198
- - **playwright:** checkout button was renamed
199
- ([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
200
- - rename NextButton to Button, change imports
201
- ([976adb0](https://github.com/ho-nl/m2-pwa/commit/976adb0bf906310d1efce888dcc9be1e28ce0f1b))
187
+ - **checkout:** purchaseorder and other build in methods wouldnt properly submit ([331cb8e](https://github.com/ho-nl/m2-pwa/commit/331cb8e2bed58c14cd41fceeab03e2cdfbe7e6a9))
188
+ - do not use ToggleButtonGroup, only use the ToggleButton ([5172f70](https://github.com/ho-nl/m2-pwa/commit/5172f709ee26122b0a8700afb4325f23cb9ba9b9))
189
+ - ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
190
+ - implement next-ui barrel imports ([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
191
+ - paymentDone removed in favor of a more simple clearCart method ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
192
+ - playwright can't find the place order button ([b1fda5b](https://github.com/ho-nl/m2-pwa/commit/b1fda5b3e403dad621aba8ed895427f2166bc985))
193
+ - **playwright:** checkout button was renamed ([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
194
+ - rename NextButton to Button, change imports ([976adb0](https://github.com/ho-nl/m2-pwa/commit/976adb0bf906310d1efce888dcc9be1e28ce0f1b))
202
195
 
203
196
  ### Features
204
197
 
205
- - **cart:** when a cart is not active anymore show a clear cart button
206
- ([5d04a14](https://github.com/ho-nl/m2-pwa/commit/5d04a14726c040b20b34c0b88f923aee1dff22e5))
207
- - coupon form on payment page
208
- ([a163961](https://github.com/ho-nl/m2-pwa/commit/a1639617be756b357177fcce255cf662c5314499))
209
- - **graphql:** introduced new graphql package that holds all generated files
210
- ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
211
- - **image:** introduced completely rewritten Image component
212
- ([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
213
- - implemented checkmo payment method
214
- ([18525b2](https://github.com/ho-nl/m2-pwa/commit/18525b2f4efe9bd0eea12a7a992d284f341e0c68))
215
- - implemented purchase order
216
- ([3a40033](https://github.com/ho-nl/m2-pwa/commit/3a40033cd4d6712a17bb9c41a8841ebf7aa2f025))
217
- - implemented the new mollie payment api
218
- ([a8b38a9](https://github.com/ho-nl/m2-pwa/commit/a8b38a9a45207e180f795e81bf5ac759f01a583d))
219
- - **mollie:** first version of mollie payment methods
220
- ([e2f7d78](https://github.com/ho-nl/m2-pwa/commit/e2f7d78e50a9afe928f1d8c478f946e03c63b0f2))
221
- - **mollie:** pay with credit card made working
222
- ([5cda84e](https://github.com/ho-nl/m2-pwa/commit/5cda84e0b9c54238ae6adaa34f9e2ad77a708508))
223
- - next.js 11
224
- ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
225
- - only show free payment method when zero subtotal quote
226
- ([fd3ba86](https://github.com/ho-nl/m2-pwa/commit/fd3ba86d3060ebe7dc72ce27fca21464b46b4392))
227
- - **payment-agreements-form:** checkout agreements checkboxes
228
- ([13c8164](https://github.com/ho-nl/m2-pwa/commit/13c816499d220a2ce940672a95beca508b78ddc9))
229
- - **payments:** make PaymentMethodContext injectable
230
- ([68c664a](https://github.com/ho-nl/m2-pwa/commit/68c664adb7eb6eb86d7a819213deb87152392347))
231
- - **playwright:** added new playwright package to enable browser testing
232
- ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
233
- - **react-hook-form:** added buttonState to ComposedSubmit
234
- ([57e77c2](https://github.com/ho-nl/m2-pwa/commit/57e77c29f17720f7f3ee3b63be82779c0e5d8714))
235
- - renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
236
- [@reachdigital](https://github.com/reachdigital)
237
- ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
238
- - solve issue where the order couldn’t be submitted
239
- ([ec0d357](https://github.com/ho-nl/m2-pwa/commit/ec0d3579a1277976e2dc515f420996cf716f83a6))
240
- - upgraded to nextjs 11
241
- ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
242
- - useFormMutationCart and simpler imports
243
- ([012f090](https://github.com/ho-nl/m2-pwa/commit/012f090e8f54d09f35d393c61ad1e2319f5a90ff))
198
+ - **cart:** when a cart is not active anymore show a clear cart button ([5d04a14](https://github.com/ho-nl/m2-pwa/commit/5d04a14726c040b20b34c0b88f923aee1dff22e5))
199
+ - coupon form on payment page ([a163961](https://github.com/ho-nl/m2-pwa/commit/a1639617be756b357177fcce255cf662c5314499))
200
+ - **graphql:** introduced new graphql package that holds all generated files ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
201
+ - **image:** introduced completely rewritten Image component ([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
202
+ - implemented checkmo payment method ([18525b2](https://github.com/ho-nl/m2-pwa/commit/18525b2f4efe9bd0eea12a7a992d284f341e0c68))
203
+ - implemented purchase order ([3a40033](https://github.com/ho-nl/m2-pwa/commit/3a40033cd4d6712a17bb9c41a8841ebf7aa2f025))
204
+ - implemented the new mollie payment api ([a8b38a9](https://github.com/ho-nl/m2-pwa/commit/a8b38a9a45207e180f795e81bf5ac759f01a583d))
205
+ - **mollie:** first version of mollie payment methods ([e2f7d78](https://github.com/ho-nl/m2-pwa/commit/e2f7d78e50a9afe928f1d8c478f946e03c63b0f2))
206
+ - **mollie:** pay with credit card made working ([5cda84e](https://github.com/ho-nl/m2-pwa/commit/5cda84e0b9c54238ae6adaa34f9e2ad77a708508))
207
+ - next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
208
+ - only show free payment method when zero subtotal quote ([fd3ba86](https://github.com/ho-nl/m2-pwa/commit/fd3ba86d3060ebe7dc72ce27fca21464b46b4392))
209
+ - **payment-agreements-form:** checkout agreements checkboxes ([13c8164](https://github.com/ho-nl/m2-pwa/commit/13c816499d220a2ce940672a95beca508b78ddc9))
210
+ - **payments:** make PaymentMethodContext injectable ([68c664a](https://github.com/ho-nl/m2-pwa/commit/68c664adb7eb6eb86d7a819213deb87152392347))
211
+ - **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
212
+ - **react-hook-form:** added buttonState to ComposedSubmit ([57e77c2](https://github.com/ho-nl/m2-pwa/commit/57e77c29f17720f7f3ee3b63be82779c0e5d8714))
213
+ - 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))
214
+ - solve issue where the order couldn’t be submitted ([ec0d357](https://github.com/ho-nl/m2-pwa/commit/ec0d3579a1277976e2dc515f420996cf716f83a6))
215
+ - upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
216
+ - useFormMutationCart and simpler imports ([012f090](https://github.com/ho-nl/m2-pwa/commit/012f090e8f54d09f35d393c61ad1e2319f5a90ff))
244
217
 
245
218
  ### Reverts
246
219
 
247
- - Revert "chore: upgrade @apollo/client"
248
- ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
220
+ - Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
249
221
 
250
222
  # Change Log
251
223
 
252
- All notable changes to this project will be documented in this file. See
253
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
224
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
254
225
 
255
226
  # [2.104.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.103.18...@graphcommerce/magento-cart-payment-method@2.104.0) (2021-09-24)
256
227
 
257
228
  ### Features
258
229
 
259
- - **payment-agreements-form:** checkout agreements checkboxes
260
- ([13c8164](https://github.com/ho-nl/m2-pwa/commit/13c816499d220a2ce940672a95beca508b78ddc9))
230
+ - **payment-agreements-form:** checkout agreements checkboxes ([13c8164](https://github.com/ho-nl/m2-pwa/commit/13c816499d220a2ce940672a95beca508b78ddc9))
261
231
 
262
232
  ## [2.103.15](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.103.14...@graphcommerce/magento-cart-payment-method@2.103.15) (2021-09-23)
263
233
 
@@ -265,61 +235,52 @@ All notable changes to this project will be documented in this file. See
265
235
 
266
236
  ### Bug Fixes
267
237
 
268
- - do not use ToggleButtonGroup, only use the ToggleButton
269
- ([5172f70](https://github.com/ho-nl/m2-pwa/commit/5172f709ee26122b0a8700afb4325f23cb9ba9b9))
238
+ - do not use ToggleButtonGroup, only use the ToggleButton ([5172f70](https://github.com/ho-nl/m2-pwa/commit/5172f709ee26122b0a8700afb4325f23cb9ba9b9))
270
239
 
271
240
  ## [2.103.12](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.103.11...@graphcommerce/magento-cart-payment-method@2.103.12) (2021-09-01)
272
241
 
273
242
  ### Bug Fixes
274
243
 
275
- - playwright can't find the place order button
276
- ([b1fda5b](https://github.com/ho-nl/m2-pwa/commit/b1fda5b3e403dad621aba8ed895427f2166bc985))
244
+ - playwright can't find the place order button ([b1fda5b](https://github.com/ho-nl/m2-pwa/commit/b1fda5b3e403dad621aba8ed895427f2166bc985))
277
245
 
278
246
  ## [2.103.4](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.103.3...@graphcommerce/magento-cart-payment-method@2.103.4) (2021-08-17)
279
247
 
280
248
  ### Bug Fixes
281
249
 
282
- - **playwright:** checkout button was renamed
283
- ([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
250
+ - **playwright:** checkout button was renamed ([09e5b79](https://github.com/ho-nl/m2-pwa/commit/09e5b79333708cfac04232d8071d1dad72968297))
284
251
 
285
252
  # [2.103.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.102.2...@graphcommerce/magento-cart-payment-method@2.103.0) (2021-08-13)
286
253
 
287
254
  ### Features
288
255
 
289
- - coupon form on payment page
290
- ([a163961](https://github.com/ho-nl/m2-pwa/commit/a1639617be756b357177fcce255cf662c5314499))
256
+ - coupon form on payment page ([a163961](https://github.com/ho-nl/m2-pwa/commit/a1639617be756b357177fcce255cf662c5314499))
291
257
 
292
258
  # [2.102.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.101.10...@graphcommerce/magento-cart-payment-method@2.102.0) (2021-08-12)
293
259
 
294
260
  ### Features
295
261
 
296
- - upgraded to nextjs 11
297
- ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
262
+ - upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
298
263
 
299
264
  ## [2.101.9](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.101.8...@graphcommerce/magento-cart-payment-method@2.101.9) (2021-08-09)
300
265
 
301
266
  ### Reverts
302
267
 
303
- - Revert "chore: upgrade @apollo/client"
304
- ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
268
+ - Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
305
269
 
306
270
  ## [2.101.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.101.2...@graphcommerce/magento-cart-payment-method@2.101.3) (2021-07-29)
307
271
 
308
272
  ### Bug Fixes
309
273
 
310
- - paymentDone removed in favor of a more simple clearCart method
311
- ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
274
+ - paymentDone removed in favor of a more simple clearCart method ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
312
275
 
313
276
  # [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.100.19...@graphcommerce/magento-cart-payment-method@2.101.0) (2021-07-26)
314
277
 
315
278
  ### Features
316
279
 
317
- - **playwright:** added new playwright package to enable browser testing
318
- ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
280
+ - **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
319
281
 
320
282
  ## [2.100.11](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-payment-method@2.100.10...@graphcommerce/magento-cart-payment-method@2.100.11) (2021-07-20)
321
283
 
322
284
  ### Bug Fixes
323
285
 
324
- - ignore md files from triggering version updates
325
- ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
286
+ - ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
@@ -1,11 +1,11 @@
1
1
  import { ApolloCartErrorAlert } from '@graphcommerce/magento-cart'
2
- import { Button, ButtonProps, LinkOrButton, LinkOrButtonProps } from '@graphcommerce/next-ui'
2
+ import { LinkOrButton, LinkOrButtonProps } from '@graphcommerce/next-ui'
3
3
  import { ComposedSubmit, ComposedSubmitRenderComponentProps } from '@graphcommerce/react-hook-form'
4
4
  import { usePaymentMethodContext } from '../PaymentMethodContext/PaymentMethodContext'
5
5
 
6
6
  export type PaymentMethodButtonProps = LinkOrButtonProps & { display?: 'inline' | 'block' }
7
7
 
8
- export function PaymentMethodButtonRenderer(
8
+ function PaymentMethodButtonRenderer(
9
9
  props: { buttonProps: LinkOrButtonProps } & ComposedSubmitRenderComponentProps,
10
10
  ) {
11
11
  const { buttonProps, error, buttonState, submit } = props
@@ -45,7 +45,7 @@ export function PaymentMethodButtonRenderer(
45
45
  )
46
46
  }
47
47
 
48
- export default function PaymentMethodButton(props: PaymentMethodButtonProps) {
48
+ export function PaymentMethodButton(props: PaymentMethodButtonProps) {
49
49
  const { display, ...buttonProps } = props
50
50
 
51
51
  return (
@@ -1,15 +1,15 @@
1
1
  import { useCartQuery } from '@graphcommerce/magento-cart'
2
- import React, { PropsWithChildren, useContext, useEffect, useState } from 'react'
2
+ import React, { PropsWithChildren, useContext, useEffect, useMemo, useState } from 'react'
3
3
  import { PaymentMethod, PaymentMethodModules, PaymentModule } from '../Api/PaymentMethod'
4
4
  import { GetPaymentMethodContextDocument } from './GetPaymentMethodContext.gql'
5
5
 
6
6
  type PaymentMethodContextProps = {
7
7
  methods: PaymentMethod[]
8
8
  selectedMethod?: PaymentMethod
9
- setSelectedMethod(method: PaymentMethod | undefined): void
9
+ setSelectedMethod: (method: PaymentMethod | undefined) => void
10
10
  modules: PaymentMethodModules
11
11
  selectedModule?: PaymentModule
12
- setSelectedModule(module: PaymentModule | undefined): void
12
+ setSelectedModule: (module: PaymentModule | undefined) => void
13
13
  }
14
14
 
15
15
  const paymentMethodContext = React.createContext<PaymentMethodContextProps>({
@@ -22,7 +22,7 @@ paymentMethodContext.displayName = 'PaymentMethodContext'
22
22
 
23
23
  type PaymentMethodContextProviderProps = PropsWithChildren<{ modules: PaymentMethodModules }>
24
24
 
25
- export default function PaymentMethodContextProvider(props: PaymentMethodContextProviderProps) {
25
+ export function PaymentMethodContextProvider(props: PaymentMethodContextProviderProps) {
26
26
  const { modules, children } = props
27
27
 
28
28
  const context = useCartQuery(GetPaymentMethodContextDocument)
@@ -53,25 +53,30 @@ export default function PaymentMethodContextProvider(props: PaymentMethodContext
53
53
  ) ?? []
54
54
 
55
55
  const loaded = (await Promise.all(promises)).flat(1).sort((a) => (a.preferred ? 1 : 0))
56
- const sortedMethods = loaded.sort((a, b) =>
57
- !modules?.[a?.code] ? 0 : !modules?.[b?.code] ? -1 : 1,
58
- )
56
+ const sortedMethods = loaded.sort((a, b) => {
57
+ if (!modules?.[a?.code]) return 0
58
+ if (!modules?.[b?.code]) return -1
59
+ return 1
60
+ })
59
61
 
60
62
  setMethods(sortedMethods)
61
63
  })()
62
64
  }, [cartContext, modules])
63
65
 
66
+ const value = useMemo(
67
+ () => ({
68
+ methods,
69
+ selectedMethod,
70
+ setSelectedMethod,
71
+ modules,
72
+ selectedModule,
73
+ setSelectedModule,
74
+ }),
75
+ [methods, modules, selectedMethod, selectedModule],
76
+ )
77
+
64
78
  return (
65
- <paymentMethodContext.Provider
66
- value={{
67
- methods,
68
- selectedMethod,
69
- setSelectedMethod,
70
- modules,
71
- selectedModule,
72
- setSelectedModule,
73
- }}
74
- >
79
+ <paymentMethodContext.Provider value={value}>
75
80
  {Object.entries(modules).map(([method, module]) => {
76
81
  const { PaymentHandler } = module
77
82
  if (!PaymentHandler) return null
@@ -8,9 +8,7 @@ const name = 'PaymentMethodOptions' as const
8
8
  const parts = ['root'] as const
9
9
  const { classes } = extendableComponent(name, parts)
10
10
 
11
- export default function PaymentMethodOptions(
12
- props: PaymentMethodOptionsProps & { sx?: SxProps<Theme> },
13
- ) {
11
+ export function PaymentMethodOptions(props: PaymentMethodOptionsProps & { sx?: SxProps<Theme> }) {
14
12
  const { sx = [], ...optionsProps } = props
15
13
  const { selectedMethod, selectedModule } = usePaymentMethodContext()
16
14
 
@@ -4,7 +4,7 @@ import { PaymentOptionsProps } from '../Api/PaymentMethod'
4
4
  import { PaymentMethodOptionsNoopDocument } from './PaymentMethodOptionsNoop.gql'
5
5
 
6
6
  /** It sets the selected payment method on the cart. */
7
- function PaymentMethodOptionsNoop(props: PaymentOptionsProps) {
7
+ export function PaymentMethodOptionsNoop(props: PaymentOptionsProps) {
8
8
  const { code, step } = props
9
9
 
10
10
  /**
@@ -26,5 +26,3 @@ function PaymentMethodOptionsNoop(props: PaymentOptionsProps) {
26
26
  </form>
27
27
  )
28
28
  }
29
-
30
- export default PaymentMethodOptionsNoop
@@ -3,7 +3,7 @@ import { usePaymentMethodContext } from '../PaymentMethodContext/PaymentMethodCo
3
3
 
4
4
  export type PaymentMethodPlaceOrderProps = Pick<UseFormComposeOptions, 'step'>
5
5
 
6
- export default function PaymentMethodPlaceOrder(props: PaymentMethodPlaceOrderProps) {
6
+ export function PaymentMethodPlaceOrder(props: PaymentMethodPlaceOrderProps) {
7
7
  const { step } = props
8
8
  const { selectedMethod, selectedModule } = usePaymentMethodContext()
9
9
 
@@ -9,7 +9,7 @@ import { useEffect } from 'react'
9
9
  import { PaymentPlaceOrderProps } from '../Api/PaymentMethod'
10
10
  import { PaymentMethodPlaceOrderNoopDocument } from './PaymentMethodPlaceOrderNoop.gql'
11
11
 
12
- export default function PaymentMethodPlaceOrderNoop(props: PaymentPlaceOrderProps) {
12
+ export function PaymentMethodPlaceOrderNoop(props: PaymentPlaceOrderProps) {
13
13
  const { step, code } = props
14
14
  const clearCurrentCartId = useClearCurrentCartId()
15
15
 
@@ -5,7 +5,7 @@ import {
5
5
  iconChevronLeft,
6
6
  iconChevronRight,
7
7
  responsiveVal,
8
- SvgIcon,
8
+ IconSvg,
9
9
  ToggleButton,
10
10
  extendableComponent,
11
11
  } from '@graphcommerce/next-ui'
@@ -47,7 +47,7 @@ const parts = [
47
47
  ] as const
48
48
  const { classes } = extendableComponent(cmpName, parts)
49
49
 
50
- export default function PaymentMethodToggles(props: PaymentMethodTogglesProps) {
50
+ export function PaymentMethodToggles(props: PaymentMethodTogglesProps) {
51
51
  const { step, sx = [] } = props
52
52
  const { methods, selectedMethod, setSelectedMethod, setSelectedModule, modules } =
53
53
  usePaymentMethodContext()
@@ -117,7 +117,7 @@ export default function PaymentMethodToggles(props: PaymentMethodTogglesProps) {
117
117
  borderBottomLeftRadius: 4,
118
118
  })}
119
119
  >
120
- <SvgIcon src={iconChevronLeft} size='small' />
120
+ <IconSvg src={iconChevronLeft} size='small' />
121
121
  </ScrollerButton>
122
122
  </Box>
123
123
 
@@ -209,7 +209,7 @@ export default function PaymentMethodToggles(props: PaymentMethodTogglesProps) {
209
209
  borderBottomRightRadius: 4,
210
210
  })}
211
211
  >
212
- <SvgIcon src={iconChevronRight} size='small' />
212
+ <IconSvg src={iconChevronRight} size='small' />
213
213
  </ScrollerButton>
214
214
  </Box>
215
215
  </ScrollerProvider>
package/index.ts CHANGED
@@ -1,19 +1,10 @@
1
1
  export * from './Api/PaymentMethod'
2
2
  export * from './hooks'
3
-
4
- export * from './PaymentMethodContext/PaymentMethodContext'
5
- export { default as PaymentMethodContextProvider } from './PaymentMethodContext/PaymentMethodContext'
6
-
7
3
  export * from './PaymentMethodButton/PaymentMethodButton'
8
- export { default as PaymentMethodButton } from './PaymentMethodButton/PaymentMethodButton'
9
-
10
- export { default as PaymentMethodOptions } from './PaymentMethodOptions/PaymentMethodOptions'
11
-
4
+ export * from './PaymentMethodContext/PaymentMethodContext'
5
+ export * from './PaymentMethodOptions/PaymentMethodOptions'
6
+ export * from './PaymentMethodOptionsNoop/PaymentMethodOptionsNoop'
12
7
  export * from './PaymentMethodOptionsNoop/PaymentMethodOptionsNoop.gql'
13
- export { default as PaymentMethodOptionsNoop } from './PaymentMethodOptionsNoop/PaymentMethodOptionsNoop'
14
-
15
- export { default as PaymentMethodPlaceOrder } from './PaymentMethodPlaceOrder/PaymentMethodPlaceOrder'
16
- export { default as PaymentMethodPlaceOrderNoop } from './PaymentMethodPlaceOrderNoop/PaymentMethodPlaceOrderNoop'
17
-
8
+ export * from './PaymentMethodPlaceOrder/PaymentMethodPlaceOrder'
9
+ export * from './PaymentMethodPlaceOrderNoop/PaymentMethodPlaceOrderNoop'
18
10
  export * from './PaymentMethodToggles/PaymentMethodToggles'
19
- export { default as PaymentMethodToggles } from './PaymentMethodToggles/PaymentMethodToggles'
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-cart-payment-method",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.0.2",
5
+ "version": "3.0.5",
6
6
  "sideEffects": false,
7
7
  "engines": {
8
8
  "node": "14.x"
@@ -15,20 +15,20 @@
15
15
  }
16
16
  },
17
17
  "devDependencies": {
18
- "@graphcommerce/eslint-config-pwa": "^4.0.2",
19
- "@graphcommerce/prettier-config-pwa": "^4.0.1",
20
- "@graphcommerce/typescript-config-pwa": "^4.0.1",
21
- "@playwright/test": "^1.19.1"
18
+ "@graphcommerce/eslint-config-pwa": "^4.0.5",
19
+ "@graphcommerce/prettier-config-pwa": "^4.0.3",
20
+ "@graphcommerce/typescript-config-pwa": "^4.0.2",
21
+ "@playwright/test": "^1.19.2"
22
22
  },
23
23
  "dependencies": {
24
- "@graphcommerce/framer-scroller": "^2.0.2",
25
- "@graphcommerce/graphql": "^3.0.2",
26
- "@graphcommerce/image": "^3.0.2",
27
- "@graphcommerce/magento-cart": "^4.1.1",
28
- "@graphcommerce/magento-store": "^4.0.2",
29
- "@graphcommerce/next-ui": "^4.1.1",
30
- "@graphcommerce/react-hook-form": "^3.0.2",
31
- "type-fest": "^2.11.2"
24
+ "@graphcommerce/framer-scroller": "^2.0.6",
25
+ "@graphcommerce/graphql": "^3.0.4",
26
+ "@graphcommerce/image": "^3.1.1",
27
+ "@graphcommerce/magento-cart": "^4.1.4",
28
+ "@graphcommerce/magento-store": "^4.1.2",
29
+ "@graphcommerce/next-ui": "^4.2.4",
30
+ "@graphcommerce/react-hook-form": "^3.0.4",
31
+ "type-fest": "^2.12.0"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "@lingui/macro": "^3.13.2",