@frontegg/js 7.107.0-alpha.2 → 7.107.0

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.107.0-alpha.2
1
+ /** @license Frontegg v7.107.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.107.0-alpha.2
1
+ /** @license Frontegg v7.107.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/version.js CHANGED
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- cdnVersion: '7.107.0-alpha.2'
8
+ cdnVersion: '7.107.0'
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "7.107.0-alpha.2",
3
+ "version": "7.107.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
7
7
  "dependencies": {
8
8
  "@babel/runtime": "^7.18.6",
9
- "@frontegg/types": "7.107.0-alpha.2"
9
+ "@frontegg/types": "7.107.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1924,7 +1924,7 @@ __webpack_require__.r(__webpack_exports__);
1924
1924
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1925
1925
  /* harmony export */ });
1926
1926
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1927
- cdnVersion: '7.107.0-alpha.2'
1927
+ cdnVersion: '7.107.0'
1928
1928
  });
1929
1929
 
1930
1930
  /***/ }),
@@ -12621,9 +12621,13 @@ const _excluded = ["callback"],
12621
12621
  */
12622
12622
  const __securityCenterSagaWrapper = action => {
12623
12623
  return async (...args) => {
12624
- await action(...args);
12624
+ const result = await action(...args);
12625
+ if (result === false) {
12626
+ return result;
12627
+ }
12625
12628
  await actions.loadRecommendations((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.withRetryConfig)());
12626
12629
  await actions.loadInsights((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.withRetryConfig)());
12630
+ return result;
12627
12631
  };
12628
12632
  };
12629
12633
  const setRestrictionsState = state => {
@@ -12639,6 +12643,9 @@ const _excluded = ["callback"],
12639
12643
  Object.assign(store.auth.restrictionsState.countryRestrictions, state);
12640
12644
  };
