@frontegg/js 7.123.0 → 7.124.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.
@@ -19,7 +19,9 @@ export var FronteggApp = /*#__PURE__*/function () {
19
19
  var _this = this,
20
20
  _this$options$authOpt3,
21
21
  _options$authOptions,
22
- _options$authOptions2;
22
+ _options$authOptions2,
23
+ _options$authOptions3,
24
+ _options$authOptions4;
23
25
  var iframeRendering = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
24
26
  var allowMultipleRenderers = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
25
27
  _classCallCheck(this, FronteggApp);
@@ -478,9 +480,10 @@ export var FronteggApp = /*#__PURE__*/function () {
478
480
  var contextHolder = ContextHolder["for"](appName);
479
481
  contextHolder.setAppName(appName);
480
482
  this.setEntitlementsOptions(_options.entitlementsOptions);
483
+ // Tenant selection needs the user and tenants loaded, so it takes precedence over skipUserLoading
481
484
  this.setSessionContext({
482
485
  enableSessionPerTenant: (_options$authOptions = _options.authOptions) == null ? void 0 : _options$authOptions.enableSessionPerTenant,
483
- skipUserLoading: (_options$authOptions2 = _options.authOptions) == null ? void 0 : _options$authOptions2.skipUserLoading
486
+ skipUserLoading: ((_options$authOptions2 = _options.authOptions) == null ? void 0 : _options$authOptions2.skipUserLoading) && ((_options$authOptions3 = _options.authOptions) == null ? void 0 : (_options$authOptions4 = _options$authOptions3.tenantSelection) == null ? void 0 : _options$authOptions4.enabled) !== true
484
487
  });
485
488
 
486
489
  // pay attention: basename is used from the router base name, then if it's empty it will be the frontegg options basename
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.123.0
1
+ /** @license Frontegg v7.124.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.
@@ -26,7 +26,9 @@ var FronteggApp = /*#__PURE__*/function () {
26
26
  var _this = this,
27
27
  _this$options$authOpt3,
28
28
  _options$authOptions,
29
- _options$authOptions2;
29
+ _options$authOptions2,
30
+ _options$authOptions3,
31
+ _options$authOptions4;
30
32
  var iframeRendering = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
31
33
  var allowMultipleRenderers = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
32
34
  (0, _classCallCheck2["default"])(this, FronteggApp);
@@ -485,9 +487,10 @@ var FronteggApp = /*#__PURE__*/function () {
485
487
  var contextHolder = FronteggRestApi.ContextHolder["for"](appName);
486
488
  contextHolder.setAppName(appName);
487
489
  this.setEntitlementsOptions(_options.entitlementsOptions);
490
+ // Tenant selection needs the user and tenants loaded, so it takes precedence over skipUserLoading
488
491
  this.setSessionContext({
489
492
  enableSessionPerTenant: (_options$authOptions = _options.authOptions) == null ? void 0 : _options$authOptions.enableSessionPerTenant,
490
- skipUserLoading: (_options$authOptions2 = _options.authOptions) == null ? void 0 : _options$authOptions2.skipUserLoading
493
+ skipUserLoading: ((_options$authOptions2 = _options.authOptions) == null ? void 0 : _options$authOptions2.skipUserLoading) && ((_options$authOptions3 = _options.authOptions) == null ? void 0 : (_options$authOptions4 = _options$authOptions3.tenantSelection) == null ? void 0 : _options$authOptions4.enabled) !== true
491
494
  });
492
495
 
493
496
  // pay attention: basename is used from the router base name, then if it's empty it will be the frontegg options basename
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.123.0
1
+ /** @license Frontegg v7.124.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.123.0'
8
+ cdnVersion: '7.124.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.123.0",
3
+ "version": "7.124.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.123.0"
9
+ "@frontegg/types": "7.124.0-alpha.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -383,7 +383,9 @@ var FronteggApp = /*#__PURE__*/function () {
383
383
  var _this = this,
384
384
  _this$options$authOpt3,
385
385
  _options$authOptions,
386
- _options$authOptions2;
386
+ _options$authOptions2,
387
+ _options$authOptions3,
388
+ _options$authOptions4;
387
389
  var iframeRendering = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
388
390
  var allowMultipleRenderers = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
389
391
  (0,_babel_runtime_helpers_esm_classCallCheck__WEBPACK_IMPORTED_MODULE_2__["default"])(this, FronteggApp);
@@ -842,9 +844,10 @@ var FronteggApp = /*#__PURE__*/function () {
842
844
  var contextHolder = _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](appName);
843
845
  contextHolder.setAppName(appName);
844
846
  this.setEntitlementsOptions(_options.entitlementsOptions);
847
+ // Tenant selection needs the user and tenants loaded, so it takes precedence over skipUserLoading
845
848
  this.setSessionContext({
846
849
  enableSessionPerTenant: (_options$authOptions = _options.authOptions) == null ? void 0 : _options$authOptions.enableSessionPerTenant,
847
- skipUserLoading: (_options$authOptions2 = _options.authOptions) == null ? void 0 : _options$authOptions2.skipUserLoading
850
+ skipUserLoading: ((_options$authOptions2 = _options.authOptions) == null ? void 0 : _options$authOptions2.skipUserLoading) && ((_options$authOptions3 = _options.authOptions) == null ? void 0 : (_options$authOptions4 = _options$authOptions3.tenantSelection) == null ? void 0 : _options$authOptions4.enabled) !== true
848
851
  });
849
852
 
850
853
  // pay attention: basename is used from the router base name, then if it's empty it will be the frontegg options basename
@@ -1924,7 +1927,7 @@ __webpack_require__.r(__webpack_exports__);
1924
1927
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1925
1928
  /* harmony export */ });
1926
1929
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1927
- cdnVersion: '7.123.0'
1930
+ cdnVersion: '7.124.0-alpha.0'
1928
1931
  });
1929
1932
 
1930
1933
  /***/ }),
@@ -21089,7 +21092,7 @@ __webpack_require__.r(__webpack_exports__);
21089
21092
  /* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
21090
21093
  /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
21091
21094
  /* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
21092
- /** @license Frontegg v7.123.0
21095
+ /** @license Frontegg v7.124.0-alpha.0
21093
21096
  *
21094
21097
  * This source code is licensed under the MIT license found in the
21095
21098
  * LICENSE file in the root directory of this source tree.
@@ -31775,7 +31778,7 @@ __webpack_require__.r(__webpack_exports__);
31775
31778
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
31776
31779
  /* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
31777
31780
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
31778
- /** @license Frontegg v7.123.0
31781
+ /** @license Frontegg v7.124.0-alpha.0
31779
31782
  *
31780
31783
  * This source code is licensed under the MIT license found in the
31781
31784
  * LICENSE file in the root directory of this source tree.
@@ -34617,7 +34620,7 @@ __webpack_require__.r(__webpack_exports__);
34617
34620
  /* harmony export */ });
34618
34621
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
34619
34622
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
34620
- /** @license Frontegg v7.123.0
34623
+ /** @license Frontegg v7.124.0-alpha.0
34621
34624
  *
34622
34625
  * This source code is licensed under the MIT license found in the
34623
34626
  * LICENSE file in the root directory of this source tree.