@graphcommerce/magento-review 3.1.7 → 3.2.0
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 +37 -0
- package/components/ProductReviews/ProductReviews.tsx +16 -16
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 3.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1416](https://github.com/graphcommerce-org/graphcommerce/pull/1416) [`f3d06dd83`](https://github.com/graphcommerce-org/graphcommerce/commit/f3d06dd836c9a76412b419d4d2c79bbd0ee92e04) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - SEO audit
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`f3d06dd83`](https://github.com/graphcommerce-org/graphcommerce/commit/f3d06dd836c9a76412b419d4d2c79bbd0ee92e04)]:
|
|
12
|
+
- @graphcommerce/magento-product@4.2.0
|
|
13
|
+
- @graphcommerce/magento-store@4.2.0
|
|
14
|
+
- @graphcommerce/next-ui@4.7.0
|
|
15
|
+
- @graphcommerce/magento-customer@4.2.8
|
|
16
|
+
|
|
17
|
+
## 3.1.9
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`ba8cd4d34`](https://github.com/graphcommerce-org/graphcommerce/commit/ba8cd4d3480a7ec7e555b051cfd0fbc809c7aa12)]:
|
|
22
|
+
- @graphcommerce/graphql-mesh@4.1.2
|
|
23
|
+
- @graphcommerce/magento-customer@4.2.7
|
|
24
|
+
- @graphcommerce/magento-product@4.1.11
|
|
25
|
+
- @graphcommerce/magento-store@4.1.9
|
|
26
|
+
|
|
27
|
+
## 3.1.8
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [[`06f7bdff8`](https://github.com/graphcommerce-org/graphcommerce/commit/06f7bdff882396f2b0e1a2873fbb718c7b06fab4), [`b6b8bb5b3`](https://github.com/graphcommerce-org/graphcommerce/commit/b6b8bb5b31b0891ea24733de34a3bd5c0a9604e4), [`100f4c38c`](https://github.com/graphcommerce-org/graphcommerce/commit/100f4c38c8fcda4bc6e0425e38028b550b60adc2)]:
|
|
32
|
+
- @graphcommerce/graphql-mesh@4.1.1
|
|
33
|
+
- @graphcommerce/magento-product@4.1.10
|
|
34
|
+
- @graphcommerce/graphql@3.1.1
|
|
35
|
+
- @graphcommerce/next-ui@4.6.2
|
|
36
|
+
- @graphcommerce/react-hook-form@3.1.2
|
|
37
|
+
- @graphcommerce/magento-customer@4.2.6
|
|
38
|
+
- @graphcommerce/magento-store@4.1.8
|
|
39
|
+
|
|
3
40
|
## 3.1.7
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from '@graphcommerce/next-ui'
|
|
8
8
|
import { Trans } from '@lingui/macro'
|
|
9
9
|
import { Typography, Button, Box, SxProps, Theme, Link } from '@mui/material'
|
|
10
|
-
import
|
|
10
|
+
import { useRouter } from 'next/router'
|
|
11
11
|
import React, { useState } from 'react'
|
|
12
12
|
import { ProductReviewChip } from '../ProductReviewChip/ProductReviewChip'
|
|
13
13
|
import { ProductReviewsFragment } from './ProductReviews.gql'
|
|
@@ -36,6 +36,7 @@ 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('_', '-')
|
|
39
|
+
const router = useRouter()
|
|
39
40
|
|
|
40
41
|
const [reviewPage, setPage] = useState<number>(1)
|
|
41
42
|
|
|
@@ -74,21 +75,20 @@ export function ProductReviews(props: ProductReviewsProps) {
|
|
|
74
75
|
marginTop: theme.spacings.sm,
|
|
75
76
|
})}
|
|
76
77
|
>
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
</PageLink>
|
|
78
|
+
<Button
|
|
79
|
+
variant='pill'
|
|
80
|
+
color='primary'
|
|
81
|
+
size='medium'
|
|
82
|
+
className={classes.writeReviewButton}
|
|
83
|
+
onClick={() => router.push(`/account/reviews/add?url_key=${url_key}`)}
|
|
84
|
+
sx={(theme) => ({
|
|
85
|
+
[theme.breakpoints.down('sm')]: {
|
|
86
|
+
whiteSpace: 'nowrap',
|
|
87
|
+
},
|
|
88
|
+
})}
|
|
89
|
+
>
|
|
90
|
+
<Trans>Write a review</Trans>
|
|
91
|
+
</Button>
|
|
92
92
|
|
|
93
93
|
{!!total_pages && total_pages > 1 && (
|
|
94
94
|
<Pagination
|
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.
|
|
5
|
+
"version": "3.2.0",
|
|
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.1.
|
|
15
|
+
"@graphcommerce/eslint-config-pwa": "^4.1.6",
|
|
16
16
|
"@graphcommerce/prettier-config-pwa": "^4.0.6",
|
|
17
17
|
"@graphcommerce/typescript-config-pwa": "^4.0.2",
|
|
18
18
|
"@playwright/test": "^1.21.1"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@graphcommerce/graphql": "3.1.
|
|
22
|
-
"@graphcommerce/graphql-mesh": "4.1.
|
|
21
|
+
"@graphcommerce/graphql": "3.1.1",
|
|
22
|
+
"@graphcommerce/graphql-mesh": "4.1.2",
|
|
23
23
|
"@graphcommerce/image": "3.1.5",
|
|
24
|
-
"@graphcommerce/magento-customer": "4.2.
|
|
25
|
-
"@graphcommerce/magento-product": "4.
|
|
26
|
-
"@graphcommerce/magento-store": "4.
|
|
27
|
-
"@graphcommerce/next-ui": "4.
|
|
28
|
-
"@graphcommerce/react-hook-form": "3.1.
|
|
24
|
+
"@graphcommerce/magento-customer": "4.2.8",
|
|
25
|
+
"@graphcommerce/magento-product": "4.2.0",
|
|
26
|
+
"@graphcommerce/magento-store": "4.2.0",
|
|
27
|
+
"@graphcommerce/next-ui": "4.7.0",
|
|
28
|
+
"@graphcommerce/react-hook-form": "3.1.2",
|
|
29
29
|
"schema-dts": "^1.1.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|