@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 +1 -0
- package/auth/index.js +1 -0
- package/auth/passwordRotation.d.ts +3 -0
- package/auth/passwordRotation.js +9 -0
- package/index.js +1 -1
- package/node/auth/index.js +12 -0
- package/node/auth/passwordRotation.js +17 -0
- package/node/index.js +1 -1
- package/package.json +3 -3
package/auth/index.d.ts
CHANGED
package/auth/index.js
CHANGED
|
@@ -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
package/node/auth/index.js
CHANGED
|
@@ -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
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/react-hooks",
|
|
3
|
-
"version": "7.
|
|
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.
|
|
10
|
-
"@frontegg/types": "7.
|
|
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",
|