@graphcommerce/magento-cart-shipping-method 3.0.3 → 3.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -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,21 +1,58 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1369](https://github.com/graphcommerce-org/graphcommerce/pull/1369) [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9) Thanks [@paales](https://github.com/paales)! - Upgraded dependencies
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`ae6449502`](https://github.com/graphcommerce-org/graphcommerce/commit/ae64495024a455bbe5188588604368c1542840c9), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a), [`892018809`](https://github.com/graphcommerce-org/graphcommerce/commit/8920188093d0422ec50580e408dc28ac5f93e46a)]:
|
|
10
|
+
- @graphcommerce/graphql@3.0.6
|
|
11
|
+
- @graphcommerce/next-ui@4.5.0
|
|
12
|
+
- @graphcommerce/framer-scroller@2.1.3
|
|
13
|
+
- @graphcommerce/image@3.1.2
|
|
14
|
+
- @graphcommerce/magento-cart@4.2.2
|
|
15
|
+
- @graphcommerce/magento-cart-shipping-address@3.0.5
|
|
16
|
+
- @graphcommerce/magento-store@4.1.4
|
|
17
|
+
- @graphcommerce/react-hook-form@3.0.6
|
|
18
|
+
|
|
19
|
+
## 3.0.5
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#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.
|
|
24
|
+
|
|
25
|
+
* [#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
|
|
26
|
+
|
|
27
|
+
* 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)]:
|
|
28
|
+
- @graphcommerce/next-ui@4.2.4
|
|
29
|
+
- @graphcommerce/framer-scroller@2.0.6
|
|
30
|
+
- @graphcommerce/graphql@3.0.4
|
|
31
|
+
- @graphcommerce/image@3.1.1
|
|
32
|
+
- @graphcommerce/magento-cart@4.1.4
|
|
33
|
+
- @graphcommerce/magento-cart-shipping-address@3.0.4
|
|
34
|
+
- @graphcommerce/magento-store@4.1.2
|
|
35
|
+
- @graphcommerce/react-hook-form@3.0.4
|
|
36
|
+
|
|
37
|
+
## 3.0.4
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- [#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
|
|
42
|
+
|
|
43
|
+
- 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)]:
|
|
44
|
+
- @graphcommerce/magento-cart@4.1.3
|
|
45
|
+
- @graphcommerce/next-ui@4.2.0
|
|
46
|
+
|
|
3
47
|
## 3.0.3
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
|
6
50
|
|
|
7
|
-
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
|
|
8
|
-
Thanks [@paales](https://github.com/paales)! - made packages public
|
|
51
|
+
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
|
|
9
52
|
|
|
10
|
-
* [#1278](https://github.com/ho-nl/m2-pwa/pull/1278)
|
|
11
|
-
[`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20)
|
|
12
|
-
Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
|
|
53
|
+
* [#1278](https://github.com/ho-nl/m2-pwa/pull/1278) [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Upgraded dependencies to the latest version
|
|
13
54
|
|
|
14
|
-
* Updated dependencies
|
|
15
|
-
[[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
|
|
16
|
-
[`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
|
|
17
|
-
[`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
|
|
18
|
-
[`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
|
|
55
|
+
* Updated dependencies [[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96), [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20), [`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d), [`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
|
|
19
56
|
- @graphcommerce/framer-scroller@2.0.3
|
|
20
57
|
- @graphcommerce/graphql@3.0.3
|
|
21
58
|
- @graphcommerce/image@3.1.0
|
|
@@ -29,30 +66,13 @@
|
|
|
29
66
|
|
|
30
67
|
### Patch Changes
|
|
31
68
|
|
|
32
|
-
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
* [
|
|
39
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
|
|
40
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to
|
|
41
|
-
[NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
|
|
42
|
-
implementing
|
|
43
|
-
[On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
|
|
44
|
-
soon.
|
|
45
|
-
|
|
46
|
-
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
|
|
47
|
-
frontend to be able to revalidate pages manually.
|
|
48
|
-
|
|
49
|
-
* Updated dependencies
|
|
50
|
-
[[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
|
|
51
|
-
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
|
|
52
|
-
[`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
|
|
53
|
-
[`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
|
|
54
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
|
|
55
|
-
[`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
|
|
69
|
+
- [#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.
|
|
70
|
+
|
|
71
|
+
* [#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.
|
|
72
|
+
|
|
73
|
+
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.
|
|
74
|
+
|
|
75
|
+
* 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)]:
|
|
56
76
|
- @graphcommerce/magento-cart@4.1.1
|
|
57
77
|
- @graphcommerce/next-ui@4.1.1
|
|
58
78
|
- @graphcommerce/react-hook-form@3.0.2
|
|
@@ -66,11 +86,8 @@
|
|
|
66
86
|
|
|
67
87
|
### Patch Changes
|
|
68
88
|
|
|
69
|
-
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
|
|
70
|
-
|
|
71
|
-
so that the packages link to back to the website and repository
|
|
72
|
-
- Updated dependencies
|
|
73
|
-
[[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
89
|
+
- [`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
|
|
90
|
+
- Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
74
91
|
- @graphcommerce/framer-scroller@2.0.1
|
|
75
92
|
- @graphcommerce/graphql@3.0.1
|
|
76
93
|
- @graphcommerce/image@3.0.1
|
|
@@ -84,14 +101,11 @@
|
|
|
84
101
|
|
|
85
102
|
### Major Changes
|
|
86
103
|
|
|
87
|
-
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
|
|
88
|
-
[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
|
|
89
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
104
|
+
- [#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
|
|
90
105
|
|
|
91
106
|
### Patch Changes
|
|
92
107
|
|
|
93
|
-
- Updated dependencies
|
|
94
|
-
[[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
108
|
+
- Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
95
109
|
- @graphcommerce/framer-scroller@2.0.0
|
|
96
110
|
- @graphcommerce/graphql@3.0.0
|
|
97
111
|
- @graphcommerce/image@3.0.0
|
|
@@ -101,57 +115,48 @@
|
|
|
101
115
|
- @graphcommerce/next-ui@4.0.0
|
|
102
116
|
- @graphcommerce/react-hook-form@3.0.0
|
|
103
117
|
|
|
104
|
-
All notable changes to this project will be documented in this file. See
|
|
105
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
118
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
106
119
|
|
|
107
120
|
# [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)
|
|
108
121
|
|
|
109
122
|
### Features
|
|
110
123
|
|
|
111
|
-
- added tons of translations
|
|
112
|
-
([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
124
|
+
- added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
113
125
|
|
|
114
126
|
## [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)
|
|
115
127
|
|
|
116
128
|
### Bug Fixes
|
|
117
129
|
|
|
118
|
-
- font sizes
|
|
119
|
-
|
|
120
|
-
- styling when only 2 methods available. Hide buttons.
|
|
121
|
-
([6a90516](https://github.com/ho-nl/m2-pwa/commit/6a90516833e4fd1ea618111b278ecbdb76c9554a))
|
|
130
|
+
- font sizes ([1cf7d45](https://github.com/ho-nl/m2-pwa/commit/1cf7d451c3f8bdd064fdf351dffafced97387aff))
|
|
131
|
+
- styling when only 2 methods available. Hide buttons. ([6a90516](https://github.com/ho-nl/m2-pwa/commit/6a90516833e4fd1ea618111b278ecbdb76c9554a))
|
|
122
132
|
|
|
123
133
|
## [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)
|
|
124
134
|
|
|
125
135
|
### Bug Fixes
|
|
126
136
|
|
|
127
|
-
- Shipping method scroller styles
|
|
128
|
-
([d48d248](https://github.com/ho-nl/m2-pwa/commit/d48d2486fabb9059dbb0c27a5331784ee676a201))
|
|
137
|
+
- Shipping method scroller styles ([d48d248](https://github.com/ho-nl/m2-pwa/commit/d48d2486fabb9059dbb0c27a5331784ee676a201))
|
|
129
138
|
|
|
130
139
|
# [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)
|
|
131
140
|
|
|
132
141
|
### Bug Fixes
|
|
133
142
|
|
|
134
|
-
- **shipping-method-form:** stretch scroller items when there are only two methods
|
|
135
|
-
([6c925fc](https://github.com/ho-nl/m2-pwa/commit/6c925fcd029ad89b2527e63703660e53d3f69265))
|
|
143
|
+
- **shipping-method-form:** stretch scroller items when there are only two methods ([6c925fc](https://github.com/ho-nl/m2-pwa/commit/6c925fcd029ad89b2527e63703660e53d3f69265))
|
|
136
144
|
|
|
137
145
|
### Features
|
|
138
146
|
|
|
139
|
-
- shipping methods scroller
|
|
140
|
-
([3cc4413](https://github.com/ho-nl/m2-pwa/commit/3cc441320d2a3dd003c499be358a118a17e528c3))
|
|
147
|
+
- shipping methods scroller ([3cc4413](https://github.com/ho-nl/m2-pwa/commit/3cc441320d2a3dd003c499be358a118a17e528c3))
|
|
141
148
|
|
|
142
149
|
# [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)
|
|
143
150
|
|
|
144
151
|
### Features
|
|
145
152
|
|
|
146
|
-
- **nextjs:** upgraded to nextjs 12
|
|
147
|
-
([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))
|
|
148
154
|
|
|
149
155
|
## [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)
|
|
150
156
|
|
|
151
157
|
### Bug Fixes
|
|
152
158
|
|
|
153
|
-
- **shipping:** sort available shipping methods by availability
|
|
154
|
-
([27d13ab](https://github.com/ho-nl/m2-pwa/commit/27d13ab1a0d923197bb13557256307f60a243f4a))
|
|
159
|
+
- **shipping:** sort available shipping methods by availability ([27d13ab](https://github.com/ho-nl/m2-pwa/commit/27d13ab1a0d923197bb13557256307f60a243f4a))
|
|
155
160
|
|
|
156
161
|
## [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)
|
|
157
162
|
|
|
@@ -161,90 +166,63 @@ All notable changes to this project will be documented in this file. See
|
|
|
161
166
|
|
|
162
167
|
### Bug Fixes
|
|
163
168
|
|
|
164
|
-
- amount label optional for shippingplaceholder
|
|
165
|
-
|
|
166
|
-
-
|
|
167
|
-
|
|
168
|
-
-
|
|
169
|
-
|
|
170
|
-
-
|
|
171
|
-
|
|
172
|
-
-
|
|
173
|
-
([3be1471](https://github.com/ho-nl/m2-pwa/commit/3be1471ec1f43eebf73415ec1adc12e0a16630e6))
|
|
174
|
-
- make amout optional for shipping method
|
|
175
|
-
([f744859](https://github.com/ho-nl/m2-pwa/commit/f74485927c979f76a5bdb746aab3eca5186ba4d9))
|
|
176
|
-
- make sure ComposedForm actually submits correctly
|
|
177
|
-
([c6499d9](https://github.com/ho-nl/m2-pwa/commit/c6499d9d36f874cd65b310cbf7f63f5a88fa86cd))
|
|
178
|
-
- **next-ui:** toggle button stylign
|
|
179
|
-
([c806d35](https://github.com/ho-nl/m2-pwa/commit/c806d358aed030c54d568275ee497f8cb9b01359))
|
|
180
|
-
- use SetOptional for amount
|
|
181
|
-
([06c3330](https://github.com/ho-nl/m2-pwa/commit/06c3330d997c0fb19ca46b0c1ff4d96f681b145c))
|
|
169
|
+
- amount label optional for shippingplaceholder ([a650a18](https://github.com/ho-nl/m2-pwa/commit/a650a18f01f76d9269bfb3926fc626189b803076))
|
|
170
|
+
- error message when no shipping method chosen ([f948ce1](https://github.com/ho-nl/m2-pwa/commit/f948ce19cbf46db8fd7e8115c93f4f7549ad4e64))
|
|
171
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
172
|
+
- implement next-ui barrel imports ([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
|
|
173
|
+
- make amount optional ([3be1471](https://github.com/ho-nl/m2-pwa/commit/3be1471ec1f43eebf73415ec1adc12e0a16630e6))
|
|
174
|
+
- make amout optional for shipping method ([f744859](https://github.com/ho-nl/m2-pwa/commit/f74485927c979f76a5bdb746aab3eca5186ba4d9))
|
|
175
|
+
- make sure ComposedForm actually submits correctly ([c6499d9](https://github.com/ho-nl/m2-pwa/commit/c6499d9d36f874cd65b310cbf7f63f5a88fa86cd))
|
|
176
|
+
- **next-ui:** toggle button stylign ([c806d35](https://github.com/ho-nl/m2-pwa/commit/c806d358aed030c54d568275ee497f8cb9b01359))
|
|
177
|
+
- use SetOptional for amount ([06c3330](https://github.com/ho-nl/m2-pwa/commit/06c3330d997c0fb19ca46b0c1ff4d96f681b145c))
|
|
182
178
|
|
|
183
179
|
### Features
|
|
184
180
|
|
|
185
|
-
- **cart:** when a cart is not active anymore show a clear cart button
|
|
186
|
-
|
|
187
|
-
- **
|
|
188
|
-
|
|
189
|
-
-
|
|
190
|
-
|
|
191
|
-
-
|
|
192
|
-
|
|
193
|
-
-
|
|
194
|
-
|
|
195
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
196
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
197
|
-
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
|
|
198
|
-
[@reachdigital](https://github.com/reachdigital)
|
|
199
|
-
([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
200
|
-
- submit composed form sequentially
|
|
201
|
-
([890d839](https://github.com/ho-nl/m2-pwa/commit/890d8393d635c3777aa17cfa8d4dafc13c2e6cdc))
|
|
202
|
-
- upgraded to nextjs 11
|
|
203
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
204
|
-
- useFormMutationCart and simpler imports
|
|
205
|
-
([012f090](https://github.com/ho-nl/m2-pwa/commit/012f090e8f54d09f35d393c61ad1e2319f5a90ff))
|
|
181
|
+
- **cart:** when a cart is not active anymore show a clear cart button ([5d04a14](https://github.com/ho-nl/m2-pwa/commit/5d04a14726c040b20b34c0b88f923aee1dff22e5))
|
|
182
|
+
- **graphql:** introduced new graphql package that holds all generated files ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
|
|
183
|
+
- **image:** introduced completely rewritten Image component ([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
|
|
184
|
+
- implemented purchase order ([3a40033](https://github.com/ho-nl/m2-pwa/commit/3a40033cd4d6712a17bb9c41a8841ebf7aa2f025))
|
|
185
|
+
- next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
|
186
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
187
|
+
- 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))
|
|
188
|
+
- submit composed form sequentially ([890d839](https://github.com/ho-nl/m2-pwa/commit/890d8393d635c3777aa17cfa8d4dafc13c2e6cdc))
|
|
189
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
190
|
+
- useFormMutationCart and simpler imports ([012f090](https://github.com/ho-nl/m2-pwa/commit/012f090e8f54d09f35d393c61ad1e2319f5a90ff))
|
|
206
191
|
|
|
207
192
|
### Reverts
|
|
208
193
|
|
|
209
|
-
- Revert "chore: upgrade @apollo/client"
|
|
210
|
-
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
194
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
211
195
|
|
|
212
196
|
# Change Log
|
|
213
197
|
|
|
214
|
-
All notable changes to this project will be documented in this file. See
|
|
215
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
198
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
216
199
|
|
|
217
200
|
## [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)
|
|
218
201
|
|
|
219
202
|
### Bug Fixes
|
|
220
203
|
|
|
221
|
-
- error message when no shipping method chosen
|
|
222
|
-
([f948ce1](https://github.com/ho-nl/m2-pwa/commit/f948ce19cbf46db8fd7e8115c93f4f7549ad4e64))
|
|
204
|
+
- error message when no shipping method chosen ([f948ce1](https://github.com/ho-nl/m2-pwa/commit/f948ce19cbf46db8fd7e8115c93f4f7549ad4e64))
|
|
223
205
|
|
|
224
206
|
# [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)
|
|
225
207
|
|
|
226
208
|
### Features
|
|
227
209
|
|
|
228
|
-
- upgraded to nextjs 11
|
|
229
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
210
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
230
211
|
|
|
231
212
|
## [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)
|
|
232
213
|
|
|
233
214
|
### Reverts
|
|
234
215
|
|
|
235
|
-
- Revert "chore: upgrade @apollo/client"
|
|
236
|
-
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
216
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
237
217
|
|
|
238
218
|
# [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)
|
|
239
219
|
|
|
240
220
|
### Features
|
|
241
221
|
|
|
242
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
243
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
222
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
244
223
|
|
|
245
224
|
## [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)
|
|
246
225
|
|
|
247
226
|
### Bug Fixes
|
|
248
227
|
|
|
249
|
-
- ignore md files from triggering version updates
|
|
250
|
-
([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
228
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
FormRow,
|
|
10
10
|
iconChevronLeft,
|
|
11
11
|
iconChevronRight,
|
|
12
|
-
|
|
12
|
+
IconSvg,
|
|
13
13
|
extendableComponent,
|
|
14
14
|
} from '@graphcommerce/next-ui'
|
|
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
|
|
|
@@ -107,7 +107,7 @@ export default function ShippingMethodForm(props: ShippingMethodFormProps) {
|
|
|
107
107
|
},
|
|
108
108
|
}}
|
|
109
109
|
>
|
|
110
|
-
<
|
|
110
|
+
<IconSvg src={iconChevronLeft} size='small' aria-label={t`Scroll Left`} />
|
|
111
111
|
</ScrollerButton>
|
|
112
112
|
</Box>
|
|
113
113
|
|
|
@@ -224,7 +224,7 @@ export default function ShippingMethodForm(props: ShippingMethodFormProps) {
|
|
|
224
224
|
}}
|
|
225
225
|
className={classes.buttonRoot}
|
|
226
226
|
>
|
|
227
|
-
<
|
|
227
|
+
<IconSvg src={iconChevronRight} size='small' aria-label={t`Scroll Right`} />
|
|
228
228
|
</ScrollerButton>
|
|
229
229
|
</Box>
|
|
230
230
|
</ScrollerProvider>
|
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.6",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,21 +12,21 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^4.
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.1.3",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.5",
|
|
17
17
|
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
18
|
-
"@playwright/test": "^1.
|
|
18
|
+
"@playwright/test": "^1.20.1",
|
|
19
|
+
"type-fest": "2.12.1"
|
|
19
20
|
},
|
|
20
21
|
"dependencies": {
|
|
21
|
-
"@graphcommerce/framer-scroller": "^2.
|
|
22
|
-
"@graphcommerce/graphql": "^3.0.
|
|
23
|
-
"@graphcommerce/image": "^3.1.
|
|
24
|
-
"@graphcommerce/magento-cart": "^4.
|
|
25
|
-
"@graphcommerce/magento-cart-shipping-address": "^3.0.
|
|
26
|
-
"@graphcommerce/magento-store": "^4.
|
|
27
|
-
"@graphcommerce/next-ui": "^4.
|
|
28
|
-
"@graphcommerce/react-hook-form": "^3.0.
|
|
29
|
-
"type-fest": "^2.12.0"
|
|
22
|
+
"@graphcommerce/framer-scroller": "^2.1.3",
|
|
23
|
+
"@graphcommerce/graphql": "^3.0.6",
|
|
24
|
+
"@graphcommerce/image": "^3.1.2",
|
|
25
|
+
"@graphcommerce/magento-cart": "^4.2.2",
|
|
26
|
+
"@graphcommerce/magento-cart-shipping-address": "^3.0.5",
|
|
27
|
+
"@graphcommerce/magento-store": "^4.1.4",
|
|
28
|
+
"@graphcommerce/next-ui": "^4.5.0",
|
|
29
|
+
"@graphcommerce/react-hook-form": "^3.0.6"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@lingui/macro": "^3.13.2",
|