teodor-new-chat-ui 3.0.106 → 3.0.108

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.
@@ -15,14 +15,13 @@ 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
18
  followNewMessages?: boolean;
20
- /** If true, prevents automatic scrolling during checkpoint navigation */
21
19
  isNavigatingCheckpoint?: boolean;
22
- /** Callback to notify parent when user scrolls away from bottom */
23
20
  onScrollAway?: (scrolledAway: boolean) => void;
24
- /** Callback to notify parent when user is at bottom */
25
21
  onAtBottom?: (atBottom: boolean) => void;
26
22
  }
27
- export declare function MessageList({ messages, isStreaming, streamingAssistantId, streamingDebounceMs, layoutSize, enableMessageEditing, editingMessageId, onStartReached, onEdit, onRegenerate, onCancelEdit, className, style, emptyMessage, followNewMessages, isNavigatingCheckpoint, onScrollAway, onAtBottom, }: MessageListProps): import("react/jsx-runtime").JSX.Element;
23
+ export interface MessageListHandle {
24
+ scrollToBottom: () => void;
25
+ }
26
+ export declare const MessageList: React.ForwardRefExoticComponent<MessageListProps & React.RefAttributes<MessageListHandle>>;
28
27
  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" | "bottom" | "left" | "right";
10
+ side?: "top" | "right" | "bottom" | "left";
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
  }