@graphcommerce/magento-wishlist 7.0.0 → 7.0.1-canary.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
CHANGED
|
@@ -24,6 +24,7 @@ import { GuestWishlistDocument } from '../../queries/GuestWishlist.gql'
|
|
|
24
24
|
import { RemoveProductFromWishlistDocument } from '../../queries/RemoveProductFromWishlist.gql'
|
|
25
25
|
import { WishlistSummaryFragment } from '../../queries/WishlistSummaryFragment.gql'
|
|
26
26
|
import { ProductWishlistChipFragment } from './ProductWishlistChip.gql'
|
|
27
|
+
import { GuestWishlist, GuestWishlistItem } from '@graphcommerce/graphql-mesh'
|
|
27
28
|
|
|
28
29
|
const hideForGuest = import.meta.graphCommerce.wishlistHideForGuests
|
|
29
30
|
const ignoreProductWishlistStatus = import.meta.graphCommerce.wishlistIgnoreProductWishlistStatus
|
|
@@ -165,13 +166,13 @@ export function ProductWishlistChipBase(props: ProductWishlistChipProps) {
|
|
|
165
166
|
setDisplayMessageBar(true)
|
|
166
167
|
}
|
|
167
168
|
} else if (inWishlist) {
|
|
168
|
-
cache.modify({
|
|
169
|
+
cache.modify<GuestWishlist>({
|
|
169
170
|
id: cache.identify({ __typename: 'GuestWishlist' }),
|
|
170
171
|
fields: {
|
|
171
|
-
items(existingItems
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
items: (existingItems, { readField }) =>
|
|
173
|
+
existingItems.filter(
|
|
174
|
+
(item) => readField('url_key', item) !== url_key,
|
|
175
|
+
) as GuestWishlistItem[],
|
|
175
176
|
},
|
|
176
177
|
})
|
|
177
178
|
} else {
|
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.1-canary.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -13,20 +13,20 @@
|
|
|
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.1-canary.0",
|
|
17
|
+
"@graphcommerce/prettier-config-pwa": "7.0.1-canary.0",
|
|
18
|
+
"@graphcommerce/typescript-config-pwa": "7.0.1-canary.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.1-canary.0",
|
|
22
|
+
"@graphcommerce/graphql-mesh": "7.0.1-canary.0",
|
|
23
|
+
"@graphcommerce/image": "7.0.1-canary.0",
|
|
24
|
+
"@graphcommerce/magento-cart": "7.0.1-canary.0",
|
|
25
|
+
"@graphcommerce/magento-customer": "7.0.1-canary.0",
|
|
26
|
+
"@graphcommerce/magento-product": "7.0.1-canary.0",
|
|
27
|
+
"@graphcommerce/magento-product-configurable": "7.0.1-canary.0",
|
|
28
|
+
"@graphcommerce/magento-store": "7.0.1-canary.0",
|
|
29
|
+
"@graphcommerce/next-ui": "7.0.1-canary.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@lingui/react": "^4.2.1",
|