@graphcommerce/magento-wishlist 1.5.3 → 1.6.2
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,54 @@
|
|
|
1
1
|
# @graphcommerce/magento-wishlist
|
|
2
2
|
|
|
3
|
+
## 1.6.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`755d2cf83`](https://github.com/graphcommerce-org/graphcommerce/commit/755d2cf83343a5ad3d61063eff595d821de360aa), [`dc7f2dda4`](https://github.com/graphcommerce-org/graphcommerce/commit/dc7f2dda40ff8572fc11161de6eb62ca13e720dd)]:
|
|
8
|
+
- @graphcommerce/next-ui@4.23.0
|
|
9
|
+
- @graphcommerce/magento-cart@4.7.2
|
|
10
|
+
- @graphcommerce/magento-customer@4.10.2
|
|
11
|
+
- @graphcommerce/magento-product@4.5.2
|
|
12
|
+
- @graphcommerce/magento-product-configurable@4.2.2
|
|
13
|
+
- @graphcommerce/magento-store@4.2.30
|
|
14
|
+
|
|
15
|
+
## 1.6.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [[`448c77681`](https://github.com/graphcommerce-org/graphcommerce/commit/448c77681f9a7794e84ec93139d7e0f16afafbd9)]:
|
|
20
|
+
- @graphcommerce/graphql-mesh@4.1.9
|
|
21
|
+
- @graphcommerce/magento-customer@4.10.1
|
|
22
|
+
- @graphcommerce/magento-product@4.5.1
|
|
23
|
+
- @graphcommerce/magento-product-configurable@4.2.1
|
|
24
|
+
- @graphcommerce/magento-store@4.2.29
|
|
25
|
+
- @graphcommerce/magento-cart@4.7.1
|
|
26
|
+
|
|
27
|
+
## 1.6.0
|
|
28
|
+
|
|
29
|
+
### Minor Changes
|
|
30
|
+
|
|
31
|
+
- [#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
|
|
32
|
+
|
|
33
|
+
- Scaled icons and fonts down. Size in typography is now more gradual: https://graphcommerce.vercel.app/test/typography
|
|
34
|
+
- Multiple accessibility fixes. Missing button/input labels, and fixed spacing issues resulting in high % appropriately sized tap targets
|
|
35
|
+
- Replaced responsiveVal usage with better performaning breakpointVal where possible
|
|
36
|
+
- All buttons are now Pill by default.
|
|
37
|
+
- Cleaned up checkout styles
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- 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)]:
|
|
42
|
+
- @graphcommerce/magento-product@4.5.0
|
|
43
|
+
- @graphcommerce/graphql-mesh@4.1.8
|
|
44
|
+
- @graphcommerce/next-ui@4.22.0
|
|
45
|
+
- @graphcommerce/magento-customer@4.10.0
|
|
46
|
+
- @graphcommerce/magento-cart@4.7.0
|
|
47
|
+
- @graphcommerce/magento-product-configurable@4.2.0
|
|
48
|
+
- @graphcommerce/magento-store@4.2.28
|
|
49
|
+
- @graphcommerce/graphql@3.4.7
|
|
50
|
+
- @graphcommerce/image@3.1.9
|
|
51
|
+
|
|
3
52
|
## 1.5.3
|
|
4
53
|
|
|
5
54
|
### 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'
|
|
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
|
-
|
|
99
|
-
{
|
|
100
|
-
<
|
|
101
|
-
|
|
102
|
-
|
|
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 {
|
|
2
|
-
import {
|
|
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
|
-
|
|
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
|
-
<
|
|
26
|
+
<Box key={item.id || item.uid}>
|
|
27
27
|
<RenderType renderer={renderer} wishlistItemId={item.id || null} {...productData} />
|
|
28
|
-
</
|
|
28
|
+
</Box>
|
|
29
29
|
)
|
|
30
30
|
})}
|
|
31
|
-
|
|
31
|
+
</>
|
|
32
32
|
)
|
|
33
33
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-wishlist",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"@playwright/test": "^1.21.1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@graphcommerce/graphql": "3.4.
|
|
23
|
-
"@graphcommerce/graphql-mesh": "4.1.
|
|
24
|
-
"@graphcommerce/image": "3.1.
|
|
25
|
-
"@graphcommerce/magento-cart": "4.
|
|
26
|
-
"@graphcommerce/magento-customer": "4.
|
|
27
|
-
"@graphcommerce/magento-product": "4.
|
|
28
|
-
"@graphcommerce/magento-product-configurable": "4.
|
|
29
|
-
"@graphcommerce/magento-store": "4.2.
|
|
30
|
-
"@graphcommerce/next-ui": "4.
|
|
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.2",
|
|
26
|
+
"@graphcommerce/magento-customer": "4.10.2",
|
|
27
|
+
"@graphcommerce/magento-product": "4.5.2",
|
|
28
|
+
"@graphcommerce/magento-product-configurable": "4.2.2",
|
|
29
|
+
"@graphcommerce/magento-store": "4.2.30",
|
|
30
|
+
"@graphcommerce/next-ui": "4.23.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@lingui/react": "^3.13.2",
|