teodor-new-chat-ui 4.3.452 → 4.3.454
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.
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Throttles a value so that it only updates at most once every `delay` milliseconds.
|
|
3
|
+
* When disabled (delay <= 0 or `enabled` false) it mirrors the source immediately.
|
|
4
|
+
*/
|
|
5
|
+
export declare function useThrottledValue<T>(value: T, delay: number, enabled?: boolean): T;
|
|
6
|
+
export default useThrottledValue;
|
|
@@ -12,6 +12,7 @@ export interface MessageContentProps {
|
|
|
12
12
|
fileParts: MessagePart[];
|
|
13
13
|
interruptParts: MessagePart[];
|
|
14
14
|
isStreamingMessage: boolean;
|
|
15
|
+
streamingDebounceMs?: number;
|
|
15
16
|
defaultMessage: DefaultMessage | null;
|
|
16
17
|
handleFileClick: (event: ReactMouseEvent<HTMLAnchorElement>, fp: any, index: number) => Promise<void> | void;
|
|
17
18
|
uploadingFiles: Record<number, boolean>;
|
|
@@ -28,4 +29,4 @@ export interface MessageContentProps {
|
|
|
28
29
|
activeInterruptValue?: unknown;
|
|
29
30
|
iconForeground: string;
|
|
30
31
|
}
|
|
31
|
-
export declare function MessageContent({ message, isToolMessage, showToolMessages, toolViewMode, isToolStreaming, contentParts, textContent, imageParts, fileParts, interruptParts, isStreamingMessage, 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, streamingDebounceMs, defaultMessage, handleFileClick, uploadingFiles, handleInterruptApprove, handleInterruptReject, disableInterruptActions, messageRole, truncateUserMessages, userMessagePreviewLength, isUserExpanded, setIsUserExpanded, isCompactLayout, activeInterruptId, activeInterruptValue, iconForeground, }: MessageContentProps): import("react/jsx-runtime").JSX.Element | null;
|