@copilotkit/react-ui 1.9.2-next.10 → 1.9.2-next.3
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 +0 -60
- package/dist/{chunk-2CVOR5KS.mjs → chunk-EMIYIMQ6.mjs} +14 -24
- package/dist/chunk-EMIYIMQ6.mjs.map +1 -0
- package/dist/{chunk-HC4XNT4D.mjs → chunk-GBGU4ZR6.mjs} +2 -2
- package/dist/{chunk-HTWRXRTZ.mjs → chunk-GVKA7RQQ.mjs} +2 -2
- package/dist/{chunk-CV7HMDQX.mjs → chunk-KGKVOUC3.mjs} +2 -2
- package/dist/{chunk-6CM2HBBL.mjs → chunk-RT4HE74K.mjs} +10 -12
- package/dist/chunk-RT4HE74K.mjs.map +1 -0
- package/dist/{chunk-OHLSW5IM.mjs → chunk-SGFUVPDB.mjs} +7 -7
- package/dist/{chunk-COWRPULP.mjs → chunk-XZI6DUGE.mjs} +6 -6
- package/dist/components/chat/Chat.d.ts +1 -2
- package/dist/components/chat/Chat.js +11 -23
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +6 -6
- package/dist/components/chat/Header.mjs +3 -3
- package/dist/components/chat/Input.d.ts +1 -1
- package/dist/components/chat/Input.js +9 -19
- package/dist/components/chat/Input.js.map +1 -1
- package/dist/components/chat/Input.mjs +2 -2
- package/dist/components/chat/Modal.js +11 -23
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +15 -15
- package/dist/components/chat/Popup.js +11 -23
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +16 -16
- package/dist/components/chat/Sidebar.js +11 -23
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +16 -16
- package/dist/components/chat/index.js +11 -23
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +19 -19
- package/dist/components/chat/props.d.ts +0 -1
- package/dist/components/chat/props.js.map +1 -1
- package/dist/components/dev-console/console.mjs +2 -2
- package/dist/components/dev-console/index.mjs +2 -2
- package/dist/components/index.js +11 -23
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +23 -23
- package/dist/index.js +11 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -24
- package/dist/lib/utils.test.d.ts +2 -0
- package/dist/lib/utils.test.js +9 -0
- package/dist/lib/utils.test.js.map +1 -0
- package/dist/lib/utils.test.mjs +7 -0
- package/dist/lib/utils.test.mjs.map +1 -0
- package/package.json +5 -5
- package/src/components/chat/Chat.tsx +0 -4
- package/src/components/chat/Input.tsx +11 -21
- package/src/components/chat/props.ts +0 -1
- package/tsup.config.ts +6 -1
- package/dist/chunk-2CVOR5KS.mjs.map +0 -1
- package/dist/chunk-6CM2HBBL.mjs.map +0 -1
- /package/dist/{chunk-HC4XNT4D.mjs.map → chunk-GBGU4ZR6.mjs.map} +0 -0
- /package/dist/{chunk-HTWRXRTZ.mjs.map → chunk-GVKA7RQQ.mjs.map} +0 -0
- /package/dist/{chunk-CV7HMDQX.mjs.map → chunk-KGKVOUC3.mjs.map} +0 -0
- /package/dist/{chunk-OHLSW5IM.mjs.map → chunk-SGFUVPDB.mjs.map} +0 -0
- /package/dist/{chunk-COWRPULP.mjs.map → chunk-XZI6DUGE.mjs.map} +0 -0
|
@@ -2,16 +2,24 @@ import "../../chunk-SC6JRFAJ.mjs";
|
|
|
2
2
|
import "../../chunk-WB3YULQ4.mjs";
|
|
3
3
|
import {
|
|
4
4
|
CopilotPopup
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-GBGU4ZR6.mjs";
|
|
6
6
|
import {
|
|
7
7
|
CopilotSidebar
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-KGKVOUC3.mjs";
|
|
9
|
+
import "../../chunk-XZI6DUGE.mjs";
|
|
10
10
|
import "../../chunk-C3GSYRC3.mjs";
|
|
11
|
+
import "../../chunk-GVKA7RQQ.mjs";
|
|
12
|
+
import "../../chunk-V7W6IM2V.mjs";
|
|
13
|
+
import "../../chunk-SGFUVPDB.mjs";
|
|
14
|
+
import "../../chunk-Q5V6S67N.mjs";
|
|
15
|
+
import "../../chunk-QN7T3GWI.mjs";
|
|
16
|
+
import "../../chunk-KXE2JCUH.mjs";
|
|
17
|
+
import "../../chunk-NRA3CFEE.mjs";
|
|
18
|
+
import "../../chunk-BH6PCAAL.mjs";
|
|
11
19
|
import "../../chunk-UFN2VWSR.mjs";
|
|
12
20
|
import {
|
|
13
21
|
CopilotChat
|
|
14
|
-
} from "../../chunk-
|
|
22
|
+
} from "../../chunk-RT4HE74K.mjs";
|
|
15
23
|
import "../../chunk-UKCPOBQM.mjs";
|
|
16
24
|
import "../../chunk-2II3Q27P.mjs";
|
|
17
25
|
import {
|
|
@@ -28,30 +36,22 @@ import {
|
|
|
28
36
|
import {
|
|
29
37
|
Suggestions
|
|
30
38
|
} from "../../chunk-QGSPTXOV.mjs";
|
|
31
|
-
import
|
|
39
|
+
import {
|
|
40
|
+
Suggestion
|
|
41
|
+
} from "../../chunk-IMBPSLL4.mjs";
|
|
42
|
+
import "../../chunk-PLHTVHUW.mjs";
|
|
43
|
+
import "../../chunk-EMIYIMQ6.mjs";
|
|
44
|
+
import "../../chunk-CGEAG65D.mjs";
|
|
32
45
|
import "../../chunk-YQFVRDNC.mjs";
|
|
33
46
|
import {
|
|
34
47
|
Markdown
|
|
35
48
|
} from "../../chunk-YTXEWDNC.mjs";
|
|
36
|
-
import "../../chunk-B3D7U7TJ.mjs";
|
|
37
|
-
import "../../chunk-CGEAG65D.mjs";
|
|
38
|
-
import {
|
|
39
|
-
Suggestion
|
|
40
|
-
} from "../../chunk-IMBPSLL4.mjs";
|
|
41
49
|
import "../../chunk-KENCH7RN.mjs";
|
|
42
|
-
import "../../chunk-
|
|
43
|
-
import "../../chunk-V7W6IM2V.mjs";
|
|
44
|
-
import "../../chunk-OHLSW5IM.mjs";
|
|
45
|
-
import "../../chunk-QN7T3GWI.mjs";
|
|
46
|
-
import "../../chunk-KXE2JCUH.mjs";
|
|
47
|
-
import "../../chunk-NRA3CFEE.mjs";
|
|
48
|
-
import "../../chunk-BH6PCAAL.mjs";
|
|
49
|
-
import "../../chunk-Q5V6S67N.mjs";
|
|
50
|
+
import "../../chunk-B3D7U7TJ.mjs";
|
|
50
51
|
import {
|
|
51
52
|
useChatContext
|
|
52
53
|
} from "../../chunk-IEMQ2SQW.mjs";
|
|
53
54
|
import "../../chunk-XWG3L6QC.mjs";
|
|
54
|
-
import "../../chunk-PLHTVHUW.mjs";
|
|
55
55
|
import "../../chunk-54JAUBUJ.mjs";
|
|
56
56
|
import "../../chunk-JGMFJZMG.mjs";
|
|
57
57
|
import "../../chunk-S5MBUNGN.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/chat/props.ts"],"sourcesContent":["import { Message, TextMessage } from \"@copilotkit/runtime-client-gql\";\nimport { CopilotChatSuggestion } from \"../../types/suggestions\";\nimport { ReactNode } from \"react\";\n\nexport interface ButtonProps {}\n\nexport interface WindowProps {\n clickOutsideToClose: boolean;\n hitEscapeToClose: boolean;\n shortcut: string;\n children?: React.ReactNode;\n}\n\nexport interface HeaderProps {}\n\nexport interface SuggestionsProps {\n title: string;\n message: string;\n partial?: boolean;\n className?: string;\n onClick: (message: string) => void;\n}\n\nexport type ComponentsMap<T extends Record<string, object> = Record<string, object>> = {\n [K in keyof T]: React.FC<{ children?: ReactNode } & T[K]>;\n};\n\nexport interface MessagesProps {\n messages: Message[];\n inProgress: boolean;\n children?: React.ReactNode;\n AssistantMessage: React.ComponentType<AssistantMessageProps>;\n UserMessage: React.ComponentType<UserMessageProps>;\n RenderTextMessage: React.ComponentType<RenderMessageProps>;\n RenderActionExecutionMessage: React.ComponentType<RenderMessageProps>;\n RenderAgentStateMessage: React.ComponentType<RenderMessageProps>;\n RenderResultMessage: React.ComponentType<RenderMessageProps>;\n RenderImageMessage: React.ComponentType<RenderMessageProps>;\n\n /**\n * Callback function to regenerate the assistant's response\n */\n onRegenerate?: (messageId: string) => void;\n\n /**\n * Callback function when the message is copied\n */\n onCopy?: (message: string) => void;\n\n /**\n * Callback function for thumbs up feedback\n */\n onThumbsUp?: (message: TextMessage) => void;\n\n /**\n * Callback function for thumbs down feedback\n */\n onThumbsDown?: (message: TextMessage) => void;\n\n /**\n * A list of markdown components to render in assistant message.\n * Useful when you want to render custom elements in the message (e.g a reference tag element)\n */\n markdownTagRenderers?: ComponentsMap;\n}\n\nexport interface Renderer {\n content: string;\n}\n\nexport interface UserMessageProps {\n message?: string;\n rawData: any;\n subComponent?: React.JSX.Element;\n}\n\nexport interface AssistantMessageProps {\n /**\n * The message content from the assistant\n */\n\n message?: string;\n\n /**\n * Indicates if this is the last message\n */\n isCurrentMessage?: boolean;\n\n /**\n * The raw data from the assistant's response\n */\n rawData: any;\n\n /**\n * A component that was decided to render by the LLM.\n * When working with useCopilotActions and useCoAgentStateRender, this will be\n * the render component that was specified.\n */\n subComponent?: React.JSX.Element;\n\n /**\n * Whether a response is loading, this is when the LLM is thinking of a response but hasn't finished yet.\n */\n isLoading: boolean;\n\n /**\n * Whether a response is generating, this is when the LLM is actively generating and streaming content.\n */\n isGenerating: boolean;\n\n /**\n * Callback function to regenerate the assistant's response\n */\n onRegenerate?: () => void;\n\n /**\n * Callback function when the message is copied\n */\n onCopy?: (message: string) => void;\n\n /**\n * Callback function for thumbs up feedback\n */\n onThumbsUp?: (message: TextMessage) => void;\n\n /**\n * Callback function for thumbs down feedback\n */\n onThumbsDown?: (message: TextMessage) => void;\n\n /**\n * A list of markdown components to render in assistant message.\n * Useful when you want to render custom elements in the message (e.g a reference tag element)\n */\n markdownTagRenderers?: ComponentsMap;\n}\n\nexport interface RenderMessageProps {\n message: Message;\n inProgress: boolean;\n index: number;\n isCurrentMessage: boolean;\n actionResult?: string;\n AssistantMessage?: React.ComponentType<AssistantMessageProps>;\n UserMessage?: React.ComponentType<UserMessageProps>;\n\n /**\n * Callback function to regenerate the assistant's response\n */\n onRegenerate?: (messageId: string) => void;\n\n /**\n * Callback function when the message is copied\n */\n onCopy?: (message: string) => void;\n\n /**\n * Callback function for thumbs up feedback\n */\n onThumbsUp?: (message: TextMessage) => void;\n\n /**\n * Callback function for thumbs down feedback\n */\n onThumbsDown?: (message: TextMessage) => void;\n\n /**\n * A list of markdown components to render in assistant message.\n * Useful when you want to render custom elements in the message (e.g a reference tag element)\n */\n markdownTagRenderers?: ComponentsMap;\n}\n\nexport interface InputProps {\n inProgress: boolean;\n onSend: (text: string) => Promise<Message>;\n isVisible?: boolean;\n onStop?: () => void;\n onUpload?: () => void;\n
|
|
1
|
+
{"version":3,"sources":["../../../src/components/chat/props.ts"],"sourcesContent":["import { Message, TextMessage } from \"@copilotkit/runtime-client-gql\";\nimport { CopilotChatSuggestion } from \"../../types/suggestions\";\nimport { ReactNode } from \"react\";\n\nexport interface ButtonProps {}\n\nexport interface WindowProps {\n clickOutsideToClose: boolean;\n hitEscapeToClose: boolean;\n shortcut: string;\n children?: React.ReactNode;\n}\n\nexport interface HeaderProps {}\n\nexport interface SuggestionsProps {\n title: string;\n message: string;\n partial?: boolean;\n className?: string;\n onClick: (message: string) => void;\n}\n\nexport type ComponentsMap<T extends Record<string, object> = Record<string, object>> = {\n [K in keyof T]: React.FC<{ children?: ReactNode } & T[K]>;\n};\n\nexport interface MessagesProps {\n messages: Message[];\n inProgress: boolean;\n children?: React.ReactNode;\n AssistantMessage: React.ComponentType<AssistantMessageProps>;\n UserMessage: React.ComponentType<UserMessageProps>;\n RenderTextMessage: React.ComponentType<RenderMessageProps>;\n RenderActionExecutionMessage: React.ComponentType<RenderMessageProps>;\n RenderAgentStateMessage: React.ComponentType<RenderMessageProps>;\n RenderResultMessage: React.ComponentType<RenderMessageProps>;\n RenderImageMessage: React.ComponentType<RenderMessageProps>;\n\n /**\n * Callback function to regenerate the assistant's response\n */\n onRegenerate?: (messageId: string) => void;\n\n /**\n * Callback function when the message is copied\n */\n onCopy?: (message: string) => void;\n\n /**\n * Callback function for thumbs up feedback\n */\n onThumbsUp?: (message: TextMessage) => void;\n\n /**\n * Callback function for thumbs down feedback\n */\n onThumbsDown?: (message: TextMessage) => void;\n\n /**\n * A list of markdown components to render in assistant message.\n * Useful when you want to render custom elements in the message (e.g a reference tag element)\n */\n markdownTagRenderers?: ComponentsMap;\n}\n\nexport interface Renderer {\n content: string;\n}\n\nexport interface UserMessageProps {\n message?: string;\n rawData: any;\n subComponent?: React.JSX.Element;\n}\n\nexport interface AssistantMessageProps {\n /**\n * The message content from the assistant\n */\n\n message?: string;\n\n /**\n * Indicates if this is the last message\n */\n isCurrentMessage?: boolean;\n\n /**\n * The raw data from the assistant's response\n */\n rawData: any;\n\n /**\n * A component that was decided to render by the LLM.\n * When working with useCopilotActions and useCoAgentStateRender, this will be\n * the render component that was specified.\n */\n subComponent?: React.JSX.Element;\n\n /**\n * Whether a response is loading, this is when the LLM is thinking of a response but hasn't finished yet.\n */\n isLoading: boolean;\n\n /**\n * Whether a response is generating, this is when the LLM is actively generating and streaming content.\n */\n isGenerating: boolean;\n\n /**\n * Callback function to regenerate the assistant's response\n */\n onRegenerate?: () => void;\n\n /**\n * Callback function when the message is copied\n */\n onCopy?: (message: string) => void;\n\n /**\n * Callback function for thumbs up feedback\n */\n onThumbsUp?: (message: TextMessage) => void;\n\n /**\n * Callback function for thumbs down feedback\n */\n onThumbsDown?: (message: TextMessage) => void;\n\n /**\n * A list of markdown components to render in assistant message.\n * Useful when you want to render custom elements in the message (e.g a reference tag element)\n */\n markdownTagRenderers?: ComponentsMap;\n}\n\nexport interface RenderMessageProps {\n message: Message;\n inProgress: boolean;\n index: number;\n isCurrentMessage: boolean;\n actionResult?: string;\n AssistantMessage?: React.ComponentType<AssistantMessageProps>;\n UserMessage?: React.ComponentType<UserMessageProps>;\n\n /**\n * Callback function to regenerate the assistant's response\n */\n onRegenerate?: (messageId: string) => void;\n\n /**\n * Callback function when the message is copied\n */\n onCopy?: (message: string) => void;\n\n /**\n * Callback function for thumbs up feedback\n */\n onThumbsUp?: (message: TextMessage) => void;\n\n /**\n * Callback function for thumbs down feedback\n */\n onThumbsDown?: (message: TextMessage) => void;\n\n /**\n * A list of markdown components to render in assistant message.\n * Useful when you want to render custom elements in the message (e.g a reference tag element)\n */\n markdownTagRenderers?: ComponentsMap;\n}\n\nexport interface InputProps {\n inProgress: boolean;\n onSend: (text: string) => Promise<Message>;\n isVisible?: boolean;\n onStop?: () => void;\n onUpload?: () => void;\n}\n\nexport interface RenderSuggestionsListProps {\n suggestions: CopilotChatSuggestion[];\n onSuggestionClick: (message: string) => void;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CopilotDevConsole,
|
|
4
4
|
DebugMenuButton
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-SGFUVPDB.mjs";
|
|
6
|
+
import "../../chunk-Q5V6S67N.mjs";
|
|
6
7
|
import "../../chunk-QN7T3GWI.mjs";
|
|
7
8
|
import "../../chunk-KXE2JCUH.mjs";
|
|
8
9
|
import "../../chunk-NRA3CFEE.mjs";
|
|
9
10
|
import "../../chunk-BH6PCAAL.mjs";
|
|
10
|
-
import "../../chunk-Q5V6S67N.mjs";
|
|
11
11
|
import "../../chunk-XWG3L6QC.mjs";
|
|
12
12
|
import "../../chunk-MRXNTQOX.mjs";
|
|
13
13
|
export {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../chunk-V7W6IM2V.mjs";
|
|
2
2
|
import {
|
|
3
3
|
CopilotDevConsole
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-SGFUVPDB.mjs";
|
|
5
|
+
import "../../chunk-Q5V6S67N.mjs";
|
|
5
6
|
import {
|
|
6
7
|
shouldShowDevConsole
|
|
7
8
|
} from "../../chunk-QN7T3GWI.mjs";
|
|
8
9
|
import "../../chunk-KXE2JCUH.mjs";
|
|
9
10
|
import "../../chunk-NRA3CFEE.mjs";
|
|
10
11
|
import "../../chunk-BH6PCAAL.mjs";
|
|
11
|
-
import "../../chunk-Q5V6S67N.mjs";
|
|
12
12
|
import "../../chunk-XWG3L6QC.mjs";
|
|
13
13
|
import "../../chunk-MRXNTQOX.mjs";
|
|
14
14
|
export {
|
package/dist/components/index.js
CHANGED
|
@@ -1427,15 +1427,8 @@ function PoweredByTag({ showPoweredBy = true }) {
|
|
|
1427
1427
|
// src/components/chat/Input.tsx
|
|
1428
1428
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1429
1429
|
var MAX_NEWLINES = 6;
|
|
1430
|
-
var Input = ({
|
|
1431
|
-
|
|
1432
|
-
onSend,
|
|
1433
|
-
isVisible = false,
|
|
1434
|
-
onStop,
|
|
1435
|
-
onUpload,
|
|
1436
|
-
hideStopButton = false
|
|
1437
|
-
}) => {
|
|
1438
|
-
var _a, _b;
|
|
1430
|
+
var Input = ({ inProgress, onSend, isVisible = false, onStop, onUpload }) => {
|
|
1431
|
+
var _a;
|
|
1439
1432
|
const context = useChatContext();
|
|
1440
1433
|
const copilotContext = (0, import_react_core6.useCopilotContext)();
|
|
1441
1434
|
const showPoweredBy = !((_a = copilotContext.copilotApiConfig) == null ? void 0 : _a.publicApiKey);
|
|
@@ -1464,18 +1457,15 @@ var Input = ({
|
|
|
1464
1457
|
inProgress
|
|
1465
1458
|
});
|
|
1466
1459
|
const isInProgress = inProgress || pushToTalkState === "transcribing";
|
|
1467
|
-
const buttonIcon = isInProgress
|
|
1460
|
+
const buttonIcon = isInProgress ? context.icons.stopIcon : context.icons.sendIcon;
|
|
1468
1461
|
const showPushToTalk = pushToTalkConfigured && (pushToTalkState === "idle" || pushToTalkState === "recording") && !inProgress;
|
|
1469
|
-
const canSend = (
|
|
1462
|
+
const canSend = () => {
|
|
1470
1463
|
var _a2;
|
|
1471
1464
|
const interruptEvent = (_a2 = copilotContext.langGraphInterruptAction) == null ? void 0 : _a2.event;
|
|
1472
1465
|
const interruptInProgress = (interruptEvent == null ? void 0 : interruptEvent.name) === "LangGraphInterruptEvent" && !(interruptEvent == null ? void 0 : interruptEvent.response);
|
|
1473
|
-
return !isInProgress && text.trim().length > 0 && pushToTalkState === "idle" && !interruptInProgress;
|
|
1474
|
-
}
|
|
1475
|
-
const
|
|
1476
|
-
return isInProgress && !hideStopButton;
|
|
1477
|
-
}, [isInProgress, hideStopButton]);
|
|
1478
|
-
const sendDisabled = !canSend && !canStop;
|
|
1466
|
+
return (isInProgress || !isInProgress && text.trim().length > 0) && pushToTalkState === "idle" && !interruptInProgress;
|
|
1467
|
+
};
|
|
1468
|
+
const sendDisabled = !canSend();
|
|
1479
1469
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: `copilotKitInputContainer ${showPoweredBy ? "poweredByContainer" : ""}`, children: [
|
|
1480
1470
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: "copilotKitInput", onClick: handleDivClick, children: [
|
|
1481
1471
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
@@ -1490,7 +1480,7 @@ var Input = ({
|
|
|
1490
1480
|
onKeyDown: (event) => {
|
|
1491
1481
|
if (event.key === "Enter" && !event.shiftKey) {
|
|
1492
1482
|
event.preventDefault();
|
|
1493
|
-
if (canSend) {
|
|
1483
|
+
if (canSend()) {
|
|
1494
1484
|
send();
|
|
1495
1485
|
}
|
|
1496
1486
|
}
|
|
@@ -1512,7 +1502,7 @@ var Input = ({
|
|
|
1512
1502
|
"button",
|
|
1513
1503
|
{
|
|
1514
1504
|
disabled: sendDisabled,
|
|
1515
|
-
onClick: isInProgress
|
|
1505
|
+
onClick: isInProgress ? onStop : send,
|
|
1516
1506
|
"data-copilotkit-in-progress": inProgress,
|
|
1517
1507
|
"data-test-id": inProgress ? "copilot-chat-request-in-progress" : "copilot-chat-ready",
|
|
1518
1508
|
className: "copilotKitInputControlButton",
|
|
@@ -2718,8 +2708,7 @@ function CopilotChat({
|
|
|
2718
2708
|
AssistantMessage: AssistantMessage2 = AssistantMessage,
|
|
2719
2709
|
UserMessage: UserMessage2 = UserMessage,
|
|
2720
2710
|
imageUploadsEnabled,
|
|
2721
|
-
inputFileAccept = "image/*"
|
|
2722
|
-
hideStopButton
|
|
2711
|
+
inputFileAccept = "image/*"
|
|
2723
2712
|
}) {
|
|
2724
2713
|
const { additionalInstructions, setChatInstructions } = (0, import_react_core10.useCopilotContext)();
|
|
2725
2714
|
const [selectedImages, setSelectedImages] = (0, import_react13.useState)([]);
|
|
@@ -2902,8 +2891,7 @@ function CopilotChat({
|
|
|
2902
2891
|
onUpload: imageUploadsEnabled ? () => {
|
|
2903
2892
|
var _a;
|
|
2904
2893
|
return (_a = fileInputRef.current) == null ? void 0 : _a.click();
|
|
2905
|
-
} : void 0
|
|
2906
|
-
hideStopButton
|
|
2894
|
+
} : void 0
|
|
2907
2895
|
}
|
|
2908
2896
|
)
|
|
2909
2897
|
] });
|