@graphcommerce/magento-review 8.1.0-canary.5 → 8.1.0-canary.52
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,99 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 8.1.0-canary.52
|
|
4
|
+
|
|
5
|
+
## 8.1.0-canary.51
|
|
6
|
+
|
|
7
|
+
## 8.1.0-canary.50
|
|
8
|
+
|
|
9
|
+
## 8.1.0-canary.49
|
|
10
|
+
|
|
11
|
+
## 8.1.0-canary.48
|
|
12
|
+
|
|
13
|
+
## 8.1.0-canary.47
|
|
14
|
+
|
|
15
|
+
## 8.1.0-canary.46
|
|
16
|
+
|
|
17
|
+
## 8.1.0-canary.45
|
|
18
|
+
|
|
19
|
+
## 8.1.0-canary.44
|
|
20
|
+
|
|
21
|
+
## 8.1.0-canary.43
|
|
22
|
+
|
|
23
|
+
## 8.1.0-canary.42
|
|
24
|
+
|
|
25
|
+
## 8.1.0-canary.41
|
|
26
|
+
|
|
27
|
+
## 8.1.0-canary.40
|
|
28
|
+
|
|
29
|
+
## 8.1.0-canary.39
|
|
30
|
+
|
|
31
|
+
## 8.1.0-canary.38
|
|
32
|
+
|
|
33
|
+
## 8.1.0-canary.37
|
|
34
|
+
|
|
35
|
+
## 8.1.0-canary.36
|
|
36
|
+
|
|
37
|
+
## 8.1.0-canary.35
|
|
38
|
+
|
|
39
|
+
## 8.1.0-canary.34
|
|
40
|
+
|
|
41
|
+
## 8.1.0-canary.33
|
|
42
|
+
|
|
43
|
+
## 8.1.0-canary.32
|
|
44
|
+
|
|
45
|
+
## 8.1.0-canary.31
|
|
46
|
+
|
|
47
|
+
## 8.1.0-canary.30
|
|
48
|
+
|
|
49
|
+
## 8.1.0-canary.29
|
|
50
|
+
|
|
51
|
+
## 8.1.0-canary.28
|
|
52
|
+
|
|
53
|
+
## 8.1.0-canary.27
|
|
54
|
+
|
|
55
|
+
## 8.1.0-canary.26
|
|
56
|
+
|
|
57
|
+
## 8.1.0-canary.25
|
|
58
|
+
|
|
59
|
+
## 8.1.0-canary.24
|
|
60
|
+
|
|
61
|
+
## 8.1.0-canary.23
|
|
62
|
+
|
|
63
|
+
## 8.1.0-canary.22
|
|
64
|
+
|
|
65
|
+
## 8.1.0-canary.21
|
|
66
|
+
|
|
67
|
+
## 8.1.0-canary.20
|
|
68
|
+
|
|
69
|
+
## 8.1.0-canary.19
|
|
70
|
+
|
|
71
|
+
## 8.1.0-canary.18
|
|
72
|
+
|
|
73
|
+
## 8.1.0-canary.17
|
|
74
|
+
|
|
75
|
+
## 8.1.0-canary.16
|
|
76
|
+
|
|
77
|
+
## 8.1.0-canary.15
|
|
78
|
+
|
|
79
|
+
## 8.1.0-canary.14
|
|
80
|
+
|
|
81
|
+
## 8.1.0-canary.13
|
|
82
|
+
|
|
83
|
+
## 8.1.0-canary.12
|
|
84
|
+
|
|
85
|
+
## 8.1.0-canary.11
|
|
86
|
+
|
|
87
|
+
## 8.1.0-canary.10
|
|
88
|
+
|
|
89
|
+
## 8.1.0-canary.9
|
|
90
|
+
|
|
91
|
+
## 8.1.0-canary.8
|
|
92
|
+
|
|
93
|
+
## 8.1.0-canary.7
|
|
94
|
+
|
|
95
|
+
## 8.1.0-canary.6
|
|
96
|
+
|
|
3
97
|
## 8.1.0-canary.5
|
|
4
98
|
|
|
5
99
|
## 8.0.6-canary.4
|
|
@@ -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": "8.1.0-canary.
|
|
5
|
+
"version": "8.1.0-canary.52",
|
|
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": "^8.1.0-canary.
|
|
22
|
-
"@graphcommerce/eslint-config-pwa": "^8.1.0-canary.
|
|
23
|
-
"@graphcommerce/graphql": "^8.1.0-canary.
|
|
24
|
-
"@graphcommerce/graphql-mesh": "^8.1.0-canary.
|
|
25
|
-
"@graphcommerce/image": "^8.1.0-canary.
|
|
26
|
-
"@graphcommerce/magento-customer": "^8.1.0-canary.
|
|
27
|
-
"@graphcommerce/magento-product": "^8.1.0-canary.
|
|
28
|
-
"@graphcommerce/magento-store": "^8.1.0-canary.
|
|
29
|
-
"@graphcommerce/next-ui": "^8.1.0-canary.
|
|
30
|
-
"@graphcommerce/prettier-config-pwa": "^8.1.0-canary.
|
|
31
|
-
"@graphcommerce/react-hook-form": "^8.1.0-canary.
|
|
32
|
-
"@graphcommerce/typescript-config-pwa": "^8.1.0-canary.
|
|
21
|
+
"@graphcommerce/ecommerce-ui": "^8.1.0-canary.52",
|
|
22
|
+
"@graphcommerce/eslint-config-pwa": "^8.1.0-canary.52",
|
|
23
|
+
"@graphcommerce/graphql": "^8.1.0-canary.52",
|
|
24
|
+
"@graphcommerce/graphql-mesh": "^8.1.0-canary.52",
|
|
25
|
+
"@graphcommerce/image": "^8.1.0-canary.52",
|
|
26
|
+
"@graphcommerce/magento-customer": "^8.1.0-canary.52",
|
|
27
|
+
"@graphcommerce/magento-product": "^8.1.0-canary.52",
|
|
28
|
+
"@graphcommerce/magento-store": "^8.1.0-canary.52",
|
|
29
|
+
"@graphcommerce/next-ui": "^8.1.0-canary.52",
|
|
30
|
+
"@graphcommerce/prettier-config-pwa": "^8.1.0-canary.52",
|
|
31
|
+
"@graphcommerce/react-hook-form": "^8.1.0-canary.52",
|
|
32
|
+
"@graphcommerce/typescript-config-pwa": "^8.1.0-canary.52",
|
|
33
33
|
"@lingui/core": "^4.2.1",
|
|
34
34
|
"@lingui/macro": "^4.2.1",
|
|
35
35
|
"@lingui/react": "^4.2.1",
|