@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.
- package/FronteggApp/FronteggApp.d.ts +1 -0
- package/FronteggApp/FronteggApp.js +7 -1
- package/index.js +1 -1
- package/node/FronteggApp/FronteggApp.js +6 -0
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +181 -140
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
|
@@ -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,
|
|
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
|
@@ -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
package/node/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/js",
|
|
3
|
-
"version": "7.
|
|
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.
|
|
9
|
+
"@frontegg/types": "7.41.0-alpha.0"
|
|
10
10
|
},
|
|
11
11
|
"browserslist": {
|
|
12
12
|
"production": [
|