@webiny/app-security 5.22.0-beta.1 → 5.22.1-beta.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/contexts/Security.d.ts +2 -2
- package/hooks/useSecurity.d.ts +2 -2
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +7 -7
package/contexts/Security.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React, { Dispatch, SetStateAction } from "react";
|
|
2
2
|
import { SecurityIdentity, SecurityPermission } from "../types";
|
|
3
|
-
export
|
|
4
|
-
export interface SecurityContextValue {
|
|
3
|
+
export interface SecurityContext {
|
|
5
4
|
identity: SecurityIdentity | null;
|
|
6
5
|
setIdentity: Dispatch<SetStateAction<SecurityIdentity>>;
|
|
7
6
|
getPermission<T extends SecurityPermission = SecurityPermission>(name: string): T;
|
|
8
7
|
}
|
|
8
|
+
export declare const SecurityContext: React.Context<SecurityContext>;
|
|
9
9
|
export declare const SecurityProvider: (props: any) => JSX.Element;
|
package/hooks/useSecurity.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function useSecurity():
|
|
1
|
+
import { SecurityContext } from "../contexts/Security";
|
|
2
|
+
export declare function useSecurity(): SecurityContext;
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-security",
|
|
3
|
-
"version": "5.22.
|
|
3
|
+
"version": "5.22.1-beta.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
],
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@webiny/app": "5.22.
|
|
17
|
-
"@webiny/app-admin-core": "5.22.
|
|
18
|
-
"@webiny/plugins": "5.22.
|
|
16
|
+
"@webiny/app": "5.22.1-beta.0",
|
|
17
|
+
"@webiny/app-admin-core": "5.22.1-beta.0",
|
|
18
|
+
"@webiny/plugins": "5.22.1-beta.0",
|
|
19
19
|
"minimatch": "3.0.4",
|
|
20
20
|
"react": "16.14.0",
|
|
21
21
|
"react-dom": "16.14.0"
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"@babel/preset-env": "^7.16.4",
|
|
28
28
|
"@babel/preset-react": "^7.16.0",
|
|
29
29
|
"@babel/preset-typescript": "^7.16.0",
|
|
30
|
-
"@webiny/cli": "^5.22.
|
|
31
|
-
"@webiny/project-utils": "^5.22.
|
|
30
|
+
"@webiny/cli": "^5.22.1-beta.0",
|
|
31
|
+
"@webiny/project-utils": "^5.22.1-beta.0",
|
|
32
32
|
"babel-plugin-emotion": "^9.2.8",
|
|
33
33
|
"babel-plugin-lodash": "^3.3.4",
|
|
34
34
|
"rimraf": "^3.0.2",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
]
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "37f7c3d99baa1793fe29221b5eca40fe92cfe190"
|
|
54
54
|
}
|