teodor-new-chat-ui 4.3.456 → 4.3.458

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.
@@ -8,6 +8,7 @@ export interface MessageComponentProps {
8
8
  messageIndex: number;
9
9
  isStreamingMessage?: boolean;
10
10
  streamingDebounceMs?: number;
11
+ enableStreamingMarkdownBuffer?: boolean;
11
12
  isEditing?: boolean;
12
13
  showActions?: boolean;
13
14
  showTimestamp?: boolean;
@@ -0,0 +1,3 @@
1
+ import type { MessagePart } from "@/types";
2
+ export declare function useStreamingMarkdownBuffer(parts: MessagePart[], enabled: boolean, sanitize: (text: string) => string): MessagePart[];
3
+ export default useStreamingMarkdownBuffer;
@@ -6,14 +6,14 @@ export interface MessageContentProps {
6
6
  showToolMessages: boolean;
7
7
  toolViewMode: "preview" | "expanded";
8
8
  isToolStreaming: boolean;
9
+ isStreamingMessage: boolean;
9
10
  contentParts: MessagePart[];
10
11
  textContent: string;
11
12
  imageParts: MessagePart[];
12
13
  fileParts: MessagePart[];
13
14
  interruptParts: MessagePart[];
14
- isStreamingMessage: boolean;
15
- streamingDebounceMs?: number;
16
15
  defaultMessage: DefaultMessage | null;
16
+ enableStreamingMarkdownBuffer?: boolean;
17
17
  handleFileClick: (event: ReactMouseEvent<HTMLAnchorElement>, fp: any, index: number) => Promise<void> | void;
18
18
  uploadingFiles: Record<number, boolean>;
19
19
  handleInterruptApprove: (part: any) => Promise<void> | void;
@@ -29,5 +29,5 @@ export interface MessageContentProps {
29
29
  activeInterruptValue?: unknown;
30
30
  iconForeground: string;
31
31
  }
32
- export declare function MessageContent({ message, isToolMessage, showToolMessages, toolViewMode, isToolStreaming, contentParts, textContent, imageParts, fileParts, interruptParts, isStreamingMessage, streamingDebounceMs, defaultMessage, handleFileClick, uploadingFiles, handleInterruptApprove, handleInterruptReject, disableInterruptActions, messageRole, truncateUserMessages, userMessagePreviewLength, isUserExpanded, setIsUserExpanded, isCompactLayout, activeInterruptId, activeInterruptValue, iconForeground, }: MessageContentProps): import("react/jsx-runtime").JSX.Element | null;
32
+ export declare function MessageContent({ message, isToolMessage, showToolMessages, toolViewMode, isToolStreaming, contentParts, textContent, imageParts, fileParts, interruptParts, isStreamingMessage, enableStreamingMarkdownBuffer, defaultMessage, handleFileClick, uploadingFiles, handleInterruptApprove, handleInterruptReject, disableInterruptActions, messageRole, truncateUserMessages, userMessagePreviewLength, isUserExpanded, setIsUserExpanded, isCompactLayout, activeInterruptId, activeInterruptValue, iconForeground, }: MessageContentProps): import("react/jsx-runtime").JSX.Element | null;
33
33
  export default MessageContent;