@copilotkit/react-ui 1.3.4 → 1.3.5-pre-1-3-4.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 +10 -0
- package/dist/{chunk-UUHCZZZV.mjs → chunk-3CQ72Y7E.mjs} +2 -2
- package/dist/{chunk-GHMYWL42.mjs → chunk-FRFXYFEH.mjs} +2 -2
- package/dist/{chunk-I4QG2ZZU.mjs → chunk-LT5YTQ4F.mjs} +2 -2
- package/dist/{chunk-I4QG2ZZU.mjs.map → chunk-LT5YTQ4F.mjs.map} +1 -1
- package/dist/{chunk-U42OB2S3.mjs → chunk-N4JRGTUJ.mjs} +6 -1
- package/dist/chunk-N4JRGTUJ.mjs.map +1 -0
- package/dist/{chunk-3YESXHJH.mjs → chunk-P4N6EWUO.mjs} +2 -2
- package/dist/{chunk-BTOVRBBW.mjs → chunk-U7CXOZEV.mjs} +4 -4
- package/dist/{chunk-BTOVRBBW.mjs.map → chunk-U7CXOZEV.mjs.map} +1 -1
- package/dist/components/chat/Chat.js +7 -2
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +3 -3
- package/dist/components/chat/Modal.js +7 -2
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +4 -4
- package/dist/components/chat/Popup.js +7 -2
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +5 -5
- package/dist/components/chat/Sidebar.js +7 -2
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +5 -5
- package/dist/components/chat/index.js +7 -2
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +6 -6
- package/dist/components/chat/messages/RenderAgentStateMessage.js +5 -0
- package/dist/components/chat/messages/RenderAgentStateMessage.js.map +1 -1
- package/dist/components/chat/messages/RenderAgentStateMessage.mjs +1 -1
- package/dist/components/dev-console/console.js +1 -1
- package/dist/components/dev-console/console.js.map +1 -1
- package/dist/components/dev-console/console.mjs +1 -1
- package/dist/components/dev-console/index.js +1 -1
- package/dist/components/dev-console/index.js.map +1 -1
- package/dist/components/dev-console/index.mjs +1 -1
- package/dist/components/index.js +7 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +6 -6
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/package.json +7 -7
- package/src/components/chat/Chat.tsx +4 -3
- package/src/components/chat/messages/RenderAgentStateMessage.tsx +10 -0
- package/src/components/dev-console/console.tsx +1 -1
- package/dist/chunk-U42OB2S3.mjs.map +0 -1
- /package/dist/{chunk-UUHCZZZV.mjs.map → chunk-3CQ72Y7E.mjs.map} +0 -0
- /package/dist/{chunk-GHMYWL42.mjs.map → chunk-FRFXYFEH.mjs.map} +0 -0
- /package/dist/{chunk-3YESXHJH.mjs.map → chunk-P4N6EWUO.mjs.map} +0 -0
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
CopilotChat,
|
|
3
3
|
WrappedCopilotChat,
|
|
4
4
|
useCopilotChatLogic
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-U7CXOZEV.mjs";
|
|
6
6
|
import "../../chunk-V7W6IM2V.mjs";
|
|
7
7
|
import "../../chunk-YH2STM73.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-N4JRGTUJ.mjs";
|
|
9
9
|
import "../../chunk-GOTHQ665.mjs";
|
|
10
10
|
import "../../chunk-MA5B5ELM.mjs";
|
|
11
11
|
import "../../chunk-WCPLXRZX.mjs";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-LT5YTQ4F.mjs";
|
|
13
13
|
import "../../chunk-H7TM5JE6.mjs";
|
|
14
14
|
import "../../chunk-OTPAZXVR.mjs";
|
|
15
15
|
import "../../chunk-U6J5DGOE.mjs";
|
|
@@ -1456,6 +1456,11 @@ function RenderAgentStateMessage(props) {
|
|
|
1456
1456
|
if (!toRender && status === "complete") {
|
|
1457
1457
|
return null;
|
|
1458
1458
|
}
|
|
1459
|
+
if (!toRender && isCurrentMessage && inProgress) {
|
|
1460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: `copilotKitMessage copilotKitAssistantMessage`, children: icons.spinnerIcon }, index);
|
|
1461
|
+
} else if (!toRender) {
|
|
1462
|
+
return null;
|
|
1463
|
+
}
|
|
1459
1464
|
if (typeof toRender === "string") {
|
|
1460
1465
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: `copilotKitMessage copilotKitAssistantMessage`, children: [
|
|
1461
1466
|
isCurrentMessage && inProgress && icons.spinnerIcon,
|
|
@@ -1964,7 +1969,7 @@ function DebugMenuButton({
|
|
|
1964
1969
|
mode
|
|
1965
1970
|
}) {
|
|
1966
1971
|
const context = (0, import_react_core7.useCopilotContext)();
|
|
1967
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "bg-black
|
|
1972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "bg-black top-24 w-52 text-right", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_react10.Menu, { children: [
|
|
1968
1973
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react10.MenuButton, { className: `copilotKitDebugMenuButton ${mode === "compact" ? "compact" : ""}`, children: mode == "compact" ? "Debug" : /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_jsx_runtime18.Fragment, { children: [
|
|
1969
1974
|
"Debug ",
|
|
1970
1975
|
ChevronDownIcon
|
|
@@ -2117,7 +2122,6 @@ var useCopilotChatLogic = (makeSystemMessage, onInProgress, onSubmitMessage) =>
|
|
|
2117
2122
|
content: messageContent,
|
|
2118
2123
|
role: import_runtime_client_gql10.Role.User
|
|
2119
2124
|
});
|
|
2120
|
-
appendMessage(message);
|
|
2121
2125
|
if (onSubmitMessage) {
|
|
2122
2126
|
try {
|
|
2123
2127
|
yield onSubmitMessage(messageContent);
|
|
@@ -2125,6 +2129,7 @@ var useCopilotChatLogic = (makeSystemMessage, onInProgress, onSubmitMessage) =>
|
|
|
2125
2129
|
console.error("Error in onSubmitMessage:", error);
|
|
2126
2130
|
}
|
|
2127
2131
|
}
|
|
2132
|
+
appendMessage(message);
|
|
2128
2133
|
return message;
|
|
2129
2134
|
});
|
|
2130
2135
|
return {
|