@graphcommerce/magento-review 2.107.2 → 2.107.6

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
- ratingContainer: {
14
- width: '100%',
15
- position: 'relative',
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
- zIndex: 1,
24
- },
25
- maxRating: {
26
- opacity: 0.4,
27
- '& > img': {
28
- display: 'inline',
29
- filter: 'grayscale(100%)',
18
+ rating: {
19
+ position: 'absolute',
20
+ overflow: 'hidden',
21
+ '& > img': {
22
+ display: 'inline',
23
+ },
24
+ zIndex: 1,
30
25
  },
31
- },
32
- iconStar: {
33
- stroke: '#FFDA1C',
34
- fill: '#FFDA1C',
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
- Button,
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.2",
3
+ "version": "2.107.6",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -14,26 +14,26 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@graphcommerce/browserslist-config-pwa": "^3.0.2",
17
- "@graphcommerce/eslint-config-pwa": "^3.1.2",
17
+ "@graphcommerce/eslint-config-pwa": "^3.1.3",
18
18
  "@graphcommerce/prettier-config-pwa": "^3.0.3",
19
19
  "@graphcommerce/typescript-config-pwa": "^3.1.1",
20
20
  "@playwright/test": "^1.16.2"
21
21
  },
22
22
  "dependencies": {
23
23
  "@apollo/client": "^3.4.16",
24
- "@graphcommerce/graphql": "^2.105.1",
25
- "@graphcommerce/image": "^2.105.1",
26
- "@graphcommerce/magento-product": "^3.4.2",
27
- "@graphcommerce/magento-store": "^3.1.5",
28
- "@graphcommerce/next-ui": "^3.11.2",
24
+ "@graphcommerce/graphql": "^2.105.2",
25
+ "@graphcommerce/image": "^2.105.2",
26
+ "@graphcommerce/magento-product": "^3.5.0",
27
+ "@graphcommerce/magento-store": "^3.2.0",
28
+ "@graphcommerce/next-ui": "^3.12.0",
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",
32
32
  "clsx": "^1.1.1",
33
- "next": "^12.0.1",
33
+ "next": "^12.0.2",
34
34
  "react": "^17.0.2",
35
35
  "react-dom": "^17.0.2",
36
36
  "schema-dts": "^1.0.0"
37
37
  },
38
- "gitHead": "ed70123f0b4c4552ca413deff6fe786156d0772f"
38
+ "gitHead": "b37db76e3e0dfc34a2b25068be5e6c7afcca6bfa"
39
39
  }