teodor-new-chat-ui 3.0.92 → 3.0.93

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.
@@ -12,6 +12,8 @@ export interface ChatInterfaceProps {
12
12
  streamingDebounceMs?: number;
13
13
  /** New: allow host to configure markdown streaming throttle in ms (overrides streamingDebounceMs if provided) */
14
14
  streamingThrottleMs?: number;
15
+ /** If true, automatically follow new messages when the user is at the bottom. */
16
+ followNewMessages?: boolean;
15
17
  enableFileUpload?: boolean;
16
18
  enableExcelUpload?: boolean;
17
19
  enableMessageEditing?: boolean;
@@ -30,4 +32,4 @@ export interface ChatInterfaceProps {
30
32
  }) => void;
31
33
  onError?: (error: string) => void;
32
34
  }
33
- export declare function ChatInterface({ className, placeholder, autoFocus, maxHeight, streamingDebounceMs, streamingThrottleMs, enableFileUpload, enableExcelUpload, enableMessageEditing, customStyles, onMessageSent, onExcelUploadSuccess, onError, }: ChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
35
+ export declare function ChatInterface({ className, placeholder, autoFocus, maxHeight, streamingDebounceMs, streamingThrottleMs, followNewMessages, enableFileUpload, enableExcelUpload, enableMessageEditing, customStyles, onMessageSent, onExcelUploadSuccess, onError, }: ChatInterfaceProps): import("react/jsx-runtime").JSX.Element;
@@ -15,6 +15,8 @@ export interface MessageListProps {
15
15
  className?: string;
16
16
  style?: React.CSSProperties;
17
17
  emptyMessage?: React.ReactNode;
18
+ /** If true, automatically follow new messages when the user is at the bottom. */
19
+ followNewMessages?: boolean;
18
20
  }
19
- export declare function MessageList({ messages, isStreaming, streamingAssistantId, streamingDebounceMs, layoutSize, enableMessageEditing, editingMessageId, onStartReached, onEdit, onRegenerate, onCancelEdit, className, style, emptyMessage, }: MessageListProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare function MessageList({ messages, isStreaming, streamingAssistantId, streamingDebounceMs, layoutSize, enableMessageEditing, editingMessageId, onStartReached, onEdit, onRegenerate, onCancelEdit, className, style, emptyMessage, followNewMessages, }: MessageListProps): import("react/jsx-runtime").JSX.Element;
20
22
  export default MessageList;