@frontegg/js 7.40.0 → 7.41.0-alpha.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.
@@ -16,6 +16,7 @@ export declare class FronteggApp {
16
16
  options: FronteggAppOptions;
17
17
  loading: boolean;
18
18
  cdnUrl: string;
19
+ assetsUrl: string;
19
20
  customElementName: string;
20
21
  adminPortalEl?: HTMLElement;
21
22
  adminPortalRenderer?: any;
@@ -4,7 +4,7 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
4
4
  import _createClass from "@babel/runtime/helpers/esm/createClass";
5
5
  import _regeneratorRuntime from "@babel/runtime/regenerator";
6
6
  import * as FronteggReduxStore from '@frontegg/redux-store';
7
- import { createStore, getFeatureEntitlements as _getFeatureEntitlements, getPermissionEntitlements as _getPermissionEntitlements, isSteppedUp as _isSteppedUp, redirectByStepUpUrl, retryIfNeeded, DEFAULT_RETRY_CONFIG, errorTraceId, REQUEST_NAME } from '@frontegg/redux-store';
7
+ import { createStore, DEFAULT_RETRY_CONFIG, errorTraceId, getFeatureEntitlements as _getFeatureEntitlements, getPermissionEntitlements as _getPermissionEntitlements, isSteppedUp as _isSteppedUp, redirectByStepUpUrl, REQUEST_NAME, retryIfNeeded } from '@frontegg/redux-store';
8
8
  import * as FronteggTypes from '@frontegg/types';
9
9
  import { Metadata } from '@frontegg/types';
10
10
  import { formatName, restoreSearchParams } from '../utils';
@@ -27,6 +27,7 @@ export var FronteggApp = /*#__PURE__*/function () {
27
27
  this.options = void 0;
28
28
  this.loading = true;
29
29
  this.cdnUrl = "https://assets.frontegg.com/admin-box/".concat(versions.cdnVersion);
30
+ this.assetsUrl = "https://adminBox.frontegg.com/admin-box/".concat(versions.cdnVersion);
30
31
  this.customElementName = '';
31
32
  this.adminPortalEl = void 0;
32
33
  this.adminPortalRenderer = void 0;
@@ -198,6 +199,11 @@ export var FronteggApp = /*#__PURE__*/function () {
198
199
  if (this.options.cdnUrl) {
199
200
  this.cdnUrl = this.options.cdnUrl;
200
201
  }
202
+ if (this.options.assetsUrl) {
203
+ this.assetsUrl = this.options.assetsUrl;
204
+ }
205
+ ContextHolder["for"](this.name).setCdnUrl(this.cdnUrl);
206
+ ContextHolder["for"](this.name).setAssetsUrl(this.assetsUrl);
201
207
  this.customElementName = customElementName;
202
208
  var authOptions = this.options.authOptions ? Object.assign({}, this.options.authOptions, {
203
209
  hostedLoginBox: this.options.hostedLoginBox
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.40.0
1
+ /** @license Frontegg v7.41.0-alpha.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.
@@ -34,6 +34,7 @@ var FronteggApp = /*#__PURE__*/function () {
34
34
  this.options = void 0;
35
35
  this.loading = true;
36
36
  this.cdnUrl = "https://assets.frontegg.com/admin-box/".concat(_version["default"].cdnVersion);
37
+ this.assetsUrl = "https://adminBox.frontegg.com/admin-box/".concat(_version["default"].cdnVersion);
37
38
  this.customElementName = '';
38
39
  this.adminPortalEl = void 0;
39
40
  this.adminPortalRenderer = void 0;
@@ -205,6 +206,11 @@ var FronteggApp = /*#__PURE__*/function () {
205
206
  if (this.options.cdnUrl) {
206
207
  this.cdnUrl = this.options.cdnUrl;
207
208
  }
209
+ if (this.options.assetsUrl) {
210
+ this.assetsUrl = this.options.assetsUrl;
211
+ }
212
+ FronteggRestApi.ContextHolder["for"](this.name).setCdnUrl(this.cdnUrl);
213
+ FronteggRestApi.ContextHolder["for"](this.name).setAssetsUrl(this.assetsUrl);
208
214
  this.customElementName = customElementName;
209
215
  var authOptions = this.options.authOptions ? Object.assign({}, this.options.authOptions, {
210
216
  hostedLoginBox: this.options.hostedLoginBox
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.40.0
1
+ /** @license Frontegg v7.41.0-alpha.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.40.0'
8
+ cdnVersion: '7.41.0-alpha.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.40.0",
3
+ "version": "7.41.0-alpha.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.40.0"
9
+ "@frontegg/types": "7.41.0-alpha.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -324,7 +324,7 @@ __webpack_require__.r(__webpack_exports__);
324
324
  /* harmony import */ var _frontegg_redux_store__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @frontegg/redux-store */ "../../dist/@frontegg/redux-store/helpers/common.js");
325
325
  /* harmony import */ var _frontegg_redux_store__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @frontegg/redux-store */ "../../dist/@frontegg/redux-store/constants.js");
326
326
  /* harmony import */ var _frontegg_redux_store__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @frontegg/redux-store */ "../../dist/@frontegg/redux-store/auth/interfaces.js");
327
- /* harmony import */ var _frontegg_redux_store__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @frontegg/redux-store */ "../../dist/@frontegg/redux-store/toolkit/store.js");
327
+ /* harmony import */ var _frontegg_redux_store__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @frontegg/redux-store */ "../../dist/@frontegg/redux-store/toolkit/store.js");
328
328
  /* harmony import */ var _frontegg_redux_store__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! @frontegg/redux-store */ "../../dist/@frontegg/redux-store/auth/Entitlements/helpers.js");
329
329
  /* harmony import */ var _frontegg_redux_store__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! @frontegg/redux-store */ "../../dist/@frontegg/redux-store/auth/StepUpState/helpers.js");
330
330
  /* harmony import */ var _frontegg_types__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @frontegg/types */ "../../dist/@frontegg/types/index.js");
@@ -334,7 +334,7 @@ __webpack_require__.r(__webpack_exports__);
334
334
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/feature-flags/index.js");
335
335
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/index.js");
336
336
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/FetchClient.js");
337
- /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/ContextHolder/index.js");
337
+ /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/ContextHolder/index.js");
338
338
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/interfaces.js");
339
339
  /* harmony import */ var _version__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../version */ "../../dist/@frontegg/js/version.js");
