@copilotkit/react-ui 1.10.0-next.0 → 1.10.0-next.10
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 +112 -0
- package/dist/{chunk-O7KTFUAN.mjs → chunk-226ZMOE3.mjs} +2 -2
- package/dist/{chunk-WHDNKXMP.mjs → chunk-BJHJBS5M.mjs} +46 -6
- package/dist/chunk-BJHJBS5M.mjs.map +1 -0
- package/dist/{chunk-Z4XPPVZT.mjs → chunk-EYRKZDP5.mjs} +1 -1
- package/dist/chunk-EYRKZDP5.mjs.map +1 -0
- package/dist/{chunk-SGFUVPDB.mjs → chunk-FFJHOZX6.mjs} +2 -2
- package/dist/{chunk-WPVTPQ7X.mjs → chunk-GBP47ONN.mjs} +2 -2
- package/dist/chunk-GBP47ONN.mjs.map +1 -0
- package/dist/{chunk-GVKA7RQQ.mjs → chunk-GDSZGYCE.mjs} +2 -2
- package/dist/{chunk-LXCD3K7B.mjs → chunk-GJ4SX4JE.mjs} +152 -36
- package/dist/chunk-GJ4SX4JE.mjs.map +1 -0
- package/dist/{chunk-VLNT34X3.mjs → chunk-J5ZZR6YB.mjs} +2 -2
- package/dist/chunk-J5ZZR6YB.mjs.map +1 -0
- package/dist/{chunk-QN7T3GWI.mjs → chunk-JY2CSDKN.mjs} +4 -6
- package/dist/chunk-JY2CSDKN.mjs.map +1 -0
- 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-Q2467VHZ.mjs → chunk-W26XFBEG.mjs} +2 -2
- package/dist/chunk-W26XFBEG.mjs.map +1 -0
- package/dist/chunk-Y44VLEUH.mjs +222 -0
- package/dist/chunk-Y44VLEUH.mjs.map +1 -0
- package/dist/components/chat/Chat.d.ts +52 -15
- package/dist/components/chat/Chat.js +1136 -869
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +9 -8
- package/dist/components/chat/Header.js +6 -8
- package/dist/components/chat/Header.js.map +1 -1
- package/dist/components/chat/Header.mjs +3 -3
- 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.d.ts +2 -2
- package/dist/components/chat/Modal.js +1267 -931
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +13 -12
- package/dist/components/chat/Popup.d.ts +1 -1
- package/dist/components/chat/Popup.js +1269 -933
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +14 -13
- package/dist/components/chat/Sidebar.d.ts +1 -1
- package/dist/components/chat/Sidebar.js +1269 -933
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +14 -13
- package/dist/components/chat/Suggestion.js +1 -1
- package/dist/components/chat/Suggestion.js.map +1 -1
- package/dist/components/chat/Suggestion.mjs +1 -1
- package/dist/components/chat/Suggestions.js +1 -1
- package/dist/components/chat/Suggestions.js.map +1 -1
- package/dist/components/chat/Suggestions.mjs +2 -2
- package/dist/components/chat/index.d.ts +2 -2
- package/dist/components/chat/index.js +1271 -935
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +20 -19
- 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 +94 -2
- package/dist/components/chat/props.js.map +1 -1
- package/dist/components/dev-console/console.d.ts +1 -0
- package/dist/components/dev-console/console.js +6 -8
- package/dist/components/dev-console/console.js.map +1 -1
- package/dist/components/dev-console/console.mjs +2 -2
- package/dist/components/dev-console/index.d.ts +1 -3
- package/dist/components/dev-console/index.js +7 -9
- package/dist/components/dev-console/index.js.map +1 -1
- package/dist/components/dev-console/index.mjs +2 -2
- package/dist/components/dev-console/utils.d.ts +2 -2
- package/dist/components/dev-console/utils.js +2 -4
- package/dist/components/dev-console/utils.js.map +1 -1
- package/dist/components/dev-console/utils.mjs +1 -1
- package/dist/components/index.d.ts +3 -5
- package/dist/components/index.js +1272 -936
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +20 -19
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +1 -1
- package/dist/hooks/use-copilot-chat-suggestions.d.ts +1 -1
- package/dist/hooks/use-copilot-chat-suggestions.js.map +1 -1
- package/dist/hooks/use-copilot-chat-suggestions.mjs +1 -1
- package/dist/index.d.ts +3 -5
- package/dist/index.js +1303 -967
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -20
- package/package.json +6 -6
- package/src/components/chat/Chat.tsx +242 -24
- package/src/components/chat/Messages.tsx +58 -5
- package/src/components/chat/Modal.tsx +128 -41
- package/src/components/chat/Popup.tsx +21 -1
- package/src/components/chat/Sidebar.tsx +23 -1
- package/src/components/chat/Suggestion.tsx +1 -1
- package/src/components/chat/messages/LegacyRenderMessage.tsx +143 -0
- package/src/components/chat/messages/RenderMessage.tsx +3 -0
- package/src/components/chat/props.ts +110 -1
- package/src/components/dev-console/utils.ts +1 -6
- package/src/hooks/use-copilot-chat-suggestions.tsx +1 -1
- package/dist/chunk-GJ3MFNBX.mjs +0 -144
- package/dist/chunk-GJ3MFNBX.mjs.map +0 -1
- package/dist/chunk-JHUTTP5C.mjs.map +0 -1
- package/dist/chunk-LXCD3K7B.mjs.map +0 -1
- package/dist/chunk-Q2467VHZ.mjs.map +0 -1
- package/dist/chunk-QN7T3GWI.mjs.map +0 -1
- package/dist/chunk-VLNT34X3.mjs.map +0 -1
- package/dist/chunk-WHDNKXMP.mjs.map +0 -1
- package/dist/chunk-WPVTPQ7X.mjs.map +0 -1
- package/dist/chunk-Z4XPPVZT.mjs.map +0 -1
- /package/dist/{chunk-O7KTFUAN.mjs.map → chunk-226ZMOE3.mjs.map} +0 -0
- /package/dist/{chunk-SGFUVPDB.mjs.map → chunk-FFJHOZX6.mjs.map} +0 -0
- /package/dist/{chunk-GVKA7RQQ.mjs.map → chunk-GDSZGYCE.mjs.map} +0 -0
|
@@ -1,26 +1,38 @@
|
|
|
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
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-GDSZGYCE.mjs";
|
|
12
12
|
import "../../chunk-V7W6IM2V.mjs";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-FFJHOZX6.mjs";
|
|
14
14
|
import "../../chunk-Q5V6S67N.mjs";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-JY2CSDKN.mjs";
|
|
16
16
|
import "../../chunk-KXE2JCUH.mjs";
|
|
17
17
|
import "../../chunk-NRA3CFEE.mjs";
|
|
18
18
|
import "../../chunk-BH6PCAAL.mjs";
|
|
19
19
|
import "../../chunk-UFN2VWSR.mjs";
|
|
20
20
|
import {
|
|
21
21
|
CopilotChat
|
|
22
|
-
} from "../../chunk-
|
|
23
|
-
import
|
|
22
|
+
} from "../../chunk-GJ4SX4JE.mjs";
|
|
23
|
+
import {
|
|
24
|
+
Suggestions
|
|
25
|
+
} from "../../chunk-226ZMOE3.mjs";
|
|
26
|
+
import {
|
|
27
|
+
Suggestion
|
|
28
|
+
} from "../../chunk-W26XFBEG.mjs";
|
|
29
|
+
import "../../chunk-PLHTVHUW.mjs";
|
|
30
|
+
import "../../chunk-DTRPPNSA.mjs";
|
|
31
|
+
import "../../chunk-CGEAG65D.mjs";
|
|
32
|
+
import "../../chunk-QIOJXTIQ.mjs";
|
|
33
|
+
import "../../chunk-BJHJBS5M.mjs";
|
|
34
|
+
import "../../chunk-MIVUCSGO.mjs";
|
|
35
|
+
import "../../chunk-T5QU6KSB.mjs";
|
|
24
36
|
import {
|
|
25
37
|
AssistantMessage
|
|
26
38
|
} from "../../chunk-GCKKSSBU.mjs";
|
|
@@ -30,20 +42,9 @@ import {
|
|
|
30
42
|
import {
|
|
31
43
|
UserMessage
|
|
32
44
|
} from "../../chunk-VVL6JFCJ.mjs";
|
|
33
|
-
import {
|
|
34
|
-
Suggestions
|
|
35
|
-
} from "../../chunk-O7KTFUAN.mjs";
|
|
36
|
-
import {
|
|
37
|
-
Suggestion
|
|
38
|
-
} from "../../chunk-Q2467VHZ.mjs";
|
|
39
|
-
import "../../chunk-PLHTVHUW.mjs";
|
|
40
|
-
import "../../chunk-DTRPPNSA.mjs";
|
|
41
|
-
import "../../chunk-CGEAG65D.mjs";
|
|
42
|
-
import "../../chunk-QIOJXTIQ.mjs";
|
|
43
45
|
import {
|
|
44
46
|
Markdown
|
|
45
47
|
} from "../../chunk-E6MQUIZW.mjs";
|
|
46
|
-
import "../../chunk-WHDNKXMP.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 };
|