@frontegg/js 6.127.0 → 6.128.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 v6.127.0
1
+ /** @license Frontegg v6.128.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 v6.127.0
1
+ /** @license Frontegg v6.128.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: '6.127.0'
8
+ cdnVersion: '6.128.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": "6.127.0",
3
+ "version": "6.128.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": "6.127.0"
9
+ "@frontegg/types": "6.128.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1304,7 +1304,7 @@ __webpack_require__.r(__webpack_exports__);
1304
1304
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1305
1305
  /* harmony export */ });
1306
1306
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1307
- cdnVersion: '6.127.0'
1307
+ cdnVersion: '6.128.0'
1308
1308
  });
1309
1309
 
1310
1310
  /***/ }),
@@ -5394,10 +5394,17 @@ function* impersonateSagas() {
5394
5394
  "use strict";
5395
5395
  __webpack_require__.r(__webpack_exports__);
5396
5396
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5397
- /* harmony export */ "authStrategyLoginStepMap": () => (/* binding */ authStrategyLoginStepMap)
5397
+ /* harmony export */ "authStrategyLoginStepMap": () => (/* binding */ authStrategyLoginStepMap),
5398
+ /* harmony export */ "defaultFronteggRoutes": () => (/* binding */ defaultFronteggRoutes)
5398
5399
  /* harmony export */ });
5399
5400
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/auth/enums.js");
5400
5401
  /* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./interfaces */ "../../dist/@frontegg/redux-store/auth/LoginState/interfaces.js");
5402
+ /**
5403
+ @notice these file is used inside next js middleware
5404
+ middleware file in next js runs inside edge runtime
5405
+ using redux-toolkit is not allowed inside edge runtime and breaks the build because it is using eval
5406
+ please don't import from redux or from other files that import from redux
5407
+ */
5401
5408
 
5402
5409
 
5403
5410
  const authStrategyLoginStepMap = {
@@ -5407,6 +5414,25 @@ const authStrategyLoginStepMap = {
5407
5414
  [_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_0__.AuthStrategyEnum.SmsCode]: _interfaces__WEBPACK_IMPORTED_MODULE_1__.LoginStep.loginWithSmsOtc
5408
5415
  };
5409
5416
 
5417
+ // don't remove this object because it is used in next js middleware (notice top of the file)
5418
+ const defaultFronteggRoutes = {
5419
+ authenticatedUrl: '/',
5420
+ loginUrl: '/account/login',
5421
+ logoutUrl: '/account/logout',
5422
+ activateUrl: '/account/activate',
5423
+ impersonationUrl: '/account/impersonate',
5424
+ acceptInvitationUrl: '/account/invitation/accept',
5425
+ forgetPasswordUrl: '/account/forget-password',
5426
+ resetPhoneNumberUrl: '/account/reset-phone-number',
5427
+ resetPasswordUrl: '/account/reset-password',
5428
+ socialLoginCallbackUrl: '/account/social/success',
5429
+ signUpUrl: '/account/sign-up',
5430
+ oidcRedirectUrl: '/account/oidc/callback',
5431
+ samlCallbackUrl: '/account/saml/callback',
5432
+ magicLinkCallbackUrl: '/account/login/magic-link',
5433
+ hostedLoginRedirectUrl: '/oauth/callback'
5434
+ };
5435
+
5410
5436
  /***/ }),
5411
5437
 
5412
5438
  /***/ "../../dist/@frontegg/redux-store/auth/LoginState/index.js":
@@ -17345,6 +17371,8 @@ __webpack_require__.r(__webpack_exports__);
17345
17371
  /* harmony import */ var _MSP_AllAccountsState__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./MSP/AllAccountsState */ "../../dist/@frontegg/redux-store/auth/MSP/AllAccountsState/index.js");
17346
17372
  /* harmony import */ var _MSP_AllAccountsState_allAccountsDialogsState__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./MSP/AllAccountsState/allAccountsDialogsState */ "../../dist/@frontegg/redux-store/auth/MSP/AllAccountsState/allAccountsDialogsState.js");
17347
17373
  /* harmony import */ var _SecurityCenterState__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./SecurityCenterState */ "../../dist/@frontegg/redux-store/auth/SecurityCenterState/index.js");
