@frontegg/js 6.97.0 → 6.98.0-alpha.1

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.
@@ -334,15 +334,16 @@ export var FronteggApp = /*#__PURE__*/function () {
334
334
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
335
335
  while (1) switch (_context6.prev = _context6.next) {
336
336
  case 0:
337
- _context6.next = 2;
337
+ FronteggRestApi.ContextHolder.setRequestSource('admin-portal');
338
+ _context6.next = 3;
338
339
  return this.loadScript('FronteggAdminPortal');
339
- case 2:
340
+ case 3:
340
341
  FronteggAdminPortal = _context6.sent;
341
342
  this.adminPortalRenderer = FronteggAdminPortal.render(this.adminPortalEl, {
342
343
  injector: this,
343
344
  options: this.options
344
345
  });
345
- case 4:
346
+ case 5:
346
347
  case "end":
347
348
  return _context6.stop();
348
349
  }
@@ -359,6 +360,7 @@ export var FronteggApp = /*#__PURE__*/function () {
359
360
  try {
360
361
  var _this$adminPortalRend;
361
362
  (_this$adminPortalRend = this.adminPortalRenderer) == null ? void 0 : _this$adminPortalRend.unmount();
363
+ FronteggRestApi.ContextHolder.setRequestSource(null);
362
364
  } catch (e) {
363
365
  console.error('Failed to unmount admin portal', e);
364
366
  }
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.97.0
1
+ /** @license Frontegg v6.98.0-alpha.1
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.
@@ -342,15 +342,16 @@ var FronteggApp = /*#__PURE__*/function () {
342
342
  return _regenerator["default"].wrap(function _callee6$(_context6) {
343
343
  while (1) switch (_context6.prev = _context6.next) {
344
344
  case 0:
345
- _context6.next = 2;
345
+ FronteggRestApi.ContextHolder.setRequestSource('admin-portal');
346
+ _context6.next = 3;
346
347
  return this.loadScript('FronteggAdminPortal');
347
- case 2:
348
+ case 3:
348
349
  FronteggAdminPortal = _context6.sent;
349
350
  this.adminPortalRenderer = FronteggAdminPortal.render(this.adminPortalEl, {
350
351
  injector: this,
351
352
  options: this.options
352
353
  });
353
- case 4:
354
+ case 5:
354
355
  case "end":
355
356
  return _context6.stop();
356
357
  }
@@ -367,6 +368,7 @@ var FronteggApp = /*#__PURE__*/function () {
367
368
  try {
368
369
  var _this$adminPortalRend;
369
370
  (_this$adminPortalRend = this.adminPortalRenderer) == null ? void 0 : _this$adminPortalRend.unmount();
371
+ FronteggRestApi.ContextHolder.setRequestSource(null);
370
372
  } catch (e) {
371
373
  console.error('Failed to unmount admin portal', e);
372
374
  }
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.97.0
1
+ /** @license Frontegg v6.98.0-alpha.1
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.97.0'
8
+ cdnVersion: '6.98.0-alpha.1'
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.97.0",
3
+ "version": "6.98.0-alpha.1",
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.97.0"
9
+ "@frontegg/types": "6.98.0-alpha.1"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [