@frontegg/js 6.83.0 → 6.84.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.
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.83.0
1
+ /** @license Frontegg v6.84.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.83.0
1
+ /** @license Frontegg v6.84.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.83.0'
8
+ cdnVersion: '6.84.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.83.0",
3
+ "version": "6.84.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.83.0"
9
+ "@frontegg/types": "6.84.0-alpha.1"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -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.83.0'
1203
+ cdnVersion: '6.84.0-alpha.1'
1204
1204
  });
1205
1205
 
1206
1206
  /***/ }),
@@ -5747,7 +5747,7 @@ 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
5753
  const [showPasskeys] = yield (0,redux_saga_effects__WEBPACK_IMPORTED_MODULE_2__.call)(_helpers__WEBPACK_IMPORTED_MODULE_16__.getFeatureFlags, ['show-passkeys']);
@@ -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));
@@ -18909,7 +18910,7 @@ __webpack_require__.r(__webpack_exports__);
18909
18910
  /* harmony export */ });
18910
18911
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
18911
18912
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
18912
- /** @license Frontegg v6.83.0
18913
+ /** @license Frontegg v6.84.0-alpha.1
18913
18914
  *
18914
18915
  * This source code is licensed under the MIT license found in the
18915
18916
  * LICENSE file in the root directory of this source tree.