@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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotModal
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-SHPG2T4O.mjs";
|
|
4
4
|
import "../../chunk-C3GSYRC3.mjs";
|
|
5
5
|
import "../../chunk-GDSZGYCE.mjs";
|
|
6
6
|
import "../../chunk-V7W6IM2V.mjs";
|
|
@@ -11,7 +11,7 @@ import "../../chunk-KXE2JCUH.mjs";
|
|
|
11
11
|
import "../../chunk-NRA3CFEE.mjs";
|
|
12
12
|
import "../../chunk-BH6PCAAL.mjs";
|
|
13
13
|
import "../../chunk-UFN2VWSR.mjs";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-EL7NCWNZ.mjs";
|
|
15
15
|
import "../../chunk-226ZMOE3.mjs";
|
|
16
16
|
import "../../chunk-W26XFBEG.mjs";
|
|
17
17
|
import "../../chunk-PLHTVHUW.mjs";
|
|
@@ -2451,6 +2451,7 @@ function CopilotChat({
|
|
|
2451
2451
|
suggestions = "auto",
|
|
2452
2452
|
onSubmitMessage,
|
|
2453
2453
|
makeSystemMessage,
|
|
2454
|
+
disableSystemMessage,
|
|
2454
2455
|
onInProgress,
|
|
2455
2456
|
onStopGeneration,
|
|
2456
2457
|
onReloadMessages,
|
|
@@ -2616,6 +2617,7 @@ function CopilotChat({
|
|
|
2616
2617
|
} = useCopilotChatLogic(
|
|
2617
2618
|
suggestions,
|
|
2618
2619
|
makeSystemMessage,
|
|
2620
|
+
disableSystemMessage,
|
|
2619
2621
|
onInProgress,
|
|
2620
2622
|
onSubmitMessage,
|
|
2621
2623
|
onStopGeneration,
|
|
@@ -2781,7 +2783,7 @@ function WrappedCopilotChat({
|
|
|
2781
2783
|
}
|
|
2782
2784
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children });
|
|
2783
2785
|
}
|
|
2784
|
-
var useCopilotChatLogic = (chatSuggestions, makeSystemMessage, onInProgress, onSubmitMessage, onStopGeneration, onReloadMessages) => {
|
|
2786
|
+
var useCopilotChatLogic = (chatSuggestions, makeSystemMessage, disableSystemMessage, onInProgress, onSubmitMessage, onStopGeneration, onReloadMessages) => {
|
|
2785
2787
|
var _a;
|
|
2786
2788
|
const {
|
|
2787
2789
|
messages,
|
|
@@ -2797,7 +2799,8 @@ var useCopilotChatLogic = (chatSuggestions, makeSystemMessage, onInProgress, onS
|
|
|
2797
2799
|
resetSuggestions: resetSuggestionsFromHook,
|
|
2798
2800
|
isLoadingSuggestions
|
|
2799
2801
|
} = (0, import_react_core9.useCopilotChatInternal)({
|
|
2800
|
-
makeSystemMessage
|
|
2802
|
+
makeSystemMessage,
|
|
2803
|
+
disableSystemMessage
|
|
2801
2804
|
});
|
|
2802
2805
|
const generalContext = (0, import_react_core9.useCopilotContext)();
|
|
2803
2806
|
const messagesContext = (0, import_react_core9.useCopilotMessagesContext)();
|