@copilotkit/react-ui 1.51.0-next.2 → 1.51.0-next.4
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 -3
- package/dist/{chunk-NGJ32FAP.mjs → chunk-6TWQUA2Q.mjs} +4 -3
- package/dist/chunk-6TWQUA2Q.mjs.map +1 -0
- package/dist/{chunk-7PR2KJDO.mjs → chunk-BVKKSSB2.mjs} +2 -2
- package/dist/{chunk-LQEFRHRT.mjs → chunk-DI7DDMRS.mjs} +2 -2
- package/dist/{chunk-QPQRLXN3.mjs → chunk-NSJWSIPR.mjs} +2 -2
- package/dist/{chunk-QB3GUN2N.mjs → chunk-VHKHX7GV.mjs} +2 -2
- package/dist/{chunk-ELUJRANC.mjs → chunk-VVCCMYGT.mjs} +2 -2
- package/dist/components/chat/Chat.js +3 -2
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +4 -4
- package/dist/components/chat/Messages.mjs +1 -1
- package/dist/components/chat/Modal.js +3 -2
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +5 -5
- package/dist/components/chat/Popup.js +3 -2
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +6 -6
- package/dist/components/chat/Sidebar.js +3 -2
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +6 -6
- package/dist/components/chat/Suggestion.js +3 -2
- package/dist/components/chat/Suggestion.js.map +1 -1
- package/dist/components/chat/Suggestion.mjs +1 -1
- package/dist/components/chat/Suggestions.js +3 -2
- package/dist/components/chat/Suggestions.js.map +1 -1
- package/dist/components/chat/Suggestions.mjs +2 -2
- package/dist/components/chat/index.js +3 -2
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +9 -9
- package/dist/components/chat/messages/AssistantMessage.mjs +1 -1
- package/dist/components/chat/messages/ErrorMessage.mjs +1 -1
- package/dist/components/chat/messages/LegacyRenderMessage.mjs +1 -1
- package/dist/components/chat/messages/RenderMessage.mjs +1 -1
- package/dist/components/index.js +3 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +9 -9
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/package.json +7 -7
- package/src/components/chat/Suggestion.tsx +3 -2
- package/dist/chunk-NGJ32FAP.mjs.map +0 -1
- /package/dist/{chunk-7PR2KJDO.mjs.map → chunk-BVKKSSB2.mjs.map} +0 -0
- /package/dist/{chunk-LQEFRHRT.mjs.map → chunk-DI7DDMRS.mjs.map} +0 -0
- /package/dist/{chunk-QPQRLXN3.mjs.map → chunk-NSJWSIPR.mjs.map} +0 -0
- /package/dist/{chunk-QB3GUN2N.mjs.map → chunk-VHKHX7GV.mjs.map} +0 -0
- /package/dist/{chunk-ELUJRANC.mjs.map → chunk-VVCCMYGT.mjs.map} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../chunk-SC6JRFAJ.mjs";
|
|
2
|
+
import {
|
|
3
|
+
CopilotSidebar
|
|
4
|
+
} from "../../chunk-DI7DDMRS.mjs";
|
|
2
5
|
import "../../chunk-WB3YULQ4.mjs";
|
|
3
6
|
import {
|
|
4
7
|
CopilotPopup
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import
|
|
7
|
-
CopilotSidebar
|
|
8
|
-
} from "../../chunk-LQEFRHRT.mjs";
|
|
9
|
-
import "../../chunk-7PR2KJDO.mjs";
|
|
8
|
+
} from "../../chunk-VVCCMYGT.mjs";
|
|
9
|
+
import "../../chunk-BVKKSSB2.mjs";
|
|
10
10
|
import "../../chunk-C3GSYRC3.mjs";
|
|
11
11
|
import "../../chunk-GDSZGYCE.mjs";
|
|
12
12
|
import "../../chunk-V7W6IM2V.mjs";
|
|
@@ -19,13 +19,13 @@ import "../../chunk-BH6PCAAL.mjs";
|
|
|
19
19
|
import "../../chunk-UFN2VWSR.mjs";
|
|
20
20
|
import {
|
|
21
21
|
CopilotChat
|
|
22
|
-
} from "../../chunk-
|
|
22
|
+
} from "../../chunk-NSJWSIPR.mjs";
|
|
23
23
|
import {
|
|
24
24
|
Suggestions
|
|
25
|
-
} from "../../chunk-
|
|
25
|
+
} from "../../chunk-VHKHX7GV.mjs";
|
|
26
26
|
import {
|
|
27
27
|
Suggestion
|
|
28
|
-
} from "../../chunk-
|
|
28
|
+
} from "../../chunk-6TWQUA2Q.mjs";
|
|
29
29
|
import "../../chunk-PLHTVHUW.mjs";
|
|
30
30
|
import "../../chunk-3W6J75HS.mjs";
|
|
31
31
|
import "../../chunk-ELGRNEAO.mjs";
|
|
@@ -45,10 +45,10 @@ import {
|
|
|
45
45
|
import {
|
|
46
46
|
Markdown
|
|
47
47
|
} from "../../chunk-JZ3RFQQ6.mjs";
|
|
48
|
-
import "../../chunk-IK2BPURM.mjs";
|
|
49
48
|
import {
|
|
50
49
|
useChatContext
|
|
51
50
|
} from "../../chunk-IEMQ2SQW.mjs";
|
|
51
|
+
import "../../chunk-IK2BPURM.mjs";
|
|
52
52
|
import "../../chunk-XWG3L6QC.mjs";
|
|
53
53
|
import "../../chunk-54JAUBUJ.mjs";
|
|
54
54
|
import "../../chunk-JGMFJZMG.mjs";
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
AssistantMessage
|
|
3
3
|
} from "../../../chunk-IHFR6PYG.mjs";
|
|
4
4
|
import "../../../chunk-JZ3RFQQ6.mjs";
|
|
5
|
-
import "../../../chunk-IK2BPURM.mjs";
|
|
6
5
|
import "../../../chunk-IEMQ2SQW.mjs";
|
|
6
|
+
import "../../../chunk-IK2BPURM.mjs";
|
|
7
7
|
import "../../../chunk-XWG3L6QC.mjs";
|
|
8
8
|
import "../../../chunk-54JAUBUJ.mjs";
|
|
9
9
|
import "../../../chunk-MRXNTQOX.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Markdown
|
|
3
3
|
} from "../../../chunk-JZ3RFQQ6.mjs";
|
|
4
|
-
import "../../../chunk-IK2BPURM.mjs";
|
|
5
4
|
import {
|
|
6
5
|
useChatContext
|
|
7
6
|
} from "../../../chunk-IEMQ2SQW.mjs";
|
|
7
|
+
import "../../../chunk-IK2BPURM.mjs";
|
|
8
8
|
import "../../../chunk-XWG3L6QC.mjs";
|
|
9
9
|
import "../../../chunk-54JAUBUJ.mjs";
|
|
10
10
|
import "../../../chunk-MRXNTQOX.mjs";
|
|
@@ -6,8 +6,8 @@ import "../../../chunk-IHFR6PYG.mjs";
|
|
|
6
6
|
import "../../../chunk-DBKRAOH7.mjs";
|
|
7
7
|
import "../../../chunk-RYUCX3ZK.mjs";
|
|
8
8
|
import "../../../chunk-JZ3RFQQ6.mjs";
|
|
9
|
-
import "../../../chunk-IK2BPURM.mjs";
|
|
10
9
|
import "../../../chunk-IEMQ2SQW.mjs";
|
|
10
|
+
import "../../../chunk-IK2BPURM.mjs";
|
|
11
11
|
import "../../../chunk-XWG3L6QC.mjs";
|
|
12
12
|
import "../../../chunk-54JAUBUJ.mjs";
|
|
13
13
|
import "../../../chunk-MRXNTQOX.mjs";
|
|
@@ -5,8 +5,8 @@ import "../../../chunk-IHFR6PYG.mjs";
|
|
|
5
5
|
import "../../../chunk-DBKRAOH7.mjs";
|
|
6
6
|
import "../../../chunk-RYUCX3ZK.mjs";
|
|
7
7
|
import "../../../chunk-JZ3RFQQ6.mjs";
|
|
8
|
-
import "../../../chunk-IK2BPURM.mjs";
|
|
9
8
|
import "../../../chunk-IEMQ2SQW.mjs";
|
|
9
|
+
import "../../../chunk-IK2BPURM.mjs";
|
|
10
10
|
import "../../../chunk-XWG3L6QC.mjs";
|
|
11
11
|
import "../../../chunk-54JAUBUJ.mjs";
|
|
12
12
|
import "../../../chunk-MRXNTQOX.mjs";
|
package/dist/components/index.js
CHANGED
|
@@ -2481,9 +2481,9 @@ var ImageUploadQueue = ({
|
|
|
2481
2481
|
var import_react_core8 = require("@copilotkit/react-core");
|
|
2482
2482
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2483
2483
|
function Suggestion({ title, onClick, partial, className }) {
|
|
2484
|
+
const { isLoading } = (0, import_react_core8.useCopilotChatInternal)();
|
|
2484
2485
|
if (!title)
|
|
2485
2486
|
return null;
|
|
2486
|
-
const { isLoading } = (0, import_react_core8.useCopilotChatInternal)();
|
|
2487
2487
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2488
2488
|
"button",
|
|
2489
2489
|
{
|
|
@@ -2492,8 +2492,9 @@ function Suggestion({ title, onClick, partial, className }) {
|
|
|
2492
2492
|
e.preventDefault();
|
|
2493
2493
|
onClick();
|
|
2494
2494
|
},
|
|
2495
|
-
className: className
|
|
2495
|
+
className: `suggestion ${className != null ? className : ""} ${partial ? "loading" : ""}`,
|
|
2496
2496
|
"data-test-id": "suggestion",
|
|
2497
|
+
type: "button",
|
|
2497
2498
|
children: partial ? SmallSpinnerIcon : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: title })
|
|
2498
2499
|
}
|
|
2499
2500
|
);
|