teodor-new-chat-ui 4.3.569 → 4.3.571
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/chat/hooks/useChatController.d.ts +6 -1
- package/dist/index.esm.js +2126 -2109
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +24 -24
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -23,8 +23,12 @@ export interface UseChatControllerProps {
|
|
|
23
23
|
activeThreadId?: string | null;
|
|
24
24
|
/** Callback to ensure valid token before operations like upload */
|
|
25
25
|
ensureValidToken?: () => Promise<string | void>;
|
|
26
|
+
/** Streaming assistant message (partial) from useStream */
|
|
27
|
+
assistantMessage?: ChatMessage | null;
|
|
28
|
+
/** Whether a stream is currently active */
|
|
29
|
+
isStreaming?: boolean;
|
|
26
30
|
}
|
|
27
|
-
export declare function useChatController({ submit, chatRequest, lastCheckpointId, lastCheckpointNs, onMessageSent, onExcelUploadSuccess, onError, enableMessageEditing, messages, setPendingAssistantResponse, project, onEvent, activeThreadId, ensureValidToken, }: UseChatControllerProps): {
|
|
31
|
+
export declare function useChatController({ submit, chatRequest, lastCheckpointId, lastCheckpointNs, onMessageSent, onExcelUploadSuccess, onError, enableMessageEditing, messages, setPendingAssistantResponse, project, onEvent, activeThreadId, ensureValidToken, assistantMessage, isStreaming, }: UseChatControllerProps): {
|
|
28
32
|
editingMessageId: string | null;
|
|
29
33
|
editingInitialValue: string;
|
|
30
34
|
inputError: string | null;
|
|
@@ -39,4 +43,5 @@ export declare function useChatController({ submit, chatRequest, lastCheckpointI
|
|
|
39
43
|
startEditing: (messageId: string, content: string, meta?: EditContextMeta) => void;
|
|
40
44
|
cancelEditing: () => void;
|
|
41
45
|
handleRegenerateCb: (messageIndex: number) => void;
|
|
46
|
+
displayMessages: ChatMessage[];
|
|
42
47
|
};
|