@copilotkit/react-ui 1.8.5-next.0 → 1.8.5-next.1
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 +10 -0
- package/dist/{chunk-AENUXMIK.mjs → chunk-4TWPMWD4.mjs} +2 -2
- package/dist/{chunk-GOJ36LAI.mjs → chunk-62QMTKMJ.mjs} +2 -2
- package/dist/{chunk-GOJ36LAI.mjs.map → chunk-62QMTKMJ.mjs.map} +1 -1
- package/dist/{chunk-4LA24FID.mjs → chunk-6QV7AIIG.mjs} +2 -2
- package/dist/{chunk-T2MTGCY3.mjs → chunk-MYUOPOIL.mjs} +9 -8
- package/dist/chunk-MYUOPOIL.mjs.map +1 -0
- package/dist/{chunk-6YTN3554.mjs → chunk-U6ISBBRF.mjs} +2 -2
- package/dist/components/chat/Chat.d.ts +8 -3
- package/dist/components/chat/Chat.js +8 -7
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +2 -2
- package/dist/components/chat/Modal.js +8 -7
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +3 -3
- package/dist/components/chat/Popup.js +8 -7
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +4 -4
- package/dist/components/chat/Sidebar.js +8 -7
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +4 -4
- package/dist/components/chat/index.js +8 -7
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +5 -5
- package/dist/components/chat/messages/RenderTextMessage.js +1 -1
- package/dist/components/chat/messages/RenderTextMessage.js.map +1 -1
- package/dist/components/chat/messages/RenderTextMessage.mjs +1 -1
- package/dist/components/chat/props.d.ts +2 -2
- package/dist/components/chat/props.js.map +1 -1
- package/dist/components/index.js +8 -7
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +5 -5
- package/dist/index.js +8 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/package.json +6 -6
- package/src/components/chat/Chat.tsx +13 -7
- package/src/components/chat/messages/RenderTextMessage.tsx +1 -1
- package/src/components/chat/props.ts +2 -2
- package/dist/chunk-T2MTGCY3.mjs.map +0 -1
- /package/dist/{chunk-AENUXMIK.mjs.map → chunk-4TWPMWD4.mjs.map} +0 -0
- /package/dist/{chunk-4LA24FID.mjs.map → chunk-6QV7AIIG.mjs.map} +0 -0
- /package/dist/{chunk-6YTN3554.mjs.map → chunk-U6ISBBRF.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotModal
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-4TWPMWD4.mjs";
|
|
4
4
|
import "../../chunk-P7S3E5UW.mjs";
|
|
5
5
|
import "../../chunk-2OTVZXDX.mjs";
|
|
6
6
|
import "../../chunk-V7W6IM2V.mjs";
|
|
@@ -11,9 +11,9 @@ import "../../chunk-NRA3CFEE.mjs";
|
|
|
11
11
|
import "../../chunk-BH6PCAAL.mjs";
|
|
12
12
|
import "../../chunk-Q5V6S67N.mjs";
|
|
13
13
|
import "../../chunk-YOEL33HG.mjs";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-MYUOPOIL.mjs";
|
|
15
15
|
import "../../chunk-WNC6OCIB.mjs";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-62QMTKMJ.mjs";
|
|
17
17
|
import "../../chunk-HEIDCT7I.mjs";
|
|
18
18
|
import "../../chunk-NMNC4ROZ.mjs";
|
|
19
19
|
import "../../chunk-Q2YY2NX3.mjs";
|
|
@@ -2061,7 +2061,7 @@ function RenderTextMessage(_a) {
|
|
|
2061
2061
|
isLoading: inProgress && isCurrentMessage && !message.content,
|
|
2062
2062
|
isGenerating: inProgress && isCurrentMessage && !!message.content,
|
|
2063
2063
|
isCurrentMessage,
|
|
2064
|
-
onRegenerate,
|
|
2064
|
+
onRegenerate: () => onRegenerate == null ? void 0 : onRegenerate(message.id),
|
|
2065
2065
|
onCopy,
|
|
2066
2066
|
onThumbsUp,
|
|
2067
2067
|
onThumbsDown
|
|
@@ -2461,11 +2461,11 @@ function CopilotChat({
|
|
|
2461
2461
|
);
|
|
2462
2462
|
const chatContext = import_react13.default.useContext(ChatContext);
|
|
2463
2463
|
const isVisible = chatContext ? chatContext.open : true;
|
|
2464
|
-
const handleRegenerate = () => {
|
|
2464
|
+
const handleRegenerate = (messageId) => {
|
|
2465
2465
|
if (onRegenerate) {
|
|
2466
|
-
onRegenerate();
|
|
2466
|
+
onRegenerate(messageId);
|
|
2467
2467
|
}
|
|
2468
|
-
reloadMessages();
|
|
2468
|
+
reloadMessages(messageId);
|
|
2469
2469
|
};
|
|
2470
2470
|
const handleCopy = (message) => {
|
|
2471
2471
|
if (onCopy) {
|
|
@@ -2657,7 +2657,7 @@ var useCopilotChatLogic = (makeSystemMessage, onInProgress, onSubmitMessage, onS
|
|
|
2657
2657
|
defaultStopGeneration();
|
|
2658
2658
|
}
|
|
2659
2659
|
}
|
|
2660
|
-
function reloadMessages() {
|
|
2660
|
+
function reloadMessages(messageId) {
|
|
2661
2661
|
if (onReloadMessages) {
|
|
2662
2662
|
onReloadMessages({
|
|
2663
2663
|
messages,
|
|
@@ -2667,10 +2667,11 @@ var useCopilotChatLogic = (makeSystemMessage, onInProgress, onSubmitMessage, onS
|
|
|
2667
2667
|
restartCurrentAgent,
|
|
2668
2668
|
stopCurrentAgent,
|
|
2669
2669
|
runCurrentAgent,
|
|
2670
|
-
setCurrentAgentState
|
|
2670
|
+
setCurrentAgentState,
|
|
2671
|
+
messageId
|
|
2671
2672
|
});
|
|
2672
2673
|
} else {
|
|
2673
|
-
defaultReloadMessages();
|
|
2674
|
+
defaultReloadMessages(messageId);
|
|
2674
2675
|
}
|
|
2675
2676
|
}
|
|
2676
2677
|
return {
|