@frontegg/js 7.107.0-alpha.1 → 7.107.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/index.js +1 -1
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +33 -20
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
package/index.js
CHANGED
package/node/index.js
CHANGED
package/node/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/js",
|
|
3
|
-
"version": "7.107.0
|
|
3
|
+
"version": "7.107.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.107.0
|
|
9
|
+
"@frontegg/types": "7.107.0"
|
|
10
10
|
},
|
|
11
11
|
"browserslist": {
|
|
12
12
|
"production": [
|
|
@@ -1924,7 +1924,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1924
1924
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1925
1925
|
/* harmony export */ });
|
|
1926
1926
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1927
|
-
cdnVersion: '7.107.0
|
|
1927
|
+
cdnVersion: '7.107.0'
|
|
1928
1928
|
});
|
|
1929
1929
|
|
|
1930
1930
|
/***/ }),
|
|
@@ -5270,16 +5270,19 @@ const _excluded = ["roleIds", "userIds"];
|
|
|
5270
5270
|
value: true
|
|
5271
5271
|
});
|
|
5272
5272
|
try {
|
|
5273
|
+
var _payload$filter;
|
|
5274
|
+
const filterParam = (_payload$filter = payload.filter) != null && _payload$filter.length ? payload.filterType === 'name' ? {
|
|
5275
|
+
_namePrefix: payload.filter
|
|
5276
|
+
} : {
|
|
5277
|
+
_email: payload.filter
|
|
5278
|
+
} : {};
|
|
5273
5279
|
const {
|
|
5274
5280
|
items: teamUsers
|
|
5275
|
-
} = await api.users.
|
|
5276
|
-
_filter: payload.filter,
|
|
5281
|
+
} = await api.users.getUsersV3((0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_1__["default"])({}, filterParam, {
|
|
5277
5282
|
_offset: payload.pageOffset,
|
|
5278
5283
|
_limit: payload.pageSize,
|
|
5279
5284
|
_includeSubTenants: false
|
|
5280
|
-
});
|
|
5281
|
-
|
|
5282
|
-
// @ts-ignore // TODO: fix type in rest-api / group state or add mapper
|
|
5285
|
+
}));
|
|
5283
5286
|
setGroupsState({
|
|
5284
5287
|
teamUsers
|
|
5285
5288
|
});
|
|
@@ -5329,8 +5332,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5329
5332
|
/* harmony export */ GroupRelations: () => (/* binding */ GroupRelations),
|
|
5330
5333
|
/* harmony export */ GroupsStateKeys: () => (/* binding */ GroupsStateKeys)
|
|
5331
5334
|
/* harmony export */ });
|
|
5332
|
-
// TODO: import from after adding teams State
|
|
5333
|
-
|
|
5334
5335
|
let GroupsStateKeys;
|
|
5335
5336
|
(function (GroupsStateKeys) {
|
|
5336
5337
|
GroupsStateKeys["CREATE_GROUP"] = "CREATE_GROUP";
|
|
@@ -12620,9 +12621,13 @@ const _excluded = ["callback"],
|
|
|
12620
12621
|
*/
|
|
12621
12622
|
const __securityCenterSagaWrapper = action => {
|
|
12622
12623
|
return async (...args) => {
|
|
12623
|
-
await action(...args);
|
|
12624
|
+
const result = await action(...args);
|
|
12625
|
+
if (result === false) {
|
|
12626
|
+
return result;
|
|
12627
|
+
}
|
|
12624
12628
|
await actions.loadRecommendations((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.withRetryConfig)());
|
|
12625
12629
|
await actions.loadInsights((0,_helpers__WEBPACK_IMPORTED_MODULE_3__.withRetryConfig)());
|
|
12630
|
+
return result;
|
|
12626
12631
|
};
|
|
12627
12632
|
};
|
|
12628
12633
|
const setRestrictionsState = state => {
|
|
@@ -12638,6 +12643,9 @@ const _excluded = ["callback"],
|
|
|
12638
12643
|
Object.assign(store.auth.restrictionsState.countryRestrictions, state);
|
|
12639
12644
|
};
|
|
12640
12645
|
const loadIpRestrictions = async () => {
|
|
12646
|
+
if (store.auth.restrictionsState.ipRestrictions.loading) {
|
|
12647
|
+
return false;
|
|
12648
|
+
}
|
|
12641
12649
|
setIpRestrictionsState({
|
|
12642
12650
|
loading: true,
|
|
12643
12651
|
error: null
|
|
@@ -12876,6 +12884,9 @@ const _excluded = ["callback"],
|
|
|
12876
12884
|
}
|
|
12877
12885
|
};
|
|
12878
12886
|
const loadEmailDomainRestrictions = async () => {
|
|
12887
|
+
if (store.auth.restrictionsState.emailDomainRestrictions.loading) {
|
|
12888
|
+
return false;
|
|
12889
|
+
}
|
|
12879
12890
|
setEmailDomainRestrictionsState({
|
|
12880
12891
|
loading: true,
|
|
12881
12892
|
error: null
|
|
@@ -13001,6 +13012,9 @@ const _excluded = ["callback"],
|
|
|
13001
13012
|
}
|
|
13002
13013
|
};
|
|
13003
13014
|
const loadCountryRestrictions = async () => {
|
|
13015
|
+
if (store.auth.restrictionsState.countryRestrictions.loading) {
|
|
13016
|
+
return false;
|
|
13017
|
+
}
|
|
13004
13018
|
setCountryRestrictionsState({
|
|
13005
13019
|
loading: true,
|
|
13006
13020
|
error: null
|
|
@@ -13147,17 +13161,13 @@ const _excluded = ["callback"],
|
|
|
13147
13161
|
callback == null ? void 0 : callback(false, e);
|
|
13148
13162
|
}
|
|
13149
13163
|
};
|
|
13150
|
-
const wrappedLoadIpRestrictions = __securityCenterSagaWrapper(loadIpRestrictions);
|
|
13151
13164
|
const wrappedSaveIpRestriction = __securityCenterSagaWrapper(saveIpRestriction);
|
|
13152
13165
|
const wrappedSaveIpRestrictionsConfig = __securityCenterSagaWrapper(saveIpRestrictionsConfig);
|
|
13153
13166
|
const wrappedDeleteIpRestriction = __securityCenterSagaWrapper(deleteIpRestriction);
|
|
13154
|
-
const wrappedCheckIfUserIpValid = __securityCenterSagaWrapper(checkIfUserIpValid);
|
|
13155
13167
|
const wrappedAddCurrentUserIpAndActivate = __securityCenterSagaWrapper(addCurrentUserIpAndActivate);
|
|
13156
|
-
const wrappedLoadEmailDomainRestrictions = __securityCenterSagaWrapper(loadEmailDomainRestrictions);
|
|
13157
13168
|
const wrappedSaveEmailDomainRestriction = __securityCenterSagaWrapper(saveEmailDomainRestriction);
|
|
13158
13169
|
const wrappedSaveEmailDomainRestrictionsConfig = __securityCenterSagaWrapper(saveEmailDomainRestrictionsConfig);
|
|
13159
13170
|
const wrappedDeleteEmailDomainRestriction = __securityCenterSagaWrapper(deleteEmailDomainRestriction);
|
|
13160
|
-
const wrappedLoadCountryRestrictions = __securityCenterSagaWrapper(loadCountryRestrictions);
|
|
13161
13171
|
const wrappedSaveCountryRestrictionsConfig = __securityCenterSagaWrapper(saveCountryRestrictionsConfig);
|
|
13162
13172
|
const wrappedSaveCountryRestrictions = __securityCenterSagaWrapper(saveCountryRestrictions);
|
|
13163
13173
|
const wrappedAddCurrentUserCountryAndActivate = __securityCenterSagaWrapper(addCurrentUserCountryAndActivate);
|
|
@@ -13169,17 +13179,17 @@ const _excluded = ["callback"],
|
|
|
13169
13179
|
setCountryRestrictionsState,
|
|
13170
13180
|
__securityCenterSagaWrapper,
|
|
13171
13181
|
// actions
|
|
13172
|
-
loadIpRestrictions
|
|
13182
|
+
loadIpRestrictions,
|
|
13173
13183
|
saveIpRestriction: wrappedSaveIpRestriction,
|
|
13174
13184
|
saveIpRestrictionsConfig: wrappedSaveIpRestrictionsConfig,
|
|
13175
13185
|
deleteIpRestriction: wrappedDeleteIpRestriction,
|
|
13176
|
-
checkIfUserIpValid
|
|
13186
|
+
checkIfUserIpValid,
|
|
13177
13187
|
addCurrentUserIpAndActivate: wrappedAddCurrentUserIpAndActivate,
|
|
13178
|
-
loadEmailDomainRestrictions
|
|
13188
|
+
loadEmailDomainRestrictions,
|
|
13179
13189
|
saveEmailDomainRestriction: wrappedSaveEmailDomainRestriction,
|
|
13180
13190
|
saveEmailDomainRestrictionsConfig: wrappedSaveEmailDomainRestrictionsConfig,
|
|
13181
13191
|
deleteEmailDomainRestriction: wrappedDeleteEmailDomainRestriction,
|
|
13182
|
-
loadCountryRestrictions
|
|
13192
|
+
loadCountryRestrictions,
|
|
13183
13193
|
saveCountryRestrictionsConfig: wrappedSaveCountryRestrictionsConfig,
|
|
13184
13194
|
saveCountryRestrictions: wrappedSaveCountryRestrictions,
|
|
13185
13195
|
addCurrentUserCountryAndActivate: wrappedAddCurrentUserCountryAndActivate
|
|
@@ -20241,7 +20251,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20241
20251
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
20242
20252
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
20243
20253
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
20244
|
-
/** @license Frontegg v7.107.0
|
|
20254
|
+
/** @license Frontegg v7.107.0
|
|
20245
20255
|
*
|
|
20246
20256
|
* This source code is licensed under the MIT license found in the
|
|
20247
20257
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -22171,6 +22181,7 @@ const _excluded = ["callback"],
|
|
|
22171
22181
|
},
|
|
22172
22182
|
loading: false
|
|
22173
22183
|
});
|
|
22184
|
+
return undefined;
|
|
22174
22185
|
};
|
|
22175
22186
|
mockedActions.loadEmailDomainRestrictions = async () => {
|
|
22176
22187
|
mockedActions.setEmailDomainRestrictionsState({
|
|
@@ -22192,6 +22203,7 @@ const _excluded = ["callback"],
|
|
|
22192
22203
|
}
|
|
22193
22204
|
}
|
|
22194
22205
|
});
|
|
22206
|
+
return undefined;
|
|
22195
22207
|
};
|
|
22196
22208
|
mockedActions.loadCountryRestrictions = async () => {
|
|
22197
22209
|
mockedActions.setCountryRestrictionsState({
|
|
@@ -22213,6 +22225,7 @@ const _excluded = ["callback"],
|
|
|
22213
22225
|
}
|
|
22214
22226
|
}
|
|
22215
22227
|
});
|
|
22228
|
+
return undefined;
|
|
22216
22229
|
};
|
|
22217
22230
|
mockedActions.saveIpRestriction = async payload => {
|
|
22218
22231
|
var _ipRestrictionsState$, _ipRestrictionsState$2, _newRestriction$isAct;
|
|
@@ -30762,7 +30775,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30762
30775
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
30763
30776
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
30764
30777
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
30765
|
-
/** @license Frontegg v7.107.0
|
|
30778
|
+
/** @license Frontegg v7.107.0
|
|
30766
30779
|
*
|
|
30767
30780
|
* This source code is licensed under the MIT license found in the
|
|
30768
30781
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -33559,7 +33572,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33559
33572
|
/* harmony export */ });
|
|
33560
33573
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
33561
33574
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
33562
|
-
/** @license Frontegg v7.107.0
|
|
33575
|
+
/** @license Frontegg v7.107.0
|
|
33563
33576
|
*
|
|
33564
33577
|
* This source code is licensed under the MIT license found in the
|
|
33565
33578
|
* LICENSE file in the root directory of this source tree.
|