@graphcommerce/magento-wishlist 1.5.2 → 1.6.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,57 @@
1
1
  # @graphcommerce/magento-wishlist
2
2
 
3
+ ## 1.6.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-product-configurable@4.2.1
12
+ - @graphcommerce/magento-store@4.2.29
13
+ - @graphcommerce/magento-cart@4.7.1
14
+
15
+ ## 1.6.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#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
20
+
21
+ - Scaled icons and fonts down. Size in typography is now more gradual: https://graphcommerce.vercel.app/test/typography
22
+ - Multiple accessibility fixes. Missing button/input labels, and fixed spacing issues resulting in high % appropriately sized tap targets
23
+ - Replaced responsiveVal usage with better performaning breakpointVal where possible
24
+ - All buttons are now Pill by default.
25
+ - Cleaned up checkout styles
26
+
27
+ ### Patch Changes
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), [`e573278e4`](https://github.com/graphcommerce-org/graphcommerce/commit/e573278e43506a6b17a2981e61d0e9fad41eb2eb), [`5f781a217`](https://github.com/graphcommerce-org/graphcommerce/commit/5f781a217ce63ed56bc1a9983487b04400a8a315), [`ec96a0eb0`](https://github.com/graphcommerce-org/graphcommerce/commit/ec96a0eb049ee2204f32f9c578455cf9c131dbd2), [`ac6eedbb1`](https://github.com/graphcommerce-org/graphcommerce/commit/ac6eedbb14d3abd8cf1231a98dc2a8b7f4659f1f)]:
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-cart@4.7.0
35
+ - @graphcommerce/magento-product-configurable@4.2.0
36
+ - @graphcommerce/magento-store@4.2.28
37
+ - @graphcommerce/graphql@3.4.7
38
+ - @graphcommerce/image@3.1.9
39
+
40
+ ## 1.5.3
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [[`1f7ee6f6c`](https://github.com/graphcommerce-org/graphcommerce/commit/1f7ee6f6cfb28544439ed36e10929ac530d1b2b7), [`707dbc73d`](https://github.com/graphcommerce-org/graphcommerce/commit/707dbc73d181204d88fdbbd2e09340e25b2b5f7b)]:
45
+ - @graphcommerce/next-ui@4.21.0
46
+ - @graphcommerce/graphql@3.4.6
47
+ - @graphcommerce/graphql-mesh@4.1.7
48
+ - @graphcommerce/magento-cart@4.6.9
49
+ - @graphcommerce/magento-customer@4.9.5
50
+ - @graphcommerce/magento-product@4.4.25
51
+ - @graphcommerce/magento-product-configurable@4.1.32
52
+ - @graphcommerce/magento-store@4.2.27
53
+ - @graphcommerce/image@3.1.8
54
+
3
55
  ## 1.5.2
4
56
 
5
57
  ### Patch Changes
@@ -63,7 +63,9 @@ export function ProductWishlistChipBase(props: ProductWishlistChipProps) {
63
63
  className={classes.wishlistIcon}
64
64
  sx={(theme) => ({
65
65
  color:
66
- theme.palette.mode === 'light' ? theme.palette.text.primary : theme.palette.primary.main,
66
+ theme.palette.mode === 'light'
67
+ ? theme.palette.text.secondary
68
+ : theme.palette.primary.main,
67
69
  })}
68
70
  />
69
71
  )
@@ -12,11 +12,9 @@ import {
12
12
  iconChevronRight,
13
13
  IconSvg,
14
14
  extendableComponent,
15
- AnimatedRow,
16
15
  } from '@graphcommerce/next-ui'
17
16
  import { Trans } from '@lingui/react'
18
- import { ButtonProps, Box, Alert } from '@mui/material'
19
- import { AnimatePresence } from 'framer-motion'
17
+ import { ButtonProps, Box, Alert, useMediaQuery, Theme } from '@mui/material'
20
18
  import PageLink from 'next/link'
21
19
  import React from 'react'
22
20
 
@@ -95,13 +93,11 @@ export function ProductAddToCart(
95
93
 
96
94
  <ApolloCartErrorAlert error={error} />
97
95
 
98
- <AnimatePresence initial={false}>
99
- {data?.addProductsToCart?.user_errors.map((e) => (
100
- <AnimatedRow layout key={e?.code}>
101
- <Alert severity='error'>{e?.message}</Alert>
102
- </AnimatedRow>
103
- ))}
104
- </AnimatePresence>
96
+ {data?.addProductsToCart?.user_errors.map((e) => (
97
+ <Box key={e?.code}>
98
+ <Alert severity='error'>{e?.message}</Alert>
99
+ </Box>
100
+ ))}
105
101
 
106
102
  <MessageSnackbar
107
103
  open={
@@ -111,6 +107,7 @@ export function ProductAddToCart(
111
107
  !data?.addProductsToCart?.user_errors?.length
112
108
  }
113
109
  variant='pill'
110
+ autoHide
114
111
  action={
115
112
  <PageLink href='/cart' passHref>
116
113
  <Button
@@ -1,5 +1,5 @@
1
- import { AnimatedRow, RenderType, TypeRenderer } from '@graphcommerce/next-ui'
2
- import { AnimatePresence } from 'framer-motion'
1
+ import { RenderType, TypeRenderer } from '@graphcommerce/next-ui'
2
+ import { Box } from '@mui/material'
3
3
  import { useWishlistItems } from '../../hooks'
4
4
  import { WishlistItemsFragment } from './WishlistItems.gql'
5
5
 
@@ -17,17 +17,17 @@ export function WishlistItems(props: WishlistProps) {
17
17
 
18
18
  /** Structure between guest and customer wishlist differs */
19
19
  return (
20
- <AnimatePresence initial={false}>
20
+ <>
21
21
  {wishlistItemsData.items?.map((item) => {
22
22
  if (!item?.uid && !item?.id) return null
23
23
 
24
24
  const productData = item?.product ? item?.product : item
25
25
  return (
26
- <AnimatedRow layout key={item.id || item.uid}>
26
+ <Box key={item.id || item.uid}>
27
27
  <RenderType renderer={renderer} wishlistItemId={item.id || null} {...productData} />
28
- </AnimatedRow>
28
+ </Box>
29
29
  )
30
30
  })}
31
- </AnimatePresence>
31
+ </>
32
32
  )
33
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphcommerce/magento-wishlist",
3
- "version": "1.5.2",
3
+ "version": "1.6.1",
4
4
  "sideEffects": false,
5
5
  "prettier": "@graphcommerce/prettier-config-pwa",
6
6
  "browserslist": [
@@ -13,21 +13,21 @@
13
13
  }
14
14
  },
15
15
  "devDependencies": {
16
- "@graphcommerce/eslint-config-pwa": "^4.1.9",
16
+ "@graphcommerce/eslint-config-pwa": "^4.1.10",
17
17
  "@graphcommerce/prettier-config-pwa": "^4.0.6",
18
18
  "@graphcommerce/typescript-config-pwa": "^4.0.4",
19
19
  "@playwright/test": "^1.21.1"
20
20
  },
21
21
  "dependencies": {
22
- "@graphcommerce/graphql": "3.4.5",
23
- "@graphcommerce/graphql-mesh": "4.1.6",
24
- "@graphcommerce/image": "3.1.7",
25
- "@graphcommerce/magento-cart": "4.6.8",
26
- "@graphcommerce/magento-customer": "4.9.4",
27
- "@graphcommerce/magento-product": "4.4.24",
28
- "@graphcommerce/magento-product-configurable": "4.1.31",
29
- "@graphcommerce/magento-store": "4.2.26",
30
- "@graphcommerce/next-ui": "4.20.0"
22
+ "@graphcommerce/graphql": "3.4.7",
23
+ "@graphcommerce/graphql-mesh": "4.1.9",
24
+ "@graphcommerce/image": "3.1.9",
25
+ "@graphcommerce/magento-cart": "4.7.1",
26
+ "@graphcommerce/magento-customer": "4.10.1",
27
+ "@graphcommerce/magento-product": "4.5.1",
28
+ "@graphcommerce/magento-product-configurable": "4.2.1",
29
+ "@graphcommerce/magento-store": "4.2.29",
30
+ "@graphcommerce/next-ui": "4.22.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@lingui/react": "^3.13.2",