@frontegg/js 6.138.0-alpha.0 → 6.138.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.
@@ -143,8 +143,6 @@ export var FronteggApp = /*#__PURE__*/function () {
143
143
  var _this$store$getState$;
144
144
  return (_this$store$getState$ = _this.store.getState().auth.user) == null ? void 0 : _this$store$getState$.entitlements;
145
145
  };
146
- /* eslint-disable no-console */
147
- console.log('Change to test alpha version');
148
146
  var appName = formatName(name);
149
147
  var customElementName = "frontegg-app-".concat(appName);
150
148
  this.iframeRendering = iframeRendering;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.138.0-alpha.0
1
+ /** @license Frontegg v6.138.0-alpha.1
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.
@@ -150,8 +150,6 @@ var FronteggApp = /*#__PURE__*/function () {
150
150
  var _this$store$getState$;
151
151
  return (_this$store$getState$ = _this.store.getState().auth.user) == null ? void 0 : _this$store$getState$.entitlements;
152
152
  };
153
- /* eslint-disable no-console */
154
- console.log('Change to test alpha version');
155
153
  var appName = (0, _utils.formatName)(name);
156
154
  var customElementName = "frontegg-app-".concat(appName);
157
155
  this.iframeRendering = iframeRendering;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.138.0-alpha.0
1
+ /** @license Frontegg v6.138.0-alpha.1
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.138.0-alpha.0'
8
+ cdnVersion: '6.138.0-alpha.1'
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.138.0-alpha.0",
3
+ "version": "6.138.0-alpha.1",
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.138.0-alpha.0"
9
+ "@frontegg/types": "6.138.0-alpha.1"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -458,8 +458,6 @@ var FronteggApp = /*#__PURE__*/function () {
458
458
  var _this$store$getState$;
459
459
  return (_this$store$getState$ = _this.store.getState().auth.user) == null ? void 0 : _this$store$getState$.entitlements;
460
460
  };
461
- /* eslint-disable no-console */
462
- console.log('Change to test alpha version');
463
461
  var appName = (0,_utils__WEBPACK_IMPORTED_MODULE_5__.formatName)(name);
464
462
  var customElementName = "frontegg-app-".concat(appName);
465
463
  this.iframeRendering = iframeRendering;
@@ -1323,7 +1321,7 @@ __webpack_require__.r(__webpack_exports__);
1323
1321
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1324
1322
  /* harmony export */ });
1325
1323
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1326
- cdnVersion: '6.138.0-alpha.0'
1324
+ cdnVersion: '6.138.0-alpha.1'
1327
1325
  });
1328
1326
 
1329
1327
  /***/ }),
@@ -13221,12 +13219,15 @@ __webpack_require__.r(__webpack_exports__);
13221
13219
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
13222
13220
  /* harmony export */ "getUsersWithRoles": () => (/* binding */ getUsersWithRoles),
13223
13221
  /* harmony export */ "loadBreachedPasswordUsers": () => (/* binding */ loadBreachedPasswordUsers),
13222
+ /* harmony export */ "loadBreachedPasswordUsersMock": () => (/* binding */ loadBreachedPasswordUsersMock),
13224
13223
  /* harmony export */ "loadInactiveUsers": () => (/* binding */ loadInactiveUsers),
13224
+ /* harmony export */ "loadInactiveUsersMock": () => (/* binding */ loadInactiveUsersMock),
13225
13225
  /* harmony export */ "loadInsights": () => (/* binding */ loadInsights),
13226
13226
  /* harmony export */ "loadInsightsMock": () => (/* binding */ loadInsightsMock),
13227
13227
  /* harmony export */ "loadRecommendations": () => (/* binding */ loadRecommendations),
13228
13228
  /* harmony export */ "loadRecommendationsMock": () => (/* binding */ loadRecommendationsMock),
13229
13229
  /* harmony export */ "loadUnenrolledMfaUsers": () => (/* binding */ loadUnenrolledMfaUsers),
13230
+ /* harmony export */ "loadUnenrolledMfaUsersMock": () => (/* binding */ loadUnenrolledMfaUsersMock),
13230
13231
  /* harmony export */ "loadUsersTableSecurityCenter": () => (/* binding */ loadUsersTableSecurityCenter),
13231
13232
  /* harmony export */ "securityCenterSagaWrapper": () => (/* binding */ securityCenterSagaWrapper),
13232
13233
  /* harmony export */ "securityCenterSagas": () => (/* binding */ securityCenterSagas),
@@ -13592,9 +13593,75 @@ function* loadInsightsMock() {
13592
13593
  value: false
13593
13594
  }));
13594
13595
  }