12641
12645
  const loadIpRestrictions = async () => {
12646
+ if (store.auth.restrictionsState.ipRestrictions.loading) {
12647
+ return false;
12648
+ }
12642
12649
  setIpRestrictionsState({
12643
12650
  loading: true,
12644
12651
  error: null
@@ -12877,6 +12884,9 @@ const _excluded = ["callback"],
12877
12884
  }
12878
12885
  };
12879
12886
  const loadEmailDomainRestrictions = async () => {
12887
+ if (store.auth.restrictionsState.emailDomainRestrictions.loading) {
12888
+ return false;
12889
+ }
12880
12890
  setEmailDomainRestrictionsState({
12881
12891
  loading: true,
12882
12892
  error: null
@@ -13002,6 +13012,9 @@ const _excluded = ["callback"],
13002
13012
  }
13003
13013
  };
13004
13014
  const loadCountryRestrictions = async () => {
13015
+ if (store.auth.restrictionsState.countryRestrictions.loading) {
13016
+ return false;
13017
+ }
13005
13018
  setCountryRestrictionsState({
13006
13019
  loading: true,
13007
13020
  error: null
@@ -13148,17 +13161,13 @@ const _excluded = ["callback"],
13148
13161
  callback == null ? void 0 : callback(false, e);
13149
13162
  }
13150
13163
  };
13151
- const wrappedLoadIpRestrictions = __securityCenterSagaWrapper(loadIpRestrictions);
13152
13164
  const wrappedSaveIpRestriction = __securityCenterSagaWrapper(saveIpRestriction);
13153
13165
  const wrappedSaveIpRestrictionsConfig = __securityCenterSagaWrapper(saveIpRestrictionsConfig);
13154
13166
  const wrappedDeleteIpRestriction = __securityCenterSagaWrapper(deleteIpRestriction);
13155
- const wrappedCheckIfUserIpValid = __securityCenterSagaWrapper(checkIfUserIpValid);
13156
13167
  const wrappedAddCurrentUserIpAndActivate = __securityCenterSagaWrapper(addCurrentUserIpAndActivate);
13157
- const wrappedLoadEmailDomainRestrictions = __securityCenterSagaWrapper(loadEmailDomainRestrictions);
13158
13168
  const wrappedSaveEmailDomainRestriction = __securityCenterSagaWrapper(saveEmailDomainRestriction);
13159
13169
  const wrappedSaveEmailDomainRestrictionsConfig = __securityCenterSagaWrapper(saveEmailDomainRestrictionsConfig);
13160
13170
  const wrappedDeleteEmailDomainRestriction = __securityCenterSagaWrapper(deleteEmailDomainRestriction);
13161
- const wrappedLoadCountryRestrictions = __securityCenterSagaWrapper(loadCountryRestrictions);
13162
13171
  const wrappedSaveCountryRestrictionsConfig = __securityCenterSagaWrapper(saveCountryRestrictionsConfig);
13163
13172
  const wrappedSaveCountryRestrictions = __securityCenterSagaWrapper(saveCountryRestrictions);
13164
13173
  const wrappedAddCurrentUserCountryAndActivate = __securityCenterSagaWrapper(addCurrentUserCountryAndActivate);
@@ -13170,17 +13179,17 @@ const _excluded = ["callback"],
13170
13179
  setCountryRestrictionsState,
13171
13180
  __securityCenterSagaWrapper,
13172
13181
  // actions
13173
- loadIpRestrictions: wrappedLoadIpRestrictions,
13182
+ loadIpRestrictions,
13174
13183
  saveIpRestriction: wrappedSaveIpRestriction,
13175
13184
  saveIpRestrictionsConfig: wrappedSaveIpRestrictionsConfig,
13176
13185
  deleteIpRestriction: wrappedDeleteIpRestriction,
13177
- checkIfUserIpValid: wrappedCheckIfUserIpValid,
13186
+ checkIfUserIpValid,
13178
13187
  addCurrentUserIpAndActivate: wrappedAddCurrentUserIpAndActivate,
13179
- loadEmailDomainRestrictions: wrappedLoadEmailDomainRestrictions,
13188
+ loadEmailDomainRestrictions,
13180
13189
  saveEmailDomainRestriction: wrappedSaveEmailDomainRestriction,
13181
13190
  saveEmailDomainRestrictionsConfig: wrappedSaveEmailDomainRestrictionsConfig,
13182
13191
  deleteEmailDomainRestriction: wrappedDeleteEmailDomainRestriction,
13183
- loadCountryRestrictions: wrappedLoadCountryRestrictions,
13192
+ loadCountryRestrictions,
13184
13193
  saveCountryRestrictionsConfig: wrappedSaveCountryRestrictionsConfig,
13185
13194
  saveCountryRestrictions: wrappedSaveCountryRestrictions,
13186
13195
  addCurrentUserCountryAndActivate: wrappedAddCurrentUserCountryAndActivate
@@ -20242,7 +20251,7 @@ __webpack_require__.r(__webpack_exports__);
20242
20251
  /* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
20243
20252
  /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
20244
20253
  /* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
20245
- /** @license Frontegg v7.107.0-alpha.2
20254
+ /** @license Frontegg v7.107.0
20246
20255
  *
20247
20256
  * This source code is licensed under the MIT license found in the
20248
20257
  * LICENSE file in the root directory of this source tree.
@@ -22172,6 +22181,7 @@ const _excluded = ["callback"],
22172
22181
  },
22173
22182
  loading: false
22174
22183
  });
22184
+ return undefined;
22175
22185
  };
22176
22186
  mockedActions.loadEmailDomainRestrictions = async () => {
22177
22187
  mockedActions.setEmailDomainRestrictionsState({
@@ -22193,6 +22203,7 @@ const _excluded = ["callback"],
22193
22203
  }
22194
22204
  }
22195
22205
  });
22206
+ return undefined;
22196
22207
  };
22197
22208
  mockedActions.loadCountryRestrictions = async () => {
22198
22209
  mockedActions.setCountryRestrictionsState({
@@ -22214,6 +22225,7 @@ const _excluded = ["callback"],
22214
22225
  }
22215
22226
  }
22216
22227
  });
22228
+ return undefined;
22217
22229
  };
22218
22230
  mockedActions.saveIpRestriction = async payload => {
22219
22231
  var _ipRestrictionsState$, _ipRestrictionsState$2, _newRestriction$isAct;
@@ -30763,7 +30775,7 @@ __webpack_require__.r(__webpack_exports__);
30763
30775
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
30764
30776
  /* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
30765
30777
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
30766
- /** @license Frontegg v7.107.0-alpha.2
30778
+ /** @license Frontegg v7.107.0
30767
30779
  *
30768
30780
  * This source code is licensed under the MIT license found in the
30769
30781
  * LICENSE file in the root directory of this source tree.
@@ -33560,7 +33572,7 @@ __webpack_require__.r(__webpack_exports__);
33560
33572
  /* harmony export */ });
33561
33573
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
33562
33574
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
33563
- /** @license Frontegg v7.107.0-alpha.2
33575
+ /** @license Frontegg v7.107.0
33564
33576
  *
33565
33577
  * This source code is licensed under the MIT license found in the
33566
33578
  * LICENSE file in the root directory of this source tree.