@graphcommerce/magento-cart-shipping-method 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.
|
@@ -17,8 +17,8 @@ const name = 'AvailableShippingMethod' as const
|
|
|
17
17
|
const parts = ['root', 'title', 'additional', 'error', 'amount'] as const
|
|
18
18
|
const { withState } = extendableComponent<OwnerProps, typeof name, typeof parts>(name, parts)
|
|
19
19
|
|
|
20
|
-
const AvailableShippingMethod = React.forwardRef
|
|
21
|
-
(props, ref) => {
|
|
20
|
+
export const AvailableShippingMethod = React.forwardRef(
|
|
21
|
+
(props: AvailableShippingMethodProps, ref) => {
|
|
22
22
|
const {
|
|
23
23
|
amount,
|
|
24
24
|
available,
|
|
@@ -110,5 +110,3 @@ const AvailableShippingMethod = React.forwardRef<any, AvailableShippingMethodPro
|
|
|
110
110
|
)
|
|
111
111
|
},
|
|
112
112
|
)
|
|
113
|
-
|
|
114
|
-
export default AvailableShippingMethod
|
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,30 @@
|
|
|
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-cart-shipping-address@3.0.4
|
|
18
|
+
- @graphcommerce/magento-store@4.1.2
|
|
19
|
+
- @graphcommerce/react-hook-form@3.0.4
|
|
20
|
+
|
|
3
21
|
## 3.0.4
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
6
24
|
|
|
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
|
|
25
|
+
- [#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
26
|
|
|
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)]:
|
|
27
|
+
- 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
28
|
- @graphcommerce/magento-cart@4.1.3
|
|
17
29
|
- @graphcommerce/next-ui@4.2.0
|
|
18
30
|
|
|
@@ -20,18 +32,11 @@
|
|
|
20
32
|
|
|
21
33
|
### Patch Changes
|
|
22
34
|
|
|
23
|
-
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
|
|
24
|
-
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
|
|
25
36
|
|
|
26
|
-
* [#1278](https://github.com/ho-nl/m2-pwa/pull/1278)
|
|
27
|
-
[`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20)
|
|
28
|
-
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
|
|
29
38
|
|
|
30
|
-
* Updated dependencies
|
|
31
|
-
[[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
|
|
32
|
-
[`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
|
|
33
|
-
[`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
|
|
34
|
-
[`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)]:
|
|
35
40
|
- @graphcommerce/framer-scroller@2.0.3
|
|
36
41
|
- @graphcommerce/graphql@3.0.3
|
|
37
42
|
- @graphcommerce/image@3.1.0
|
|
@@ -45,30 +50,13 @@
|
|
|
45
50
|
|
|
46
51
|
### Patch Changes
|
|
47
52
|
|
|
48
|
-
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
* [
|
|
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)]:
|
|
53
|
+
- [#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.
|
|
54
|
+
|
|
55
|
+
* [#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.
|
|
56
|
+
|
|
57
|
+
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.
|
|
58
|
+
|
|
59
|
+
* 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
60
|
- @graphcommerce/magento-cart@4.1.1
|
|
73
61
|
- @graphcommerce/next-ui@4.1.1
|
|
74
62
|
- @graphcommerce/react-hook-form@3.0.2
|
|
@@ -82,11 +70,8 @@
|
|
|
82
70
|
|
|
83
71
|
### Patch Changes
|
|
84
72
|
|
|
85
|
-
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
|
|
86
|
-
|
|
87
|
-
so that the packages link to back to the website and repository
|
|
88
|
-
- Updated dependencies
|
|
89
|
-
[[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
73
|
+
- [`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
|
|
74
|
+
- Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
90
75
|
- @graphcommerce/framer-scroller@2.0.1
|
|
91
76
|
- @graphcommerce/graphql@3.0.1
|
|
92
77
|
- @graphcommerce/image@3.0.1
|
|
@@ -100,14 +85,11 @@
|
|
|
100
85
|
|
|
101
86
|
### Major Changes
|
|
102
87
|
|
|
103
|
-
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
|
|
104
|
-
[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
|
|
105
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
88
|
+
- [#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
|
|
106
89
|
|
|
107
90
|
### Patch Changes
|
|
108
91
|
|
|
109
|
-
- Updated dependencies
|
|
110
|
-
[[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
92
|
+
- Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
111
93
|
- @graphcommerce/framer-scroller@2.0.0
|
|
112
94
|
- @graphcommerce/graphql@3.0.0
|
|
113
95
|
- @graphcommerce/image@3.0.0
|
|
@@ -117,57 +99,48 @@
|
|
|
117
99
|
- @graphcommerce/next-ui@4.0.0
|
|
118
100
|
- @graphcommerce/react-hook-form@3.0.0
|
|
119
101
|
|
|
120
|
-
All notable changes to this project will be documented in this file. See
|
|
121
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
102
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
122
103
|
|
|
123
104
|
# [2.106.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-shipping-method@2.105.20...@graphcommerce/magento-cart-shipping-method@2.106.0) (2021-11-12)
|
|
124
105
|
|
|
125
106
|
### Features
|
|
126
107
|
|
|
127
|
-
- added tons of translations
|
|
128
|
-
([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
108
|
+
- added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
129
109
|
|
|
130
110
|
## [2.105.13](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-shipping-method@2.105.12...@graphcommerce/magento-cart-shipping-method@2.105.13) (2021-11-09)
|
|
131
111
|
|
|
132
112
|
### Bug Fixes
|
|
133
113
|
|
|
134
|
-
- font sizes
|
|
135
|
-
|
|
136
|
-
- styling when only 2 methods available. Hide buttons.
|
|
137
|
-
([6a90516](https://github.com/ho-nl/m2-pwa/commit/6a90516833e4fd1ea618111b278ecbdb76c9554a))
|
|
114
|
+
- font sizes ([1cf7d45](https://github.com/ho-nl/m2-pwa/commit/1cf7d451c3f8bdd064fdf351dffafced97387aff))
|
|
115
|
+
- styling when only 2 methods available. Hide buttons. ([6a90516](https://github.com/ho-nl/m2-pwa/commit/6a90516833e4fd1ea618111b278ecbdb76c9554a))
|
|
138
116
|
|
|
139
117
|
## [2.105.7](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-shipping-method@2.105.6...@graphcommerce/magento-cart-shipping-method@2.105.7) (2021-11-04)
|
|
140
118
|
|
|
141
119
|
### Bug Fixes
|
|
142
120
|
|
|
143
|
-
- Shipping method scroller styles
|
|
144
|
-
([d48d248](https://github.com/ho-nl/m2-pwa/commit/d48d2486fabb9059dbb0c27a5331784ee676a201))
|
|
121
|
+
- Shipping method scroller styles ([d48d248](https://github.com/ho-nl/m2-pwa/commit/d48d2486fabb9059dbb0c27a5331784ee676a201))
|
|
145
122
|
|
|
146
123
|
# [2.105.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-shipping-method@2.104.10...@graphcommerce/magento-cart-shipping-method@2.105.0) (2021-11-02)
|
|
147
124
|
|
|
148
125
|
### Bug Fixes
|
|
149
126
|
|
|
150
|
-
- **shipping-method-form:** stretch scroller items when there are only two methods
|
|
151
|
-
([6c925fc](https://github.com/ho-nl/m2-pwa/commit/6c925fcd029ad89b2527e63703660e53d3f69265))
|
|
127
|
+
- **shipping-method-form:** stretch scroller items when there are only two methods ([6c925fc](https://github.com/ho-nl/m2-pwa/commit/6c925fcd029ad89b2527e63703660e53d3f69265))
|
|
152
128
|
|
|
153
129
|
### Features
|
|
154
130
|
|
|
155
|
-
- shipping methods scroller
|
|
156
|
-
([3cc4413](https://github.com/ho-nl/m2-pwa/commit/3cc441320d2a3dd003c499be358a118a17e528c3))
|
|
131
|
+
- shipping methods scroller ([3cc4413](https://github.com/ho-nl/m2-pwa/commit/3cc441320d2a3dd003c499be358a118a17e528c3))
|
|
157
132
|
|
|
158
133
|
# [2.104.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-shipping-method@2.103.36...@graphcommerce/magento-cart-shipping-method@2.104.0) (2021-10-27)
|
|
159
134
|
|
|
160
135
|
### Features
|
|
161
136
|
|
|
162
|
-
- **nextjs:** upgraded to nextjs 12
|
|
163
|
-
([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
137
|
+
- **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
164
138
|
|
|
165
139
|
## [2.103.10](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-shipping-method@2.103.9...@graphcommerce/magento-cart-shipping-method@2.103.10) (2021-10-04)
|
|
166
140
|
|
|
167
141
|
### Bug Fixes
|
|
168
142
|
|
|
169
|
-
- **shipping:** sort available shipping methods by availability
|
|
170
|
-
([27d13ab](https://github.com/ho-nl/m2-pwa/commit/27d13ab1a0d923197bb13557256307f60a243f4a))
|
|
143
|
+
- **shipping:** sort available shipping methods by availability ([27d13ab](https://github.com/ho-nl/m2-pwa/commit/27d13ab1a0d923197bb13557256307f60a243f4a))
|
|
171
144
|
|
|
172
145
|
## [2.103.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-shipping-method@2.103.0...@graphcommerce/magento-cart-shipping-method@2.103.1) (2021-09-27)
|
|
173
146
|
|
|
@@ -177,90 +150,63 @@ All notable changes to this project will be documented in this file. See
|
|
|
177
150
|
|
|
178
151
|
### Bug Fixes
|
|
179
152
|
|
|
180
|
-
- amount label optional for shippingplaceholder
|
|
181
|
-
|
|
182
|
-
-
|
|
183
|
-
|
|
184
|
-
-
|
|
185
|
-
|
|
186
|
-
-
|
|
187
|
-
|
|
188
|
-
-
|
|
189
|
-
([3be1471](https://github.com/ho-nl/m2-pwa/commit/3be1471ec1f43eebf73415ec1adc12e0a16630e6))
|
|
190
|
-
- make amout optional for shipping method
|
|
191
|
-
([f744859](https://github.com/ho-nl/m2-pwa/commit/f74485927c979f76a5bdb746aab3eca5186ba4d9))
|
|
192
|
-
- make sure ComposedForm actually submits correctly
|
|
193
|
-
([c6499d9](https://github.com/ho-nl/m2-pwa/commit/c6499d9d36f874cd65b310cbf7f63f5a88fa86cd))
|
|
194
|
-
- **next-ui:** toggle button stylign
|
|
195
|
-
([c806d35](https://github.com/ho-nl/m2-pwa/commit/c806d358aed030c54d568275ee497f8cb9b01359))
|
|
196
|
-
- use SetOptional for amount
|
|
197
|
-
([06c3330](https://github.com/ho-nl/m2-pwa/commit/06c3330d997c0fb19ca46b0c1ff4d96f681b145c))
|
|
153
|
+
- amount label optional for shippingplaceholder ([a650a18](https://github.com/ho-nl/m2-pwa/commit/a650a18f01f76d9269bfb3926fc626189b803076))
|
|
154
|
+
- error message when no shipping method chosen ([f948ce1](https://github.com/ho-nl/m2-pwa/commit/f948ce19cbf46db8fd7e8115c93f4f7549ad4e64))
|
|
155
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
156
|
+
- implement next-ui barrel imports ([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
|
|
157
|
+
- make amount optional ([3be1471](https://github.com/ho-nl/m2-pwa/commit/3be1471ec1f43eebf73415ec1adc12e0a16630e6))
|
|
158
|
+
- make amout optional for shipping method ([f744859](https://github.com/ho-nl/m2-pwa/commit/f74485927c979f76a5bdb746aab3eca5186ba4d9))
|
|
159
|
+
- make sure ComposedForm actually submits correctly ([c6499d9](https://github.com/ho-nl/m2-pwa/commit/c6499d9d36f874cd65b310cbf7f63f5a88fa86cd))
|
|
160
|
+
- **next-ui:** toggle button stylign ([c806d35](https://github.com/ho-nl/m2-pwa/commit/c806d358aed030c54d568275ee497f8cb9b01359))
|
|
161
|
+
- use SetOptional for amount ([06c3330](https://github.com/ho-nl/m2-pwa/commit/06c3330d997c0fb19ca46b0c1ff4d96f681b145c))
|
|
198
162
|
|
|
199
163
|
### Features
|
|
200
164
|
|
|
201
|
-
- **cart:** when a cart is not active anymore show a clear cart button
|
|
202
|
-
|
|
203
|
-
- **
|
|
204
|
-
|
|
205
|
-
-
|
|
206
|
-
|
|
207
|
-
-
|
|
208
|
-
|
|
209
|
-
-
|
|
210
|
-
|
|
211
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
212
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
213
|
-
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
|
|
214
|
-
[@reachdigital](https://github.com/reachdigital)
|
|
215
|
-
([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
216
|
-
- submit composed form sequentially
|
|
217
|
-
([890d839](https://github.com/ho-nl/m2-pwa/commit/890d8393d635c3777aa17cfa8d4dafc13c2e6cdc))
|
|
218
|
-
- upgraded to nextjs 11
|
|
219
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
220
|
-
- useFormMutationCart and simpler imports
|
|
221
|
-
([012f090](https://github.com/ho-nl/m2-pwa/commit/012f090e8f54d09f35d393c61ad1e2319f5a90ff))
|
|
165
|
+
- **cart:** when a cart is not active anymore show a clear cart button ([5d04a14](https://github.com/ho-nl/m2-pwa/commit/5d04a14726c040b20b34c0b88f923aee1dff22e5))
|
|
166
|
+
- **graphql:** introduced new graphql package that holds all generated files ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
|
|
167
|
+
- **image:** introduced completely rewritten Image component ([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
|
|
168
|
+
- implemented purchase order ([3a40033](https://github.com/ho-nl/m2-pwa/commit/3a40033cd4d6712a17bb9c41a8841ebf7aa2f025))
|
|
169
|
+
- next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
|
170
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
171
|
+
- 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))
|
|
172
|
+
- submit composed form sequentially ([890d839](https://github.com/ho-nl/m2-pwa/commit/890d8393d635c3777aa17cfa8d4dafc13c2e6cdc))
|
|
173
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
174
|
+
- useFormMutationCart and simpler imports ([012f090](https://github.com/ho-nl/m2-pwa/commit/012f090e8f54d09f35d393c61ad1e2319f5a90ff))
|
|
222
175
|
|
|
223
176
|
### Reverts
|
|
224
177
|
|
|
225
|
-
- Revert "chore: upgrade @apollo/client"
|
|
226
|
-
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
178
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
227
179
|
|
|
228
180
|
# Change Log
|
|
229
181
|
|
|
230
|
-
All notable changes to this project will be documented in this file. See
|
|
231
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
182
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
232
183
|
|
|
233
184
|
## [2.102.10](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-shipping-method@2.102.9...@graphcommerce/magento-cart-shipping-method@2.102.10) (2021-08-24)
|
|
234
185
|
|
|
235
186
|
### Bug Fixes
|
|
236
187
|
|
|
237
|
-
- error message when no shipping method chosen
|
|
238
|
-
([f948ce1](https://github.com/ho-nl/m2-pwa/commit/f948ce19cbf46db8fd7e8115c93f4f7549ad4e64))
|
|
188
|
+
- error message when no shipping method chosen ([f948ce1](https://github.com/ho-nl/m2-pwa/commit/f948ce19cbf46db8fd7e8115c93f4f7549ad4e64))
|
|
239
189
|
|
|
240
190
|
# [2.102.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-shipping-method@2.101.10...@graphcommerce/magento-cart-shipping-method@2.102.0) (2021-08-12)
|
|
241
191
|
|
|
242
192
|
### Features
|
|
243
193
|
|
|
244
|
-
- upgraded to nextjs 11
|
|
245
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
194
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
246
195
|
|
|
247
196
|
## [2.101.9](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-shipping-method@2.101.8...@graphcommerce/magento-cart-shipping-method@2.101.9) (2021-08-09)
|
|
248
197
|
|
|
249
198
|
### Reverts
|
|
250
199
|
|
|
251
|
-
- Revert "chore: upgrade @apollo/client"
|
|
252
|
-
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
200
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
253
201
|
|
|
254
202
|
# [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-shipping-method@2.100.19...@graphcommerce/magento-cart-shipping-method@2.101.0) (2021-07-26)
|
|
255
203
|
|
|
256
204
|
### Features
|
|
257
205
|
|
|
258
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
259
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
206
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
260
207
|
|
|
261
208
|
## [2.100.11](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-cart-shipping-method@2.100.10...@graphcommerce/magento-cart-shipping-method@2.100.11) (2021-07-20)
|
|
262
209
|
|
|
263
210
|
### Bug Fixes
|
|
264
211
|
|
|
265
|
-
- ignore md files from triggering version updates
|
|
266
|
-
([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
212
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import { Controller, useFormCompose, UseFormComposeOptions } from '@graphcommerce/react-hook-form'
|
|
16
16
|
import { t, Trans } from '@lingui/macro'
|
|
17
17
|
import { FormControl, Alert, Box } from '@mui/material'
|
|
18
|
-
import AvailableShippingMethod from '../AvailableShippingMethod/AvailableShippingMethod'
|
|
18
|
+
import { AvailableShippingMethod } from '../AvailableShippingMethod/AvailableShippingMethod'
|
|
19
19
|
import { GetShippingMethodsDocument } from './GetShippingMethods.gql'
|
|
20
20
|
import {
|
|
21
21
|
ShippingMethodFormDocument,
|
|
@@ -33,7 +33,7 @@ const name = 'ShippingMethodForm' as const
|
|
|
33
33
|
const parts = ['root', 'alert', 'buttonRoot', 'buttonContainer', 'scrollerRoot'] as const
|
|
34
34
|
const { withState } = extendableComponent<OwnerProps, typeof name, typeof parts>(name, parts)
|
|
35
35
|
|
|
36
|
-
export
|
|
36
|
+
export function ShippingMethodForm(props: ShippingMethodFormProps) {
|
|
37
37
|
const { step } = props
|
|
38
38
|
const { data: cartQuery } = useCartQuery(GetShippingMethodsDocument)
|
|
39
39
|
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-cart-shipping-method",
|
|
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
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^4.0.
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.0.5",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.3",
|
|
17
17
|
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
18
|
-
"@playwright/test": "^1.19.
|
|
18
|
+
"@playwright/test": "^1.19.2"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@graphcommerce/framer-scroller": "^2.0.
|
|
22
|
-
"@graphcommerce/graphql": "^3.0.
|
|
23
|
-
"@graphcommerce/image": "^3.1.
|
|
24
|
-
"@graphcommerce/magento-cart": "^4.1.
|
|
25
|
-
"@graphcommerce/magento-cart-shipping-address": "^3.0.
|
|
26
|
-
"@graphcommerce/magento-store": "^4.
|
|
27
|
-
"@graphcommerce/next-ui": "^4.2.
|
|
28
|
-
"@graphcommerce/react-hook-form": "^3.0.
|
|
21
|
+
"@graphcommerce/framer-scroller": "^2.0.6",
|
|
22
|
+
"@graphcommerce/graphql": "^3.0.4",
|
|
23
|
+
"@graphcommerce/image": "^3.1.1",
|
|
24
|
+
"@graphcommerce/magento-cart": "^4.1.4",
|
|
25
|
+
"@graphcommerce/magento-cart-shipping-address": "^3.0.4",
|
|
26
|
+
"@graphcommerce/magento-store": "^4.1.2",
|
|
27
|
+
"@graphcommerce/next-ui": "^4.2.4",
|
|
28
|
+
"@graphcommerce/react-hook-form": "^3.0.4",
|
|
29
29
|
"type-fest": "^2.12.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|