17374
+ /* harmony import */ var _LoginState_consts__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./LoginState/consts */ "../../dist/@frontegg/redux-store/auth/LoginState/consts.js");
17375
+
17348
17376
 
17349
17377
 
17350
17378
 
@@ -17407,23 +17435,7 @@ const reinitializeState = {
17407
17435
  securityCenterState: _SecurityCenterState__WEBPACK_IMPORTED_MODULE_27__.securityCenterState
17408
17436
  };
17409
17437
  const initialState = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({
17410
- routes: {
17411
- authenticatedUrl: '/',
17412
- loginUrl: '/account/login',
17413
- logoutUrl: '/account/logout',
17414
- activateUrl: '/account/activate',
17415
- impersonationUrl: '/account/impersonate',
17416
- acceptInvitationUrl: '/account/invitation/accept',
17417
- forgetPasswordUrl: '/account/forget-password',
17418
- resetPhoneNumberUrl: '/account/reset-phone-number',
17419
- resetPasswordUrl: '/account/reset-password',
17420
- socialLoginCallbackUrl: '/account/social/success',
17421
- signUpUrl: '/account/sign-up',
17422
- oidcRedirectUrl: '/account/oidc/callback',
17423
- samlCallbackUrl: '/account/saml/callback',
17424
- magicLinkCallbackUrl: '/account/login/magic-link',
17425
- hostedLoginRedirectUrl: '/oauth/callback'
17426
- },
17438
+ routes: _LoginState_consts__WEBPACK_IMPORTED_MODULE_28__.defaultFronteggRoutes,
17427
17439
  onRedirectTo: () => {}
17428
17440
  }, reinitializeState);
17429
17441
 
@@ -22218,7 +22230,7 @@ __webpack_require__.r(__webpack_exports__);
22218
22230
  /* harmony export */ });
22219
22231
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
22220
22232
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
22221
- /** @license Frontegg v6.127.0
22233
+ /** @license Frontegg v6.128.0
22222
22234
  *
22223
22235
  * This source code is licensed under the MIT license found in the
22224
22236
  * LICENSE file in the root directory of this source tree.
@@ -24687,7 +24699,7 @@ __webpack_require__.r(__webpack_exports__);
24687
24699
  /* harmony import */ var _users_interfaces__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./users/interfaces */ "../../node_modules/@frontegg/rest-api/users/interfaces.js");
24688
24700
  /* harmony import */ var _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./entitlements/interfaces */ "../../node_modules/@frontegg/rest-api/entitlements/interfaces.js");
24689
24701
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./security-center/interfaces */ "../../node_modules/@frontegg/rest-api/security-center/interfaces.js");
24690
- /** @license Frontegg v3.1.9
24702
+ /** @license Frontegg v3.1.11
24691
24703
  *
24692
24704
  * This source code is licensed under the MIT license found in the
24693
24705
  * LICENSE file in the root directory of this source tree.
@@ -25284,6 +25296,7 @@ let RecommendationCode;
25284
25296
  RecommendationCode["ENABLE_DOMAIN_RESTRICTIONS"] = "ENABLE_DOMAIN_RESTRICTIONS";
25285
25297
  RecommendationCode["CHANGE_DOMAIN_TO_ALLOWLIST"] = "CHANGE_DOMAIN_TO_ALLOWLIST";
25286
25298
  RecommendationCode["REMOVE_STALE_USERS"] = "REMOVE_STALE_USERS";
25299
+ RecommendationCode["CONFIGURE_SSO"] = "CONFIGURE_SSO";
25287
25300
  })(RecommendationCode || (RecommendationCode = {}));
25288
25301
 
25289
25302
  let InsightCode;
@@ -25336,6 +25349,7 @@ let SecurityCategory;
25336
25349
  SecurityCategory["INACTIVITY"] = "INACTIVITY";
25337
25350
  SecurityCategory["IP"] = "IP";
25338
25351
  SecurityCategory["DOMAIN"] = "DOMAIN";
25352
+ SecurityCategory["SSO"] = "SSO";
25339
25353
  })(SecurityCategory || (SecurityCategory = {}));
25340
25354
 
25341
25355
  /***/ }),