@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
|
@@ -2,11 +2,11 @@ import "../../chunk-SQMEPWVT.mjs";
|
|
|
2
2
|
import "../../chunk-WB3YULQ4.mjs";
|
|
3
3
|
import {
|
|
4
4
|
CopilotPopup
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-LGMQR7XG.mjs";
|
|
6
6
|
import {
|
|
7
7
|
CopilotSidebar
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-QTD2KREC.mjs";
|
|
9
|
+
import "../../chunk-6F2ZAK7T.mjs";
|
|
10
10
|
import "../../chunk-P7S3E5UW.mjs";
|
|
11
11
|
import "../../chunk-2OTVZXDX.mjs";
|
|
12
12
|
import "../../chunk-V7W6IM2V.mjs";
|
|
@@ -19,7 +19,7 @@ import "../../chunk-Q5V6S67N.mjs";
|
|
|
19
19
|
import "../../chunk-YOEL33HG.mjs";
|
|
20
20
|
import {
|
|
21
21
|
CopilotChat
|
|
22
|
-
} from "../../chunk-
|
|
22
|
+
} from "../../chunk-7EDMOLGH.mjs";
|
|
23
23
|
import "../../chunk-WEYDZBT7.mjs";
|
|
24
24
|
import "../../chunk-7RIBDD4K.mjs";
|
|
25
25
|
import {
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
import "../../chunk-XB6QCUPB.mjs";
|
|
32
32
|
import "../../chunk-UWWMAJ7R.mjs";
|
|
33
33
|
import "../../chunk-TOQ7P4DO.mjs";
|
|
34
|
-
import "../../chunk-
|
|
34
|
+
import "../../chunk-QJKMOGWN.mjs";
|
|
35
35
|
import "../../chunk-YQFVRDNC.mjs";
|
|
36
36
|
import {
|
|
37
37
|
Markdown
|
package/dist/components/index.js
CHANGED
|
@@ -1381,7 +1381,10 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop }) => {
|
|
|
1381
1381
|
const textareaRef = (0, import_react9.useRef)(null);
|
|
1382
1382
|
const handleDivClick = (event) => {
|
|
1383
1383
|
var _a;
|
|
1384
|
-
|
|
1384
|
+
const target = event.target;
|
|
1385
|
+
if (target.closest("button"))
|
|
1386
|
+
return;
|
|
1387
|
+
if (target.tagName === "TEXTAREA")
|
|
1385
1388
|
return;
|
|
1386
1389
|
(_a = textareaRef.current) == null ? void 0 : _a.focus();
|
|
1387
1390
|
};
|
|
@@ -2691,6 +2694,10 @@ var CopilotModal = ({
|
|
|
2691
2694
|
Input: Input2 = Input,
|
|
2692
2695
|
AssistantMessage: AssistantMessage2 = AssistantMessage,
|
|
2693
2696
|
UserMessage: UserMessage2 = UserMessage,
|
|
2697
|
+
onThumbsUp,
|
|
2698
|
+
onThumbsDown,
|
|
2699
|
+
onCopy,
|
|
2700
|
+
onRegenerate,
|
|
2694
2701
|
className,
|
|
2695
2702
|
children
|
|
2696
2703
|
}) => {
|
|
@@ -2723,7 +2730,11 @@ var CopilotModal = ({
|
|
|
2723
2730
|
Messages: Messages2,
|
|
2724
2731
|
Input: Input2,
|
|
2725
2732
|
AssistantMessage: AssistantMessage2,
|
|
2726
|
-
UserMessage: UserMessage2
|
|
2733
|
+
UserMessage: UserMessage2,
|
|
2734
|
+
onThumbsUp,
|
|
2735
|
+
onThumbsDown,
|
|
2736
|
+
onCopy,
|
|
2737
|
+
onRegenerate
|
|
2727
2738
|
}
|
|
2728
2739
|
)
|
|
2729
2740
|
]
|