@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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotPopup
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-6QV7AIIG.mjs";
|
|
4
|
+
import "../../chunk-4TWPMWD4.mjs";
|
|
5
5
|
import "../../chunk-P7S3E5UW.mjs";
|
|
6
6
|
import "../../chunk-2OTVZXDX.mjs";
|
|
7
7
|
import "../../chunk-V7W6IM2V.mjs";
|
|
@@ -12,9 +12,9 @@ import "../../chunk-NRA3CFEE.mjs";
|
|
|
12
12
|
import "../../chunk-BH6PCAAL.mjs";
|
|
13
13
|
import "../../chunk-Q5V6S67N.mjs";
|
|
14
14
|
import "../../chunk-YOEL33HG.mjs";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-MYUOPOIL.mjs";
|
|
16
16
|
import "../../chunk-WNC6OCIB.mjs";
|
|
17
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-62QMTKMJ.mjs";
|
|
18
18
|
import "../../chunk-HEIDCT7I.mjs";
|
|
19
19
|
import "../../chunk-NMNC4ROZ.mjs";
|
|
20
20
|
import "../../chunk-Q2YY2NX3.mjs";
|
|
@@ -2062,7 +2062,7 @@ function RenderTextMessage(_a) {
|
|
|
2062
2062
|
isLoading: inProgress && isCurrentMessage && !message.content,
|
|
2063
2063
|
isGenerating: inProgress && isCurrentMessage && !!message.content,
|
|
2064
2064
|
isCurrentMessage,
|
|
2065
|
-
onRegenerate,
|
|
2065
|
+
onRegenerate: () => onRegenerate == null ? void 0 : onRegenerate(message.id),
|
|
2066
2066
|
onCopy,
|
|
2067
2067
|
onThumbsUp,
|
|
2068
2068
|
onThumbsDown
|
|
@@ -2462,11 +2462,11 @@ function CopilotChat({
|
|
|
2462
2462
|
);
|
|
2463
2463
|
const chatContext = import_react13.default.useContext(ChatContext);
|
|
2464
2464
|
const isVisible = chatContext ? chatContext.open : true;
|
|
2465
|
-
const handleRegenerate = () => {
|
|
2465
|
+
const handleRegenerate = (messageId) => {
|
|
2466
2466
|
if (onRegenerate) {
|
|
2467
|
-
onRegenerate();
|
|
2467
|
+
onRegenerate(messageId);
|
|
2468
2468
|
}
|
|
2469
|
-
reloadMessages();
|
|
2469
|
+
reloadMessages(messageId);
|
|
2470
2470
|
};
|
|
2471
2471
|
const handleCopy = (message) => {
|
|
2472
2472
|
if (onCopy) {
|
|
@@ -2658,7 +2658,7 @@ var useCopilotChatLogic = (makeSystemMessage, onInProgress, onSubmitMessage, onS
|
|
|
2658
2658
|
defaultStopGeneration();
|
|
2659
2659
|
}
|
|
2660
2660
|
}
|
|
2661
|
-
function reloadMessages() {
|
|
2661
|
+
function reloadMessages(messageId) {
|
|
2662
2662
|
if (onReloadMessages) {
|
|
2663
2663
|
onReloadMessages({
|
|
2664
2664
|
messages,
|
|
@@ -2668,10 +2668,11 @@ var useCopilotChatLogic = (makeSystemMessage, onInProgress, onSubmitMessage, onS
|
|
|
2668
2668
|
restartCurrentAgent,
|
|
2669
2669
|
stopCurrentAgent,
|
|
2670
2670
|
runCurrentAgent,
|
|
2671
|
-
setCurrentAgentState
|
|
2671
|
+
setCurrentAgentState,
|
|
2672
|
+
messageId
|
|
2672
2673
|
});
|
|
2673
2674
|
} else {
|
|
2674
|
-
defaultReloadMessages();
|
|
2675
|
+
defaultReloadMessages(messageId);
|
|
2675
2676
|
}
|
|
2676
2677
|
}
|
|
2677
2678
|
return {
|