@frontegg/react-hooks 7.77.0 → 7.78.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/audits/auditLogs.d.ts +2 -3
- package/audits/auditLogs.js +8 -9
- package/audits/auditsMetadata.d.ts +2 -3
- package/audits/auditsMetadata.js +8 -9
- package/audits/hooks.d.ts +2 -9
- package/audits/hooks.js +10 -14
- package/auth/acceptInvitation.d.ts +7 -5
- package/auth/acceptInvitation.js +8 -13
- package/auth/activateAccount.d.ts +11 -5
- package/auth/activateAccount.js +8 -13
- package/auth/allAccounts.d.ts +47 -7
- package/auth/allAccounts.js +12 -20
- package/auth/apiTokens.d.ts +14 -3
- package/auth/apiTokens.js +8 -9
- package/auth/applications.d.ts +22 -3
- package/auth/applications.js +8 -9
- package/auth/customLogin.d.ts +9 -3
- package/auth/customLogin.js +9 -12
- package/auth/entitlements.d.ts +6 -25
- package/auth/entitlements.js +41 -73
- package/auth/forgotPassword.d.ts +12 -3
- package/auth/forgotPassword.js +10 -9
- package/auth/groups.d.ts +32 -5
- package/auth/groups.js +14 -14
- package/auth/impersonate.d.ts +6 -3
- package/auth/impersonate.js +8 -8
- package/auth/login.d.ts +74 -3
- package/auth/login.js +8 -8
- package/auth/passkeys.d.ts +10 -3
- package/auth/passkeys.js +8 -8
- package/auth/passwordRotation.d.ts +4 -3
- package/auth/passwordRotation.js +8 -9
- package/auth/profile.d.ts +19 -3
- package/auth/profile.js +17 -12
- package/auth/provisioning.d.ts +20 -3
- package/auth/provisioning.js +8 -8
- package/auth/resetPhoneNumber.d.ts +8 -3
- package/auth/resetPhoneNumber.js +8 -8
- package/auth/roles.d.ts +14 -3
- package/auth/roles.js +8 -8
- package/auth/security/restrictions.d.ts +21 -3
- package/auth/security/restrictions.js +20 -19
- package/auth/security/securityCenter.d.ts +15 -3
- package/auth/security/securityCenter.js +8 -9
- package/auth/security/securityPolicy.d.ts +35 -5
- package/auth/security/securityPolicy.js +16 -18
- package/auth/security/sessionsPolicy.d.ts +7 -3
- package/auth/security/sessionsPolicy.js +8 -9
- package/auth/sessions.d.ts +12 -3
- package/auth/sessions.js +8 -8
- package/auth/signup.d.ts +10 -5
- package/auth/signup.js +8 -16
- package/auth/sms.d.ts +13 -3
- package/auth/sms.js +8 -8
- package/auth/socialLogin.d.ts +9 -5
- package/auth/socialLogin.js +8 -13
- package/auth/sso.d.ts +31 -6
- package/auth/sso.js +8 -13
- package/auth/stepUp.d.ts +15 -14
- package/auth/stepUp.js +9 -22
- package/auth/team.d.ts +84 -13
- package/auth/team.js +12 -23
- package/auth/tenants.d.ts +9 -3
- package/auth/tenants.js +8 -9
- package/auth/unlockAccount.d.ts +6 -5
- package/auth/unlockAccount.js +8 -10
- package/auth/usernames.d.ts +7 -3
- package/auth/usernames.js +8 -8
- package/auth/usersEmailsPolicyState.d.ts +5 -5
- package/auth/usersEmailsPolicyState.js +8 -10
- package/connectivity/hooks.d.ts +41 -3
- package/connectivity/hooks.js +8 -9
- package/index.js +1 -1
- package/node/audits/auditLogs.js +11 -12
- package/node/audits/auditsMetadata.js +11 -12
- package/node/audits/hooks.js +13 -17
- package/node/auth/acceptInvitation.js +11 -13
- package/node/auth/activateAccount.js +11 -13
- package/node/auth/allAccounts.js +15 -20
- package/node/auth/apiTokens.js +11 -12
- package/node/auth/applications.js +11 -12
- package/node/auth/customLogin.js +11 -15
- package/node/auth/entitlements.js +41 -73
- package/node/auth/forgotPassword.js +13 -12
- package/node/auth/groups.js +17 -17
- package/node/auth/impersonate.js +11 -11
- package/node/auth/login.js +11 -11
- package/node/auth/passkeys.js +11 -11
- package/node/auth/passwordRotation.js +11 -12
- package/node/auth/profile.js +19 -13
- package/node/auth/provisioning.js +11 -11
- package/node/auth/resetPhoneNumber.js +11 -11
- package/node/auth/roles.js +11 -11
- package/node/auth/security/restrictions.js +22 -21
- package/node/auth/security/securityCenter.js +11 -12
- package/node/auth/security/securityPolicy.js +18 -17
- package/node/auth/security/sessionsPolicy.js +11 -12
- package/node/auth/sessions.js +11 -11
- package/node/auth/signup.js +11 -16
- package/node/auth/sms.js +11 -11
- package/node/auth/socialLogin.js +11 -13
- package/node/auth/sso.js +11 -13
- package/node/auth/stepUp.js +11 -24
- package/node/auth/team.js +16 -28
- package/node/auth/tenants.js +11 -12
- package/node/auth/unlockAccount.js +11 -13
- package/node/auth/usernames.js +11 -11
- package/node/auth/usersEmailsPolicyState.js +11 -13
- package/node/connectivity/hooks.js +11 -12
- package/node/index.js +1 -1
- package/node/subscriptions/hooks.js +86 -115
- package/node/useSnapshot/hookFactory.js +32 -0
- package/node/vendor/hooks.js +11 -14
- package/package.json +3 -3
- package/subscriptions/hooks.d.ts +48 -22
- package/subscriptions/hooks.js +77 -103
- package/useSnapshot/hookFactory.d.ts +18 -0
- package/useSnapshot/hookFactory.js +26 -0
- package/vendor/hooks.d.ts +2 -5
- package/vendor/hooks.js +8 -14
|
@@ -3,15 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useSessionsPolicyActions = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports.useSessionsPolicyActions = useSessionsPolicyActions;
|
|
6
|
+
exports.useSessionsPolicyState = exports.useSessionsPolicyActions = void 0;
|
|
7
|
+
var _hookFactory = require("../../useSnapshot/hookFactory");
|
|
8
|
+
const {
|
|
9
|
+
useSliceState: useSessionsPolicyState,
|
|
10
|
+
useSliceActions: useSessionsPolicyActions
|
|
11
|
+
} = (0, _hookFactory.createSliceHooks)({
|
|
12
|
+
getState: s => s.auth.sessionsPolicyState,
|
|
13
|
+
getActions: a => a.auth.sessionsPolicyActions
|
|
14
|
+
});
|
|
15
|
+
exports.useSessionsPolicyActions = useSessionsPolicyActions;
|
|
16
|
+
exports.useSessionsPolicyState = useSessionsPolicyState;
|
package/node/auth/sessions.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useSessionsActions = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
exports.
|
|
6
|
+
exports.useSessionsState = exports.useSessionsActions = void 0;
|
|
7
|
+
var _hookFactory = require("../useSnapshot/hookFactory");
|
|
8
|
+
const {
|
|
9
|
+
useSliceState: useSessionsState,
|
|
10
|
+
useSliceActions: useSessionsActions
|
|
11
|
+
} = (0, _hookFactory.createSliceHooks)({
|
|
12
|
+
getState: s => s.auth.sessionsState,
|
|
13
|
+
getActions: a => a.auth.sessionsActions
|
|
14
|
+
});
|
|
15
|
+
exports.useSessionsActions = useSessionsActions;
|
|
16
|
+
exports.useSessionsState = useSessionsState;
|
package/node/auth/signup.js
CHANGED
|
@@ -3,19 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useSignUpActions = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
const useSignUpActions = () => {
|
|
19
|
-
return (0, _FronteggStoreContext.useStore)().stateActions.auth.signUpActions;
|
|
20
|
-
};
|
|
21
|
-
exports.useSignUpActions = useSignUpActions;
|
|
6
|
+
exports.useSignUpState = exports.useSignUpActions = void 0;
|
|
7
|
+
var _hookFactory = require("../useSnapshot/hookFactory");
|
|
8
|
+
const {
|
|
9
|
+
useSliceState: useSignUpState,
|
|
10
|
+
useSliceActions: useSignUpActions
|
|
11
|
+
} = (0, _hookFactory.createSliceHooks)({
|
|
12
|
+
getState: s => s.auth.signUpState,
|
|
13
|
+
getActions: a => a.auth.signUpActions
|
|
14
|
+
});
|
|
15
|
+
exports.useSignUpActions = useSignUpActions;
|
|
16
|
+
exports.useSignUpState = useSignUpState;
|
package/node/auth/sms.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useSmsActions = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
exports.
|
|
6
|
+
exports.useSmsState = exports.useSmsActions = void 0;
|
|
7
|
+
var _hookFactory = require("../useSnapshot/hookFactory");
|
|
8
|
+
const {
|
|
9
|
+
useSliceState: useSmsState,
|
|
10
|
+
useSliceActions: useSmsActions
|
|
11
|
+
} = (0, _hookFactory.createSliceHooks)({
|
|
12
|
+
getState: s => s.auth.smsState,
|
|
13
|
+
getActions: a => a.auth.smsActions
|
|
14
|
+
});
|
|
15
|
+
exports.useSmsActions = useSmsActions;
|
|
16
|
+
exports.useSmsState = useSmsState;
|
package/node/auth/socialLogin.js
CHANGED
|
@@ -3,16 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useSocialLoginActions = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
exports.useSocialLoginActions = useSocialLoginActions;
|
|
6
|
+
exports.useSocialLoginState = exports.useSocialLoginActions = void 0;
|
|
7
|
+
var _hookFactory = require("../useSnapshot/hookFactory");
|
|
8
|
+
const {
|
|
9
|
+
useSliceState: useSocialLoginState,
|
|
10
|
+
useSliceActions: useSocialLoginActions
|
|
11
|
+
} = (0, _hookFactory.createSliceHooks)({
|
|
12
|
+
getState: s => s.auth.socialLoginState,
|
|
13
|
+
getActions: a => a.auth.socialLoginActions
|
|
14
|
+
});
|
|
15
|
+
exports.useSocialLoginActions = useSocialLoginActions;
|
|
16
|
+
exports.useSocialLoginState = useSocialLoginState;
|
package/node/auth/sso.js
CHANGED
|
@@ -3,16 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useSSOActions = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
exports.useSSOActions = useSSOActions;
|
|
6
|
+
exports.useSSOState = exports.useSSOActions = void 0;
|
|
7
|
+
var _hookFactory = require("../useSnapshot/hookFactory");
|
|
8
|
+
const {
|
|
9
|
+
useSliceState: useSSOState,
|
|
10
|
+
useSliceActions: useSSOActions
|
|
11
|
+
} = (0, _hookFactory.createSliceHooks)({
|
|
12
|
+
getState: s => s.auth.ssoState,
|
|
13
|
+
getActions: a => a.auth.ssoActions
|
|
14
|
+
});
|
|
15
|
+
exports.useSSOActions = useSSOActions;
|
|
16
|
+
exports.useSSOState = useSSOState;
|
package/node/auth/stepUp.js
CHANGED
|
@@ -3,32 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useStepUpActions = exports.useStepUp = exports.useIsSteppedUp = exports.getMaxAgeFromQueryParam = void 0;
|
|
7
|
-
exports.useStepUpState = useStepUpState;
|
|
6
|
+
exports.useStepUpState = exports.useStepUpActions = exports.useStepUp = exports.useIsSteppedUp = exports.getMaxAgeFromQueryParam = void 0;
|
|
8
7
|
var _reduxStore = require("@frontegg/redux-store");
|
|
9
|
-
var _useSnapshot = require("../useSnapshot");
|
|
10
|
-
var _FronteggStoreContext = require("../FronteggStoreContext");
|
|
11
|
-
var _hooks = require("./hooks");
|
|
12
8
|
var _react = require("react");
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
*/
|
|
9
|
+
var _hookFactory = require("../useSnapshot/hookFactory");
|
|
10
|
+
var _hooks = require("./hooks");
|
|
11
|
+
const {
|
|
12
|
+
useSliceState: useStepUpState,
|
|
13
|
+
useSliceActions: useStepUpActions
|
|
14
|
+
} = (0, _hookFactory.createSliceHooks)({
|
|
15
|
+
getState: s => s.auth.stepUpState,
|
|
16
|
+
getActions: a => a.auth.stepUpActions
|
|
17
|
+
});
|
|
23
18
|
exports.useStepUpActions = useStepUpActions;
|
|
19
|
+
exports.useStepUpState = useStepUpState;
|
|
24
20
|
const getMaxAgeFromQueryParam = () => {
|
|
25
21
|
const str = (0, _reduxStore.getSearchParam)(_reduxStore.STEP_UP_MAX_AGE_PARAM_NAME);
|
|
26
22
|
return str === undefined ? undefined : +str;
|
|
27
23
|
};
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @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
|
|
31
|
-
*/
|
|
32
24
|
exports.getMaxAgeFromQueryParam = getMaxAgeFromQueryParam;
|
|
33
25
|
const useStepUp = () => {
|
|
34
26
|
const {
|
|
@@ -49,11 +41,6 @@ const useStepUp = () => {
|
|
|
49
41
|
(0, _reduxStore.redirectByStepUpUrl)(stepUpUrl, onRedirectTo, options == null ? void 0 : options.maxAge);
|
|
50
42
|
}, [stepUpUrl, onRedirectTo, stepUpHostedLogin, hostedLoginBox]);
|
|
51
43
|
};
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @param options.maxAge - max age of step up
|
|
55
|
-
* @returns true when the user is stepped up, false otherwise
|
|
56
|
-
*/
|
|
57
44
|
exports.useStepUp = useStepUp;
|
|
58
45
|
const useIsSteppedUp = (options = {}) => {
|
|
59
46
|
const user = (0, _hooks.useAuthUserOrNull)();
|
package/node/auth/team.js
CHANGED
|
@@ -3,34 +3,22 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useAuthTeamActions = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
const useTeamActions = () => {
|
|
17
|
-
return (0, _FronteggStoreContext.useStore)().stateActions.auth.teamActions;
|
|
18
|
-
};
|
|
19
|
-
exports.useTeamActions = useTeamActions;
|
|
20
|
-
const defaultMapper = state => state;
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated use useTeamState instead
|
|
23
|
-
*/
|
|
6
|
+
exports.useTeamState = exports.useTeamActions = exports.useAuthTeamState = exports.useAuthTeamActions = void 0;
|
|
7
|
+
var _hookFactory = require("../useSnapshot/hookFactory");
|
|
8
|
+
const {
|
|
9
|
+
useSliceState: useTeamState,
|
|
10
|
+
useSliceActions: useTeamActions
|
|
11
|
+
} = (0, _hookFactory.createSliceHooks)({
|
|
12
|
+
getState: s => s.auth.teamState,
|
|
13
|
+
getActions: a => a.auth.teamActions
|
|
14
|
+
});
|
|
24
15
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
/* @deprecated use useTeamActions instead */
|
|
17
|
+
exports.useTeamActions = useTeamActions;
|
|
18
|
+
exports.useTeamState = useTeamState;
|
|
19
|
+
const useAuthTeamState = useTeamState;
|
|
29
20
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const useAuthTeamActions = () => {
|
|
34
|
-
return useTeamActions();
|
|
35
|
-
};
|
|
21
|
+
/* @deprecated use useTeamActions instead */
|
|
22
|
+
exports.useAuthTeamState = useAuthTeamState;
|
|
23
|
+
const useAuthTeamActions = useTeamActions;
|
|
36
24
|
exports.useAuthTeamActions = useAuthTeamActions;
|
package/node/auth/tenants.js
CHANGED
|
@@ -3,15 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useTenantsActions = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports.useTenantsActions = useTenantsActions;
|
|
6
|
+
exports.useTenantsState = exports.useTenantsActions = void 0;
|
|
7
|
+
var _hookFactory = require("../useSnapshot/hookFactory");
|
|
8
|
+
const {
|
|
9
|
+
useSliceState: useTenantsState,
|
|
10
|
+
useSliceActions: useTenantsActions
|
|
11
|
+
} = (0, _hookFactory.createSliceHooks)({
|
|
12
|
+
getState: s => s.auth.tenantsState,
|
|
13
|
+
getActions: a => a.auth.tenantsActions
|
|
14
|
+
});
|
|
15
|
+
exports.useTenantsActions = useTenantsActions;
|
|
16
|
+
exports.useTenantsState = useTenantsState;
|
|
@@ -3,16 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useUnlockAccountActions = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
exports.useUnlockAccountActions = useUnlockAccountActions;
|
|
6
|
+
exports.useUnlockAccountState = exports.useUnlockAccountActions = void 0;
|
|
7
|
+
var _hookFactory = require("../useSnapshot/hookFactory");
|
|
8
|
+
const {
|
|
9
|
+
useSliceState: useUnlockAccountState,
|
|
10
|
+
useSliceActions: useUnlockAccountActions
|
|
11
|
+
} = (0, _hookFactory.createSliceHooks)({
|
|
12
|
+
getState: s => s.auth.unlockAccountState,
|
|
13
|
+
getActions: a => a.auth.unlockAccountActions
|
|
14
|
+
});
|
|
15
|
+
exports.useUnlockAccountActions = useUnlockAccountActions;
|
|
16
|
+
exports.useUnlockAccountState = useUnlockAccountState;
|
package/node/auth/usernames.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useUsernamesActions = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
exports.
|
|
6
|
+
exports.useUsernamesState = exports.useUsernamesActions = void 0;
|
|
7
|
+
var _hookFactory = require("../useSnapshot/hookFactory");
|
|
8
|
+
const {
|
|
9
|
+
useSliceState: useUsernamesState,
|
|
10
|
+
useSliceActions: useUsernamesActions
|
|
11
|
+
} = (0, _hookFactory.createSliceHooks)({
|
|
12
|
+
getState: s => s.auth.usernamesState,
|
|
13
|
+
getActions: a => a.auth.usernamesActions
|
|
14
|
+
});
|
|
15
|
+
exports.useUsernamesActions = useUsernamesActions;
|
|
16
|
+
exports.useUsernamesState = useUsernamesState;
|
|
@@ -3,16 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useUsersEmailsPolicyActions = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
exports.useUsersEmailsPolicyActions = useUsersEmailsPolicyActions;
|
|
6
|
+
exports.useUsersEmailsPolicyState = exports.useUsersEmailsPolicyActions = void 0;
|
|
7
|
+
var _hookFactory = require("../useSnapshot/hookFactory");
|
|
8
|
+
const {
|
|
9
|
+
useSliceState: useUsersEmailsPolicyState,
|
|
10
|
+
useSliceActions: useUsersEmailsPolicyActions
|
|
11
|
+
} = (0, _hookFactory.createSliceHooks)({
|
|
12
|
+
getState: s => s.auth.userEmailPolicyState,
|
|
13
|
+
getActions: a => a.auth.usersEmailsPolicyActions
|
|
14
|
+
});
|
|
15
|
+
exports.useUsersEmailsPolicyActions = useUsersEmailsPolicyActions;
|
|
16
|
+
exports.useUsersEmailsPolicyState = useUsersEmailsPolicyState;
|
|
@@ -3,15 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.useConnectivityActions = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports.useConnectivityActions = useConnectivityActions;
|
|
6
|
+
exports.useConnectivityState = exports.useConnectivityActions = void 0;
|
|
7
|
+
var _hookFactory = require("../useSnapshot/hookFactory");
|
|
8
|
+
const {
|
|
9
|
+
useSliceState: useConnectivityState,
|
|
10
|
+
useSliceActions: useConnectivityActions
|
|
11
|
+
} = (0, _hookFactory.createSliceHooks)({
|
|
12
|
+
getState: s => s.connectivity,
|
|
13
|
+
getActions: a => a.connectivity
|
|
14
|
+
});
|
|
15
|
+
exports.useConnectivityActions = useConnectivityActions;
|
|
16
|
+
exports.useConnectivityState = useConnectivityState;
|
package/node/index.js
CHANGED