@copilotkit/react-ui 1.10.0-next.8 → 1.10.0
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/CHANGELOG.md +132 -0
- package/dist/{chunk-U5ATIGWH.mjs → chunk-BJHJBS5M.mjs} +45 -5
- package/dist/chunk-BJHJBS5M.mjs.map +1 -0
- package/dist/{chunk-KLV4ERV6.mjs → chunk-GBP47ONN.mjs} +2 -2
- package/dist/{chunk-3DVMCBME.mjs → chunk-GJ4SX4JE.mjs} +97 -35
- package/dist/chunk-GJ4SX4JE.mjs.map +1 -0
- package/dist/{chunk-APLX7E54.mjs → chunk-J5ZZR6YB.mjs} +2 -2
- package/dist/chunk-MIVUCSGO.mjs +126 -0
- package/dist/chunk-MIVUCSGO.mjs.map +1 -0
- package/dist/{chunk-JHUTTP5C.mjs → chunk-T5QU6KSB.mjs} +5 -1
- package/dist/chunk-T5QU6KSB.mjs.map +1 -0
- package/dist/{chunk-BPU3FDT4.mjs → chunk-Y44VLEUH.mjs} +30 -11
- package/dist/chunk-Y44VLEUH.mjs.map +1 -0
- package/dist/components/chat/Chat.d.ts +32 -2
- package/dist/components/chat/Chat.js +1084 -865
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +7 -6
- package/dist/components/chat/Messages.d.ts +1 -1
- package/dist/components/chat/Messages.js +984 -23
- package/dist/components/chat/Messages.js.map +1 -1
- package/dist/components/chat/Messages.mjs +9 -1
- package/dist/components/chat/Modal.js +1107 -875
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +8 -7
- package/dist/components/chat/Popup.js +1109 -877
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +9 -8
- package/dist/components/chat/Sidebar.js +1109 -877
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +9 -8
- package/dist/components/chat/index.js +1111 -879
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +16 -15
- package/dist/components/chat/messages/LegacyRenderMessage.d.ts +28 -0
- package/dist/components/chat/messages/LegacyRenderMessage.js +980 -0
- package/dist/components/chat/messages/LegacyRenderMessage.js.map +1 -0
- package/dist/components/chat/messages/LegacyRenderMessage.mjs +17 -0
- package/dist/components/chat/messages/LegacyRenderMessage.mjs.map +1 -0
- package/dist/components/chat/messages/RenderMessage.js +4 -0
- package/dist/components/chat/messages/RenderMessage.js.map +1 -1
- package/dist/components/chat/messages/RenderMessage.mjs +1 -1
- package/dist/components/chat/props.d.ts +55 -1
- package/dist/components/chat/props.js.map +1 -1
- package/dist/components/index.js +1111 -879
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +16 -15
- package/dist/index.js +1113 -881
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -15
- package/package.json +4 -4
- package/src/components/chat/Chat.tsx +144 -21
- package/src/components/chat/Messages.tsx +56 -3
- package/src/components/chat/Modal.tsx +24 -3
- package/src/components/chat/messages/LegacyRenderMessage.tsx +143 -0
- package/src/components/chat/messages/RenderMessage.tsx +3 -0
- package/src/components/chat/props.ts +64 -1
- package/dist/chunk-3DVMCBME.mjs.map +0 -1
- package/dist/chunk-BPU3FDT4.mjs.map +0 -1
- package/dist/chunk-JHUTTP5C.mjs.map +0 -1
- package/dist/chunk-U5ATIGWH.mjs.map +0 -1
- /package/dist/{chunk-KLV4ERV6.mjs.map → chunk-GBP47ONN.mjs.map} +0 -0
- /package/dist/{chunk-APLX7E54.mjs.map → chunk-J5ZZR6YB.mjs.map} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../chunk-SC6JRFAJ.mjs";
|
|
2
2
|
import {
|
|
3
3
|
CopilotSidebar
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-GBP47ONN.mjs";
|
|
5
5
|
import "../../chunk-WB3YULQ4.mjs";
|
|
6
6
|
import {
|
|
7
7
|
CopilotPopup
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-J5ZZR6YB.mjs";
|
|
9
|
+
import "../../chunk-Y44VLEUH.mjs";
|
|
10
10
|
import "../../chunk-C3GSYRC3.mjs";
|
|
11
11
|
import "../../chunk-GDSZGYCE.mjs";
|
|
12
12
|
import "../../chunk-V7W6IM2V.mjs";
|
|
@@ -19,17 +19,7 @@ import "../../chunk-BH6PCAAL.mjs";
|
|
|
19
19
|
import "../../chunk-UFN2VWSR.mjs";
|
|
20
20
|
import {
|
|
21
21
|
CopilotChat
|
|
22
|
-
} from "../../chunk-
|
|
23
|
-
import "../../chunk-JHUTTP5C.mjs";
|
|
24
|
-
import {
|
|
25
|
-
AssistantMessage
|
|
26
|
-
} from "../../chunk-GCKKSSBU.mjs";
|
|
27
|
-
import {
|
|
28
|
-
ImageRenderer
|
|
29
|
-
} from "../../chunk-DBKRAOH7.mjs";
|
|
30
|
-
import {
|
|
31
|
-
UserMessage
|
|
32
|
-
} from "../../chunk-VVL6JFCJ.mjs";
|
|
22
|
+
} from "../../chunk-GJ4SX4JE.mjs";
|
|
33
23
|
import {
|
|
34
24
|
Suggestions
|
|
35
25
|
} from "../../chunk-226ZMOE3.mjs";
|
|
@@ -40,10 +30,21 @@ import "../../chunk-PLHTVHUW.mjs";
|
|
|
40
30
|
import "../../chunk-DTRPPNSA.mjs";
|
|
41
31
|
import "../../chunk-CGEAG65D.mjs";
|
|
42
32
|
import "../../chunk-QIOJXTIQ.mjs";
|
|
33
|
+
import "../../chunk-BJHJBS5M.mjs";
|
|
34
|
+
import "../../chunk-MIVUCSGO.mjs";
|
|
35
|
+
import "../../chunk-T5QU6KSB.mjs";
|
|
36
|
+
import {
|
|
37
|
+
AssistantMessage
|
|
38
|
+
} from "../../chunk-GCKKSSBU.mjs";
|
|
39
|
+
import {
|
|
40
|
+
ImageRenderer
|
|
41
|
+
} from "../../chunk-DBKRAOH7.mjs";
|
|
42
|
+
import {
|
|
43
|
+
UserMessage
|
|
44
|
+
} from "../../chunk-VVL6JFCJ.mjs";
|
|
43
45
|
import {
|
|
44
46
|
Markdown
|
|
45
47
|
} from "../../chunk-E6MQUIZW.mjs";
|
|
46
|
-
import "../../chunk-U5ATIGWH.mjs";
|
|
47
48
|
import {
|
|
48
49
|
useChatContext
|
|
49
50
|
} from "../../chunk-IEMQ2SQW.mjs";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { RenderMessageProps } from '../props.js';
|
|
3
|
+
import '@copilotkit/shared';
|
|
4
|
+
import '../../../types/suggestions.js';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Legacy message render props interface for backwards compatibility
|
|
8
|
+
*/
|
|
9
|
+
interface LegacyRenderProps {
|
|
10
|
+
RenderTextMessage?: React__default.ComponentType<RenderMessageProps>;
|
|
11
|
+
RenderActionExecutionMessage?: React__default.ComponentType<RenderMessageProps>;
|
|
12
|
+
RenderAgentStateMessage?: React__default.ComponentType<RenderMessageProps>;
|
|
13
|
+
RenderResultMessage?: React__default.ComponentType<RenderMessageProps>;
|
|
14
|
+
RenderImageMessage?: React__default.ComponentType<RenderMessageProps>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Props for the LegacyRenderMessage component
|
|
18
|
+
*/
|
|
19
|
+
interface LegacyRenderMessageProps extends RenderMessageProps {
|
|
20
|
+
legacyProps: LegacyRenderProps;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Legacy message adapter component that maps old render props to new message types.
|
|
24
|
+
* This component provides backwards compatibility for the deprecated render props.
|
|
25
|
+
*/
|
|
26
|
+
declare const LegacyRenderMessage: React__default.FC<LegacyRenderMessageProps>;
|
|
27
|
+
|
|
28
|
+
export { LegacyRenderMessage, LegacyRenderMessageProps, LegacyRenderProps };
|