@htmlbricks/hb-messages-list 0.60.50 → 0.60.52
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/main.iife.js +143 -62
- package/main.iife.js.map +1 -1
- package/manifest.json +172 -118
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +19 -3
- package/types/webcomponent.type.d.ts +5 -4
- package/types/webcomponent_events.type.d.json +14 -49
package/package.json
CHANGED
|
@@ -5,6 +5,25 @@
|
|
|
5
5
|
"Component": {
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"properties": {
|
|
8
|
+
"actions": {
|
|
9
|
+
"items": {
|
|
10
|
+
"additionalProperties": false,
|
|
11
|
+
"properties": {
|
|
12
|
+
"icon": {
|
|
13
|
+
"type": "string"
|
|
14
|
+
},
|
|
15
|
+
"name": {
|
|
16
|
+
"type": "string"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"required": [
|
|
20
|
+
"icon",
|
|
21
|
+
"name"
|
|
22
|
+
],
|
|
23
|
+
"type": "object"
|
|
24
|
+
},
|
|
25
|
+
"type": "array"
|
|
26
|
+
},
|
|
8
27
|
"authors": {
|
|
9
28
|
"items": {
|
|
10
29
|
"$ref": "#/definitions/TAuthor"
|
|
@@ -26,9 +45,6 @@
|
|
|
26
45
|
"bubbles": {
|
|
27
46
|
"type": "boolean"
|
|
28
47
|
},
|
|
29
|
-
"showActions": {
|
|
30
|
-
"type": "boolean"
|
|
31
|
-
},
|
|
32
48
|
"showAvatar": {
|
|
33
49
|
"type": "boolean"
|
|
34
50
|
},
|
|
@@ -30,15 +30,16 @@ export type Component = {
|
|
|
30
30
|
authors: TAuthor[];
|
|
31
31
|
options?: {
|
|
32
32
|
showTimestamp?: boolean;
|
|
33
|
-
showActions?: boolean;
|
|
34
33
|
showAvatar?: boolean;
|
|
35
34
|
showName?: boolean;
|
|
36
35
|
bubbles?: boolean;
|
|
37
36
|
};
|
|
37
|
+
actions?: {
|
|
38
|
+
icon: string;
|
|
39
|
+
name: string;
|
|
40
|
+
}[]
|
|
38
41
|
};
|
|
39
42
|
|
|
40
43
|
export type Events = {
|
|
41
|
-
|
|
42
|
-
onDeleteMessage?: (messageId: string) => void;
|
|
43
|
-
onEditMessage?: (messageId: string) => void;
|
|
44
|
+
action: { messageId: string; action: string };
|
|
44
45
|
};
|
|
@@ -5,61 +5,26 @@
|
|
|
5
5
|
"Events": {
|
|
6
6
|
"additionalProperties": false,
|
|
7
7
|
"properties": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
8
|
+
"action": {
|
|
9
|
+
"additionalProperties": false,
|
|
10
10
|
"properties": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"required": [
|
|
19
|
-
"messageId"
|
|
20
|
-
],
|
|
21
|
-
"type": "object"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"type": "object"
|
|
25
|
-
},
|
|
26
|
-
"onDeleteMessage": {
|
|
27
|
-
"$comment": "(messageId: string) => void",
|
|
28
|
-
"properties": {
|
|
29
|
-
"namedArgs": {
|
|
30
|
-
"additionalProperties": false,
|
|
31
|
-
"properties": {
|
|
32
|
-
"messageId": {
|
|
33
|
-
"type": "string"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"required": [
|
|
37
|
-
"messageId"
|
|
38
|
-
],
|
|
39
|
-
"type": "object"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"type": "object"
|
|
43
|
-
},
|
|
44
|
-
"onEditMessage": {
|
|
45
|
-
"$comment": "(messageId: string) => void",
|
|
46
|
-
"properties": {
|
|
47
|
-
"namedArgs": {
|
|
48
|
-
"additionalProperties": false,
|
|
49
|
-
"properties": {
|
|
50
|
-
"messageId": {
|
|
51
|
-
"type": "string"
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
"required": [
|
|
55
|
-
"messageId"
|
|
56
|
-
],
|
|
57
|
-
"type": "object"
|
|
11
|
+
"action": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"messageId": {
|
|
15
|
+
"type": "string"
|
|
58
16
|
}
|
|
59
17
|
},
|
|
18
|
+
"required": [
|
|
19
|
+
"messageId",
|
|
20
|
+
"action"
|
|
21
|
+
],
|
|
60
22
|
"type": "object"
|
|
61
23
|
}
|
|
62
24
|
},
|
|
25
|
+
"required": [
|
|
26
|
+
"action"
|
|
27
|
+
],
|
|
63
28
|
"type": "object"
|
|
64
29
|
}
|
|
65
30
|
}
|