13596
+ function* loadBreachedPasswordUsersMock() {
13597
+ const key = _types__WEBPACK_IMPORTED_MODULE_4__.SecurityCenterStateKeys.BREACHED_PASSWORD_USERS_TABLE;
13598
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.setSecurityCenterStateLoader({
13599
+ key,
13600
+ value: true
13601
+ }));
13602
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.delay)(500);
13603
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.setSecurityCenterState({
13604
+ breachedPasswordUsersTable: _dummy__WEBPACK_IMPORTED_MODULE_9__.securityCenterBreachedPasswordUsersMock
13605
+ }));
13606
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.setSecurityCenterStateLoader({
13607
+ key,
13608
+ value: false
13609
+ }));
13610
+ }
13611
+ function* loadUnenrolledMfaUsersMock() {
13612
+ const key = _types__WEBPACK_IMPORTED_MODULE_4__.SecurityCenterStateKeys.UNENROLLED_MFA_USERS_TABLE;
13613
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.setSecurityCenterStateLoader({
13614
+ key,
13615
+ value: true
13616
+ }));
13617
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.delay)(500);
13618
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.setSecurityCenterState({
13619
+ unenrolledMfaUsersTable: _dummy__WEBPACK_IMPORTED_MODULE_9__.securityCenterUnenrolledMfaUsersMock
13620
+ }));
13621
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.setSecurityCenterStateLoader({
13622
+ key,
13623
+ value: false
13624
+ }));
13625
+ }
13626
+ function* loadInactiveUsersMock() {
13627
+ const key = _types__WEBPACK_IMPORTED_MODULE_4__.SecurityCenterStateKeys.INACTIVE_USERS_TABLE;
13628
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.setSecurityCenterStateLoader({
13629
+ key,
13630
+ value: true
13631
+ }));
13632
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.delay)(500);
13633
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.setSecurityCenterState({
13634
+ inactiveUsersTable: _dummy__WEBPACK_IMPORTED_MODULE_9__.securityCenterInactivityPasswordUsersMock
13635
+ }));
13636
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.setSecurityCenterStateLoader({
13637
+ key,
13638
+ value: false
13639
+ }));
13640
+ }
13641
+ function* sendResetBreachedPasswordEmailMock({
13642
+ payload: {
13643
+ callback
13644
+ }
13645
+ }) {
13646
+ const key = _types__WEBPACK_IMPORTED_MODULE_4__.SecurityCenterStateKeys.SEND_BREACHED_PASSWORD_EMAIL;
13647
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.setSecurityCenterStateLoader({
13648
+ key,
13649
+ value: true
13650
+ }));
13651
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.delay)(500);
13652
+ callback == null ? void 0 : callback(true);
13653
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.put)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.setSecurityCenterStateLoader({
13654
+ key,
13655
+ value: false
13656
+ }));
13657
+ }
13595
13658
  function* securityCenterSagasMock() {
13596
13659
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeEvery)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.loadRecommendations, loadRecommendationsMock);
13597
13660
  yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeEvery)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.loadInsights, loadInsightsMock);
13661
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeEvery)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.loadBreachedPasswordUsers, loadBreachedPasswordUsersMock);
13662
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeEvery)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.loadUnenrolledMfaUsers, loadUnenrolledMfaUsersMock);
13663
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeEvery)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.loadInactiveUsers, loadInactiveUsersMock);
13664
+ yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.takeEvery)(_reducer__WEBPACK_IMPORTED_MODULE_5__.actions.sendResetBreachedPasswordEmail, sendResetBreachedPasswordEmailMock);
13598
13665
  }
13599
13666
 
13600
13667
  /***/ }),
@@ -16900,8 +16967,11 @@ __webpack_require__.r(__webpack_exports__);
16900
16967
  /* harmony export */ "rolesDemo": () => (/* binding */ rolesDemo),
16901
16968
  /* harmony export */ "samlConfigurationDemo": () => (/* binding */ samlConfigurationDemo),
16902
16969
  /* harmony export */ "samlMetadataDemo": () => (/* binding */ samlMetadataDemo),
16970
+ /* harmony export */ "securityCenterBreachedPasswordUsersMock": () => (/* binding */ securityCenterBreachedPasswordUsersMock),
16971
+ /* harmony export */ "securityCenterInactivityPasswordUsersMock": () => (/* binding */ securityCenterInactivityPasswordUsersMock),
16903
16972
  /* harmony export */ "securityCenterInsightsMock": () => (/* binding */ securityCenterInsightsMock),
16904
16973
  /* harmony export */ "securityCenterRecommendationsMock": () => (/* binding */ securityCenterRecommendationsMock),