340
340
  /* harmony import */ var _utils_mockFlagsList__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/mockFlagsList */ "../../dist/@frontegg/js/utils/mockFlagsList.js");
@@ -368,6 +368,7 @@ var FronteggApp = /*#__PURE__*/function () {
368
368
  this.options = void 0;
369
369
  this.loading = true;
370
370
  this.cdnUrl = "https://assets.frontegg.com/admin-box/".concat(_version__WEBPACK_IMPORTED_MODULE_7__["default"].cdnVersion);
371
+ this.assetsUrl = "https://adminBox.frontegg.com/admin-box/".concat(_version__WEBPACK_IMPORTED_MODULE_7__["default"].cdnVersion);
371
372
  this.customElementName = '';
372
373
  this.adminPortalEl = void 0;
373
374
  this.adminPortalRenderer = void 0;
@@ -539,6 +540,11 @@ var FronteggApp = /*#__PURE__*/function () {
539
540
  if (this.options.cdnUrl) {
540
541
  this.cdnUrl = this.options.cdnUrl;
541
542
  }
543
+ if (this.options.assetsUrl) {
544
+ this.assetsUrl = this.options.assetsUrl;
545
+ }
546
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](this.name).setCdnUrl(this.cdnUrl);
547
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](this.name).setAssetsUrl(this.assetsUrl);
542
548
  this.customElementName = customElementName;
