@pelcro/react-pelcro-js 3.19.0-beta.12 → 3.19.0-beta.14
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 +42 -1
- package/dist/index.esm.js +42 -1
- package/package.json +1 -2
package/dist/index.cjs.js
CHANGED
|
@@ -8905,6 +8905,24 @@ function userMustVerifyEmail() {
|
|
|
8905
8905
|
const isUserEmailVerified = (_window$Pelcro$user$r9 = (_window$Pelcro$user$r10 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r10 === void 0 ? void 0 : _window$Pelcro$user$r10.email_confirm) !== null && _window$Pelcro$user$r9 !== void 0 ? _window$Pelcro$user$r9 : false;
|
|
8906
8906
|
return window.Pelcro.user.isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified;
|
|
8907
8907
|
}
|
|
8908
|
+
function notifyBugsnag(callback, startOptions) {
|
|
8909
|
+
if (!window.Bugsnag && !document.querySelector('script[src="https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js"]')) {
|
|
8910
|
+
//load bugsnag CDN
|
|
8911
|
+
window.Pelcro.helpers.loadSDK("https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js", "bugsnag-cdn");
|
|
8912
|
+
document.querySelector('script[src="https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js"]').addEventListener("load", () => {
|
|
8913
|
+
Bugsnag.start({
|
|
8914
|
+
apiKey: "e8f6852b322540e8c25386048b99ab01",
|
|
8915
|
+
autoDetectErrors: false,
|
|
8916
|
+
// enabledReleaseStages: ["development"],
|
|
8917
|
+
redactedKeys: ["security_key", "password", "password_confirmation", "auth_token", "token"],
|
|
8918
|
+
...startOptions
|
|
8919
|
+
});
|
|
8920
|
+
callback();
|
|
8921
|
+
});
|
|
8922
|
+
return;
|
|
8923
|
+
}
|
|
8924
|
+
callback();
|
|
8925
|
+
}
|
|
8908
8926
|
|
|
8909
8927
|
const resources = {
|
|
8910
8928
|
en: {
|
|
@@ -11141,6 +11159,18 @@ const initSubscriptionFromURL = () => {
|
|
|
11141
11159
|
var _selectedProduct$plan;
|
|
11142
11160
|
const productsList = window.Pelcro.product.list();
|
|
11143
11161
|
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
|
+
});
|
|
11144
11174
|
return;
|
|
11145
11175
|
}
|
|
11146
11176
|
const [productId, planId, isGiftParam] = [window.Pelcro.helpers.getURLParameter("product_id"), window.Pelcro.helpers.getURLParameter("plan_id"), window.Pelcro.helpers.getURLParameter("is_gift")];
|
|
@@ -13961,7 +13991,18 @@ class SelectModal extends React.Component {
|
|
|
13961
13991
|
this.props.setView('register');
|
|
13962
13992
|
}
|
|
13963
13993
|
document.addEventListener("keydown", this.handleSubmit);
|
|
13964
|
-
|
|
13994
|
+
notifyBugsnag(() => {
|
|
13995
|
+
Bugsnag.notify("SelectModalMounted", event => {
|
|
13996
|
+
var _window$Pelcro, _window$Pelcro$site, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$uiSet, _window$Pelcro4, _window$Pelcro5, _window$Pelcro5$uiSet;
|
|
13997
|
+
event.addMetadata("MetaData", {
|
|
13998
|
+
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(),
|
|
13999
|
+
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(),
|
|
14000
|
+
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,
|
|
14001
|
+
environment: (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : _window$Pelcro4.environment,
|
|
14002
|
+
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
|
|
14003
|
+
});
|
|
14004
|
+
});
|
|
14005
|
+
});
|
|
13965
14006
|
});
|
|
13966
14007
|
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
13967
14008
|
document.removeEventListener("keydown", this.handleSubmit);
|
package/dist/index.esm.js
CHANGED
|
@@ -8875,6 +8875,24 @@ function userMustVerifyEmail() {
|
|
|
8875
8875
|
const isUserEmailVerified = (_window$Pelcro$user$r9 = (_window$Pelcro$user$r10 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r10 === void 0 ? void 0 : _window$Pelcro$user$r10.email_confirm) !== null && _window$Pelcro$user$r9 !== void 0 ? _window$Pelcro$user$r9 : false;
|
|
8876
8876
|
return window.Pelcro.user.isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified;
|
|
8877
8877
|
}
|
|
8878
|
+
function notifyBugsnag(callback, startOptions) {
|
|
8879
|
+
if (!window.Bugsnag && !document.querySelector('script[src="https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js"]')) {
|
|
8880
|
+
//load bugsnag CDN
|
|
8881
|
+
window.Pelcro.helpers.loadSDK("https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js", "bugsnag-cdn");
|
|
8882
|
+
document.querySelector('script[src="https://d2wy8f7a9ursnm.cloudfront.net/v7/bugsnag.min.js"]').addEventListener("load", () => {
|
|
8883
|
+
Bugsnag.start({
|
|
8884
|
+
apiKey: "e8f6852b322540e8c25386048b99ab01",
|
|
8885
|
+
autoDetectErrors: false,
|
|
8886
|
+
// enabledReleaseStages: ["development"],
|
|
8887
|
+
redactedKeys: ["security_key", "password", "password_confirmation", "auth_token", "token"],
|
|
8888
|
+
...startOptions
|
|
8889
|
+
});
|
|
8890
|
+
callback();
|
|
8891
|
+
});
|
|
8892
|
+
return;
|
|
8893
|
+
}
|
|
8894
|
+
callback();
|
|
8895
|
+
}
|
|
8878
8896
|
|
|
8879
8897
|
const resources = {
|
|
8880
8898
|
en: {
|
|
@@ -11111,6 +11129,18 @@ const initSubscriptionFromURL = () => {
|
|
|
11111
11129
|
var _selectedProduct$plan;
|
|
11112
11130
|
const productsList = window.Pelcro.product.list();
|
|
11113
11131
|
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
|
+
});
|
|
11114
11144
|
return;
|
|
11115
11145
|
}
|
|
11116
11146
|
const [productId, planId, isGiftParam] = [window.Pelcro.helpers.getURLParameter("product_id"), window.Pelcro.helpers.getURLParameter("plan_id"), window.Pelcro.helpers.getURLParameter("is_gift")];
|
|
@@ -13931,7 +13961,18 @@ class SelectModal extends Component {
|
|
|
13931
13961
|
this.props.setView('register');
|
|
13932
13962
|
}
|
|
13933
13963
|
document.addEventListener("keydown", this.handleSubmit);
|
|
13934
|
-
|
|
13964
|
+
notifyBugsnag(() => {
|
|
13965
|
+
Bugsnag.notify("SelectModalMounted", event => {
|
|
13966
|
+
var _window$Pelcro, _window$Pelcro$site, _window$Pelcro2, _window$Pelcro2$user, _window$Pelcro3, _window$Pelcro3$uiSet, _window$Pelcro4, _window$Pelcro5, _window$Pelcro5$uiSet;
|
|
13967
|
+
event.addMetadata("MetaData", {
|
|
13968
|
+
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(),
|
|
13969
|
+
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(),
|
|
13970
|
+
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,
|
|
13971
|
+
environment: (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : _window$Pelcro4.environment,
|
|
13972
|
+
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
|
|
13973
|
+
});
|
|
13974
|
+
});
|
|
13975
|
+
});
|
|
13935
13976
|
});
|
|
13936
13977
|
_defineProperty$3(this, "componentWillUnmount", () => {
|
|
13937
13978
|
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.19.0-beta.
|
|
4
|
+
"version": "3.19.0-beta.14",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
@@ -100,7 +100,6 @@
|
|
|
100
100
|
"webpack-dev-server": "^3.11.2"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@bugsnag/js": "^7.20.0",
|
|
104
103
|
"@headlessui/react": "^0.3.0",
|
|
105
104
|
"@stripe/stripe-js": "^1.21.1",
|
|
106
105
|
"gapi-script": "^1.2.0",
|