@frontegg/react-hooks 6.129.0-alpha.1 → 6.129.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.
- package/auth/index.d.ts +4 -4
- package/auth/index.js +4 -4
- package/auth/{restrictions.js → security/restrictions.js} +1 -1
- package/auth/{securityCenter.js → security/securityCenter.js} +1 -1
- package/auth/{securityPolicy.js → security/securityPolicy.js} +1 -1
- package/auth/{sessionsPolicy.js → security/sessionsPolicy.js} +1 -1
- package/index.js +1 -1
- package/node/auth/index.js +4 -4
- package/node/auth/{restrictions.js → security/restrictions.js} +1 -1
- package/node/auth/{securityCenter.js → security/securityCenter.js} +1 -1
- package/node/auth/{securityPolicy.js → security/securityPolicy.js} +1 -1
- package/node/auth/{sessionsPolicy.js → security/sessionsPolicy.js} +1 -1
- package/node/index.js +1 -1
- package/package.json +3 -3
- /package/auth/{restrictions.d.ts → security/restrictions.d.ts} +0 -0
- /package/auth/{securityCenter.d.ts → security/securityCenter.d.ts} +0 -0
- /package/auth/{securityPolicy.d.ts → security/securityPolicy.d.ts} +0 -0
- /package/auth/{sessionsPolicy.d.ts → security/sessionsPolicy.d.ts} +0 -0
package/auth/index.d.ts
CHANGED
|
@@ -11,12 +11,12 @@ export * from './signup';
|
|
|
11
11
|
export * from './socialLogin';
|
|
12
12
|
export * from './team';
|
|
13
13
|
export * from './sso';
|
|
14
|
-
export * from './securityPolicy';
|
|
14
|
+
export * from './security/securityPolicy';
|
|
15
15
|
export * from './tenants';
|
|
16
16
|
export * from './roles';
|
|
17
17
|
export * from './sessions';
|
|
18
|
-
export * from './sessionsPolicy';
|
|
19
|
-
export * from './restrictions';
|
|
18
|
+
export * from './security/sessionsPolicy';
|
|
19
|
+
export * from './security/restrictions';
|
|
20
20
|
export * from './provisioning';
|
|
21
21
|
export * from './impersonate';
|
|
22
22
|
export * from './passkeys';
|
|
@@ -24,4 +24,4 @@ export * from './groups';
|
|
|
24
24
|
export * from './customLogin';
|
|
25
25
|
export * from './MSP/allAccounts';
|
|
26
26
|
export * from './entitlements';
|
|
27
|
-
export * from './securityCenter';
|
|
27
|
+
export * from './security/securityCenter';
|
package/auth/index.js
CHANGED
|
@@ -11,12 +11,12 @@ export * from './signup';
|
|
|
11
11
|
export * from './socialLogin';
|
|
12
12
|
export * from './team';
|
|
13
13
|
export * from './sso';
|
|
14
|
-
export * from './securityPolicy';
|
|
14
|
+
export * from './security/securityPolicy';
|
|
15
15
|
export * from './tenants';
|
|
16
16
|
export * from './roles';
|
|
17
17
|
export * from './sessions';
|
|
18
|
-
export * from './sessionsPolicy';
|
|
19
|
-
export * from './restrictions';
|
|
18
|
+
export * from './security/sessionsPolicy';
|
|
19
|
+
export * from './security/restrictions';
|
|
20
20
|
export * from './provisioning';
|
|
21
21
|
export * from './impersonate';
|
|
22
22
|
export * from './passkeys';
|
|
@@ -24,4 +24,4 @@ export * from './groups';
|
|
|
24
24
|
export * from './customLogin';
|
|
25
25
|
export * from './MSP/allAccounts';
|
|
26
26
|
export * from './entitlements';
|
|
27
|
-
export * from './securityCenter';
|
|
27
|
+
export * from './security/securityCenter';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { restrictionsReducers, restrictionsActions } from '@frontegg/redux-store';
|
|
2
2
|
import { useEffect } from 'react';
|
|
3
|
-
import { reducerActionsGenerator, stateHookGenerator } from '
|
|
3
|
+
import { reducerActionsGenerator, stateHookGenerator } from '../hooks';
|
|
4
4
|
const defaultMapper = state => state;
|
|
5
5
|
export function useRestrictionsState(stateMapper = defaultMapper) {
|
|
6
6
|
return stateHookGenerator(stateMapper, 'restrictionsState');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { securityCenterActions, securityCenterReducers } from '@frontegg/redux-store';
|
|
2
|
-
import { reducerActionsGenerator, stateHookGenerator } from '
|
|
2
|
+
import { reducerActionsGenerator, stateHookGenerator } from '../hooks';
|
|
3
3
|
const defaultMapper = state => state;
|
|
4
4
|
export function useSecurityCenterState(stateMapper = defaultMapper) {
|
|
5
5
|
return stateHookGenerator(stateMapper, 'securityCenterState');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { securityPolicyActions, securityPolicyReducers } from '@frontegg/redux-store';
|
|
2
|
-
import { reducerActionsGenerator, stateHookGenerator } from '
|
|
2
|
+
import { reducerActionsGenerator, stateHookGenerator } from '../hooks';
|
|
3
3
|
import { useEffect } from 'react';
|
|
4
4
|
const defaultMapper = state => state;
|
|
5
5
|
export function useSecurityPolicyState(stateMapper = defaultMapper) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { sessionsPolicyActions, sessionsPolicyReducers } from '@frontegg/redux-store';
|
|
2
|
-
import { reducerActionsGenerator, stateHookGenerator } from '
|
|
2
|
+
import { reducerActionsGenerator, stateHookGenerator } from '../hooks';
|
|
3
3
|
const defaultMapper = state => state;
|
|
4
4
|
export function useSessionsPolicyState(stateMapper = defaultMapper) {
|
|
5
5
|
return stateHookGenerator(stateMapper, 'sessionsPolicyState');
|
package/index.js
CHANGED
package/node/auth/index.js
CHANGED
|
@@ -206,7 +206,7 @@ Object.keys(_sso).forEach(function (key) {
|
|
|
206
206
|
}
|
|
207
207
|
});
|
|
208
208
|
});
|
|
209
|
-
var _securityPolicy = require("./securityPolicy");
|
|
209
|
+
var _securityPolicy = require("./security/securityPolicy");
|
|
210
210
|
Object.keys(_securityPolicy).forEach(function (key) {
|
|
211
211
|
if (key === "default" || key === "__esModule") return;
|
|
212
212
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -254,7 +254,7 @@ Object.keys(_sessions).forEach(function (key) {
|
|
|
254
254
|
}
|
|
255
255
|
});
|
|
256
256
|
});
|
|
257
|
-
var _sessionsPolicy = require("./sessionsPolicy");
|
|
257
|
+
var _sessionsPolicy = require("./security/sessionsPolicy");
|
|
258
258
|
Object.keys(_sessionsPolicy).forEach(function (key) {
|
|
259
259
|
if (key === "default" || key === "__esModule") return;
|
|
260
260
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -266,7 +266,7 @@ Object.keys(_sessionsPolicy).forEach(function (key) {
|
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
268
|
});
|
|
269
|
-
var _restrictions = require("./restrictions");
|
|
269
|
+
var _restrictions = require("./security/restrictions");
|
|
270
270
|
Object.keys(_restrictions).forEach(function (key) {
|
|
271
271
|
if (key === "default" || key === "__esModule") return;
|
|
272
272
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -362,7 +362,7 @@ Object.keys(_entitlements).forEach(function (key) {
|
|
|
362
362
|
}
|
|
363
363
|
});
|
|
364
364
|
});
|
|
365
|
-
var _securityCenter = require("./securityCenter");
|
|
365
|
+
var _securityCenter = require("./security/securityCenter");
|
|
366
366
|
Object.keys(_securityCenter).forEach(function (key) {
|
|
367
367
|
if (key === "default" || key === "__esModule") return;
|
|
368
368
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -7,7 +7,7 @@ exports.useRestrictionsActions = exports.useIpRestrictions = exports.useEmailDom
|
|
|
7
7
|
exports.useRestrictionsState = useRestrictionsState;
|
|
8
8
|
var _reduxStore = require("@frontegg/redux-store");
|
|
9
9
|
var _react = require("react");
|
|
10
|
-
var _hooks = require("
|
|
10
|
+
var _hooks = require("../hooks");
|
|
11
11
|
const defaultMapper = state => state;
|
|
12
12
|
function useRestrictionsState(stateMapper = defaultMapper) {
|
|
13
13
|
return (0, _hooks.stateHookGenerator)(stateMapper, 'restrictionsState');
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useSecurityCenterActions = void 0;
|
|
7
7
|
exports.useSecurityCenterState = useSecurityCenterState;
|
|
8
8
|
var _reduxStore = require("@frontegg/redux-store");
|
|
9
|
-
var _hooks = require("
|
|
9
|
+
var _hooks = require("../hooks");
|
|
10
10
|
const defaultMapper = state => state;
|
|
11
11
|
function useSecurityCenterState(stateMapper = defaultMapper) {
|
|
12
12
|
return (0, _hooks.stateHookGenerator)(stateMapper, 'securityCenterState');
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useSecurityPolicyActions = exports.usePublicPolicySettings = exports.usePublicAuthStrategiesPolicySettings = void 0;
|
|
7
7
|
exports.useSecurityPolicyState = useSecurityPolicyState;
|
|
8
8
|
var _reduxStore = require("@frontegg/redux-store");
|
|
9
|
-
var _hooks = require("
|
|
9
|
+
var _hooks = require("../hooks");
|
|
10
10
|
var _react = require("react");
|
|
11
11
|
const defaultMapper = state => state;
|
|
12
12
|
function useSecurityPolicyState(stateMapper = defaultMapper) {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.useSessionsPolicyActions = void 0;
|
|
7
7
|
exports.useSessionsPolicyState = useSessionsPolicyState;
|
|
8
8
|
var _reduxStore = require("@frontegg/redux-store");
|
|
9
|
-
var _hooks = require("
|
|
9
|
+
var _hooks = require("../hooks");
|
|
10
10
|
const defaultMapper = state => state;
|
|
11
11
|
function useSessionsPolicyState(stateMapper = defaultMapper) {
|
|
12
12
|
return (0, _hooks.stateHookGenerator)(stateMapper, 'sessionsPolicyState');
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/react-hooks",
|
|
3
|
-
"version": "6.129.0-alpha.
|
|
3
|
+
"version": "6.129.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.129.0-alpha.
|
|
10
|
-
"@frontegg/types": "6.129.0-alpha.
|
|
9
|
+
"@frontegg/redux-store": "6.129.0-alpha.3",
|
|
10
|
+
"@frontegg/types": "6.129.0-alpha.3",
|
|
11
11
|
"@types/react": "*",
|
|
12
12
|
"get-value": "^3.0.1",
|
|
13
13
|
"react-redux": "^7.x"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|