teodor-new-chat-ui 4.3.98 → 4.3.100
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.
- package/dist/components/chat/MessageComponent.d.ts +12 -0
- package/dist/components/chat/MessageList.d.ts +11 -0
- package/dist/index.esm.js +5103 -5026
- package/dist/index.umd.js +43 -43
- package/package.json +1 -1
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import React from "react";
|
|
5
5
|
import type { ChatMessage, DefaultMessage, PendingInterrupt } from "@/types/api";
|
|
6
|
+
type MessageCheckpointMeta = {
|
|
7
|
+
id: string;
|
|
8
|
+
step: number | null;
|
|
9
|
+
source: string | null;
|
|
10
|
+
createdAt: string | null;
|
|
11
|
+
namespace: string | null;
|
|
12
|
+
};
|
|
6
13
|
export interface MessageComponentProps {
|
|
7
14
|
message: ChatMessage | DefaultMessage;
|
|
8
15
|
messageIndex: number;
|
|
@@ -30,5 +37,10 @@ export interface MessageComponentProps {
|
|
|
30
37
|
disableInterruptActions?: boolean;
|
|
31
38
|
onInterruptActionStart?: () => void;
|
|
32
39
|
onInterruptActionEnd?: () => void;
|
|
40
|
+
checkpointCandidates?: MessageCheckpointMeta[];
|
|
41
|
+
activeCheckpointId?: string | null;
|
|
42
|
+
onSelectCheckpoint?: (checkpointId: string | null) => Promise<void> | void;
|
|
43
|
+
defaultCheckpointId?: string | null;
|
|
33
44
|
}
|
|
34
45
|
export declare const MessageComponent: React.NamedExoticComponent<MessageComponentProps>;
|
|
46
|
+
export {};
|
|
@@ -32,6 +32,17 @@ export interface MessageListProps {
|
|
|
32
32
|
/** Notify parent when an interrupt action completes */
|
|
33
33
|
onInterruptActionEnd?: () => void;
|
|
34
34
|
showToolMessages?: boolean;
|
|
35
|
+
checkpointMetaById?: Map<string, MessageCheckpointMeta>;
|
|
36
|
+
checkpointIndexByKey?: Map<string, MessageCheckpointMeta[]>;
|
|
37
|
+
activeCheckpointId?: string | null;
|
|
38
|
+
onSelectCheckpoint?: (checkpointId: string | null) => Promise<void> | void;
|
|
35
39
|
}
|
|
40
|
+
export type MessageCheckpointMeta = {
|
|
41
|
+
id: string;
|
|
42
|
+
step: number | null;
|
|
43
|
+
source: string | null;
|
|
44
|
+
createdAt: string | null;
|
|
45
|
+
namespace: string | null;
|
|
46
|
+
};
|
|
36
47
|
export declare const MessageList: React.ForwardRefExoticComponent<MessageListProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
48
|
export default MessageList;
|