@frontegg/js 6.13.0 → 6.31.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/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 +38 -22
- package/umd/frontegg.production.min.js +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,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/js",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.31.0-alpha.0",
|
|
4
4
|
"main": "./node/index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@babel/runtime": "^7.18.6",
|
|
8
|
-
"@frontegg/types": "6.
|
|
8
|
+
"@frontegg/types": "6.31.0-alpha.0"
|
|
9
9
|
},
|
|
10
10
|
"browserslist": {
|
|
11
11
|
"production": [
|
|
@@ -1260,7 +1260,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1260
1260
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1261
1261
|
/* harmony export */ });
|
|
1262
1262
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1263
|
-
"cdnVersion": "6.
|
|
1263
|
+
"cdnVersion": "6.31.0-alpha.0"
|
|
1264
1264
|
});
|
|
1265
1265
|
|
|
1266
1266
|
/***/ }),
|
|
@@ -10190,7 +10190,8 @@ const _excluded = ["callback"],
|
|
|
10190
10190
|
|
|
10191
10191
|
|
|
10192
10192
|
|
|
10193
|
-
const selectTeamState = () => (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(_ => _[_constants__WEBPACK_IMPORTED_MODULE_3__.authStoreName].teamState);
|
|
10193
|
+
const selectTeamState = () => (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.select)(_ => _[_constants__WEBPACK_IMPORTED_MODULE_3__.authStoreName].teamState); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10194
|
+
|
|
10194
10195
|
|
|
10195
10196
|
function* loadUsers({
|
|
10196
10197
|
payload
|
|
@@ -10256,7 +10257,8 @@ function* loadUsers({
|
|
|
10256
10257
|
key: _interfaces__WEBPACK_IMPORTED_MODULE_5__.TeamStateKeys.USERS,
|
|
10257
10258
|
value: false
|
|
10258
10259
|
}));
|
|
10259
|
-
}
|
|
10260
|
+
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
10261
|
+
|
|
10260
10262
|
|
|
10261
10263
|
function* loadAllSubTenantsUsers({
|
|
10262
10264
|
payload
|
|
@@ -11551,7 +11553,7 @@ function* tenantsSagas() {
|
|
|
11551
11553
|
* Preview Sagas
|
|
11552
11554
|
*********************************/
|
|
11553
11555
|
|
|
11554
|
-
function* loadTenantsMock(
|
|
11556
|
+
function* loadTenantsMock() {
|
|
11555
11557
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_0__.put)(_reducer__WEBPACK_IMPORTED_MODULE_1__.actions.setTenantsState({
|
|
11556
11558
|
loading: true
|
|
11557
11559
|
}));
|
|
@@ -12526,7 +12528,8 @@ const lookup = new Uint8Array(256);
|
|
|
12526
12528
|
|
|
12527
12529
|
for (let i = 0; i < chars.length; i++) {
|
|
12528
12530
|
lookup[chars.charCodeAt(i)] = i;
|
|
12529
|
-
}
|
|
12531
|
+
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12532
|
+
|
|
12530
12533
|
|
|
12531
12534
|
const base64urlEncode = arraybuffer => {
|
|
12532
12535
|
const bytes = new Uint8Array(arraybuffer);
|
|
@@ -12551,8 +12554,8 @@ const base64urlEncode = arraybuffer => {
|
|
|
12551
12554
|
};
|
|
12552
12555
|
const base64urlDecode = base64string => {
|
|
12553
12556
|
const bufferLength = base64string.length * 0.75;
|
|
12554
|
-
|
|
12555
|
-
|
|
12557
|
+
const len = base64string.length;
|
|
12558
|
+
let i,
|
|
12556
12559
|
p = 0,
|
|
12557
12560
|
encoded1,
|
|
12558
12561
|
encoded2,
|
|
@@ -12574,6 +12577,7 @@ const base64urlDecode = base64string => {
|
|
|
12574
12577
|
};
|
|
12575
12578
|
const publicKeyCredentialToJSON = pubKeyCred => {
|
|
12576
12579
|
if (pubKeyCred instanceof Array) {
|
|
12580
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
12577
12581
|
const arr = [];
|
|
12578
12582
|
|
|
12579
12583
|
for (const i of pubKeyCred) {
|
|
@@ -12733,6 +12737,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12733
12737
|
/* harmony export */ "type2ApiPost": () => (/* binding */ type2ApiPost)
|
|
12734
12738
|
/* harmony export */ });
|
|
12735
12739
|
/* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/index.js");
|
|
12740
|
+
/* eslint-disable */
|
|
12736
12741
|
|
|
12737
12742
|
const type2ApiGet = {
|
|
12738
12743
|
slack: _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_0__.api.connectivity.getSlackConfiguration,
|
|
@@ -12910,6 +12915,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12910
12915
|
const _excluded = ["id"],
|
|
12911
12916
|
_excluded2 = ["id", "enabled"];
|
|
12912
12917
|
|
|
12918
|
+
/* eslint-disable */
|
|
12919
|
+
|
|
12913
12920
|
|
|
12914
12921
|
|
|
12915
12922
|
|
|
@@ -13550,6 +13557,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13550
13557
|
/* harmony import */ var _babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/esm/extends */ "../../node_modules/@babel/runtime/helpers/esm/extends.js");
|
|
13551
13558
|
/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @reduxjs/toolkit */ "../../node_modules/@reduxjs/toolkit/dist/redux-toolkit.esm.js");
|
|
13552
13559
|
|
|
13560
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13553
13561
|
|
|
13554
13562
|
function omitProps(props, keys) {
|
|
13555
13563
|
const newProps = (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, props);
|
|
@@ -14240,7 +14248,8 @@ function* loadSubscriptionTenant() {
|
|
|
14240
14248
|
return (_state$auth = state.auth) == null ? void 0 : (_state$auth$user = _state$auth.user) == null ? void 0 : _state$auth$user.tenantId;
|
|
14241
14249
|
});
|
|
14242
14250
|
yield (0,_Information_saga__WEBPACK_IMPORTED_MODULE_2__.loadSummaries)(tenantId);
|
|
14243
|
-
}
|
|
14251
|
+
} // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14252
|
+
|
|
14244
14253
|
|
|
14245
14254
|
function* loadSubscription() {
|
|
14246
14255
|
yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_0__.put)(_index__WEBPACK_IMPORTED_MODULE_1__.subscriptionActions.setLoading(true));
|
|
@@ -15592,7 +15601,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15592
15601
|
|
|
15593
15602
|
const initialState = {
|
|
15594
15603
|
context: undefined,
|
|
15595
|
-
urlStrategy: 'path'
|
|
15604
|
+
urlStrategy: 'path',
|
|
15605
|
+
previewMode: false
|
|
15596
15606
|
};
|
|
15597
15607
|
const {
|
|
15598
15608
|
reducer: rootReducer
|
|
@@ -15643,6 +15653,7 @@ const createFronteggStore = (rootInitialState, storeHolder, previewMode = false,
|
|
|
15643
15653
|
holder.store = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_6__.configureStore)({
|
|
15644
15654
|
middleware,
|
|
15645
15655
|
preloadedState: {
|
|
15656
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
15646
15657
|
root: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, rootInitialState, {
|
|
15647
15658
|
previewMode,
|
|
15648
15659
|
urlStrategy: urlStrategy
|
|
@@ -15771,12 +15782,11 @@ const actions = {
|
|
|
15771
15782
|
* the reducers and actions as standalone function
|
|
15772
15783
|
*/
|
|
15773
15784
|
|
|
15774
|
-
// noinspection JSUnusedLocalSymbols
|
|
15775
|
-
|
|
15776
15785
|
/**
|
|
15777
15786
|
* if you see error in matcher that's mean the DispatchAction does not
|
|
15778
15787
|
* contains the same functions in reducers and actions
|
|
15779
15788
|
*/
|
|
15789
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15780
15790
|
const Matcher = {};
|
|
15781
15791
|
|
|
15782
15792
|
|
|
@@ -15942,6 +15952,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15942
15952
|
/* harmony export */ "recomposeColor": () => (/* binding */ recomposeColor),
|
|
15943
15953
|
/* harmony export */ "rgbToHex": () => (/* binding */ rgbToHex)
|
|
15944
15954
|
/* harmony export */ });
|
|
15955
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
15956
|
+
|
|
15945
15957
|
/**
|
|
15946
15958
|
* Returns a number whose value is limited to the given range.
|
|
15947
15959
|
* @param {number} value The value to be clamped
|
|
@@ -16003,25 +16015,27 @@ function decomposeColor(color) {
|
|
|
16003
16015
|
throw new Error('MUI: Unsupported `%s` color.\n' + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). ' + color);
|
|
16004
16016
|
}
|
|
16005
16017
|
|
|
16006
|
-
|
|
16018
|
+
const valuesStr = color.substring(marker + 1, color.length - 1);
|
|
16007
16019
|
let colorSpace;
|
|
16020
|
+
let valuesColor;
|
|
16008
16021
|
|
|
16009
16022
|
if (type === 'color') {
|
|
16010
|
-
|
|
16011
|
-
colorSpace =
|
|
16023
|
+
valuesColor = valuesStr.split(' ');
|
|
16024
|
+
colorSpace = valuesColor.shift();
|
|
16025
|
+
|
|
16026
|
+
if (valuesColor.length === 4 && valuesColor[3].charAt(0) === '/') {
|
|
16027
|
+
valuesColor[3] = valuesColor[3].substr(1);
|
|
16028
|
+
} // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
16012
16029
|
|
|
16013
|
-
if (values.length === 4 && values[3].charAt(0) === '/') {
|
|
16014
|
-
values[3] = values[3].substr(1);
|
|
16015
|
-
}
|
|
16016
16030
|
|
|
16017
16031
|
if (['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].indexOf(colorSpace) === -1) {
|
|
16018
16032
|
throw new Error('MUI: unsupported `%s` color space.\n' + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' + colorSpace);
|
|
16019
16033
|
}
|
|
16020
16034
|
} else {
|
|
16021
|
-
|
|
16035
|
+
valuesColor = valuesStr.split(',');
|
|
16022
16036
|
}
|
|
16023
16037
|
|
|
16024
|
-
values =
|
|
16038
|
+
const values = valuesColor.map(value => parseFloat(value));
|
|
16025
16039
|
return {
|
|
16026
16040
|
type,
|
|
16027
16041
|
values,
|
|
@@ -16230,9 +16244,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16230
16244
|
/* harmony import */ var _colorManipulator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./colorManipulator */ "../../dist/@frontegg/types/Metadata/colorManipulator.js");
|
|
16231
16245
|
|
|
16232
16246
|
|
|
16247
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
16248
|
+
|
|
16233
16249
|
|
|
16234
16250
|
const generateMainColorObject = color => {
|
|
16235
|
-
if (
|
|
16251
|
+
if (color) {
|
|
16236
16252
|
return {
|
|
16237
16253
|
main: color,
|
|
16238
16254
|
light: (0,_colorManipulator__WEBPACK_IMPORTED_MODULE_1__.rgbToHex)((0,_colorManipulator__WEBPACK_IMPORTED_MODULE_1__.lighten)(color, 0.4)),
|
|
@@ -16244,7 +16260,7 @@ const generateMainColorObject = color => {
|
|
|
16244
16260
|
};
|
|
16245
16261
|
|
|
16246
16262
|
const generateSubColorObject = color => {
|
|
16247
|
-
if (
|
|
16263
|
+
if (color) {
|
|
16248
16264
|
return {
|
|
16249
16265
|
main: color,
|
|
16250
16266
|
light: (0,_colorManipulator__WEBPACK_IMPORTED_MODULE_1__.lighten)(color, 0.7),
|
|
@@ -16448,7 +16464,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16448
16464
|
/* harmony export */ "Metadata": () => (/* reexport safe */ _Metadata__WEBPACK_IMPORTED_MODULE_0__.Metadata)
|
|
16449
16465
|
/* harmony export */ });
|
|
16450
16466
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
16451
|
-
/** @license Frontegg v6.
|
|
16467
|
+
/** @license Frontegg v6.31.0-alpha.0
|
|
16452
16468
|
*
|
|
16453
16469
|
* This source code is licensed under the MIT license found in the
|
|
16454
16470
|
* LICENSE file in the root directory of this source tree.
|