@frontegg/js 7.34.0 → 7.35.0-alpha.1

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.34.0
1
+ /** @license Frontegg v7.35.0-alpha.1
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.34.0
1
+ /** @license Frontegg v7.35.0-alpha.1
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.34.0'
8
+ cdnVersion: '7.35.0-alpha.1'
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.34.0",
3
+ "version": "7.35.0-alpha.1",
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.34.0"
9
+ "@frontegg/types": "7.35.0-alpha.1"
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",
@@ -799,7 +805,7 @@ var FronteggApp = /*#__PURE__*/function () {
799
805
  isMultiApp: false
800
806
  }, isMultiApp = _ref4.isMultiApp;
801
807
  _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];
802
- _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.ContextHolder["for"](this.name).setRequestSource(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_21__.RequestSource.AdminPortal);
808
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](this.name).setRequestSource(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_21__.RequestSource.AdminPortal);
803
809
  _context6.next = 5;
804
810
  return this.loadScript('FronteggAdminPortal');
805
811
  case 5:
@@ -847,7 +853,7 @@ var FronteggApp = /*#__PURE__*/function () {
847
853
  (_this$adminPortalRend = this.adminPortalRenderer) == null ? void 0 : _this$adminPortalRend.unmount();
848
854
  // unmount is removing url search params, therefore we need to restore them after unmount
849
855
  (0,_utils__WEBPACK_IMPORTED_MODULE_5__.restoreSearchParams)(searchParams);
850
- _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_18__.ContextHolder["for"](this.name).setRequestSource(null);
856
+ _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](this.name).setRequestSource(null);
851
857
  } catch (e) {
852
858
  console.error('Failed to unmount admin portal', e);
853
859
  }
@@ -1618,7 +1624,7 @@ __webpack_require__.r(__webpack_exports__);
1618
1624
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1619
1625
  /* harmony export */ });
1620
1626
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1621
- cdnVersion: '7.34.0'
1627
+ cdnVersion: '7.35.0-alpha.1'
1622
1628
  });
1623
1629
 
1624
1630
  /***/ }),
@@ -5275,23 +5281,23 @@ __webpack_require__.r(__webpack_exports__);
5275
5281
  /* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../interfaces */ "../../dist/@frontegg/redux-store/auth/LoginState/interfaces.js");
5276
5282
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
5277
5283
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/handlers.js");
5284
+ /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/gtm.js");
5278
5285
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/encoders.js");
5279
5286
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/converters.js");
5280
5287
  /* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../state */ "../../dist/@frontegg/redux-store/auth/LoginState/state.js");
5281
5288
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../helpers */ "../../dist/@frontegg/redux-store/auth/LoginState/helpers.js");
5282
5289
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/ContextHolder/index.js");
5283
5290
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/enums.js");
5291
+ /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/utils.js");
5284
5292
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/interfaces.js");
5285
5293
  /* harmony import */ var _hostedLoginAuthorize_actions__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./hostedLoginAuthorize.actions */ "../../dist/@frontegg/redux-store/auth/LoginState/actions/hostedLoginAuthorize.actions.js");
5286
5294
  /* harmony import */ var _toolkit__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../toolkit */ "../../dist/@frontegg/redux-store/auth/Entitlements/helpers.js");
5287
5295
  /* harmony import */ var _toolkit__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../../toolkit */ "../../dist/@frontegg/redux-store/toolkit/FronteggNativeModule.js");
5288
5296
  /* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../interfaces */ "../../dist/@frontegg/redux-store/auth/interfaces.js");
5289
5297
  /* harmony import */ var _consts__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../consts */ "../../dist/@frontegg/redux-store/auth/LoginState/consts.js");
5290
- /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../../../helpers */ "../../dist/@frontegg/redux-store/helpers/gtm.js");
5291
5298
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/auth/helpers.js");
5292
5299
  /* harmony import */ var _MfaState_interfaces__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../../MfaState/interfaces */ "../../dist/@frontegg/redux-store/auth/MfaState/interfaces.js");
5293
5300
  /* harmony import */ var _SSOState_interfaces__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../SSOState/interfaces */ "../../dist/@frontegg/redux-store/auth/SSOState/interfaces.js");
5294
- /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/utils.js");
5295
5301
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../constants */ "../../dist/@frontegg/redux-store/constants.js");
5296
5302
 
5297
5303
 
@@ -5328,8 +5334,6 @@ const _excluded = ["callback", "error"],
5328
5334
 
5329
5335
 
5330
5336
 
5331
-
5332
-
5333
5337
 
5334
5338
 
