@graphcommerce/magento-review 9.0.0-canary.103 → 9.0.0-canary.104
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 +3 -1
- package/components/CreateProductReviewForm/CreateProductReviewForm.tsx +2 -2
- package/components/CustomerReview/CustomerReview.tsx +2 -2
- package/components/ProductReviewSummary/ProductReviewSummary.tsx +1 -1
- package/components/ProductReviews/ProductReviews.tsx +4 -6
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.104
|
|
4
|
+
|
|
3
5
|
## 9.0.0-canary.103
|
|
4
6
|
|
|
5
7
|
## 9.0.0-canary.77
|
|
@@ -627,8 +629,8 @@
|
|
|
627
629
|
Needs to be replaced with:
|
|
628
630
|
|
|
629
631
|
```tsx
|
|
630
|
-
import { Trans } from '@lingui/react'
|
|
631
632
|
import { i18n } from '@lingui/core'
|
|
633
|
+
import { Trans } from '@lingui/react'
|
|
632
634
|
|
|
633
635
|
function MyComponent() {
|
|
634
636
|
const foo = 'bar'
|
|
@@ -4,17 +4,17 @@ import type { ProductReviewRatingInput } from '@graphcommerce/graphql-mesh'
|
|
|
4
4
|
import { ApolloCustomerErrorAlert } from '@graphcommerce/magento-customer'
|
|
5
5
|
import {
|
|
6
6
|
Form,
|
|
7
|
-
responsiveVal,
|
|
8
7
|
FormActions,
|
|
9
8
|
FormRow,
|
|
10
9
|
StarRatingField,
|
|
11
10
|
extendableComponent,
|
|
11
|
+
responsiveVal,
|
|
12
12
|
} from '@graphcommerce/next-ui'
|
|
13
13
|
import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
|
|
14
14
|
import { Trans } from '@lingui/react'
|
|
15
15
|
// eslint-disable-next-line @typescript-eslint/no-restricted-imports
|
|
16
16
|
import type { SxProps, Theme } from '@mui/material'
|
|
17
|
-
import {
|
|
17
|
+
import { Alert, Box, Button, Typography } from '@mui/material'
|
|
18
18
|
import { useRouter } from 'next/router'
|
|
19
19
|
import { useEffect, useState } from 'react'
|
|
20
20
|
import { CreateProductReviewDocument } from './CreateProductReview.gql'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Image } from '@graphcommerce/image'
|
|
2
|
-
import {
|
|
2
|
+
import { DateTimeFormat, IconSvg, extendableComponent, responsiveVal } from '@graphcommerce/next-ui'
|
|
3
3
|
import type { SxProps, Theme } from '@mui/material'
|
|
4
4
|
import { Box } from '@mui/material'
|
|
5
5
|
import type { CustomerReviewFragment } from './CustomerReview.gql'
|
|
@@ -92,7 +92,7 @@ export function CustomerReview(props: CustomerReviewProps) {
|
|
|
92
92
|
color: theme.palette.text.disabled,
|
|
93
93
|
})}
|
|
94
94
|
>
|
|
95
|
-
<DateTimeFormat
|
|
95
|
+
<DateTimeFormat date={created_at} />
|
|
96
96
|
</Box>
|
|
97
97
|
</Box>
|
|
98
98
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconSvg,
|
|
1
|
+
import { IconSvg, extendableComponent, iconStar } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { SxProps, Theme } from '@mui/material'
|
|
3
3
|
import { Box } from '@mui/material'
|
|
4
4
|
import type { ProductReviewSummaryFragment } from './ProductReviewSummary.gql'
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { useQuery } from '@graphcommerce/graphql'
|
|
2
2
|
import {
|
|
3
|
+
DateTimeFormat,
|
|
3
4
|
Pagination,
|
|
4
|
-
responsiveVal,
|
|
5
5
|
StarRatingField,
|
|
6
6
|
extendableComponent,
|
|
7
|
-
|
|
7
|
+
responsiveVal,
|
|
8
8
|
} from '@graphcommerce/next-ui'
|
|
9
9
|
import { Trans } from '@lingui/react'
|
|
10
10
|
import type { SxProps, Theme } from '@mui/material'
|
|
11
|
-
import {
|
|
11
|
+
import { Box, Button, Link, Typography } from '@mui/material'
|
|
12
12
|
import { useRouter } from 'next/router'
|
|
13
13
|
import React, { useState } from 'react'
|
|
14
14
|
import { ProductReviewChip } from '../ProductReviewChip/ProductReviewChip'
|
|
@@ -232,9 +232,7 @@ export function ProductReviews(props: ProductReviewsProps) {
|
|
|
232
232
|
dateTime={review?.created_at}
|
|
233
233
|
sx={{ typography: 'body2' }}
|
|
234
234
|
>
|
|
235
|
-
<DateTimeFormat dateStyle='long' timeStyle='short'
|
|
236
|
-
{review?.created_at.replace(/-/g, '/')}
|
|
237
|
-
</DateTimeFormat>
|
|
235
|
+
<DateTimeFormat dateStyle='long' timeStyle='short' date={review?.created_at} />
|
|
238
236
|
</Box>
|
|
239
237
|
</Box>
|
|
240
238
|
</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": "9.0.0-canary.
|
|
5
|
+
"version": "9.0.0-canary.104",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
"typescript": "5.6.2"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.
|
|
22
|
-
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.
|
|
23
|
-
"@graphcommerce/graphql": "^9.0.0-canary.
|
|
24
|
-
"@graphcommerce/graphql-mesh": "^9.0.0-canary.
|
|
25
|
-
"@graphcommerce/image": "^9.0.0-canary.
|
|
26
|
-
"@graphcommerce/magento-customer": "^9.0.0-canary.
|
|
27
|
-
"@graphcommerce/magento-product": "^9.0.0-canary.
|
|
28
|
-
"@graphcommerce/magento-store": "^9.0.0-canary.
|
|
29
|
-
"@graphcommerce/next-ui": "^9.0.0-canary.
|
|
30
|
-
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.
|
|
31
|
-
"@graphcommerce/react-hook-form": "^9.0.0-canary.
|
|
32
|
-
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.
|
|
21
|
+
"@graphcommerce/ecommerce-ui": "^9.0.0-canary.104",
|
|
22
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.104",
|
|
23
|
+
"@graphcommerce/graphql": "^9.0.0-canary.104",
|
|
24
|
+
"@graphcommerce/graphql-mesh": "^9.0.0-canary.104",
|
|
25
|
+
"@graphcommerce/image": "^9.0.0-canary.104",
|
|
26
|
+
"@graphcommerce/magento-customer": "^9.0.0-canary.104",
|
|
27
|
+
"@graphcommerce/magento-product": "^9.0.0-canary.104",
|
|
28
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.104",
|
|
29
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.104",
|
|
30
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.104",
|
|
31
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.104",
|
|
32
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.104",
|
|
33
33
|
"@lingui/core": "^4.2.1",
|
|
34
34
|
"@lingui/macro": "^4.2.1",
|
|
35
35
|
"@lingui/react": "^4.2.1",
|