@pelcro/react-pelcro-js 3.18.1-beta.1 → 3.19.0-beta.10
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 +7 -4
- package/dist/index.esm.js +7 -4
- package/package.json +2 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10938,8 +10938,10 @@ const loadPaymentSDKs = () => {
|
|
|
10938
10938
|
const {
|
|
10939
10939
|
whenUserReady
|
|
10940
10940
|
} = usePelcro.getStore();
|
|
10941
|
+
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
10942
|
+
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
10941
10943
|
whenUserReady(() => {
|
|
10942
|
-
if (!window.Stripe) {
|
|
10944
|
+
if (!window.Stripe && !supportsVantiv && !supportsTap) {
|
|
10943
10945
|
pure_1(window.Pelcro.environment.stripe);
|
|
10944
10946
|
}
|
|
10945
10947
|
});
|
|
@@ -10952,7 +10954,6 @@ const loadPaymentSDKs = () => {
|
|
|
10952
10954
|
}
|
|
10953
10955
|
|
|
10954
10956
|
// Load Vantiv SDKs
|
|
10955
|
-
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
10956
10957
|
if (supportsVantiv) {
|
|
10957
10958
|
if (!window.jQuery) {
|
|
10958
10959
|
window.Pelcro.helpers.loadSDK("https://code.jquery.com/jquery-3.6.0.slim.min.js", "vantiv-jquery-sdk");
|
|
@@ -10966,7 +10967,6 @@ const loadPaymentSDKs = () => {
|
|
|
10966
10967
|
}
|
|
10967
10968
|
|
|
10968
10969
|
// Load Tap SDKs
|
|
10969
|
-
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
10970
10970
|
if (supportsTap) {
|
|
10971
10971
|
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
10972
10972
|
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
@@ -11140,7 +11140,9 @@ const initSubscriptionFromURL = () => {
|
|
|
11140
11140
|
whenSiteReady(() => {
|
|
11141
11141
|
var _selectedProduct$plan;
|
|
11142
11142
|
const productsList = window.Pelcro.product.list();
|
|
11143
|
-
if (!(productsList !== null && productsList !== void 0 && productsList.length))
|
|
11143
|
+
if (!(productsList !== null && productsList !== void 0 && productsList.length)) {
|
|
11144
|
+
return;
|
|
11145
|
+
}
|
|
11144
11146
|
const [productId, planId, isGiftParam] = [window.Pelcro.helpers.getURLParameter("product_id"), window.Pelcro.helpers.getURLParameter("plan_id"), window.Pelcro.helpers.getURLParameter("is_gift")];
|
|
11145
11147
|
const isGift = (isGiftParam === null || isGiftParam === void 0 ? void 0 : isGiftParam.toLowerCase()) === "true";
|
|
11146
11148
|
const selectedProduct = productsList.find(product => product.id === Number(productId));
|
|
@@ -13959,6 +13961,7 @@ class SelectModal extends React.Component {
|
|
|
13959
13961
|
this.props.setView('register');
|
|
13960
13962
|
}
|
|
13961
13963
|
document.addEventListener("keydown", this.handleSubmit);
|
|
13964
|
+
// Bugsnag.notify("SelectModalMounted")
|
|
13962
13965
|
});
|
|
13963
13966
|
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
13964
13967
|
document.removeEventListener("keydown", this.handleSubmit);
|
package/dist/index.esm.js
CHANGED
|
@@ -10908,8 +10908,10 @@ const loadPaymentSDKs = () => {
|
|
|
10908
10908
|
const {
|
|
10909
10909
|
whenUserReady
|
|
10910
10910
|
} = usePelcro.getStore();
|
|
10911
|
+
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
10912
|
+
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
10911
10913
|
whenUserReady(() => {
|
|
10912
|
-
if (!window.Stripe) {
|
|
10914
|
+
if (!window.Stripe && !supportsVantiv && !supportsTap) {
|
|
10913
10915
|
pure_1(window.Pelcro.environment.stripe);
|
|
10914
10916
|
}
|
|
10915
10917
|
});
|
|
@@ -10922,7 +10924,6 @@ const loadPaymentSDKs = () => {
|
|
|
10922
10924
|
}
|
|
10923
10925
|
|
|
10924
10926
|
// Load Vantiv SDKs
|
|
10925
|
-
const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_gateway_settings);
|
|
10926
10927
|
if (supportsVantiv) {
|
|
10927
10928
|
if (!window.jQuery) {
|
|
10928
10929
|
window.Pelcro.helpers.loadSDK("https://code.jquery.com/jquery-3.6.0.slim.min.js", "vantiv-jquery-sdk");
|
|
@@ -10936,7 +10937,6 @@ const loadPaymentSDKs = () => {
|
|
|
10936
10937
|
}
|
|
10937
10938
|
|
|
10938
10939
|
// Load Tap SDKs
|
|
10939
|
-
const supportsTap = Boolean(window.Pelcro.site.read().tap_gateway_settings);
|
|
10940
10940
|
if (supportsTap) {
|
|
10941
10941
|
window.Pelcro.helpers.loadSDK("https://cdnjs.cloudflare.com/ajax/libs/bluebird/3.3.4/bluebird.min.js", "tap-bluebird");
|
|
10942
10942
|
window.Pelcro.helpers.loadSDK("https://secure.gosell.io/js/sdk/tap.min.js", "tap-sdk");
|
|
@@ -11110,7 +11110,9 @@ const initSubscriptionFromURL = () => {
|
|
|
11110
11110
|
whenSiteReady(() => {
|
|
11111
11111
|
var _selectedProduct$plan;
|
|
11112
11112
|
const productsList = window.Pelcro.product.list();
|
|
11113
|
-
if (!(productsList !== null && productsList !== void 0 && productsList.length))
|
|
11113
|
+
if (!(productsList !== null && productsList !== void 0 && productsList.length)) {
|
|
11114
|
+
return;
|
|
11115
|
+
}
|
|
11114
11116
|
const [productId, planId, isGiftParam] = [window.Pelcro.helpers.getURLParameter("product_id"), window.Pelcro.helpers.getURLParameter("plan_id"), window.Pelcro.helpers.getURLParameter("is_gift")];
|
|
11115
11117
|
const isGift = (isGiftParam === null || isGiftParam === void 0 ? void 0 : isGiftParam.toLowerCase()) === "true";
|
|
11116
11118
|
const selectedProduct = productsList.find(product => product.id === Number(productId));
|
|
@@ -13929,6 +13931,7 @@ class SelectModal extends Component {
|
|
|
13929
13931
|
this.props.setView('register');
|
|
13930
13932
|
}
|
|
13931
13933
|
document.addEventListener("keydown", this.handleSubmit);
|
|
13934
|
+
// Bugsnag.notify("SelectModalMounted")
|
|
13932
13935
|
});
|
|
13933
13936
|
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
13934
13937
|
document.removeEventListener("keydown", this.handleSubmit);
|
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.
|
|
4
|
+
"version": "3.19.0-beta.10",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
@@ -100,6 +100,7 @@
|
|
|
100
100
|
"webpack-dev-server": "^3.11.2"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
+
"@bugsnag/js": "^7.20.0",
|
|
103
104
|
"@headlessui/react": "^0.3.0",
|
|
104
105
|
"@stripe/stripe-js": "^1.21.1",
|
|
105
106
|
"gapi-script": "^1.2.0",
|