@copilotkit/react-ui 1.8.10 → 1.8.11-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 +20 -0
- package/dist/{chunk-IJADIQAR.mjs → chunk-IIRQWGWV.mjs} +4 -6
- package/dist/chunk-IIRQWGWV.mjs.map +1 -0
- package/dist/{chunk-B4N2T3V3.mjs → chunk-IWBARPUZ.mjs} +3 -9
- package/dist/chunk-IWBARPUZ.mjs.map +1 -0
- package/dist/{chunk-FHVERB23.mjs → chunk-QXWJ7HYU.mjs} +3 -3
- package/dist/{chunk-VL4VF3G3.mjs → chunk-SJWVHGKD.mjs} +2 -2
- package/dist/{chunk-R7KOZN52.mjs → chunk-T5637OOY.mjs} +2 -2
- package/dist/{chunk-G46M4XOH.mjs → chunk-UH2UFL5W.mjs} +2 -2
- package/dist/{chunk-NGAREIRF.mjs → chunk-VGPQYMKJ.mjs} +4 -4
- package/dist/{chunk-D7X2S5GH.mjs → chunk-W2OWARTP.mjs} +5 -5
- package/dist/components/chat/Chat.js +4 -12
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +3 -3
- package/dist/components/chat/Header.mjs +4 -4
- package/dist/components/chat/Input.js +1 -7
- package/dist/components/chat/Input.js.map +1 -1
- package/dist/components/chat/Input.mjs +1 -1
- package/dist/components/chat/Messages.js +3 -5
- package/dist/components/chat/Messages.js.map +1 -1
- package/dist/components/chat/Messages.mjs +1 -1
- package/dist/components/chat/Modal.js +4 -12
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +8 -8
- package/dist/components/chat/Popup.js +4 -12
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +9 -9
- package/dist/components/chat/Sidebar.js +4 -12
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +9 -9
- package/dist/components/chat/index.js +4 -12
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +10 -10
- package/dist/components/dev-console/console.mjs +3 -3
- package/dist/components/dev-console/index.mjs +3 -3
- package/dist/components/index.js +4 -12
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +10 -10
- package/dist/index.js +4 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/package.json +4 -4
- package/src/components/chat/Input.tsx +15 -6
- package/src/components/chat/Messages.tsx +5 -6
- package/dist/chunk-B4N2T3V3.mjs.map +0 -1
- package/dist/chunk-IJADIQAR.mjs.map +0 -1
- /package/dist/{chunk-FHVERB23.mjs.map → chunk-QXWJ7HYU.mjs.map} +0 -0
- /package/dist/{chunk-VL4VF3G3.mjs.map → chunk-SJWVHGKD.mjs.map} +0 -0
- /package/dist/{chunk-R7KOZN52.mjs.map → chunk-T5637OOY.mjs.map} +0 -0
- /package/dist/{chunk-G46M4XOH.mjs.map → chunk-UH2UFL5W.mjs.map} +0 -0
- /package/dist/{chunk-NGAREIRF.mjs.map → chunk-VGPQYMKJ.mjs.map} +0 -0
- /package/dist/{chunk-D7X2S5GH.mjs.map → chunk-W2OWARTP.mjs.map} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotSidebar
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-T5637OOY.mjs";
|
|
4
|
+
import "../../chunk-W2OWARTP.mjs";
|
|
5
5
|
import "../../chunk-Q2NFQTCQ.mjs";
|
|
6
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-UH2UFL5W.mjs";
|
|
7
7
|
import "../../chunk-V7W6IM2V.mjs";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-KXE2JCUH.mjs";
|
|
10
|
-
import "../../chunk-NRA3CFEE.mjs";
|
|
8
|
+
import "../../chunk-VGPQYMKJ.mjs";
|
|
11
9
|
import "../../chunk-Q5V6S67N.mjs";
|
|
12
10
|
import "../../chunk-6TCUJ3B7.mjs";
|
|
11
|
+
import "../../chunk-KXE2JCUH.mjs";
|
|
12
|
+
import "../../chunk-NRA3CFEE.mjs";
|
|
13
13
|
import "../../chunk-BH6PCAAL.mjs";
|
|
14
14
|
import "../../chunk-UFN2VWSR.mjs";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-QXWJ7HYU.mjs";
|
|
16
16
|
import "../../chunk-DSQGQJI4.mjs";
|
|
17
17
|
import "../../chunk-24TDU7MY.mjs";
|
|
18
18
|
import "../../chunk-SLTG4L62.mjs";
|
|
@@ -22,11 +22,11 @@ import "../../chunk-HWMFMBJC.mjs";
|
|
|
22
22
|
import "../../chunk-OZXUB3V7.mjs";
|
|
23
23
|
import "../../chunk-XZNY26GH.mjs";
|
|
24
24
|
import "../../chunk-PLHTVHUW.mjs";
|
|
25
|
-
import "../../chunk-
|
|
25
|
+
import "../../chunk-IWBARPUZ.mjs";
|
|
26
26
|
import "../../chunk-YQFVRDNC.mjs";
|
|
27
27
|
import "../../chunk-ABHUX6T6.mjs";
|
|
28
28
|
import "../../chunk-KENCH7RN.mjs";
|
|
29
|
-
import "../../chunk-
|
|
29
|
+
import "../../chunk-IIRQWGWV.mjs";
|
|
30
30
|
import "../../chunk-IEMQ2SQW.mjs";
|
|
31
31
|
import "../../chunk-XWG3L6QC.mjs";
|
|
32
32
|
import "../../chunk-54JAUBUJ.mjs";
|
|
@@ -1117,7 +1117,7 @@ var Messages = ({
|
|
|
1117
1117
|
}
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
|
-
const {
|
|
1120
|
+
const { messagesContainerRef, messagesEndRef } = useScrollToBottom(messages);
|
|
1121
1121
|
const interrupt = (0, import_react_core4.useLangGraphInterruptRender)();
|
|
1122
1122
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "copilotKitMessages", ref: messagesContainerRef, children: [
|
|
1123
1123
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "copilotKitMessagesContainer", children: [
|
|
@@ -1226,11 +1226,9 @@ function useScrollToBottom(messages) {
|
|
|
1226
1226
|
const isProgrammaticScrollRef = (0, import_react6.useRef)(false);
|
|
1227
1227
|
const isUserScrollUpRef = (0, import_react6.useRef)(false);
|
|
1228
1228
|
const scrollToBottom = () => {
|
|
1229
|
-
if (messagesEndRef.current) {
|
|
1229
|
+
if (messagesContainerRef.current && messagesEndRef.current) {
|
|
1230
1230
|
isProgrammaticScrollRef.current = true;
|
|
1231
|
-
|
|
1232
|
-
behavior: "auto"
|
|
1233
|
-
});
|
|
1231
|
+
messagesContainerRef.current.scrollTop = messagesContainerRef.current.scrollHeight;
|
|
1234
1232
|
}
|
|
1235
1233
|
};
|
|
1236
1234
|
const handleScroll = () => {
|
|
@@ -1463,12 +1461,6 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop, onUpload }) => {
|
|
|
1463
1461
|
setText("");
|
|
1464
1462
|
(_a = textareaRef.current) == null ? void 0 : _a.focus();
|
|
1465
1463
|
};
|
|
1466
|
-
(0, import_react9.useEffect)(() => {
|
|
1467
|
-
var _a;
|
|
1468
|
-
if (isVisible) {
|
|
1469
|
-
(_a = textareaRef.current) == null ? void 0 : _a.focus();
|
|
1470
|
-
}
|
|
1471
|
-
}, [isVisible]);
|
|
1472
1464
|
const { pushToTalkState, setPushToTalkState } = usePushToTalk({
|
|
1473
1465
|
sendFunction: onSend,
|
|
1474
1466
|
inProgress
|
|
@@ -1489,7 +1481,7 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop, onUpload }) => {
|
|
|
1489
1481
|
{
|
|
1490
1482
|
ref: textareaRef,
|
|
1491
1483
|
placeholder: context.labels.placeholder,
|
|
1492
|
-
autoFocus:
|
|
1484
|
+
autoFocus: false,
|
|
1493
1485
|
maxRows: MAX_NEWLINES,
|
|
1494
1486
|
value: text,
|
|
1495
1487
|
onChange: (event) => setText(event.target.value),
|