@graphcommerce/magento-review 3.2.32 → 3.3.1

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
@@ -1,5 +1,53 @@
1
1
  # Change Log
2
2
 
3
+ ## 3.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`448c77681`](https://github.com/graphcommerce-org/graphcommerce/commit/448c77681f9a7794e84ec93139d7e0f16afafbd9)]:
8
+ - @graphcommerce/graphql-mesh@4.1.9
9
+ - @graphcommerce/magento-customer@4.10.1
10
+ - @graphcommerce/magento-product@4.5.1
11
+ - @graphcommerce/magento-store@4.2.29
12
+
13
+ ## 3.3.0
14
+
15
+ ### Minor Changes
16
+
17
+ - [#1602](https://github.com/graphcommerce-org/graphcommerce/pull/1602) [`5f781a217`](https://github.com/graphcommerce-org/graphcommerce/commit/5f781a217ce63ed56bc1a9983487b04400a8a315) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Default styles and layout fixes
18
+
19
+ - Scaled icons and fonts down. Size in typography is now more gradual: https://graphcommerce.vercel.app/test/typography
20
+ - Multiple accessibility fixes. Missing button/input labels, and fixed spacing issues resulting in high % appropriately sized tap targets
21
+ - Replaced responsiveVal usage with better performaning breakpointVal where possible
22
+ - All buttons are now Pill by default.
23
+ - Cleaned up checkout styles
24
+
25
+ ### Patch Changes
26
+
27
+ - [#1609](https://github.com/graphcommerce-org/graphcommerce/pull/1609) [`e573278e4`](https://github.com/graphcommerce-org/graphcommerce/commit/e573278e43506a6b17a2981e61d0e9fad41eb2eb) Thanks [@ErwinOtten](https://github.com/ErwinOtten)! - Fix the account review modal
28
+
29
+ - Updated dependencies [[`b40a352f7`](https://github.com/graphcommerce-org/graphcommerce/commit/b40a352f7bccdb831dce1d45baf98d51b0921d58), [`3ff0e7f2d`](https://github.com/graphcommerce-org/graphcommerce/commit/3ff0e7f2d26edad228848268d24e9aaf56cd2c30), [`04708dacc`](https://github.com/graphcommerce-org/graphcommerce/commit/04708daccc213c6ea927bc67fa3bd0d5b1fad619), [`bb94e7045`](https://github.com/graphcommerce-org/graphcommerce/commit/bb94e7045460cb671c45d612a0833731d7c20c30), [`b0dc4e2e1`](https://github.com/graphcommerce-org/graphcommerce/commit/b0dc4e2e1982d502d38dd50a0f493396360a7a15), [`4a5286dfe`](https://github.com/graphcommerce-org/graphcommerce/commit/4a5286dfeaa1719e594a0078f274fbab53969c4e), [`0ad5159eb`](https://github.com/graphcommerce-org/graphcommerce/commit/0ad5159ebef54b4ce7fee6f71b4bf710dba9ef8e), [`40983df17`](https://github.com/graphcommerce-org/graphcommerce/commit/40983df170ed0435c47496285dfe30aafeb2eeac), [`d46d5ed0c`](https://github.com/graphcommerce-org/graphcommerce/commit/d46d5ed0cc5794391b7527fc17bbb68ec2212e33), [`5f781a217`](https://github.com/graphcommerce-org/graphcommerce/commit/5f781a217ce63ed56bc1a9983487b04400a8a315), [`ec96a0eb0`](https://github.com/graphcommerce-org/graphcommerce/commit/ec96a0eb049ee2204f32f9c578455cf9c131dbd2)]:
30
+ - @graphcommerce/magento-product@4.5.0
31
+ - @graphcommerce/graphql-mesh@4.1.8
32
+ - @graphcommerce/next-ui@4.22.0
33
+ - @graphcommerce/magento-customer@4.10.0
34
+ - @graphcommerce/magento-store@4.2.28
35
+ - @graphcommerce/graphql@3.4.7
36
+ - @graphcommerce/image@3.1.9
37
+
38
+ ## 3.2.33
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies [[`1f7ee6f6c`](https://github.com/graphcommerce-org/graphcommerce/commit/1f7ee6f6cfb28544439ed36e10929ac530d1b2b7), [`707dbc73d`](https://github.com/graphcommerce-org/graphcommerce/commit/707dbc73d181204d88fdbbd2e09340e25b2b5f7b)]:
43
+ - @graphcommerce/next-ui@4.21.0
44
+ - @graphcommerce/graphql@3.4.6
45
+ - @graphcommerce/graphql-mesh@4.1.7
46
+ - @graphcommerce/magento-customer@4.9.5
47
+ - @graphcommerce/magento-product@4.4.25
48
+ - @graphcommerce/magento-store@4.2.27
49
+ - @graphcommerce/image@3.1.8
50
+
3
51
  ## 3.2.32
4
52
 
5
53
  ### Patch Changes
@@ -1,28 +1,18 @@
1
1
  import { SectionContainer, extendableComponent } from '@graphcommerce/next-ui'
2
- import { Box, Skeleton } from '@mui/material'
2
+ import { Box } from '@mui/material'
3
3
  import { CustomerReview } from '../CustomerReview/CustomerReview'
4
4
  import { AccountReviewsFragment } from './AccountReviews.gql'
5
5
 
6
- type AccountReviewsProps = AccountReviewsFragment & { loading: boolean }
6
+ type AccountReviewsProps = AccountReviewsFragment
7
7
 
8
8
  const { classes } = extendableComponent('AccountReviews', ['root', 'older'] as const)
9
9
 
10
10
  export function AccountReviews(props: AccountReviewsProps) {
11
- const { items, loading } = props
11
+ const { items } = props
12
12
  const showLatestReviews = 2
13
13
  const latestReviews = items?.slice(0, Math.min(items?.length, showLatestReviews))
14
14
  const olderReviews = items?.slice(Math.min(items?.length, showLatestReviews), items?.length)
15
15
 
16
- if (loading) {
17
- return (
18
- <Box className={classes.root} sx={(theme) => ({ marginBottom: theme.spacings.md })}>
19
- <SectionContainer labelLeft='Latest'>
20
- <Skeleton height={196} />
21
- <Skeleton height={196} />
22
- </SectionContainer>
23
- </Box>
24
- )
25
- }
26
16
  return (
27
17
  <Box className={classes.root} sx={(theme) => ({ marginBottom: theme.spacings.md })}>
28
18
  <SectionContainer labelLeft='Latest'>
@@ -199,8 +199,6 @@ export function CreateProductReviewForm(props: CreateProductReviewFormProps) {
199
199
  className={classes.formActions}
200
200
  sx={(theme) => ({
201
201
  gridAutoFlow: 'row',
202
- gap: 8,
203
- marginTop: theme.spacings.xxs,
204
202
  })}
205
203
  >
206
204
  <Button
@@ -209,23 +207,15 @@ export function CreateProductReviewForm(props: CreateProductReviewFormProps) {
209
207
  type='submit'
210
208
  size='medium'
211
209
  className={classes.submitButton}
212
- sx={{
213
- width: responsiveVal(200, 250),
214
- height: responsiveVal(40, 50),
215
- }}
216
210
  >
217
211
  <Trans id='Submit review' />
218
212
  </Button>
219
213
  <Button
220
214
  variant='text'
221
215
  color='primary'
216
+ size='medium'
222
217
  onClick={() => router.back()}
223
218
  className={classes.cancelButton}
224
- sx={{
225
- display: 'block',
226
- maxWidth: 'max-content',
227
- margin: '0 auto',
228
- }}
229
219
  >
230
220
  <Trans id='Cancel' />
231
221
  </Button>
@@ -1,5 +1,10 @@
1
1
  import { Image } from '@graphcommerce/image'
2
- import { responsiveVal, extendableComponent, useDateTimeFormat } from '@graphcommerce/next-ui'
2
+ import {
3
+ responsiveVal,
4
+ extendableComponent,
5
+ useDateTimeFormat,
6
+ IconSvg,
7
+ } from '@graphcommerce/next-ui'
3
8
  import { Box, SxProps, Theme } from '@mui/material'
4
9
  import { CustomerReviewFragment } from './CustomerReview.gql'
5
10
  import filledStar from './review_star_filled.svg'
@@ -73,7 +78,7 @@ export function CustomerReview(props: CustomerReviewProps) {
73
78
  <Box className={classes.stars} sx={{ gridArea: 'stars', margin: '-6px 0 -6px -6px' }}>
74
79
  {[...new Array(totalStars)].map((_, index) => (
75
80
  // eslint-disable-next-line react/no-array-index-key
76
- <Image key={index} src={index < totalFilledStars ? filledStar : outlinedStar} />
81
+ <IconSvg key={index} src={index < totalFilledStars ? filledStar : outlinedStar} />
77
82
  ))}
78
83
  </Box>
79
84
  <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": "3.2.32",
5
+ "version": "3.3.1",
6
6
  "sideEffects": false,
7
7
  "prettier": "@graphcommerce/prettier-config-pwa",
8
8
  "eslintConfig": {
@@ -12,19 +12,19 @@
12
12
  }
13
13
  },
14
14
  "devDependencies": {
15
- "@graphcommerce/eslint-config-pwa": "^4.1.9",
15
+ "@graphcommerce/eslint-config-pwa": "^4.1.10",
16
16
  "@graphcommerce/prettier-config-pwa": "^4.0.6",
17
17
  "@graphcommerce/typescript-config-pwa": "^4.0.4",
18
18
  "@playwright/test": "^1.21.1"
19
19
  },
20
20
  "dependencies": {
21
- "@graphcommerce/graphql": "3.4.5",
22
- "@graphcommerce/graphql-mesh": "4.1.6",
23
- "@graphcommerce/image": "3.1.7",
24
- "@graphcommerce/magento-customer": "4.9.4",
25
- "@graphcommerce/magento-product": "4.4.24",
26
- "@graphcommerce/magento-store": "4.2.26",
27
- "@graphcommerce/next-ui": "4.20.0",
21
+ "@graphcommerce/graphql": "3.4.7",
22
+ "@graphcommerce/graphql-mesh": "4.1.9",
23
+ "@graphcommerce/image": "3.1.9",
24
+ "@graphcommerce/magento-customer": "4.10.1",
25
+ "@graphcommerce/magento-product": "4.5.1",
26
+ "@graphcommerce/magento-store": "4.2.29",
27
+ "@graphcommerce/next-ui": "4.22.0",
28
28
  "@graphcommerce/react-hook-form": "3.3.2",
29
29
  "schema-dts": "^1.1.0"
30
30
  },