@blocklet/labels 1.6.182 → 1.6.183
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/dist/components/label/types.d.ts +4 -0
- package/dist/index-LED75_5N.mjs +17467 -0
- package/dist/index-gwsJxz2s.mjs +155 -0
- package/dist/index.es.js +70 -1321
- package/dist/index.umd.js +16633 -380
- package/dist/label2/labels-context.d.ts +6 -0
- package/dist/label2/session.d.ts +19 -0
- package/dist/label2/tree.d.ts +3 -1
- package/dist/types.d.ts +3 -0
- package/package.json +3 -3
|
@@ -16,7 +16,9 @@ export declare const LabelsContainer: import("unstated-next").Container<{
|
|
|
16
16
|
id: string;
|
|
17
17
|
name: string;
|
|
18
18
|
icon?: string | undefined;
|
|
19
|
+
type?: import("../types").LabelType;
|
|
19
20
|
color: string;
|
|
21
|
+
passports: string[];
|
|
20
22
|
translation?: {
|
|
21
23
|
[locale: string]: string;
|
|
22
24
|
} | undefined;
|
|
@@ -29,7 +31,9 @@ export declare const LabelsContainer: import("unstated-next").Container<{
|
|
|
29
31
|
id: string;
|
|
30
32
|
name: string;
|
|
31
33
|
icon?: string | undefined;
|
|
34
|
+
type?: import("../types").LabelType;
|
|
32
35
|
color: string;
|
|
36
|
+
passports: string[];
|
|
33
37
|
translation?: {
|
|
34
38
|
[locale: string]: string;
|
|
35
39
|
} | undefined;
|
|
@@ -42,7 +46,9 @@ export declare const LabelsContainer: import("unstated-next").Container<{
|
|
|
42
46
|
id: string;
|
|
43
47
|
name: string;
|
|
44
48
|
icon?: string | undefined;
|
|
49
|
+
type?: import("../types").LabelType;
|
|
45
50
|
color: string;
|
|
51
|
+
passports: string[];
|
|
46
52
|
translation?: {
|
|
47
53
|
[locale: string]: string;
|
|
48
54
|
} | undefined;
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
}[];
|
|
10
|
+
permissions: string[];
|
|
11
|
+
role: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const useSessionContext: () => {
|
|
14
|
+
isAdmin: boolean;
|
|
15
|
+
hasAnyPassport: (passports: string | string[]) => boolean;
|
|
16
|
+
session: {
|
|
17
|
+
user: SessionContextUser;
|
|
18
|
+
};
|
|
19
|
+
};
|
package/dist/label2/tree.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseLabel } from '../types';
|
|
1
|
+
import type { BaseLabel, LabelType } from '../types';
|
|
2
2
|
export declare class TreeNode<T> {
|
|
3
3
|
data: T;
|
|
4
4
|
parent?: TreeNode<T>;
|
|
@@ -21,7 +21,9 @@ declare class Label {
|
|
|
21
21
|
id: string;
|
|
22
22
|
name: string;
|
|
23
23
|
icon?: string;
|
|
24
|
+
type?: LabelType;
|
|
24
25
|
color: string;
|
|
26
|
+
passports: string[];
|
|
25
27
|
translation?: {
|
|
26
28
|
[locale: string]: string;
|
|
27
29
|
};
|
package/dist/types.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
export type LabelType = 'system' | undefined;
|
|
1
2
|
export interface BaseLabel {
|
|
2
3
|
id: string;
|
|
3
4
|
name: string;
|
|
4
5
|
icon?: string;
|
|
5
6
|
color?: string;
|
|
7
|
+
type?: LabelType;
|
|
8
|
+
passports?: string[];
|
|
6
9
|
}
|
|
7
10
|
export interface LabelPayload extends BaseLabel {
|
|
8
11
|
translation?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/labels",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.183",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@blocklet/translation-input": "1.6.
|
|
31
|
+
"@blocklet/translation-input": "1.6.183",
|
|
32
32
|
"@emotion/css": "^11.10.5",
|
|
33
33
|
"@emotion/react": "^11.10.5",
|
|
34
34
|
"@emotion/styled": "^11.10.5",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"resolutions": {
|
|
83
83
|
"react": "^18.2.0"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "59597449f4d3d4373b598fcf9e80bdc7eb9c098c"
|
|
86
86
|
}
|