teodor-new-chat-ui 4.3.755 → 4.3.757
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/features/conversation/hooks/useChatController.d.ts +2 -2
- package/dist/features/conversation/hooks/useChatSession.d.ts +1 -0
- package/dist/index.esm.js +2364 -2362
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +19 -19
- package/dist/index.umd.js.map +1 -1
- package/dist/types/core.d.ts +1 -0
- package/package.json +1 -1
|
@@ -29,9 +29,9 @@ export interface UseChatControllerProps {
|
|
|
29
29
|
/** Optional callback for stream events */
|
|
30
30
|
onEvent?: (event: StreamEvent) => void;
|
|
31
31
|
/** The active thread ID for draft isolation */
|
|
32
|
-
|
|
32
|
+
threadId?: string | null;
|
|
33
33
|
}
|
|
34
|
-
export declare function useChatController({ submit, chatRequest, lastCheckpointId, lastCheckpointNs, onMessageSent, onExcelUploadSuccess, onError, enableMessageEditing, messages, setPendingAssistantResponse, project, onEvent,
|
|
34
|
+
export declare function useChatController({ submit, chatRequest, lastCheckpointId, lastCheckpointNs, onMessageSent, onExcelUploadSuccess, onError, enableMessageEditing, messages, setPendingAssistantResponse, project, onEvent, threadId, }: UseChatControllerProps): {
|
|
35
35
|
editingMessageId: string | null;
|
|
36
36
|
editingInitialValue: string;
|
|
37
37
|
inputError: string | null;
|
|
@@ -18,6 +18,7 @@ export declare function useChatSession(): {
|
|
|
18
18
|
checkpointIndex: import("../../persistence").CheckpointIndex;
|
|
19
19
|
isStreaming: boolean;
|
|
20
20
|
error: string | null;
|
|
21
|
+
activeMessageId: string | null;
|
|
21
22
|
connectionState: "error" | "idle" | "connecting" | "connected" | "reconnecting" | undefined;
|
|
22
23
|
submit: (input: import("../../../types").StreamSubmitPayload, opts?: import("../../../types").SendOptions) => Promise<void>;
|
|
23
24
|
stop: () => void;
|