@frontegg/js 7.100.0 → 7.101.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.
- package/FronteggApp/FronteggApp.d.ts +2 -0
- package/FronteggApp/FronteggApp.js +80 -38
- package/index.js +1 -1
- package/node/FronteggApp/FronteggApp.js +80 -38
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +84 -42
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
|
@@ -749,6 +749,48 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
749
749
|
return _ref12.apply(this, arguments);
|
|
750
750
|
};
|
|
751
751
|
}();
|
|
752
|
+
this.renderScimGuideDialog = /*#__PURE__*/function () {
|
|
753
|
+
var _ref13 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee13(container, props, options) {
|
|
754
|
+
var FronteggAdminPortal;
|
|
755
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee13$(_context13) {
|
|
756
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
757
|
+
case 0:
|
|
758
|
+
_context13.next = 2;
|
|
759
|
+
return _this.loadScript('FronteggAdminPortal');
|
|
760
|
+
case 2:
|
|
761
|
+
FronteggAdminPortal = _context13.sent;
|
|
762
|
+
return _context13.abrupt("return", FronteggAdminPortal.renderScimGuideDialog(container, _this.createCMCRenderOptions(props, options)));
|
|
763
|
+
case 4:
|
|
764
|
+
case "end":
|
|
765
|
+
return _context13.stop();
|
|
766
|
+
}
|
|
767
|
+
}, _callee13);
|
|
768
|
+
}));
|
|
769
|
+
return function (_x22, _x23, _x24) {
|
|
770
|
+
return _ref13.apply(this, arguments);
|
|
771
|
+
};
|
|
772
|
+
}();
|
|
773
|
+
this.getScimGuideDialogStore = /*#__PURE__*/function () {
|
|
774
|
+
var _ref14 = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee14(options) {
|
|
775
|
+
var FronteggAdminPortal;
|
|
776
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee14$(_context14) {
|
|
777
|
+
while (1) switch (_context14.prev = _context14.next) {
|
|
778
|
+
case 0:
|
|
779
|
+
_context14.next = 2;
|
|
780
|
+
return _this.loadScript('FronteggAdminPortal');
|
|
781
|
+
case 2:
|
|
782
|
+
FronteggAdminPortal = _context14.sent;
|
|
783
|
+
return _context14.abrupt("return", FronteggAdminPortal.useScimGuideDialogStore(options));
|
|
784
|
+
case 4:
|
|
785
|
+
case "end":
|
|
786
|
+
return _context14.stop();
|
|
787
|
+
}
|
|
788
|
+
}, _callee14);
|
|
789
|
+
}));
|
|
790
|
+
return function (_x25) {
|
|
791
|
+
return _ref14.apply(this, arguments);
|
|
792
|
+
};
|
|
793
|
+
}();
|
|
752
794
|
var appName = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.formatName)(name);
|
|
753
795
|
var customElementName = "frontegg-app-".concat(appName);
|
|
754
796
|
this.iframeRendering = iframeRendering;
|
|
@@ -841,9 +883,9 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
841
883
|
}, {
|
|
842
884
|
key: "initContainers",
|
|
843
885
|
value: function () {
|
|
844
|
-
var _initContainers = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function
|
|
845
|
-
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function
|
|
846
|
-
while (1) switch (
|
|
886
|
+
var _initContainers = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee15(elements) {
|
|
887
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee15$(_context15) {
|
|
888
|
+
while (1) switch (_context15.prev = _context15.next) {
|
|
847
889
|
case 0:
|
|
848
890
|
this.adminPortalEl = elements.adminPortalEl;
|
|
849
891
|
this.loginBoxEl = elements.loginBoxEl;
|
|
@@ -858,7 +900,7 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
858
900
|
} catch (e) {
|
|
859
901
|
console.error('Failed to add frontegg-loading to body classList');
|
|
860
902
|
}
|
|
861
|
-
|
|
903
|
+
_context15.next = 9;
|
|
862
904
|
return Promise.all([this.loadFeatureFlags(), this.loadAdminBoxMetadata(), this.requestAuthorize()]);
|
|
863
905
|
case 9:
|
|
864
906
|
if (!this.options.previewMode && !this.options.customLoginBox) {
|
|
@@ -870,11 +912,11 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
870
912
|
}
|
|
871
913
|
case 11:
|
|
872
914
|
case "end":
|
|
873
|
-
return
|
|
915
|
+
return _context15.stop();
|
|
874
916
|
}
|
|
875
|
-
},
|
|
917
|
+
}, _callee15, this);
|
|
876
918
|
}));
|
|
877
|
-
function initContainers(
|
|
919
|
+
function initContainers(_x26) {
|
|
878
920
|
return _initContainers.apply(this, arguments);
|
|
879
921
|
}
|
|
880
922
|
return initContainers;
|
|
@@ -989,15 +1031,15 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
989
1031
|
}, {
|
|
990
1032
|
key: "loadLoginBox",
|
|
991
1033
|
value: function () {
|
|
992
|
-
var _loadLoginBox = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function
|
|
1034
|
+
var _loadLoginBox = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee16() {
|
|
993
1035
|
var FronteggLoginBox;
|
|
994
|
-
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function
|
|
995
|
-
while (1) switch (
|
|
1036
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee16$(_context16) {
|
|
1037
|
+
while (1) switch (_context16.prev = _context16.next) {
|
|
996
1038
|
case 0:
|
|
997
|
-
|
|
1039
|
+
_context16.next = 2;
|
|
998
1040
|
return this.loadScript('FronteggLoginBox');
|
|
999
1041
|
case 2:
|
|
1000
|
-
FronteggLoginBox =
|
|
1042
|
+
FronteggLoginBox = _context16.sent;
|
|
1001
1043
|
FronteggLoginBox.render(this.loginBoxEl, {
|
|
1002
1044
|
injector: this,
|
|
1003
1045
|
options: this.options
|
|
@@ -1013,9 +1055,9 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
1013
1055
|
this.loadingListeners = [];
|
|
1014
1056
|
case 7:
|
|
1015
1057
|
case "end":
|
|
1016
|
-
return
|
|
1058
|
+
return _context16.stop();
|
|
1017
1059
|
}
|
|
1018
|
-
},
|
|
1060
|
+
}, _callee16, this);
|
|
1019
1061
|
}));
|
|
1020
1062
|
function loadLoginBox() {
|
|
1021
1063
|
return _loadLoginBox.apply(this, arguments);
|
|
@@ -1025,20 +1067,20 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
1025
1067
|
}, {
|
|
1026
1068
|
key: "showAdminPortal",
|
|
1027
1069
|
value: function () {
|
|
1028
|
-
var _showAdminPortal = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function
|
|
1029
|
-
var
|
|
1030
|
-
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function
|
|
1031
|
-
while (1) switch (
|
|
1070
|
+
var _showAdminPortal = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee17(options) {
|
|
1071
|
+
var _ref15, isMultiApp, _this$queryFeatureFla, _this$queryFeatureFla2, multiAppsFlag, FronteggAdminPortal;
|
|
1072
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee17$(_context17) {
|
|
1073
|
+
while (1) switch (_context17.prev = _context17.next) {
|
|
1032
1074
|
case 0:
|
|
1033
|
-
|
|
1075
|
+
_ref15 = options != null ? options : {
|
|
1034
1076
|
isMultiApp: false
|
|
1035
|
-
}, isMultiApp =
|
|
1077
|
+
}, isMultiApp = _ref15.isMultiApp;
|
|
1036
1078
|
_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];
|
|
1037
1079
|
_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_17__.ContextHolder["for"](this.name).setRequestSource(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_21__.RequestSource.AdminPortal);
|
|
1038
|
-
|
|
1080
|
+
_context17.next = 5;
|
|
1039
1081
|
return this.loadScript('FronteggAdminPortal');
|
|
1040
1082
|
case 5:
|
|
1041
|
-
FronteggAdminPortal =
|
|
1083
|
+
FronteggAdminPortal = _context17.sent;
|
|
1042
1084
|
this.adminPortalRenderer = FronteggAdminPortal.render(this.adminPortalEl, {
|
|
1043
1085
|
injector: this,
|
|
1044
1086
|
options: Object.assign({
|
|
@@ -1047,11 +1089,11 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
1047
1089
|
});
|
|
1048
1090
|
case 7:
|
|
1049
1091
|
case "end":
|
|
1050
|
-
return
|
|
1092
|
+
return _context17.stop();
|
|
1051
1093
|
}
|
|
1052
|
-
},
|
|
1094
|
+
}, _callee17, this);
|
|
1053
1095
|
}));
|
|
1054
|
-
function showAdminPortal(
|
|
1096
|
+
function showAdminPortal(_x27) {
|
|
1055
1097
|
return _showAdminPortal.apply(this, arguments);
|
|
1056
1098
|
}
|
|
1057
1099
|
return showAdminPortal;
|
|
@@ -1090,15 +1132,15 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
1090
1132
|
}, {
|
|
1091
1133
|
key: "showCheckoutDialog",
|
|
1092
1134
|
value: function () {
|
|
1093
|
-
var _showCheckoutDialog = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function
|
|
1135
|
+
var _showCheckoutDialog = (0,_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_1__["default"])( /*#__PURE__*/_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().mark(function _callee18(opts) {
|
|
1094
1136
|
var FronteggAdminPortal;
|
|
1095
|
-
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function
|
|
1096
|
-
while (1) switch (
|
|
1137
|
+
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_4___default().wrap(function _callee18$(_context18) {
|
|
1138
|
+
while (1) switch (_context18.prev = _context18.next) {
|
|
1097
1139
|
case 0:
|
|
1098
|
-
|
|
1140
|
+
_context18.next = 2;
|
|
1099
1141
|
return this.loadScript('FronteggAdminPortal');
|
|
1100
1142
|
case 2:
|
|
1101
|
-
FronteggAdminPortal =
|
|
1143
|
+
FronteggAdminPortal = _context18.sent;
|
|
1102
1144
|
this.checkoutDialogRenderer = FronteggAdminPortal.renderCheckoutDialog(this.checkoutDialogEl, Object.assign({
|
|
1103
1145
|
injector: this
|
|
1104
1146
|
}, opts, {
|
|
@@ -1106,11 +1148,11 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
1106
1148
|
}));
|
|
1107
1149
|
case 4:
|
|
1108
1150
|
case "end":
|
|
1109
|
-
return
|
|
1151
|
+
return _context18.stop();
|
|
1110
1152
|
}
|
|
1111
|
-
},
|
|
1153
|
+
}, _callee18, this);
|
|
1112
1154
|
}));
|
|
1113
|
-
function showCheckoutDialog(
|
|
1155
|
+
function showCheckoutDialog(_x28) {
|
|
1114
1156
|
return _showCheckoutDialog.apply(this, arguments);
|
|
1115
1157
|
}
|
|
1116
1158
|
return showCheckoutDialog;
|
|
@@ -1199,9 +1241,9 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
1199
1241
|
key: "stepUp",
|
|
1200
1242
|
value: function stepUp(options) {
|
|
1201
1243
|
var state = this.store.getState();
|
|
1202
|
-
var
|
|
1203
|
-
hostedLoginBox =
|
|
1204
|
-
stepUpUrl =
|
|
1244
|
+
var _ref16 = (state == null ? void 0 : state.auth) || {},
|
|
1245
|
+
hostedLoginBox = _ref16.hostedLoginBox,
|
|
1246
|
+
stepUpUrl = _ref16.routes.stepUpUrl;
|
|
1205
1247
|
if (hostedLoginBox) {
|
|
1206
1248
|
this.store.dispatch({
|
|
1207
1249
|
type: 'auth/stepUpHostedLogin',
|
|
@@ -1221,8 +1263,8 @@ var FronteggApp = /*#__PURE__*/function () {
|
|
|
1221
1263
|
value: function isSteppedUp() {
|
|
1222
1264
|
var _this$store$getState;
|
|
1223
1265
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1224
|
-
var
|
|
1225
|
-
user =
|
|
1266
|
+
var _ref17 = ((_this$store$getState = this.store.getState()) == null ? void 0 : _this$store$getState.auth) || {},
|
|
1267
|
+
user = _ref17.user;
|
|
1226
1268
|
return (0,_frontegg_redux_store__WEBPACK_IMPORTED_MODULE_23__.isSteppedUp)(user, options);
|
|
1227
1269
|
}
|
|
1228
1270
|
|
|
@@ -1881,7 +1923,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1881
1923
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1882
1924
|
/* harmony export */ });
|
|
1883
1925
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1884
|
-
cdnVersion: '7.
|
|
1926
|
+
cdnVersion: '7.101.0-alpha.1'
|
|
1885
1927
|
});
|
|
1886
1928
|
|
|
1887
1929
|
/***/ }),
|
|
@@ -19853,7 +19895,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19853
19895
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
19854
19896
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
19855
19897
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
19856
|
-
/** @license Frontegg v7.
|
|
19898
|
+
/** @license Frontegg v7.101.0-alpha.1
|
|
19857
19899
|
*
|
|
19858
19900
|
* This source code is licensed under the MIT license found in the
|
|
19859
19901
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -30180,7 +30222,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30180
30222
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
30181
30223
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
30182
30224
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
30183
|
-
/** @license Frontegg v7.
|
|
30225
|
+
/** @license Frontegg v7.101.0-alpha.1
|
|
30184
30226
|
*
|
|
30185
30227
|
* This source code is licensed under the MIT license found in the
|
|
30186
30228
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -32975,7 +33017,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32975
33017
|
/* harmony export */ });
|
|
32976
33018
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
32977
33019
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
32978
|
-
/** @license Frontegg v7.
|
|
33020
|
+
/** @license Frontegg v7.101.0-alpha.1
|
|
32979
33021
|
*
|
|
32980
33022
|
* This source code is licensed under the MIT license found in the
|
|
32981
33023
|
* LICENSE file in the root directory of this source tree.
|