@frontegg/js 7.69.0 → 7.70.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 +22 -16
- package/FronteggApp/FronteggApp.js +202 -53
- package/index.js +1 -1
- package/initialize.js +1 -1
- package/node/FronteggApp/FronteggApp.js +202 -53
- package/node/index.js +1 -1
- package/node/initialize.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +212 -59
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
|
@@ -527,6 +527,155 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
527
527
|
attributes: attributes
|
|
528
528
|
};
|
|
529
529
|
};
|
|
530
|
+
this.renderUsersTable = /*#__PURE__*/function () {
|
|
531
|
+
var _ref4 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee4(container, props, options) {
|
|
532
|
+
var FronteggAdminPortal;
|
|
533
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee4$(_context4) {
|
|
534
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
535
|
+
case 0:
|
|
536
|
+
_context4.next = 2;
|
|
537
|
+
return _this.loadScript('FronteggAdminPortal');
|
|
538
|
+
case 2:
|
|
539
|
+
FronteggAdminPortal = _context4.sent;
|
|
540
|
+
return _context4.abrupt("return", FronteggAdminPortal.renderUsersTable(container, {
|
|
541
|
+
injector: _this,
|
|
542
|
+
options: _this.options,
|
|
543
|
+
container: container,
|
|
544
|
+
props: props,
|
|
545
|
+
themeOptions: options.themeOptions
|
|
546
|
+
}));
|
|
547
|
+
case 4:
|
|
548
|
+
case "end":
|
|
549
|
+
return _context4.stop();
|
|
550
|
+
}
|
|
551
|
+
}, _callee4);
|
|
552
|
+
}));
|
|
553
|
+
return function (_x, _x2, _x3) {
|
|
554
|
+
return _ref4.apply(this, arguments);
|
|
555
|
+
};
|
|
556
|
+
}();
|
|
557
|
+
this.renderInviteUserDialog = /*#__PURE__*/function () {
|
|
558
|
+
var _ref5 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee5(container, props, options) {
|
|
559
|
+
var FronteggAdminPortal;
|
|
560
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee5$(_context5) {
|
|
561
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
562
|
+
case 0:
|
|
563
|
+
_context5.next = 2;
|
|
564
|
+
return _this.loadScript('FronteggAdminPortal');
|
|
565
|
+
case 2:
|
|
566
|
+
FronteggAdminPortal = _context5.sent;
|
|
567
|
+
return _context5.abrupt("return", FronteggAdminPortal.renderInviteUserDialog(container, {
|
|
568
|
+
injector: _this,
|
|
569
|
+
options: _this.options,
|
|
570
|
+
container: container,
|
|
571
|
+
props: props,
|
|
572
|
+
themeOptions: options.themeOptions
|
|
573
|
+
}));
|
|
574
|
+
case 4:
|
|
575
|
+
case "end":
|
|
576
|
+
return _context5.stop();
|
|
577
|
+
}
|
|
578
|
+
}, _callee5);
|
|
579
|
+
}));
|
|
580
|
+
return function (_x4, _x5, _x6) {
|
|
581
|
+
return _ref5.apply(this, arguments);
|
|
582
|
+
};
|
|
583
|
+
}();
|
|
584
|
+
this.renderChangePasswordForm = /*#__PURE__*/function () {
|
|
585
|
+
var _ref6 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee6(container, props, options) {
|
|
586
|
+
var FronteggAdminPortal;
|
|
587
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee6$(_context6) {
|
|
588
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
589
|
+
case 0:
|
|
590
|
+
_context6.next = 2;
|
|
591
|
+
return _this.loadScript('FronteggAdminPortal');
|
|
592
|
+
case 2:
|
|
593
|
+
FronteggAdminPortal = _context6.sent;
|
|
594
|
+
return _context6.abrupt("return", FronteggAdminPortal.renderChangePasswordForm(container, {
|
|
595
|
+
injector: _this,
|
|
596
|
+
options: _this.options,
|
|
597
|
+
props: props,
|
|
598
|
+
themeOptions: options.themeOptions
|
|
599
|
+
}));
|
|
600
|
+
case 4:
|
|
601
|
+
case "end":
|
|
602
|
+
return _context6.stop();
|
|
603
|
+
}
|
|
604
|
+
}, _callee6);
|
|
605
|
+
}));
|
|
606
|
+
return function (_x7, _x8, _x9) {
|
|
607
|
+
return _ref6.apply(this, arguments);
|
|
608
|
+
};
|
|
609
|
+
}();
|
|
610
|
+
this.renderProfilePage = /*#__PURE__*/function () {
|
|
611
|
+
var _ref7 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee7(container, props, options) {
|
|
612
|
+
var FronteggAdminPortal;
|
|
613
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee7$(_context7) {
|
|
614
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
615
|
+
case 0:
|
|
616
|
+
_context7.next = 2;
|
|
617
|
+
return _this.loadScript('FronteggAdminPortal');
|
|
618
|
+
case 2:
|
|
619
|
+
FronteggAdminPortal = _context7.sent;
|
|
620
|
+
return _context7.abrupt("return", FronteggAdminPortal.renderProfilePage(container, {
|
|
621
|
+
injector: _this,
|
|
622
|
+
options: _this.options,
|
|
623
|
+
props: props,
|
|
624
|
+
themeOptions: options.themeOptions,
|
|
625
|
+
localizations: options.localizations
|
|
626
|
+
}));
|
|
627
|
+
case 4:
|
|
628
|
+
case "end":
|
|
629
|
+
return _context7.stop();
|
|
630
|
+
}
|
|
631
|
+
}, _callee7);
|
|
632
|
+
}));
|
|
633
|
+
return function (_x10, _x11, _x12) {
|
|
634
|
+
return _ref7.apply(this, arguments);
|
|
635
|
+
};
|
|
636
|
+
}();
|
|
637
|
+
this.getUsersTableStore = /*#__PURE__*/function () {
|
|
638
|
+
var _ref8 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee8(options) {
|
|
639
|
+
var FronteggAdminPortal;
|
|
640
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee8$(_context8) {
|
|
641
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
642
|
+
case 0:
|
|
643
|
+
_context8.next = 2;
|
|
644
|
+
return _this.loadScript('FronteggAdminPortal');
|
|
645
|
+
case 2:
|
|
646
|
+
FronteggAdminPortal = _context8.sent;
|
|
647
|
+
return _context8.abrupt("return", FronteggAdminPortal.useUsersTableStore(options));
|
|
648
|
+
case 4:
|
|
649
|
+
case "end":
|
|
650
|
+
return _context8.stop();
|
|
651
|
+
}
|
|
652
|
+
}, _callee8);
|
|
653
|
+
}));
|
|
654
|
+
return function (_x13) {
|
|
655
|
+
return _ref8.apply(this, arguments);
|
|
656
|
+
};
|
|
657
|
+
}();
|
|
658
|
+
this.getInviteUserDialogStore = /*#__PURE__*/function () {
|
|
659
|
+
var _ref9 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee9(options) {
|
|
660
|
+
var FronteggAdminPortal;
|
|
661
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee9$(_context9) {
|
|
662
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
663
|
+
case 0:
|
|
664
|
+
_context9.next = 2;
|
|
665
|
+
return _this.loadScript('FronteggAdminPortal');
|
|
666
|
+
case 2:
|
|
667
|
+
FronteggAdminPortal = _context9.sent;
|
|
668
|
+
return _context9.abrupt("return", FronteggAdminPortal.useInviteUserDialogStore(options));
|
|
669
|
+
case 4:
|
|
670
|
+
case "end":
|
|
671
|
+
return _context9.stop();
|
|
672
|
+
}
|
|
673
|
+
}, _callee9);
|
|
674
|
+
}));
|
|
675
|
+
return function (_x14) {
|
|
676
|
+
return _ref9.apply(this, arguments);
|
|
677
|
+
};
|
|
678
|
+
}();
|
|
530
679
|
var appName = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.formatName)(name);
|
|
531
680
|
var customElementName = "frontegg-app-".concat(appName);
|
|
532
681
|
this.iframeRendering = iframeRendering;
|
|
@@ -619,9 +768,9 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
619
768
|
}, {
|
|
620
769
|
key: "initContainers",
|
|
621
770
|
value: function () {
|
|
622
|
-
var _initContainers = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function
|
|
623
|
-
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function
|
|
624
|
-
while (1) switch (
|
|
771
|
+
var _initContainers = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee10(elements) {
|
|
772
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee10$(_context10) {
|
|
773
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
625
774
|
case 0:
|
|
626
775
|
this.adminPortalEl = elements.adminPortalEl;
|
|
627
776
|
this.loginBoxEl = elements.loginBoxEl;
|
|
@@ -636,7 +785,7 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
636
785
|
} catch (e) {
|
|
637
786
|
console.error('Failed to add frontegg-loading to body classList');
|
|
638
787
|
}
|
|
639
|
-
|
|
788
|
+
_context10.next = 9;
|
|
640
789
|
return Promise.all([this.loadFeatureFlags(), this.loadAdminBoxMetadata(), this.requestAuthorize()]);
|
|
641
790
|
case 9:
|
|
642
791
|
if (!this.options.previewMode && !this.options.customLoginBox) {
|
|
@@ -648,11 +797,11 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
648
797
|
}
|
|
649
798
|
case 11:
|
|
650
799
|
case "end":
|
|
651
|
-
return
|
|
800
|
+
return _context10.stop();
|
|
652
801
|
}
|
|
653
|
-
},
|
|
802
|
+
}, _callee10, this);
|
|
654
803
|
}));
|
|
655
|
-
function initContainers(
|
|
804
|
+
function initContainers(_x15) {
|
|
656
805
|
return _initContainers.apply(this, arguments);
|
|
657
806
|
}
|
|
658
807
|
return initContainers;
|
|
@@ -767,15 +916,15 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
767
916
|
}, {
|
|
768
917
|
key: "loadLoginBox",
|
|
769
918
|
value: function () {
|
|
770
|
-
var _loadLoginBox = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function
|
|
919
|
+
var _loadLoginBox = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee11() {
|
|
771
920
|
var FronteggLoginBox;
|
|
772
|
-
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function
|
|
773
|
-
while (1) switch (
|
|
921
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee11$(_context11) {
|
|
922
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
774
923
|
case 0:
|
|
775
|
-
|
|
924
|
+
_context11.next = 2;
|
|
776
925
|
return this.loadScript('FronteggLoginBox');
|
|
777
926
|
case 2:
|
|
778
|
-
FronteggLoginBox =
|
|
927
|
+
FronteggLoginBox = _context11.sent;
|
|
779
928
|
FronteggLoginBox.render(this.loginBoxEl, {
|
|
780
929
|
injector: this,
|
|
781
930
|
options: this.options
|
|
@@ -791,9 +940,9 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
791
940
|
this.loadingListeners = [];
|
|
792
941
|
case 7:
|
|
793
942
|
case "end":
|
|
794
|
-
return
|
|
943
|
+
return _context11.stop();
|
|
795
944
|
}
|
|
796
|
-
},
|
|
945
|
+
}, _callee11, this);
|
|
797
946
|
}));
|
|
798
947
|
function loadLoginBox() {
|
|
799
948
|
return _loadLoginBox.apply(this, arguments);
|
|
@@ -803,20 +952,20 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
803
952
|
}, {
|
|
804
953
|
key: "showAdminPortal",
|
|
805
954
|
value: function () {
|
|
806
|
-
var _showAdminPortal = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function
|
|
807
|
-
var
|
|
808
|
-
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function
|
|
809
|
-
while (1) switch (
|
|
955
|
+
var _showAdminPortal = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee12(options) {
|
|
956
|
+
var _ref10, isMultiApp, _this$queryFeatureFla, _this$queryFeatureFla2, multiAppsFlag, FronteggAdminPortal;
|
|
957
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee12$(_context12) {
|
|
958
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
810
959
|
case 0:
|
|
811
|
-
|
|
960
|
+
_ref10 = options != null ? options : {
|
|
812
961
|
isMultiApp: false
|
|
813
|
-
}, isMultiApp =
|
|
962
|
+
}, isMultiApp = _ref10.isMultiApp;
|
|
814
963
|
_this$queryFeatureFla = this.queryFeatureFlags(['multi-apps-admin-portal']), _this$queryFeatureFla2 = (0,_babel_runtime_helpers_esm_slicedToArray__WEBPACK_IMPORTED_MODULE_0__["default"])(_this$queryFeatureFla, 1), multiAppsFlag = _this$queryFeatureFla2[0];
|
|
815
964
|
_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](this.name).setRequestSource(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_21__.RequestSource.AdminPortal);
|
|
816
|
-
|
|
965
|
+
_context12.next = 5;
|
|
817
966
|
return this.loadScript('FronteggAdminPortal');
|
|
818
967
|
case 5:
|
|
819
|
-
FronteggAdminPortal =
|
|
968
|
+
FronteggAdminPortal = _context12.sent;
|
|
820
969
|
this.adminPortalRenderer = FronteggAdminPortal.render(this.adminPortalEl, {
|
|
821
970
|
injector: this,
|
|
822
971
|
options: Object.assign({
|
|
@@ -825,11 +974,11 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
825
974
|
});
|
|
826
975
|
case 7:
|
|
827
976
|
case "end":
|
|
828
|
-
return
|
|
977
|
+
return _context12.stop();
|
|
829
978
|
}
|
|
830
|
-
},
|
|
979
|
+
}, _callee12, this);
|
|
831
980
|
}));
|
|
832
|
-
function showAdminPortal(
|
|
981
|
+
function showAdminPortal(_x16) {
|
|
833
982
|
return _showAdminPortal.apply(this, arguments);
|
|
834
983
|
}
|
|
835
984
|
return showAdminPortal;
|
|
@@ -868,15 +1017,15 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
868
1017
|
}, {
|
|
869
1018
|
key: "showCheckoutDialog",
|
|
870
1019
|
value: function () {
|
|
871
|
-
var _showCheckoutDialog = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function
|
|
1020
|
+
var _showCheckoutDialog = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee13(opts) {
|
|
872
1021
|
var FronteggAdminPortal;
|
|
873
|
-
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function
|
|
874
|
-
while (1) switch (
|
|
1022
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee13$(_context13) {
|
|
1023
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
875
1024
|
case 0:
|
|
876
|
-
|
|
1025
|
+
_context13.next = 2;
|
|
877
1026
|
return this.loadScript('FronteggAdminPortal');
|
|
878
1027
|
case 2:
|
|
879
|
-
FronteggAdminPortal =
|
|
1028
|
+
FronteggAdminPortal = _context13.sent;
|
|
880
1029
|
this.checkoutDialogRenderer = FronteggAdminPortal.renderCheckoutDialog(this.checkoutDialogEl, Object.assign({
|
|
881
1030
|
injector: this
|
|
882
1031
|
}, opts, {
|
|
@@ -884,11 +1033,11 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
884
1033
|
}));
|
|
885
1034
|
case 4:
|
|
886
1035
|
case "end":
|
|
887
|
-
return
|
|
1036
|
+
return _context13.stop();
|
|
888
1037
|
}
|
|
889
|
-
},
|
|
1038
|
+
}, _callee13, this);
|
|
890
1039
|
}));
|
|
891
|
-
function showCheckoutDialog(
|
|
1040
|
+
function showCheckoutDialog(_x17) {
|
|
892
1041
|
return _showCheckoutDialog.apply(this, arguments);
|
|
893
1042
|
}
|
|
894
1043
|
return showCheckoutDialog;
|
|
@@ -911,11 +1060,11 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
911
1060
|
key: "getFeatureEntitlements",
|
|
912
1061
|
value:
|
|
913
1062
|
/**
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
1063
|
+
@param key feature key
|
|
1064
|
+
@param customAttributes user attributes
|
|
1065
|
+
@returns if the user is entitled to the given feature. Attaching the justification if not
|
|
1066
|
+
@throws when entitlement is not enabled via frontegg options
|
|
1067
|
+
*/
|
|
919
1068
|
function getFeatureEntitlements(key, customAttributes) {
|
|
920
1069
|
var _this$getEntitlements = this.getEntitlementsQueryData(customAttributes),
|
|
921
1070
|
entitlements = _this$getEntitlements.entitlements,
|
|
@@ -924,11 +1073,11 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
924
1073
|
}
|
|
925
1074
|
|
|
926
1075
|
/**
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
1076
|
+
@param key permission key
|
|
1077
|
+
@param customAttributes user attributes
|
|
1078
|
+
@returns if the user is entitled to the given permission. Attaching the justification if not
|
|
1079
|
+
@throws when entitlement is not enabled via frontegg options
|
|
1080
|
+
*/
|
|
932
1081
|
}, {
|
|
933
1082
|
key: "getPermissionEntitlements",
|
|
934
1083
|
value: function getPermissionEntitlements(key, customAttributes) {
|
|
@@ -939,11 +1088,11 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
939
1088
|
}
|
|
940
1089
|
|
|
941
1090
|
/**
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1091
|
+
@param options - including permission or feature key
|
|
1092
|
+
@param customAttributes user attributes
|
|
1093
|
+
@returns if the user is entitled to the given permission or feature. Attaching the justification if not
|
|
1094
|
+
@throws when entitlement is not enabled via frontegg options
|
|
1095
|
+
*/
|
|
947
1096
|
}, {
|
|
948
1097
|
key: "getEntitlements",
|
|
949
1098
|
value: function getEntitlements(options, customAttributes) {
|
|
@@ -977,9 +1126,9 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
977
1126
|
key: "stepUp",
|
|
978
1127
|
value: function stepUp(options) {
|
|
979
1128
|
var state = this.store.getState();
|
|
980
|
-
var
|
|
981
|
-
hostedLoginBox =
|
|
982
|
-
stepUpUrl =
|
|
1129
|
+
var _ref11 = (state == null ? void 0 : state.auth) || {},
|
|
1130
|
+
hostedLoginBox = _ref11.hostedLoginBox,
|
|
1131
|
+
stepUpUrl = _ref11.routes.stepUpUrl;
|
|
983
1132
|
if (hostedLoginBox) {
|
|
984
1133
|
this.store.dispatch({
|
|
985
1134
|
type: 'auth/stepUpHostedLogin',
|
|
@@ -999,8 +1148,8 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
999
1148
|
value: function isSteppedUp() {
|
|
1000
1149
|
var _this$store$getState;
|
|
1001
1150
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1002
|
-
var
|
|
1003
|
-
user =
|
|
1151
|
+
var _ref12 = ((_this$store$getState = this.store.getState()) == null ? void 0 : _this$store$getState.auth) || {},
|
|
1152
|
+
user = _ref12.user;
|
|
1004
1153
|
return (0,_frontegg_redux_store__WEBPACK_IMPORTED_MODULE_23__.isSteppedUp)(user, options);
|
|
1005
1154
|
}
|
|
1006
1155
|
|
|
@@ -1491,7 +1640,7 @@ var initialize = function initialize(options) {
|
|
|
1491
1640
|
var adminBoxShadowEl = adminPortalContainer.attachShadow({
|
|
1492
1641
|
mode: 'open'
|
|
1493
1642
|
});
|
|
1494
|
-
var loginBoxShadowEl = loginBoxContainer.attachShadow({
|
|
1643
|
+
var loginBoxShadowEl = options.iframeRendering ? loginBoxContainer : loginBoxContainer.attachShadow({
|
|
1495
1644
|
mode: 'open'
|
|
1496
1645
|
});
|
|
1497
1646
|
var checkoutDialogShadowEl = checkoutDialogContainer.attachShadow({
|
|
@@ -1631,7 +1780,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1631
1780
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1632
1781
|
/* harmony export */ });
|
|
1633
1782
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1634
|
-
cdnVersion: '7.
|
|
1783
|
+
cdnVersion: '7.70.0-alpha.0'
|
|
1635
1784
|
});
|
|
1636
1785
|
|
|
1637
1786
|
/***/ }),
|
|
@@ -15017,7 +15166,8 @@ const _excluded = ["callback", "userId"],
|
|
|
15017
15166
|
value: !silentLoading
|
|
15018
15167
|
});
|
|
15019
15168
|
actions.setTeamState({
|
|
15020
|
-
allUsersQueryParams
|
|
15169
|
+
allUsersQueryParams,
|
|
15170
|
+
pageOffset: allUsersQueryParams._offset
|
|
15021
15171
|
});
|
|
15022
15172
|
try {
|
|
15023
15173
|
const [
|
|
@@ -18421,7 +18571,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18421
18571
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
18422
18572
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
18423
18573
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
18424
|
-
/** @license Frontegg v7.
|
|
18574
|
+
/** @license Frontegg v7.70.0-alpha.0
|
|
18425
18575
|
*
|
|
18426
18576
|
* This source code is licensed under the MIT license found in the
|
|
18427
18577
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -28576,7 +28726,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28576
28726
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
28577
28727
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
28578
28728
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
28579
|
-
/** @license Frontegg v7.
|
|
28729
|
+
/** @license Frontegg v7.70.0-alpha.0
|
|
28580
28730
|
*
|
|
28581
28731
|
* This source code is licensed under the MIT license found in the
|
|
28582
28732
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -31210,7 +31360,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31210
31360
|
/* harmony export */ });
|
|
31211
31361
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
31212
31362
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
31213
|
-
/** @license Frontegg v7.
|
|
31363
|
+
/** @license Frontegg v7.70.0-alpha.0
|
|
31214
31364
|
*
|
|
31215
31365
|
* This source code is licensed under the MIT license found in the
|
|
31216
31366
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -31227,6 +31377,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31227
31377
|
|
|
31228
31378
|
|
|
31229
31379
|
|
|
31380
|
+
|
|
31381
|
+
|
|
31382
|
+
|
|
31230
31383
|
/***/ }),
|
|
31231
31384
|
|
|
31232
31385
|
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/conditions/condition.evaluator.js":
|