@graphcommerce/magento-review 8.1.0-canary.9 → 9.0.0-canary.55
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,97 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.55
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.54
|
|
6
|
+
|
|
7
|
+
## 8.1.0-canary.53
|
|
8
|
+
|
|
9
|
+
## 8.1.0-canary.52
|
|
10
|
+
|
|
11
|
+
## 8.1.0-canary.51
|
|
12
|
+
|
|
13
|
+
## 8.1.0-canary.50
|
|
14
|
+
|
|
15
|
+
## 8.1.0-canary.49
|
|
16
|
+
|
|
17
|
+
## 8.1.0-canary.48
|
|
18
|
+
|
|
19
|
+
## 8.1.0-canary.47
|
|
20
|
+
|
|
21
|
+
## 8.1.0-canary.46
|
|
22
|
+
|
|
23
|
+
## 8.1.0-canary.45
|
|
24
|
+
|
|
25
|
+
## 8.1.0-canary.44
|
|
26
|
+
|
|
27
|
+
## 8.1.0-canary.43
|
|
28
|
+
|
|
29
|
+
## 8.1.0-canary.42
|
|
30
|
+
|
|
31
|
+
## 8.1.0-canary.41
|
|
32
|
+
|
|
33
|
+
## 8.1.0-canary.40
|
|
34
|
+
|
|
35
|
+
## 8.1.0-canary.39
|
|
36
|
+
|
|
37
|
+
## 8.1.0-canary.38
|
|
38
|
+
|
|
39
|
+
## 8.1.0-canary.37
|
|
40
|
+
|
|
41
|
+
## 8.1.0-canary.36
|
|
42
|
+
|
|
43
|
+
## 8.1.0-canary.35
|
|
44
|
+
|
|
45
|
+
## 8.1.0-canary.34
|
|
46
|
+
|
|
47
|
+
## 8.1.0-canary.33
|
|
48
|
+
|
|
49
|
+
## 8.1.0-canary.32
|
|
50
|
+
|
|
51
|
+
## 8.1.0-canary.31
|
|
52
|
+
|
|
53
|
+
## 8.1.0-canary.30
|
|
54
|
+
|
|
55
|
+
## 8.1.0-canary.29
|
|
56
|
+
|
|
57
|
+
## 8.1.0-canary.28
|
|
58
|
+
|
|
59
|
+
## 8.1.0-canary.27
|
|
60
|
+
|
|
61
|
+
## 8.1.0-canary.26
|
|
62
|
+
|
|
63
|
+
## 8.1.0-canary.25
|
|
64
|
+
|
|
65
|
+
## 8.1.0-canary.24
|
|
66
|
+
|
|
67
|
+
## 8.1.0-canary.23
|
|
68
|
+
|
|
69
|
+
## 8.1.0-canary.22
|
|
70
|
+
|
|
71
|
+
## 8.1.0-canary.21
|
|
72
|
+
|
|
73
|
+
## 8.1.0-canary.20
|
|
74
|
+
|
|
75
|
+
## 8.1.0-canary.19
|
|
76
|
+
|
|
77
|
+
## 8.1.0-canary.18
|
|
78
|
+
|
|
79
|
+
## 8.1.0-canary.17
|
|
80
|
+
|
|
81
|
+
## 8.1.0-canary.16
|
|
82
|
+
|
|
83
|
+
## 8.1.0-canary.15
|
|
84
|
+
|
|
85
|
+
## 8.1.0-canary.14
|
|
86
|
+
|
|
87
|
+
## 8.1.0-canary.13
|
|
88
|
+
|
|
89
|
+
## 8.1.0-canary.12
|
|
90
|
+
|
|
91
|
+
## 8.1.0-canary.11
|
|
92
|
+
|
|
93
|
+
## 8.1.0-canary.10
|
|
94
|
+
|
|
3
95
|
## 8.1.0-canary.9
|
|
4
96
|
|
|
5
97
|
## 8.1.0-canary.8
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { Image } from '@graphcommerce/image'
|
|
2
|
-
import {
|
|
3
|
-
responsiveVal,
|
|
4
|
-
extendableComponent,
|
|
5
|
-
useDateTimeFormat,
|
|
6
|
-
IconSvg,
|
|
7
|
-
} from '@graphcommerce/next-ui'
|
|
2
|
+
import { responsiveVal, extendableComponent, IconSvg, DateTimeFormat } from '@graphcommerce/next-ui'
|
|
8
3
|
import { Box, SxProps, Theme } from '@mui/material'
|
|
9
4
|
import { CustomerReviewFragment } from './CustomerReview.gql'
|
|
10
5
|
import filledStar from './review_star_filled.svg'
|
|
@@ -29,8 +24,6 @@ export function CustomerReview(props: CustomerReviewProps) {
|
|
|
29
24
|
const valuePerStar = maxAverageRating / totalStars
|
|
30
25
|
const totalFilledStars = (average_rating / maxAverageRating / valuePerStar) * 100
|
|
31
26
|
|
|
32
|
-
const dateFormatter = useDateTimeFormat({ dateStyle: 'long' })
|
|
33
|
-
|
|
34
27
|
return (
|
|
35
28
|
<Box
|
|
36
29
|
className={classes.container}
|
|
@@ -98,7 +91,7 @@ export function CustomerReview(props: CustomerReviewProps) {
|
|
|
98
91
|
color: theme.palette.text.disabled,
|
|
99
92
|
})}
|
|
100
93
|
>
|
|
101
|
-
{
|
|
94
|
+
<DateTimeFormat>{created_at}</DateTimeFormat>
|
|
102
95
|
</Box>
|
|
103
96
|
</Box>
|
|
104
97
|
)
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
responsiveVal,
|
|
5
5
|
StarRatingField,
|
|
6
6
|
extendableComponent,
|
|
7
|
-
|
|
7
|
+
DateTimeFormat,
|
|
8
8
|
} from '@graphcommerce/next-ui'
|
|
9
9
|
import { Trans } from '@lingui/react'
|
|
10
10
|
import { Typography, Button, Box, SxProps, Theme, Link } from '@mui/material'
|
|
@@ -52,8 +52,6 @@ export function ProductReviews(props: ProductReviewsProps) {
|
|
|
52
52
|
|
|
53
53
|
const { current_page, total_pages } = myReviews.page_info
|
|
54
54
|
|
|
55
|
-
const formatter = useDateTimeFormat({ dateStyle: 'long', timeStyle: 'short' })
|
|
56
|
-
|
|
57
55
|
if (!reviews) {
|
|
58
56
|
return null
|
|
59
57
|
}
|
|
@@ -233,8 +231,9 @@ export function ProductReviews(props: ProductReviewsProps) {
|
|
|
233
231
|
dateTime={review?.created_at}
|
|
234
232
|
sx={{ typography: 'body2' }}
|
|
235
233
|
>
|
|
236
|
-
|
|
237
|
-
|
|
234
|
+
<DateTimeFormat dateStyle='long' timeStyle='short'>
|
|
235
|
+
{review?.created_at.replace(/-/g, '/')}
|
|
236
|
+
</DateTimeFormat>
|
|
238
237
|
</Box>
|
|
239
238
|
</Box>
|
|
240
239
|
</Box>
|
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": "
|
|
5
|
+
"version": "9.0.0-canary.55",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
"typescript": "5.3.3"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@graphcommerce/ecommerce-ui": "^
|
|
22
|
-
"@graphcommerce/eslint-config-pwa": "^
|
|
23
|
-
"@graphcommerce/graphql": "^
|
|
24
|
-
"@graphcommerce/graphql-mesh": "^
|
|
25
|
-
"@graphcommerce/image": "^
|
|
26
|
-
"@graphcommerce/magento-customer": "^
|
|
27
|
-
"@graphcommerce/magento-product": "^
|
|
28
|
-
"@graphcommerce/magento-store": "^
|
|
29
|
-
"@graphcommerce/next-ui": "^
|
|
30
|
-
"@graphcommerce/prettier-config-pwa": "^
|
|
31
|
-
"@graphcommerce/react-hook-form": "^
|
|
32
|
-
"@graphcommerce/typescript-config-pwa": "^
|
|
21
|
+
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.55",
|
|
22
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.55",
|
|
23
|
+
"@graphcommerce/graphql": "^9.0.0-canary.55",
|
|
24
|
+
"@graphcommerce/graphql-mesh": "^9.0.0-canary.55",
|
|
25
|
+
"@graphcommerce/image": "^9.0.0-canary.55",
|
|
26
|
+
"@graphcommerce/magento-customer": "^9.0.0-canary.55",
|
|
27
|
+
"@graphcommerce/magento-product": "^9.0.0-canary.55",
|
|
28
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.55",
|
|
29
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.55",
|
|
30
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.55",
|
|
31
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.55",
|
|
32
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.55",
|
|
33
33
|
"@lingui/core": "^4.2.1",
|
|
34
34
|
"@lingui/macro": "^4.2.1",
|
|
35
35
|
"@lingui/react": "^4.2.1",
|