543
549
  var authOptions = this.options.authOptions ? Object.assign({}, this.options.authOptions, {
544
550
  hostedLoginBox: this.options.hostedLoginBox
@@ -554,7 +560,7 @@ var FronteggApp = /*#__PURE__*/function () {
554
560
  }
555
561
  } else {
556
562
  var _this$options$authOpt4, _this$options$auditsO;
557
- this.store = (0,_frontegg_redux_store__WEBPACK_IMPORTED_MODULE_17__.createStore)({
563
+ this.store = (0,_frontegg_redux_store__WEBPACK_IMPORTED_MODULE_18__.createStore)({
558
564
  context: this.options.contextOptions,
559
565
  name: this.name,
560
566
  builderMode: this.options.builderMode,
@@ -568,7 +574,7 @@ var FronteggApp = /*#__PURE__*/function () {
568
574
  });
569
575
  }
570
576
  _AppHolder__WEBPACK_IMPORTED_MODULE_6__.AppHolder.setInstance(appName, this);
571
- var contextHolder = _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.ContextHolder["for"](appName);
577
+ var contextHolder = _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](appName);
572
578
  contextHolder.setAppName(appName);
573
579
  this.setEntitlementsOptions(_options.entitlementsOptions);
574
580
  this.setSessionContext({
@@ -589,12 +595,12 @@ var FronteggApp = /*#__PURE__*/function () {
589
595
  (0,_babel_runtime_helpers_esm_createClass__WEBPACK_IMPORTED_MODULE_3__["default"])(FronteggApp, [{
590
596
  key: "setEntitlementsOptions",
591
597
  value: function setEntitlementsOptions(entitlementsOptions) {
592
- _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.ContextHolder["for"](this.name).setEntitlementsOptions(Object.assign({}, entitlementsOptions));
598
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](this.name).setEntitlementsOptions(Object.assign({}, entitlementsOptions));
593
599
  }
594
600
  }, {
595
601
  key: "setSessionContext",
596
602
  value: function setSessionContext(sessionContext) {
597
- _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.ContextHolder["for"](this.name).setSessionContext(Object.assign({}, sessionContext));
603
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](this.name).setSessionContext(Object.assign({}, sessionContext));
598
604
  }
599
605
  }, {
600
606
  key: "dispatchErrorByRequestName",
@@ -800,7 +806,7 @@ var FronteggApp = /*#__PURE__*/function () {
800
806
  isMultiApp: false
801
807
  }, isMultiApp = _ref4.isMultiApp;
802
808
  _this$queryFeatureFla = this.queryFeatureFlags(['multi-apps-admin-portal']), _this$queryFeatureFla2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$queryFeatureFla, 1), multiAppsFlag = _this$queryFeatureFla2[0];
803
- _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.ContextHolder["for"](this.name).setRequestSource(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_21__.RequestSource.AdminPortal);
809
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](this.name).setRequestSource(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_21__.RequestSource.AdminPortal);
804
810
  _context6.next = 5;
805
811
  return this.loadScript('FronteggAdminPortal');
806
812
  case 5:
@@ -848,7 +854,7 @@ var FronteggApp = /*#__PURE__*/function () {
848
854
  (_this$adminPortalRend = this.adminPortalRenderer) == null ? void 0 : _this$adminPortalRend.unmount();
849
855
  // unmount is removing url search params, therefore we need to restore them after unmount
850
856
  (0,_utils__WEBPACK_IMPORTED_MODULE_5__.restoreSearchParams)(searchParams);
851
- _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.ContextHolder["for"](this.name).setRequestSource(null);
857
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](this.name).setRequestSource(null);
852
858
  } catch (e) {
853
859
  console.error('Failed to unmount admin portal', e);
854
860
  }
@@ -1619,7 +1625,7 @@ __webpack_require__.r(__webpack_exports__);
1619
1625
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1620
1626
  /* harmony export */ });
1621
1627
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1622
- cdnVersion: '7.40.0'
1628
+ cdnVersion: '7.41.0-alpha.0'
1623
1629
  });
1624
1630
 
1625
1631
  /***/ }),
