teodor-new-chat-ui 4.3.516 → 4.3.518

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.
@@ -11,10 +11,8 @@ export interface ChatInterfaceProps {
11
11
  placeholder?: string;
12
12
  autoFocus?: boolean;
13
13
  maxHeight?: string;
14
- /** debounce for mid-stream markdown rendering (default: 500ms for smoother performance) */
14
+ /** Debounce (ms) used for buffering mid-stream markdown updates */
15
15
  streamingDebounceMs?: number;
16
- /** New: allow host to configure markdown streaming throttle in ms (overrides streamingDebounceMs if provided) */
17
- streamingThrottleMs?: number;
18
16
  /** If true, automatically follow new messages when the user is at the bottom. */
19
17
  followNewMessages?: boolean;
20
18
  enableFileUpload?: boolean;
@@ -49,5 +47,5 @@ export interface ChatInterfaceProps {
49
47
  */
50
48
  defaultMessage?: string | null;
51
49
  }
52
- export declare function ChatInterface({ className, placeholder, autoFocus, maxHeight, streamingDebounceMs, streamingThrottleMs, followNewMessages, enableFileUpload, enableExcelUpload, enableMessageEditing, showToolMessages, toolConfig, toolRenderers, toolArtifactRenderers, payloadExtras, customStyles, messageCustomStyles, onMessageSent, onExcelUploadSuccess, onError, defaultMessage, }: ChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
50
+ export declare function ChatInterface({ className, placeholder, autoFocus, maxHeight, streamingDebounceMs, followNewMessages, enableFileUpload, enableExcelUpload, enableMessageEditing, showToolMessages, toolConfig, toolRenderers, toolArtifactRenderers, payloadExtras, customStyles, messageCustomStyles, onMessageSent, onExcelUploadSuccess, onError, defaultMessage, }: ChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
53
51
  export type { ToolRendererMap, ToolArtifactRendererMap, ToolArtifactRendererContext, } from "../message/ToolContent";
@@ -8,6 +8,7 @@ export interface MessageComponentProps {
8
8
  message: ChatMessage | DefaultMessage;
9
9
  messageIndex: number;
10
10
  isStreamingMessage?: boolean;
11
+ /** ms to wait for quiet before rendering streaming markdown updates */
11
12
  streamingDebounceMs?: number;
12
13
  renderStreamingMarkdown?: boolean;
13
14
  enableStreamingMarkdownBuffer?: boolean;
@@ -8,7 +8,7 @@ export interface MessageListProps {
8
8
  messages: (ChatMessage | DefaultMessage)[];
9
9
  isStreaming: boolean;
10
10
  streamingAssistantId: string | null;
11
- streamingDebounceMs: number;
11
+ streamingDebounceMs?: number;
12
12
  layoutSize: "phone" | "tablet" | "desktop" | "half-screen";
13
13
  enableMessageEditing: boolean;
14
14
  editingMessageId: string | null;
@@ -10,7 +10,7 @@ export interface MessageRowProps {
10
10
  index: number;
11
11
  isStreaming: boolean;
12
12
  streamingAssistantId: string | null;
13
- streamingDebounceMs: number;
13
+ streamingDebounceMs?: number;
14
14
  layoutSize: "phone" | "tablet" | "desktop" | "half-screen";
15
15
  enableMessageEditing: boolean;
16
16
  editingMessageId: string | null;