@frontegg/js 7.40.0-alpha.2 → 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-alpha.2
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-alpha.2
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-alpha.2'
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-alpha.2",
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-alpha.2"
9
+ "@frontegg/types": "7.41.0-alpha.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [