teodor-new-chat-ui 3.0.72 → 3.0.73

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,20 @@
1
+ import React from "react";
2
+ import type { ChatMessage } from "@/types/api";
3
+ export interface MessageListProps {
4
+ messages: ChatMessage[];
5
+ isStreaming: boolean;
6
+ streamingAssistantId: string | null;
7
+ streamingDebounceMs: number;
8
+ layoutSize: "phone" | "tablet" | "desktop" | "half-screen";
9
+ enableMessageEditing: boolean;
10
+ editingMessageId: string | null;
11
+ onStartReached?: () => Promise<void> | void;
12
+ onEdit: (messageId: string, content: string) => void;
13
+ onRegenerate: (messageIndex: number) => void;
14
+ onCancelEdit: () => void;
15
+ className?: string;
16
+ style?: React.CSSProperties;
17
+ emptyMessage?: React.ReactNode;
18
+ }
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;
20
+ export default MessageList;
@@ -7,7 +7,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
7
7
  declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
8
8
  declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
9
  declare const sheetVariants: (props?: {
10
- side?: "top" | "right" | "bottom" | "left";
10
+ side?: "top" | "bottom" | "left" | "right";
11
11
  } & import("class-variance-authority/dist/types").ClassProp) => string;
12
12
  interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
13
13
  }