@graphcommerce/magento-review 11.0.0-canary.70 → 11.0.0-canary.73
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
|
@@ -15,7 +15,6 @@ import { useFormGqlMutation } from '@graphcommerce/react-hook-form'
|
|
|
15
15
|
import { Trans } from '@lingui/react/macro'
|
|
16
16
|
import type { SxProps, Theme } from '@mui/material'
|
|
17
17
|
import { Alert, Box, Button, Typography } from '@mui/material'
|
|
18
|
-
import { useRouter } from 'next/router'
|
|
19
18
|
import { useEffect, useState } from 'react'
|
|
20
19
|
import { CreateProductReviewDocument } from './CreateProductReview.gql'
|
|
21
20
|
import { ProductReviewRatingsMetadataDocument } from './ProductReviewRatingsMetadata.gql'
|
|
@@ -40,7 +39,6 @@ const { classes } = extendableComponent(name, parts)
|
|
|
40
39
|
|
|
41
40
|
export function CreateProductReviewForm(props: CreateProductReviewFormProps) {
|
|
42
41
|
const { sku, nickname, sx = [] } = props
|
|
43
|
-
const router = useRouter()
|
|
44
42
|
const [ratings, setRatings] = useState<ProductReviewRatingInput[]>([])
|
|
45
43
|
|
|
46
44
|
const { data, loading } = useQuery(ProductReviewRatingsMetadataDocument)
|
|
@@ -2,7 +2,7 @@ import { iconStar, IconSvg } from '@graphcommerce/next-ui'
|
|
|
2
2
|
import { t } from '@lingui/core/macro'
|
|
3
3
|
import type { ChipProps } from '@mui/material'
|
|
4
4
|
import { Chip } from '@mui/material'
|
|
5
|
-
import React from 'react'
|
|
5
|
+
import type React from 'react'
|
|
6
6
|
|
|
7
7
|
export type ProductReviewChipProps = {
|
|
8
8
|
rating?: number
|
|
@@ -11,7 +11,8 @@ import { Trans } from '@lingui/react/macro'
|
|
|
11
11
|
import type { SxProps, Theme } from '@mui/material'
|
|
12
12
|
import { Box, Button, Link, Typography } from '@mui/material'
|
|
13
13
|
import { useRouter } from 'next/router'
|
|
14
|
-
import React
|
|
14
|
+
import type React from 'react'
|
|
15
|
+
import { useState } from 'react'
|
|
15
16
|
import { ProductReviewChip } from '../ProductReviewChip/ProductReviewChip'
|
|
16
17
|
import type { ProductReviewsFragment } from './ProductReviews.gql'
|
|
17
18
|
import { ProductReviewsPageDocument } from './ProductReviewsPage.gql'
|
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": "11.0.0-canary.
|
|
5
|
+
"version": "11.0.0-canary.73",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
8
8
|
"eslintConfig": {
|
|
@@ -18,18 +18,18 @@
|
|
|
18
18
|
"typescript": "6.0.3"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@graphcommerce/ecommerce-ui": "^11.0.0-canary.
|
|
22
|
-
"@graphcommerce/eslint-config-pwa": "^11.0.0-canary.
|
|
23
|
-
"@graphcommerce/graphql": "^11.0.0-canary.
|
|
24
|
-
"@graphcommerce/graphql-mesh": "^11.0.0-canary.
|
|
25
|
-
"@graphcommerce/image": "^11.0.0-canary.
|
|
26
|
-
"@graphcommerce/magento-customer": "^11.0.0-canary.
|
|
27
|
-
"@graphcommerce/magento-product": "^11.0.0-canary.
|
|
28
|
-
"@graphcommerce/magento-store": "^11.0.0-canary.
|
|
29
|
-
"@graphcommerce/next-ui": "^11.0.0-canary.
|
|
30
|
-
"@graphcommerce/prettier-config-pwa": "^11.0.0-canary.
|
|
31
|
-
"@graphcommerce/react-hook-form": "^11.0.0-canary.
|
|
32
|
-
"@graphcommerce/typescript-config-pwa": "^11.0.0-canary.
|
|
21
|
+
"@graphcommerce/ecommerce-ui": "^11.0.0-canary.73",
|
|
22
|
+
"@graphcommerce/eslint-config-pwa": "^11.0.0-canary.73",
|
|
23
|
+
"@graphcommerce/graphql": "^11.0.0-canary.73",
|
|
24
|
+
"@graphcommerce/graphql-mesh": "^11.0.0-canary.73",
|
|
25
|
+
"@graphcommerce/image": "^11.0.0-canary.73",
|
|
26
|
+
"@graphcommerce/magento-customer": "^11.0.0-canary.73",
|
|
27
|
+
"@graphcommerce/magento-product": "^11.0.0-canary.73",
|
|
28
|
+
"@graphcommerce/magento-store": "^11.0.0-canary.73",
|
|
29
|
+
"@graphcommerce/next-ui": "^11.0.0-canary.73",
|
|
30
|
+
"@graphcommerce/prettier-config-pwa": "^11.0.0-canary.73",
|
|
31
|
+
"@graphcommerce/react-hook-form": "^11.0.0-canary.73",
|
|
32
|
+
"@graphcommerce/typescript-config-pwa": "^11.0.0-canary.73",
|
|
33
33
|
"@lingui/core": "^6",
|
|
34
34
|
"@lingui/react": "^6",
|
|
35
35
|
"@mui/material": "^7.0.0",
|