@agents24/chat-react 0.5.37 → 0.5.38
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 +31 -1
- package/compatibility.json +5 -5
- package/dist/registry/agents24-chat.json +7 -7
- package/dist/ui/agent-chat-composer.d.ts +8 -1
- package/dist/ui/index.cjs +27 -4
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.js +27 -4
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/use-agent-chat-composer.d.ts +11 -1
- package/package.json +3 -3
|
@@ -6,6 +6,16 @@ export type AgentChatComposerSubmission = {
|
|
|
6
6
|
text: string;
|
|
7
7
|
files: AgentChatComposerFile[];
|
|
8
8
|
};
|
|
9
|
+
export type AgentChatComposerTextOptions = {
|
|
10
|
+
/** Focus after the controlled textarea has committed the new text. Defaults to false. */
|
|
11
|
+
focus?: boolean;
|
|
12
|
+
/** UTF-16 offsets into the new text, clamped to its bounds. Does not imply focus. */
|
|
13
|
+
selection?: {
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
direction?: "forward" | "backward" | "none";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
9
19
|
export type AgentChatComposerOptions = {
|
|
10
20
|
inputContract?: AgentChatInputContract | null;
|
|
11
21
|
recordingEnabled?: boolean;
|
|
@@ -29,7 +39,7 @@ export type AgentChatComposerOptions = {
|
|
|
29
39
|
};
|
|
30
40
|
export declare function useAgentChatComposer(options: AgentChatComposerOptions): {
|
|
31
41
|
text: string;
|
|
32
|
-
setText: (value: string) =>
|
|
42
|
+
setText: (value: string, interaction?: AgentChatComposerTextOptions) => boolean;
|
|
33
43
|
files: AgentChatComposerFile[];
|
|
34
44
|
addFiles: (selected: readonly File[]) => void;
|
|
35
45
|
removeFile: (id: string) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agents24/chat-react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.38",
|
|
4
4
|
"description": "Accessible web UI and complete default layout for Agents24 chat applications.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -64,8 +64,8 @@
|
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@untitledui/file-icons": "0.0.9",
|
|
67
|
-
"@agents24/client": "0.2.
|
|
68
|
-
"@agents24/react": "0.2.
|
|
67
|
+
"@agents24/client": "0.2.20",
|
|
68
|
+
"@agents24/react": "0.2.25",
|
|
69
69
|
"@fontsource-variable/inter": "^5.3.0",
|
|
70
70
|
"@fontsource-variable/jetbrains-mono": "^5.3.0",
|
|
71
71
|
"@fontsource-variable/merriweather": "^5.3.0",
|