@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,25 +1,25 @@
|
|
|
1
1
|
import "../../chunk-PXEVB7IK.mjs";
|
|
2
2
|
import {
|
|
3
3
|
CopilotPopup
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-SJWVHGKD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
CopilotSidebar
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-T5637OOY.mjs";
|
|
8
8
|
import "../../chunk-WB3YULQ4.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-W2OWARTP.mjs";
|
|
10
10
|
import "../../chunk-Q2NFQTCQ.mjs";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-UH2UFL5W.mjs";
|
|
12
12
|
import "../../chunk-V7W6IM2V.mjs";
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-KXE2JCUH.mjs";
|
|
15
|
-
import "../../chunk-NRA3CFEE.mjs";
|
|
13
|
+
import "../../chunk-VGPQYMKJ.mjs";
|
|
16
14
|
import "../../chunk-Q5V6S67N.mjs";
|
|
17
15
|
import "../../chunk-6TCUJ3B7.mjs";
|
|
16
|
+
import "../../chunk-KXE2JCUH.mjs";
|
|
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-
|
|
22
|
+
} from "../../chunk-QXWJ7HYU.mjs";
|
|
23
23
|
import "../../chunk-DSQGQJI4.mjs";
|
|
24
24
|
import "../../chunk-24TDU7MY.mjs";
|
|
25
25
|
import {
|
|
@@ -35,13 +35,13 @@ import {
|
|
|
35
35
|
} from "../../chunk-OZXUB3V7.mjs";
|
|
36
36
|
import "../../chunk-XZNY26GH.mjs";
|
|
37
37
|
import "../../chunk-PLHTVHUW.mjs";
|
|
38
|
-
import "../../chunk-
|
|
38
|
+
import "../../chunk-IWBARPUZ.mjs";
|
|
39
39
|
import "../../chunk-YQFVRDNC.mjs";
|
|
40
40
|
import {
|
|
41
41
|
Markdown
|
|
42
42
|
} from "../../chunk-ABHUX6T6.mjs";
|
|
43
43
|
import "../../chunk-KENCH7RN.mjs";
|
|
44
|
-
import "../../chunk-
|
|
44
|
+
import "../../chunk-IIRQWGWV.mjs";
|
|
45
45
|
import {
|
|
46
46
|
useChatContext
|
|
47
47
|
} from "../../chunk-IEMQ2SQW.mjs";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CopilotDevConsole,
|
|
4
4
|
DebugMenuButton
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-KXE2JCUH.mjs";
|
|
7
|
-
import "../../chunk-NRA3CFEE.mjs";
|
|
5
|
+
} from "../../chunk-VGPQYMKJ.mjs";
|
|
8
6
|
import "../../chunk-Q5V6S67N.mjs";
|
|
9
7
|
import "../../chunk-6TCUJ3B7.mjs";
|
|
8
|
+
import "../../chunk-KXE2JCUH.mjs";
|
|
9
|
+
import "../../chunk-NRA3CFEE.mjs";
|
|
10
10
|
import "../../chunk-BH6PCAAL.mjs";
|
|
11
11
|
import "../../chunk-XWG3L6QC.mjs";
|
|
12
12
|
import "../../chunk-MRXNTQOX.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../../chunk-V7W6IM2V.mjs";
|
|
2
2
|
import {
|
|
3
3
|
CopilotDevConsole
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-KXE2JCUH.mjs";
|
|
6
|
-
import "../../chunk-NRA3CFEE.mjs";
|
|
4
|
+
} from "../../chunk-VGPQYMKJ.mjs";
|
|
7
5
|
import "../../chunk-Q5V6S67N.mjs";
|
|
8
6
|
import {
|
|
9
7
|
shouldShowDevConsole
|
|
10
8
|
} from "../../chunk-6TCUJ3B7.mjs";
|
|
9
|
+
import "../../chunk-KXE2JCUH.mjs";
|
|
10
|
+
import "../../chunk-NRA3CFEE.mjs";
|
|
11
11
|
import "../../chunk-BH6PCAAL.mjs";
|
|
12
12
|
import "../../chunk-XWG3L6QC.mjs";
|
|
13
13
|
import "../../chunk-MRXNTQOX.mjs";
|
package/dist/components/index.js
CHANGED
|
@@ -1119,7 +1119,7 @@ var Messages = ({
|
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
1121
|
}
|
|
1122
|
-
const {
|
|
1122
|
+
const { messagesContainerRef, messagesEndRef } = useScrollToBottom(messages);
|
|
1123
1123
|
const interrupt = (0, import_react_core4.useLangGraphInterruptRender)();
|
|
1124
1124
|
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "copilotKitMessages", ref: messagesContainerRef, children: [
|
|
1125
1125
|
/* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "copilotKitMessagesContainer", children: [
|
|
@@ -1228,11 +1228,9 @@ function useScrollToBottom(messages) {
|
|
|
1228
1228
|
const isProgrammaticScrollRef = (0, import_react6.useRef)(false);
|
|
1229
1229
|
const isUserScrollUpRef = (0, import_react6.useRef)(false);
|
|
1230
1230
|
const scrollToBottom = () => {
|
|
1231
|
-
if (messagesEndRef.current) {
|
|
1231
|
+
if (messagesContainerRef.current && messagesEndRef.current) {
|
|
1232
1232
|
isProgrammaticScrollRef.current = true;
|
|
1233
|
-
|
|
1234
|
-
behavior: "auto"
|
|
1235
|
-
});
|
|
1233
|
+
messagesContainerRef.current.scrollTop = messagesContainerRef.current.scrollHeight;
|
|
1236
1234
|
}
|
|
1237
1235
|
};
|
|
1238
1236
|
const handleScroll = () => {
|
|
@@ -1465,12 +1463,6 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop, onUpload }) => {
|
|
|
1465
1463
|
setText("");
|
|
1466
1464
|
(_a = textareaRef.current) == null ? void 0 : _a.focus();
|
|
1467
1465
|
};
|
|
1468
|
-
(0, import_react9.useEffect)(() => {
|
|
1469
|
-
var _a;
|
|
1470
|
-
if (isVisible) {
|
|
1471
|
-
(_a = textareaRef.current) == null ? void 0 : _a.focus();
|
|
1472
|
-
}
|
|
1473
|
-
}, [isVisible]);
|
|
1474
1466
|
const { pushToTalkState, setPushToTalkState } = usePushToTalk({
|
|
1475
1467
|
sendFunction: onSend,
|
|
1476
1468
|
inProgress
|
|
@@ -1491,7 +1483,7 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop, onUpload }) => {
|
|
|
1491
1483
|
{
|
|
1492
1484
|
ref: textareaRef,
|
|
1493
1485
|
placeholder: context.labels.placeholder,
|
|
1494
|
-
autoFocus:
|
|
1486
|
+
autoFocus: false,
|
|
1495
1487
|
maxRows: MAX_NEWLINES,
|
|
1496
1488
|
value: text,
|
|
1497
1489
|
onChange: (event) => setText(event.target.value),
|