@graphcommerce/magento-review 3.0.2 → 3.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,62 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1292](https://github.com/ho-nl/m2-pwa/pull/1292)
|
|
8
|
+
[`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0)
|
|
9
|
+
Thanks [@paales](https://github.com/paales)! - Renamed SvgIcon to IconSvg to prevent collisions
|
|
10
|
+
with MUI
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
[[`5a1ba9e66`](https://github.com/ho-nl/m2-pwa/commit/5a1ba9e664abbac89c4f5f71f7d6d6ed1aefa5c0),
|
|
14
|
+
[`990df655b`](https://github.com/ho-nl/m2-pwa/commit/990df655b73b469718d6cb5837ee65dfe2ad6a1d),
|
|
15
|
+
[`63f9b56eb`](https://github.com/ho-nl/m2-pwa/commit/63f9b56eb68ba790567ff1427e599fd2c3c8f1ee)]:
|
|
16
|
+
- @graphcommerce/magento-customer@4.1.3
|
|
17
|
+
- @graphcommerce/magento-product@4.0.5
|
|
18
|
+
- @graphcommerce/next-ui@4.2.0
|
|
19
|
+
|
|
20
|
+
## 3.0.4
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- [#1285](https://github.com/ho-nl/m2-pwa/pull/1285)
|
|
25
|
+
[`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017)
|
|
26
|
+
Thanks [@paales](https://github.com/paales)! - upgraded dependencies
|
|
27
|
+
|
|
28
|
+
- Updated dependencies
|
|
29
|
+
[[`ed9703b06`](https://github.com/ho-nl/m2-pwa/commit/ed9703b062d23ee01b1605ff9917c0ac3247fc25),
|
|
30
|
+
[`c85294ba6`](https://github.com/ho-nl/m2-pwa/commit/c85294ba6d742ce78c074559a1e95409b25a5017)]:
|
|
31
|
+
- @graphcommerce/magento-store@4.1.0
|
|
32
|
+
- @graphcommerce/magento-product@4.0.4
|
|
33
|
+
- @graphcommerce/next-ui@4.1.3
|
|
34
|
+
|
|
35
|
+
## 3.0.3
|
|
36
|
+
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- [#1280](https://github.com/ho-nl/m2-pwa/pull/1280)
|
|
40
|
+
[`bdd460c6f`](https://github.com/ho-nl/m2-pwa/commit/bdd460c6f09af148a96c55324012b8f53c3618f1)
|
|
41
|
+
Thanks [@paales](https://github.com/paales)! - Review forms now work by using the url_key of a
|
|
42
|
+
product instead of the SKU. Some backends do not support filtering by sku
|
|
43
|
+
|
|
44
|
+
* [`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96)
|
|
45
|
+
Thanks [@paales](https://github.com/paales)! - made packages public
|
|
46
|
+
|
|
47
|
+
* Updated dependencies
|
|
48
|
+
[[`973ff8645`](https://github.com/ho-nl/m2-pwa/commit/973ff86452a70ade9f4db13fdda6e963d7220e96),
|
|
49
|
+
[`81ea406d5`](https://github.com/ho-nl/m2-pwa/commit/81ea406d54d6b5c662c030a7fea444abc4117a20),
|
|
50
|
+
[`3a719c88c`](https://github.com/ho-nl/m2-pwa/commit/3a719c88cad1eab58602de28c41adc0fc4827e1d),
|
|
51
|
+
[`5ffcb56bf`](https://github.com/ho-nl/m2-pwa/commit/5ffcb56bfcbe49ebeaf24f9341e819a145ab9a14)]:
|
|
52
|
+
- @graphcommerce/graphql@3.0.3
|
|
53
|
+
- @graphcommerce/image@3.1.0
|
|
54
|
+
- @graphcommerce/magento-customer@4.1.2
|
|
55
|
+
- @graphcommerce/magento-product@4.0.3
|
|
56
|
+
- @graphcommerce/magento-store@4.0.3
|
|
57
|
+
- @graphcommerce/next-ui@4.1.2
|
|
58
|
+
- @graphcommerce/react-hook-form@3.0.3
|
|
59
|
+
|
|
3
60
|
## 3.0.2
|
|
4
61
|
|
|
5
62
|
### Patch 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
|
|
|
@@ -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
|
|
|
@@ -14,7 +14,7 @@ export default function ProductReviewSummary(props: ProductReviewSummaryProps) {
|
|
|
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}
|
|
@@ -33,7 +33,7 @@ const parts = [
|
|
|
33
33
|
const { classes } = extendableComponent(name, parts)
|
|
34
34
|
|
|
35
35
|
export default function ProductReviews(props: ProductReviewsProps) {
|
|
36
|
-
const { reviews, url_key,
|
|
36
|
+
const { reviews, url_key, sx = [] } = props
|
|
37
37
|
const config = 'en_US'
|
|
38
38
|
const locale = config.replace('_', '-')
|
|
39
39
|
|
|
@@ -74,7 +74,7 @@ export default function ProductReviews(props: ProductReviewsProps) {
|
|
|
74
74
|
marginTop: theme.spacings.sm,
|
|
75
75
|
})}
|
|
76
76
|
>
|
|
77
|
-
<Link href={`/account/reviews/add?
|
|
77
|
+
<Link href={`/account/reviews/add?url_key=${url_key}`} passHref>
|
|
78
78
|
<Button
|
|
79
79
|
variant='pill'
|
|
80
80
|
color='primary'
|
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.5",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -12,20 +12,20 @@
|
|
|
12
12
|
}
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@graphcommerce/eslint-config-pwa": "^4.0.
|
|
16
|
-
"@graphcommerce/prettier-config-pwa": "^4.0.
|
|
17
|
-
"@graphcommerce/typescript-config-pwa": "^4.0.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.0.4",
|
|
16
|
+
"@graphcommerce/prettier-config-pwa": "^4.0.2",
|
|
17
|
+
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
18
18
|
"@playwright/test": "^1.19.1"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@graphcommerce/graphql": "^3.0.
|
|
22
|
-
"@graphcommerce/image": "^3.0
|
|
23
|
-
"@graphcommerce/magento-customer": "^4.1.
|
|
24
|
-
"@graphcommerce/magento-product": "^4.0.
|
|
25
|
-
"@graphcommerce/magento-store": "^4.0
|
|
26
|
-
"@graphcommerce/next-ui": "^4.
|
|
27
|
-
"@graphcommerce/react-hook-form": "^3.0.
|
|
28
|
-
"schema-dts": "^1.
|
|
21
|
+
"@graphcommerce/graphql": "^3.0.3",
|
|
22
|
+
"@graphcommerce/image": "^3.1.0",
|
|
23
|
+
"@graphcommerce/magento-customer": "^4.1.3",
|
|
24
|
+
"@graphcommerce/magento-product": "^4.0.5",
|
|
25
|
+
"@graphcommerce/magento-store": "^4.1.0",
|
|
26
|
+
"@graphcommerce/next-ui": "^4.2.0",
|
|
27
|
+
"@graphcommerce/react-hook-form": "^3.0.3",
|
|
28
|
+
"schema-dts": "^1.1.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@lingui/macro": "^3.13.2",
|