teodor-new-chat-ui 4.3.465 → 4.3.467
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/messaging/components/chat/ChatInput.d.ts +2 -1
- package/dist/features/messaging/components/chat/ChatInputRow.d.ts +1 -0
- package/dist/features/messaging/components/chat/ChatInterface.d.ts +7 -1
- package/dist/index.esm.js +3040 -3033
- package/dist/index.umd.js +30 -30
- package/package.json +1 -1
|
@@ -14,6 +14,7 @@ export interface ChatInputProps {
|
|
|
14
14
|
className?: string;
|
|
15
15
|
textareaClassName?: string;
|
|
16
16
|
allowEmptySend?: boolean;
|
|
17
|
+
sendButtonClassName?: string;
|
|
17
18
|
validate?: (text: string) => string | null;
|
|
18
19
|
onValidationError?: (error: string | null) => void;
|
|
19
20
|
}
|
|
@@ -28,6 +29,6 @@ export interface ChatInputProps {
|
|
|
28
29
|
* Usage:
|
|
29
30
|
* <ChatInput onSend={handleSend} initialValue={editingText} editingMessageId={editingId} onCancelEdit={cancelEditing} />
|
|
30
31
|
*/
|
|
31
|
-
export declare function ChatInput({ initialValue, editingMessageId, placeholder, isStreaming, disabled, maxLength, value: controlledValue, onValueChange, onSend, onCancelEdit, onStop, className, textareaClassName, allowEmptySend, validate, onValidationError, }: ChatInputProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare function ChatInput({ initialValue, editingMessageId, placeholder, isStreaming, disabled, maxLength, value: controlledValue, onValueChange, onSend, onCancelEdit, onStop, className, textareaClassName, allowEmptySend, sendButtonClassName, validate, onValidationError, }: ChatInputProps): import("react/jsx-runtime").JSX.Element;
|
|
32
33
|
declare const _default: React.MemoExoticComponent<typeof ChatInput>;
|
|
33
34
|
export default _default;
|
|
@@ -35,5 +35,11 @@ export interface ChatInterfaceProps {
|
|
|
35
35
|
file: File;
|
|
36
36
|
}) => void;
|
|
37
37
|
onError?: (error: string) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Explicit message to show when the thread is empty instead of fetching the
|
|
40
|
+
* default agent prompt from the backend. Pass `undefined` to fall back to the
|
|
41
|
+
* agent's `uiDefaultMessage`.
|
|
42
|
+
*/
|
|
43
|
+
defaultMessage?: string | null;
|
|
38
44
|
}
|
|
39
|
-
export declare function ChatInterface({ className, placeholder, autoFocus, maxHeight, streamingDebounceMs, streamingThrottleMs, followNewMessages, enableFileUpload, enableExcelUpload, enableMessageEditing, showToolMessages, payloadExtras, customStyles, onMessageSent, onExcelUploadSuccess, onError, }: ChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function ChatInterface({ className, placeholder, autoFocus, maxHeight, streamingDebounceMs, streamingThrottleMs, followNewMessages, enableFileUpload, enableExcelUpload, enableMessageEditing, showToolMessages, payloadExtras, customStyles, onMessageSent, onExcelUploadSuccess, onError, defaultMessage, }: ChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
|