@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,13 +1,13 @@
|
|
|
1
1
|
import "../chunk-MMVDU6DF.mjs";
|
|
2
2
|
import "../chunk-SC6JRFAJ.mjs";
|
|
3
|
+
import {
|
|
4
|
+
CopilotSidebar
|
|
5
|
+
} from "../chunk-DI7DDMRS.mjs";
|
|
3
6
|
import "../chunk-WB3YULQ4.mjs";
|
|
4
7
|
import {
|
|
5
8
|
CopilotPopup
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import
|
|
8
|
-
CopilotSidebar
|
|
9
|
-
} from "../chunk-LQEFRHRT.mjs";
|
|
10
|
-
import "../chunk-7PR2KJDO.mjs";
|
|
9
|
+
} from "../chunk-VVCCMYGT.mjs";
|
|
10
|
+
import "../chunk-BVKKSSB2.mjs";
|
|
11
11
|
import "../chunk-C3GSYRC3.mjs";
|
|
12
12
|
import "../chunk-GDSZGYCE.mjs";
|
|
13
13
|
import "../chunk-V7W6IM2V.mjs";
|
|
@@ -24,13 +24,13 @@ import "../chunk-BH6PCAAL.mjs";
|
|
|
24
24
|
import "../chunk-UFN2VWSR.mjs";
|
|
25
25
|
import {
|
|
26
26
|
CopilotChat
|
|
27
|
-
} from "../chunk-
|
|
27
|
+
} from "../chunk-NSJWSIPR.mjs";
|
|
28
28
|
import {
|
|
29
29
|
Suggestions
|
|
30
|
-
} from "../chunk-
|
|
30
|
+
} from "../chunk-VHKHX7GV.mjs";
|
|
31
31
|
import {
|
|
32
32
|
Suggestion
|
|
33
|
-
} from "../chunk-
|
|
33
|
+
} from "../chunk-6TWQUA2Q.mjs";
|
|
34
34
|
import "../chunk-PLHTVHUW.mjs";
|
|
35
35
|
import "../chunk-3W6J75HS.mjs";
|
|
36
36
|
import "../chunk-ELGRNEAO.mjs";
|
|
@@ -50,10 +50,10 @@ import {
|
|
|
50
50
|
import {
|
|
51
51
|
Markdown
|
|
52
52
|
} from "../chunk-JZ3RFQQ6.mjs";
|
|
53
|
-
import "../chunk-IK2BPURM.mjs";
|
|
54
53
|
import {
|
|
55
54
|
useChatContext
|
|
56
55
|
} from "../chunk-IEMQ2SQW.mjs";
|
|
56
|
+
import "../chunk-IK2BPURM.mjs";
|
|
57
57
|
import "../chunk-XWG3L6QC.mjs";
|
|
58
58
|
import "../chunk-54JAUBUJ.mjs";
|
|
59
59
|
import "../chunk-JGMFJZMG.mjs";
|
package/dist/index.js
CHANGED
|
@@ -2483,9 +2483,9 @@ var ImageUploadQueue = ({
|
|
|
2483
2483
|
var import_react_core8 = require("@copilotkit/react-core");
|
|
2484
2484
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
2485
2485
|
function Suggestion({ title, onClick, partial, className }) {
|
|
2486
|
+
const { isLoading } = (0, import_react_core8.useCopilotChatInternal)();
|
|
2486
2487
|
if (!title)
|
|
2487
2488
|
return null;
|
|
2488
|
-
const { isLoading } = (0, import_react_core8.useCopilotChatInternal)();
|
|
2489
2489
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
2490
2490
|
"button",
|
|
2491
2491
|
{
|
|
@@ -2494,8 +2494,9 @@ function Suggestion({ title, onClick, partial, className }) {
|
|
|
2494
2494
|
e.preventDefault();
|
|
2495
2495
|
onClick();
|
|
2496
2496
|
},
|
|
2497
|
-
className: className
|
|
2497
|
+
className: `suggestion ${className != null ? className : ""} ${partial ? "loading" : ""}`,
|
|
2498
2498
|
"data-test-id": "suggestion",
|
|
2499
|
+
type: "button",
|
|
2499
2500
|
children: partial ? SmallSpinnerIcon : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: title })
|
|
2500
2501
|
}
|
|
2501
2502
|
);
|