16974
+ /* harmony export */ "securityCenterUnenrolledMfaUsersMock": () => (/* binding */ securityCenterUnenrolledMfaUsersMock),
16905
16975
  /* harmony export */ "sessionsConfigDummies": () => (/* binding */ sessionsConfigDummies),
16906
16976
  /* harmony export */ "sessionsMock": () => (/* binding */ sessionsMock),
16907
16977
  /* harmony export */ "ssoStateDemo": () => (/* binding */ ssoStateDemo),
@@ -16911,7 +16981,10 @@ __webpack_require__.r(__webpack_exports__);
16911
16981
  /* harmony export */ "userSubTenantDemo": () => (/* binding */ userSubTenantDemo),
16912
16982
  /* harmony export */ "userTeamDemo": () => (/* binding */ userTeamDemo),
16913
16983
  /* harmony export */ "userTeamDemo2": () => (/* binding */ userTeamDemo2),
16914
- /* harmony export */ "usersDemo": () => (/* binding */ usersDemo)
16984
+ /* harmony export */ "userTeamDemo2V3": () => (/* binding */ userTeamDemo2V3),
16985
+ /* harmony export */ "userTeamDemoV3": () => (/* binding */ userTeamDemoV3),
16986
+ /* harmony export */ "usersDemo": () => (/* binding */ usersDemo),
16987
+ /* harmony export */ "usersDemoV3": () => (/* binding */ usersDemoV3)
16915
16988
  /* harmony export */ });
16916
16989
  /* 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");
16917
16990
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ApiTokensState/interfaces */ "../../node_modules/@frontegg/rest-api/auth/enums.js");
@@ -17147,6 +17220,24 @@ const userTeamDemo2 = {
17147
17220
  }]
17148
17221
  }; // TODO add verified to ITeamUser
17149
17222
 
17223
+ const userTeamDemo2V3 = {
17224
+ id: userTeamDemo2.id,
17225
+ email: userTeamDemo2.email,
17226
+ name: userTeamDemo2.name,
17227
+ phoneNumber: undefined,
17228
+ profileImage: undefined,
17229
+ tenantId: 'tenantId',
17230
+ activatedForTenant: true,
17231
+ createdAt: new Date(2022, 4, 1),
17232
+ verified: true,
17233
+ lastLogin: new Date(2022, 5, 25),
17234
+ mfaEnrolled: false,
17235
+ roles: [rolesAdminViewerDemo[1]],
17236
+ tenantIds: [],
17237
+ metadata: '',
17238
+ sub: '',
17239
+ tenants: []
17240
+ };
17150
17241
  const userTeamDemo = {
17151
17242
  id: 'id',
17152
17243
  email: 'demo-user@frontegg.com',
@@ -17172,6 +17263,24 @@ const userTeamDemo = {
17172
17263
  managedBy: _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_2__.GroupManagedByEnum.FRONTEGG
17173
17264
  }]
17174
17265
  };
17266
+ const userTeamDemoV3 = {
17267
+ id: userTeamDemo.id,
17268
+ email: userTeamDemo.email,
17269
+ name: userTeamDemo.name,
17270
+ phoneNumber: undefined,
17271
+ profileImage: undefined,
17272
+ tenantId: 'tenantId',
17273
+ activatedForTenant: true,
17274
+ createdAt: new Date(2022, 4, 1),
17275
+ verified: true,
17276
+ lastLogin: new Date(2022, 5, 25),
17277
+ mfaEnrolled: false,
17278
+ roles: [rolesAdminViewerDemo[1]],
17279
+ tenantIds: [],
17280
+ metadata: '',
17281
+ sub: '',
17282
+ tenants: []
17283
+ };
17175
17284
  const userSubTenantDemo = {
17176
17285
  metadata: '',
17177
17286
  mfaEnrolled: false,
@@ -17187,6 +17296,7 @@ const userSubTenantDemo = {
17187
17296
  createdAt: new Date()
17188
17297
  };
17189
17298
  const usersDemo = [userTeamDemo, userTeamDemo2];
17299
+ const usersDemoV3 = [userTeamDemoV3, userTeamDemo2V3];
17190
17300
  const allUsersDemo = [userSubTenantDemo];
17191
17301
  const tenantsDemo = [{
17192
17302
  id: 'my-tenant-id',
@@ -17450,6 +17560,29 @@ const securityCenterInsightsMock = {
17450
17560
  }]
17451
17561
  }
17452
17562
  };