5335
5339
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, sharedActions) => {
@@ -6277,14 +6281,29 @@ const _excluded = ["callback", "error"],
6277
6281
  callback
6278
6282
  } = payload;
6279
6283
  try {
6284
+ actions.setAuthState({
6285
+ userIpData: {
6286
+ loading: true
6287
+ }
6288
+ });
6280
6289
  const {
6281
- ip
6290
+ ip,
6291
+ country_code
6282
6292
  } = await api.metadata.getCurrentUserIpMetadata();
6283
6293
  actions.setAuthState({
6284
- userIp: ip
6294
+ userIpData: {
6295
+ ip,
6296
+ countryCode: country_code,
6297
+ loading: false
6298
+ }
6285
6299
  });
6286
6300
  callback == null ? void 0 : callback(true);
6287
6301
  } catch (e) {
6302
+ actions.setAuthState({
6303
+ userIpData: {
6304
+ loading: false
6305
+ }
6306
+ });
6288
6307
  callback == null ? void 0 : callback(false);
6289
6308
  }
6290
6309
  };
@@ -11686,8 +11705,8 @@ const _excluded = ["callback"],
11686
11705
  error: null
11687
11706
  });
11688
11707
  try {
11689
- var _store$auth$userIp;
11690
- const userIp = (_store$auth$userIp = store.auth.userIp) != null ? _store$auth$userIp : '';
11708
+ var _store$auth$userIpDat, _store$auth$userIpDat2;
11709
+ const userIp = (_store$auth$userIpDat = (_store$auth$userIpDat2 = store.auth.userIpData) == null ? void 0 : _store$auth$userIpDat2.ip) != null ? _store$auth$userIpDat : '';
11691
11710
  await Promise.all([api.auth.createIPRestriction({
11692
11711
  ip: userIp,
11693
11712
  isActive: true,
@@ -15816,23 +15835,6 @@ __webpack_require__.r(__webpack_exports__);
15816
15835
  /* harmony export */ });
15817
15836
  /* 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");
15818
15837
  /* 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");
15819
- /* harmony import */ var _AcceptInvitationState_interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AcceptInvitationState/interfaces */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/interfaces.js");
15820
- /* harmony import */ var _ActivateAccountState_interfaces__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ActivateAccountState/interfaces */ "../../dist/@frontegg/redux-store/auth/ActivateAccountState/interfaces.js");
15821
- /* harmony import */ var _ApiTokensState_interfaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ApiTokensState/interfaces */ "../../dist/@frontegg/redux-store/auth/ApiTokensState/interfaces.js");
15822
- /* harmony import */ var _Entitlements_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Entitlements/helpers */ "../../dist/@frontegg/redux-store/auth/Entitlements/helpers.js");
15823
- /* harmony import */ var _ForgotPasswordState_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ForgotPasswordState/interfaces */ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/interfaces.js");
15824
- /* harmony import */ var _GroupsState_interfaces__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./GroupsState/interfaces */ "../../dist/@frontegg/redux-store/auth/GroupsState/interfaces.js");
15825
- /* harmony import */ var _ImpersonateState_interfaces__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ImpersonateState/interfaces */ "../../dist/@frontegg/redux-store/auth/ImpersonateState/interfaces.js");
15826
- /* harmony import */ var _LoginState_interfaces__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./LoginState/interfaces */ "../../dist/@frontegg/redux-store/auth/LoginState/interfaces.js");
15827
- /* harmony import */ var _MfaState_interfaces__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./MfaState/interfaces */ "../../dist/@frontegg/redux-store/auth/MfaState/interfaces.js");
15828
- /* harmony import */ var _MSP_interfaces__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./MSP/interfaces */ "../../dist/@frontegg/redux-store/auth/MSP/interfaces/index.js");
15829
- /* harmony import */ var _ResetPhoneNumberState_interfaces__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ResetPhoneNumberState/interfaces */ "../../dist/@frontegg/redux-store/auth/ResetPhoneNumberState/interfaces.js");
15830
- /* harmony import */ var _RolesState_interfaces__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./RolesState/interfaces */ "../../dist/@frontegg/redux-store/auth/RolesState/interfaces.js");
15831
- /* harmony import */ var _Security_SecurityCenterState_interfaces__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Security/SecurityCenterState/interfaces */ "../../dist/@frontegg/redux-store/auth/Security/SecurityCenterState/interfaces.js");
15832
- /* harmony import */ var _SignUpState_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./SignUpState/interfaces */ "../../dist/@frontegg/redux-store/auth/SignUpState/interfaces.js");
15833
- /* harmony import */ var _SSOState_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SSOState/interfaces */ "../../dist/@frontegg/redux-store/auth/SSOState/interfaces.js");
15834
- /* harmony import */ var _TeamState_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./TeamState/interfaces */ "../../dist/@frontegg/redux-store/auth/TeamState/interfaces.js");
15835
- /* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./interfaces */ "../../dist/@frontegg/redux-store/auth/interfaces.js");
15836
15838
  /* harmony import */ var _AcceptInvitationState__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./AcceptInvitationState */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/state.js");
