@pelcro/react-pelcro-js 3.45.0 → 3.47.0
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 +11 -7
- package/dist/index.esm.js +11 -7
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -9118,12 +9118,16 @@ class PelcroActions {
|
|
|
9118
9118
|
return false;
|
|
9119
9119
|
}
|
|
9120
9120
|
const skusMatchingUserCurrency = window.Pelcro.ecommerce.products.getSkus();
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
}
|
|
9121
|
+
skusMatchingUserCurrency.some(sku => sku.id === quickPurchaseItem.id);
|
|
9122
|
+
|
|
9123
|
+
// if (!itemMatchesUserCurrency) {
|
|
9124
|
+
// const userCurrency = window.Pelcro.user.read().currency;
|
|
9125
|
+
// console.error(
|
|
9126
|
+
// `SKU currency (${quickPurchaseItem.currency}) doesn't match user account's currency (${userCurrency}). users can only purchase SKUs that match their account's currency`
|
|
9127
|
+
// );
|
|
9128
|
+
// return false;
|
|
9129
|
+
// }
|
|
9130
|
+
|
|
9127
9131
|
const quickPurchaseItemWithQuantity = {
|
|
9128
9132
|
...quickPurchaseItem,
|
|
9129
9133
|
quantity: 1
|
|
@@ -13108,7 +13112,7 @@ function Password(_ref) {
|
|
|
13108
13112
|
onFocus: () => setFinishedTyping(false)
|
|
13109
13113
|
}, otherProps)), ((_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.showPassword) && /*#__PURE__*/React__default['default'].createElement("span", {
|
|
13110
13114
|
onClick: () => setShowPassword(!showPassword),
|
|
13111
|
-
className: "plc-absolute plc-right-2 plc-transform plc--translate-y-1/2 plc-cursor-pointer plc-opacity-50 plc-w-
|
|
13115
|
+
className: "plc-absolute plc-right-2 plc-transform plc--translate-y-1/2 plc-cursor-pointer plc-opacity-50 plc-w-9 plc-h-9",
|
|
13112
13116
|
style: {
|
|
13113
13117
|
top: "70%"
|
|
13114
13118
|
}
|
package/dist/index.esm.js
CHANGED
|
@@ -9088,12 +9088,16 @@ class PelcroActions {
|
|
|
9088
9088
|
return false;
|
|
9089
9089
|
}
|
|
9090
9090
|
const skusMatchingUserCurrency = window.Pelcro.ecommerce.products.getSkus();
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
}
|
|
9091
|
+
skusMatchingUserCurrency.some(sku => sku.id === quickPurchaseItem.id);
|
|
9092
|
+
|
|
9093
|
+
// if (!itemMatchesUserCurrency) {
|
|
9094
|
+
// const userCurrency = window.Pelcro.user.read().currency;
|
|
9095
|
+
// console.error(
|
|
9096
|
+
// `SKU currency (${quickPurchaseItem.currency}) doesn't match user account's currency (${userCurrency}). users can only purchase SKUs that match their account's currency`
|
|
9097
|
+
// );
|
|
9098
|
+
// return false;
|
|
9099
|
+
// }
|
|
9100
|
+
|
|
9097
9101
|
const quickPurchaseItemWithQuantity = {
|
|
9098
9102
|
...quickPurchaseItem,
|
|
9099
9103
|
quantity: 1
|
|
@@ -13078,7 +13082,7 @@ function Password(_ref) {
|
|
|
13078
13082
|
onFocus: () => setFinishedTyping(false)
|
|
13079
13083
|
}, otherProps)), ((_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.showPassword) && /*#__PURE__*/React__default.createElement("span", {
|
|
13080
13084
|
onClick: () => setShowPassword(!showPassword),
|
|
13081
|
-
className: "plc-absolute plc-right-2 plc-transform plc--translate-y-1/2 plc-cursor-pointer plc-opacity-50 plc-w-
|
|
13085
|
+
className: "plc-absolute plc-right-2 plc-transform plc--translate-y-1/2 plc-cursor-pointer plc-opacity-50 plc-w-9 plc-h-9",
|
|
13082
13086
|
style: {
|
|
13083
13087
|
top: "70%"
|
|
13084
13088
|
}
|