@graphcommerce/magento-product-configurable 4.0.3 → 4.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.
- package/CHANGELOG.md +180 -288
- package/ConfigurableCartItem/{index.tsx → ConfigurableCartItem.tsx} +2 -2
- package/ConfigurableCartItem/OptionsList.tsx +1 -1
- package/ConfigurableContext/{index.tsx → ConfigurableContext.tsx} +26 -22
- package/ConfigurableContext/cheapestVariant.ts +3 -1
- package/ConfigurableOptions/{index.tsx → ConfigurableOptions.tsx} +4 -3
- package/ConfigurableProductAddToCart/ConfigurableProductAddToCart.tsx +10 -7
- package/ProductListItemConfigurable.tsx +5 -4
- package/SwatchList.tsx +2 -2
- package/Swatches/ColorSwatchData.tsx +1 -1
- package/Swatches/ImageSwatchData.tsx +1 -1
- package/Swatches/TextSwatchData.tsx +1 -1
- package/Swatches/{index.tsx → types.ts} +0 -0
- package/index.ts +4 -5
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,21 +1,59 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 4.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655) Thanks [@paales](https://github.com/paales)! - All default exports are now named exports internally and all `index.tsx` are renamed to the component name.
|
|
8
|
+
|
|
9
|
+
* [#1307](https://github.com/ho-nl/m2-pwa/pull/1307) [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef) Thanks [@paales](https://github.com/paales)! - upgrade dependencies
|
|
10
|
+
|
|
11
|
+
* Updated dependencies [[`3d63b39f7`](https://github.com/ho-nl/m2-pwa/commit/3d63b39f7e330d1827a32dba782667d7b21adaba), [`bd10506d3`](https://github.com/ho-nl/m2-pwa/commit/bd10506d32fdbc91d01dadc29a12ebd1e0943655), [`27cb1f2d8`](https://github.com/ho-nl/m2-pwa/commit/27cb1f2d8dbfb8f1b301ce56fb6a2b6c1fc6a5ef)]:
|
|
12
|
+
- @graphcommerce/next-ui@4.2.4
|
|
13
|
+
- @graphcommerce/graphql@3.0.4
|
|
14
|
+
- @graphcommerce/image@3.1.1
|
|
15
|
+
- @graphcommerce/magento-cart@4.1.4
|
|
16
|
+
- @graphcommerce/magento-cart-items@3.0.5
|
|
17
|
+
- @graphcommerce/magento-category@4.0.4
|
|
18
|
+
- @graphcommerce/magento-customer@4.1.4
|
|
19
|
+
- @graphcommerce/magento-product@4.0.6
|
|
20
|
+
- @graphcommerce/magento-product-simple@4.0.4
|
|
21
|
+
- @graphcommerce/magento-store@4.1.2
|
|
22
|
+
- @graphcommerce/react-hook-form@3.0.4
|
|
23
|
+
|
|
24
|
+
## 4.0.5
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- [#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
|
|
29
|
+
|
|
30
|
+
- 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)]:
|
|
31
|
+
- @graphcommerce/magento-cart@4.1.3
|
|
32
|
+
- @graphcommerce/magento-cart-items@3.0.4
|
|
33
|
+
- @graphcommerce/magento-customer@4.1.3
|
|
34
|
+
- @graphcommerce/magento-product@4.0.5
|
|
35
|
+
- @graphcommerce/next-ui@4.2.0
|
|
36
|
+
|
|
37
|
+
## 4.0.4
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- [#1285](https://github.com/ho-nl/m2-pwa/pull/1285) [`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017) Thanks [@paales](https://github.com/paales)! - upgraded dependencies
|
|
42
|
+
|
|
43
|
+
- Updated dependencies [[`ed9703b06`](https://github.com/ho-nl/m2-pwa/commit/ed9703b062d23ee01b1605ff9917c0ac3247fc25), [`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017)]:
|
|
44
|
+
- @graphcommerce/magento-store@4.1.0
|
|
45
|
+
- @graphcommerce/magento-product@4.0.4
|
|
46
|
+
- @graphcommerce/next-ui@4.1.3
|
|
47
|
+
|
|
3
48
|
## 4.0.3
|
|
4
49
|
|
|
5
50
|
### Patch Changes
|
|
6
51
|
|
|
7
|
-
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
|
|
8
|
-
Thanks [@paales](https://github.com/paales)! - made packages public
|
|
52
|
+
- [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
|
|
9
53
|
|
|
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
|
|
54
|
+
* [#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
55
|
|
|
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)]:
|
|
56
|
+
* 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
57
|
- @graphcommerce/graphql@3.0.3
|
|
20
58
|
- @graphcommerce/image@3.1.0
|
|
21
59
|
- @graphcommerce/magento-cart@4.1.2
|
|
@@ -32,35 +70,15 @@
|
|
|
32
70
|
|
|
33
71
|
### Patch Changes
|
|
34
72
|
|
|
35
|
-
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
various translations for english 🇺🇸🇬🇧 and dutch 🇳🇱
|
|
45
|
-
|
|
46
|
-
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
47
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
|
|
48
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to
|
|
49
|
-
[NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
|
|
50
|
-
implementing
|
|
51
|
-
[On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
|
|
52
|
-
soon.
|
|
53
|
-
|
|
54
|
-
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
|
|
55
|
-
frontend to be able to revalidate pages manually.
|
|
56
|
-
|
|
57
|
-
- Updated dependencies
|
|
58
|
-
[[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
|
|
59
|
-
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
|
|
60
|
-
[`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
|
|
61
|
-
[`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
|
|
62
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d),
|
|
63
|
-
[`5a4809b1a`](https://github.com/ho-nl/m2-pwa/commit/5a4809b1a705aa32f620f520085df48ee25f9949)]:
|
|
73
|
+
- [#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.
|
|
74
|
+
|
|
75
|
+
* [#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 🇳🇱
|
|
76
|
+
|
|
77
|
+
- [#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.
|
|
78
|
+
|
|
79
|
+
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.
|
|
80
|
+
|
|
81
|
+
- 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)]:
|
|
64
82
|
- @graphcommerce/magento-cart@4.1.1
|
|
65
83
|
- @graphcommerce/magento-customer@4.1.1
|
|
66
84
|
- @graphcommerce/next-ui@4.1.1
|
|
@@ -77,11 +95,8 @@
|
|
|
77
95
|
|
|
78
96
|
### Patch Changes
|
|
79
97
|
|
|
80
|
-
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
|
|
81
|
-
|
|
82
|
-
so that the packages link to back to the website and repository
|
|
83
|
-
- Updated dependencies
|
|
84
|
-
[[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
98
|
+
- [`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
|
|
99
|
+
- Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
85
100
|
- @graphcommerce/graphql@3.0.1
|
|
86
101
|
- @graphcommerce/image@3.0.1
|
|
87
102
|
- @graphcommerce/magento-cart@4.0.1
|
|
@@ -98,14 +113,11 @@
|
|
|
98
113
|
|
|
99
114
|
### Major Changes
|
|
100
115
|
|
|
101
|
-
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
|
|
102
|
-
[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
|
|
103
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
116
|
+
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258) [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05) Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
104
117
|
|
|
105
118
|
### Patch Changes
|
|
106
119
|
|
|
107
|
-
- Updated dependencies
|
|
108
|
-
[[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
120
|
+
- Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
109
121
|
- @graphcommerce/graphql@3.0.0
|
|
110
122
|
- @graphcommerce/image@3.0.0
|
|
111
123
|
- @graphcommerce/magento-cart@4.0.0
|
|
@@ -118,82 +130,67 @@
|
|
|
118
130
|
- @graphcommerce/next-ui@4.0.0
|
|
119
131
|
- @graphcommerce/react-hook-form@3.0.0
|
|
120
132
|
|
|
121
|
-
All notable changes to this project will be documented in this file. See
|
|
122
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
133
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
123
134
|
|
|
124
135
|
# [3.6.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@3.5.4...@graphcommerce/magento-product-configurable@3.6.0) (2021-12-01)
|
|
125
136
|
|
|
126
137
|
### Bug Fixes
|
|
127
138
|
|
|
128
|
-
- color swatch styling
|
|
129
|
-
|
|
130
|
-
- prevent layout shift helperText
|
|
131
|
-
([8ed0ad9](https://github.com/ho-nl/m2-pwa/commit/8ed0ad9589b742e456decb9b194091caf60e5db9))
|
|
139
|
+
- color swatch styling ([8cc1e2c](https://github.com/ho-nl/m2-pwa/commit/8cc1e2c1dcf58227d50cebca8794e3ca96c4c469))
|
|
140
|
+
- prevent layout shift helperText ([8ed0ad9](https://github.com/ho-nl/m2-pwa/commit/8ed0ad9589b742e456decb9b194091caf60e5db9))
|
|
132
141
|
|
|
133
142
|
### Features
|
|
134
143
|
|
|
135
|
-
- introduce borderRadius
|
|
136
|
-
([183afbc](https://github.com/ho-nl/m2-pwa/commit/183afbc8ee269f6694c372b06afdf41302f86c09))
|
|
144
|
+
- introduce borderRadius ([183afbc](https://github.com/ho-nl/m2-pwa/commit/183afbc8ee269f6694c372b06afdf41302f86c09))
|
|
137
145
|
|
|
138
146
|
# [3.5.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@3.4.7...@graphcommerce/magento-product-configurable@3.5.0) (2021-11-12)
|
|
139
147
|
|
|
140
148
|
### Features
|
|
141
149
|
|
|
142
|
-
- added tons of translations
|
|
143
|
-
([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
150
|
+
- added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
144
151
|
|
|
145
152
|
# [3.4.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@3.3.15...@graphcommerce/magento-product-configurable@3.4.0) (2021-11-09)
|
|
146
153
|
|
|
147
154
|
### Features
|
|
148
155
|
|
|
149
|
-
- **configurable-product:** disable invalid product options
|
|
150
|
-
([018a20e](https://github.com/ho-nl/m2-pwa/commit/018a20e1259863549c033dcc5c30deaae6625af9))
|
|
156
|
+
- **configurable-product:** disable invalid product options ([018a20e](https://github.com/ho-nl/m2-pwa/commit/018a20e1259863549c033dcc5c30deaae6625af9))
|
|
151
157
|
|
|
152
158
|
# [3.3.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@3.2.8...@graphcommerce/magento-product-configurable@3.3.0) (2021-11-02)
|
|
153
159
|
|
|
154
160
|
### Bug Fixes
|
|
155
161
|
|
|
156
|
-
- darkMode
|
|
157
|
-
|
|
158
|
-
-
|
|
159
|
-
([ae017c1](https://github.com/ho-nl/m2-pwa/commit/ae017c1a1e82f86ee5eb2f67106dac8174950c45))
|
|
160
|
-
- remove text='bold', make contained button text stronger by default
|
|
161
|
-
([cd277c9](https://github.com/ho-nl/m2-pwa/commit/cd277c9f434a4a765eac372467e5a05c822d5512))
|
|
162
|
+
- darkMode ([c7573de](https://github.com/ho-nl/m2-pwa/commit/c7573de6bb80643b26931c35ac61735539e7fbf0))
|
|
163
|
+
- darkTheme ([ae017c1](https://github.com/ho-nl/m2-pwa/commit/ae017c1a1e82f86ee5eb2f67106dac8174950c45))
|
|
164
|
+
- remove text='bold', make contained button text stronger by default ([cd277c9](https://github.com/ho-nl/m2-pwa/commit/cd277c9f434a4a765eac372467e5a05c822d5512))
|
|
162
165
|
|
|
163
166
|
### Features
|
|
164
167
|
|
|
165
|
-
- darkTheme
|
|
166
|
-
|
|
167
|
-
- darkTheme
|
|
168
|
-
([3ed6647](https://github.com/ho-nl/m2-pwa/commit/3ed664714670315bc9f20542549724f66cb5052d))
|
|
168
|
+
- darkTheme ([968f4f1](https://github.com/ho-nl/m2-pwa/commit/968f4f1360417bf7daa36454c19e6bc5cf53ae90))
|
|
169
|
+
- darkTheme ([3ed6647](https://github.com/ho-nl/m2-pwa/commit/3ed664714670315bc9f20542549724f66cb5052d))
|
|
169
170
|
|
|
170
171
|
## [3.2.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@3.2.2...@graphcommerce/magento-product-configurable@3.2.3) (2021-10-28)
|
|
171
172
|
|
|
172
173
|
### Bug Fixes
|
|
173
174
|
|
|
174
|
-
- small design changes
|
|
175
|
-
([d9936e9](https://github.com/ho-nl/m2-pwa/commit/d9936e90baab3694066d73216c9ad2941fdbaaa8))
|
|
175
|
+
- small design changes ([d9936e9](https://github.com/ho-nl/m2-pwa/commit/d9936e90baab3694066d73216c9ad2941fdbaaa8))
|
|
176
176
|
|
|
177
177
|
# [3.2.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@3.1.8...@graphcommerce/magento-product-configurable@3.2.0) (2021-10-27)
|
|
178
178
|
|
|
179
179
|
### Features
|
|
180
180
|
|
|
181
|
-
- **nextjs:** upgraded to nextjs 12
|
|
182
|
-
([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
181
|
+
- **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
183
182
|
|
|
184
183
|
## [3.1.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@3.1.1...@graphcommerce/magento-product-configurable@3.1.2) (2021-10-19)
|
|
185
184
|
|
|
186
185
|
### Bug Fixes
|
|
187
186
|
|
|
188
|
-
- build didn't succeed because of an unknown prop on MessageSnackbar
|
|
189
|
-
([4def2d1](https://github.com/ho-nl/m2-pwa/commit/4def2d16ad722e9dc9ae0fc63785107df2d83eab))
|
|
187
|
+
- build didn't succeed because of an unknown prop on MessageSnackbar ([4def2d1](https://github.com/ho-nl/m2-pwa/commit/4def2d16ad722e9dc9ae0fc63785107df2d83eab))
|
|
190
188
|
|
|
191
189
|
# [3.1.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@3.0.29...@graphcommerce/magento-product-configurable@3.1.0) (2021-10-18)
|
|
192
190
|
|
|
193
191
|
### Features
|
|
194
192
|
|
|
195
|
-
- **message-snackbar:** severity props
|
|
196
|
-
([c7be8a5](https://github.com/ho-nl/m2-pwa/commit/c7be8a51faf7a5937b7fab5bb352df2089ae4eea))
|
|
193
|
+
- **message-snackbar:** severity props ([c7be8a5](https://github.com/ho-nl/m2-pwa/commit/c7be8a51faf7a5937b7fab5bb352df2089ae4eea))
|
|
197
194
|
|
|
198
195
|
## [3.0.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@3.0.0...@graphcommerce/magento-product-configurable@3.0.1) (2021-09-27)
|
|
199
196
|
|
|
@@ -203,197 +200,108 @@ All notable changes to this project will be documented in this file. See
|
|
|
203
200
|
|
|
204
201
|
### Bug Fixes
|
|
205
202
|
|
|
206
|
-
- account tweaks
|
|
207
|
-
|
|
208
|
-
- add configurable product to cart
|
|
209
|
-
|
|
210
|
-
- add
|
|
211
|
-
|
|
212
|
-
-
|
|
213
|
-
|
|
214
|
-
- add to cart
|
|
215
|
-
|
|
216
|
-
-
|
|
217
|
-
|
|
218
|
-
- cart item
|
|
219
|
-
|
|
220
|
-
-
|
|
221
|
-
|
|
222
|
-
-
|
|
223
|
-
|
|
224
|
-
-
|
|
225
|
-
|
|
226
|
-
-
|
|
227
|
-
|
|
228
|
-
-
|
|
229
|
-
|
|
230
|
-
-
|
|
231
|
-
|
|
232
|
-
-
|
|
233
|
-
|
|
234
|
-
-
|
|
235
|
-
|
|
236
|
-
-
|
|
237
|
-
|
|
238
|
-
-
|
|
239
|
-
|
|
240
|
-
-
|
|
241
|
-
|
|
242
|
-
-
|
|
243
|
-
|
|
244
|
-
-
|
|
245
|
-
|
|
246
|
-
-
|
|
247
|
-
([c806d35](https://github.com/ho-nl/m2-pwa/commit/c806d358aed030c54d568275ee497f8cb9b01359))
|
|
248
|
-
- only cart should be fixed on scroll
|
|
249
|
-
([9c8f536](https://github.com/ho-nl/m2-pwa/commit/9c8f5366c53798b377dcf397822b0945774b1dce))
|
|
250
|
-
- option list left marge
|
|
251
|
-
([e6603f1](https://github.com/ho-nl/m2-pwa/commit/e6603f197ea1a5583a1874bd11d0984653237cd6))
|
|
252
|
-
- optionslist options aligment
|
|
253
|
-
([9c59f98](https://github.com/ho-nl/m2-pwa/commit/9c59f988a52886cfafddbb755a1bae1abb539510))
|
|
254
|
-
- paymentDone removed in favor of a more simple clearCart method
|
|
255
|
-
([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
|
|
256
|
-
- price display when selection gets too deep
|
|
257
|
-
([df85ba9](https://github.com/ho-nl/m2-pwa/commit/df85ba98112ed4f12881ae8bfe44cb63503560fe))
|
|
258
|
-
- product specs on product pages
|
|
259
|
-
([098798a](https://github.com/ho-nl/m2-pwa/commit/098798aec353a8a571928faae02a303fed395977))
|
|
260
|
-
- remove conflicting files
|
|
261
|
-
([0c17ae4](https://github.com/ho-nl/m2-pwa/commit/0c17ae46be62b775ac83b35f11c532ce2d9401a3))
|
|
262
|
-
- remove incorrectly cased copy of file
|
|
263
|
-
([8efe3d5](https://github.com/ho-nl/m2-pwa/commit/8efe3d53ab6ee8926791aeb03af0a8647563c3bf))
|
|
264
|
-
- remove magento-category package from magento-product solving a circular dependency
|
|
265
|
-
([7379e6e](https://github.com/ho-nl/m2-pwa/commit/7379e6ede4829392b35008c17743181d9cac0636))
|
|
266
|
-
- remove popover from configurable cart items
|
|
267
|
-
([90866a0](https://github.com/ho-nl/m2-pwa/commit/90866a07d43fae8fac1c633f123fb4c4d910a2a9))
|
|
268
|
-
- rename NextButton to Button, change imports
|
|
269
|
-
([976adb0](https://github.com/ho-nl/m2-pwa/commit/976adb0bf906310d1efce888dcc9be1e28ce0f1b))
|
|
270
|
-
- rename optionSectionLabels
|
|
271
|
-
([9aea1bc](https://github.com/ho-nl/m2-pwa/commit/9aea1bc7f12eca93ed5acc7d58ec7376d539a346))
|
|
272
|
-
- rename product prop to name
|
|
273
|
-
([9b7ed5a](https://github.com/ho-nl/m2-pwa/commit/9b7ed5a03747211c3f93d2628110ab6bfac4d552))
|
|
274
|
-
- since all links are of next/link we need to add passHref for custom components
|
|
275
|
-
([16fb931](https://github.com/ho-nl/m2-pwa/commit/16fb93100d367203ea79bb4f93357221253f2ecd))
|
|
276
|
-
- unused swatches should not show up
|
|
277
|
-
([86a06fb](https://github.com/ho-nl/m2-pwa/commit/86a06fb3a7e0232611b8bb4971cadbcfd94ae525))
|
|
278
|
-
- update magento-product imports
|
|
279
|
-
([63621b4](https://github.com/ho-nl/m2-pwa/commit/63621b44be7149014f4a5af8ac87ad1c4b0327be))
|
|
280
|
-
- use label instead of attribute_code
|
|
281
|
-
([99cecc9](https://github.com/ho-nl/m2-pwa/commit/99cecc9aa5dfa41c7b375cb7e36e0d69fdcf6aed))
|
|
282
|
-
- wrong casing
|
|
283
|
-
([ba64fc1](https://github.com/ho-nl/m2-pwa/commit/ba64fc182033b19ce4fc9294bd14eb457de05d48))
|
|
284
|
-
- wrong casing
|
|
285
|
-
([1507860](https://github.com/ho-nl/m2-pwa/commit/1507860a0b0917f8a139b17f82b8bf9e03146603))
|
|
286
|
-
- yarn workspace packages hot reload
|
|
287
|
-
([d03fc9f](https://github.com/ho-nl/m2-pwa/commit/d03fc9fdda3486476761786f2b56a934cc92befc))
|
|
203
|
+
- account tweaks ([26ca295](https://github.com/ho-nl/m2-pwa/commit/26ca2955fe7a3ed509aaa7df98cbb4854d636179))
|
|
204
|
+
- add configurable product to cart ([5b0f6fe](https://github.com/ho-nl/m2-pwa/commit/5b0f6fee6a59ff0b228c47bb124378cd23047adf))
|
|
205
|
+
- add correct configurable product to cart ([0982a6a](https://github.com/ho-nl/m2-pwa/commit/0982a6a548414e2159dab101870f495dffeedda8))
|
|
206
|
+
- add error message to configurable product ([1d0be27](https://github.com/ho-nl/m2-pwa/commit/1d0be2710fbf7e3186d119ccc53606b526858d43))
|
|
207
|
+
- add to cart error margin bottom ([0fa1672](https://github.com/ho-nl/m2-pwa/commit/0fa167258d2eae8199a04035f29858b81df67e6a))
|
|
208
|
+
- address fragments ([96e68c3](https://github.com/ho-nl/m2-pwa/commit/96e68c3f96e40dded50ec5859909a7326b47e37b))
|
|
209
|
+
- cart item styling ([1def7f4](https://github.com/ho-nl/m2-pwa/commit/1def7f49ad4dd621aff6cfd058acc489e522650f))
|
|
210
|
+
- category children and swatch renderer ([1ee008d](https://github.com/ho-nl/m2-pwa/commit/1ee008d9ecf3bf5ec4b2d82243e4bcbbec384411))
|
|
211
|
+
- **configurable-product-add-to-cart:** don't show success message when add to cart fails ([1095581](https://github.com/ho-nl/m2-pwa/commit/10955819d720b84c85b7870dc6cd2d7bc34f7dc5))
|
|
212
|
+
- **configurable:** fall back to text swatch when no swatch_data is set ([8cdc6e6](https://github.com/ho-nl/m2-pwa/commit/8cdc6e61c273601eff8486aecbfc9b9bd6adefad))
|
|
213
|
+
- correct pdp swatch selected color ([d3c9285](https://github.com/ho-nl/m2-pwa/commit/d3c9285fb1ba3a0b99ba52a04b0dda3b5870dede))
|
|
214
|
+
- don't show store label if it is the same als the swatch value ([03d5449](https://github.com/ho-nl/m2-pwa/commit/03d5449e36f70379c2f55d363f0ff382d60f5d64))
|
|
215
|
+
- dynamic configurable cart item options ([d2cc538](https://github.com/ho-nl/m2-pwa/commit/d2cc5383800ca19baa267da7808005c910dfbf62))
|
|
216
|
+
- formatting of text swatch label ([ee8f8fd](https://github.com/ho-nl/m2-pwa/commit/ee8f8fd6351ca82bf1b33514e4b1fcab4a04afa9))
|
|
217
|
+
- icon alignments & sizes ([3b349c9](https://github.com/ho-nl/m2-pwa/commit/3b349c96f08f25cad892cf224ee76e937fb338b8))
|
|
218
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
219
|
+
- implement next-ui barrel imports ([75bea70](https://github.com/ho-nl/m2-pwa/commit/75bea703dba898f18a2a1dfa3243ebd0a4e6f0e1))
|
|
220
|
+
- make sure an empty cart gets initialized properly ([12df845](https://github.com/ho-nl/m2-pwa/commit/12df8456117393cc7c387ba6e072190a831b7a58))
|
|
221
|
+
- messagesnackbar text alignment ([1314d64](https://github.com/ho-nl/m2-pwa/commit/1314d642a776707462709df380f6fa7fee40ca9d))
|
|
222
|
+
- missing NoOrdersFound export ([81e1177](https://github.com/ho-nl/m2-pwa/commit/81e1177dfa6347b310ec5cf4a7085edec7c86497))
|
|
223
|
+
- **next-ui:** toggle button stylign ([c806d35](https://github.com/ho-nl/m2-pwa/commit/c806d358aed030c54d568275ee497f8cb9b01359))
|
|
224
|
+
- only cart should be fixed on scroll ([9c8f536](https://github.com/ho-nl/m2-pwa/commit/9c8f5366c53798b377dcf397822b0945774b1dce))
|
|
225
|
+
- option list left marge ([e6603f1](https://github.com/ho-nl/m2-pwa/commit/e6603f197ea1a5583a1874bd11d0984653237cd6))
|
|
226
|
+
- optionslist options aligment ([9c59f98](https://github.com/ho-nl/m2-pwa/commit/9c59f988a52886cfafddbb755a1bae1abb539510))
|
|
227
|
+
- paymentDone removed in favor of a more simple clearCart method ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
|
|
228
|
+
- price display when selection gets too deep ([df85ba9](https://github.com/ho-nl/m2-pwa/commit/df85ba98112ed4f12881ae8bfe44cb63503560fe))
|
|
229
|
+
- product specs on product pages ([098798a](https://github.com/ho-nl/m2-pwa/commit/098798aec353a8a571928faae02a303fed395977))
|
|
230
|
+
- remove conflicting files ([0c17ae4](https://github.com/ho-nl/m2-pwa/commit/0c17ae46be62b775ac83b35f11c532ce2d9401a3))
|
|
231
|
+
- remove incorrectly cased copy of file ([8efe3d5](https://github.com/ho-nl/m2-pwa/commit/8efe3d53ab6ee8926791aeb03af0a8647563c3bf))
|
|
232
|
+
- remove magento-category package from magento-product solving a circular dependency ([7379e6e](https://github.com/ho-nl/m2-pwa/commit/7379e6ede4829392b35008c17743181d9cac0636))
|
|
233
|
+
- remove popover from configurable cart items ([90866a0](https://github.com/ho-nl/m2-pwa/commit/90866a07d43fae8fac1c633f123fb4c4d910a2a9))
|
|
234
|
+
- rename NextButton to Button, change imports ([976adb0](https://github.com/ho-nl/m2-pwa/commit/976adb0bf906310d1efce888dcc9be1e28ce0f1b))
|
|
235
|
+
- rename optionSectionLabels ([9aea1bc](https://github.com/ho-nl/m2-pwa/commit/9aea1bc7f12eca93ed5acc7d58ec7376d539a346))
|
|
236
|
+
- rename product prop to name ([9b7ed5a](https://github.com/ho-nl/m2-pwa/commit/9b7ed5a03747211c3f93d2628110ab6bfac4d552))
|
|
237
|
+
- since all links are of next/link we need to add passHref for custom components ([16fb931](https://github.com/ho-nl/m2-pwa/commit/16fb93100d367203ea79bb4f93357221253f2ecd))
|
|
238
|
+
- unused swatches should not show up ([86a06fb](https://github.com/ho-nl/m2-pwa/commit/86a06fb3a7e0232611b8bb4971cadbcfd94ae525))
|
|
239
|
+
- update magento-product imports ([63621b4](https://github.com/ho-nl/m2-pwa/commit/63621b44be7149014f4a5af8ac87ad1c4b0327be))
|
|
240
|
+
- use label instead of attribute_code ([99cecc9](https://github.com/ho-nl/m2-pwa/commit/99cecc9aa5dfa41c7b375cb7e36e0d69fdcf6aed))
|
|
241
|
+
- wrong casing ([ba64fc1](https://github.com/ho-nl/m2-pwa/commit/ba64fc182033b19ce4fc9294bd14eb457de05d48))
|
|
242
|
+
- wrong casing ([1507860](https://github.com/ho-nl/m2-pwa/commit/1507860a0b0917f8a139b17f82b8bf9e03146603))
|
|
243
|
+
- yarn workspace packages hot reload ([d03fc9f](https://github.com/ho-nl/m2-pwa/commit/d03fc9fdda3486476761786f2b56a934cc92befc))
|
|
288
244
|
|
|
289
245
|
### Features
|
|
290
246
|
|
|
291
|
-
- add add-to-cart snackbar message
|
|
292
|
-
|
|
293
|
-
- add
|
|
294
|
-
|
|
295
|
-
- add
|
|
296
|
-
|
|
297
|
-
- add
|
|
298
|
-
|
|
299
|
-
- add
|
|
300
|
-
|
|
301
|
-
-
|
|
302
|
-
|
|
303
|
-
-
|
|
304
|
-
|
|
305
|
-
-
|
|
306
|
-
|
|
307
|
-
-
|
|
308
|
-
|
|
309
|
-
-
|
|
310
|
-
|
|
311
|
-
-
|
|
312
|
-
|
|
313
|
-
-
|
|
314
|
-
|
|
315
|
-
-
|
|
316
|
-
|
|
317
|
-
- **
|
|
318
|
-
|
|
319
|
-
-
|
|
320
|
-
|
|
321
|
-
-
|
|
322
|
-
|
|
323
|
-
-
|
|
324
|
-
|
|
325
|
-
-
|
|
326
|
-
|
|
327
|
-
-
|
|
328
|
-
|
|
329
|
-
- **
|
|
330
|
-
|
|
331
|
-
-
|
|
332
|
-
|
|
333
|
-
-
|
|
334
|
-
([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
|
|
335
|
-
- implemented checkmo payment method
|
|
336
|
-
([18525b2](https://github.com/ho-nl/m2-pwa/commit/18525b2f4efe9bd0eea12a7a992d284f341e0c68))
|
|
337
|
-
- introduced magento-product-types package
|
|
338
|
-
([1a0932b](https://github.com/ho-nl/m2-pwa/commit/1a0932b5d882608dcf8fd2e3b17ee9868f5f5776))
|
|
339
|
-
- introduces framer-next-pages and framer-sheet to next-ui and soxbase package
|
|
340
|
-
([e04ad8a](https://github.com/ho-nl/m2-pwa/commit/e04ad8a94cd1fd5a7c5575c9db7916b6e8a88f16))
|
|
341
|
-
- introducing useAutoSubmit for useForm to handle shipping address step
|
|
342
|
-
([d375a12](https://github.com/ho-nl/m2-pwa/commit/d375a123d5ba88285703fc1706a43c21c5a248d5))
|
|
343
|
-
- **magento-graphql:** added core magentoTypePolicies
|
|
344
|
-
([bdf15d0](https://github.com/ho-nl/m2-pwa/commit/bdf15d0d3c04e88339a8385d76f3b1ab9589fde3))
|
|
345
|
-
- make action optional in snackbar
|
|
346
|
-
([70cf9a4](https://github.com/ho-nl/m2-pwa/commit/70cf9a456e483040b2aad087a9cc01ecf85fe4c8))
|
|
347
|
-
- **next-ui:** SectionContainer/SectionHeader now accepts variantLeft/variantRight as prop
|
|
348
|
-
([a58f8f2](https://github.com/ho-nl/m2-pwa/commit/a58f8f2962e74c9aaa41142524d42d9c8f662b8d))
|
|
349
|
-
- next.js 11
|
|
350
|
-
([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
|
351
|
-
- **playwright:** add github action
|
|
352
|
-
([0ef1094](https://github.com/ho-nl/m2-pwa/commit/0ef109400488869b40e1cc973effeb5976a2adb9))
|
|
353
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
354
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
355
|
-
- product delivery component for sidebar
|
|
356
|
-
([caa9809](https://github.com/ho-nl/m2-pwa/commit/caa9809d6c10570cb47e58c5e8191c40f20f1dbe))
|
|
357
|
-
- renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
|
|
358
|
-
[@reachdigital](https://github.com/reachdigital)
|
|
359
|
-
([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
360
|
-
- schema.org data on products
|
|
361
|
-
([5f158a9](https://github.com/ho-nl/m2-pwa/commit/5f158a93eef2407249b881ec804e45b07b0caab9))
|
|
362
|
-
- Setup textswatch to show prices and delivery
|
|
363
|
-
([10eddf9](https://github.com/ho-nl/m2-pwa/commit/10eddf91875265a9ea605d9bca5c29645d66c535))
|
|
364
|
-
- svgimage component
|
|
365
|
-
([f369605](https://github.com/ho-nl/m2-pwa/commit/f3696051e381a24c543fd24e199da5b17f9e124f))
|
|
366
|
-
- **theme:** restructured fonts and applied to home and category page
|
|
367
|
-
([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
|
|
368
|
-
- **theme:** restructured typography
|
|
369
|
-
([6fcddae](https://github.com/ho-nl/m2-pwa/commit/6fcddae6b1b54d071475c59c80a9f8d8a36294d5))
|
|
370
|
-
- upgrade to node 14
|
|
371
|
-
([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
|
|
372
|
-
- upgraded to nextjs 11
|
|
373
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
374
|
-
- useFormMutationCart and simpler imports
|
|
375
|
-
([012f090](https://github.com/ho-nl/m2-pwa/commit/012f090e8f54d09f35d393c61ad1e2319f5a90ff))
|
|
376
|
-
- useFormPersist, useFormAutoSubmit, useFormGqlMutation everywhere
|
|
377
|
-
([e591285](https://github.com/ho-nl/m2-pwa/commit/e5912854babee87c8efc5b7c00455d61b301aad3))
|
|
247
|
+
- add add-to-cart snackbar message ([0644de5](https://github.com/ho-nl/m2-pwa/commit/0644de5acccada024eda2b5c92b52536a1da5385))
|
|
248
|
+
- add add-to-cart snackbar to all products ([e9570fd](https://github.com/ho-nl/m2-pwa/commit/e9570fdb55331b2a790f8910c0722dba83480f64))
|
|
249
|
+
- add barrel file for magento-category ([c5ba8c9](https://github.com/ho-nl/m2-pwa/commit/c5ba8c98cbb8192f1c1c85242ff6efa83b1fbdcc))
|
|
250
|
+
- add barrel file for magento-customer ([02fb7f0](https://github.com/ho-nl/m2-pwa/commit/02fb7f004de968ee968b00e364b2b370f4f7d4f1))
|
|
251
|
+
- add finalprice & as-low-as price to sidebar ([0c2e8d6](https://github.com/ho-nl/m2-pwa/commit/0c2e8d6a93bb557ad7c0ad417021758f90f112ea))
|
|
252
|
+
- add optional end labels for sectionheaders ([a224170](https://github.com/ho-nl/m2-pwa/commit/a22417047afaa91dc1a337edbc0bdb1ba9c2e248))
|
|
253
|
+
- add product review summary to config-product ([30e17a6](https://github.com/ho-nl/m2-pwa/commit/30e17a6a6c72cb4cc9fb92e9c0f6da2cd346280e))
|
|
254
|
+
- add product-review to renderers and products ([1a9b84b](https://github.com/ho-nl/m2-pwa/commit/1a9b84b6b7de213e82f0c86106eea4b79f38f864))
|
|
255
|
+
- add review swatch to grid view ([6e22427](https://github.com/ho-nl/m2-pwa/commit/6e224276a3253f86f4da028cbd76b29e2e2f7884))
|
|
256
|
+
- add sectioncontainer to configurableoptions ([9ed8419](https://github.com/ho-nl/m2-pwa/commit/9ed841972361cab81699d827ee80cf5dd73c1fd7))
|
|
257
|
+
- added PaymentModule API and persistent selection of form fields ([b67f735](https://github.com/ho-nl/m2-pwa/commit/b67f7358f62edd56a8232d625ecee56af350bfb8))
|
|
258
|
+
- barrel files for magento-product pages ([c8fdcf2](https://github.com/ho-nl/m2-pwa/commit/c8fdcf2f5b98821dffe2c47f5ea4e1847bd3bb1e))
|
|
259
|
+
- better 404 handling and simplified getStaticProps ([321ace1](https://github.com/ho-nl/m2-pwa/commit/321ace1850642ee3eddfa674c37e6fca8adcdb74))
|
|
260
|
+
- **cart:** when a cart is not active anymore show a clear cart button ([5d04a14](https://github.com/ho-nl/m2-pwa/commit/5d04a14726c040b20b34c0b88f923aee1dff22e5))
|
|
261
|
+
- configurable product form ([dae6f10](https://github.com/ho-nl/m2-pwa/commit/dae6f10e4b8655761900c7ce3028605efe8e154a))
|
|
262
|
+
- configurable product page ([486d5b4](https://github.com/ho-nl/m2-pwa/commit/486d5b448b854b5c9482b1313b7888b7f0743502))
|
|
263
|
+
- created stacked-pages package ([d86008e](https://github.com/ho-nl/m2-pwa/commit/d86008ee659ccb25b194a41d624b394a1ddbd088))
|
|
264
|
+
- form styling consistency ([87cba85](https://github.com/ho-nl/m2-pwa/commit/87cba85e828fa42a02dfe74ac841aa2b39a60f4e))
|
|
265
|
+
- function to get correct prices for selection ([569654e](https://github.com/ho-nl/m2-pwa/commit/569654e98147da3f6f26217e70cbc2dbc6b56355))
|
|
266
|
+
- **graphql:** introduced new graphql package that holds all generated files ([a3e7aa0](https://github.com/ho-nl/m2-pwa/commit/a3e7aa05540540533b5ced9a95f1f802ecbe499f))
|
|
267
|
+
- groundwork for complete reimplementation of product pages ([b224da8](https://github.com/ho-nl/m2-pwa/commit/b224da8273eb5c8173ad30d006391b2291331623))
|
|
268
|
+
- **image:** introduced completely rewritten Image component ([e3413b3](https://github.com/ho-nl/m2-pwa/commit/e3413b3a57392d6571ea64cb8d9c8dca05ea31df))
|
|
269
|
+
- implemented checkmo payment method ([18525b2](https://github.com/ho-nl/m2-pwa/commit/18525b2f4efe9bd0eea12a7a992d284f341e0c68))
|
|
270
|
+
- introduced magento-product-types package ([1a0932b](https://github.com/ho-nl/m2-pwa/commit/1a0932b5d882608dcf8fd2e3b17ee9868f5f5776))
|
|
271
|
+
- introduces framer-next-pages and framer-sheet to next-ui and soxbase package ([e04ad8a](https://github.com/ho-nl/m2-pwa/commit/e04ad8a94cd1fd5a7c5575c9db7916b6e8a88f16))
|
|
272
|
+
- introducing useAutoSubmit for useForm to handle shipping address step ([d375a12](https://github.com/ho-nl/m2-pwa/commit/d375a123d5ba88285703fc1706a43c21c5a248d5))
|
|
273
|
+
- **magento-graphql:** added core magentoTypePolicies ([bdf15d0](https://github.com/ho-nl/m2-pwa/commit/bdf15d0d3c04e88339a8385d76f3b1ab9589fde3))
|
|
274
|
+
- make action optional in snackbar ([70cf9a4](https://github.com/ho-nl/m2-pwa/commit/70cf9a456e483040b2aad087a9cc01ecf85fe4c8))
|
|
275
|
+
- **next-ui:** SectionContainer/SectionHeader now accepts variantLeft/variantRight as prop ([a58f8f2](https://github.com/ho-nl/m2-pwa/commit/a58f8f2962e74c9aaa41142524d42d9c8f662b8d))
|
|
276
|
+
- next.js 11 ([7d61407](https://github.com/ho-nl/m2-pwa/commit/7d614075a778f488045034f74be4f75b93f63c43))
|
|
277
|
+
- **playwright:** add github action ([0ef1094](https://github.com/ho-nl/m2-pwa/commit/0ef109400488869b40e1cc973effeb5976a2adb9))
|
|
278
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
279
|
+
- product delivery component for sidebar ([caa9809](https://github.com/ho-nl/m2-pwa/commit/caa9809d6c10570cb47e58c5e8191c40f20f1dbe))
|
|
280
|
+
- 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))
|
|
281
|
+
- schema.org data on products ([5f158a9](https://github.com/ho-nl/m2-pwa/commit/5f158a93eef2407249b881ec804e45b07b0caab9))
|
|
282
|
+
- Setup textswatch to show prices and delivery ([10eddf9](https://github.com/ho-nl/m2-pwa/commit/10eddf91875265a9ea605d9bca5c29645d66c535))
|
|
283
|
+
- svgimage component ([f369605](https://github.com/ho-nl/m2-pwa/commit/f3696051e381a24c543fd24e199da5b17f9e124f))
|
|
284
|
+
- **theme:** restructured fonts and applied to home and category page ([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
|
|
285
|
+
- **theme:** restructured typography ([6fcddae](https://github.com/ho-nl/m2-pwa/commit/6fcddae6b1b54d071475c59c80a9f8d8a36294d5))
|
|
286
|
+
- upgrade to node 14 ([d079a75](https://github.com/ho-nl/m2-pwa/commit/d079a751e9bfd8dc7f5009d2c9f31c336a0c96ab))
|
|
287
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
288
|
+
- useFormMutationCart and simpler imports ([012f090](https://github.com/ho-nl/m2-pwa/commit/012f090e8f54d09f35d393c61ad1e2319f5a90ff))
|
|
289
|
+
- useFormPersist, useFormAutoSubmit, useFormGqlMutation everywhere ([e591285](https://github.com/ho-nl/m2-pwa/commit/e5912854babee87c8efc5b7c00455d61b301aad3))
|
|
378
290
|
|
|
379
291
|
### Reverts
|
|
380
292
|
|
|
381
|
-
- Revert "chore: upgrade @apollo/client"
|
|
382
|
-
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
293
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
383
294
|
|
|
384
295
|
## 2.0.8 (2020-10-28)
|
|
385
296
|
|
|
386
297
|
### Bug Fixes
|
|
387
298
|
|
|
388
|
-
- make sure themes extensions are found
|
|
389
|
-
([5aa18db](https://github.com/ho-nl/m2-pwa/commit/5aa18db514fd2e2f50681367e39523f8e742ece0))
|
|
299
|
+
- make sure themes extensions are found ([5aa18db](https://github.com/ho-nl/m2-pwa/commit/5aa18db514fd2e2f50681367e39523f8e742ece0))
|
|
390
300
|
|
|
391
301
|
### Features
|
|
392
302
|
|
|
393
|
-
- added generated graphql.ts files
|
|
394
|
-
|
|
395
|
-
- split into packages
|
|
396
|
-
([2ee7fd6](https://github.com/ho-nl/m2-pwa/commit/2ee7fd6c0056f467d114f04d92c6c0ddf622d151))
|
|
303
|
+
- added generated graphql.ts files ([3e44415](https://github.com/ho-nl/m2-pwa/commit/3e44415b018e74b502e9e98479aa5e84041f337d))
|
|
304
|
+
- split into packages ([2ee7fd6](https://github.com/ho-nl/m2-pwa/commit/2ee7fd6c0056f467d114f04d92c6c0ddf622d151))
|
|
397
305
|
|
|
398
306
|
### BREAKING CHANGES
|
|
399
307
|
|
|
@@ -401,15 +309,13 @@ All notable changes to this project will be documented in this file. See
|
|
|
401
309
|
|
|
402
310
|
# Change Log
|
|
403
311
|
|
|
404
|
-
All notable changes to this project will be documented in this file. See
|
|
405
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
312
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
406
313
|
|
|
407
314
|
## [2.103.19](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@2.103.18...@graphcommerce/magento-product-configurable@2.103.19) (2021-09-24)
|
|
408
315
|
|
|
409
316
|
### Bug Fixes
|
|
410
317
|
|
|
411
|
-
- remove popover from configurable cart items
|
|
412
|
-
([90866a0](https://github.com/ho-nl/m2-pwa/commit/90866a07d43fae8fac1c633f123fb4c4d910a2a9))
|
|
318
|
+
- remove popover from configurable cart items ([90866a0](https://github.com/ho-nl/m2-pwa/commit/90866a07d43fae8fac1c633f123fb4c4d910a2a9))
|
|
413
319
|
|
|
414
320
|
## [2.103.7](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@2.103.6...@graphcommerce/magento-product-configurable@2.103.7) (2021-08-17)
|
|
415
321
|
|
|
@@ -417,81 +323,67 @@ All notable changes to this project will be documented in this file. See
|
|
|
417
323
|
|
|
418
324
|
### Bug Fixes
|
|
419
325
|
|
|
420
|
-
- unused swatches should not show up
|
|
421
|
-
([86a06fb](https://github.com/ho-nl/m2-pwa/commit/86a06fb3a7e0232611b8bb4971cadbcfd94ae525))
|
|
326
|
+
- unused swatches should not show up ([86a06fb](https://github.com/ho-nl/m2-pwa/commit/86a06fb3a7e0232611b8bb4971cadbcfd94ae525))
|
|
422
327
|
|
|
423
328
|
## [2.103.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@2.103.0...@graphcommerce/magento-product-configurable@2.103.1) (2021-08-12)
|
|
424
329
|
|
|
425
330
|
### Bug Fixes
|
|
426
331
|
|
|
427
|
-
- account tweaks
|
|
428
|
-
([26ca295](https://github.com/ho-nl/m2-pwa/commit/26ca2955fe7a3ed509aaa7df98cbb4854d636179))
|
|
332
|
+
- account tweaks ([26ca295](https://github.com/ho-nl/m2-pwa/commit/26ca2955fe7a3ed509aaa7df98cbb4854d636179))
|
|
429
333
|
|
|
430
334
|
# [2.103.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@2.102.3...@graphcommerce/magento-product-configurable@2.103.0) (2021-08-12)
|
|
431
335
|
|
|
432
336
|
### Features
|
|
433
337
|
|
|
434
|
-
- upgraded to nextjs 11
|
|
435
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
338
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
436
339
|
|
|
437
340
|
## [2.102.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@2.102.1...@graphcommerce/magento-product-configurable@2.102.2) (2021-08-09)
|
|
438
341
|
|
|
439
342
|
### Reverts
|
|
440
343
|
|
|
441
|
-
- Revert "chore: upgrade @apollo/client"
|
|
442
|
-
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
344
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
443
345
|
|
|
444
346
|
# [2.102.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@2.101.6...@graphcommerce/magento-product-configurable@2.102.0) (2021-08-06)
|
|
445
347
|
|
|
446
348
|
### Features
|
|
447
349
|
|
|
448
|
-
- **theme:** restructured fonts and applied to home and category page
|
|
449
|
-
|
|
450
|
-
- **theme:** restructured typography
|
|
451
|
-
([6fcddae](https://github.com/ho-nl/m2-pwa/commit/6fcddae6b1b54d071475c59c80a9f8d8a36294d5))
|
|
350
|
+
- **theme:** restructured fonts and applied to home and category page ([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
|
|
351
|
+
- **theme:** restructured typography ([6fcddae](https://github.com/ho-nl/m2-pwa/commit/6fcddae6b1b54d071475c59c80a9f8d8a36294d5))
|
|
452
352
|
|
|
453
353
|
## [2.101.5](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@2.101.4...@graphcommerce/magento-product-configurable@2.101.5) (2021-08-03)
|
|
454
354
|
|
|
455
355
|
### Bug Fixes
|
|
456
356
|
|
|
457
|
-
- remove magento-category package from magento-product solving a circular dependency
|
|
458
|
-
([7379e6e](https://github.com/ho-nl/m2-pwa/commit/7379e6ede4829392b35008c17743181d9cac0636))
|
|
357
|
+
- remove magento-category package from magento-product solving a circular dependency ([7379e6e](https://github.com/ho-nl/m2-pwa/commit/7379e6ede4829392b35008c17743181d9cac0636))
|
|
459
358
|
|
|
460
359
|
## [2.101.3](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@2.101.2...@graphcommerce/magento-product-configurable@2.101.3) (2021-07-29)
|
|
461
360
|
|
|
462
361
|
### Bug Fixes
|
|
463
362
|
|
|
464
|
-
- paymentDone removed in favor of a more simple clearCart method
|
|
465
|
-
([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
|
|
363
|
+
- paymentDone removed in favor of a more simple clearCart method ([5314f77](https://github.com/ho-nl/m2-pwa/commit/5314f7752c2f75a55dcd926bfc26607124561e5d))
|
|
466
364
|
|
|
467
365
|
# [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@2.100.20...@graphcommerce/magento-product-configurable@2.101.0) (2021-07-26)
|
|
468
366
|
|
|
469
367
|
### Features
|
|
470
368
|
|
|
471
|
-
- **playwright:** add github action
|
|
472
|
-
|
|
473
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
474
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
369
|
+
- **playwright:** add github action ([0ef1094](https://github.com/ho-nl/m2-pwa/commit/0ef109400488869b40e1cc973effeb5976a2adb9))
|
|
370
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
475
371
|
|
|
476
372
|
## [2.100.18](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@2.100.17...@graphcommerce/magento-product-configurable@2.100.18) (2021-07-23)
|
|
477
373
|
|
|
478
374
|
### Bug Fixes
|
|
479
375
|
|
|
480
|
-
- missing NoOrdersFound export
|
|
481
|
-
([81e1177](https://github.com/ho-nl/m2-pwa/commit/81e1177dfa6347b310ec5cf4a7085edec7c86497))
|
|
376
|
+
- missing NoOrdersFound export ([81e1177](https://github.com/ho-nl/m2-pwa/commit/81e1177dfa6347b310ec5cf4a7085edec7c86497))
|
|
482
377
|
|
|
483
378
|
## [2.100.12](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@2.100.11...@graphcommerce/magento-product-configurable@2.100.12) (2021-07-20)
|
|
484
379
|
|
|
485
380
|
### Bug Fixes
|
|
486
381
|
|
|
487
|
-
- only cart should be fixed on scroll
|
|
488
|
-
([9c8f536](https://github.com/ho-nl/m2-pwa/commit/9c8f5366c53798b377dcf397822b0945774b1dce))
|
|
382
|
+
- only cart should be fixed on scroll ([9c8f536](https://github.com/ho-nl/m2-pwa/commit/9c8f5366c53798b377dcf397822b0945774b1dce))
|
|
489
383
|
|
|
490
384
|
## [2.100.11](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-configurable@2.100.10...@graphcommerce/magento-product-configurable@2.100.11) (2021-07-20)
|
|
491
385
|
|
|
492
386
|
### Bug Fixes
|
|
493
387
|
|
|
494
|
-
- **configurable-product-add-to-cart:** don't show success message when add to cart fails
|
|
495
|
-
|
|
496
|
-
- ignore md files from triggering version updates
|
|
497
|
-
([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
388
|
+
- **configurable-product-add-to-cart:** don't show success message when add to cart fails ([1095581](https://github.com/ho-nl/m2-pwa/commit/10955819d720b84c85b7870dc6cd2d7bc34f7dc5))
|
|
389
|
+
- ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CartItem, CartItemProps } from '@graphcommerce/magento-cart-items'
|
|
2
2
|
import { ConfigurableCartItemFragment } from './ConfigurableCartItem.gql'
|
|
3
|
-
import OptionsList from './OptionsList'
|
|
3
|
+
import { OptionsList } from './OptionsList'
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export function ConfigurableCartItem(props: ConfigurableCartItemFragment & CartItemProps) {
|
|
6
6
|
const { configurable_options, ...cartItemProps } = props
|
|
7
7
|
return (
|
|
8
8
|
<CartItem {...cartItemProps} withOptions>
|
|
@@ -10,7 +10,7 @@ const name = 'ColorSwatchData' as const
|
|
|
10
10
|
const parts = ['root', 'option'] as const
|
|
11
11
|
const { classes } = extendableComponent(name, parts)
|
|
12
12
|
|
|
13
|
-
export
|
|
13
|
+
export function OptionsList(props: CartItemOptionsListProps) {
|
|
14
14
|
const { configurable_options, sx = [] } = props
|
|
15
15
|
|
|
16
16
|
return (
|
|
@@ -7,10 +7,9 @@ import {
|
|
|
7
7
|
Dispatch,
|
|
8
8
|
SetStateAction,
|
|
9
9
|
useMemo,
|
|
10
|
+
useCallback,
|
|
10
11
|
} from 'react'
|
|
11
12
|
import { ConfigurableProductFormFragment } from './ConfigurableProductForm.gql'
|
|
12
|
-
|
|
13
|
-
// todo: fix dependency cycle
|
|
14
13
|
import cheapestVariant from './cheapestVariant'
|
|
15
14
|
|
|
16
15
|
type ConfigurableProductFormProps = ConfigurableProductFormFragment & { sku: string }
|
|
@@ -115,7 +114,7 @@ function traverseAttrTree(selection: Selected, attrTree: AttributeTree | undefin
|
|
|
115
114
|
return variantList
|
|
116
115
|
}
|
|
117
116
|
|
|
118
|
-
export
|
|
117
|
+
export function ConfigurableContextProvider(
|
|
119
118
|
props: PropsWithChildren<ConfigurableProductFormProps>,
|
|
120
119
|
) {
|
|
121
120
|
const { children, sku, configurable_options, variants: providedVariants } = props
|
|
@@ -129,31 +128,36 @@ export default function ConfigurableContextProvider(
|
|
|
129
128
|
[configurable_options, providedVariants],
|
|
130
129
|
)
|
|
131
130
|
|
|
132
|
-
const getVariants: GetVariants = (
|
|
131
|
+
const getVariants: GetVariants = useCallback(
|
|
132
|
+
(options: Selected = {}) => traverseAttrTree(options, lookupTree),
|
|
133
|
+
[lookupTree],
|
|
134
|
+
)
|
|
133
135
|
|
|
134
|
-
const getUids: GetUids = (
|
|
135
|
-
(
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
const getUids: GetUids = useCallback(
|
|
137
|
+
(options: Selected = {}) =>
|
|
138
|
+
(getVariants(options as unknown as Selected) ?? [])
|
|
139
|
+
.map((variant) => (variant?.attributes?.map((attr) => attr?.uid) ?? []) as string[])
|
|
140
|
+
.flat(),
|
|
141
|
+
[getVariants],
|
|
142
|
+
)
|
|
138
143
|
|
|
139
144
|
const context = configurableContext(sku)
|
|
140
145
|
const variants = getVariants(selection)
|
|
141
146
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
>
|
|
154
|
-
{children}
|
|
155
|
-
</context.Provider>
|
|
147
|
+
const value = useMemo(
|
|
148
|
+
() => ({
|
|
149
|
+
selection,
|
|
150
|
+
variants,
|
|
151
|
+
cheapest: cheapestVariant(variants),
|
|
152
|
+
select,
|
|
153
|
+
getVariants,
|
|
154
|
+
getUids,
|
|
155
|
+
options: configurable_options,
|
|
156
|
+
}),
|
|
157
|
+
[configurable_options, getUids, getVariants, selection, variants],
|
|
156
158
|
)
|
|
159
|
+
|
|
160
|
+
return <context.Provider value={value}>{children}</context.Provider>
|
|
157
161
|
}
|
|
158
162
|
|
|
159
163
|
export function useConfigurableContext(sku: string): ConfigurableContext {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConfigurableProductFormFragment } from './ConfigurableProductForm.gql'
|
|
2
|
+
|
|
3
|
+
type Variants = NonNullable<ConfigurableProductFormFragment['variants']>
|
|
2
4
|
|
|
3
5
|
export default function cheapestVariant(variants: Variants): Variants[0] {
|
|
4
6
|
if (!variants.length) return null
|
|
@@ -8,16 +8,17 @@ import {
|
|
|
8
8
|
import { Controller, FieldErrors, UseControllerProps } from '@graphcommerce/react-hook-form'
|
|
9
9
|
import { BaseTextFieldProps, FormHelperText } from '@mui/material'
|
|
10
10
|
import React from 'react'
|
|
11
|
-
import { Selected, useConfigurableContext } from '../ConfigurableContext'
|
|
12
|
-
import { SwatchTypeRenderer, SwatchSize } from '../Swatches'
|
|
11
|
+
import { Selected, useConfigurableContext } from '../ConfigurableContext/ConfigurableContext'
|
|
13
12
|
import { ColorSwatchData } from '../Swatches/ColorSwatchData'
|
|
14
13
|
import { ImageSwatchData } from '../Swatches/ImageSwatchData'
|
|
15
14
|
import { TextSwatchData } from '../Swatches/TextSwatchData'
|
|
15
|
+
import { SwatchTypeRenderer, SwatchSize } from '../Swatches/types'
|
|
16
16
|
|
|
17
17
|
export type ConfigurableOptionsInputProps = {
|
|
18
18
|
sku: string
|
|
19
19
|
errors?: FieldErrors
|
|
20
20
|
size?: SwatchSize
|
|
21
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
21
22
|
} & UseControllerProps<any> &
|
|
22
23
|
Pick<BaseTextFieldProps, 'FormHelperTextProps' | 'helperText'> & {
|
|
23
24
|
optionEndLabels?: Record<string, React.ReactNode>
|
|
@@ -29,7 +30,7 @@ const compName = 'ConfigurableOptionsInput' as const
|
|
|
29
30
|
const parts = ['buttonGroup', 'button', 'helperText'] as const
|
|
30
31
|
const { classes } = extendableComponent(compName, parts)
|
|
31
32
|
|
|
32
|
-
export
|
|
33
|
+
export function ConfigurableOptionsInput(props: ConfigurableOptionsInputProps) {
|
|
33
34
|
const {
|
|
34
35
|
sku,
|
|
35
36
|
FormHelperTextProps,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
extendableComponent,
|
|
7
7
|
iconChevronRight,
|
|
8
8
|
MessageSnackbar,
|
|
9
|
-
|
|
9
|
+
IconSvg,
|
|
10
10
|
TextInputNumber,
|
|
11
11
|
} from '@graphcommerce/next-ui'
|
|
12
12
|
import { Trans } from '@lingui/macro'
|
|
@@ -14,9 +14,12 @@ import { Divider, Typography, Alert, Box } from '@mui/material'
|
|
|
14
14
|
import { AnimatePresence } from 'framer-motion'
|
|
15
15
|
import PageLink from 'next/link'
|
|
16
16
|
import React from 'react'
|
|
17
|
-
import { Selected, useConfigurableContext } from '../ConfigurableContext'
|
|
17
|
+
import { Selected, useConfigurableContext } from '../ConfigurableContext/ConfigurableContext'
|
|
18
18
|
import cheapestVariant from '../ConfigurableContext/cheapestVariant'
|
|
19
|
-
import
|
|
19
|
+
import {
|
|
20
|
+
ConfigurableOptionsInput,
|
|
21
|
+
ConfigurableOptionsInputProps,
|
|
22
|
+
} from '../ConfigurableOptions/ConfigurableOptions'
|
|
20
23
|
import {
|
|
21
24
|
ConfigurableProductAddToCartDocument,
|
|
22
25
|
ConfigurableProductAddToCartMutationVariables,
|
|
@@ -37,7 +40,7 @@ const compName = 'ConfigurableOptionsInput' as const
|
|
|
37
40
|
const parts = ['form', 'button', 'finalPrice', 'quantity', 'divider'] as const
|
|
38
41
|
const { classes } = extendableComponent(compName, parts)
|
|
39
42
|
|
|
40
|
-
export
|
|
43
|
+
export function ConfigurableProductAddToCart(props: ConfigurableProductAddToCartProps) {
|
|
41
44
|
const { name, children, variables, optionEndLabels, optionsProps, ...buttonProps } = props
|
|
42
45
|
const { getUids, getVariants, selection } = useConfigurableContext(variables.sku)
|
|
43
46
|
|
|
@@ -110,7 +113,7 @@ export default function ConfigurableProductAddToCart(props: ConfigurableProductA
|
|
|
110
113
|
width: '100%',
|
|
111
114
|
})}
|
|
112
115
|
>
|
|
113
|
-
Add to Cart
|
|
116
|
+
<Trans>Add to Cart</Trans>
|
|
114
117
|
</Button>
|
|
115
118
|
|
|
116
119
|
<ApolloCartErrorAlert error={error} />
|
|
@@ -137,9 +140,9 @@ export default function ConfigurableProductAddToCart(props: ConfigurableProductA
|
|
|
137
140
|
size='medium'
|
|
138
141
|
variant='pill'
|
|
139
142
|
color='secondary'
|
|
140
|
-
endIcon={<
|
|
143
|
+
endIcon={<IconSvg src={iconChevronRight} />}
|
|
141
144
|
>
|
|
142
|
-
View shopping cart
|
|
145
|
+
<Trans>View shopping cart</Trans>
|
|
143
146
|
</Button>
|
|
144
147
|
</PageLink>
|
|
145
148
|
}
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from '@graphcommerce/magento-product'
|
|
8
8
|
import React from 'react'
|
|
9
9
|
import { ProductListItemConfigurableFragment } from './ProductListItemConfigurable.gql'
|
|
10
|
-
import SwatchList from './SwatchList'
|
|
10
|
+
import { SwatchList } from './SwatchList'
|
|
11
11
|
|
|
12
12
|
export type ProductListItemConfigurableActionProps = ProductListItemConfigurableFragment & {
|
|
13
13
|
variant?: NonNullable<ProductListItemConfigurableFragment['variants']>[0]
|
|
@@ -19,7 +19,7 @@ export type ProdustListItemConfigurableProps = ProductListItemConfigurableFragme
|
|
|
19
19
|
swatchLocations?: Record<OverlayAreaKeys, string[]>
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
export
|
|
22
|
+
export function ProductListItemConfigurable(props: ProdustListItemConfigurableProps) {
|
|
23
23
|
const {
|
|
24
24
|
Actions,
|
|
25
25
|
variants,
|
|
@@ -38,8 +38,9 @@ export default function ProductListItemConfigurable(props: ProdustListItemConfig
|
|
|
38
38
|
configurable_options
|
|
39
39
|
?.filter(
|
|
40
40
|
(option) =>
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
option?.attribute_code &&
|
|
42
|
+
params.filters[option.attribute_code] &&
|
|
43
|
+
isFilterTypeEqual(params.filters[option.attribute_code]),
|
|
43
44
|
)
|
|
44
45
|
.map((option) => {
|
|
45
46
|
const filter = params.filters[option?.attribute_code ?? '']
|
package/SwatchList.tsx
CHANGED
|
@@ -2,10 +2,10 @@ import { Maybe } from '@graphcommerce/graphql'
|
|
|
2
2
|
import { RenderType } from '@graphcommerce/next-ui'
|
|
3
3
|
import React from 'react'
|
|
4
4
|
import { ProductListItemConfigurableFragment } from './ProductListItemConfigurable.gql'
|
|
5
|
-
import { SwatchSize, SwatchTypeRenderer } from './Swatches'
|
|
6
5
|
import { ColorSwatchData } from './Swatches/ColorSwatchData'
|
|
7
6
|
import { ImageSwatchData } from './Swatches/ImageSwatchData'
|
|
8
7
|
import { TextSwatchData } from './Swatches/TextSwatchData'
|
|
8
|
+
import { SwatchSize, SwatchTypeRenderer } from './Swatches/types'
|
|
9
9
|
|
|
10
10
|
type SwatchListProps = {
|
|
11
11
|
attributes: string[]
|
|
@@ -18,7 +18,7 @@ const renderer: SwatchTypeRenderer = {
|
|
|
18
18
|
ColorSwatchData,
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
export
|
|
21
|
+
export function SwatchList({ attributes, configurable_options }: SwatchListProps) {
|
|
22
22
|
const options =
|
|
23
23
|
configurable_options?.filter((option) => attributes.includes(option?.attribute_code ?? '')) ??
|
|
24
24
|
[]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { responsiveVal, extendableComponent } from '@graphcommerce/next-ui'
|
|
2
2
|
import { Box, SxProps, Theme } from '@mui/material'
|
|
3
3
|
import { ColorSwatchDataFragment } from './ColorSwatchData.gql'
|
|
4
|
-
import { SwatchDataProps } from '
|
|
4
|
+
import { SwatchDataProps } from './types'
|
|
5
5
|
|
|
6
6
|
type ColorSwatchDataProps = ColorSwatchDataFragment &
|
|
7
7
|
SwatchDataProps & {
|
|
@@ -2,7 +2,7 @@ import { Image } from '@graphcommerce/image'
|
|
|
2
2
|
import { responsiveVal, extendableComponent } from '@graphcommerce/next-ui'
|
|
3
3
|
import { Box, SxProps, Theme } from '@mui/material'
|
|
4
4
|
import { ImageSwatchDataFragment } from './ImageSwatchData.gql'
|
|
5
|
-
import { SwatchDataProps } from '
|
|
5
|
+
import { SwatchDataProps } from './types'
|
|
6
6
|
|
|
7
7
|
type ImageSwatchDataProps = ImageSwatchDataFragment & SwatchDataProps & { sx?: SxProps<Theme> }
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@ import { Money } from '@graphcommerce/magento-store'
|
|
|
2
2
|
import { extendableComponent } from '@graphcommerce/next-ui'
|
|
3
3
|
import { Box, SxProps, Theme } from '@mui/material'
|
|
4
4
|
import { TextSwatchDataFragment } from './TextSwatchData.gql'
|
|
5
|
-
import { SwatchDataProps } from '
|
|
5
|
+
import { SwatchDataProps } from './types'
|
|
6
6
|
|
|
7
7
|
type TextSwatchDataProps = TextSwatchDataFragment & SwatchDataProps & { sx?: SxProps<Theme> }
|
|
8
8
|
|
|
File without changes
|
package/index.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
export { default as ConfigurableProductAddToCart } from './ConfigurableProductAddToCart/ConfigurableProductAddToCart'
|
|
1
|
+
export * from './ConfigurableCartItem/ConfigurableCartItem'
|
|
2
|
+
export * from './ConfigurableContext/ConfigurableContext'
|
|
3
|
+
export * from './ConfigurableProductAddToCart/ConfigurableProductAddToCart'
|
|
6
4
|
export * from './ConfigurableProductPage.gql'
|
|
5
|
+
export * from './ProductListItemConfigurable'
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graphcommerce/magento-product-configurable",
|
|
3
3
|
"homepage": "https://www.graphcommerce.org/",
|
|
4
4
|
"repository": "github:graphcommerce-org/graphcommerce",
|
|
5
|
-
"version": "4.0.
|
|
5
|
+
"version": "4.0.6",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,24 +12,24 @@
|
|
|
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
|
"react": "^17.0.1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@graphcommerce/graphql": "^3.0.
|
|
23
|
-
"@graphcommerce/image": "^3.1.
|
|
24
|
-
"@graphcommerce/magento-cart": "^4.1.
|
|
25
|
-
"@graphcommerce/magento-cart-items": "^3.0.
|
|
26
|
-
"@graphcommerce/magento-category": "^4.0.
|
|
27
|
-
"@graphcommerce/magento-customer": "^4.1.
|
|
28
|
-
"@graphcommerce/magento-product": "^4.0.
|
|
29
|
-
"@graphcommerce/magento-product-simple": "^4.0.
|
|
30
|
-
"@graphcommerce/magento-store": "^4.
|
|
31
|
-
"@graphcommerce/next-ui": "^4.
|
|
32
|
-
"@graphcommerce/react-hook-form": "^3.0.
|
|
22
|
+
"@graphcommerce/graphql": "^3.0.4",
|
|
23
|
+
"@graphcommerce/image": "^3.1.1",
|
|
24
|
+
"@graphcommerce/magento-cart": "^4.1.4",
|
|
25
|
+
"@graphcommerce/magento-cart-items": "^3.0.5",
|
|
26
|
+
"@graphcommerce/magento-category": "^4.0.4",
|
|
27
|
+
"@graphcommerce/magento-customer": "^4.1.4",
|
|
28
|
+
"@graphcommerce/magento-product": "^4.0.6",
|
|
29
|
+
"@graphcommerce/magento-product-simple": "^4.0.4",
|
|
30
|
+
"@graphcommerce/magento-store": "^4.1.2",
|
|
31
|
+
"@graphcommerce/next-ui": "^4.2.4",
|
|
32
|
+
"@graphcommerce/react-hook-form": "^3.0.4",
|
|
33
33
|
"type-fest": "^2.12.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|