@frontegg/react-hooks 7.56.0 → 7.57.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/auth/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './apiTokens';
7
7
  export * from './customLogin';
8
8
  export * from './entitlements';
9
9
  export * from './forgotPassword';
10
+ export * from './passwordRotation';
10
11
  export * from './groups';
11
12
  export * from './impersonate';
12
13
  export * from './login';
package/auth/index.js CHANGED
@@ -7,6 +7,7 @@ export * from './apiTokens';
7
7
  export * from './customLogin';
8
8
  export * from './entitlements';
9
9
  export * from './forgotPassword';
10
+ export * from './passwordRotation';
10
11
  export * from './groups';
11
12
  export * from './impersonate';
12
13
  export * from './login';
@@ -0,0 +1,3 @@
1
+ import { PasswordRotationState, PasswordRotationActions } from '@frontegg/redux-store';
2
+ export declare function usePasswordRotationState(): PasswordRotationState;
3
+ export declare const usePasswordRotationActions: () => PasswordRotationActions;
@@ -0,0 +1,9 @@
1
+ import { useStore } from '../FronteggStoreContext';
2
+ import { useSnapshot } from '../useSnapshot';
3
+ export function usePasswordRotationState() {
4
+ const state = useStore().store.auth.passwordRotationState;
5
+ return useSnapshot(state);
6
+ }
7
+ export const usePasswordRotationActions = () => {
8
+ return useStore().stateActions.auth.passwordRotationActions;
9
+ };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.56.0
1
+ /** @license Frontegg v7.57.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.
@@ -172,6 +172,18 @@ Object.keys(_forgotPassword).forEach(function (key) {
172
172
  }
173
173
  });
174
174
  });
175
+ var _passwordRotation = require("./passwordRotation");
176
+ Object.keys(_passwordRotation).forEach(function (key) {
177
+ if (key === "default" || key === "__esModule") return;
178
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
179
+ if (key in exports && exports[key] === _passwordRotation[key]) return;
180
+ Object.defineProperty(exports, key, {
181
+ enumerable: true,
182
+ get: function () {
183
+ return _passwordRotation[key];
184
+ }
185
+ });
186
+ });
175
187
  var _groups = require("./groups");
176
188
  Object.keys(_groups).forEach(function (key) {
177
189
  if (key === "default" || key === "__esModule") return;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.usePasswordRotationActions = void 0;
7
+ exports.usePasswordRotationState = usePasswordRotationState;
8
+ var _FronteggStoreContext = require("../FronteggStoreContext");
9
+ var _useSnapshot = require("../useSnapshot");
10
+ function usePasswordRotationState() {
11
+ const state = (0, _FronteggStoreContext.useStore)().store.auth.passwordRotationState;
12
+ return (0, _useSnapshot.useSnapshot)(state);
13
+ }
14
+ const usePasswordRotationActions = () => {
15
+ return (0, _FronteggStoreContext.useStore)().stateActions.auth.passwordRotationActions;
16
+ };
17
+ exports.usePasswordRotationActions = usePasswordRotationActions;
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.56.0
1
+ /** @license Frontegg v7.57.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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/react-hooks",
3
- "version": "7.56.0",
3
+ "version": "7.57.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/redux-store": "7.56.0",
10
- "@frontegg/types": "7.56.0",
9
+ "@frontegg/redux-store": "7.57.0-alpha.0",
10
+ "@frontegg/types": "7.57.0-alpha.0",
11
11
  "@types/react": "*",
12
12
  "@types/react-is": "^17.0.7",
13
13
  "get-value": "^3.0.1",