@frontegg/js 7.75.0 → 7.76.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.
@@ -143,6 +143,7 @@ export declare class FronteggApp {
143
143
  renderInviteUserDialog: (container: HTMLElement, props: any, options: any) => Promise<any>;
144
144
  renderChangePasswordForm: (container: HTMLElement, props: any, options: any) => Promise<any>;
145
145
  renderProfilePage: (container: HTMLElement, props: any, options: any) => Promise<any>;
146
+ renderEditEmailForm: (container: HTMLElement, props: any, options: any) => Promise<any>;
146
147
  getUsersTableStore: (options: UseTableStoreOptions) => Promise<any>;
147
148
  getInviteUserDialogStore: (options: UseInviteUserDialogStoreOptions) => Promise<any>;
148
149
  }
@@ -293,8 +293,8 @@ export var FronteggApp = /*#__PURE__*/function () {
293
293
  return _ref7.apply(this, arguments);
294
294
  };
295
295
  }();
296
- this.getUsersTableStore = /*#__PURE__*/function () {
297
- var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(options) {
296
+ this.renderEditEmailForm = /*#__PURE__*/function () {
297
+ var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(container, props, options) {
298
298
  var FronteggAdminPortal;
299
299
  return _regeneratorRuntime.wrap(function _callee8$(_context8) {
300
300
  while (1) switch (_context8.prev = _context8.next) {
@@ -303,18 +303,24 @@ export var FronteggApp = /*#__PURE__*/function () {
303
303
  return _this.loadScript('FronteggAdminPortal');
304
304
  case 2:
305
305
  FronteggAdminPortal = _context8.sent;
306
- return _context8.abrupt("return", FronteggAdminPortal.useUsersTableStore(options));
306
+ return _context8.abrupt("return", FronteggAdminPortal.renderEditEmailForm(container, {
307
+ injector: _this,
308
+ options: _this.options,
309
+ props: props,
310
+ themeOptions: options.themeOptions,
311
+ localizations: options.localizations
312
+ }));
307
313
  case 4:
308
314
  case "end":
309
315
  return _context8.stop();
310
316
  }
311
317
  }, _callee8);
312
318
  }));
313
- return function (_x13) {
319
+ return function (_x13, _x14, _x15) {
314
320
  return _ref8.apply(this, arguments);
315
321
  };
316
322
  }();
317
- this.getInviteUserDialogStore = /*#__PURE__*/function () {
323
+ this.getUsersTableStore = /*#__PURE__*/function () {
318
324
  var _ref9 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(options) {
319
325
  var FronteggAdminPortal;
320
326
  return _regeneratorRuntime.wrap(function _callee9$(_context9) {
@@ -324,17 +330,38 @@ export var FronteggApp = /*#__PURE__*/function () {
324
330
  return _this.loadScript('FronteggAdminPortal');
325
331
  case 2:
326
332
  FronteggAdminPortal = _context9.sent;
327
- return _context9.abrupt("return", FronteggAdminPortal.useInviteUserDialogStore(options));
333
+ return _context9.abrupt("return", FronteggAdminPortal.useUsersTableStore(options));
328
334
  case 4:
329
335
  case "end":
330
336
  return _context9.stop();
331
337
  }
332
338
  }, _callee9);
333
339
  }));
334
- return function (_x14) {
340
+ return function (_x16) {
335
341
  return _ref9.apply(this, arguments);
336
342
  };
337
343
  }();
344
+ this.getInviteUserDialogStore = /*#__PURE__*/function () {
345
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(options) {
346
+ var FronteggAdminPortal;
347
+ return _regeneratorRuntime.wrap(function _callee10$(_context10) {
348
+ while (1) switch (_context10.prev = _context10.next) {
349
+ case 0:
350
+ _context10.next = 2;
351
+ return _this.loadScript('FronteggAdminPortal');
352
+ case 2:
353
+ FronteggAdminPortal = _context10.sent;
354
+ return _context10.abrupt("return", FronteggAdminPortal.useInviteUserDialogStore(options));
355
+ case 4:
356
+ case "end":
357
+ return _context10.stop();
358
+ }
359
+ }, _callee10);
360
+ }));
361
+ return function (_x17) {
362
+ return _ref10.apply(this, arguments);
363
+ };
364
+ }();
338
365
  var appName = formatName(name);
339
366
  var customElementName = "frontegg-app-".concat(appName);
