@frontegg/js 7.69.0-alpha.1 → 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 +222 -145
- 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
|
/***/ }),
|
|
@@ -3868,7 +4017,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3868
4017
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3869
4018
|
/* harmony export */ });
|
|
3870
4019
|
/* harmony import */ var _babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */ "../../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js");
|
|
3871
|
-
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @frontegg/rest-api */ "../../dist/@frontegg/rest-api/auth/interfaces.js");
|
|
3872
4020
|
/* harmony import */ var _interfaces__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./interfaces */ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/interfaces.js");
|
|
3873
4021
|
/* harmony import */ var _state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./state */ "../../dist/@frontegg/redux-store/auth/ForgotPasswordState/state.js");
|
|
3874
4022
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../helpers */ "../../dist/@frontegg/redux-store/helpers/common.js");
|
|
@@ -3878,7 +4026,6 @@ const _excluded = ["callback"];
|
|
|
3878
4026
|
|
|
3879
4027
|
|
|
3880
4028
|
|
|
3881
|
-
|
|
3882
4029
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((store, api, sharedActions) => {
|
|
3883
4030
|
const actions = sharedActions;
|
|
3884
4031
|
const setForgotPasswordState = payload => {
|
|
@@ -3887,87 +4034,26 @@ const _excluded = ["callback"];
|
|
|
3887
4034
|
const resetForgotPasswordState = () => {
|
|
3888
4035
|
(0,_helpers__WEBPACK_IMPORTED_MODULE_1__.deepResetState)(store, ['auth', 'forgotPasswordState'], _state__WEBPACK_IMPORTED_MODULE_2__.initialState);
|
|
3889
4036
|
};
|
|
3890
|
-
const
|
|
3891
|
-
const {
|
|
3892
|
-
identifier
|
|
3893
|
-
} = store.auth.forgotPasswordState;
|
|
3894
|
-
if (!identifier) {
|
|
3895
|
-
var _payload$callback;
|
|
3896
|
-
const error = 'Identifier not found in state for sending recovery email.';
|
|
3897
|
-
setForgotPasswordState({
|
|
3898
|
-
loading: false,
|
|
3899
|
-
error
|
|
3900
|
-
});
|
|
3901
|
-
payload == null ? void 0 : (_payload$callback = payload.callback) == null ? void 0 : _payload$callback.call(payload, false, error);
|
|
3902
|
-
return;
|
|
3903
|
-
}
|
|
4037
|
+
const forgotPassword = async payload => {
|
|
3904
4038
|
setForgotPasswordState({
|
|
3905
|
-
loading: true
|
|
3906
|
-
error: undefined
|
|
4039
|
+
loading: true
|
|
3907
4040
|
});
|
|
3908
4041
|
try {
|
|
3909
|
-
var _payload$
|
|
3910
|
-
await api.auth.forgotPassword(
|
|
3911
|
-
email: identifier
|
|
3912
|
-
});
|
|
4042
|
+
var _payload$callback;
|
|
4043
|
+
await api.auth.forgotPassword(payload);
|
|
3913
4044
|
setForgotPasswordState({
|
|
3914
4045
|
loading: false,
|
|
3915
4046
|
error: undefined,
|
|
3916
4047
|
step: _interfaces__WEBPACK_IMPORTED_MODULE_3__.ForgotPasswordStep.success
|
|
3917
4048
|
});
|
|
3918
|
-
|
|
3919
|
-
} catch (e) {
|
|
3920
|
-
var _payload$callback3;
|
|
3921
|
-
setForgotPasswordState({
|
|
3922
|
-
loading: false,
|
|
3923
|
-
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.errorHandler)(e, 'An error occurred sending recovery email')
|
|
3924
|
-
});
|
|
3925
|
-
payload == null ? void 0 : (_payload$callback3 = payload.callback) == null ? void 0 : _payload$callback3.call(payload, false, e);
|
|
3926
|
-
}
|
|
3927
|
-
};
|
|
3928
|
-
const determinePasswordRecoveryStrategy = async payload => {
|
|
3929
|
-
setForgotPasswordState({
|
|
3930
|
-
loading: true,
|
|
3931
|
-
error: undefined
|
|
3932
|
-
});
|
|
3933
|
-
try {
|
|
3934
|
-
const strategies = await api.auth.getPasswordRecoveryStrategies();
|
|
3935
|
-
const isEmailActive = strategies.some(s => s.strategy === _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.PasswordRecoveryStrategyEnum.EMAIL && s.isActive);
|
|
3936
|
-
const isSmsActive = strategies.some(s => s.strategy === _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.PasswordRecoveryStrategyEnum.SMS && s.isActive);
|
|
3937
|
-
if (isEmailActive && isSmsActive) {
|
|
3938
|
-
var _payload$callback4;
|
|
3939
|
-
setForgotPasswordState({
|
|
3940
|
-
loading: false,
|
|
3941
|
-
step: _interfaces__WEBPACK_IMPORTED_MODULE_3__.ForgotPasswordStep.passwordRecovery
|
|
3942
|
-
});
|
|
3943
|
-
(_payload$callback4 = payload.callback) == null ? void 0 : _payload$callback4.call(payload, true);
|
|
3944
|
-
} else if (isEmailActive) {
|
|
3945
|
-
await sendPasswordRecoveryEmail({
|
|
3946
|
-
callback: payload.callback
|
|
3947
|
-
});
|
|
3948
|
-
} else if (isSmsActive) {
|
|
3949
|
-
var _payload$callback5;
|
|
3950
|
-
setForgotPasswordState({
|
|
3951
|
-
loading: false,
|
|
3952
|
-
step: _interfaces__WEBPACK_IMPORTED_MODULE_3__.ForgotPasswordStep.forgotPasswordSms
|
|
3953
|
-
});
|
|
3954
|
-
(_payload$callback5 = payload.callback) == null ? void 0 : _payload$callback5.call(payload, true);
|
|
3955
|
-
} else {
|
|
3956
|
-
var _payload$callback6;
|
|
3957
|
-
const error = 'No active password recovery methods found.';
|
|
3958
|
-
setForgotPasswordState({
|
|
3959
|
-
loading: false,
|
|
3960
|
-
error
|
|
3961
|
-
});
|
|
3962
|
-
(_payload$callback6 = payload.callback) == null ? void 0 : _payload$callback6.call(payload, false, error);
|
|
3963
|
-
}
|
|
4049
|
+
(_payload$callback = payload.callback) == null ? void 0 : _payload$callback.call(payload, true);
|
|
3964
4050
|
} catch (e) {
|
|
3965
|
-
var _payload$
|
|
4051
|
+
var _payload$callback2;
|
|
3966
4052
|
setForgotPasswordState({
|
|
3967
4053
|
loading: false,
|
|
3968
|
-
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.errorHandler)(e, '
|
|
4054
|
+
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_4__.errorHandler)(e, 'Unknown error occurred')
|
|
3969
4055
|
});
|
|
3970
|
-
(_payload$
|
|
4056
|
+
(_payload$callback2 = payload.callback) == null ? void 0 : _payload$callback2.call(payload, false, e);
|
|
3971
4057
|
}
|
|
3972
4058
|
};
|
|
3973
4059
|
const resetPassword = async payload => {
|
|
@@ -4014,8 +4100,7 @@ const _excluded = ["callback"];
|
|
|
4014
4100
|
return {
|
|
4015
4101
|
setForgotPasswordState,
|
|
4016
4102
|
resetForgotPasswordState,
|
|
4017
|
-
|
|
4018
|
-
sendPasswordRecoveryEmail,
|
|
4103
|
+
forgotPassword,
|
|
4019
4104
|
resetPassword,
|
|
4020
4105
|
loadPasswordConfig
|
|
4021
4106
|
};
|
|
@@ -4037,8 +4122,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4037
4122
|
let ForgotPasswordStep;
|
|
4038
4123
|
(function (ForgotPasswordStep) {
|
|
4039
4124
|
ForgotPasswordStep["forgotPassword"] = "forgotPassword";
|
|
4040
|
-
ForgotPasswordStep["forgotPasswordSms"] = "forgotPasswordSms";
|
|
4041
|
-
ForgotPasswordStep["passwordRecovery"] = "passwordRecovery";
|
|
4042
4125
|
ForgotPasswordStep["success"] = "success";
|
|
4043
4126
|
})(ForgotPasswordStep || (ForgotPasswordStep = {}));
|
|
4044
4127
|
|
|
@@ -4063,7 +4146,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4063
4146
|
const initialState = {
|
|
4064
4147
|
step: _interfaces__WEBPACK_IMPORTED_MODULE_0__.ForgotPasswordStep.forgotPassword,
|
|
4065
4148
|
loading: false,
|
|
4066
|
-
|
|
4149
|
+
email: '',
|
|
4067
4150
|
passwordConfig: null
|
|
4068
4151
|
};
|
|
4069
4152
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (overrideState => (0,_toolkit_proxy__WEBPACK_IMPORTED_MODULE_1__.createProxy)(initialState, overrideState));
|
|
@@ -15083,7 +15166,8 @@ const _excluded = ["callback", "userId"],
|
|
|
15083
15166
|
value: !silentLoading
|
|
15084
15167
|
});
|
|
15085
15168
|
actions.setTeamState({
|
|
15086
|
-
allUsersQueryParams
|
|
15169
|
+
allUsersQueryParams,
|
|
15170
|
+
pageOffset: allUsersQueryParams._offset
|
|
15087
15171
|
});
|
|
15088
15172
|
try {
|
|
15089
15173
|
const [
|
|
@@ -18487,7 +18571,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18487
18571
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
18488
18572
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
18489
18573
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
18490
|
-
/** @license Frontegg v7.
|
|
18574
|
+
/** @license Frontegg v7.70.0-alpha.0
|
|
18491
18575
|
*
|
|
18492
18576
|
* This source code is licensed under the MIT license found in the
|
|
18493
18577
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -27416,9 +27500,6 @@ class AuthenticationApi extends _BaseApiClient__WEBPACK_IMPORTED_MODULE_6__.Base
|
|
|
27416
27500
|
this.deleteIPRestriction = this.securityPolicy.deleteIPRestriction.bind(this.securityPolicy);
|
|
27417
27501
|
this.testCurrentIp = this.securityPolicy.testCurrentIp.bind(this.securityPolicy);
|
|
27418
27502
|
this.testCurrentIpInAllowList = this.securityPolicy.testCurrentIpInAllowList.bind(this.securityPolicy);
|
|
27419
|
-
this.getPasswordRecoveryStrategies = async () => {
|
|
27420
|
-
return this.get(`${_constants__WEBPACK_IMPORTED_MODULE_11__.urls.identity.configurations.v1}/password-recovery/strategies`);
|
|
27421
|
-
};
|
|
27422
27503
|
}
|
|
27423
27504
|
/**
|
|
27424
27505
|
* @returns true if entitlements load should be done
|
|
@@ -27450,7 +27531,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27450
27531
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27451
27532
|
/* harmony export */ LOAD_AUTHORIZATION_FF: () => (/* binding */ LOAD_AUTHORIZATION_FF),
|
|
27452
27533
|
/* harmony export */ MFAStrategyEnum: () => (/* binding */ MFAStrategyEnum),
|
|
27453
|
-
/* harmony export */ PasswordRecoveryStrategyEnum: () => (/* binding */ PasswordRecoveryStrategyEnum),
|
|
27454
27534
|
/* harmony export */ RestrictionType: () => (/* reexport safe */ _secutiry_poilicy_interfaces__WEBPACK_IMPORTED_MODULE_0__.RestrictionType),
|
|
27455
27535
|
/* harmony export */ SecondaryAuthStrategy: () => (/* binding */ SecondaryAuthStrategy),
|
|
27456
27536
|
/* harmony export */ WebAuthnDeviceType: () => (/* binding */ WebAuthnDeviceType)
|
|
@@ -27481,11 +27561,6 @@ let MFAStrategyEnum;
|
|
|
27481
27561
|
MFAStrategyEnum["EmailCode"] = "EmailCode";
|
|
27482
27562
|
})(MFAStrategyEnum || (MFAStrategyEnum = {}));
|
|
27483
27563
|
const LOAD_AUTHORIZATION_FF = 'admin_portal_should_load_authorization';
|
|
27484
|
-
let PasswordRecoveryStrategyEnum;
|
|
27485
|
-
(function (PasswordRecoveryStrategyEnum) {
|
|
27486
|
-
PasswordRecoveryStrategyEnum["EMAIL"] = "email";
|
|
27487
|
-
PasswordRecoveryStrategyEnum["SMS"] = "sms";
|
|
27488
|
-
})(PasswordRecoveryStrategyEnum || (PasswordRecoveryStrategyEnum = {}));
|
|
27489
27564
|
|
|
27490
27565
|
/***/ }),
|
|
27491
27566
|
|
|
@@ -28569,7 +28644,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28569
28644
|
/* harmony export */ MachineToMachineAuthStrategy: () => (/* reexport safe */ _auth_enums__WEBPACK_IMPORTED_MODULE_2__.MachineToMachineAuthStrategy),
|
|
28570
28645
|
/* harmony export */ NotEntitledJustification: () => (/* reexport safe */ _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_15__.NotEntitledJustification),
|
|
28571
28646
|
/* harmony export */ PaginationOrderEnum: () => (/* reexport safe */ _interfaces__WEBPACK_IMPORTED_MODULE_0__.PaginationOrderEnum),
|
|
28572
|
-
/* harmony export */ PasswordRecoveryStrategyEnum: () => (/* reexport safe */ _auth_interfaces__WEBPACK_IMPORTED_MODULE_1__.PasswordRecoveryStrategyEnum),
|
|
28573
28647
|
/* harmony export */ PaymentMethodType: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_44__.PaymentMethodType),
|
|
28574
28648
|
/* harmony export */ PermissionAssignmentTypeEnum: () => (/* reexport safe */ _roles_interfaces__WEBPACK_IMPORTED_MODULE_7__.PermissionAssignmentTypeEnum),
|
|
28575
28649
|
/* harmony export */ ProviderType: () => (/* reexport safe */ _subscriptions__WEBPACK_IMPORTED_MODULE_44__.ProviderType),
|
|
@@ -28652,7 +28726,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28652
28726
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
28653
28727
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
28654
28728
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
28655
|
-
/** @license Frontegg v7.
|
|
28729
|
+
/** @license Frontegg v7.70.0-alpha.0
|
|
28656
28730
|
*
|
|
28657
28731
|
* This source code is licensed under the MIT license found in the
|
|
28658
28732
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -31286,7 +31360,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31286
31360
|
/* harmony export */ });
|
|
31287
31361
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
31288
31362
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
31289
|
-
/** @license Frontegg v7.
|
|
31363
|
+
/** @license Frontegg v7.70.0-alpha.0
|
|
31290
31364
|
*
|
|
31291
31365
|
* This source code is licensed under the MIT license found in the
|
|
31292
31366
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -31303,6 +31377,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31303
31377
|
|
|
31304
31378
|
|
|
31305
31379
|
|
|
31380
|
+
|
|
31381
|
+
|
|
31382
|
+
|
|
31306
31383
|
/***/ }),
|
|
31307
31384
|
|
|
31308
31385
|
/***/ "../../node_modules/@frontegg/entitlements-javascript-commons/dist/conditions/condition.evaluator.js":
|