@graphcommerce/magento-review 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.
package/CHANGELOG.md CHANGED
@@ -1,22 +1,53 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.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-customer@4.1.4
16
+ - @graphcommerce/magento-product@4.0.6
17
+ - @graphcommerce/magento-store@4.1.2
18
+ - @graphcommerce/react-hook-form@3.0.4
19
+
20
+ ## 3.0.5
21
+
22
+ ### Patch Changes
23
+
24
+ - [#1292](https://github.com/ho-nl/m2-pwa/pull/1292) [`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0) Thanks [@paales](https://github.com/paales)! - Renamed SvgIcon to IconSvg to prevent collisions with MUI
25
+
26
+ - Updated dependencies [[`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0), [`990df655b`](https://github.com/ho-nl/m2-pwa/commit/990df655b73b469718d6cb5837ee65dfe2ad6a1d), [`63f9b56eb`](https://github.com/ho-nl/m2-pwa/commit/63f9b56eb68ba790567ff1427e599fd2c3c8f1ee)]:
27
+ - @graphcommerce/magento-customer@4.1.3
28
+ - @graphcommerce/magento-product@4.0.5
29
+ - @graphcommerce/next-ui@4.2.0
30
+
31
+ ## 3.0.4
32
+
33
+ ### Patch Changes
34
+
35
+ - [#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
36
+
37
+ - Updated dependencies [[`ed9703b06`](https://github.com/ho-nl/m2-pwa/commit/ed9703b062d23ee01b1605ff9917c0ac3247fc25), [`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017)]:
38
+ - @graphcommerce/magento-store@4.1.0
39
+ - @graphcommerce/magento-product@4.0.4
40
+ - @graphcommerce/next-ui@4.1.3
41
+
3
42
  ## 3.0.3
4
43
 
5
44
  ### Patch Changes
6
45
 
7
- - [#1280](https://github.com/ho-nl/m2-pwa/pull/1280)
8
- [`bdd460c6f`](https://github.com/ho-nl/m2-pwa/commit/bdd460c6f09af148a96c55324012b8f53c3618f1)
9
- Thanks [@paales](https://github.com/paales)! - Review forms now work by using the url_key of a
10
- product instead of the SKU. Some backends do not support filtering by sku
46
+ - [#1280](https://github.com/ho-nl/m2-pwa/pull/1280) [`bdd460c6f`](https://github.com/ho-nl/m2-pwa/commit/bdd460c6f09af148a96c55324012b8f53c3618f1) Thanks [@paales](https://github.com/paales)! - Review forms now work by using the url_key of a product instead of the SKU. Some backends do not support filtering by sku
11
47
 
12
- * [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
13
- Thanks [@paales](https://github.com/paales)! - made packages public
48
+ * [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
14
49
 
15
- * Updated dependencies
16
- [[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
17
- [`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
18
- [`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
19
- [`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
50
+ * 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)]:
20
51
  - @graphcommerce/graphql@3.0.3
21
52
  - @graphcommerce/image@3.1.0
22
53
  - @graphcommerce/magento-customer@4.1.2
@@ -29,29 +60,13 @@
29
60
 
30
61
  ### Patch Changes
31
62
 
32
- - [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
33
- [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2)
34
- Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from
35
- `dependencies` to `peerDependencies`. The result of this is that there will be significantly less
36
- duplicate packages in the node_modules folders.
37
-
38
- * [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
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)]:
63
+ - [#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.
64
+
65
+ * [#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.
66
+
67
+ 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.
68
+
69
+ * 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)]:
55
70
  - @graphcommerce/magento-customer@4.1.1
56
71
  - @graphcommerce/next-ui@4.1.1
57
72
  - @graphcommerce/react-hook-form@3.0.2
@@ -64,11 +79,8 @@
64
79
 
65
80
  ### Patch Changes
66
81
 
67
- - [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
68
- Thanks [@paales](https://github.com/paales)! - Added homepage and repository package.json files,
69
- so that the packages link to back to the website and repository
70
- - Updated dependencies
71
- [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
82
+ - [`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
83
+ - Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
72
84
  - @graphcommerce/graphql@3.0.1
73
85
  - @graphcommerce/image@3.0.1
74
86
  - @graphcommerce/magento-customer@4.0.1
@@ -81,14 +93,11 @@
81
93
 
82
94
  ### Major Changes
83
95
 
84
- - [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
85
- [`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
86
- Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
96
+ - [#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
87
97
 
88
98
  ### Patch Changes
89
99
 
90
- - Updated dependencies
91
- [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
100
+ - Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
92
101
  - @graphcommerce/graphql@3.0.0
93
102
  - @graphcommerce/image@3.0.0
94
103
  - @graphcommerce/magento-customer@4.0.0
@@ -97,116 +106,88 @@
97
106
  - @graphcommerce/next-ui@4.0.0
98
107
  - @graphcommerce/react-hook-form@3.0.0
99
108
 
100
- All notable changes to this project will be documented in this file. See
101
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
109
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
102
110
 
103
111
  # [2.111.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.110.2...@graphcommerce/magento-review@2.111.0) (2021-12-01)
104
112
 
105
113
  ### Features
106
114
 
107
- - borderRadius based on theme.shape.borderRadius
108
- ([7c34937](https://github.com/ho-nl/m2-pwa/commit/7c349376cd41a131c628324c299106fdb7e60484))
115
+ - borderRadius based on theme.shape.borderRadius ([7c34937](https://github.com/ho-nl/m2-pwa/commit/7c349376cd41a131c628324c299106fdb7e60484))
109
116
 
110
117
  # [2.110.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.109.1...@graphcommerce/magento-review@2.110.0) (2021-11-22)
111
118
 
112
119
  ### Bug Fixes
113
120
 
114
- - allow styling from parent
115
- ([ed1b4dc](https://github.com/ho-nl/m2-pwa/commit/ed1b4dc446fa19244cc73f87063256809b914d15))
116
- - cleanup
117
- ([7937ac5](https://github.com/ho-nl/m2-pwa/commit/7937ac5c6163a4ffe10d8a8d61847fcc86e82a9d))
118
- - make stylable
119
- ([54aea4c](https://github.com/ho-nl/m2-pwa/commit/54aea4c177c708de07df9ef9c590da6bff43aea8))
120
- - remove styles
121
- ([fabde1f](https://github.com/ho-nl/m2-pwa/commit/fabde1f1dba9f75dea60bb2c7c69d4793c6197cd))
122
- - rename summary chip fragment
123
- ([bb23dfc](https://github.com/ho-nl/m2-pwa/commit/bb23dfc8bb82e99832196b4080d2c4c9f269cc5d))
124
- - revert to SvgImageSimple
125
- ([b247c6b](https://github.com/ho-nl/m2-pwa/commit/b247c6b96979bc313e597a8ffe1275b73f38bd6a))
126
- - review form size large
127
- ([9f45336](https://github.com/ho-nl/m2-pwa/commit/9f45336d310b120088fe6440dd95a51944ff77cb))
128
- - use fragment types
129
- ([0a06309](https://github.com/ho-nl/m2-pwa/commit/0a0630916e191c59eed402904b9ace6b87831bd8))
121
+ - allow styling from parent ([ed1b4dc](https://github.com/ho-nl/m2-pwa/commit/ed1b4dc446fa19244cc73f87063256809b914d15))
122
+ - cleanup ([7937ac5](https://github.com/ho-nl/m2-pwa/commit/7937ac5c6163a4ffe10d8a8d61847fcc86e82a9d))
123
+ - make stylable ([54aea4c](https://github.com/ho-nl/m2-pwa/commit/54aea4c177c708de07df9ef9c590da6bff43aea8))
124
+ - remove styles ([fabde1f](https://github.com/ho-nl/m2-pwa/commit/fabde1f1dba9f75dea60bb2c7c69d4793c6197cd))
125
+ - rename summary chip fragment ([bb23dfc](https://github.com/ho-nl/m2-pwa/commit/bb23dfc8bb82e99832196b4080d2c4c9f269cc5d))
126
+ - revert to SvgImageSimple ([b247c6b](https://github.com/ho-nl/m2-pwa/commit/b247c6b96979bc313e597a8ffe1275b73f38bd6a))
127
+ - review form size large ([9f45336](https://github.com/ho-nl/m2-pwa/commit/9f45336d310b120088fe6440dd95a51944ff77cb))
128
+ - use fragment types ([0a06309](https://github.com/ho-nl/m2-pwa/commit/0a0630916e191c59eed402904b9ace6b87831bd8))
130
129
 
131
130
  ### Features
132
131
 
133
- - add ReviewSummary component
134
- ([b823669](https://github.com/ho-nl/m2-pwa/commit/b823669d32e92238d05cac181c3453a13da49601))
135
- - use Rating component
136
- ([ec54f45](https://github.com/ho-nl/m2-pwa/commit/ec54f4522adb2d330bbdecc2ce032f86f13fb7a6))
132
+ - add ReviewSummary component ([b823669](https://github.com/ho-nl/m2-pwa/commit/b823669d32e92238d05cac181c3453a13da49601))
133
+ - use Rating component ([ec54f45](https://github.com/ho-nl/m2-pwa/commit/ec54f4522adb2d330bbdecc2ce032f86f13fb7a6))
137
134
 
138
135
  # [2.109.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.108.6...@graphcommerce/magento-review@2.109.0) (2021-11-12)
139
136
 
140
137
  ### Bug Fixes
141
138
 
142
- - even more translations
143
- ([1a1f988](https://github.com/ho-nl/m2-pwa/commit/1a1f98837c704b978f6b42b619d9c52f540b2d48))
139
+ - even more translations ([1a1f988](https://github.com/ho-nl/m2-pwa/commit/1a1f98837c704b978f6b42b619d9c52f540b2d48))
144
140
 
145
141
  ### Features
146
142
 
147
- - added tons of translations
148
- ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
143
+ - added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
149
144
 
150
145
  # [2.108.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.107.21...@graphcommerce/magento-review@2.108.0) (2021-11-09)
151
146
 
152
147
  ### Features
153
148
 
154
- - added translations to all pages
155
- ([8cf4ecd](https://github.com/ho-nl/m2-pwa/commit/8cf4ecd5db5edfec04ab205aa49f5de433d26579))
149
+ - added translations to all pages ([8cf4ecd](https://github.com/ho-nl/m2-pwa/commit/8cf4ecd5db5edfec04ab205aa49f5de433d26579))
156
150
 
157
151
  ## [2.107.13](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.107.12...@graphcommerce/magento-review@2.107.13) (2021-11-03)
158
152
 
159
153
  ### Bug Fixes
160
154
 
161
- - various accessibility improvements
162
- ([47481a9](https://github.com/ho-nl/m2-pwa/commit/47481a9a882ba87968de6dd797557b0b275d75fb))
155
+ - various accessibility improvements ([47481a9](https://github.com/ho-nl/m2-pwa/commit/47481a9a882ba87968de6dd797557b0b275d75fb))
163
156
 
164
157
  ## [2.107.6](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.107.5...@graphcommerce/magento-review@2.107.6) (2021-11-02)
165
158
 
166
159
  ### Bug Fixes
167
160
 
168
- - remove text='bold', make contained button text stronger by default
169
- ([cd277c9](https://github.com/ho-nl/m2-pwa/commit/cd277c9f434a4a765eac372467e5a05c822d5512))
170
- - remove unused imports
171
- ([b832188](https://github.com/ho-nl/m2-pwa/commit/b8321887f10a4a026adc5ca39166eeef90e60669))
172
- - ReviewChip should only differ from default MuiChip in product grid
173
- ([c22a029](https://github.com/ho-nl/m2-pwa/commit/c22a0291afbbc03099fd0487421ff9fd31caf226))
161
+ - remove text='bold', make contained button text stronger by default ([cd277c9](https://github.com/ho-nl/m2-pwa/commit/cd277c9f434a4a765eac372467e5a05c822d5512))
162
+ - remove unused imports ([b832188](https://github.com/ho-nl/m2-pwa/commit/b8321887f10a4a026adc5ca39166eeef90e60669))
163
+ - ReviewChip should only differ from default MuiChip in product grid ([c22a029](https://github.com/ho-nl/m2-pwa/commit/c22a0291afbbc03099fd0487421ff9fd31caf226))
174
164
 
175
165
  ## [2.107.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.107.0...@graphcommerce/magento-review@2.107.1) (2021-10-28)
176
166
 
177
167
  ### Bug Fixes
178
168
 
179
- - External SVG's can't have alt tags
180
- ([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
169
+ - External SVG's can't have alt tags ([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
181
170
 
182
171
  # [2.107.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.106.2...@graphcommerce/magento-review@2.107.0) (2021-10-28)
183
172
 
184
173
  ### Bug Fixes
185
174
 
186
- - keep original review chip
187
- ([3f2f834](https://github.com/ho-nl/m2-pwa/commit/3f2f834478b7b8252f6164442815e5c081de6411))
188
- - keep original review chip for now
189
- ([9664cd9](https://github.com/ho-nl/m2-pwa/commit/9664cd90801c6776e1c694eec8f393118810a792))
190
- - review button size
191
- ([9074102](https://github.com/ho-nl/m2-pwa/commit/9074102c1866b14d0e7f1f0f3dfabe6e6c0b324d))
192
- - size of default ReviewChip
193
- ([e1d4969](https://github.com/ho-nl/m2-pwa/commit/e1d49699776b15fa056677f042f6c9939b6acada))
175
+ - keep original review chip ([3f2f834](https://github.com/ho-nl/m2-pwa/commit/3f2f834478b7b8252f6164442815e5c081de6411))
176
+ - keep original review chip for now ([9664cd9](https://github.com/ho-nl/m2-pwa/commit/9664cd90801c6776e1c694eec8f393118810a792))
177
+ - review button size ([9074102](https://github.com/ho-nl/m2-pwa/commit/9074102c1866b14d0e7f1f0f3dfabe6e6c0b324d))
178
+ - size of default ReviewChip ([e1d4969](https://github.com/ho-nl/m2-pwa/commit/e1d49699776b15fa056677f042f6c9939b6acada))
194
179
 
195
180
  ### Features
196
181
 
197
- - cleanup grid, add visual star chip
198
- ([0571569](https://github.com/ho-nl/m2-pwa/commit/057156937f603bc399f5f8f8ac2837ff5cfaef28))
199
- - dynamic icons, update SvgImage uses to SvgImageSimple
200
- ([3d3cc0e](https://github.com/ho-nl/m2-pwa/commit/3d3cc0e0336fcde1cce6ba19705f82c1edf9bfc6))
201
- - enable use of both small and medium chips in design
202
- ([4536f96](https://github.com/ho-nl/m2-pwa/commit/4536f96b031734a71faf7c10f94aa5d5da90b9a8))
182
+ - cleanup grid, add visual star chip ([0571569](https://github.com/ho-nl/m2-pwa/commit/057156937f603bc399f5f8f8ac2837ff5cfaef28))
183
+ - dynamic icons, update SvgImage uses to SvgImageSimple ([3d3cc0e](https://github.com/ho-nl/m2-pwa/commit/3d3cc0e0336fcde1cce6ba19705f82c1edf9bfc6))
184
+ - enable use of both small and medium chips in design ([4536f96](https://github.com/ho-nl/m2-pwa/commit/4536f96b031734a71faf7c10f94aa5d5da90b9a8))
203
185
 
204
186
  # [2.106.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.105.37...@graphcommerce/magento-review@2.106.0) (2021-10-27)
205
187
 
206
188
  ### Features
207
189
 
208
- - **nextjs:** upgraded to nextjs 12
209
- ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
190
+ - **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
210
191
 
211
192
  ## [2.105.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.105.0...@graphcommerce/magento-review@2.105.1) (2021-09-27)
212
193
 
@@ -216,115 +197,89 @@ All notable changes to this project will be documented in this file. See
216
197
 
217
198
  ### Bug Fixes
218
199
 
219
- - customer-order folder structure
220
- ([b7fabd1](https://github.com/ho-nl/m2-pwa/commit/b7fabd12014b2925d0b89c21f58e9974ce1c8b40))
221
- - introduced SvgImageSimple and solve issue with review chips
222
- ([931d7fd](https://github.com/ho-nl/m2-pwa/commit/931d7fdcf0faa9d2264899b72e564138215b6bd8))
223
- - make separate queries folder, create injectable for account and inject reviews
224
- ([5d82a5d](https://github.com/ho-nl/m2-pwa/commit/5d82a5d9162f687c2678cce215b77eedbaf1669e))
225
- - remove coupon form style was too large
226
- ([30df274](https://github.com/ho-nl/m2-pwa/commit/30df274ecdffdcebd76710a5304d6fa248e81211))
227
- - **review:** make sure chip is rendered correctly
228
- ([387df34](https://github.com/ho-nl/m2-pwa/commit/387df3456973290f9ce98d47823a7c71a6d95850))
229
- - SvgSimpleImage sizing didn't use rem
230
- ([1ba07a5](https://github.com/ho-nl/m2-pwa/commit/1ba07a5694bd60ad3cee2e8102814643d2a7c79d))
200
+ - customer-order folder structure ([b7fabd1](https://github.com/ho-nl/m2-pwa/commit/b7fabd12014b2925d0b89c21f58e9974ce1c8b40))
201
+ - introduced SvgImageSimple and solve issue with review chips ([931d7fd](https://github.com/ho-nl/m2-pwa/commit/931d7fdcf0faa9d2264899b72e564138215b6bd8))
202
+ - make separate queries folder, create injectable for account and inject reviews ([5d82a5d](https://github.com/ho-nl/m2-pwa/commit/5d82a5d9162f687c2678cce215b77eedbaf1669e))
203
+ - remove coupon form style was too large ([30df274](https://github.com/ho-nl/m2-pwa/commit/30df274ecdffdcebd76710a5304d6fa248e81211))
204
+ - **review:** make sure chip is rendered correctly ([387df34](https://github.com/ho-nl/m2-pwa/commit/387df3456973290f9ce98d47823a7c71a6d95850))
205
+ - SvgSimpleImage sizing didn't use rem ([1ba07a5](https://github.com/ho-nl/m2-pwa/commit/1ba07a5694bd60ad3cee2e8102814643d2a7c79d))
231
206
 
232
207
  ### Features
233
208
 
234
- - **playwright:** added new playwright package to enable browser testing
235
- ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
236
- - renamed all packages to use [@graphcommerce](https://github.com/graphcommerce) instead of
237
- [@reachdigital](https://github.com/reachdigital)
238
- ([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
239
- - **theme:** restructured fonts and applied to home and category page
240
- ([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
241
- - upgraded to nextjs 11
242
- ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
209
+ - **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
210
+ - 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))
211
+ - **theme:** restructured fonts and applied to home and category page ([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
212
+ - upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
243
213
 
244
214
  ### Reverts
245
215
 
246
- - Revert "chore: upgrade @apollo/client"
247
- ([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))
248
217
 
249
218
  # Change Log
250
219
 
251
- All notable changes to this project will be documented in this file. See
252
- [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
220
+ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
253
221
 
254
222
  # [2.104.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.103.2...@graphcommerce/magento-review@2.104.0) (2021-08-12)
255
223
 
256
224
  ### Bug Fixes
257
225
 
258
- - remove coupon form style was too large
259
- ([30df274](https://github.com/ho-nl/m2-pwa/commit/30df274ecdffdcebd76710a5304d6fa248e81211))
226
+ - remove coupon form style was too large ([30df274](https://github.com/ho-nl/m2-pwa/commit/30df274ecdffdcebd76710a5304d6fa248e81211))
260
227
 
261
228
  ### Features
262
229
 
263
- - upgraded to nextjs 11
264
- ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
230
+ - upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
265
231
 
266
232
  ## [2.103.2](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.103.1...@graphcommerce/magento-review@2.103.2) (2021-08-09)
267
233
 
268
234
  ### Bug Fixes
269
235
 
270
- - SvgSimpleImage sizing didn't use rem
271
- ([1ba07a5](https://github.com/ho-nl/m2-pwa/commit/1ba07a5694bd60ad3cee2e8102814643d2a7c79d))
236
+ - SvgSimpleImage sizing didn't use rem ([1ba07a5](https://github.com/ho-nl/m2-pwa/commit/1ba07a5694bd60ad3cee2e8102814643d2a7c79d))
272
237
 
273
238
  ### Reverts
274
239
 
275
- - Revert "chore: upgrade @apollo/client"
276
- ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
240
+ - Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
277
241
 
278
242
  ## [2.103.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.103.0...@graphcommerce/magento-review@2.103.1) (2021-08-09)
279
243
 
280
244
  ### Bug Fixes
281
245
 
282
- - **review:** make sure chip is rendered correctly
283
- ([387df34](https://github.com/ho-nl/m2-pwa/commit/387df3456973290f9ce98d47823a7c71a6d95850))
246
+ - **review:** make sure chip is rendered correctly ([387df34](https://github.com/ho-nl/m2-pwa/commit/387df3456973290f9ce98d47823a7c71a6d95850))
284
247
 
285
248
  # [2.103.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.102.6...@graphcommerce/magento-review@2.103.0) (2021-08-06)
286
249
 
287
250
  ### Bug Fixes
288
251
 
289
- - introduced SvgImageSimple and solve issue with review chips
290
- ([931d7fd](https://github.com/ho-nl/m2-pwa/commit/931d7fdcf0faa9d2264899b72e564138215b6bd8))
252
+ - introduced SvgImageSimple and solve issue with review chips ([931d7fd](https://github.com/ho-nl/m2-pwa/commit/931d7fdcf0faa9d2264899b72e564138215b6bd8))
291
253
 
292
254
  ### Features
293
255
 
294
- - **theme:** restructured fonts and applied to home and category page
295
- ([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
256
+ - **theme:** restructured fonts and applied to home and category page ([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
296
257
 
297
258
  # [2.102.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.101.3...@graphcommerce/magento-review@2.102.0) (2021-07-26)
298
259
 
299
260
  ### Features
300
261
 
301
- - **playwright:** added new playwright package to enable browser testing
302
- ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
262
+ - **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
303
263
 
304
264
  ## 2.101.1 (2021-07-23)
305
265
 
306
266
  ### Bug Fixes
307
267
 
308
- - customer-order folder structure
309
- ([b7fabd1](https://github.com/ho-nl/m2-pwa/commit/b7fabd12014b2925d0b89c21f58e9974ce1c8b40))
310
- - make separate queries folder, create injectable for account and inject reviews
311
- ([5d82a5d](https://github.com/ho-nl/m2-pwa/commit/5d82a5d9162f687c2678cce215b77eedbaf1669e))
268
+ - customer-order folder structure ([b7fabd1](https://github.com/ho-nl/m2-pwa/commit/b7fabd12014b2925d0b89c21f58e9974ce1c8b40))
269
+ - make separate queries folder, create injectable for account and inject reviews ([5d82a5d](https://github.com/ho-nl/m2-pwa/commit/5d82a5d9162f687c2678cce215b77eedbaf1669e))
312
270
 
313
271
  # [2.101.0](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-review@2.100.14...@graphcommerce/magento-product-review@2.101.0) (2021-07-21)
314
272
 
315
273
  ### Bug Fixes
316
274
 
317
- - write review button mobile styles
318
- ([8f6b883](https://github.com/ho-nl/m2-pwa/commit/8f6b883fa0a513f84b7c6d8ed376b0e8d4b8a3bd))
275
+ - write review button mobile styles ([8f6b883](https://github.com/ho-nl/m2-pwa/commit/8f6b883fa0a513f84b7c6d8ed376b0e8d4b8a3bd))
319
276
 
320
277
  ### Features
321
278
 
322
- - **reviews:** no reviews written message
323
- ([8ade3db](https://github.com/ho-nl/m2-pwa/commit/8ade3dbe830f5a59af09c002dfa38fa5349a4b61))
279
+ - **reviews:** no reviews written message ([8ade3db](https://github.com/ho-nl/m2-pwa/commit/8ade3dbe830f5a59af09c002dfa38fa5349a4b61))
324
280
 
325
281
  ## [2.100.11](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-product-review@2.100.10...@graphcommerce/magento-product-review@2.100.11) (2021-07-20)
326
282
 
327
283
  ### Bug Fixes
328
284
 
329
- - ignore md files from triggering version updates
330
- ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
285
+ - ignore md files from triggering version updates ([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
@@ -1,13 +1,13 @@
1
1
  import { SectionContainer, extendableComponent } from '@graphcommerce/next-ui'
2
2
  import { Box, Skeleton } from '@mui/material'
3
- import CustomerReview from '../CustomerReview'
3
+ import { CustomerReview } from '../CustomerReview/CustomerReview'
4
4
  import { AccountReviewsFragment } from './AccountReviews.gql'
5
5
 
6
6
  type AccountReviewsProps = AccountReviewsFragment & { loading: boolean }
7
7
 
8
8
  const { classes } = extendableComponent('AccountReviews', ['root', 'older'] as const)
9
9
 
10
- export default function AccountReviews(props: AccountReviewsProps) {
10
+ export function AccountReviews(props: AccountReviewsProps) {
11
11
  const { items, loading } = props
12
12
  const showLatestReviews = 2
13
13
  const latestReviews = items?.slice(0, Math.min(items?.length, showLatestReviews))
@@ -1,5 +1,4 @@
1
- import { useQuery } from '@graphcommerce/graphql'
2
- import { ProductReviewRatingInput } from '@graphcommerce/graphql'
1
+ import { useQuery, ProductReviewRatingInput } from '@graphcommerce/graphql'
3
2
  import { ApolloCustomerErrorAlert } from '@graphcommerce/magento-customer'
4
3
  import {
5
4
  Form,
@@ -35,7 +34,7 @@ const parts = [
35
34
  ] as const
36
35
  const { classes } = extendableComponent(name, parts)
37
36
 
38
- export default function CreateProductReviewForm(props: CreateProductReviewFormProps) {
37
+ export function CreateProductReviewForm(props: CreateProductReviewFormProps) {
39
38
  const { sku, nickname, sx = [] } = props
40
39
  const router = useRouter()
41
40
  const [ratings, setRatings] = useState<ProductReviewRatingInput[]>([])
@@ -88,7 +87,7 @@ export default function CreateProductReviewForm(props: CreateProductReviewFormPr
88
87
  }
89
88
 
90
89
  return (
91
- <Form onSubmit={submitHandler} noValidate className={classes.root}>
90
+ <Form onSubmit={submitHandler} noValidate className={classes.root} sx={sx}>
92
91
  <FormRow>
93
92
  <TextField
94
93
  variant='outlined'
@@ -19,7 +19,7 @@ const { classes } = extendableComponent('ScrollerDots', [
19
19
  'date',
20
20
  ] as const)
21
21
 
22
- export default function CustomerReview(props: CustomerReviewProps) {
22
+ export function CustomerReview(props: CustomerReviewProps) {
23
23
  const { product, text, average_rating, created_at, sx = [] } = props
24
24
 
25
25
  const maxAverageRating = 100
@@ -1,4 +1,4 @@
1
- import { SvgIcon, iconStar } from '@graphcommerce/next-ui'
1
+ import { IconSvg, iconStar } from '@graphcommerce/next-ui'
2
2
  import { Chip, ChipProps } from '@mui/material'
3
3
  import React from 'react'
4
4
 
@@ -8,7 +8,7 @@ export type ProductReviewChipProps = {
8
8
  max?: number
9
9
  } & ChipProps
10
10
 
11
- export default function ProductReviewChip(props: ProductReviewChipProps) {
11
+ export function ProductReviewChip(props: ProductReviewChipProps) {
12
12
  const { rating, reviewSectionId = '', max = 5, ...chipProps } = props
13
13
 
14
14
  if (!rating) return null
@@ -32,7 +32,7 @@ export default function ProductReviewChip(props: ProductReviewChipProps) {
32
32
  variant='outlined'
33
33
  clickable={!!reviewSectionId}
34
34
  onClick={handleClick}
35
- icon={<SvgIcon src={iconStar} size='small' sx={{ stroke: '#FFDA1C', fill: '#FFDA1C' }} />}
35
+ icon={<IconSvg src={iconStar} size='small' sx={{ stroke: '#FFDA1C', fill: '#FFDA1C' }} />}
36
36
  color='default'
37
37
  size='small'
38
38
  label={`${normalizedRating}/5`}
@@ -1,4 +1,4 @@
1
- import { SvgIcon, iconStar, extendableComponent } from '@graphcommerce/next-ui'
1
+ import { IconSvg, iconStar, extendableComponent } from '@graphcommerce/next-ui'
2
2
  import { Box, SxProps, Theme } from '@mui/material'
3
3
  import { ProductReviewSummaryFragment } from './ProductReviewSummary.gql'
4
4
 
@@ -8,13 +8,13 @@ const name = 'ProductReviewSummary' as const
8
8
  const parts = ['root', 'rating', 'iconStar', 'iconStarDisabled'] as const
9
9
  const { classes } = extendableComponent(name, parts)
10
10
 
11
- export default function ProductReviewSummary(props: ProductReviewSummaryProps) {
11
+ export function ProductReviewSummary(props: ProductReviewSummaryProps) {
12
12
  const { rating_summary, sx = [] } = props
13
13
 
14
14
  if (!rating_summary) return null
15
15
 
16
16
  const disabledStar = (
17
- <SvgIcon
17
+ <IconSvg
18
18
  src={iconStar}
19
19
  size='xs'
20
20
  className={classes.iconStarDisabled}
@@ -23,7 +23,7 @@ export default function ProductReviewSummary(props: ProductReviewSummaryProps) {
23
23
  )
24
24
 
25
25
  const star = (
26
- <SvgIcon
26
+ <IconSvg
27
27
  src={iconStar}
28
28
  size='xs'
29
29
  className={classes.iconStar}
@@ -9,7 +9,7 @@ import { Trans } from '@lingui/macro'
9
9
  import { Typography, Button, Box, SxProps, Theme } from '@mui/material'
10
10
  import Link from 'next/link'
11
11
  import React, { useState } from 'react'
12
- import ProductReviewChip from '../ProductReviewChip'
12
+ import { ProductReviewChip } from '../ProductReviewChip/ProductReviewChip'
13
13
  import { ProductReviewsFragment } from './ProductReviews.gql'
14
14
  import { ProductReviewsPageDocument } from './ProductReviewsPage.gql'
15
15
 
@@ -32,7 +32,7 @@ const parts = [
32
32
  ] as const
33
33
  const { classes } = extendableComponent(name, parts)
34
34
 
35
- export default function ProductReviews(props: ProductReviewsProps) {
35
+ export function ProductReviews(props: ProductReviewsProps) {
36
36
  const { reviews, url_key, sx = [] } = props
37
37
  const config = 'en_US'
38
38
  const locale = config.replace('_', '-')
@@ -1,18 +1,15 @@
1
- export { default as AccountReviews } from './AccountReviews'
2
- export { default as CreateProductReviewForm } from './CreateProductReviewForm'
3
- export { default as CustomerReview } from './CustomerReview'
4
- export { default as ProductReviews } from './ProductReviews'
5
- export { default as ProductReviewChip } from './ProductReviewChip'
6
- export { default as ProductReviewSummary } from './ProductReviewSummary'
7
-
1
+ export * from './AccountReviews/AccountReviews'
8
2
  export * from './AccountReviews/AccountReviews.gql'
9
- export * from './ProductReviews'
10
- export * from './CustomerReview/CustomerReview.gql'
11
- export * from './ProductReviewSummary/ProductReviewSummary.gql'
12
- export * from './ProductReviewChip/ProductReviewSummaryChip.gql'
13
- export * from './ProductReviews/ProductReviewProductName.gql'
14
3
  export * from './CreateProductReviewForm/CreateProductReview.gql'
4
+ export * from './CreateProductReviewForm/CreateProductReviewForm'
15
5
  export * from './CreateProductReviewForm/ProductReviewRatingsMetadata.gql'
16
-
6
+ export * from './CustomerReview/CustomerReview'
7
+ export * from './CustomerReview/CustomerReview.gql'
8
+ export * from './JsonLdProductReview/jsonLdProductReview'
17
9
  export * from './JsonLdProductReview/JsonLdProductReview.gql'
18
- export * from './JsonLdProductReview'
10
+ export * from './ProductReviewChip/ProductReviewChip'
11
+ export * from './ProductReviewChip/ProductReviewSummaryChip.gql'
12
+ export * from './ProductReviews/ProductReviewProductName.gql'
13
+ export * from './ProductReviews/ProductReviews'
14
+ export * from './ProductReviewSummary/ProductReviewSummary'
15
+ export * from './ProductReviewSummary/ProductReviewSummary.gql'
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/magento-review",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "3.0.3",
5
+ "version": "3.0.6",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,20 +12,20 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.0.3",
16
- "@graphcommerce/prettier-config-pwa": "^4.0.2",
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.1"
18
+ "@playwright/test": "^1.19.2"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/graphql": "^3.0.3",
22
- "@graphcommerce/image": "^3.1.0",
23
- "@graphcommerce/magento-customer": "^4.1.2",
24
- "@graphcommerce/magento-product": "^4.0.3",
25
- "@graphcommerce/magento-store": "^4.0.3",
26
- "@graphcommerce/next-ui": "^4.1.2",
27
- "@graphcommerce/react-hook-form": "^3.0.3",
28
- "schema-dts": "^1.0.0"
21
+ "@graphcommerce/graphql": "^3.0.4",
22
+ "@graphcommerce/image": "^3.1.1",
23
+ "@graphcommerce/magento-customer": "^4.1.4",
24
+ "@graphcommerce/magento-product": "^4.0.6",
25
+ "@graphcommerce/magento-store": "^4.1.2",
26
+ "@graphcommerce/next-ui": "^4.2.4",
27
+ "@graphcommerce/react-hook-form": "^3.0.4",
28
+ "schema-dts": "^1.1.0"
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@lingui/macro": "^3.13.2",