17563
+ const securityCenterBreachedPasswordUsersMock = {
17564
+ users: usersDemoV3,
17565
+ totalUsersItems: 2,
17566
+ totalUsersPages: 1,
17567
+ usersPageOffset: 0
17568
+ };
17569
+ const securityCenterInactivityPasswordUsersMock = {
17570
+ users: [usersDemoV3[0]],
17571
+ totalUsersItems: 1,
17572
+ totalUsersPages: 1,
17573
+ usersPageOffset: 0,
17574
+ queryParams: {
17575
+ _presetParams: {
17576
+ _maxInactiveSeconds: 7776000
17577
+ }
17578
+ }
17579
+ };
17580
+ const securityCenterUnenrolledMfaUsersMock = {
17581
+ users: [usersDemoV3[1]],
17582
+ totalUsersItems: 1,
17583
+ totalUsersPages: 1,
17584
+ usersPageOffset: 0
17585
+ };
17453
17586
 
17454
17587
  /***/ }),
17455
17588
 
@@ -22617,7 +22750,7 @@ __webpack_require__.r(__webpack_exports__);
22617
22750
  /* harmony export */ });
22618
22751
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
22619
22752
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
22620
- /** @license Frontegg v6.138.0-alpha.0
22753
+ /** @license Frontegg v6.138.0-alpha.1
22621
22754
  *
22622
22755
  * This source code is licensed under the MIT license found in the
22623
22756
  * LICENSE file in the root directory of this source tree.
@@ -25147,7 +25280,7 @@ __webpack_require__.r(__webpack_exports__);
25147
25280
  /* harmony import */ var _users_interfaces__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./users/interfaces */ "../../node_modules/@frontegg/rest-api/users/interfaces.js");
25148
25281
  /* harmony import */ var _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./entitlements/interfaces */ "../../node_modules/@frontegg/rest-api/entitlements/interfaces.js");
25149
25282
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./security-center/interfaces */ "../../node_modules/@frontegg/rest-api/security-center/interfaces.js");
25150
- /** @license Frontegg v3.1.17
25283
+ /** @license Frontegg v3.1.18
25151
25284
  *
25152
25285
  * This source code is licensed under the MIT license found in the
25153
25286
  * LICENSE file in the root directory of this source tree.
@@ -25743,7 +25876,6 @@ let RecommendationCode;
25743
25876
  RecommendationCode["CHANGE_IP_TO_ALLOWLIST"] = "CHANGE_IP_TO_ALLOWLIST";
25744
25877
  RecommendationCode["ENABLE_DOMAIN_RESTRICTIONS"] = "ENABLE_DOMAIN_RESTRICTIONS";
25745
25878
  RecommendationCode["CHANGE_DOMAIN_TO_ALLOWLIST"] = "CHANGE_DOMAIN_TO_ALLOWLIST";
25746
- RecommendationCode["REMOVE_STALE_USERS"] = "REMOVE_STALE_USERS";
25747
25879
  RecommendationCode["CONFIGURE_SSO"] = "CONFIGURE_SSO";
25748
25880
  })(RecommendationCode || (RecommendationCode = {}));
25749
25881
 
@@ -25760,8 +25892,6 @@ let InsightCode;
25760
25892
  InsightCode["NO_SESSION_SETTINGS"] = "NO_SESSION_SETTINGS";
25761
25893
  InsightCode["PARTIAL_SESSION_SETTINGS"] = "PARTIAL_SESSION_SETTINGS";
25762
25894
  InsightCode["FULL_SESSION_SETTINGS"] = "FULL_SESSION_SETTINGS";
25763
- InsightCode["STALE_USERS_EXIST"] = "STALE_USERS_EXIST";
25764
- InsightCode["NO_STALE_USERS_EXIST"] = "NO_STALE_USERS_EXIST";
25765
25895
  InsightCode["NO_IP_RESTRICTIONS"] = "NO_IP_RESTRICTIONS";
25766
25896
  InsightCode["IP_ALLOWLIST"] = "IP_ALLOWLIST";
25767
25897
  InsightCode["IP_DENYLIST"] = "IP_DENYLIST";
@@ -25778,7 +25908,6 @@ let RecommendationActionKey;
25778
25908
  RecommendationActionKey["ADJUST_FORCE_RELOGIN"] = "ADJUST_FORCE_RELOGIN";
25779
25909
  RecommendationActionKey["ADJUST_MAX_CONCURRENT_SESSIONS"] = "ADJUST_MAX_CONCURRENT_SESSIONS";
25780
25910
  RecommendationActionKey["ADJUST_IDLE_TIMEOUT"] = "ADJUST_IDLE_TIMEOUT";
25781
- RecommendationActionKey["REMOVE_STALE_USERS"] = "REMOVE_STALE_USERS";
25782
25911
  })(RecommendationActionKey || (RecommendationActionKey = {}));
25783
25912
 
25784
25913
  let RecommendationSeverity;