@frontegg/js 6.165.0-alpha.2 → 6.165.0-alpha.3

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.
@@ -1,4 +1,4 @@
1
- import { EnhancedStore, EntitledToOptions, Entitlement, StepUpOptions } from '@frontegg/redux-store';
1
+ import { EnhancedStore, EntitledToOptions, Entitlement, StepUpOptions, IsSteppedUpOptions } from '@frontegg/redux-store';
2
2
  import { FronteggAppOptions, FronteggCheckoutDialogOptions, LocalizationsOverrides, LoadEntitlementsCallback } from '@frontegg/types';
3
3
  import { IFeatureFlagsAttributes } from '@frontegg/rest-api';
4
4
  import { CustomAttributes } from '@frontegg/entitlements-javascript-commons';
@@ -10,12 +10,6 @@ declare type FronteggAppContainers = {
10
10
  loginBoxContainer: HTMLElement;
11
11
  checkoutDialogContainer: HTMLElement;
12
12
  };
13
- /**
14
- * isSteppedUp options
15
- */
16
- export interface IsSteppedUpOptions {
17
- maxAge?: number;
18
- }
19
13
  export declare class FronteggApp {
20
14
  readonly name: string;
21
15
  readonly iframeRendering: boolean;
@@ -113,7 +107,15 @@ export declare class FronteggApp {
113
107
  * @param callback called on request completed with true if succeeded, false if failed
114
108
  */
115
109
  loadEntitlements(callback?: LoadEntitlementsCallback): void;
110
+ /**
111
+ * Redirects to the step up page with the max age param and set the redirect url in the local storage
112
+ * @param options.maxAge optional max age
113
+ */
116
114
  stepUp(options?: StepUpOptions): void;
115
+ /**
116
+ * @param options.maxAge optional max age
117
+ * @return true when user is stepped up, false otherwise
118
+ */
117
119
  isSteppedUp(options?: IsSteppedUpOptions): boolean;
118
120
  close(): void;
119
121
  }
@@ -549,6 +549,11 @@ export var FronteggApp = /*#__PURE__*/function () {
549
549
  }
550
550
  });
551
551
  }
552
+
553
+ /**
554
+ * Redirects to the step up page with the max age param and set the redirect url in the local storage
555
+ * @param options.maxAge optional max age
556
+ */
552
557
  }, {
553
558
  key: "stepUp",
554
559
  value: function stepUp(options) {
@@ -564,6 +569,11 @@ export var FronteggApp = /*#__PURE__*/function () {
564
569
  }
565
570
  redirectByStepUpUrl(stepUpUrl, state.auth.onRedirectTo, options == null ? void 0 : options.maxAge);
566
571
  }
572
+
573
+ /**
574
+ * @param options.maxAge optional max age
575
+ * @return true when user is stepped up, false otherwise
576
+ */
567
577
  }, {
568
578
  key: "isSteppedUp",
569
579
  value: function isSteppedUp() {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.165.0-alpha.2
1
+ /** @license Frontegg v6.165.0-alpha.3
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.
@@ -556,6 +556,11 @@ var FronteggApp = /*#__PURE__*/function () {
556
556
  }
557
557
  });
558
558
  }
559
+
560
+ /**
561
+ * Redirects to the step up page with the max age param and set the redirect url in the local storage
562
+ * @param options.maxAge optional max age
563
+ */
559
564
  }, {
560
565
  key: "stepUp",
561
566
  value: function stepUp(options) {
@@ -571,6 +576,11 @@ var FronteggApp = /*#__PURE__*/function () {
571
576
  }
572
577
  (0, _reduxStore.redirectByStepUpUrl)(stepUpUrl, state.auth.onRedirectTo, options == null ? void 0 : options.maxAge);
573
578
  }
579
+
580
+ /**
581
+ * @param options.maxAge optional max age
582
+ * @return true when user is stepped up, false otherwise
583
+ */
574
584
  }, {
575
585
  key: "isSteppedUp",
576
586
  value: function isSteppedUp() {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.165.0-alpha.2
1
+ /** @license Frontegg v6.165.0-alpha.3
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.165.0-alpha.2'
8
+ cdnVersion: '6.165.0-alpha.3'
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.165.0-alpha.2",
3
+ "version": "6.165.0-alpha.3",
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.165.0-alpha.2"
9
+ "@frontegg/types": "6.165.0-alpha.3"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -870,6 +870,11 @@ var FronteggApp = /*#__PURE__*/function () {
870
870
  }
871
871
  });
872
872
  }
