@frontegg/js 6.200.0 → 6.201.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.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.200.0
1
+ /** @license Frontegg v6.201.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.200.0
1
+ /** @license Frontegg v6.201.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: '6.200.0'
8
+ cdnVersion: '6.201.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": "6.200.0",
3
+ "version": "6.201.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": "6.200.0"
9
+ "@frontegg/types": "6.201.0-alpha.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1568,7 +1568,7 @@ __webpack_require__.r(__webpack_exports__);
1568
1568
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1569
1569
  /* harmony export */ });
1570
1570
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1571
- cdnVersion: '6.200.0'
1571
+ cdnVersion: '6.201.0-alpha.0'
1572
1572
  });
1573
1573
 
1574
1574
  /***/ }),
@@ -6915,6 +6915,7 @@ function* refreshOrRequestHostedLoginAuthorizeV2({
6915
6915
  }
6916
6916
  }
6917
6917
  function* requestHostedLoginAuthorize(additionalParams) {
6918
+ var _ContextHolder$getBas;
6918
6919
  const {
6919
6920
  routes,
6920
6921
  context,
@@ -6941,7 +6942,7 @@ function* requestHostedLoginAuthorize(additionalParams) {
6941
6942
 
6942
6943
  // We are saving the verifier in session storage to be able to validate the response
6943
6944
  localStorage.setItem(_constants__WEBPACK_IMPORTED_MODULE_18__.HOSTED_LOGIN_VERIFIER_KEY, code_verifier);
6944
- let redirectUrl = `${window.location.origin}${urlStrategy === 'path' ? '' : '#'}${routes.hostedLoginRedirectUrl}`;
6945
+ let redirectUrl = `${window.location.origin}${urlStrategy === 'path' ? '' : '#'}${(_ContextHolder$getBas = _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_6__.ContextHolder.getBasename()) != null ? _ContextHolder$getBas : ''}${routes.hostedLoginRedirectUrl}`;
6945
6946
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_CustomLoginState_saga__WEBPACK_IMPORTED_MODULE_15__.loadCustomLoginRoutes);
6946
6947
  const customLoginSearchParam = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(state => {
6947
6948
  var _state$auth$customLog;
@@ -25995,7 +25996,7 @@ __webpack_require__.r(__webpack_exports__);
25995
25996
  /* harmony export */ });
25996
25997
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
25997
25998
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
25998
- /** @license Frontegg v6.200.0
25999
+ /** @license Frontegg v6.201.0-alpha.0
25999
26000
  *
26000
26001
  * This source code is licensed under the MIT license found in the
26001
26002
  * LICENSE file in the root directory of this source tree.
@@ -27451,6 +27452,7 @@ class ContextHolder {
27451
27452
  this.entitlementsOptions = null;
27452
27453
  this.appName = null;
27453
27454
  this.sessionContext = void 0;
27455
+ this.basename = null;
27454
27456
  }
27455
27457
 
27456
27458
  static getInstance() {
@@ -27473,6 +27475,10 @@ class ContextHolder {
27473
27475
  ContextHolder.getInstance().user = user;
27474
27476
  }
27475
27477
 
27478
+ static setBasename(basename) {
27479
+ ContextHolder.getInstance().basename = basename;
27480
+ }
27481
+
27476
27482
  static setRequestSource(requestSource) {
27477
27483
  ContextHolder.getInstance().requestSource = requestSource;
27478
27484
  }
@@ -27526,6 +27532,10 @@ class ContextHolder {
27526
27532
  return ContextHolder.getInstance().user;
27527
27533
  }
27528
27534
 
27535
+ static getBasename() {
27536
+ return ContextHolder.getInstance().basename;
27537
+ }
27538
+
27529
27539
  static onRedirectTo(path, opts) {
27530
27540
  return ContextHolder.getInstance().onRedirectTo(path, opts);
27531
27541
  }
@@ -30203,7 +30213,7 @@ __webpack_require__.r(__webpack_exports__);
30203
30213
  /* harmony import */ var _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./entitlements/interfaces */ "../../node_modules/@frontegg/rest-api/entitlements/interfaces.js");
30204
30214
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./security-center/interfaces */ "../../node_modules/@frontegg/rest-api/security-center/interfaces.js");
30205
30215
  /* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./applications/interfaces */ "../../node_modules/@frontegg/rest-api/applications/interfaces.js");
30206
- /** @license Frontegg v3.1.75
30216
+ /** @license Frontegg v3.1.76-alpha.9762981322
30207
30217
  *
30208
30218
  * This source code is licensed under the MIT license found in the
30209
30219
  * LICENSE file in the root directory of this source tree.