@pelcro/react-pelcro-js 3.26.0-sandbox.34 → 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 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
  };
@@ -20552,7 +20554,8 @@ const ApplePayButton = _ref => {
20552
20554
  const vantivPaymentRequest = {
20553
20555
  ...vantivResponse,
20554
20556
  expMonth: expMonth,
20555
- expYear: expYear
20557
+ expYear: expYear,
20558
+ applePay: true
20556
20559
  };
20557
20560
 
20558
20561
  // Process the registrationId or continue with further payment processing.
@@ -25908,7 +25911,9 @@ const CartRemoveItemButton = _ref => {
25908
25911
  "data-key": itemId,
25909
25912
  icon: /*#__PURE__*/React__default['default'].createElement(SvgXIcon, {
25910
25913
  "aria-hidden": "true",
25911
- focusable: "false"
25914
+ focusable: "false",
25915
+ height: "20",
25916
+ width: "20"
25912
25917
  }),
25913
25918
  className: "plc-bg-transparent plc-w-9 plc-h-9 plc-p-2",
25914
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
  };
@@ -20522,7 +20524,8 @@ const ApplePayButton = _ref => {
20522
20524
  const vantivPaymentRequest = {
20523
20525
  ...vantivResponse,
20524
20526
  expMonth: expMonth,
20525
- expYear: expYear
20527
+ expYear: expYear,
20528
+ applePay: true
20526
20529
  };
20527
20530
 
20528
20531
  // Process the registrationId or continue with further payment processing.
@@ -25878,7 +25881,9 @@ const CartRemoveItemButton = _ref => {
25878
25881
  "data-key": itemId,
25879
25882
  icon: /*#__PURE__*/React__default.createElement(SvgXIcon, {
25880
25883
  "aria-hidden": "true",
25881
- focusable: "false"
25884
+ focusable: "false",
25885
+ height: "20",
25886
+ width: "20"
25882
25887
  }),
25883
25888
  className: "plc-bg-transparent plc-w-9 plc-h-9 plc-p-2",
25884
25889
  onClick: () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "3.26.0-sandbox.34",
4
+ "version": "3.26.0-sandbox.36",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",