@copilotkit/react-ui 1.8.4-next.1 → 1.8.4-next.3
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 +17 -0
- package/dist/{chunk-OG2LUNMO.mjs → chunk-6F2ZAK7T.mjs} +12 -4
- package/dist/chunk-6F2ZAK7T.mjs.map +1 -0
- package/dist/{chunk-HGA4N4ME.mjs → chunk-7EDMOLGH.mjs} +2 -2
- package/dist/{chunk-2D24Q2YO.mjs → chunk-LGMQR7XG.mjs} +2 -2
- package/dist/{chunk-SNLHKLW3.mjs → chunk-QJKMOGWN.mjs} +5 -2
- package/dist/chunk-QJKMOGWN.mjs.map +1 -0
- package/dist/{chunk-X7HMY3S6.mjs → chunk-QTD2KREC.mjs} +2 -2
- package/dist/components/chat/Chat.js +4 -1
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +2 -2
- package/dist/components/chat/Input.js +4 -1
- package/dist/components/chat/Input.js.map +1 -1
- package/dist/components/chat/Input.mjs +1 -1
- package/dist/components/chat/Modal.d.ts +1 -1
- package/dist/components/chat/Modal.js +13 -2
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +3 -3
- package/dist/components/chat/Popup.js +13 -2
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +4 -4
- package/dist/components/chat/Sidebar.js +13 -2
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +4 -4
- package/dist/components/chat/index.js +13 -2
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +5 -5
- package/dist/components/index.js +13 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +5 -5
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/package.json +4 -4
- package/src/components/chat/Input.tsx +8 -2
- package/src/components/chat/Modal.tsx +8 -0
- package/dist/chunk-OG2LUNMO.mjs.map +0 -1
- package/dist/chunk-SNLHKLW3.mjs.map +0 -1
- /package/dist/{chunk-HGA4N4ME.mjs.map → chunk-7EDMOLGH.mjs.map} +0 -0
- /package/dist/{chunk-2D24Q2YO.mjs.map → chunk-LGMQR7XG.mjs.map} +0 -0
- /package/dist/{chunk-X7HMY3S6.mjs.map → chunk-QTD2KREC.mjs.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotModal
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-6F2ZAK7T.mjs";
|
|
4
4
|
import "../../chunk-P7S3E5UW.mjs";
|
|
5
5
|
import "../../chunk-2OTVZXDX.mjs";
|
|
6
6
|
import "../../chunk-V7W6IM2V.mjs";
|
|
@@ -11,7 +11,7 @@ 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-7EDMOLGH.mjs";
|
|
15
15
|
import "../../chunk-WEYDZBT7.mjs";
|
|
16
16
|
import "../../chunk-7RIBDD4K.mjs";
|
|
17
17
|
import "../../chunk-HEIDCT7I.mjs";
|
|
@@ -19,7 +19,7 @@ import "../../chunk-5M7ODWKH.mjs";
|
|
|
19
19
|
import "../../chunk-XB6QCUPB.mjs";
|
|
20
20
|
import "../../chunk-UWWMAJ7R.mjs";
|
|
21
21
|
import "../../chunk-TOQ7P4DO.mjs";
|
|
22
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-QJKMOGWN.mjs";
|
|
23
23
|
import "../../chunk-YQFVRDNC.mjs";
|
|
24
24
|
import "../../chunk-XNQO5AZZ.mjs";
|
|
25
25
|
import "../../chunk-ZY25LVYR.mjs";
|
|
@@ -1373,7 +1373,10 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop }) => {
|
|
|
1373
1373
|
const textareaRef = (0, import_react9.useRef)(null);
|
|
1374
1374
|
const handleDivClick = (event) => {
|
|
1375
1375
|
var _a;
|
|
1376
|
-
|
|
1376
|
+
const target = event.target;
|
|
1377
|
+
if (target.closest("button"))
|
|
1378
|
+
return;
|
|
1379
|
+
if (target.tagName === "TEXTAREA")
|
|
1377
1380
|
return;
|
|
1378
1381
|
(_a = textareaRef.current) == null ? void 0 : _a.focus();
|
|
1379
1382
|
};
|
|
@@ -2683,6 +2686,10 @@ var CopilotModal = ({
|
|
|
2683
2686
|
Input: Input2 = Input,
|
|
2684
2687
|
AssistantMessage: AssistantMessage2 = AssistantMessage,
|
|
2685
2688
|
UserMessage: UserMessage2 = UserMessage,
|
|
2689
|
+
onThumbsUp,
|
|
2690
|
+
onThumbsDown,
|
|
2691
|
+
onCopy,
|
|
2692
|
+
onRegenerate,
|
|
2686
2693
|
className,
|
|
2687
2694
|
children
|
|
2688
2695
|
}) => {
|
|
@@ -2715,7 +2722,11 @@ var CopilotModal = ({
|
|
|
2715
2722
|
Messages: Messages2,
|
|
2716
2723
|
Input: Input2,
|
|
2717
2724
|
AssistantMessage: AssistantMessage2,
|
|
2718
|
-
UserMessage: UserMessage2
|
|
2725
|
+
UserMessage: UserMessage2,
|
|
2726
|
+
onThumbsUp,
|
|
2727
|
+
onThumbsDown,
|
|
2728
|
+
onCopy,
|
|
2729
|
+
onRegenerate
|
|
2719
2730
|
}
|
|
2720
2731
|
)
|
|
2721
2732
|
]
|