873
+
874
+ /**
875
+ * Redirects to the step up page with the max age param and set the redirect url in the local storage
876
+ * @param options.maxAge optional max age
877
+ */
873
878
  }, {
874
879
  key: "stepUp",
875
880
  value: function stepUp(options) {
@@ -885,6 +890,11 @@ var FronteggApp = /*#__PURE__*/function () {
885
890
  }
886
891
  (0,_frontegg_redux_store__WEBPACK_IMPORTED_MODULE_21__.redirectByStepUpUrl)(stepUpUrl, state.auth.onRedirectTo, options == null ? void 0 : options.maxAge);
887
892
  }
893
+
894
+ /**
895
+ * @param options.maxAge optional max age
896
+ * @return true when user is stepped up, false otherwise
897
+ */
888
898
  }, {
889
899
  key: "isSteppedUp",
890
900
  value: function isSteppedUp() {
@@ -1442,7 +1452,7 @@ __webpack_require__.r(__webpack_exports__);
1442
1452
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1443
1453
  /* harmony export */ });
1444
1454
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1445
- cdnVersion: '6.165.0-alpha.2'
1455
+ cdnVersion: '6.165.0-alpha.3'
1446
1456
  });
1447
1457
 
1448
1458
  /***/ }),
@@ -5639,6 +5649,7 @@ const defaultFronteggRoutes = {
5639
5649
  "use strict";
5640
5650
  __webpack_require__.r(__webpack_exports__);
5641
5651
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
5652
+ /* harmony export */ "defaultFronteggRoutes": () => (/* reexport safe */ _consts__WEBPACK_IMPORTED_MODULE_5__.defaultFronteggRoutes),
5642
5653
  /* harmony export */ "getRedirectUrl": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_4__.getRedirectUrl),
5643
5654
  /* harmony export */ "getSearchParam": () => (/* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_4__.getSearchParam),
5644
5655
  /* harmony export */ "loginActions": () => (/* binding */ actions),
@@ -5650,6 +5661,7 @@ __webpack_require__.r(__webpack_exports__);
5650
5661
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../utils */ "../../dist/@frontegg/redux-store/auth/utils.js");
5651
5662
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../constants */ "../../dist/@frontegg/redux-store/constants.js");
5652
5663
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "../../dist/@frontegg/redux-store/auth/LoginState/utils.js");
5664
+ /* harmony import */ var _consts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./consts */ "../../dist/@frontegg/redux-store/auth/LoginState/consts.js");
5653
5665
 
5654
5666
 
5655
5667
 
@@ -5793,6 +5805,7 @@ const Matcher = {};
5793
5805
 
5794
5806
 
5795
5807
 
5808
+
5796
5809
  /***/ }),
5797
5810
 
5798
5811
  /***/ "../../dist/@frontegg/redux-store/auth/LoginState/interfaces.js":
@@ -19372,6 +19385,7 @@ __webpack_require__.r(__webpack_exports__);
19372
19385
  /* harmony export */ "customLoginReducers": () => (/* reexport safe */ _CustomLoginState__WEBPACK_IMPORTED_MODULE_42__.customLoginReducers),
19373
19386
  /* harmony export */ "customLoginState": () => (/* reexport safe */ _CustomLoginState__WEBPACK_IMPORTED_MODULE_42__.customLoginState),
19374
19387
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__),
19388
+ /* harmony export */ "defaultFronteggRoutes": () => (/* reexport safe */ _LoginState__WEBPACK_IMPORTED_MODULE_2__.defaultFronteggRoutes),
19375
19389
  /* harmony export */ "entitlementsSagas": () => (/* reexport safe */ _Entitlements__WEBPACK_IMPORTED_MODULE_37__.entitlementsSagas),
19376
19390
  /* harmony export */ "forgotPasswordActions": () => (/* reexport safe */ _ForgotPasswordState__WEBPACK_IMPORTED_MODULE_11__.forgotPasswordActions),
19377
19391
  /* harmony export */ "forgotPasswordReducers": () => (/* reexport safe */ _ForgotPasswordState__WEBPACK_IMPORTED_MODULE_11__.forgotPasswordReducers),
@@ -24686,7 +24700,7 @@ __webpack_require__.r(__webpack_exports__);
24686
24700
  /* harmony export */ });
24687
24701
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
24688
24702
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
24689
- /** @license Frontegg v6.165.0-alpha.2
24703
+ /** @license Frontegg v6.165.0-alpha.3
24690
24704
  *
24691
24705
  * This source code is licensed under the MIT license found in the
24692
24706
  * LICENSE file in the root directory of this source tree.