@copilotkit/react-ui 1.10.1-next.2 → 1.10.2-next.0
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 +8455 -0
- package/dist/{chunk-PUQIA4B7.mjs → chunk-7XIE7UOW.mjs} +2 -2
- package/dist/{chunk-BR4WY3XE.mjs → chunk-EL7NCWNZ.mjs} +6 -3
- package/dist/chunk-EL7NCWNZ.mjs.map +1 -0
- package/dist/{chunk-CCHSX7TX.mjs → chunk-FWQRAZ5S.mjs} +2 -2
- package/dist/{chunk-MSOGSTTI.mjs → chunk-SHPG2T4O.mjs} +2 -2
- package/dist/components/chat/Chat.d.ts +6 -2
- package/dist/components/chat/Chat.js +5 -2
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +1 -1
- package/dist/components/chat/Modal.js +5 -2
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +2 -2
- package/dist/components/chat/Popup.js +5 -2
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +3 -3
- package/dist/components/chat/Sidebar.js +5 -2
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +3 -3
- package/dist/components/chat/index.js +5 -2
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +4 -4
- package/dist/components/index.js +5 -2
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +4 -4
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/package.json +6 -6
- package/src/components/chat/Chat.tsx +9 -0
- package/dist/chunk-BR4WY3XE.mjs.map +0 -1
- /package/dist/{chunk-PUQIA4B7.mjs.map → chunk-7XIE7UOW.mjs.map} +0 -0
- /package/dist/{chunk-CCHSX7TX.mjs.map → chunk-FWQRAZ5S.mjs.map} +0 -0
- /package/dist/{chunk-MSOGSTTI.mjs.map → chunk-SHPG2T4O.mjs.map} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "../../chunk-SC6JRFAJ.mjs";
|
|
2
2
|
import {
|
|
3
3
|
CopilotSidebar
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-FWQRAZ5S.mjs";
|
|
5
5
|
import "../../chunk-WB3YULQ4.mjs";
|
|
6
6
|
import {
|
|
7
7
|
CopilotPopup
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-7XIE7UOW.mjs";
|
|
9
|
+
import "../../chunk-SHPG2T4O.mjs";
|
|
10
10
|
import "../../chunk-C3GSYRC3.mjs";
|
|
11
11
|
import "../../chunk-GDSZGYCE.mjs";
|
|
12
12
|
import "../../chunk-V7W6IM2V.mjs";
|
|
@@ -19,7 +19,7 @@ import "../../chunk-BH6PCAAL.mjs";
|
|
|
19
19
|
import "../../chunk-UFN2VWSR.mjs";
|
|
20
20
|
import {
|
|
21
21
|
CopilotChat
|
|
22
|
-
} from "../../chunk-
|
|
22
|
+
} from "../../chunk-EL7NCWNZ.mjs";
|
|
23
23
|
import {
|
|
24
24
|
Suggestions
|
|
25
25
|
} from "../../chunk-226ZMOE3.mjs";
|
package/dist/components/index.js
CHANGED
|
@@ -2462,6 +2462,7 @@ function CopilotChat({
|
|
|
2462
2462
|
suggestions = "auto",
|
|
2463
2463
|
onSubmitMessage,
|
|
2464
2464
|
makeSystemMessage,
|
|
2465
|
+
disableSystemMessage,
|
|
2465
2466
|
onInProgress,
|
|
2466
2467
|
onStopGeneration,
|
|
2467
2468
|
onReloadMessages,
|
|
@@ -2627,6 +2628,7 @@ function CopilotChat({
|
|
|
2627
2628
|
} = useCopilotChatLogic(
|
|
2628
2629
|
suggestions,
|
|
2629
2630
|
makeSystemMessage,
|
|
2631
|
+
disableSystemMessage,
|
|
2630
2632
|
onInProgress,
|
|
2631
2633
|
onSubmitMessage,
|
|
2632
2634
|
onStopGeneration,
|
|
@@ -2792,7 +2794,7 @@ function WrappedCopilotChat({
|
|
|
2792
2794
|
}
|
|
2793
2795
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children });
|
|
2794
2796
|
}
|
|
2795
|
-
var useCopilotChatLogic = (chatSuggestions, makeSystemMessage, onInProgress, onSubmitMessage, onStopGeneration, onReloadMessages) => {
|
|
2797
|
+
var useCopilotChatLogic = (chatSuggestions, makeSystemMessage, disableSystemMessage, onInProgress, onSubmitMessage, onStopGeneration, onReloadMessages) => {
|
|
2796
2798
|
var _a;
|
|
2797
2799
|
const {
|
|
2798
2800
|
messages,
|
|
@@ -2808,7 +2810,8 @@ var useCopilotChatLogic = (chatSuggestions, makeSystemMessage, onInProgress, onS
|
|
|
2808
2810
|
resetSuggestions: resetSuggestionsFromHook,
|
|
2809
2811
|
isLoadingSuggestions
|
|
2810
2812
|
} = (0, import_react_core9.useCopilotChatInternal)({
|
|
2811
|
-
makeSystemMessage
|
|
2813
|
+
makeSystemMessage,
|
|
2814
|
+
disableSystemMessage
|
|
2812
2815
|
});
|
|
2813
2816
|
const generalContext = (0, import_react_core9.useCopilotContext)();
|
|
2814
2817
|
const messagesContext = (0, import_react_core9.useCopilotMessagesContext)();
|