@pelcro/react-pelcro-js 3.19.0-beta.14 → 3.19.0-beta.16

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 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")];
@@ -12080,7 +12069,7 @@ function Email(_ref) {
12080
12069
  }
12081
12070
  }, []);
12082
12071
  const isEmailValid = email => {
12083
- const re = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?/;
12072
+ const re = /[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?/;
12084
12073
  return re.test(email);
12085
12074
  };
12086
12075
  return /*#__PURE__*/React__default['default'].createElement(Input, Object.assign({
@@ -13960,6 +13949,7 @@ class SelectModal extends React.Component {
13960
13949
  constructor(props) {
13961
13950
  super(props);
13962
13951
  _defineProperty$3(this, "componentDidMount", () => {
13952
+ var _window$Pelcro$enviro, _window$Pelcro, _window$Pelcro$enviro2;
13963
13953
  if (this.props.product) {
13964
13954
  const {
13965
13955
  product
@@ -13991,18 +13981,20 @@ class SelectModal extends React.Component {
13991
13981
  this.props.setView('register');
13992
13982
  }
13993
13983
  document.addEventListener("keydown", this.handleSubmit);
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
13984
+ if (document.querySelector("#pelcro-selection-modal").offsetHeight < ((_window$Pelcro$enviro = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$enviro2 = _window$Pelcro.environment) === null || _window$Pelcro$enviro2 === void 0 ? void 0 : _window$Pelcro$enviro2.bugsnagSelectModalHeight) !== null && _window$Pelcro$enviro !== void 0 ? _window$Pelcro$enviro : 60)) {
13985
+ notifyBugsnag(() => {
13986
+ Bugsnag.notify("SelectModal - No data viewed", event => {
13987
+ var _window$Pelcro2, _window$Pelcro2$site, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$uiSet, _window$Pelcro5;
13988
+ event.addMetadata("MetaData", {
13989
+ site: (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$site = _window$Pelcro2.site) === null || _window$Pelcro2$site === void 0 ? void 0 : _window$Pelcro2$site.read(),
13990
+ user: (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$user = _window$Pelcro3.user) === null || _window$Pelcro3$user === void 0 ? void 0 : _window$Pelcro3$user.read(),
13991
+ uiVersion: (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : (_window$Pelcro4$uiSet = _window$Pelcro4.uiSettings) === null || _window$Pelcro4$uiSet === void 0 ? void 0 : _window$Pelcro4$uiSet.uiVersion,
13992
+ environment: (_window$Pelcro5 = window.Pelcro) === null || _window$Pelcro5 === void 0 ? void 0 : _window$Pelcro5.environment
13993
+ });
14003
13994
  });
14004
13995
  });
14005
- });
13996
+ console.log("bugsnag Triggered");
13997
+ }
14006
13998
  });
14007
13999
  _defineProperty$3(this, "componentWillUnmount", () => {
14008
14000
  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")];
@@ -12050,7 +12039,7 @@ function Email(_ref) {
12050
12039
  }
12051
12040
  }, []);
12052
12041
  const isEmailValid = email => {
12053
- const re = /[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?/;
12042
+ const re = /[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-Za-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?\.)+[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?/;
12054
12043
  return re.test(email);
12055
12044
  };
12056
12045
  return /*#__PURE__*/React__default.createElement(Input, Object.assign({
@@ -13930,6 +13919,7 @@ class SelectModal extends Component {
13930
13919
  constructor(props) {
13931
13920
  super(props);
13932
13921
  _defineProperty$3(this, "componentDidMount", () => {
13922
+ var _window$Pelcro$enviro, _window$Pelcro, _window$Pelcro$enviro2;
13933
13923
  if (this.props.product) {
13934
13924
  const {
13935
13925
  product
@@ -13961,18 +13951,20 @@ class SelectModal extends Component {
13961
13951
  this.props.setView('register');
13962
13952
  }
13963
13953
  document.addEventListener("keydown", this.handleSubmit);
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
13954
+ if (document.querySelector("#pelcro-selection-modal").offsetHeight < ((_window$Pelcro$enviro = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$enviro2 = _window$Pelcro.environment) === null || _window$Pelcro$enviro2 === void 0 ? void 0 : _window$Pelcro$enviro2.bugsnagSelectModalHeight) !== null && _window$Pelcro$enviro !== void 0 ? _window$Pelcro$enviro : 60)) {
13955
+ notifyBugsnag(() => {
13956
+ Bugsnag.notify("SelectModal - No data viewed", event => {
13957
+ var _window$Pelcro2, _window$Pelcro2$site, _window$Pelcro3, _window$Pelcro3$user, _window$Pelcro4, _window$Pelcro4$uiSet, _window$Pelcro5;
13958
+ event.addMetadata("MetaData", {
13959
+ site: (_window$Pelcro2 = window.Pelcro) === null || _window$Pelcro2 === void 0 ? void 0 : (_window$Pelcro2$site = _window$Pelcro2.site) === null || _window$Pelcro2$site === void 0 ? void 0 : _window$Pelcro2$site.read(),
13960
+ user: (_window$Pelcro3 = window.Pelcro) === null || _window$Pelcro3 === void 0 ? void 0 : (_window$Pelcro3$user = _window$Pelcro3.user) === null || _window$Pelcro3$user === void 0 ? void 0 : _window$Pelcro3$user.read(),
13961
+ uiVersion: (_window$Pelcro4 = window.Pelcro) === null || _window$Pelcro4 === void 0 ? void 0 : (_window$Pelcro4$uiSet = _window$Pelcro4.uiSettings) === null || _window$Pelcro4$uiSet === void 0 ? void 0 : _window$Pelcro4$uiSet.uiVersion,
13962
+ environment: (_window$Pelcro5 = window.Pelcro) === null || _window$Pelcro5 === void 0 ? void 0 : _window$Pelcro5.environment
13963
+ });
13973
13964
  });
13974
13965
  });
13975
- });
13966
+ console.log("bugsnag Triggered");
13967
+ }
13976
13968
  });
13977
13969
  _defineProperty$3(this, "componentWillUnmount", () => {
13978
13970
  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.14",
4
+ "version": "3.19.0-beta.16",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",