@@ -5276,23 +5282,23 @@ __webpack_require__.r(__webpack_exports__);
5276
5282
  /* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../interfaces */ "../../dist/@frontegg/redux-store/auth/LoginState/interfaces.js");
5277
5283
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
5278
5284
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/handlers.js");
5285
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/gtm.js");
5279
5286
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/encoders.js");
5280
5287
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/converters.js");
5281
5288
  /* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../state */ "../../dist/@frontegg/redux-store/auth/LoginState/state.js");
5282
5289
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../helpers */ "../../dist/@frontegg/redux-store/auth/LoginState/helpers.js");
5283
5290
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/ContextHolder/index.js");
5284
5291
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/enums.js");
5292
+ /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/utils.js");
5285
5293
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/interfaces.js");
5286
5294
  /* harmony import */ var _hostedLoginAuthorize_actions__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./hostedLoginAuthorize.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/hostedLoginAuthorize.actions.js");
5287
5295
  /* harmony import */ var _toolkit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../toolkit */ "../../dist/@frontegg/redux-store/auth/Entitlements/helpers.js");
5288
5296
  /* harmony import */ var _toolkit__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../toolkit */ "../../dist/@frontegg/redux-store/toolkit/FronteggNativeModule.js");
5289
5297
  /* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../interfaces */ "../../dist/@frontegg/redux-store/auth/interfaces.js");
5290
5298
  /* harmony import */ var _consts__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../consts */ "../../dist/@frontegg/redux-store/auth/LoginState/consts.js");
5291
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/gtm.js");
5292
5299
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/auth/helpers.js");
5293
5300
  /* harmony import */ var _MfaState_interfaces__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../MfaState/interfaces */ "../../dist/@frontegg/redux-store/auth/MfaState/interfaces.js");
5294
5301
  /* harmony import */ var _SSOState_interfaces__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../SSOState/interfaces */ "../../dist/@frontegg/redux-store/auth/SSOState/interfaces.js");
5295
- /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/utils.js");
5296
5302
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../constants */ "../../dist/@frontegg/redux-store/constants.js");
5297
5303
 
5298
5304
 
@@ -5329,8 +5335,6 @@ const _excluded = ["callback", "error"],
5329
5335
 
5330
5336
 
5331
5337
 
5332
-
5333
-
5334
5338
 
5335
5339
 
5336
5340
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, sharedActions) => {
@@ -6278,14 +6282,29 @@ const _excluded = ["callback", "error"],
6278
6282
  callback
6279
6283
  } = payload;
6280
6284
  try {
6285
+ actions.setAuthState({
6286
+ userIpData: {
6287
+ loading: true
6288
+ }
6289
+ });
6281
6290
  const {
6282
- ip
6291
+ ip,
6292
+ country_code
6283
6293
  } = await api.metadata.getCurrentUserIpMetadata();
6284
6294
  actions.setAuthState({
6285
- userIp: ip
6295
+ userIpData: {
6296
+ ip,
6297
+ countryCode: country_code,
6298
+ loading: false
6299
+ }
6286
6300
  });
6287
6301
  callback == null ? void 0 : callback(true);
6288
6302
  } catch (e) {
6303
+ actions.setAuthState({
6304
+ userIpData: {
6305
+ loading: false
6306
+ }
6307
+ });
6289
6308
  callback == null ? void 0 : callback(false);
6290
6309
  }
6291
6310
  };
@@ -11688,8 +11707,8 @@ const _excluded = ["callback"],
11688
11707
  error: null
11689
11708
  });
