@blocklet/discuss-kit-ux 2.3.87 → 2.3.88
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.
|
@@ -1,23 +1,3 @@
|
|
|
1
|
-
export interface SessionContextUser {
|
|
2
|
-
did: string;
|
|
3
|
-
fullName: string;
|
|
4
|
-
avatar: string;
|
|
5
|
-
passports: {
|
|
6
|
-
id: string;
|
|
7
|
-
name: string;
|
|
8
|
-
title: string;
|
|
9
|
-
role: string;
|
|
10
|
-
}[];
|
|
11
|
-
permissions: string[];
|
|
12
|
-
role: string;
|
|
13
|
-
locale: string;
|
|
14
|
-
}
|
|
15
|
-
interface Session {
|
|
16
|
-
initialized: boolean;
|
|
17
|
-
user: SessionContextUser;
|
|
18
|
-
login: (...args: any[]) => void;
|
|
19
|
-
switchPassport: (...args: any[]) => void;
|
|
20
|
-
}
|
|
21
1
|
export declare const useSessionContext: () => {
|
|
22
2
|
isAuthenticated: boolean;
|
|
23
3
|
isAdmin: boolean;
|
|
@@ -28,4 +8,3 @@ export declare const useSessionContext: () => {
|
|
|
28
8
|
session: Session;
|
|
29
9
|
connectApi: any;
|
|
30
10
|
};
|
|
31
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.88",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"unstated-next": "^1.1.0",
|
|
49
49
|
"url-join": "^4.0.1",
|
|
50
50
|
"zustand": "^4.5.5",
|
|
51
|
-
"@blocklet/editor": "^2.3.
|
|
52
|
-
"@blocklet/labels": "^2.3.
|
|
51
|
+
"@blocklet/editor": "^2.3.88",
|
|
52
|
+
"@blocklet/labels": "^2.3.88"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@arcblock/did-connect": "^2.10.36",
|