@pelcro/react-pelcro-js 3.19.0-beta.15 → 3.19.0-beta.17
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 +14 -23
- package/dist/index.esm.js +14 -23
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8910,8 +8910,9 @@ function notifyBugsnag(callback, startOptions) {
|
|
|
8910
8910
|
//load bugsnag CDN
|
|
8911
8911
|
window.Pelcro.helpers.loadSDK("https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js", "bugsnag-cdn");
|
|
8912
8912
|
document.querySelector('script[src="https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js"]').addEventListener("load", () => {
|
|
8913
|
+
var _window$Pelcro$enviro, _window$Pelcro3, _window$Pelcro3$envir;
|
|
8913
8914
|
Bugsnag.start({
|
|
8914
|
-
apiKey: "e8f6852b322540e8c25386048b99ab01",
|
|
8915
|
+
apiKey: (_window$Pelcro$enviro = (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$envir = _window$Pelcro3.environment) === null || _window$Pelcro3$envir === void 0 ? void 0 : _window$Pelcro3$envir.bugsnagKey) !== null && _window$Pelcro$enviro !== void 0 ? _window$Pelcro$enviro : "e8f6852b322540e8c25386048b99ab01",
|
|
8915
8916
|
autoDetectErrors: false,
|
|
8916
8917
|
// enabledReleaseStages: ["development"],
|
|
8917
8918
|
redactedKeys: ["security_key", "password", "password_confirmation", "auth_token", "token"],
|
|
@@ -11159,18 +11160,6 @@ const initSubscriptionFromURL = () => {
|
|
|
11159
11160
|
var _selectedProduct$plan;
|
|
11160
11161
|
const productsList = window.Pelcro.product.list();
|
|
11161
11162
|
if (!(productsList !== null && productsList !== void 0 && productsList.length)) {
|
|
11162
|
-
notifyBugsnag(() => {
|
|
11163
|
-
Bugsnag.notify("initSubscriptionFromURL - productsList is empty", event => {
|
|
11164
|
-
var _window$Pelcro, _window$Pelcro$site, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$uiSet, _window$Pelcro4, _window$Pelcro5, _window$Pelcro5$uiSet;
|
|
11165
|
-
event.addMetadata("MetaData", {
|
|
11166
|
-
site: (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$site = _window$Pelcro.site) === null || _window$Pelcro$site === void 0 ? void 0 : _window$Pelcro$site.read(),
|
|
11167
|
-
user: (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$user = _window$Pelcro2.user) === null || _window$Pelcro2$user === void 0 ? void 0 : _window$Pelcro2$user.read(),
|
|
11168
|
-
uiVersion: (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$uiSet = _window$Pelcro3.uiSettings) === null || _window$Pelcro3$uiSet === void 0 ? void 0 : _window$Pelcro3$uiSet.uiVersion,
|
|
11169
|
-
environment: (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : _window$Pelcro4.environment,
|
|
11170
|
-
uiVersionApp: (_window$Pelcro5 = window.Pelcro) === null || _window$Pelcro5 === void 0 ? void 0 : (_window$Pelcro5$uiSet = _window$Pelcro5.uiSettings) === null || _window$Pelcro5$uiSet === void 0 ? void 0 : _window$Pelcro5$uiSet.uiVersion
|
|
11171
|
-
});
|
|
11172
|
-
});
|
|
11173
|
-
});
|
|
11174
11163
|
return;
|
|
11175
11164
|
}
|
|
11176
11165
|
const [productId, planId, isGiftParam] = [window.Pelcro.helpers.getURLParameter("product_id"), window.Pelcro.helpers.getURLParameter("plan_id"), window.Pelcro.helpers.getURLParameter("is_gift")];
|
|
@@ -13991,18 +13980,20 @@ class SelectModal extends React.Component {
|
|
|
13991
13980
|
this.props.setView('register');
|
|
13992
13981
|
}
|
|
13993
13982
|
document.addEventListener("keydown", this.handleSubmit);
|
|
13994
|
-
|
|
13995
|
-
|
|
13996
|
-
|
|
13997
|
-
|
|
13998
|
-
|
|
13999
|
-
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
|
|
13983
|
+
if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
|
|
13984
|
+
notifyBugsnag(() => {
|
|
13985
|
+
Bugsnag.notify("SelectModal - No data viewed", event => {
|
|
13986
|
+
var _window$Pelcro, _window$Pelcro$site, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$uiSet, _window$Pelcro4;
|
|
13987
|
+
event.addMetadata("MetaData", {
|
|
13988
|
+
site: (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$site = _window$Pelcro.site) === null || _window$Pelcro$site === void 0 ? void 0 : _window$Pelcro$site.read(),
|
|
13989
|
+
user: (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$user = _window$Pelcro2.user) === null || _window$Pelcro2$user === void 0 ? void 0 : _window$Pelcro2$user.read(),
|
|
13990
|
+
uiVersion: (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$uiSet = _window$Pelcro3.uiSettings) === null || _window$Pelcro3$uiSet === void 0 ? void 0 : _window$Pelcro3$uiSet.uiVersion,
|
|
13991
|
+
environment: (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : _window$Pelcro4.environment
|
|
13992
|
+
});
|
|
14003
13993
|
});
|
|
14004
13994
|
});
|
|
14005
|
-
|
|
13995
|
+
console.log("bugsnag Triggered");
|
|
13996
|
+
}
|
|
14006
13997
|
});
|
|
14007
13998
|
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
14008
13999
|
document.removeEventListener("keydown", this.handleSubmit);
|
package/dist/index.esm.js
CHANGED
|
@@ -8880,8 +8880,9 @@ function notifyBugsnag(callback, startOptions) {
|
|
|
8880
8880
|
//load bugsnag CDN
|
|
8881
8881
|
window.Pelcro.helpers.loadSDK("https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js", "bugsnag-cdn");
|
|
8882
8882
|
document.querySelector('script[src="https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js"]').addEventListener("load", () => {
|
|
8883
|
+
var _window$Pelcro$enviro, _window$Pelcro3, _window$Pelcro3$envir;
|
|
8883
8884
|
Bugsnag.start({
|
|
8884
|
-
apiKey: "e8f6852b322540e8c25386048b99ab01",
|
|
8885
|
+
apiKey: (_window$Pelcro$enviro = (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$envir = _window$Pelcro3.environment) === null || _window$Pelcro3$envir === void 0 ? void 0 : _window$Pelcro3$envir.bugsnagKey) !== null && _window$Pelcro$enviro !== void 0 ? _window$Pelcro$enviro : "e8f6852b322540e8c25386048b99ab01",
|
|
8885
8886
|
autoDetectErrors: false,
|
|
8886
8887
|
// enabledReleaseStages: ["development"],
|
|
8887
8888
|
redactedKeys: ["security_key", "password", "password_confirmation", "auth_token", "token"],
|
|
@@ -11129,18 +11130,6 @@ const initSubscriptionFromURL = () => {
|
|
|
11129
11130
|
var _selectedProduct$plan;
|
|
11130
11131
|
const productsList = window.Pelcro.product.list();
|
|
11131
11132
|
if (!(productsList !== null && productsList !== void 0 && productsList.length)) {
|
|
11132
|
-
notifyBugsnag(() => {
|
|
11133
|
-
Bugsnag.notify("initSubscriptionFromURL - productsList is empty", event => {
|
|
11134
|
-
var _window$Pelcro, _window$Pelcro$site, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$uiSet, _window$Pelcro4, _window$Pelcro5, _window$Pelcro5$uiSet;
|
|
11135
|
-
event.addMetadata("MetaData", {
|
|
11136
|
-
site: (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$site = _window$Pelcro.site) === null || _window$Pelcro$site === void 0 ? void 0 : _window$Pelcro$site.read(),
|
|
11137
|
-
user: (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$user = _window$Pelcro2.user) === null || _window$Pelcro2$user === void 0 ? void 0 : _window$Pelcro2$user.read(),
|
|
11138
|
-
uiVersion: (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$uiSet = _window$Pelcro3.uiSettings) === null || _window$Pelcro3$uiSet === void 0 ? void 0 : _window$Pelcro3$uiSet.uiVersion,
|
|
11139
|
-
environment: (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : _window$Pelcro4.environment,
|
|
11140
|
-
uiVersionApp: (_window$Pelcro5 = window.Pelcro) === null || _window$Pelcro5 === void 0 ? void 0 : (_window$Pelcro5$uiSet = _window$Pelcro5.uiSettings) === null || _window$Pelcro5$uiSet === void 0 ? void 0 : _window$Pelcro5$uiSet.uiVersion
|
|
11141
|
-
});
|
|
11142
|
-
});
|
|
11143
|
-
});
|
|
11144
11133
|
return;
|
|
11145
11134
|
}
|
|
11146
11135
|
const [productId, planId, isGiftParam] = [window.Pelcro.helpers.getURLParameter("product_id"), window.Pelcro.helpers.getURLParameter("plan_id"), window.Pelcro.helpers.getURLParameter("is_gift")];
|
|
@@ -13961,18 +13950,20 @@ class SelectModal extends Component {
|
|
|
13961
13950
|
this.props.setView('register');
|
|
13962
13951
|
}
|
|
13963
13952
|
document.addEventListener("keydown", this.handleSubmit);
|
|
13964
|
-
|
|
13965
|
-
|
|
13966
|
-
|
|
13967
|
-
|
|
13968
|
-
|
|
13969
|
-
|
|
13970
|
-
|
|
13971
|
-
|
|
13972
|
-
|
|
13953
|
+
if (!document.querySelector("#pelcro-selection-view") || !document.querySelector(".pelcro-select-product-wrapper")) {
|
|
13954
|
+
notifyBugsnag(() => {
|
|
13955
|
+
Bugsnag.notify("SelectModal - No data viewed", event => {
|
|
13956
|
+
var _window$Pelcro, _window$Pelcro$site, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$uiSet, _window$Pelcro4;
|
|
13957
|
+
event.addMetadata("MetaData", {
|
|
13958
|
+
site: (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$site = _window$Pelcro.site) === null || _window$Pelcro$site === void 0 ? void 0 : _window$Pelcro$site.read(),
|
|
13959
|
+
user: (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$user = _window$Pelcro2.user) === null || _window$Pelcro2$user === void 0 ? void 0 : _window$Pelcro2$user.read(),
|
|
13960
|
+
uiVersion: (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$uiSet = _window$Pelcro3.uiSettings) === null || _window$Pelcro3$uiSet === void 0 ? void 0 : _window$Pelcro3$uiSet.uiVersion,
|
|
13961
|
+
environment: (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : _window$Pelcro4.environment
|
|
13962
|
+
});
|
|
13973
13963
|
});
|
|
13974
13964
|
});
|
|
13975
|
-
|
|
13965
|
+
console.log("bugsnag Triggered");
|
|
13966
|
+
}
|
|
13976
13967
|
});
|
|
13977
13968
|
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
13978
13969
|
document.removeEventListener("keydown", this.handleSubmit);
|