11690
11709
  try {
11691
- var _store$auth$userIp;
11692
- const userIp = (_store$auth$userIp = store.auth.userIp) != null ? _store$auth$userIp : '';
11710
+ var _store$auth$userIpDat, _store$auth$userIpDat2;
11711
+ const userIp = (_store$auth$userIpDat = (_store$auth$userIpDat2 = store.auth.userIpData) == null ? void 0 : _store$auth$userIpDat2.ip) != null ? _store$auth$userIpDat : '';
11693
11712
  await Promise.all([api.auth.createIPRestriction({
11694
11713
  ip: userIp,
11695
11714
  isActive: true,
@@ -15818,23 +15837,6 @@ __webpack_require__.r(__webpack_exports__);
15818
15837
  /* harmony export */ });
15819
15838
  /* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../node_modules/@babel/runtime/helpers/esm/extends.js");
15820
15839
  /* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
15821
- /* harmony import */ var _AcceptInvitationState_interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AcceptInvitationState/interfaces */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/interfaces.js");
15822
- /* harmony import */ var _ActivateAccountState_interfaces__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ActivateAccountState/interfaces */ "../../dist/@frontegg/redux-store/auth/ActivateAccountState/interfaces.js");
15823
- /* harmony import */ var _ApiTokensState_interfaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ApiTokensState/interfaces */ "../../dist/@frontegg/redux-store/auth/ApiTokensState/interfaces.js");
15824
- /* harmony import */ var _Entitlements_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Entitlements/helpers */ "../../dist/@frontegg/redux-store/auth/Entitlements/helpers.js");
15825
- /* harmony import */ var _ForgotPasswordState_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ForgotPasswordState/interfaces */ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/interfaces.js");
15826
- /* harmony import */ var _GroupsState_interfaces__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./GroupsState/interfaces */ "../../dist/@frontegg/redux-store/auth/GroupsState/interfaces.js");
15827
- /* harmony import */ var _ImpersonateState_interfaces__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ImpersonateState/interfaces */ "../../dist/@frontegg/redux-store/auth/ImpersonateState/interfaces.js");
15828
- /* harmony import */ var _LoginState_interfaces__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./LoginState/interfaces */ "../../dist/@frontegg/redux-store/auth/LoginState/interfaces.js");
15829
- /* harmony import */ var _MfaState_interfaces__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./MfaState/interfaces */ "../../dist/@frontegg/redux-store/auth/MfaState/interfaces.js");
15830
- /* harmony import */ var _MSP_interfaces__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./MSP/interfaces */ "../../dist/@frontegg/redux-store/auth/MSP/interfaces/index.js");
15831
- /* harmony import */ var _ResetPhoneNumberState_interfaces__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ResetPhoneNumberState/interfaces */ "../../dist/@frontegg/redux-store/auth/ResetPhoneNumberState/interfaces.js");
15832
- /* harmony import */ var _RolesState_interfaces__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./RolesState/interfaces */ "../../dist/@frontegg/redux-store/auth/RolesState/interfaces.js");
15833
- /* harmony import */ var _Security_SecurityCenterState_interfaces__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Security/SecurityCenterState/interfaces */ "../../dist/@frontegg/redux-store/auth/Security/SecurityCenterState/interfaces.js");
15834
- /* harmony import */ var _SignUpState_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./SignUpState/interfaces */ "../../dist/@frontegg/redux-store/auth/SignUpState/interfaces.js");
15835
- /* harmony import */ var _SSOState_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SSOState/interfaces */ "../../dist/@frontegg/redux-store/auth/SSOState/interfaces.js");
15836
- /* harmony import */ var _TeamState_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./TeamState/interfaces */ "../../dist/@frontegg/redux-store/auth/TeamState/interfaces.js");
15837
- /* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./interfaces */ "../../dist/@frontegg/redux-store/auth/interfaces.js");
15838
15840
  /* harmony import */ var _AcceptInvitationState__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./AcceptInvitationState */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/state.js");
15839
15841
  /* harmony import */ var _AcceptInvitationState__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./AcceptInvitationState */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/actions.js");
15840
15842
  /* harmony import */ var _AccountSettingsState__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./AccountSettingsState */ "../../dist/@frontegg/redux-store/auth/AccountSettingsState/state.js");
@@ -15862,8 +15864,8 @@ __webpack_require__.r(__webpack_exports__);
15862
15864
  /* harmony import */ var _MfaState__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./MfaState */ "../../dist/@frontegg/redux-store/auth/MfaState/state.js");
