@graphcommerce/magento-wishlist 7.0.0-canary.21 → 7.0.0
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 +177 -1
- package/components/ProductWishlistChip/ProductWishlistChipBase.tsx +1 -1
- package/components/WishlistItem/WishlistItemBase.tsx +2 -2
- package/components/WishlistMenuFabItem/WishlistMenuFabItem.tsx +1 -1
- package/package.json +16 -15
- package/queries/GetGuestWishlistProducts.graphql +1 -1
- package/typePolicies.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,182 @@
|
|
|
1
1
|
# @graphcommerce/magento-wishlist
|
|
2
2
|
|
|
3
|
-
## 7.0.0
|
|
3
|
+
## 7.0.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1945](https://github.com/graphcommerce-org/graphcommerce/pull/1945) [`3bfa3b9dd`](https://github.com/graphcommerce-org/graphcommerce/commit/3bfa3b9ddf8724b31b8f6dfc2281c58dc3f44cad) - Fixed wishlist not being shown in menu when hideForGuest is enabled (eventhough the user is logged in) ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
8
|
+
|
|
9
|
+
- [#1945](https://github.com/graphcommerce-org/graphcommerce/pull/1945) [`0a5f12aeb`](https://github.com/graphcommerce-org/graphcommerce/commit/0a5f12aebc8ea960980cb423445d14d253a0da5a) - Prevent horizontal overflow in wishlist on (small) mobile devices ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
10
|
+
|
|
11
|
+
- [#1930](https://github.com/graphcommerce-org/graphcommerce/pull/1930) [`c8d023e9e`](https://github.com/graphcommerce-org/graphcommerce/commit/c8d023e9e874131cd9f8fe192b1fca5fe1a26ee3) - Fix the 'close menu' on search and add the option to secondary menu items ([@StefanAngenent](https://github.com/StefanAngenent))
|
|
12
|
+
|
|
13
|
+
- [#1944](https://github.com/graphcommerce-org/graphcommerce/pull/1944) [`ff138050f`](https://github.com/graphcommerce-org/graphcommerce/commit/ff138050f92aad28f0f27a9f2ecd478dc6acfec1) - Wishlist would be limited to 24 products, but doesn't have pagination ([@paales](https://github.com/paales))
|
|
14
|
+
|
|
15
|
+
## 6.2.0-canary.98
|
|
16
|
+
|
|
17
|
+
## 6.2.0-canary.97
|
|
18
|
+
|
|
19
|
+
## 6.2.0-canary.96
|
|
20
|
+
|
|
21
|
+
## 6.2.0-canary.95
|
|
22
|
+
|
|
23
|
+
## 6.2.0-canary.94
|
|
24
|
+
|
|
25
|
+
## 6.2.0-canary.93
|
|
26
|
+
|
|
27
|
+
## 6.2.0-canary.92
|
|
28
|
+
|
|
29
|
+
## 6.2.0-canary.91
|
|
30
|
+
|
|
31
|
+
## 6.2.0-canary.90
|
|
32
|
+
|
|
33
|
+
## 6.2.0-canary.89
|
|
34
|
+
|
|
35
|
+
## 6.2.0-canary.88
|
|
36
|
+
|
|
37
|
+
## 6.2.0-canary.87
|
|
38
|
+
|
|
39
|
+
## 6.2.0-canary.86
|
|
40
|
+
|
|
41
|
+
## 6.2.0-canary.85
|
|
42
|
+
|
|
43
|
+
## 6.2.0-canary.84
|
|
44
|
+
|
|
45
|
+
## 6.2.0-canary.83
|
|
46
|
+
|
|
47
|
+
## 6.2.0-canary.82
|
|
48
|
+
|
|
49
|
+
## 6.2.0-canary.81
|
|
50
|
+
|
|
51
|
+
## 6.2.0-canary.80
|
|
52
|
+
|
|
53
|
+
## 6.2.0-canary.79
|
|
54
|
+
|
|
55
|
+
## 6.2.0-canary.78
|
|
56
|
+
|
|
57
|
+
## 6.2.0-canary.77
|
|
58
|
+
|
|
59
|
+
## 6.2.0-canary.76
|
|
60
|
+
|
|
61
|
+
## 6.2.0-canary.75
|
|
62
|
+
|
|
63
|
+
## 6.2.0-canary.74
|
|
64
|
+
|
|
65
|
+
## 6.2.0-canary.73
|
|
66
|
+
|
|
67
|
+
## 6.2.0-canary.72
|
|
68
|
+
|
|
69
|
+
## 6.2.0-canary.71
|
|
70
|
+
|
|
71
|
+
## 6.2.0-canary.70
|
|
72
|
+
|
|
73
|
+
## 6.2.0-canary.69
|
|
74
|
+
|
|
75
|
+
## 6.2.0-canary.68
|
|
76
|
+
|
|
77
|
+
## 6.2.0-canary.67
|
|
78
|
+
|
|
79
|
+
## 6.2.0-canary.66
|
|
80
|
+
|
|
81
|
+
## 6.2.0-canary.65
|
|
82
|
+
|
|
83
|
+
## 6.2.0-canary.64
|
|
84
|
+
|
|
85
|
+
## 6.2.0-canary.63
|
|
86
|
+
|
|
87
|
+
## 6.2.0-canary.62
|
|
88
|
+
|
|
89
|
+
## 6.2.0-canary.61
|
|
90
|
+
|
|
91
|
+
## 6.2.0-canary.60
|
|
92
|
+
|
|
93
|
+
## 6.2.0-canary.59
|
|
94
|
+
|
|
95
|
+
## 6.2.0-canary.58
|
|
96
|
+
|
|
97
|
+
## 6.2.0-canary.57
|
|
98
|
+
|
|
99
|
+
## 6.2.0-canary.56
|
|
100
|
+
|
|
101
|
+
## 6.2.0-canary.55
|
|
102
|
+
|
|
103
|
+
## 6.2.0-canary.54
|
|
104
|
+
|
|
105
|
+
## 6.2.0-canary.53
|
|
106
|
+
|
|
107
|
+
## 6.2.0-canary.52
|
|
108
|
+
|
|
109
|
+
## 6.2.0-canary.51
|
|
110
|
+
|
|
111
|
+
## 6.2.0-canary.50
|
|
112
|
+
|
|
113
|
+
## 6.2.0-canary.49
|
|
114
|
+
|
|
115
|
+
## 6.2.0-canary.48
|
|
116
|
+
|
|
117
|
+
## 6.2.0-canary.47
|
|
118
|
+
|
|
119
|
+
## 6.2.0-canary.46
|
|
120
|
+
|
|
121
|
+
## 6.2.0-canary.45
|
|
122
|
+
|
|
123
|
+
## 6.2.0-canary.44
|
|
124
|
+
|
|
125
|
+
## 6.2.0-canary.43
|
|
126
|
+
|
|
127
|
+
## 6.2.0-canary.42
|
|
128
|
+
|
|
129
|
+
## 6.2.0-canary.41
|
|
130
|
+
|
|
131
|
+
## 6.2.0-canary.40
|
|
132
|
+
|
|
133
|
+
## 6.2.0-canary.39
|
|
134
|
+
|
|
135
|
+
## 6.2.0-canary.38
|
|
136
|
+
|
|
137
|
+
## 6.2.0-canary.37
|
|
138
|
+
|
|
139
|
+
## 6.2.0-canary.36
|
|
140
|
+
|
|
141
|
+
## 6.2.0-canary.35
|
|
142
|
+
|
|
143
|
+
## 6.2.0-canary.34
|
|
144
|
+
|
|
145
|
+
## 6.2.0-canary.33
|
|
146
|
+
|
|
147
|
+
## 6.2.0-canary.32
|
|
148
|
+
|
|
149
|
+
## 6.2.0-canary.31
|
|
150
|
+
|
|
151
|
+
## 6.2.0-canary.30
|
|
152
|
+
|
|
153
|
+
## 6.2.0-canary.29
|
|
154
|
+
|
|
155
|
+
## 6.2.0-canary.28
|
|
156
|
+
|
|
157
|
+
## 6.2.0-canary.27
|
|
158
|
+
|
|
159
|
+
## 6.2.0-canary.26
|
|
160
|
+
|
|
161
|
+
### Patch Changes
|
|
162
|
+
|
|
163
|
+
- [#1945](https://github.com/graphcommerce-org/graphcommerce/pull/1945) [`3bfa3b9dd`](https://github.com/graphcommerce-org/graphcommerce/commit/3bfa3b9ddf8724b31b8f6dfc2281c58dc3f44cad) - Fixed wishlist not being shown in menu when hideForGuest is enabled (eventhough the user is logged in) ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
164
|
+
|
|
165
|
+
- [#1945](https://github.com/graphcommerce-org/graphcommerce/pull/1945) [`0a5f12aeb`](https://github.com/graphcommerce-org/graphcommerce/commit/0a5f12aebc8ea960980cb423445d14d253a0da5a) - Prevent horizontal overflow in wishlist on (small) mobile devices ([@bramvanderholst](https://github.com/bramvanderholst))
|
|
166
|
+
|
|
167
|
+
## 6.2.0-canary.25
|
|
168
|
+
|
|
169
|
+
### Patch Changes
|
|
170
|
+
|
|
171
|
+
- [#1944](https://github.com/graphcommerce-org/graphcommerce/pull/1944) [`ff138050f`](https://github.com/graphcommerce-org/graphcommerce/commit/ff138050f92aad28f0f27a9f2ecd478dc6acfec1) - Wishlist would be limited to 24 products, but doesn't have pagination ([@paales](https://github.com/paales))
|
|
172
|
+
|
|
173
|
+
## 6.2.0-canary.24
|
|
174
|
+
|
|
175
|
+
## 6.2.0-canary.23
|
|
176
|
+
|
|
177
|
+
## 6.2.0-canary.22
|
|
178
|
+
|
|
179
|
+
## 6.2.0-canary.21
|
|
4
180
|
|
|
5
181
|
## 6.2.0-canary.20
|
|
6
182
|
|
|
@@ -126,7 +126,7 @@ export function WishlistItemBase(props: WishlistItemBaseProps) {
|
|
|
126
126
|
"picture itemOptions itemOptions"
|
|
127
127
|
"picture itemQuantity itemQuantity itemPrice"
|
|
128
128
|
"itemCartButton itemCartButton itemCartButton itemCartButton"`,
|
|
129
|
-
gridTemplateColumns: `${rowImageSize} 1fr
|
|
129
|
+
gridTemplateColumns: `${rowImageSize} 1fr 1fr 1fr`,
|
|
130
130
|
columnGap: theme.spacings.sm,
|
|
131
131
|
alignItems: 'baseline',
|
|
132
132
|
typography: 'body1',
|
|
@@ -150,7 +150,7 @@ export function WishlistItemBase(props: WishlistItemBaseProps) {
|
|
|
150
150
|
"itemCartButton itemCartButton itemCartButton itemCartButton"`,
|
|
151
151
|
alignItems: 'center',
|
|
152
152
|
paddingBottom: theme.spacings.xl,
|
|
153
|
-
gridTemplateColumns: `${rowImageSize} 1fr
|
|
153
|
+
gridTemplateColumns: `${rowImageSize} 1fr 1fr 1fr`,
|
|
154
154
|
[theme.breakpoints.up('sm')]: {
|
|
155
155
|
paddingBottom: theme.spacings.md,
|
|
156
156
|
gridTemplate: `
|
|
@@ -62,7 +62,7 @@ export function WishlistMenuFabItem(props: WishlistMenuFabItemProps) {
|
|
|
62
62
|
activeWishlist = wishlist.length > 0
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
if (hideForGuest) return null
|
|
65
|
+
if (hideForGuest && !loggedIn) return null
|
|
66
66
|
if (!isWishlistEnabled) return null
|
|
67
67
|
return (
|
|
68
68
|
<NoSsr fallback={<WishlistMenuFabItemContent {...props} activeWishlist={false} />}>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-wishlist",
|
|
3
|
-
"version": "7.0.0
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -13,24 +13,25 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@graphcommerce/eslint-config-pwa": "7.0.0
|
|
17
|
-
"@graphcommerce/prettier-config-pwa": "7.0.0
|
|
18
|
-
"@graphcommerce/typescript-config-pwa": "7.0.0
|
|
16
|
+
"@graphcommerce/eslint-config-pwa": "7.0.0",
|
|
17
|
+
"@graphcommerce/prettier-config-pwa": "7.0.0",
|
|
18
|
+
"@graphcommerce/typescript-config-pwa": "7.0.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@graphcommerce/graphql": "7.0.0
|
|
22
|
-
"@graphcommerce/graphql-mesh": "7.0.0
|
|
23
|
-
"@graphcommerce/image": "7.0.0
|
|
24
|
-
"@graphcommerce/magento-cart": "7.0.0
|
|
25
|
-
"@graphcommerce/magento-customer": "7.0.0
|
|
26
|
-
"@graphcommerce/magento-product": "7.0.0
|
|
27
|
-
"@graphcommerce/magento-product-configurable": "7.0.0
|
|
28
|
-
"@graphcommerce/magento-store": "7.0.0
|
|
29
|
-
"@graphcommerce/next-ui": "7.0.0
|
|
21
|
+
"@graphcommerce/graphql": "7.0.0",
|
|
22
|
+
"@graphcommerce/graphql-mesh": "7.0.0",
|
|
23
|
+
"@graphcommerce/image": "7.0.0",
|
|
24
|
+
"@graphcommerce/magento-cart": "7.0.0",
|
|
25
|
+
"@graphcommerce/magento-customer": "7.0.0",
|
|
26
|
+
"@graphcommerce/magento-product": "7.0.0",
|
|
27
|
+
"@graphcommerce/magento-product-configurable": "7.0.0",
|
|
28
|
+
"@graphcommerce/magento-store": "7.0.0",
|
|
29
|
+
"@graphcommerce/next-ui": "7.0.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@lingui/react": "^
|
|
33
|
-
"@lingui/core": "^
|
|
32
|
+
"@lingui/react": "^4.2.1",
|
|
33
|
+
"@lingui/core": "^4.2.1",
|
|
34
|
+
"@lingui/macro": "^4.2.1",
|
|
34
35
|
"@mui/material": "^5.10.16",
|
|
35
36
|
"framer-motion": "^10.0.0",
|
|
36
37
|
"next": "^13.2.0",
|
package/typePolicies.ts
CHANGED
|
@@ -5,7 +5,7 @@ export const wishlistTypePolicies: TypedTypePolicies = {
|
|
|
5
5
|
keyFields: [],
|
|
6
6
|
fields: {
|
|
7
7
|
items: {
|
|
8
|
-
merge: (existing: Array<unknown> | undefined, incoming: Array<unknown
|
|
8
|
+
merge: (existing: Array<unknown> | undefined, incoming: Array<unknown>) => {
|
|
9
9
|
const data = existing === undefined ? [] : existing
|
|
10
10
|
return [...data, ...incoming]
|
|
11
11
|
},
|