@graphcommerce/magento-wishlist 9.1.0-canary.39 → 9.1.0-canary.40
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,11 @@
|
|
|
1
1
|
# @graphcommerce/magento-wishlist
|
|
2
2
|
|
|
3
|
+
## 9.1.0-canary.40
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#2529](https://github.com/graphcommerce-org/graphcommerce/pull/2529) [`b331f4d`](https://github.com/graphcommerce-org/graphcommerce/commit/b331f4d060c1385569fbbe1592ac245832de55bc) - Remove all usages of the NoSsr component as the GraphQL layer already handles this. ([@paales](https://github.com/paales))
|
|
8
|
+
|
|
3
9
|
## 9.1.0-canary.39
|
|
4
10
|
|
|
5
11
|
## 9.1.0-canary.38
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DesktopHeaderBadge, extendableComponent, iconHeart, IconSvg } from '@graphcommerce/next-ui'
|
|
2
2
|
import { i18n } from '@lingui/core'
|
|
3
3
|
import type { BadgeProps, FabProps as FabPropsType, SxProps, Theme } from '@mui/material'
|
|
4
|
-
import { Fab
|
|
4
|
+
import { Fab } from '@mui/material'
|
|
5
5
|
import React from 'react'
|
|
6
6
|
import { useWishlistEnabled, useWishlistItems } from '../../hooks'
|
|
7
7
|
|
|
@@ -33,15 +33,13 @@ function WishlistFabContent(props: WishlistFabContentProps) {
|
|
|
33
33
|
{...FabProps}
|
|
34
34
|
sx={sx}
|
|
35
35
|
>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
)}
|
|
44
|
-
</NoSsr>
|
|
36
|
+
{activeWishlist ? (
|
|
37
|
+
<DesktopHeaderBadge color='primary' variant='dot' overlap='circular' {...BadgeProps}>
|
|
38
|
+
{wishlistIcon}
|
|
39
|
+
</DesktopHeaderBadge>
|
|
40
|
+
) : (
|
|
41
|
+
wishlistIcon
|
|
42
|
+
)}
|
|
45
43
|
</Fab>
|
|
46
44
|
)
|
|
47
45
|
}
|
|
@@ -55,9 +53,5 @@ export function WishlistFab(props: WishlistFabProps) {
|
|
|
55
53
|
if (!enabled) return null
|
|
56
54
|
const activeWishlist = wishlist.items.length > 0
|
|
57
55
|
|
|
58
|
-
return
|
|
59
|
-
<NoSsr fallback={<WishlistFabContent {...props} activeWishlist={false} />}>
|
|
60
|
-
<WishlistFabContent {...props} activeWishlist={activeWishlist} />
|
|
61
|
-
</NoSsr>
|
|
62
|
-
)
|
|
56
|
+
return <WishlistFabContent {...props} activeWishlist={activeWishlist} />
|
|
63
57
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { iconHeart, IconSvg, MenuFabSecondaryItem } from '@graphcommerce/next-ui'
|
|
2
2
|
import type { SxProps, Theme } from '@mui/material'
|
|
3
|
-
import { Badge
|
|
3
|
+
import { Badge } from '@mui/material'
|
|
4
4
|
import type { MouseEventHandler } from 'react'
|
|
5
5
|
import React from 'react'
|
|
6
6
|
import { useWishlistItems } from '../../hooks'
|
|
@@ -46,9 +46,5 @@ export function WishlistMenuFabItem(props: WishlistMenuFabItemProps) {
|
|
|
46
46
|
|
|
47
47
|
const activeWishlist = wishlist.items.length > 0
|
|
48
48
|
|
|
49
|
-
return
|
|
50
|
-
<NoSsr fallback={<WishlistMenuFabItemContent {...props} activeWishlist={false} />}>
|
|
51
|
-
<WishlistMenuFabItemContent {...props} activeWishlist={activeWishlist} />
|
|
52
|
-
</NoSsr>
|
|
53
|
-
)
|
|
49
|
+
return <WishlistMenuFabItemContent {...props} activeWishlist={activeWishlist} />
|
|
54
50
|
}
|
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.40",
|
|
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.40",
|
|
17
|
+
"@graphcommerce/eslint-config-pwa": "^9.1.0-canary.40",
|
|
18
|
+
"@graphcommerce/graphql": "^9.1.0-canary.40",
|
|
19
|
+
"@graphcommerce/graphql-mesh": "^9.1.0-canary.40",
|
|
20
|
+
"@graphcommerce/image": "^9.1.0-canary.40",
|
|
21
|
+
"@graphcommerce/magento-cart": "^9.1.0-canary.40",
|
|
22
|
+
"@graphcommerce/magento-customer": "^9.1.0-canary.40",
|
|
23
|
+
"@graphcommerce/magento-product": "^9.1.0-canary.40",
|
|
24
|
+
"@graphcommerce/magento-product-configurable": "^9.1.0-canary.40",
|
|
25
|
+
"@graphcommerce/magento-store": "^9.1.0-canary.40",
|
|
26
|
+
"@graphcommerce/next-config": "^9.1.0-canary.40",
|
|
27
|
+
"@graphcommerce/next-ui": "^9.1.0-canary.40",
|
|
28
|
+
"@graphcommerce/prettier-config-pwa": "^9.1.0-canary.40",
|
|
29
|
+
"@graphcommerce/typescript-config-pwa": "^9.1.0-canary.40",
|
|
30
30
|
"@lingui/core": "^4.2.1",
|
|
31
31
|
"@lingui/macro": "^4.2.1",
|
|
32
32
|
"@lingui/react": "^4.2.1",
|