@pradip1995/segment-product-card 0.3.29 → 0.3.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pradip1995/segment-product-card",
3
- "version": "0.3.29",
3
+ "version": "0.3.30",
4
4
  "license": "MIT",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -25,7 +25,7 @@
25
25
  "react-dom": ">=19"
26
26
  },
27
27
  "dependencies": {
28
- "@pradip1995/segment-login-popup": "^0.1.3",
28
+ "@pradip1995/segment-login-popup": "^0.1.6",
29
29
  "@pradip1995/segment-primitives": "^0.4.11",
30
30
  "@pradip1995/segment-tokens": "^0.3.14"
31
31
  },
@@ -13,6 +13,7 @@ import { isNextRedirect } from "@pradip1995/segment-primitives/is-next-redirect"
13
13
  import LoginRequiredModal, {
14
14
  isAuthRequiredError,
15
15
  promptLoginForWishlist,
16
+ requireLoginForWishlist,
16
17
  } from "@pradip1995/segment-login-popup/required"
17
18
  import QuickAddPanel from "./quick-add-panel"
18
19
  import {
@@ -104,6 +105,7 @@ export default function ProductCardActions({
104
105
  const handleWishlistToggle = async (event: React.MouseEvent) => {
105
106
  stopCardNav(event)
106
107
  if (!product.id || wishlistLoading) return
108
+ if (requireLoginForWishlist()) return
107
109
 
108
110
  setWishlistLoading(true)
109
111
  try {