@htmlbricks/hb-messages-send 0.66.8 → 0.66.9
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/README.md +29 -0
- package/manifest.json +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# hb-messages-send
|
|
2
|
+
|
|
3
|
+
## Description
|
|
4
|
+
|
|
5
|
+
Message composer with auto-growing textarea (optional `expandable` and maximize control), Enter-to-send, file attachments with previews (`files.mode` single or multiple), and optional `tags` as toggleable chips. Dispatches `sendMessage` with `text`, selected `tags`, and staged `files` when the user sends.
|
|
6
|
+
|
|
7
|
+
## Types
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
export type Component = {
|
|
11
|
+
id?: string;
|
|
12
|
+
style?: string;
|
|
13
|
+
text?: string;
|
|
14
|
+
expandable?: boolean;
|
|
15
|
+
tags?: {
|
|
16
|
+
label?: string;
|
|
17
|
+
icon?: string;
|
|
18
|
+
id: string
|
|
19
|
+
color?: string;
|
|
20
|
+
}[]
|
|
21
|
+
files?: {
|
|
22
|
+
mode: "single" | "multiple";
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type Events = {
|
|
27
|
+
sendMessage: { text?: string; id: string; tags: string[]; files: File[] };
|
|
28
|
+
};
|
|
29
|
+
```
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-messages-send",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.9",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Message composer with auto-growing textarea (optional `expandable` and maximize control), Enter-to-send, file attachments with previews (`files.mode` single or multiple), and optional `tags` as toggleable chips. Dispatches `sendMessage` with `text`, selected `tags`, and staged `files` when the user sends.",
|
|
6
6
|
"licenses": [
|