teodor-new-chat-ui 4.3.104 → 4.3.105
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 +3 -1
- package/dist/components/chat/MessageList.d.ts +1 -0
- package/dist/index.esm.js +2821 -2825
- package/dist/index.umd.js +25 -25
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ type MessageCheckpointMeta = {
|
|
|
9
9
|
source: string | null;
|
|
10
10
|
createdAt: string | null;
|
|
11
11
|
namespace: string | null;
|
|
12
|
+
parentId: string | null;
|
|
12
13
|
};
|
|
13
14
|
export interface MessageComponentProps {
|
|
14
15
|
message: ChatMessage | DefaultMessage;
|
|
@@ -39,8 +40,9 @@ export interface MessageComponentProps {
|
|
|
39
40
|
onInterruptActionEnd?: () => void;
|
|
40
41
|
checkpointCandidates?: MessageCheckpointMeta[];
|
|
41
42
|
activeCheckpointId?: string | null;
|
|
42
|
-
onSelectCheckpoint?: (checkpointId: string | null) => Promise<void> | void;
|
|
43
|
+
onSelectCheckpoint?: (checkpointId: string | null, parentCheckpointId?: string | null) => Promise<void> | void;
|
|
43
44
|
defaultCheckpointId?: string | null;
|
|
45
|
+
messageParentCheckpointId?: string | null;
|
|
44
46
|
}
|
|
45
47
|
export declare const MessageComponent: React.NamedExoticComponent<MessageComponentProps>;
|
|
46
48
|
export {};
|
|
@@ -43,6 +43,7 @@ export type MessageCheckpointMeta = {
|
|
|
43
43
|
source: string | null;
|
|
44
44
|
createdAt: string | null;
|
|
45
45
|
namespace: string | null;
|
|
46
|
+
parentId: string | null;
|
|
46
47
|
};
|
|
47
48
|
export declare const MessageList: React.ForwardRefExoticComponent<MessageListProps & React.RefAttributes<HTMLDivElement>>;
|
|
48
49
|
export default MessageList;
|