teodor-new-chat-ui 4.3.121 → 4.3.123
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.
|
@@ -51,6 +51,10 @@ export interface MessageListProps {
|
|
|
51
51
|
onSelectCheckpoint?: (checkpointId: string | null) => Promise<void> | void;
|
|
52
52
|
timelineCheckpoints?: TimelineCheckpoint[];
|
|
53
53
|
}
|
|
54
|
+
export interface MessageListHandle {
|
|
55
|
+
scrollToLatest: () => void;
|
|
56
|
+
scrollToTop: () => void;
|
|
57
|
+
}
|
|
54
58
|
export type MessageCheckpointMeta = {
|
|
55
59
|
id: string;
|
|
56
60
|
step: number | null;
|
|
@@ -59,5 +63,5 @@ export type MessageCheckpointMeta = {
|
|
|
59
63
|
namespace: string | null;
|
|
60
64
|
parentId: string | null;
|
|
61
65
|
};
|
|
62
|
-
export declare const MessageList: React.ForwardRefExoticComponent<MessageListProps & React.RefAttributes<
|
|
66
|
+
export declare const MessageList: React.ForwardRefExoticComponent<MessageListProps & React.RefAttributes<MessageListHandle>>;
|
|
63
67
|
export default MessageList;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
1
|
import type { StreamContextValue, ThreadsContextValue, ThreadStateContextValue } from '@/types/api';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
3
|
interface ChatSessionProviderPropsBase {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
initialThreadId?: string | null;
|