@graphcommerce/magento-review 3.0.4 → 3.0.7
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 +103 -157
- package/components/AccountReviews/{index.tsx → AccountReviews.tsx} +2 -2
- package/components/CreateProductReviewForm/{index.tsx → CreateProductReviewForm.tsx} +3 -4
- package/components/CustomerReview/{index.tsx → CustomerReview.tsx} +1 -1
- package/components/JsonLdProductReview/{index.ts → jsonLdProductReview.ts} +0 -0
- package/components/ProductReviewChip/{index.tsx → ProductReviewChip.tsx} +3 -3
- package/components/ProductReviewSummary/{index.tsx → ProductReviewSummary.tsx} +4 -4
- package/components/ProductReviews/{index.tsx → ProductReviews.tsx} +6 -4
- package/components/index.ts +11 -14
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,46 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1310](https://github.com/graphcommerce-org/graphcommerce/pull/1310) [`bcae21cfa`](https://github.com/graphcommerce-org/graphcommerce/commit/bcae21cfafe5bf8e0768f9b52028e0e3195cd3b7) Thanks [@LaurensFranken](https://github.com/LaurensFranken)! - Make texts in product reviews component translatable
|
|
8
|
+
|
|
9
|
+
## 3.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#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.
|
|
14
|
+
|
|
15
|
+
* [#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
|
|
16
|
+
|
|
17
|
+
* 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)]:
|
|
18
|
+
- @graphcommerce/next-ui@4.2.4
|
|
19
|
+
- @graphcommerce/graphql@3.0.4
|
|
20
|
+
- @graphcommerce/image@3.1.1
|
|
21
|
+
- @graphcommerce/magento-customer@4.1.4
|
|
22
|
+
- @graphcommerce/magento-product@4.0.6
|
|
23
|
+
- @graphcommerce/magento-store@4.1.2
|
|
24
|
+
- @graphcommerce/react-hook-form@3.0.4
|
|
25
|
+
|
|
26
|
+
## 3.0.5
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- [#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
|
|
31
|
+
|
|
32
|
+
- 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)]:
|
|
33
|
+
- @graphcommerce/magento-customer@4.1.3
|
|
34
|
+
- @graphcommerce/magento-product@4.0.5
|
|
35
|
+
- @graphcommerce/next-ui@4.2.0
|
|
36
|
+
|
|
3
37
|
## 3.0.4
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
|
6
40
|
|
|
7
|
-
- [#1285](https://github.com/ho-nl/m2-pwa/pull/1285)
|
|
8
|
-
[`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017)
|
|
9
|
-
Thanks [@paales](https://github.com/paales)! - upgraded dependencies
|
|
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
|
|
10
42
|
|
|
11
|
-
- Updated dependencies
|
|
12
|
-
[[`ed9703b06`](https://github.com/ho-nl/m2-pwa/commit/ed9703b062d23ee01b1605ff9917c0ac3247fc25),
|
|
13
|
-
[`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017)]:
|
|
43
|
+
- Updated dependencies [[`ed9703b06`](https://github.com/ho-nl/m2-pwa/commit/ed9703b062d23ee01b1605ff9917c0ac3247fc25), [`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017)]:
|
|
14
44
|
- @graphcommerce/magento-store@4.1.0
|
|
15
45
|
- @graphcommerce/magento-product@4.0.4
|
|
16
46
|
- @graphcommerce/next-ui@4.1.3
|
|
@@ -19,19 +49,11 @@
|
|
|
19
49
|
|
|
20
50
|
### Patch Changes
|
|
21
51
|
|
|
22
|
-
- [#1280](https://github.com/ho-nl/m2-pwa/pull/1280)
|
|
23
|
-
[`bdd460c6f`](https://github.com/ho-nl/m2-pwa/commit/bdd460c6f09af148a96c55324012b8f53c3618f1)
|
|
24
|
-
Thanks [@paales](https://github.com/paales)! - Review forms now work by using the url_key of a
|
|
25
|
-
product instead of the SKU. Some backends do not support filtering by sku
|
|
52
|
+
- [#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
|
|
26
53
|
|
|
27
|
-
* [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
|
|
28
|
-
Thanks [@paales](https://github.com/paales)! - made packages public
|
|
54
|
+
* [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96) Thanks [@paales](https://github.com/paales)! - made packages public
|
|
29
55
|
|
|
30
|
-
* Updated dependencies
|
|
31
|
-
[[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
|
|
32
|
-
[`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
|
|
33
|
-
[`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
|
|
34
|
-
[`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
|
|
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)]:
|
|
35
57
|
- @graphcommerce/graphql@3.0.3
|
|
36
58
|
- @graphcommerce/image@3.1.0
|
|
37
59
|
- @graphcommerce/magento-customer@4.1.2
|
|
@@ -44,29 +66,13 @@
|
|
|
44
66
|
|
|
45
67
|
### Patch Changes
|
|
46
68
|
|
|
47
|
-
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
* [
|
|
54
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)
|
|
55
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to
|
|
56
|
-
[NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be
|
|
57
|
-
implementing
|
|
58
|
-
[On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta)
|
|
59
|
-
soon.
|
|
60
|
-
|
|
61
|
-
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the
|
|
62
|
-
frontend to be able to revalidate pages manually.
|
|
63
|
-
|
|
64
|
-
* Updated dependencies
|
|
65
|
-
[[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7),
|
|
66
|
-
[`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2),
|
|
67
|
-
[`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b),
|
|
68
|
-
[`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275),
|
|
69
|
-
[`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)]:
|
|
69
|
+
- [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2) Thanks [@paales](https://github.com/paales)! - We've moved lots of internal packages from `dependencies` to `peerDependencies`. The result of this is that there will be significantly less duplicate packages in the node_modules folders.
|
|
70
|
+
|
|
71
|
+
* [#1276](https://github.com/ho-nl/m2-pwa/pull/1276) [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d) Thanks [@paales](https://github.com/paales)! - Upgraded to [NextJS 12.1](https://nextjs.org/blog/next-12-1)! This is just for compatibility, but we'll be implementing [On-demand Incremental Static Regeneration](https://nextjs.org/blog/next-12-1#on-demand-incremental-static-regeneration-beta) soon.
|
|
72
|
+
|
|
73
|
+
This will greatly reduce the requirement to rebuid stuff and we'll add a management UI on the frontend to be able to revalidate pages manually.
|
|
74
|
+
|
|
75
|
+
* Updated dependencies [[`381e4c86a`](https://github.com/ho-nl/m2-pwa/commit/381e4c86a8321ce96e1fa5c7d3c0a0c0ff3e02c7), [`ce09388e0`](https://github.com/ho-nl/m2-pwa/commit/ce09388e0d7ef33aee660612340f6fbae15ceec2), [`e7c8e2756`](https://github.com/ho-nl/m2-pwa/commit/e7c8e2756d637cbcd2e793d62ef5721d35d9fa7b), [`b08a8eb1d`](https://github.com/ho-nl/m2-pwa/commit/b08a8eb1d024b9d3e7712ef034029151670db275), [`52a45bba4`](https://github.com/ho-nl/m2-pwa/commit/52a45bba4dc6dd6df3c81f5023df7d23ed8a534d)]:
|
|
70
76
|
- @graphcommerce/magento-customer@4.1.1
|
|
71
77
|
- @graphcommerce/next-ui@4.1.1
|
|
72
78
|
- @graphcommerce/react-hook-form@3.0.2
|
|
@@ -79,11 +85,8 @@
|
|
|
79
85
|
|
|
80
86
|
### Patch Changes
|
|
81
87
|
|
|
82
|
-
- [`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)
|
|
83
|
-
|
|
84
|
-
so that the packages link to back to the website and repository
|
|
85
|
-
- Updated dependencies
|
|
86
|
-
[[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
88
|
+
- [`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
|
|
89
|
+
- Updated dependencies [[`0cbaa878b`](https://github.com/ho-nl/m2-pwa/commit/0cbaa878b8a844d5abbeb1797b625a33130e6514)]:
|
|
87
90
|
- @graphcommerce/graphql@3.0.1
|
|
88
91
|
- @graphcommerce/image@3.0.1
|
|
89
92
|
- @graphcommerce/magento-customer@4.0.1
|
|
@@ -96,14 +99,11 @@
|
|
|
96
99
|
|
|
97
100
|
### Major Changes
|
|
98
101
|
|
|
99
|
-
- [#1258](https://github.com/ho-nl/m2-pwa/pull/1258)
|
|
100
|
-
[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)
|
|
101
|
-
Thanks [@paales](https://github.com/paales)! - Upgraded to Material UI 5
|
|
102
|
+
- [#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
|
|
102
103
|
|
|
103
104
|
### Patch Changes
|
|
104
105
|
|
|
105
|
-
- Updated dependencies
|
|
106
|
-
[[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
106
|
+
- Updated dependencies [[`ad36382a4`](https://github.com/ho-nl/m2-pwa/commit/ad36382a4d55d83d9e47b7eb6a02671a2a631a05)]:
|
|
107
107
|
- @graphcommerce/graphql@3.0.0
|
|
108
108
|
- @graphcommerce/image@3.0.0
|
|
109
109
|
- @graphcommerce/magento-customer@4.0.0
|
|
@@ -112,116 +112,88 @@
|
|
|
112
112
|
- @graphcommerce/next-ui@4.0.0
|
|
113
113
|
- @graphcommerce/react-hook-form@3.0.0
|
|
114
114
|
|
|
115
|
-
All notable changes to this project will be documented in this file. See
|
|
116
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
115
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
117
116
|
|
|
118
117
|
# [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)
|
|
119
118
|
|
|
120
119
|
### Features
|
|
121
120
|
|
|
122
|
-
- borderRadius based on theme.shape.borderRadius
|
|
123
|
-
([7c34937](https://github.com/ho-nl/m2-pwa/commit/7c349376cd41a131c628324c299106fdb7e60484))
|
|
121
|
+
- borderRadius based on theme.shape.borderRadius ([7c34937](https://github.com/ho-nl/m2-pwa/commit/7c349376cd41a131c628324c299106fdb7e60484))
|
|
124
122
|
|
|
125
123
|
# [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)
|
|
126
124
|
|
|
127
125
|
### Bug Fixes
|
|
128
126
|
|
|
129
|
-
- allow styling from parent
|
|
130
|
-
|
|
131
|
-
-
|
|
132
|
-
|
|
133
|
-
-
|
|
134
|
-
|
|
135
|
-
-
|
|
136
|
-
|
|
137
|
-
- rename summary chip fragment
|
|
138
|
-
([bb23dfc](https://github.com/ho-nl/m2-pwa/commit/bb23dfc8bb82e99832196b4080d2c4c9f269cc5d))
|
|
139
|
-
- revert to SvgImageSimple
|
|
140
|
-
([b247c6b](https://github.com/ho-nl/m2-pwa/commit/b247c6b96979bc313e597a8ffe1275b73f38bd6a))
|
|
141
|
-
- review form size large
|
|
142
|
-
([9f45336](https://github.com/ho-nl/m2-pwa/commit/9f45336d310b120088fe6440dd95a51944ff77cb))
|
|
143
|
-
- use fragment types
|
|
144
|
-
([0a06309](https://github.com/ho-nl/m2-pwa/commit/0a0630916e191c59eed402904b9ace6b87831bd8))
|
|
127
|
+
- allow styling from parent ([ed1b4dc](https://github.com/ho-nl/m2-pwa/commit/ed1b4dc446fa19244cc73f87063256809b914d15))
|
|
128
|
+
- cleanup ([7937ac5](https://github.com/ho-nl/m2-pwa/commit/7937ac5c6163a4ffe10d8a8d61847fcc86e82a9d))
|
|
129
|
+
- make stylable ([54aea4c](https://github.com/ho-nl/m2-pwa/commit/54aea4c177c708de07df9ef9c590da6bff43aea8))
|
|
130
|
+
- remove styles ([fabde1f](https://github.com/ho-nl/m2-pwa/commit/fabde1f1dba9f75dea60bb2c7c69d4793c6197cd))
|
|
131
|
+
- rename summary chip fragment ([bb23dfc](https://github.com/ho-nl/m2-pwa/commit/bb23dfc8bb82e99832196b4080d2c4c9f269cc5d))
|
|
132
|
+
- revert to SvgImageSimple ([b247c6b](https://github.com/ho-nl/m2-pwa/commit/b247c6b96979bc313e597a8ffe1275b73f38bd6a))
|
|
133
|
+
- review form size large ([9f45336](https://github.com/ho-nl/m2-pwa/commit/9f45336d310b120088fe6440dd95a51944ff77cb))
|
|
134
|
+
- use fragment types ([0a06309](https://github.com/ho-nl/m2-pwa/commit/0a0630916e191c59eed402904b9ace6b87831bd8))
|
|
145
135
|
|
|
146
136
|
### Features
|
|
147
137
|
|
|
148
|
-
- add ReviewSummary component
|
|
149
|
-
|
|
150
|
-
- use Rating component
|
|
151
|
-
([ec54f45](https://github.com/ho-nl/m2-pwa/commit/ec54f4522adb2d330bbdecc2ce032f86f13fb7a6))
|
|
138
|
+
- add ReviewSummary component ([b823669](https://github.com/ho-nl/m2-pwa/commit/b823669d32e92238d05cac181c3453a13da49601))
|
|
139
|
+
- use Rating component ([ec54f45](https://github.com/ho-nl/m2-pwa/commit/ec54f4522adb2d330bbdecc2ce032f86f13fb7a6))
|
|
152
140
|
|
|
153
141
|
# [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)
|
|
154
142
|
|
|
155
143
|
### Bug Fixes
|
|
156
144
|
|
|
157
|
-
- even more translations
|
|
158
|
-
([1a1f988](https://github.com/ho-nl/m2-pwa/commit/1a1f98837c704b978f6b42b619d9c52f540b2d48))
|
|
145
|
+
- even more translations ([1a1f988](https://github.com/ho-nl/m2-pwa/commit/1a1f98837c704b978f6b42b619d9c52f540b2d48))
|
|
159
146
|
|
|
160
147
|
### Features
|
|
161
148
|
|
|
162
|
-
- added tons of translations
|
|
163
|
-
([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
149
|
+
- added tons of translations ([9bb0ac7](https://github.com/ho-nl/m2-pwa/commit/9bb0ac709b58df6ea6141e92e4923a5ca9ae2963))
|
|
164
150
|
|
|
165
151
|
# [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)
|
|
166
152
|
|
|
167
153
|
### Features
|
|
168
154
|
|
|
169
|
-
- added translations to all pages
|
|
170
|
-
([8cf4ecd](https://github.com/ho-nl/m2-pwa/commit/8cf4ecd5db5edfec04ab205aa49f5de433d26579))
|
|
155
|
+
- added translations to all pages ([8cf4ecd](https://github.com/ho-nl/m2-pwa/commit/8cf4ecd5db5edfec04ab205aa49f5de433d26579))
|
|
171
156
|
|
|
172
157
|
## [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)
|
|
173
158
|
|
|
174
159
|
### Bug Fixes
|
|
175
160
|
|
|
176
|
-
- various accessibility improvements
|
|
177
|
-
([47481a9](https://github.com/ho-nl/m2-pwa/commit/47481a9a882ba87968de6dd797557b0b275d75fb))
|
|
161
|
+
- various accessibility improvements ([47481a9](https://github.com/ho-nl/m2-pwa/commit/47481a9a882ba87968de6dd797557b0b275d75fb))
|
|
178
162
|
|
|
179
163
|
## [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)
|
|
180
164
|
|
|
181
165
|
### Bug Fixes
|
|
182
166
|
|
|
183
|
-
- remove text='bold', make contained button text stronger by default
|
|
184
|
-
|
|
185
|
-
-
|
|
186
|
-
([b832188](https://github.com/ho-nl/m2-pwa/commit/b8321887f10a4a026adc5ca39166eeef90e60669))
|
|
187
|
-
- ReviewChip should only differ from default MuiChip in product grid
|
|
188
|
-
([c22a029](https://github.com/ho-nl/m2-pwa/commit/c22a0291afbbc03099fd0487421ff9fd31caf226))
|
|
167
|
+
- remove text='bold', make contained button text stronger by default ([cd277c9](https://github.com/ho-nl/m2-pwa/commit/cd277c9f434a4a765eac372467e5a05c822d5512))
|
|
168
|
+
- remove unused imports ([b832188](https://github.com/ho-nl/m2-pwa/commit/b8321887f10a4a026adc5ca39166eeef90e60669))
|
|
169
|
+
- ReviewChip should only differ from default MuiChip in product grid ([c22a029](https://github.com/ho-nl/m2-pwa/commit/c22a0291afbbc03099fd0487421ff9fd31caf226))
|
|
189
170
|
|
|
190
171
|
## [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)
|
|
191
172
|
|
|
192
173
|
### Bug Fixes
|
|
193
174
|
|
|
194
|
-
- External SVG's can't have alt tags
|
|
195
|
-
([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
|
|
175
|
+
- External SVG's can't have alt tags ([1b1414a](https://github.com/ho-nl/m2-pwa/commit/1b1414a782d55d3acf7b0e6bcaa50f2ad5f18f39))
|
|
196
176
|
|
|
197
177
|
# [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)
|
|
198
178
|
|
|
199
179
|
### Bug Fixes
|
|
200
180
|
|
|
201
|
-
- keep original review chip
|
|
202
|
-
|
|
203
|
-
-
|
|
204
|
-
|
|
205
|
-
- review button size
|
|
206
|
-
([9074102](https://github.com/ho-nl/m2-pwa/commit/9074102c1866b14d0e7f1f0f3dfabe6e6c0b324d))
|
|
207
|
-
- size of default ReviewChip
|
|
208
|
-
([e1d4969](https://github.com/ho-nl/m2-pwa/commit/e1d49699776b15fa056677f042f6c9939b6acada))
|
|
181
|
+
- keep original review chip ([3f2f834](https://github.com/ho-nl/m2-pwa/commit/3f2f834478b7b8252f6164442815e5c081de6411))
|
|
182
|
+
- keep original review chip for now ([9664cd9](https://github.com/ho-nl/m2-pwa/commit/9664cd90801c6776e1c694eec8f393118810a792))
|
|
183
|
+
- review button size ([9074102](https://github.com/ho-nl/m2-pwa/commit/9074102c1866b14d0e7f1f0f3dfabe6e6c0b324d))
|
|
184
|
+
- size of default ReviewChip ([e1d4969](https://github.com/ho-nl/m2-pwa/commit/e1d49699776b15fa056677f042f6c9939b6acada))
|
|
209
185
|
|
|
210
186
|
### Features
|
|
211
187
|
|
|
212
|
-
- cleanup grid, add visual star chip
|
|
213
|
-
|
|
214
|
-
-
|
|
215
|
-
([3d3cc0e](https://github.com/ho-nl/m2-pwa/commit/3d3cc0e0336fcde1cce6ba19705f82c1edf9bfc6))
|
|
216
|
-
- enable use of both small and medium chips in design
|
|
217
|
-
([4536f96](https://github.com/ho-nl/m2-pwa/commit/4536f96b031734a71faf7c10f94aa5d5da90b9a8))
|
|
188
|
+
- cleanup grid, add visual star chip ([0571569](https://github.com/ho-nl/m2-pwa/commit/057156937f603bc399f5f8f8ac2837ff5cfaef28))
|
|
189
|
+
- dynamic icons, update SvgImage uses to SvgImageSimple ([3d3cc0e](https://github.com/ho-nl/m2-pwa/commit/3d3cc0e0336fcde1cce6ba19705f82c1edf9bfc6))
|
|
190
|
+
- enable use of both small and medium chips in design ([4536f96](https://github.com/ho-nl/m2-pwa/commit/4536f96b031734a71faf7c10f94aa5d5da90b9a8))
|
|
218
191
|
|
|
219
192
|
# [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)
|
|
220
193
|
|
|
221
194
|
### Features
|
|
222
195
|
|
|
223
|
-
- **nextjs:** upgraded to nextjs 12
|
|
224
|
-
([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
196
|
+
- **nextjs:** upgraded to nextjs 12 ([9331bc8](https://github.com/ho-nl/m2-pwa/commit/9331bc801f6419522115cc47d291d49d608d5a90))
|
|
225
197
|
|
|
226
198
|
## [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)
|
|
227
199
|
|
|
@@ -231,115 +203,89 @@ All notable changes to this project will be documented in this file. See
|
|
|
231
203
|
|
|
232
204
|
### Bug Fixes
|
|
233
205
|
|
|
234
|
-
- customer-order folder structure
|
|
235
|
-
|
|
236
|
-
-
|
|
237
|
-
|
|
238
|
-
- make
|
|
239
|
-
|
|
240
|
-
- remove coupon form style was too large
|
|
241
|
-
([30df274](https://github.com/ho-nl/m2-pwa/commit/30df274ecdffdcebd76710a5304d6fa248e81211))
|
|
242
|
-
- **review:** make sure chip is rendered correctly
|
|
243
|
-
([387df34](https://github.com/ho-nl/m2-pwa/commit/387df3456973290f9ce98d47823a7c71a6d95850))
|
|
244
|
-
- SvgSimpleImage sizing didn't use rem
|
|
245
|
-
([1ba07a5](https://github.com/ho-nl/m2-pwa/commit/1ba07a5694bd60ad3cee2e8102814643d2a7c79d))
|
|
206
|
+
- customer-order folder structure ([b7fabd1](https://github.com/ho-nl/m2-pwa/commit/b7fabd12014b2925d0b89c21f58e9974ce1c8b40))
|
|
207
|
+
- introduced SvgImageSimple and solve issue with review chips ([931d7fd](https://github.com/ho-nl/m2-pwa/commit/931d7fdcf0faa9d2264899b72e564138215b6bd8))
|
|
208
|
+
- make separate queries folder, create injectable for account and inject reviews ([5d82a5d](https://github.com/ho-nl/m2-pwa/commit/5d82a5d9162f687c2678cce215b77eedbaf1669e))
|
|
209
|
+
- remove coupon form style was too large ([30df274](https://github.com/ho-nl/m2-pwa/commit/30df274ecdffdcebd76710a5304d6fa248e81211))
|
|
210
|
+
- **review:** make sure chip is rendered correctly ([387df34](https://github.com/ho-nl/m2-pwa/commit/387df3456973290f9ce98d47823a7c71a6d95850))
|
|
211
|
+
- SvgSimpleImage sizing didn't use rem ([1ba07a5](https://github.com/ho-nl/m2-pwa/commit/1ba07a5694bd60ad3cee2e8102814643d2a7c79d))
|
|
246
212
|
|
|
247
213
|
### Features
|
|
248
214
|
|
|
249
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
250
|
-
|
|
251
|
-
-
|
|
252
|
-
|
|
253
|
-
([491e4ce](https://github.com/ho-nl/m2-pwa/commit/491e4cec9a2686472dac36b79f999257c0811ffe))
|
|
254
|
-
- **theme:** restructured fonts and applied to home and category page
|
|
255
|
-
([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
|
|
256
|
-
- upgraded to nextjs 11
|
|
257
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
215
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
216
|
+
- 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))
|
|
217
|
+
- **theme:** restructured fonts and applied to home and category page ([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
|
|
218
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
258
219
|
|
|
259
220
|
### Reverts
|
|
260
221
|
|
|
261
|
-
- Revert "chore: upgrade @apollo/client"
|
|
262
|
-
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
222
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
263
223
|
|
|
264
224
|
# Change Log
|
|
265
225
|
|
|
266
|
-
All notable changes to this project will be documented in this file. See
|
|
267
|
-
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
226
|
+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
268
227
|
|
|
269
228
|
# [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)
|
|
270
229
|
|
|
271
230
|
### Bug Fixes
|
|
272
231
|
|
|
273
|
-
- remove coupon form style was too large
|
|
274
|
-
([30df274](https://github.com/ho-nl/m2-pwa/commit/30df274ecdffdcebd76710a5304d6fa248e81211))
|
|
232
|
+
- remove coupon form style was too large ([30df274](https://github.com/ho-nl/m2-pwa/commit/30df274ecdffdcebd76710a5304d6fa248e81211))
|
|
275
233
|
|
|
276
234
|
### Features
|
|
277
235
|
|
|
278
|
-
- upgraded to nextjs 11
|
|
279
|
-
([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
236
|
+
- upgraded to nextjs 11 ([0053beb](https://github.com/ho-nl/m2-pwa/commit/0053beb7ef597c190add7264256a0eaec35868da))
|
|
280
237
|
|
|
281
238
|
## [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)
|
|
282
239
|
|
|
283
240
|
### Bug Fixes
|
|
284
241
|
|
|
285
|
-
- SvgSimpleImage sizing didn't use rem
|
|
286
|
-
([1ba07a5](https://github.com/ho-nl/m2-pwa/commit/1ba07a5694bd60ad3cee2e8102814643d2a7c79d))
|
|
242
|
+
- SvgSimpleImage sizing didn't use rem ([1ba07a5](https://github.com/ho-nl/m2-pwa/commit/1ba07a5694bd60ad3cee2e8102814643d2a7c79d))
|
|
287
243
|
|
|
288
244
|
### Reverts
|
|
289
245
|
|
|
290
|
-
- Revert "chore: upgrade @apollo/client"
|
|
291
|
-
([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
246
|
+
- Revert "chore: upgrade @apollo/client" ([55ff24e](https://github.com/ho-nl/m2-pwa/commit/55ff24ede0e56c85b8095edadadd1ec5e0b1b8d2))
|
|
292
247
|
|
|
293
248
|
## [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)
|
|
294
249
|
|
|
295
250
|
### Bug Fixes
|
|
296
251
|
|
|
297
|
-
- **review:** make sure chip is rendered correctly
|
|
298
|
-
([387df34](https://github.com/ho-nl/m2-pwa/commit/387df3456973290f9ce98d47823a7c71a6d95850))
|
|
252
|
+
- **review:** make sure chip is rendered correctly ([387df34](https://github.com/ho-nl/m2-pwa/commit/387df3456973290f9ce98d47823a7c71a6d95850))
|
|
299
253
|
|
|
300
254
|
# [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)
|
|
301
255
|
|
|
302
256
|
### Bug Fixes
|
|
303
257
|
|
|
304
|
-
- introduced SvgImageSimple and solve issue with review chips
|
|
305
|
-
([931d7fd](https://github.com/ho-nl/m2-pwa/commit/931d7fdcf0faa9d2264899b72e564138215b6bd8))
|
|
258
|
+
- introduced SvgImageSimple and solve issue with review chips ([931d7fd](https://github.com/ho-nl/m2-pwa/commit/931d7fdcf0faa9d2264899b72e564138215b6bd8))
|
|
306
259
|
|
|
307
260
|
### Features
|
|
308
261
|
|
|
309
|
-
- **theme:** restructured fonts and applied to home and category page
|
|
310
|
-
([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
|
|
262
|
+
- **theme:** restructured fonts and applied to home and category page ([6adf5f1](https://github.com/ho-nl/m2-pwa/commit/6adf5f11321bdfbf499125f1161c5abf5a1bfe4a))
|
|
311
263
|
|
|
312
264
|
# [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)
|
|
313
265
|
|
|
314
266
|
### Features
|
|
315
267
|
|
|
316
|
-
- **playwright:** added new playwright package to enable browser testing
|
|
317
|
-
([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
268
|
+
- **playwright:** added new playwright package to enable browser testing ([6f49ec7](https://github.com/ho-nl/m2-pwa/commit/6f49ec7595563775b96ebf21c27e39da1282e8d9))
|
|
318
269
|
|
|
319
270
|
## 2.101.1 (2021-07-23)
|
|
320
271
|
|
|
321
272
|
### Bug Fixes
|
|
322
273
|
|
|
323
|
-
- customer-order folder structure
|
|
324
|
-
|
|
325
|
-
- make separate queries folder, create injectable for account and inject reviews
|
|
326
|
-
([5d82a5d](https://github.com/ho-nl/m2-pwa/commit/5d82a5d9162f687c2678cce215b77eedbaf1669e))
|
|
274
|
+
- customer-order folder structure ([b7fabd1](https://github.com/ho-nl/m2-pwa/commit/b7fabd12014b2925d0b89c21f58e9974ce1c8b40))
|
|
275
|
+
- make separate queries folder, create injectable for account and inject reviews ([5d82a5d](https://github.com/ho-nl/m2-pwa/commit/5d82a5d9162f687c2678cce215b77eedbaf1669e))
|
|
327
276
|
|
|
328
277
|
# [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)
|
|
329
278
|
|
|
330
279
|
### Bug Fixes
|
|
331
280
|
|
|
332
|
-
- write review button mobile styles
|
|
333
|
-
([8f6b883](https://github.com/ho-nl/m2-pwa/commit/8f6b883fa0a513f84b7c6d8ed376b0e8d4b8a3bd))
|
|
281
|
+
- write review button mobile styles ([8f6b883](https://github.com/ho-nl/m2-pwa/commit/8f6b883fa0a513f84b7c6d8ed376b0e8d4b8a3bd))
|
|
334
282
|
|
|
335
283
|
### Features
|
|
336
284
|
|
|
337
|
-
- **reviews:** no reviews written message
|
|
338
|
-
([8ade3db](https://github.com/ho-nl/m2-pwa/commit/8ade3dbe830f5a59af09c002dfa38fa5349a4b61))
|
|
285
|
+
- **reviews:** no reviews written message ([8ade3db](https://github.com/ho-nl/m2-pwa/commit/8ade3dbe830f5a59af09c002dfa38fa5349a4b61))
|
|
339
286
|
|
|
340
287
|
## [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)
|
|
341
288
|
|
|
342
289
|
### Bug Fixes
|
|
343
290
|
|
|
344
|
-
- ignore md files from triggering version updates
|
|
345
|
-
([4f98392](https://github.com/ho-nl/m2-pwa/commit/4f9839250b3a32d3070da5290e5efcc5e2243fba))
|
|
291
|
+
- 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
|
|
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
|
|
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
|
|
22
|
+
export function CustomerReview(props: CustomerReviewProps) {
|
|
23
23
|
const { product, text, average_rating, created_at, sx = [] } = props
|
|
24
24
|
|
|
25
25
|
const maxAverageRating = 100
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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={<
|
|
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 {
|
|
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
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
|
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('_', '-')
|
|
@@ -148,7 +148,9 @@ export default function ProductReviews(props: ProductReviewsProps) {
|
|
|
148
148
|
alignItems: 'center',
|
|
149
149
|
})}
|
|
150
150
|
>
|
|
151
|
-
<Typography variant='subtitle1'>
|
|
151
|
+
<Typography variant='subtitle1'>
|
|
152
|
+
<Trans>Be the first to write a review!</Trans>
|
|
153
|
+
</Typography>
|
|
152
154
|
</Box>
|
|
153
155
|
</Box>
|
|
154
156
|
{actions}
|
|
@@ -241,7 +243,7 @@ export default function ProductReviews(props: ProductReviewsProps) {
|
|
|
241
243
|
})}
|
|
242
244
|
>
|
|
243
245
|
<Box className={classes.nickname} sx={{ typography: 'body2' }}>
|
|
244
|
-
Written by {review?.nickname}
|
|
246
|
+
<Trans>Written by</Trans> {review?.nickname}
|
|
245
247
|
</Box>
|
|
246
248
|
<Box
|
|
247
249
|
component='time'
|
package/components/index.ts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
|
-
export
|
|
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 './
|
|
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.
|
|
5
|
+
"version": "3.0.7",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^4.0.
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.0.5",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.3",
|
|
17
17
|
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
18
|
-
"@playwright/test": "^1.19.
|
|
18
|
+
"@playwright/test": "^1.19.2"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@graphcommerce/graphql": "^3.0.
|
|
22
|
-
"@graphcommerce/image": "^3.1.
|
|
23
|
-
"@graphcommerce/magento-customer": "^4.1.
|
|
24
|
-
"@graphcommerce/magento-product": "^4.0.
|
|
25
|
-
"@graphcommerce/magento-store": "^4.1.
|
|
26
|
-
"@graphcommerce/next-ui": "^4.
|
|
27
|
-
"@graphcommerce/react-hook-form": "^3.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
28
|
"schema-dts": "^1.1.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|