@pelcro/react-pelcro-js 3.26.0-sandbox.35 → 3.26.0-sandbox.36
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/dist/index.cjs.js +9 -5
- package/dist/index.esm.js +9 -5
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -11564,6 +11564,8 @@ const initPaywalls = () => {
|
|
|
11564
11564
|
switchView,
|
|
11565
11565
|
isAuthenticated
|
|
11566
11566
|
} = usePelcro.getStore();
|
|
11567
|
+
|
|
11568
|
+
// eslint-disable-next-line no-inner-declarations
|
|
11567
11569
|
function displayPaywalls() {
|
|
11568
11570
|
if (paywallMethods !== null && paywallMethods !== void 0 && paywallMethods.displayMeterPaywall()) {
|
|
11569
11571
|
/*
|
|
@@ -11580,12 +11582,12 @@ const initPaywalls = () => {
|
|
|
11580
11582
|
switchView("plan-select");
|
|
11581
11583
|
}
|
|
11582
11584
|
}
|
|
11583
|
-
if (isAuthenticated()) {
|
|
11585
|
+
if ("id" in Pelcro.user.read() || !isAuthenticated()) {
|
|
11586
|
+
displayPaywalls();
|
|
11587
|
+
} else {
|
|
11584
11588
|
addEventListener("PelcroUserLoaded", function () {
|
|
11585
11589
|
displayPaywalls();
|
|
11586
|
-
});
|
|
11587
|
-
} else {
|
|
11588
|
-
displayPaywalls();
|
|
11590
|
+
}, true);
|
|
11589
11591
|
}
|
|
11590
11592
|
}
|
|
11591
11593
|
};
|
|
@@ -25909,7 +25911,9 @@ const CartRemoveItemButton = _ref => {
|
|
|
25909
25911
|
"data-key": itemId,
|
|
25910
25912
|
icon: /*#__PURE__*/React__default['default'].createElement(SvgXIcon, {
|
|
25911
25913
|
"aria-hidden": "true",
|
|
25912
|
-
focusable: "false"
|
|
25914
|
+
focusable: "false",
|
|
25915
|
+
height: "20",
|
|
25916
|
+
width: "20"
|
|
25913
25917
|
}),
|
|
25914
25918
|
className: "plc-bg-transparent plc-w-9 plc-h-9 plc-p-2",
|
|
25915
25919
|
onClick: () => {
|
package/dist/index.esm.js
CHANGED
|
@@ -11534,6 +11534,8 @@ const initPaywalls = () => {
|
|
|
11534
11534
|
switchView,
|
|
11535
11535
|
isAuthenticated
|
|
11536
11536
|
} = usePelcro.getStore();
|
|
11537
|
+
|
|
11538
|
+
// eslint-disable-next-line no-inner-declarations
|
|
11537
11539
|
function displayPaywalls() {
|
|
11538
11540
|
if (paywallMethods !== null && paywallMethods !== void 0 && paywallMethods.displayMeterPaywall()) {
|
|
11539
11541
|
/*
|
|
@@ -11550,12 +11552,12 @@ const initPaywalls = () => {
|
|
|
11550
11552
|
switchView("plan-select");
|
|
11551
11553
|
}
|
|
11552
11554
|
}
|
|
11553
|
-
if (isAuthenticated()) {
|
|
11555
|
+
if ("id" in Pelcro.user.read() || !isAuthenticated()) {
|
|
11556
|
+
displayPaywalls();
|
|
11557
|
+
} else {
|
|
11554
11558
|
addEventListener("PelcroUserLoaded", function () {
|
|
11555
11559
|
displayPaywalls();
|
|
11556
|
-
});
|
|
11557
|
-
} else {
|
|
11558
|
-
displayPaywalls();
|
|
11560
|
+
}, true);
|
|
11559
11561
|
}
|
|
11560
11562
|
}
|
|
11561
11563
|
};
|
|
@@ -25879,7 +25881,9 @@ const CartRemoveItemButton = _ref => {
|
|
|
25879
25881
|
"data-key": itemId,
|
|
25880
25882
|
icon: /*#__PURE__*/React__default.createElement(SvgXIcon, {
|
|
25881
25883
|
"aria-hidden": "true",
|
|
25882
|
-
focusable: "false"
|
|
25884
|
+
focusable: "false",
|
|
25885
|
+
height: "20",
|
|
25886
|
+
width: "20"
|
|
25883
25887
|
}),
|
|
25884
25888
|
className: "plc-bg-transparent plc-w-9 plc-h-9 plc-p-2",
|
|
25885
25889
|
onClick: () => {
|