@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,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotSidebar
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-FWQRAZ5S.mjs";
|
|
4
|
+
import "../../chunk-SHPG2T4O.mjs";
|
|
5
5
|
import "../../chunk-C3GSYRC3.mjs";
|
|
6
6
|
import "../../chunk-GDSZGYCE.mjs";
|
|
7
7
|
import "../../chunk-V7W6IM2V.mjs";
|
|
@@ -12,7 +12,7 @@ import "../../chunk-KXE2JCUH.mjs";
|
|
|
12
12
|
import "../../chunk-NRA3CFEE.mjs";
|
|
13
13
|
import "../../chunk-BH6PCAAL.mjs";
|
|
14
14
|
import "../../chunk-UFN2VWSR.mjs";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-EL7NCWNZ.mjs";
|
|
16
16
|
import "../../chunk-226ZMOE3.mjs";
|
|
17
17
|
import "../../chunk-W26XFBEG.mjs";
|
|
18
18
|
import "../../chunk-PLHTVHUW.mjs";
|
|
@@ -2460,6 +2460,7 @@ function CopilotChat({
|
|
|
2460
2460
|
suggestions = "auto",
|
|
2461
2461
|
onSubmitMessage,
|
|
2462
2462
|
makeSystemMessage,
|
|
2463
|
+
disableSystemMessage,
|
|
2463
2464
|
onInProgress,
|
|
2464
2465
|
onStopGeneration,
|
|
2465
2466
|
onReloadMessages,
|
|
@@ -2625,6 +2626,7 @@ function CopilotChat({
|
|
|
2625
2626
|
} = useCopilotChatLogic(
|
|
2626
2627
|
suggestions,
|
|
2627
2628
|
makeSystemMessage,
|
|
2629
|
+
disableSystemMessage,
|
|
2628
2630
|
onInProgress,
|
|
2629
2631
|
onSubmitMessage,
|
|
2630
2632
|
onStopGeneration,
|
|
@@ -2790,7 +2792,7 @@ function WrappedCopilotChat({
|
|
|
2790
2792
|
}
|
|
2791
2793
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children });
|
|
2792
2794
|
}
|
|
2793
|
-
var useCopilotChatLogic = (chatSuggestions, makeSystemMessage, onInProgress, onSubmitMessage, onStopGeneration, onReloadMessages) => {
|
|
2795
|
+
var useCopilotChatLogic = (chatSuggestions, makeSystemMessage, disableSystemMessage, onInProgress, onSubmitMessage, onStopGeneration, onReloadMessages) => {
|
|
2794
2796
|
var _a;
|
|
2795
2797
|
const {
|
|
2796
2798
|
messages,
|
|
@@ -2806,7 +2808,8 @@ var useCopilotChatLogic = (chatSuggestions, makeSystemMessage, onInProgress, onS
|
|
|
2806
2808
|
resetSuggestions: resetSuggestionsFromHook,
|
|
2807
2809
|
isLoadingSuggestions
|
|
2808
2810
|
} = (0, import_react_core9.useCopilotChatInternal)({
|
|
2809
|
-
makeSystemMessage
|
|
2811
|
+
makeSystemMessage,
|
|
2812
|
+
disableSystemMessage
|
|
2810
2813
|
});
|
|
2811
2814
|
const generalContext = (0, import_react_core9.useCopilotContext)();
|
|
2812
2815
|
const messagesContext = (0, import_react_core9.useCopilotMessagesContext)();
|