@frontegg/js 7.83.0-alpha.6 → 7.84.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 CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.83.0-alpha.6
1
+ /** @license Frontegg v7.84.0-alpha.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 v7.83.0-alpha.6
1
+ /** @license Frontegg v7.84.0-alpha.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: '7.83.0-alpha.6'
8
+ cdnVersion: '7.84.0-alpha.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": "7.83.0-alpha.6",
3
+ "version": "7.84.0-alpha.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.83.0-alpha.6"
9
+ "@frontegg/types": "7.84.0-alpha.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1788,7 +1788,7 @@ __webpack_require__.r(__webpack_exports__);
1788
1788
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1789
1789
  /* harmony export */ });
1790
1790
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1791
- cdnVersion: '7.83.0-alpha.6'
1791
+ cdnVersion: '7.84.0-alpha.0'
1792
1792
  });
1793
1793
 
1794
1794
  /***/ }),
@@ -8029,6 +8029,7 @@ let LoginActionTypes;
8029
8029
  LoginActionTypes["social-login"] = "social-login";
8030
8030
  LoginActionTypes["custom-social-login"] = "custom-social-login";
8031
8031
  LoginActionTypes["direct"] = "direct";
8032
+ LoginActionTypes["signup"] = "signup";
8032
8033
  })(LoginActionTypes || (LoginActionTypes = {}));
8033
8034
 
8034
8035
  /***/ }),
@@ -15409,7 +15410,9 @@ __webpack_require__.r(__webpack_exports__);
15409
15410
  };
15410
15411
  const createInvitationLink = async payload => {
15411
15412
  const {
15412
- callback
15413
+ callback,
15414
+ expiresInMinutes,
15415
+ shouldSendEmail
15413
15416
  } = payload;
15414
15417
  actions.setTeamError({
15415
15418
  key: _interfaces__WEBPACK_IMPORTED_MODULE_1__.TeamStateKeys.CREATE_TOKEN_LINK,
@@ -15419,9 +15422,18 @@ __webpack_require__.r(__webpack_exports__);
15419
15422
  inviteTokenState
15420
15423
  } = store.auth.teamState;
15421
15424
  try {
15422
- const data = await api.teams.createInviteUserLink({
15423
- expiresInMinutes: 43200
15424
- });
15425
+ const [enhancedInviteUserModalFlag] = await actions.getFeatureFlags(['invite_user_modal_enhancements_frontend']);
15426
+ let data;
15427
+ if (enhancedInviteUserModalFlag) {
15428
+ data = await api.teams.createInviteUserLink({
15429
+ expiresInMinutes: expiresInMinutes != null ? expiresInMinutes : 43200,
15430
+ shouldSendEmail: shouldSendEmail != null ? shouldSendEmail : true
15431
+ });
15432
+ } else {
15433
+ data = await api.teams.createInviteUserLink({
15434
+ expiresInMinutes: 43200
15435
+ });
15436
+ }
15425
15437
  actions.setTeamState({
15426
15438
  inviteTokenState: (0,_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__["default"])({}, inviteTokenState, data)
15427
15439
  });
@@ -19325,7 +19337,7 @@ __webpack_require__.r(__webpack_exports__);
19325
19337
  /* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
19326
19338
  /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
19327
19339
  /* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
19328
- /** @license Frontegg v7.83.0-alpha.6
19340
+ /** @license Frontegg v7.84.0-alpha.0
19329
19341
  *
19330
19342
  * This source code is licensed under the MIT license found in the
19331
19343
  * LICENSE file in the root directory of this source tree.
@@ -29602,7 +29614,7 @@ __webpack_require__.r(__webpack_exports__);
29602
29614
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
29603
29615
  /* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
29604
29616
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
29605
- /** @license Frontegg v7.83.0-alpha.6
29617
+ /** @license Frontegg v7.84.0-alpha.0
29606
29618
  *
29607
29619
  * This source code is licensed under the MIT license found in the
29608
29620
  * LICENSE file in the root directory of this source tree.
@@ -32341,7 +32353,7 @@ __webpack_require__.r(__webpack_exports__);
32341
32353
  /* harmony export */ });
32342
32354
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
32343
32355
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
32344
- /** @license Frontegg v7.83.0-alpha.6
32356
+ /** @license Frontegg v7.84.0-alpha.0
32345
32357
  *
32346
32358
  * This source code is licensed under the MIT license found in the
32347
32359
  * LICENSE file in the root directory of this source tree.