@frontegg/react-hooks 6.180.0-alpha.2 → 6.180.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 { StepUpState, StepUpActions, IsSteppedUpOptions } from '@frontegg/redux-store';
1
+ import { StepUpState, StepUpActions, StepUpOptions, IsSteppedUpOptions } from '@frontegg/redux-store';
2
2
  import { StepUpStateMapper } from './interfaces';
3
3
  export declare function useStepUpState(): StepUpState;
4
4
  export declare function useStepUpState<S>(stateMapper: StepUpStateMapper<S>): S;
@@ -10,7 +10,7 @@ export declare const getMaxAgeFromQueryParam: () => number | undefined;
10
10
  /**
11
11
  * @returns step up function that redirects to the step up url with the max age param and set the redirect url in the local storage
12
12
  */
13
- export declare const useStepUp: () => any;
13
+ export declare const useStepUp: () => (options?: StepUpOptions | undefined) => void;
14
14
  /**
15
15
  * @param options.maxAge - max age of step up
16
16
  * @returns true when the user is stepped up, false otherwise
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.180.0-alpha.2
1
+ /** @license Frontegg v6.180.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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.180.0-alpha.2
1
+ /** @license Frontegg v6.180.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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/react-hooks",
3
- "version": "6.180.0-alpha.2",
3
+ "version": "6.180.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/redux-store": "6.180.0-alpha.2",
10
- "@frontegg/types": "6.180.0-alpha.2",
9
+ "@frontegg/redux-store": "6.180.0-alpha.3",
10
+ "@frontegg/types": "6.180.0-alpha.3",
11
11
  "@types/react": "*",
12
12
  "get-value": "^3.0.1",
13
13
  "react-redux": "^7.x"