15837
15839
  /* harmony import */ var _AcceptInvitationState__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./AcceptInvitationState */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/actions.js");
15838
15840
  /* harmony import */ var _AccountSettingsState__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./AccountSettingsState */ "../../dist/@frontegg/redux-store/auth/AccountSettingsState/state.js");
@@ -15860,8 +15862,8 @@ __webpack_require__.r(__webpack_exports__);
15860
15862
  /* harmony import */ var _MfaState__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./MfaState */ "../../dist/@frontegg/redux-store/auth/MfaState/state.js");
15861
15863
  /* harmony import */ var _MfaState__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ./MfaState */ "../../dist/@frontegg/redux-store/auth/MfaState/actions.js");
15862
15864
  /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/state.js");
15863
- /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/actions.js");
15864
15865
  /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/dialogs/state.js");
15866
+ /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/actions.js");
15865
15867
  /* harmony import */ var _MSP__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ./MSP */ "../../dist/@frontegg/redux-store/auth/MSP/dialogs/actions.js");
15866
15868
  /* harmony import */ var _PasskeysState__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./PasskeysState */ "../../dist/@frontegg/redux-store/auth/PasskeysState/state.js");
15867
15869
  /* harmony import */ var _PasskeysState__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ./PasskeysState */ "../../dist/@frontegg/redux-store/auth/PasskeysState/actions.js");
@@ -15901,6 +15903,23 @@ __webpack_require__.r(__webpack_exports__);
15901
15903
  /* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
15902
15904
  /* harmony import */ var _Entitlements__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./Entitlements */ "../../dist/@frontegg/redux-store/auth/Entitlements/actions.js");
15903
15905
  /* harmony import */ var _toolkit_proxy__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../toolkit/proxy */ "../../dist/@frontegg/redux-store/toolkit/proxy.js");
15906
+ /* harmony import */ var _AcceptInvitationState_interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AcceptInvitationState/interfaces */ "../../dist/@frontegg/redux-store/auth/AcceptInvitationState/interfaces.js");
15907
+ /* harmony import */ var _ActivateAccountState_interfaces__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ActivateAccountState/interfaces */ "../../dist/@frontegg/redux-store/auth/ActivateAccountState/interfaces.js");
15908
+ /* harmony import */ var _ApiTokensState_interfaces__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ApiTokensState/interfaces */ "../../dist/@frontegg/redux-store/auth/ApiTokensState/interfaces.js");
15909
+ /* harmony import */ var _Entitlements_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./Entitlements/helpers */ "../../dist/@frontegg/redux-store/auth/Entitlements/helpers.js");
15910
+ /* harmony import */ var _ForgotPasswordState_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./ForgotPasswordState/interfaces */ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/interfaces.js");
15911
+ /* harmony import */ var _GroupsState_interfaces__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./GroupsState/interfaces */ "../../dist/@frontegg/redux-store/auth/GroupsState/interfaces.js");
15912
+ /* harmony import */ var _ImpersonateState_interfaces__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ImpersonateState/interfaces */ "../../dist/@frontegg/redux-store/auth/ImpersonateState/interfaces.js");
15913
+ /* harmony import */ var _LoginState_interfaces__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./LoginState/interfaces */ "../../dist/@frontegg/redux-store/auth/LoginState/interfaces.js");
15914
+ /* harmony import */ var _MfaState_interfaces__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./MfaState/interfaces */ "../../dist/@frontegg/redux-store/auth/MfaState/interfaces.js");
15915
+ /* harmony import */ var _MSP_interfaces__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./MSP/interfaces */ "../../dist/@frontegg/redux-store/auth/MSP/interfaces/index.js");
15916
+ /* harmony import */ var _ResetPhoneNumberState_interfaces__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./ResetPhoneNumberState/interfaces */ "../../dist/@frontegg/redux-store/auth/ResetPhoneNumberState/interfaces.js");
15917
+ /* harmony import */ var _RolesState_interfaces__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./RolesState/interfaces */ "../../dist/@frontegg/redux-store/auth/RolesState/interfaces.js");
15918
+ /* harmony import */ var _Security_SecurityCenterState_interfaces__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./Security/SecurityCenterState/interfaces */ "../../dist/@frontegg/redux-store/auth/Security/SecurityCenterState/interfaces.js");
15919
+ /* harmony import */ var _SignUpState_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./SignUpState/interfaces */ "../../dist/@frontegg/redux-store/auth/SignUpState/interfaces.js");
15920
+ /* harmony import */ var _SSOState_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./SSOState/interfaces */ "../../dist/@frontegg/redux-store/auth/SSOState/interfaces.js");
15921
+ /* harmony import */ var _TeamState_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./TeamState/interfaces */ "../../dist/@frontegg/redux-store/auth/TeamState/interfaces.js");
15922
+ /* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./interfaces */ "../../dist/@frontegg/redux-store/auth/interfaces.js");
15904
15923
 
