@frontegg/js 6.84.0-alpha.0 → 6.84.0-alpha.2

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.84.0-alpha.0
1
+ /** @license Frontegg v6.84.0-alpha.2
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.84.0-alpha.0
1
+ /** @license Frontegg v6.84.0-alpha.2
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.
@@ -8,7 +8,7 @@ var mockFlagsList = {
8
8
  admin_portal_ip_restrictions: 'on',
9
9
  admin_portal_domain_restrictions: 'on',
10
10
  'new-mfa-pages': 'on',
11
- 'show-passkeys': 'on',
11
+ 'show-passkeys-new': 'on',
12
12
  'groups-admin-box-new': 'on'
13
13
  };
14
14
  exports.mockFlagsList = mockFlagsList;
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.84.0-alpha.0'
8
+ cdnVersion: '6.84.0-alpha.2'
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.84.0-alpha.0",
3
+ "version": "6.84.0-alpha.2",
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.84.0-alpha.0"
9
+ "@frontegg/types": "6.84.0-alpha.2"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1182,7 +1182,7 @@ var mockFlagsList = {
1182
1182
  admin_portal_ip_restrictions: 'on',
1183
1183
  admin_portal_domain_restrictions: 'on',
1184
1184
  'new-mfa-pages': 'on',
1185
- 'show-passkeys': 'on',
1185
+ 'show-passkeys-new': 'on',
1186
1186
  'groups-admin-box-new': 'on'
1187
1187
  };
1188
1188
 
@@ -1200,7 +1200,7 @@ __webpack_require__.r(__webpack_exports__);
1200
1200
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1201
1201
  /* harmony export */ });
1202
1202
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1203
- cdnVersion: '6.84.0-alpha.0'
1203
+ cdnVersion: '6.84.0-alpha.2'
1204
1204
  });
1205
1205
 
1206
1206
  /***/ }),
@@ -5747,10 +5747,10 @@ function* shouldShowPromptPasskeys() {
5747
5747
  const {
5748
5748
  policy
5749
5749
  } = publicAuthStrategyPolicy;
5750
- const isPasskeysEnabledByVendor = (0,_PasskeysState_helpers__WEBPACK_IMPORTED_MODULE_19__.useIsPasskeysEnabled)(policy);
5750
+ const isPasskeysEnabledByVendor = (0,_PasskeysState_helpers__WEBPACK_IMPORTED_MODULE_19__.getPasskeysVendorPolicy)(policy);
5751
5751
  const isLoggedInWithPasskeys = localStorage.getItem('preferred-login-method') === 'Passkeys';
5752
5752
  const isMarkedDontShowAgainPrompt = localStorage.getItem('dont-show-again-prompt-passkeys') === 'true';
5753
- const [showPasskeys] = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_helpers__WEBPACK_IMPORTED_MODULE_16__.getFeatureFlags, ['show-passkeys']);
5753
+ const [showPasskeys] = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_helpers__WEBPACK_IMPORTED_MODULE_16__.getFeatureFlags, ['show-passkeys-new']);
5754
5754
  if (!showPasskeys || !isPasskeysEnabledByVendor || isLoggedInWithPasskeys || isMarkedDontShowAgainPrompt) {
5755
5755
  return false;
5756
5756
  } else {
@@ -7654,12 +7654,13 @@ function* mfaSagasMock() {
7654
7654
  "use strict";
7655
7655
  __webpack_require__.r(__webpack_exports__);
7656
7656
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7657
- /* harmony export */ "useIsPasskeysEnabled": () => (/* binding */ useIsPasskeysEnabled)
7657
+ /* harmony export */ "getPasskeysVendorPolicy": () => (/* binding */ getPasskeysVendorPolicy)
7658
7658
  /* harmony export */ });
7659
7659
  /* harmony import */ var _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @frontegg/rest-api */ "../../node_modules/@frontegg/rest-api/auth/interfaces.js");
7660
7660
 
7661
- const useIsPasskeysEnabled = policy => {
7662
- return !!(policy != null && policy.secondaryAuthStrategies.some(({
7661
+ const getPasskeysVendorPolicy = policy => {
7662
+ var _policy$secondaryAuth;
7663
+ return !!(policy != null && (_policy$secondaryAuth = policy.secondaryAuthStrategies) != null && _policy$secondaryAuth.some(({
7663
7664
  isActive,
7664
7665
  strategy
7665
7666
  }) => isActive && strategy === _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_0__.SecondaryAuthStrategy.Passkeys));
@@ -14698,6 +14699,8 @@ __webpack_require__.r(__webpack_exports__);
14698
14699
  /* harmony export */ "AuthenticationTypes": () => (/* binding */ AuthenticationTypes),
14699
14700
  /* harmony export */ "UserVeirifedOriginTypes": () => (/* binding */ UserVeirifedOriginTypes)
14700
14701
  /* harmony export */ });
14702
+ //TODO: move act to IUserProfile in rest-api
14703
+
14701
14704
  let UserVeirifedOriginTypes;
14702
14705
  (function (UserVeirifedOriginTypes) {
14703
14706
  UserVeirifedOriginTypes["SOCIAL_LOGIN"] = "SOCIAL_LOGIN";
@@ -18909,7 +18912,7 @@ __webpack_require__.r(__webpack_exports__);
18909
18912
  /* harmony export */ });
18910
18913
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
18911
18914
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
18912
- /** @license Frontegg v6.84.0-alpha.0
18915
+ /** @license Frontegg v6.84.0-alpha.2
18913
18916
  *
18914
18917
  * This source code is licensed under the MIT license found in the
18915
18918
  * LICENSE file in the root directory of this source tree.