15863
15865
  /* harmony import */ var _MfaState__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./MfaState */ "../../dist/@frontegg/redux-store/auth/MfaState/actions.js");
15864
15866
  /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/state.js");
15865
- /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/actions.js");
15866
15867
  /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/dialogs/state.js");
15868
+ /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/actions.js");
15867
15869
  /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/dialogs/actions.js");
15868
15870
  /* harmony import */ var _PasskeysState__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./PasskeysState */ "../../dist/@frontegg/redux-store/auth/PasskeysState/state.js");
15869
15871
  /* harmony import */ var _PasskeysState__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./PasskeysState */ "../../dist/@frontegg/redux-store/auth/PasskeysState/actions.js");
@@ -15903,6 +15905,23 @@ __webpack_require__.r(__webpack_exports__);
15903
15905
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
15904
15906
  /* harmony import */ var _Entitlements__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./Entitlements */ "../../dist/@frontegg/redux-store/auth/Entitlements/actions.js");
15905
15907
  /* harmony import */ var _toolkit_proxy__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../toolkit/proxy */ "../../dist/@frontegg/redux-store/toolkit/proxy.js");
15908
+ /* harmony import */ var _AcceptInvitationState_interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AcceptInvitationState/interfaces */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/interfaces.js");
15909
+ /* harmony import */ var _ActivateAccountState_interfaces__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ActivateAccountState/interfaces */ "../../dist/@frontegg/redux-store/auth/ActivateAccountState/interfaces.js");
15910
+ /* harmony import */ var _ApiTokensState_interfaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ApiTokensState/interfaces */ "../../dist/@frontegg/redux-store/auth/ApiTokensState/interfaces.js");
15911
+ /* harmony import */ var _Entitlements_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Entitlements/helpers */ "../../dist/@frontegg/redux-store/auth/Entitlements/helpers.js");
15912
+ /* harmony import */ var _ForgotPasswordState_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ForgotPasswordState/interfaces */ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/interfaces.js");
15913
+ /* harmony import */ var _GroupsState_interfaces__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./GroupsState/interfaces */ "../../dist/@frontegg/redux-store/auth/GroupsState/interfaces.js");
15914
+ /* harmony import */ var _ImpersonateState_interfaces__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ImpersonateState/interfaces */ "../../dist/@frontegg/redux-store/auth/ImpersonateState/interfaces.js");
15915
+ /* harmony import */ var _LoginState_interfaces__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./LoginState/interfaces */ "../../dist/@frontegg/redux-store/auth/LoginState/interfaces.js");
15916
+ /* harmony import */ var _MfaState_interfaces__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./MfaState/interfaces */ "../../dist/@frontegg/redux-store/auth/MfaState/interfaces.js");
15917
+ /* harmony import */ var _MSP_interfaces__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./MSP/interfaces */ "../../dist/@frontegg/redux-store/auth/MSP/interfaces/index.js");
15918
+ /* harmony import */ var _ResetPhoneNumberState_interfaces__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ResetPhoneNumberState/interfaces */ "../../dist/@frontegg/redux-store/auth/ResetPhoneNumberState/interfaces.js");
15919
+ /* harmony import */ var _RolesState_interfaces__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./RolesState/interfaces */ "../../dist/@frontegg/redux-store/auth/RolesState/interfaces.js");
15920
+ /* harmony import */ var _Security_SecurityCenterState_interfaces__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Security/SecurityCenterState/interfaces */ "../../dist/@frontegg/redux-store/auth/Security/SecurityCenterState/interfaces.js");
15921
+ /* harmony import */ var _SignUpState_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./SignUpState/interfaces */ "../../dist/@frontegg/redux-store/auth/SignUpState/interfaces.js");
15922
+ /* harmony import */ var _SSOState_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SSOState/interfaces */ "../../dist/@frontegg/redux-store/auth/SSOState/interfaces.js");
15923
+ /* harmony import */ var _TeamState_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./TeamState/interfaces */ "../../dist/@frontegg/redux-store/auth/TeamState/interfaces.js");
15924
+ /* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./interfaces */ "../../dist/@frontegg/redux-store/auth/interfaces.js");
15906
15925
 