15905
15924
 
15906
15925
  const _excluded = ["routes"],
@@ -15972,7 +15991,6 @@ const _excluded = ["routes"],
15972
15991
 
15973
15992
 
15974
15993
 
15975
-
15976
15994
 
15977
15995
 
15978
15996
  const createAuthState = _overrideState => {
@@ -15990,7 +16008,9 @@ const createAuthState = _overrideState => {
15990
16008
  user: null,
15991
16009
  error: undefined,
15992
16010
  errorByRequest: {},
15993
- userIp: undefined
16011
+ userIpData: {
16012
+ loading: false
16013
+ }
15994
16014
  }, overrideState, {
15995
16015
  // nested states
15996
16016
  acceptInvitationState: (0,_AcceptInvitationState__WEBPACK_IMPORTED_MODULE_21__["default"])(overrideState == null ? void 0 : overrideState.acceptInvitationState),
@@ -17905,7 +17925,7 @@ __webpack_require__.r(__webpack_exports__);
17905
17925
  /* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
17906
17926
  /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
17907
17927
  /* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
17908
- /** @license Frontegg v7.34.0
17928
+ /** @license Frontegg v7.35.0-alpha.1
17909
17929
  *
17910
17930
  * This source code is licensed under the MIT license found in the
17911
17931
  * LICENSE file in the root directory of this source tree.
@@ -19210,7 +19230,9 @@ __webpack_require__.r(__webpack_exports__);
19210
19230
  ip
19211
19231
  } = _dummy__WEBPACK_IMPORTED_MODULE_2__.dummyIps[0];
19212
19232
  await actions.setAuthState({
19213
- userIp: ip
19233
+ userIpData: {
19234
+ ip
19235
+ }
19214
19236
  });
19215
19237
  callback == null ? void 0 : callback(true, ip);
19216
19238
  } catch (e) {
@@ -25070,6 +25092,8 @@ class ContextHolder {
25070
25092
  this.appName = null;
25071
25093
  this.sessionContext = void 0;
25072
25094
  this.basename = null;
25095
+ this.cdnUrl = null;
25096
+ this.assetsUrl = null;
25073
25097
  this.setContext = context => {
25074
25098
  this.context = context;
25075
25099
  };
@@ -25125,6 +25149,18 @@ class ContextHolder {
25125
25149
  this.getAppName = () => {
25126
25150
  return this.appName;
25127
25151
  };
25152
+ this.setCdnUrl = cdnUrl => {
25153
+ this.cdnUrl = cdnUrl;
25154
+ };
25155
+ this.getCdnUrl = () => {
25156
+ return this.cdnUrl;
25157
+ };
25158
+ this.setAssetsUrl = assets => {
25159
+ this.assetsUrl = assets;
25160
+ };
25161
+ this.getAssetsUrl = () => {
25162
+ return this.assetsUrl;
25163
+ };
25128
25164
  }
25129
25165
  static default() {
25130
25166
  return ContextHolder.getInstance(DEFAULT_APP_NAME);
@@ -27838,7 +27874,7 @@ __webpack_require__.r(__webpack_exports__);
27838
27874
  /* harmony import */ var _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./entitlements/interfaces */ "../../dist/@frontegg/rest-api/entitlements/interfaces.js");
27839
27875
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
27840
27876
  /* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
27841
- /** @license Frontegg v7.34.0
27877
+ /** @license Frontegg v7.35.0-alpha.1
27842
27878
  *
27843
27879
  * This source code is licensed under the MIT license found in the
27844
27880
  * LICENSE file in the root directory of this source tree.
@@ -30468,7 +30504,7 @@ __webpack_require__.r(__webpack_exports__);
30468
30504
  /* harmony export */ });
30469
30505
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
30470
30506
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
30471
- /** @license Frontegg v7.34.0
30507
+ /** @license Frontegg v7.35.0-alpha.1
30472
30508
  *
30473
30509
  * This source code is licensed under the MIT license found in the
30474
30510
  * LICENSE file in the root directory of this source tree.