@graphcommerce/magento-wishlist 9.1.0-canary.21 → 9.1.0-canary.23
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,13 @@
|
|
|
1
1
|
# @graphcommerce/magento-wishlist
|
|
2
2
|
|
|
3
|
+
## 9.1.0-canary.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2521](https://github.com/graphcommerce-org/graphcommerce/pull/2521) [`6847259`](https://github.com/graphcommerce-org/graphcommerce/commit/6847259715b0cebcc3f7415ed06cc38814663811) - Solve typescript issue were product types were added incorrectly. ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
9
|
+
## 9.1.0-canary.22
|
|
10
|
+
|
|
3
11
|
## 9.1.0-canary.21
|
|
4
12
|
|
|
5
13
|
## 9.1.0-canary.20
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useApolloClient } from '@graphcommerce/graphql'
|
|
2
2
|
import { useCustomerSession } from '@graphcommerce/magento-customer'
|
|
3
|
-
import { filterNonNullableKeys } from '@graphcommerce/next-ui'
|
|
3
|
+
import { filterNonNullableKeys, nonNullable } from '@graphcommerce/next-ui'
|
|
4
4
|
import { useEventCallback } from '@mui/material'
|
|
5
5
|
import { UseWishlistGuestDocument } from '../useWishlistitems'
|
|
6
6
|
import type { UseRemoveProductsFromWishlistMutationVariables } from './UseRemoveProductsFromWishlist.gql'
|
|
@@ -24,9 +24,9 @@ export function useRemoveProductsFromWishlist() {
|
|
|
24
24
|
const currentItems = client.cache.readQuery({ query: UseWishlistGuestDocument })?.customer
|
|
25
25
|
?.wishlists?.[0]?.items_v2?.items
|
|
26
26
|
|
|
27
|
-
const items =
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
const items = (currentItems ?? [])
|
|
28
|
+
.filter(nonNullable)
|
|
29
|
+
?.filter((currentItem) => !wishlistItemIds.includes(currentItem.id))
|
|
30
30
|
|
|
31
31
|
client.cache.writeQuery({
|
|
32
32
|
query: UseWishlistGuestDocument,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphcommerce/magento-wishlist",
|
|
3
|
-
"version": "9.1.0-canary.
|
|
3
|
+
"version": "9.1.0-canary.23",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"prettier": "@graphcommerce/prettier-config-pwa",
|
|
6
6
|
"browserslist": [
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@graphcommerce/ecommerce-ui": "^9.1.0-canary.
|
|
17
|
-
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.
|
|
18
|
-
"@graphcommerce/graphql": "^9.1.0-canary.
|
|
19
|
-
"@graphcommerce/graphql-mesh": "^9.1.0-canary.
|
|
20
|
-
"@graphcommerce/image": "^9.1.0-canary.
|
|
21
|
-
"@graphcommerce/magento-cart": "^9.1.0-canary.
|
|
22
|
-
"@graphcommerce/magento-customer": "^9.1.0-canary.
|
|
23
|
-
"@graphcommerce/magento-product": "^9.1.0-canary.
|
|
24
|
-
"@graphcommerce/magento-product-configurable": "^9.1.0-canary.
|
|
25
|
-
"@graphcommerce/magento-store": "^9.1.0-canary.
|
|
26
|
-
"@graphcommerce/next-config": "^9.1.0-canary.
|
|
27
|
-
"@graphcommerce/next-ui": "^9.1.0-canary.
|
|
28
|
-
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.
|
|
29
|
-
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.
|
|
16
|
+
"@graphcommerce/ecommerce-ui": "^9.1.0-canary.23",
|
|
17
|
+
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.23",
|
|
18
|
+
"@graphcommerce/graphql": "^9.1.0-canary.23",
|
|
19
|
+
"@graphcommerce/graphql-mesh": "^9.1.0-canary.23",
|
|
20
|
+
"@graphcommerce/image": "^9.1.0-canary.23",
|
|
21
|
+
"@graphcommerce/magento-cart": "^9.1.0-canary.23",
|
|
22
|
+
"@graphcommerce/magento-customer": "^9.1.0-canary.23",
|
|
23
|
+
"@graphcommerce/magento-product": "^9.1.0-canary.23",
|
|
24
|
+
"@graphcommerce/magento-product-configurable": "^9.1.0-canary.23",
|
|
25
|
+
"@graphcommerce/magento-store": "^9.1.0-canary.23",
|
|
26
|
+
"@graphcommerce/next-config": "^9.1.0-canary.23",
|
|
27
|
+
"@graphcommerce/next-ui": "^9.1.0-canary.23",
|
|
28
|
+
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.23",
|
|
29
|
+
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.23",
|
|
30
30
|
"@lingui/core": "^4.2.1",
|
|
31
31
|
"@lingui/macro": "^4.2.1",
|
|
32
32
|
"@lingui/react": "^4.2.1",
|