15907
15926
 
15908
15927
  const _excluded = ["routes"],
@@ -15974,7 +15993,6 @@ const _excluded = ["routes"],
15974
15993
 
15975
15994
 
15976
15995
 
15977
-
15978
15996
 
15979
15997
 
15980
15998
  const createAuthState = _overrideState => {
@@ -15992,7 +16010,9 @@ const createAuthState = _overrideState => {
15992
16010
  user: null,
15993
16011
  error: undefined,
15994
16012
  errorByRequest: {},
15995
- userIp: undefined
16013
+ userIpData: {
16014
+ loading: false
16015
+ }
15996
16016
  }, overrideState, {
15997
16017
  // nested states
15998
16018
  acceptInvitationState: (0,_AcceptInvitationState__WEBPACK_IMPORTED_MODULE_21__["default"])(overrideState == null ? void 0 : overrideState.acceptInvitationState),
@@ -17913,7 +17933,7 @@ __webpack_require__.r(__webpack_exports__);
17913
17933
  /* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
17914
17934
  /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
17915
17935
  /* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
17916
- /** @license Frontegg v7.40.0
17936
+ /** @license Frontegg v7.41.0-alpha.0
17917
17937
  *
17918
17938
  * This source code is licensed under the MIT license found in the
17919
17939
  * LICENSE file in the root directory of this source tree.
@@ -19218,7 +19238,9 @@ __webpack_require__.r(__webpack_exports__);
19218
19238
  ip
19219
19239
  } = _dummy__WEBPACK_IMPORTED_MODULE_2__.dummyIps[0];
19220
19240
  await actions.setAuthState({
19221
- userIp: ip
19241
+ userIpData: {
19242
+ ip
19243
+ }
19222
19244
  });
19223
19245
  callback == null ? void 0 : callback(true, ip);
19224
19246
  } catch (e) {
@@ -25120,6 +25142,8 @@ class ContextHolder {
25120
25142
  this.appName = null;
25121
25143
  this.sessionContext = void 0;
25122
25144
  this.basename = null;
25145
+ this.cdnUrl = null;
25146
+ this.assetsUrl = null;
25123
25147
  this.setContext = context => {
25124
25148
  this.context = context;
25125
25149
  };
@@ -25175,6 +25199,18 @@ class ContextHolder {
25175
25199
  this.getAppName = () => {
25176
25200
  return this.appName;
25177
25201
  };
25202
+ this.setCdnUrl = cdnUrl => {
25203
+ this.cdnUrl = cdnUrl;
25204
+ };
25205
+ this.getCdnUrl = () => {
25206
+ return this.cdnUrl;
25207
+ };
25208
+ this.setAssetsUrl = assets => {
25209
+ this.assetsUrl = assets;
25210
+ };
25211
+ this.getAssetsUrl = () => {
25212
+ return this.assetsUrl;
25213
+ };
25178
25214
  }
25179
25215
  static default() {
25180
25216
  return ContextHolder.getInstance(DEFAULT_APP_NAME);
@@ -27911,7 +27947,7 @@ __webpack_require__.r(__webpack_exports__);
27911
27947
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
27912
27948
  /* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
27913
27949
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
27914
- /** @license Frontegg v7.40.0
27950
+ /** @license Frontegg v7.41.0-alpha.0
27915
27951
  *
27916
27952
  * This source code is licensed under the MIT license found in the
27917
27953
  * LICENSE file in the root directory of this source tree.
@@ -30541,7 +30577,7 @@ __webpack_require__.r(__webpack_exports__);
30541
30577
  /* harmony export */ });
30542
30578
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
30543
30579
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
30544
- /** @license Frontegg v7.40.0
30580
+ /** @license Frontegg v7.41.0-alpha.0
30545
30581
  *
30546
30582
  * This source code is licensed under the MIT license found in the
30547
30583
  * LICENSE file in the root directory of this source tree.