340
367
  this.iframeRendering = iframeRendering;
@@ -427,9 +454,9 @@ export var FronteggApp = /*#__PURE__*/function () {
427
454
  }, {
428
455
  key: "initContainers",
429
456
  value: function () {
430
- var _initContainers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(elements) {
431
- return _regeneratorRuntime.wrap(function _callee10$(_context10) {
432
- while (1) switch (_context10.prev = _context10.next) {
457
+ var _initContainers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11(elements) {
458
+ return _regeneratorRuntime.wrap(function _callee11$(_context11) {
459
+ while (1) switch (_context11.prev = _context11.next) {
433
460
  case 0:
434
461
  this.adminPortalEl = elements.adminPortalEl;
435
462
  this.loginBoxEl = elements.loginBoxEl;
@@ -444,7 +471,7 @@ export var FronteggApp = /*#__PURE__*/function () {
444
471
  } catch (e) {
445
472
  console.error('Failed to add frontegg-loading to body classList');
446
473
  }
447
- _context10.next = 9;
474
+ _context11.next = 9;
448
475
  return Promise.all([this.loadFeatureFlags(), this.loadAdminBoxMetadata(), this.requestAuthorize()]);
449
476
  case 9:
450
477
  if (!this.options.previewMode && !this.options.customLoginBox) {
@@ -456,11 +483,11 @@ export var FronteggApp = /*#__PURE__*/function () {
456
483
  }
457
484
  case 11:
458
485
  case "end":
459
- return _context10.stop();
486
+ return _context11.stop();
460
487
  }
461
- }, _callee10, this);
488
+ }, _callee11, this);
462
489
  }));
463
- function initContainers(_x15) {
490
+ function initContainers(_x18) {
464
491
  return _initContainers.apply(this, arguments);
465
492
  }
466
493
  return initContainers;
@@ -573,15 +600,15 @@ export var FronteggApp = /*#__PURE__*/function () {
573
600
  }, {
574
601
  key: "loadLoginBox",
575
602
  value: function () {
576
- var _loadLoginBox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {
603
+ var _loadLoginBox = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12() {
577
604
  var FronteggLoginBox;
578
- return _regeneratorRuntime.wrap(function _callee11$(_context11) {
579
- while (1) switch (_context11.prev = _context11.next) {
605
+ return _regeneratorRuntime.wrap(function _callee12$(_context12) {
606
+ while (1) switch (_context12.prev = _context12.next) {
580
607
  case 0:
581
- _context11.next = 2;
608
+ _context12.next = 2;
582
609
  return this.loadScript('FronteggLoginBox');
583
610
  case 2:
584
- FronteggLoginBox = _context11.sent;
611
+ FronteggLoginBox = _context12.sent;
585
612
  FronteggLoginBox.render(this.loginBoxEl, {
586
613
  injector: this,
587
614
  options: this.options
@@ -597,9 +624,9 @@ export var FronteggApp = /*#__PURE__*/function () {
597
624
  this.loadingListeners = [];
598
625
  case 7:
599
626
  case "end":
600
- return _context11.stop();
627
+ return _context12.stop();
601
628
  }
602
- }, _callee11, this);
629
+ }, _callee12, this);
603
630
  }));
604
631
  function loadLoginBox() {
605
632
  return _loadLoginBox.apply(this, arguments);
@@ -609,20 +636,20 @@ export var FronteggApp = /*#__PURE__*/function () {
609
636
  }, {
610
637
  key: "showAdminPortal",
611
638
  value: function () {
612
- var _showAdminPortal = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(options) {
613
- var _ref10, isMultiApp, _this$queryFeatureFla, _this$queryFeatureFla2, multiAppsFlag, FronteggAdminPortal;
614
- return _regeneratorRuntime.wrap(function _callee12$(_context12) {
615
- while (1) switch (_context12.prev = _context12.next) {
639
+ var _showAdminPortal = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(options) {
640
+ var _ref11, isMultiApp, _this$queryFeatureFla, _this$queryFeatureFla2, multiAppsFlag, FronteggAdminPortal;
641
+ return _regeneratorRuntime.wrap(function _callee13$(_context13) {
642
+ while (1) switch (_context13.prev = _context13.next) {
616
643
  case 0:
617
- _ref10 = options != null ? options : {
644
+ _ref11 = options != null ? options : {
618
645
  isMultiApp: false
619
- }, isMultiApp = _ref10.isMultiApp;
646
+ }, isMultiApp = _ref11.isMultiApp;
620
647
  _this$queryFeatureFla = this.queryFeatureFlags(['multi-apps-admin-portal']), _this$queryFeatureFla2 = _slicedToArray(_this$queryFeatureFla, 1), multiAppsFlag = _this$queryFeatureFla2[0];
621
648
  ContextHolder["for"](this.name).setRequestSource(RequestSource.AdminPortal);
622
- _context12.next = 5;
649
+ _context13.next = 5;
623
650
  return this.loadScript('FronteggAdminPortal');
624
651
  case 5:
625
- FronteggAdminPortal = _context12.sent;
652
+ FronteggAdminPortal = _context13.sent;
626
653
  this.adminPortalRenderer = FronteggAdminPortal.render(this.adminPortalEl, {
627
654
  injector: this,
628
655
  options: Object.assign({
@@ -631,11 +658,11 @@ export var FronteggApp = /*#__PURE__*/function () {
631
658
  });
632
659
  case 7:
633
660
  case "end":
634
- return _context12.stop();
661
+ return _context13.stop();
635
662
  }
636
- }, _callee12, this);
663
+ }, _callee13, this);
637
664
  }));
638
- function showAdminPortal(_x16) {
665
+ function showAdminPortal(_x19) {
639
666
  return _showAdminPortal.apply(this, arguments);
640
667
  }
641
668
  return showAdminPortal;
@@ -674,15 +701,15 @@ export var FronteggApp = /*#__PURE__*/function () {
674
701
  }, {
675
702
  key: "showCheckoutDialog",
676
703
  value: function () {
677
- var _showCheckoutDialog = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(opts) {
704
+ var _showCheckoutDialog = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee14(opts) {
678
705
  var FronteggAdminPortal;
679
- return _regeneratorRuntime.wrap(function _callee13$(_context13) {
680
- while (1) switch (_context13.prev = _context13.next) {
706
+ return _regeneratorRuntime.wrap(function _callee14$(_context14) {
707
+ while (1) switch (_context14.prev = _context14.next) {
681
708
  case 0:
682
- _context13.next = 2;
709
+ _context14.next = 2;
683
710
  return this.loadScript('FronteggAdminPortal');
684
711
  case 2:
685
- FronteggAdminPortal = _context13.sent;
712
+ FronteggAdminPortal = _context14.sent;
686
713
  this.checkoutDialogRenderer = FronteggAdminPortal.renderCheckoutDialog(this.checkoutDialogEl, Object.assign({
687
714
  injector: this
688
715
  }, opts, {
@@ -690,11 +717,11 @@ export var FronteggApp = /*#__PURE__*/function () {
690
717
  }));
691
718
  case 4:
692
719
  case "end":
693
- return _context13.stop();
720
+ return _context14.stop();
694
721
  }
695
- }, _callee13, this);
722
+ }, _callee14, this);
696
723
  }));
697
- function showCheckoutDialog(_x17) {
724
+ function showCheckoutDialog(_x20) {
698
725
  return _showCheckoutDialog.apply(this, arguments);
699
726
  }
700
727
  return showCheckoutDialog;
@@ -783,9 +810,9 @@ export var FronteggApp = /*#__PURE__*/function () {
783
810
  key: "stepUp",
784
811
  value: function stepUp(options) {
785
812
  var state = this.store.getState();
786
- var _ref11 = (state == null ? void 0 : state.auth) || {},
787
- hostedLoginBox = _ref11.hostedLoginBox,
788
- stepUpUrl = _ref11.routes.stepUpUrl;
813
+ var _ref12 = (state == null ? void 0 : state.auth) || {},
814
+ hostedLoginBox = _ref12.hostedLoginBox,
815
+ stepUpUrl = _ref12.routes.stepUpUrl;
789
816
  if (hostedLoginBox) {
790
817
  this.store.dispatch({
791
818
  type: 'auth/stepUpHostedLogin',
@@ -805,8 +832,8 @@ export var FronteggApp = /*#__PURE__*/function () {
805
832
  value: function isSteppedUp() {
806
833
  var _this$store$getState;
807
834
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
808
- var _ref12 = ((_this$store$getState = this.store.getState()) == null ? void 0 : _this$store$getState.auth) || {},
809
- user = _ref12.user;
835
+ var _ref13 = ((_this$store$getState = this.store.getState()) == null ? void 0 : _this$store$getState.auth) || {},
836
+ user = _ref13.user;
810
837
  return _isSteppedUp(user, options);
811
838
  }
812
839
 
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.75.0
1
+ /** @license Frontegg v7.76.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.
@@ -300,8 +300,8 @@ var FronteggApp = /*#__PURE__*/function () {
300
300
  return _ref7.apply(this, arguments);
301
301
  };
302
302
  }();
303
- this.getUsersTableStore = /*#__PURE__*/function () {
304
- var _ref8 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(options) {
303
+ this.renderEditEmailForm = /*#__PURE__*/function () {
304
+ var _ref8 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(container, props, options) {
305
305
  var FronteggAdminPortal;
306
306
  return _regenerator["default"].wrap(function _callee8$(_context8) {
307
307
  while (1) switch (_context8.prev = _context8.next) {
@@ -310,18 +310,24 @@ var FronteggApp = /*#__PURE__*/function () {
310
310
  return _this.loadScript('FronteggAdminPortal');
311
311
  case 2:
312
312
  FronteggAdminPortal = _context8.sent;
313
- return _context8.abrupt("return", FronteggAdminPortal.useUsersTableStore(options));
313
+ return _context8.abrupt("return", FronteggAdminPortal.renderEditEmailForm(container, {
314
+ injector: _this,
315
+ options: _this.options,
316
+ props: props,
317
+ themeOptions: options.themeOptions,
318
+ localizations: options.localizations
319
+ }));
314
320
  case 4:
315
321
  case "end":
316
322
  return _context8.stop();
317
323
  }
318
324
  }, _callee8);
319
325
  }));
320
- return function (_x13) {
326
+ return function (_x13, _x14, _x15) {
321
327
  return _ref8.apply(this, arguments);
322
328
  };
323
329
  }();
324
- this.getInviteUserDialogStore = /*#__PURE__*/function () {
330
+ this.getUsersTableStore = /*#__PURE__*/function () {
325
331
  var _ref9 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9(options) {
326
332
  var FronteggAdminPortal;
327
333
  return _regenerator["default"].wrap(function _callee9$(_context9) {
@@ -331,17 +337,38 @@ var FronteggApp = /*#__PURE__*/function () {
331
337
  return _this.loadScript('FronteggAdminPortal');
332
338
  case 2:
333
339
  FronteggAdminPortal = _context9.sent;
334
- return _context9.abrupt("return", FronteggAdminPortal.useInviteUserDialogStore(options));
340
+ return _context9.abrupt("return", FronteggAdminPortal.useUsersTableStore(options));
335
341
  case 4:
336
342
  case "end":
337
343
  return _context9.stop();
338
344
  }
339
345
  }, _callee9);
340
346
  }));
341
- return function (_x14) {
347
+ return function (_x16) {
342
348
  return _ref9.apply(this, arguments);
343
349
  };
344
350
  }();
351
+ this.getInviteUserDialogStore = /*#__PURE__*/function () {
352
+ var _ref10 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10(options) {
353
+ var FronteggAdminPortal;
354
+ return _regenerator["default"].wrap(function _callee10$(_context10) {
355
+ while (1) switch (_context10.prev = _context10.next) {
356
+ case 0:
357
+ _context10.next = 2;
358
+ return _this.loadScript('FronteggAdminPortal');
359
+ case 2:
360
+ FronteggAdminPortal = _context10.sent;
361
+ return _context10.abrupt("return", FronteggAdminPortal.useInviteUserDialogStore(options));
362
+ case 4:
363
+ case "end":
364
+ return _context10.stop();
365
+ }
366
+ }, _callee10);
367
+ }));
368
+ return function (_x17) {
369
+ return _ref10.apply(this, arguments);
370
+ };
371
+ }();
345
372
  var appName = (0, _utils.formatName)(name);
346
373
  var customElementName = "frontegg-app-".concat(appName);
347
374
  this.iframeRendering = iframeRendering;
@@ -434,9 +461,9 @@ var FronteggApp = /*#__PURE__*/function () {
434
461
  }, {
435
462
  key: "initContainers",
436
463
  value: function () {
437
- var _initContainers = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10(elements) {
438
- return _regenerator["default"].wrap(function _callee10$(_context10) {
439
- while (1) switch (_context10.prev = _context10.next) {
464
+ var _initContainers = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11(elements) {
465
+ return _regenerator["default"].wrap(function _callee11$(_context11) {
466
+ while (1) switch (_context11.prev = _context11.next) {
440
467
  case 0:
441
468
  this.adminPortalEl = elements.adminPortalEl;
442
469
  this.loginBoxEl = elements.loginBoxEl;
@@ -451,7 +478,7 @@ var FronteggApp = /*#__PURE__*/function () {
451
478
  } catch (e) {
452
479
  console.error('Failed to add frontegg-loading to body classList');
453
480
  }
454
- _context10.next = 9;
481
+ _context11.next = 9;
455
482
  return Promise.all([this.loadFeatureFlags(), this.loadAdminBoxMetadata(), this.requestAuthorize()]);
456
483
  case 9:
457
484
  if (!this.options.previewMode && !this.options.customLoginBox) {
@@ -463,11 +490,11 @@ var FronteggApp = /*#__PURE__*/function () {
463
490
  }
464
491
  case 11:
465
492
  case "end":
466
- return _context10.stop();
493
+ return _context11.stop();
467
494
  }
468
- }, _callee10, this);
495
+ }, _callee11, this);
469
496
  }));
470
- function initContainers(_x15) {
497
+ function initContainers(_x18) {
471
498
  return _initContainers.apply(this, arguments);
472
499
  }
473
500
  return initContainers;
@@ -580,15 +607,15 @@ var FronteggApp = /*#__PURE__*/function () {
580
607
  }, {
581
608
  key: "loadLoginBox",
582
609
  value: function () {
583
- var _loadLoginBox = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11() {
610
+ var _loadLoginBox = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee12() {
584
611
  var FronteggLoginBox;
585
- return _regenerator["default"].wrap(function _callee11$(_context11) {
586
- while (1) switch (_context11.prev = _context11.next) {
612
+ return _regenerator["default"].wrap(function _callee12$(_context12) {
613
+ while (1) switch (_context12.prev = _context12.next) {
587
614
  case 0:
588
- _context11.next = 2;
615
+ _context12.next = 2;
589
616
  return this.loadScript('FronteggLoginBox');
590
617
  case 2:
591
- FronteggLoginBox = _context11.sent;
618
+ FronteggLoginBox = _context12.sent;
592
619
  FronteggLoginBox.render(this.loginBoxEl, {
593
620
  injector: this,
594
621
  options: this.options
@@ -604,9 +631,9 @@ var FronteggApp = /*#__PURE__*/function () {
604
631
  this.loadingListeners = [];
605
632
  case 7:
606
633
  case "end":
607
- return _context11.stop();
634
+ return _context12.stop();
608
635
  }
609
- }, _callee11, this);
636
+ }, _callee12, this);
610
637
  }));
611
638
  function loadLoginBox() {
612
639
  return _loadLoginBox.apply(this, arguments);
@@ -616,20 +643,20 @@ var FronteggApp = /*#__PURE__*/function () {
616
643
  }, {
617
644
  key: "showAdminPortal",
618
645
  value: function () {
619
- var _showAdminPortal = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee12(options) {
620
- var _ref10, isMultiApp, _this$queryFeatureFla, _this$queryFeatureFla2, multiAppsFlag, FronteggAdminPortal;
621
- return _regenerator["default"].wrap(function _callee12$(_context12) {
622
- while (1) switch (_context12.prev = _context12.next) {
646
+ var _showAdminPortal = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13(options) {
647
+ var _ref11, isMultiApp, _this$queryFeatureFla, _this$queryFeatureFla2, multiAppsFlag, FronteggAdminPortal;
648
+ return _regenerator["default"].wrap(function _callee13$(_context13) {
649
+ while (1) switch (_context13.prev = _context13.next) {
623
650
  case 0:
624
- _ref10 = options != null ? options : {
651
+ _ref11 = options != null ? options : {
625
652
  isMultiApp: false
626
- }, isMultiApp = _ref10.isMultiApp;
653
+ }, isMultiApp = _ref11.isMultiApp;
627
654
  _this$queryFeatureFla = this.queryFeatureFlags(['multi-apps-admin-portal']), _this$queryFeatureFla2 = (0, _slicedToArray2["default"])(_this$queryFeatureFla, 1), multiAppsFlag = _this$queryFeatureFla2[0];
628
655
  FronteggRestApi.ContextHolder["for"](this.name).setRequestSource(FronteggRestApi.RequestSource.AdminPortal);
629
- _context12.next = 5;
656
+ _context13.next = 5;
630
657
  return this.loadScript('FronteggAdminPortal');
631
658
  case 5:
632
- FronteggAdminPortal = _context12.sent;
659
+ FronteggAdminPortal = _context13.sent;
633
660
  this.adminPortalRenderer = FronteggAdminPortal.render(this.adminPortalEl, {
634
661
  injector: this,
635
662
  options: Object.assign({
@@ -638,11 +665,11 @@ var FronteggApp = /*#__PURE__*/function () {
638
665
  });
639
666
  case 7:
640
667
  case "end":
641
- return _context12.stop();
668
+ return _context13.stop();
642
669
  }
643
- }, _callee12, this);
670
+ }, _callee13, this);
644
671
  }));
645
- function showAdminPortal(_x16) {
672
+ function showAdminPortal(_x19) {
646
673
  return _showAdminPortal.apply(this, arguments);
647
674
  }
648
675
  return showAdminPortal;
@@ -681,15 +708,15 @@ var FronteggApp = /*#__PURE__*/function () {
681
708
  }, {
682
709
  key: "showCheckoutDialog",
683
710
  value: function () {
684
- var _showCheckoutDialog = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13(opts) {
711
+ var _showCheckoutDialog = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee14(opts) {
685
712
  var FronteggAdminPortal;
686
- return _regenerator["default"].wrap(function _callee13$(_context13) {
687
- while (1) switch (_context13.prev = _context13.next) {
713
+ return _regenerator["default"].wrap(function _callee14$(_context14) {
714
+ while (1) switch (_context14.prev = _context14.next) {
688
715
  case 0:
689
- _context13.next = 2;
716
+ _context14.next = 2;
690
717
  return this.loadScript('FronteggAdminPortal');
691
718
  case 2:
692
- FronteggAdminPortal = _context13.sent;
719
+ FronteggAdminPortal = _context14.sent;
693
720
  this.checkoutDialogRenderer = FronteggAdminPortal.renderCheckoutDialog(this.checkoutDialogEl, Object.assign({
694
721
  injector: this
695
722
  }, opts, {
@@ -697,11 +724,11 @@ var FronteggApp = /*#__PURE__*/function () {
697
724
  }));
698
725
  case 4:
699
726
  case "end":
700
- return _context13.stop();
727
+ return _context14.stop();
701
728
  }
702
- }, _callee13, this);
729
+ }, _callee14, this);
703
730
  }));
704
- function showCheckoutDialog(_x17) {
731
+ function showCheckoutDialog(_x20) {
705
732
  return _showCheckoutDialog.apply(this, arguments);
706
733
  }
707
734
  return showCheckoutDialog;
@@ -790,9 +817,9 @@ var FronteggApp = /*#__PURE__*/function () {
790
817
  key: "stepUp",
791
818
  value: function stepUp(options) {
792
819
  var state = this.store.getState();
793
- var _ref11 = (state == null ? void 0 : state.auth) || {},
794
- hostedLoginBox = _ref11.hostedLoginBox,
795
- stepUpUrl = _ref11.routes.stepUpUrl;
820
+ var _ref12 = (state == null ? void 0 : state.auth) || {},
821
+ hostedLoginBox = _ref12.hostedLoginBox,
822
+ stepUpUrl = _ref12.routes.stepUpUrl;
796
823
  if (hostedLoginBox) {
797
824
  this.store.dispatch({
798
825
  type: 'auth/stepUpHostedLogin',
@@ -812,8 +839,8 @@ var FronteggApp = /*#__PURE__*/function () {
812
839
  value: function isSteppedUp() {
813
840
  var _this$store$getState;
814
841
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
815
- var _ref12 = ((_this$store$getState = this.store.getState()) == null ? void 0 : _this$store$getState.auth) || {},
816
- user = _ref12.user;
842
+ var _ref13 = ((_this$store$getState = this.store.getState()) == null ? void 0 : _this$store$getState.auth) || {},
843
+ user = _ref13.user;
817
844
  return (0, FronteggReduxStore.isSteppedUp)(user, options);
818
845
  }
819
846
 
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.75.0
1
+ /** @license Frontegg v7.76.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.75.0'
8
+ cdnVersion: '7.76.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.75.0",
3
+ "version": "7.76.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.75.0"
9
+ "@frontegg/types": "7.76.0-alpha.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [