@copilotkit/react-core 2.0.0-rc.5 → 2.0.0-rc.7
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/dist/index.cjs +4 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +0 -13
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +0 -13
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +4 -6
- package/dist/index.umd.js.map +1 -1
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -1326,7 +1326,7 @@ function useRenderToolCall() {
|
|
|
1326
1326
|
|
|
1327
1327
|
//#endregion
|
|
1328
1328
|
//#region package.json
|
|
1329
|
-
var version$1 = "2.0.0-rc.
|
|
1329
|
+
var version$1 = "2.0.0-rc.7";
|
|
1330
1330
|
|
|
1331
1331
|
//#endregion
|
|
1332
1332
|
//#region src/components/CopilotKitInspector.tsx
|
|
@@ -11544,7 +11544,7 @@ function DropOverlay() {
|
|
|
11544
11544
|
})
|
|
11545
11545
|
});
|
|
11546
11546
|
}
|
|
11547
|
-
function CopilotChatView({ messageView, input, scrollView, suggestionView, welcomeScreen, messages = [], autoScroll = true, isRunning = false, suggestions, suggestionLoadingIndexes, onSelectSuggestion, onSubmitMessage, onStop, inputMode, inputValue, onInputChange, onStartTranscribe, onCancelTranscribe, onFinishTranscribe, onFinishTranscribeWithAudio, attachments, onRemoveAttachment, onAddFile, dragOver, onDragOver, onDragLeave, onDrop, isConnecting = false, hasExplicitThreadId = false,
|
|
11547
|
+
function CopilotChatView({ messageView, input, scrollView, suggestionView, welcomeScreen, messages = [], autoScroll = true, isRunning = false, suggestions, suggestionLoadingIndexes, onSelectSuggestion, onSubmitMessage, onStop, inputMode, inputValue, onInputChange, onStartTranscribe, onCancelTranscribe, onFinishTranscribe, onFinishTranscribeWithAudio, attachments, onRemoveAttachment, onAddFile, dragOver, onDragOver, onDragLeave, onDrop, isConnecting = false, hasExplicitThreadId = false, intelligenceIndicator, children, className, ...props }) {
|
|
11548
11548
|
const configuredThreadId = require_MarkdownSurfaces.useCopilotChatConfiguration()?.threadId;
|
|
11549
11549
|
const [fallbackThreadId, setFallbackThreadId] = (0, react.useState)(messages[0]?.id);
|
|
11550
11550
|
const previousMessageIds = (0, react.useRef)(/* @__PURE__ */ new Set());
|
|
@@ -11609,8 +11609,7 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
|
|
|
11609
11609
|
positioning: "static",
|
|
11610
11610
|
keyboardHeight: isKeyboardOpen ? keyboardHeight : 0,
|
|
11611
11611
|
showDisclaimer: true,
|
|
11612
|
-
bottomAnchored: true
|
|
11613
|
-
...disclaimer !== void 0 ? { disclaimer } : {}
|
|
11612
|
+
bottomAnchored: true
|
|
11614
11613
|
});
|
|
11615
11614
|
const hasSuggestions = !isConnecting && !isRunning && Array.isArray(suggestions) && suggestions.length > 0;
|
|
11616
11615
|
const BoundSuggestionView = hasSuggestions ? require_MarkdownSurfaces.renderSlot(suggestionView, CopilotChatSuggestionView, {
|
|
@@ -11650,8 +11649,7 @@ function CopilotChatView({ messageView, input, scrollView, suggestionView, welco
|
|
|
11650
11649
|
onFinishTranscribeWithAudio,
|
|
11651
11650
|
onAddFile,
|
|
11652
11651
|
positioning: "static",
|
|
11653
|
-
showDisclaimer: true
|
|
11654
|
-
...disclaimer !== void 0 ? { disclaimer } : {}
|
|
11652
|
+
showDisclaimer: true
|
|
11655
11653
|
});
|
|
11656
11654
|
const welcomeScreenSlot = welcomeScreen === true ? void 0 : welcomeScreen;
|
|
11657
11655
|
const inputWithAttachments = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|