@graphcommerce/magento-review 9.0.0-canary.103 → 9.0.0-canary.105
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 +6 -2
- 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,9 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 9.0.0-canary.105
|
|
4
|
+
|
|
5
|
+
## 9.0.0-canary.104
|
|
6
|
+
|
|
3
7
|
## 9.0.0-canary.103
|
|
4
8
|
|
|
5
9
|
## 9.0.0-canary.77
|
|
@@ -612,7 +616,7 @@
|
|
|
612
616
|
All occurences of `<Trans>` and `t` need to be replaced:
|
|
613
617
|
|
|
614
618
|
```tsx
|
|
615
|
-
import {
|
|
619
|
+
import { t, Trans } from '@lingui/macro'
|
|
616
620
|
|
|
617
621
|
function MyComponent() {
|
|
618
622
|
const foo = 'bar'
|
|
@@ -627,8 +631,8 @@
|
|
|
627
631
|
Needs to be replaced with:
|
|
628
632
|
|
|
629
633
|
```tsx
|
|
630
|
-
import { Trans } from '@lingui/react'
|
|
631
634
|
import { i18n } from '@lingui/core'
|
|
635
|
+
import { Trans } from '@lingui/react'
|
|
632
636
|
|
|
633
637
|
function MyComponent() {
|
|
634
638
|
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.105",
|
|
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.105",
|
|
22
|
+
"@graphcommerce/eslint-config-pwa": "^9.0.0-canary.105",
|
|
23
|
+
"@graphcommerce/graphql": "^9.0.0-canary.105",
|
|
24
|
+
"@graphcommerce/graphql-mesh": "^9.0.0-canary.105",
|
|
25
|
+
"@graphcommerce/image": "^9.0.0-canary.105",
|
|
26
|
+
"@graphcommerce/magento-customer": "^9.0.0-canary.105",
|
|
27
|
+
"@graphcommerce/magento-product": "^9.0.0-canary.105",
|
|
28
|
+
"@graphcommerce/magento-store": "^9.0.0-canary.105",
|
|
29
|
+
"@graphcommerce/next-ui": "^9.0.0-canary.105",
|
|
30
|
+
"@graphcommerce/prettier-config-pwa": "^9.0.0-canary.105",
|
|
31
|
+
"@graphcommerce/react-hook-form": "^9.0.0-canary.105",
|
|
32
|
+
"@graphcommerce/typescript-config-pwa": "^9.0.0-canary.105",
|
|
33
33
|
"@lingui/core": "^4.2.1",
|
|
34
34
|
"@lingui/macro": "^4.2.1",
|
|
35
35
|
"@lingui/react": "^4.2.1",
|