@graphcommerce/magento-review 2.107.5 → 2.107.9
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
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.107.6](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.107.5...@graphcommerce/magento-review@2.107.6) (2021-11-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove text='bold', make contained button text stronger by default ([cd277c9](https://github.com/ho-nl/m2-pwa/commit/cd277c9f434a4a765eac372467e5a05c822d5512))
|
|
12
|
+
* remove unused imports ([b832188](https://github.com/ho-nl/m2-pwa/commit/b8321887f10a4a026adc5ca39166eeef90e60669))
|
|
13
|
+
* ReviewChip should only differ from default MuiChip in product grid ([c22a029](https://github.com/ho-nl/m2-pwa/commit/c22a0291afbbc03099fd0487421ff9fd31caf226))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
## [2.107.1](https://github.com/ho-nl/m2-pwa/compare/@graphcommerce/magento-review@2.107.0...@graphcommerce/magento-review@2.107.1) (2021-10-28)
|
|
7
20
|
|
|
8
21
|
|
|
@@ -103,13 +103,7 @@ export default function CreateProductReviewForm(props: CreateProductReviewFormPr
|
|
|
103
103
|
Thank you! Your review was successfully submitted for approval
|
|
104
104
|
</Alert>
|
|
105
105
|
<Box mt={6}>
|
|
106
|
-
<Button
|
|
107
|
-
variant='contained'
|
|
108
|
-
color='primary'
|
|
109
|
-
text='bold'
|
|
110
|
-
size='large'
|
|
111
|
-
onClick={() => router.back()}
|
|
112
|
-
>
|
|
106
|
+
<Button variant='contained' color='primary' size='large' onClick={() => router.back()}>
|
|
113
107
|
Continue shopping
|
|
114
108
|
</Button>
|
|
115
109
|
</Box>
|
|
@@ -208,7 +202,6 @@ export default function CreateProductReviewForm(props: CreateProductReviewFormPr
|
|
|
208
202
|
<Button
|
|
209
203
|
variant='pill'
|
|
210
204
|
color='primary'
|
|
211
|
-
text='bold'
|
|
212
205
|
type='submit'
|
|
213
206
|
size='medium'
|
|
214
207
|
className={classes.submitButton}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SvgImageSimple, iconStar } from '@graphcommerce/next-ui'
|
|
2
|
-
import { Chip, ChipProps, makeStyles } from '@material-ui/core'
|
|
2
|
+
import { Chip, ChipProps, makeStyles, Theme } from '@material-ui/core'
|
|
3
3
|
import React from 'react'
|
|
4
4
|
|
|
5
5
|
export type ProductReviewChipProps = {
|
|
@@ -9,31 +9,34 @@ export type ProductReviewChipProps = {
|
|
|
9
9
|
shapeOnly?: boolean
|
|
10
10
|
} & ChipProps
|
|
11
11
|
|
|
12
|
-
const useStyles = makeStyles(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
rating: {
|
|
18
|
-
position: 'absolute',
|
|
19
|
-
overflow: 'hidden',
|
|
20
|
-
'& > img': {
|
|
21
|
-
display: 'inline',
|
|
12
|
+
const useStyles = makeStyles(
|
|
13
|
+
(theme: Theme) => ({
|
|
14
|
+
ratingContainer: {
|
|
15
|
+
width: '100%',
|
|
16
|
+
position: 'relative',
|
|
22
17
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
18
|
+
rating: {
|
|
19
|
+
position: 'absolute',
|
|
20
|
+
overflow: 'hidden',
|
|
21
|
+
'& > img': {
|
|
22
|
+
display: 'inline',
|
|
23
|
+
},
|
|
24
|
+
zIndex: 1,
|
|
30
25
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
26
|
+
maxRating: {
|
|
27
|
+
opacity: 0.4,
|
|
28
|
+
'& > img': {
|
|
29
|
+
display: 'inline',
|
|
30
|
+
filter: 'grayscale(100%)',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
iconStar: {
|
|
34
|
+
stroke: '#FFDA1C',
|
|
35
|
+
fill: '#FFDA1C',
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
{ name: 'ProductListReviews' },
|
|
39
|
+
)
|
|
37
40
|
|
|
38
41
|
export default function ProductReviewChip(props: ProductReviewChipProps) {
|
|
39
42
|
const { rating, reviewSectionId = '', shapeOnly = false, max = 5, ...chipProps } = props
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { useQuery } from '@apollo/client'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
iconStar,
|
|
5
|
-
Pagination,
|
|
6
|
-
responsiveVal,
|
|
7
|
-
StarRatingField,
|
|
8
|
-
SvgImage,
|
|
9
|
-
} from '@graphcommerce/next-ui'
|
|
10
|
-
import { Chip, makeStyles, Theme, Typography } from '@material-ui/core'
|
|
2
|
+
import { Button, Pagination, responsiveVal, StarRatingField } from '@graphcommerce/next-ui'
|
|
3
|
+
import { makeStyles, Theme, Typography } from '@material-ui/core'
|
|
11
4
|
import Link from 'next/link'
|
|
12
5
|
import React, { useState } from 'react'
|
|
13
6
|
import ProductReviewChip from '../ProductReviewChip'
|
|
@@ -127,13 +120,7 @@ export default function ProductReviews(props: ProductReviewsProps) {
|
|
|
127
120
|
const actions = (
|
|
128
121
|
<div className={classes.reviewsBottomContainer}>
|
|
129
122
|
<Link href={`/account/reviews/add?sku=${sku}`} passHref>
|
|
130
|
-
<Button
|
|
131
|
-
variant='pill'
|
|
132
|
-
color='primary'
|
|
133
|
-
text='bold'
|
|
134
|
-
size='medium'
|
|
135
|
-
className={classes.writeReviewButton}
|
|
136
|
-
>
|
|
123
|
+
<Button variant='pill' color='primary' size='medium' className={classes.writeReviewButton}>
|
|
137
124
|
Write a review
|
|
138
125
|
</Button>
|
|
139
126
|
</Link>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-review",
|
|
3
|
-
"version": "2.107.
|
|
3
|
+
"version": "2.107.9",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"@apollo/client": "^3.4.16",
|
|
24
24
|
"@graphcommerce/graphql": "^2.105.2",
|
|
25
25
|
"@graphcommerce/image": "^2.105.2",
|
|
26
|
-
"@graphcommerce/magento-product": "^3.
|
|
27
|
-
"@graphcommerce/magento-store": "^3.
|
|
28
|
-
"@graphcommerce/next-ui": "^3.
|
|
26
|
+
"@graphcommerce/magento-product": "^3.5.3",
|
|
27
|
+
"@graphcommerce/magento-store": "^3.2.3",
|
|
28
|
+
"@graphcommerce/next-ui": "^3.12.3",
|
|
29
29
|
"@graphql-typed-document-node/core": "^3.1.0",
|
|
30
30
|
"@material-ui/core": "^4.12.3",
|
|
31
31
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"react-dom": "^17.0.2",
|
|
36
36
|
"schema-dts": "^1.0.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "8fc77cf7261a01a54e82d2c9bdb2b59c31faeffc"
|
|
39
39
|
}
|