@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
|
@@ -2449,6 +2449,7 @@ function CopilotChat({
|
|
|
2449
2449
|
suggestions = "auto",
|
|
2450
2450
|
onSubmitMessage,
|
|
2451
2451
|
makeSystemMessage,
|
|
2452
|
+
disableSystemMessage,
|
|
2452
2453
|
onInProgress,
|
|
2453
2454
|
onStopGeneration,
|
|
2454
2455
|
onReloadMessages,
|
|
@@ -2614,6 +2615,7 @@ function CopilotChat({
|
|
|
2614
2615
|
} = useCopilotChatLogic(
|
|
2615
2616
|
suggestions,
|
|
2616
2617
|
makeSystemMessage,
|
|
2618
|
+
disableSystemMessage,
|
|
2617
2619
|
onInProgress,
|
|
2618
2620
|
onSubmitMessage,
|
|
2619
2621
|
onStopGeneration,
|
|
@@ -2779,7 +2781,7 @@ function WrappedCopilotChat({
|
|
|
2779
2781
|
}
|
|
2780
2782
|
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_jsx_runtime24.Fragment, { children });
|
|
2781
2783
|
}
|
|
2782
|
-
var useCopilotChatLogic = (chatSuggestions, makeSystemMessage, onInProgress, onSubmitMessage, onStopGeneration, onReloadMessages) => {
|
|
2784
|
+
var useCopilotChatLogic = (chatSuggestions, makeSystemMessage, disableSystemMessage, onInProgress, onSubmitMessage, onStopGeneration, onReloadMessages) => {
|
|
2783
2785
|
var _a;
|
|
2784
2786
|
const {
|
|
2785
2787
|
messages,
|
|
@@ -2795,7 +2797,8 @@ var useCopilotChatLogic = (chatSuggestions, makeSystemMessage, onInProgress, onS
|
|
|
2795
2797
|
resetSuggestions: resetSuggestionsFromHook,
|
|
2796
2798
|
isLoadingSuggestions
|
|
2797
2799
|
} = (0, import_react_core9.useCopilotChatInternal)({
|
|
2798
|
-
makeSystemMessage
|
|
2800
|
+
makeSystemMessage,
|
|
2801
|
+
disableSystemMessage
|
|
2799
2802
|
});
|
|
2800
2803
|
const generalContext = (0, import_react_core9.useCopilotContext)();
|
|
2801
2804
|
const messagesContext = (0, import_react_core9.useCopilotMessagesContext)();
|