@pelcro/react-pelcro-js 3.8.0 → 3.8.1
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 +3 -11
- package/dist/index.esm.js +3 -11
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -7930,8 +7930,6 @@ const getEntitlementsFromElem = elem => {
|
|
|
7930
7930
|
return elem.dataset.pelcroEntitlements.split(",").map(entitlement => entitlement.trim()).filter(entitlement => entitlement);
|
|
7931
7931
|
};
|
|
7932
7932
|
const getPaymentCardIcon$1 = name => {
|
|
7933
|
-
var _icons$name$toLowerCa;
|
|
7934
|
-
|
|
7935
7933
|
const icons = {
|
|
7936
7934
|
visa: /*#__PURE__*/React__default['default'].createElement("svg", {
|
|
7937
7935
|
className: "plc-w-16",
|
|
@@ -7970,7 +7968,7 @@ const getPaymentCardIcon$1 = name => {
|
|
|
7970
7968
|
d: "M22.255 20l-2.113 4.683L18.039 20h-2.695v6.726L12.341 20h-2.274L7 26.981h1.815l.671-1.558h3.432l.682 1.558h3.465v-5.185l2.299 5.185h1.563l2.351-5.095v5.095H25V20H22.255zM10.135 23.915l1.026-2.44 1.066 2.44H10.135zM37.883 23.413L41 20.018h-2.217l-1.994 2.164L34.86 20H28v6.982h6.635l2.092-2.311L38.767 27h2.21L37.883 23.413zM33.728 25.516h-4.011v-1.381h3.838v-1.323h-3.838v-1.308l4.234.012 1.693 1.897L33.728 25.516z"
|
|
7971
7969
|
}))
|
|
7972
7970
|
};
|
|
7973
|
-
return
|
|
7971
|
+
return name ? icons[name.toLowerCase()] : /*#__PURE__*/React__default['default'].createElement("svg", {
|
|
7974
7972
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7975
7973
|
className: "plc-w-16",
|
|
7976
7974
|
fill: "none",
|
|
@@ -12817,7 +12815,7 @@ class SelectModal extends React.Component {
|
|
|
12817
12815
|
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
12818
12816
|
}, product.plans && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
12819
12817
|
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
12820
|
-
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)
|
|
12818
|
+
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
12821
12819
|
onClick: productButtonCallback,
|
|
12822
12820
|
"data-key": product.id,
|
|
12823
12821
|
id: "pelcro-select-product-back-button",
|
|
@@ -15246,7 +15244,6 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15246
15244
|
}
|
|
15247
15245
|
});
|
|
15248
15246
|
} else {
|
|
15249
|
-
console.log("Tap API Call result", result);
|
|
15250
15247
|
window.Pelcro.payment.authorize({
|
|
15251
15248
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
15252
15249
|
site_id: window.Pelcro.siteid,
|
|
@@ -23425,9 +23422,6 @@ const AddressSelectSubmit = ({
|
|
|
23425
23422
|
isSubmitting
|
|
23426
23423
|
}
|
|
23427
23424
|
} = React.useContext(store$5);
|
|
23428
|
-
console.log("Selected", selectedAddressId);
|
|
23429
|
-
console.log("Selected", typeof selectedAddressId);
|
|
23430
|
-
console.log("IsSubmitted", isSubmitting);
|
|
23431
23425
|
const {
|
|
23432
23426
|
t
|
|
23433
23427
|
} = useTranslation("address");
|
|
@@ -24854,8 +24848,6 @@ var GroupContext = /*#__PURE__*/React.createContext(null);
|
|
|
24854
24848
|
GroupContext.displayName = 'GroupContext';
|
|
24855
24849
|
|
|
24856
24850
|
const getPaymentCardIcon = name => {
|
|
24857
|
-
var _icons$name$toLowerCa;
|
|
24858
|
-
|
|
24859
24851
|
const icons = {
|
|
24860
24852
|
visa: /*#__PURE__*/React__default['default'].createElement("svg", {
|
|
24861
24853
|
className: "plc-w-12",
|
|
@@ -24882,7 +24874,7 @@ const getPaymentCardIcon = name => {
|
|
|
24882
24874
|
d: "M 5 7 C 2.25 7 0 9.25 0 12 L 0 38 C 0 40.75 2.25 43 5 43 L 45 43 C 47.75 43 50 40.75 50 38 L 50 12 C 50 9.25 47.75 7 45 7 Z M 5 9 L 45 9 C 46.667969 9 48 10.332031 48 12 L 48 38 C 48 39.667969 46.667969 41 45 41 L 5 41 C 3.332031 41 2 39.667969 2 38 L 2 12 C 2 10.332031 3.332031 9 5 9 Z M 8.5625 19.90625 L 4.84375 28.40625 L 7.0625 28.40625 L 7.875 26.5 L 12.0625 26.5 L 12.875 28.40625 L 17.09375 28.40625 L 17.09375 22.09375 L 19.90625 28.40625 L 21.8125 28.40625 L 24.65625 22.1875 L 24.65625 28.40625 L 26.75 28.40625 L 26.75 19.90625 L 23.40625 19.90625 L 20.84375 25.625 L 18.28125 19.90625 L 15 19.90625 L 15 28.09375 L 11.34375 19.90625 Z M 29.5 19.90625 L 29.5 28.4375 L 37.5 28.4375 L 40 25.59375 L 42.46875 28.4375 L 45.125 28.4375 L 41.375 24.0625 L 45.125 19.90625 L 42.46875 19.90625 L 40.0625 22.5625 L 37.75 19.90625 Z M 9.90625 21.6875 L 11.21875 24.6875 L 8.65625 24.6875 Z M 31.5625 21.71875 L 36.65625 21.75 L 38.6875 24.0625 L 36.40625 26.625 L 31.5625 26.625 L 31.5625 24.9375 L 36.1875 24.9375 L 36.1875 23.3125 L 31.5625 23.3125 Z"
|
|
24883
24875
|
}))
|
|
24884
24876
|
};
|
|
24885
|
-
return
|
|
24877
|
+
return name ? icons[name.toLowerCase()] : /*#__PURE__*/React__default['default'].createElement("svg", {
|
|
24886
24878
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24887
24879
|
className: "plc-w-12",
|
|
24888
24880
|
fill: "none",
|
package/dist/index.esm.js
CHANGED
|
@@ -7900,8 +7900,6 @@ const getEntitlementsFromElem = elem => {
|
|
|
7900
7900
|
return elem.dataset.pelcroEntitlements.split(",").map(entitlement => entitlement.trim()).filter(entitlement => entitlement);
|
|
7901
7901
|
};
|
|
7902
7902
|
const getPaymentCardIcon$1 = name => {
|
|
7903
|
-
var _icons$name$toLowerCa;
|
|
7904
|
-
|
|
7905
7903
|
const icons = {
|
|
7906
7904
|
visa: /*#__PURE__*/React__default.createElement("svg", {
|
|
7907
7905
|
className: "plc-w-16",
|
|
@@ -7940,7 +7938,7 @@ const getPaymentCardIcon$1 = name => {
|
|
|
7940
7938
|
d: "M22.255 20l-2.113 4.683L18.039 20h-2.695v6.726L12.341 20h-2.274L7 26.981h1.815l.671-1.558h3.432l.682 1.558h3.465v-5.185l2.299 5.185h1.563l2.351-5.095v5.095H25V20H22.255zM10.135 23.915l1.026-2.44 1.066 2.44H10.135zM37.883 23.413L41 20.018h-2.217l-1.994 2.164L34.86 20H28v6.982h6.635l2.092-2.311L38.767 27h2.21L37.883 23.413zM33.728 25.516h-4.011v-1.381h3.838v-1.323h-3.838v-1.308l4.234.012 1.693 1.897L33.728 25.516z"
|
|
7941
7939
|
}))
|
|
7942
7940
|
};
|
|
7943
|
-
return
|
|
7941
|
+
return name ? icons[name.toLowerCase()] : /*#__PURE__*/React__default.createElement("svg", {
|
|
7944
7942
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7945
7943
|
className: "plc-w-16",
|
|
7946
7944
|
fill: "none",
|
|
@@ -12787,7 +12785,7 @@ class SelectModal extends Component {
|
|
|
12787
12785
|
className: "plc-flex plc-items-end plc-w-full plc-mt-3"
|
|
12788
12786
|
}, product.plans && /*#__PURE__*/React__default.createElement("p", {
|
|
12789
12787
|
className: "plc-w-1/2 plc-text-xs pelcro-select-product-cost"
|
|
12790
|
-
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)
|
|
12788
|
+
}, this.locale("labels.startingAt"), " ", this.countStartPrice(product.plans)), /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
12791
12789
|
onClick: productButtonCallback,
|
|
12792
12790
|
"data-key": product.id,
|
|
12793
12791
|
id: "pelcro-select-product-back-button",
|
|
@@ -15216,7 +15214,6 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
15216
15214
|
}
|
|
15217
15215
|
});
|
|
15218
15216
|
} else {
|
|
15219
|
-
console.log("Tap API Call result", result);
|
|
15220
15217
|
window.Pelcro.payment.authorize({
|
|
15221
15218
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
15222
15219
|
site_id: window.Pelcro.siteid,
|
|
@@ -23395,9 +23392,6 @@ const AddressSelectSubmit = ({
|
|
|
23395
23392
|
isSubmitting
|
|
23396
23393
|
}
|
|
23397
23394
|
} = useContext(store$5);
|
|
23398
|
-
console.log("Selected", selectedAddressId);
|
|
23399
|
-
console.log("Selected", typeof selectedAddressId);
|
|
23400
|
-
console.log("IsSubmitted", isSubmitting);
|
|
23401
23395
|
const {
|
|
23402
23396
|
t
|
|
23403
23397
|
} = useTranslation("address");
|
|
@@ -24824,8 +24818,6 @@ var GroupContext = /*#__PURE__*/createContext(null);
|
|
|
24824
24818
|
GroupContext.displayName = 'GroupContext';
|
|
24825
24819
|
|
|
24826
24820
|
const getPaymentCardIcon = name => {
|
|
24827
|
-
var _icons$name$toLowerCa;
|
|
24828
|
-
|
|
24829
24821
|
const icons = {
|
|
24830
24822
|
visa: /*#__PURE__*/React__default.createElement("svg", {
|
|
24831
24823
|
className: "plc-w-12",
|
|
@@ -24852,7 +24844,7 @@ const getPaymentCardIcon = name => {
|
|
|
24852
24844
|
d: "M 5 7 C 2.25 7 0 9.25 0 12 L 0 38 C 0 40.75 2.25 43 5 43 L 45 43 C 47.75 43 50 40.75 50 38 L 50 12 C 50 9.25 47.75 7 45 7 Z M 5 9 L 45 9 C 46.667969 9 48 10.332031 48 12 L 48 38 C 48 39.667969 46.667969 41 45 41 L 5 41 C 3.332031 41 2 39.667969 2 38 L 2 12 C 2 10.332031 3.332031 9 5 9 Z M 8.5625 19.90625 L 4.84375 28.40625 L 7.0625 28.40625 L 7.875 26.5 L 12.0625 26.5 L 12.875 28.40625 L 17.09375 28.40625 L 17.09375 22.09375 L 19.90625 28.40625 L 21.8125 28.40625 L 24.65625 22.1875 L 24.65625 28.40625 L 26.75 28.40625 L 26.75 19.90625 L 23.40625 19.90625 L 20.84375 25.625 L 18.28125 19.90625 L 15 19.90625 L 15 28.09375 L 11.34375 19.90625 Z M 29.5 19.90625 L 29.5 28.4375 L 37.5 28.4375 L 40 25.59375 L 42.46875 28.4375 L 45.125 28.4375 L 41.375 24.0625 L 45.125 19.90625 L 42.46875 19.90625 L 40.0625 22.5625 L 37.75 19.90625 Z M 9.90625 21.6875 L 11.21875 24.6875 L 8.65625 24.6875 Z M 31.5625 21.71875 L 36.65625 21.75 L 38.6875 24.0625 L 36.40625 26.625 L 31.5625 26.625 L 31.5625 24.9375 L 36.1875 24.9375 L 36.1875 23.3125 L 31.5625 23.3125 Z"
|
|
24853
24845
|
}))
|
|
24854
24846
|
};
|
|
24855
|
-
return
|
|
24847
|
+
return name ? icons[name.toLowerCase()] : /*#__PURE__*/React__default.createElement("svg", {
|
|
24856
24848
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24857
24849
|
className: "plc-w-12",
|
|
24858
24850
|
fill: "none",
|