@frontegg/js 6.104.0-alpha.0 → 6.104.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 CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.104.0-alpha.0
1
+ /** @license Frontegg v6.104.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.104.0-alpha.0
1
+ /** @license Frontegg v6.104.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/version.js CHANGED
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- cdnVersion: '6.104.0-alpha.0'
8
+ cdnVersion: '6.104.0'
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "6.104.0-alpha.0",
3
+ "version": "6.104.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": "6.104.0-alpha.0"
9
+ "@frontegg/types": "6.104.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1235,7 +1235,7 @@ __webpack_require__.r(__webpack_exports__);
1235
1235
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1236
1236
  /* harmony export */ });
1237
1237
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1238
- cdnVersion: '6.104.0-alpha.0'
1238
+ cdnVersion: '6.104.0'
1239
1239
  });
1240
1240
 
1241
1241
  /***/ }),
@@ -7532,12 +7532,7 @@ const allAccountsState = {
7532
7532
  },
7533
7533
  searchAccountsData: [],
7534
7534
  topAccount: {
7535
- tenantId: '',
7536
- userJwt: {
7537
- accessToken: '',
7538
- expiresIn: 0,
7539
- expires: ''
7540
- }
7535
+ tenantId: ''
7541
7536
  },
7542
7537
  selectedAccount: {
7543
7538
  tenantId: '',
@@ -7601,9 +7596,6 @@ const actions = {
7601
7596
  setUserRolesForSubAccount: (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_2__.createAction)(`${_constants__WEBPACK_IMPORTED_MODULE_3__.authStoreName}/setUserRolesForSubAccount`, payload => ({
7602
7597
  payload
7603
7598
  })),
7604
- getUserJwtForTopAccount: (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_2__.createAction)(`${_constants__WEBPACK_IMPORTED_MODULE_3__.authStoreName}/getUserJwtForTopAccount`, payload => ({
7605
- payload
7606
- })),
7607
7599
  getUserJwtForSubAccount: (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_2__.createAction)(`${_constants__WEBPACK_IMPORTED_MODULE_3__.authStoreName}/getUserJwtForSubAccount`, payload => ({
7608
7600
  payload
7609
7601
  })),
@@ -7822,39 +7814,6 @@ function* getUserJwtForSubAccount({
7822
7814
  }));
7823
7815
  }
7824
7816
  }
7825
- function* getUserJwtForTopAccount() {
7826
- const key = _types_stateTypes__WEBPACK_IMPORTED_MODULE_3__.AllAccountsStateKeys.GET_USER_JWT;
7827
- yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsLoader({
7828
- key,
7829
- value: true
7830
- }));
7831
- const {
7832
- tenantId
7833
- } = yield selectUserState();
7834
- const {
7835
- topAccount
7836
- } = yield selectAllAccountsState();
7837
- try {
7838
- const userJwt = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.call)(_frontegg_rest_api__WEBPACK_IMPORTED_MODULE_5__.api.users.GetUserJwt, {
7839
- tenantId
7840
- });
7841
- yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsState({
7842
- topAccount: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, topAccount, {
7843
- userJwt
7844
- })
7845
- }));
7846
- } catch (e) {
7847
- yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsError({
7848
- key,
7849
- value: (0,_utils__WEBPACK_IMPORTED_MODULE_6__.errorHandler)(e)
7850
- }));
7851
- } finally {
7852
- yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.put)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.setAllAccountsLoader({
7853
- key,
7854
- value: false
7855
- }));
7856
- }
7857
- }
7858
7817
  function* createSubAccount({
7859
7818
  payload
7860
7819
  }) {
@@ -8243,7 +8202,6 @@ function* allAccountsSagas() {
8243
8202
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.loadAccounts, loadAccounts);
8244
8203
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.searchAccounts, searchAccounts);
8245
8204
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.updateSubAccountAccessForUser, updateSubAccountAccessForUser);
8246
- yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.getUserJwtForTopAccount, getUserJwtForTopAccount);
8247
8205
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.getUserJwtForSubAccount, getUserJwtForSubAccount);
8248
8206
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.getParentAccounts, getParentAccounts);
8249
8207
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_1__.takeLatest)(_reducer__WEBPACK_IMPORTED_MODULE_4__.actions.getAccountSettings, getAccountSettings);
@@ -8288,7 +8246,6 @@ __webpack_require__.r(__webpack_exports__);
8288
8246
  /* harmony export */ "AllAccountsStateKeys": () => (/* binding */ AllAccountsStateKeys)
8289
8247
  /* harmony export */ });
8290
8248
  // All Accounts State keys
8291
-
8292
8249
  let AllAccountsStateKeys;
8293
8250
 
8294
8251
  // All Accounts State types
@@ -21116,7 +21073,7 @@ __webpack_require__.r(__webpack_exports__);
21116
21073
  /* harmony export */ });
21117
21074
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
21118
21075
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
21119
- /** @license Frontegg v6.104.0-alpha.0
21076
+ /** @license Frontegg v6.104.0
21120
21077
  *
21121
21078
  * This source code is licensed under the MIT license found in the
21122
21079
  * LICENSE file in the root directory of this source tree.