@copilotkit/react-ui 1.8.0-next.3 → 1.8.0-next.4
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 +9 -0
- package/dist/{chunk-KG6DW6R2.mjs → chunk-AIR3MXUU.mjs} +7 -7
- package/dist/{chunk-LKCAF2HG.mjs → chunk-CZUP2N4J.mjs} +2 -2
- package/dist/{chunk-GDJAAFIK.mjs → chunk-GIPO7UB2.mjs} +4 -4
- package/dist/{chunk-5GNYGURH.mjs → chunk-H24B7QWO.mjs} +5 -5
- package/dist/{chunk-2LRE4W6A.mjs → chunk-LYHZXHTJ.mjs} +3 -2
- package/dist/{chunk-2LRE4W6A.mjs.map → chunk-LYHZXHTJ.mjs.map} +1 -1
- package/dist/{chunk-QGK5GOSC.mjs → chunk-QQ4FBIGN.mjs} +7 -7
- package/dist/{chunk-LXCH2BIB.mjs → chunk-TFIQA2P5.mjs} +2 -2
- package/dist/components/chat/Chat.js +2 -1
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +4 -4
- package/dist/components/chat/Header.mjs +5 -5
- package/dist/components/chat/Input.js +2 -1
- package/dist/components/chat/Input.js.map +1 -1
- package/dist/components/chat/Input.mjs +1 -1
- package/dist/components/chat/Modal.js +2 -1
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +13 -13
- package/dist/components/chat/Popup.js +2 -1
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +14 -14
- package/dist/components/chat/Sidebar.js +2 -1
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +14 -14
- package/dist/components/chat/index.js +2 -1
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +15 -15
- package/dist/components/chat/messages/AssistantMessage.mjs +1 -1
- package/dist/components/crew/index.mjs +1 -1
- package/dist/components/dev-console/console.mjs +3 -3
- package/dist/components/dev-console/index.mjs +3 -3
- package/dist/components/index.js +2 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +24 -24
- package/dist/index.css +45 -41
- package/dist/index.css.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -24
- package/dist/types/css.d.ts +4 -9
- package/dist/types/css.js.map +1 -1
- package/package.json +4 -4
- package/src/components/chat/Input.tsx +6 -1
- package/src/css/button.css +1 -1
- package/src/css/colors.css +48 -23
- package/src/css/console.css +1 -1
- package/src/css/header.css +2 -2
- package/src/css/input.css +19 -10
- package/src/css/messages.css +2 -2
- package/src/css/suggestions.css +2 -2
- package/src/types/css.ts +4 -9
- /package/dist/{chunk-KG6DW6R2.mjs.map → chunk-AIR3MXUU.mjs.map} +0 -0
- /package/dist/{chunk-LKCAF2HG.mjs.map → chunk-CZUP2N4J.mjs.map} +0 -0
- /package/dist/{chunk-GDJAAFIK.mjs.map → chunk-GIPO7UB2.mjs.map} +0 -0
- /package/dist/{chunk-5GNYGURH.mjs.map → chunk-H24B7QWO.mjs.map} +0 -0
- /package/dist/{chunk-QGK5GOSC.mjs.map → chunk-QQ4FBIGN.mjs.map} +0 -0
- /package/dist/{chunk-LXCH2BIB.mjs.map → chunk-TFIQA2P5.mjs.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# ui
|
|
2
2
|
|
|
3
|
+
## 1.8.0-next.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d8e354b: - fix: re-align customization variable names and usage
|
|
8
|
+
- @copilotkit/react-core@1.8.0-next.4
|
|
9
|
+
- @copilotkit/runtime-client-gql@1.8.0-next.4
|
|
10
|
+
- @copilotkit/shared@1.8.0-next.4
|
|
11
|
+
|
|
3
12
|
## 1.8.0-next.3
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -3,28 +3,28 @@ import {
|
|
|
3
3
|
} from "./chunk-CGVOCLHN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
Header
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GIPO7UB2.mjs";
|
|
7
7
|
import {
|
|
8
8
|
Button
|
|
9
9
|
} from "./chunk-VC4NO5QZ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
CopilotChat
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-H24B7QWO.mjs";
|
|
13
13
|
import {
|
|
14
14
|
AssistantMessage
|
|
15
15
|
} from "./chunk-FBYETUFL.mjs";
|
|
16
16
|
import {
|
|
17
17
|
UserMessage
|
|
18
18
|
} from "./chunk-HEIDCT7I.mjs";
|
|
19
|
+
import {
|
|
20
|
+
ResponseButton
|
|
21
|
+
} from "./chunk-UZTZXMYS.mjs";
|
|
19
22
|
import {
|
|
20
23
|
Input
|
|
21
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-LYHZXHTJ.mjs";
|
|
22
25
|
import {
|
|
23
26
|
Messages
|
|
24
27
|
} from "./chunk-GJME6MK4.mjs";
|
|
25
|
-
import {
|
|
26
|
-
ResponseButton
|
|
27
|
-
} from "./chunk-UZTZXMYS.mjs";
|
|
28
28
|
import {
|
|
29
29
|
ChatContextProvider
|
|
30
30
|
} from "./chunk-5JY5QJ2W.mjs";
|
|
@@ -102,4 +102,4 @@ var CopilotModal = ({
|
|
|
102
102
|
export {
|
|
103
103
|
CopilotModal
|
|
104
104
|
};
|
|
105
|
-
//# sourceMappingURL=chunk-
|
|
105
|
+
//# sourceMappingURL=chunk-AIR3MXUU.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AIR3MXUU.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__spreadProps,
|
|
6
6
|
__spreadValues
|
|
@@ -27,4 +27,4 @@ function CopilotSidebar(props) {
|
|
|
27
27
|
export {
|
|
28
28
|
CopilotSidebar
|
|
29
29
|
};
|
|
30
|
-
//# sourceMappingURL=chunk-
|
|
30
|
+
//# sourceMappingURL=chunk-CZUP2N4J.mjs.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CopilotDevConsole
|
|
3
|
-
} from "./chunk-QGK5GOSC.mjs";
|
|
4
1
|
import {
|
|
5
2
|
useChatContext
|
|
6
3
|
} from "./chunk-5JY5QJ2W.mjs";
|
|
4
|
+
import {
|
|
5
|
+
CopilotDevConsole
|
|
6
|
+
} from "./chunk-QQ4FBIGN.mjs";
|
|
7
7
|
|
|
8
8
|
// src/components/chat/Header.tsx
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -21,4 +21,4 @@ var Header = ({}) => {
|
|
|
21
21
|
export {
|
|
22
22
|
Header
|
|
23
23
|
};
|
|
24
|
-
//# sourceMappingURL=chunk-
|
|
24
|
+
//# sourceMappingURL=chunk-GIPO7UB2.mjs.map
|
|
@@ -16,19 +16,19 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
UserMessage
|
|
18
18
|
} from "./chunk-HEIDCT7I.mjs";
|
|
19
|
+
import {
|
|
20
|
+
ResponseButton
|
|
21
|
+
} from "./chunk-UZTZXMYS.mjs";
|
|
19
22
|
import {
|
|
20
23
|
Suggestion,
|
|
21
24
|
reloadSuggestions
|
|
22
25
|
} from "./chunk-TOQ7P4DO.mjs";
|
|
23
26
|
import {
|
|
24
27
|
Input
|
|
25
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-LYHZXHTJ.mjs";
|
|
26
29
|
import {
|
|
27
30
|
Messages
|
|
28
31
|
} from "./chunk-GJME6MK4.mjs";
|
|
29
|
-
import {
|
|
30
|
-
ResponseButton
|
|
31
|
-
} from "./chunk-UZTZXMYS.mjs";
|
|
32
32
|
import {
|
|
33
33
|
ChatContext,
|
|
34
34
|
ChatContextProvider
|
|
@@ -332,4 +332,4 @@ export {
|
|
|
332
332
|
WrappedCopilotChat,
|
|
333
333
|
useCopilotChatLogic
|
|
334
334
|
};
|
|
335
|
-
//# sourceMappingURL=chunk-
|
|
335
|
+
//# sourceMappingURL=chunk-H24B7QWO.mjs.map
|
|
@@ -78,7 +78,7 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop }) => {
|
|
|
78
78
|
"button",
|
|
79
79
|
{
|
|
80
80
|
onClick: () => setPushToTalkState(pushToTalkState === "idle" ? "recording" : "transcribing"),
|
|
81
|
-
className: pushToTalkState === "recording" ? "copilotKitPushToTalkRecording" : "",
|
|
81
|
+
className: pushToTalkState === "recording" ? "copilotKitInputControlButton copilotKitPushToTalkRecording" : "copilotKitInputControlButton",
|
|
82
82
|
children: context.icons.pushToTalkIcon
|
|
83
83
|
}
|
|
84
84
|
),
|
|
@@ -89,6 +89,7 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop }) => {
|
|
|
89
89
|
onClick: isInProgress ? onStop : send,
|
|
90
90
|
"data-copilotkit-in-progress": inProgress,
|
|
91
91
|
"data-test-id": inProgress ? "copilot-chat-request-in-progress" : "copilot-chat-ready",
|
|
92
|
+
className: "copilotKitInputControlButton",
|
|
92
93
|
children: buttonIcon
|
|
93
94
|
}
|
|
94
95
|
)
|
|
@@ -99,4 +100,4 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop }) => {
|
|
|
99
100
|
export {
|
|
100
101
|
Input
|
|
101
102
|
};
|
|
102
|
-
//# sourceMappingURL=chunk-
|
|
103
|
+
//# sourceMappingURL=chunk-LYHZXHTJ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/chat/Input.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\";\nimport { InputProps } from \"./props\";\nimport { useChatContext } from \"./ChatContext\";\nimport AutoResizingTextarea from \"./Textarea\";\nimport { usePushToTalk } from \"../../hooks/use-push-to-talk\";\nimport { useCopilotContext } from \"@copilotkit/react-core\";\n\nexport const Input = ({ inProgress, onSend, isVisible = false, onStop }: InputProps) => {\n const context = useChatContext();\n const copilotContext = useCopilotContext();\n\n const pushToTalkConfigured =\n copilotContext.copilotApiConfig.textToSpeechUrl !== undefined &&\n copilotContext.copilotApiConfig.transcribeAudioUrl !== undefined;\n\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n\n const handleDivClick = (event: React.MouseEvent<HTMLDivElement>) => {\n // Check if the clicked element is not the textarea itself\n if (event.target !== event.currentTarget) return;\n\n textareaRef.current?.focus();\n };\n\n const [text, setText] = useState(\"\");\n const send = () => {\n if (inProgress) return;\n onSend(text);\n setText(\"\");\n\n textareaRef.current?.focus();\n };\n\n useEffect(() => {\n if (isVisible) {\n textareaRef.current?.focus();\n }\n }, [isVisible]);\n\n const { pushToTalkState, setPushToTalkState } = usePushToTalk({\n sendFunction: onSend,\n inProgress,\n });\n\n const isInProgress = inProgress || pushToTalkState === \"transcribing\";\n const buttonIcon = isInProgress ? context.icons.stopIcon : context.icons.sendIcon;\n const showPushToTalk =\n pushToTalkConfigured &&\n (pushToTalkState === \"idle\" || pushToTalkState === \"recording\") &&\n !inProgress;\n\n const canSend = () => {\n const interruptEvent = copilotContext.langGraphInterruptAction?.event;\n const interruptInProgress =\n interruptEvent?.name === \"LangGraphInterruptEvent\" && !interruptEvent?.response;\n\n return (\n (isInProgress || (!isInProgress && text.trim().length > 0)) &&\n pushToTalkState === \"idle\" &&\n !interruptInProgress\n );\n };\n\n const sendDisabled = !canSend();\n\n return (\n <div className=\"copilotKitInputContainer\">\n <div className=\"copilotKitInput\" onClick={handleDivClick}>\n <AutoResizingTextarea\n ref={textareaRef}\n placeholder={context.labels.placeholder}\n autoFocus={true}\n maxRows={5}\n value={text}\n onChange={(event) => setText(event.target.value)}\n onKeyDown={(event) => {\n if (event.key === \"Enter\" && !event.shiftKey) {\n event.preventDefault();\n if (canSend()) {\n send();\n }\n }\n }}\n />\n <div className=\"copilotKitInputControls\">\n <div style={{ flexGrow: 1 }} />\n {showPushToTalk && (\n <button\n onClick={() =>\n setPushToTalkState(pushToTalkState === \"idle\" ? \"recording\" : \"transcribing\")\n }\n className={pushToTalkState === \"recording\"
|
|
1
|
+
{"version":3,"sources":["../src/components/chat/Input.tsx"],"sourcesContent":["import React, { useEffect, useRef, useState } from \"react\";\nimport { InputProps } from \"./props\";\nimport { useChatContext } from \"./ChatContext\";\nimport AutoResizingTextarea from \"./Textarea\";\nimport { usePushToTalk } from \"../../hooks/use-push-to-talk\";\nimport { useCopilotContext } from \"@copilotkit/react-core\";\n\nexport const Input = ({ inProgress, onSend, isVisible = false, onStop }: InputProps) => {\n const context = useChatContext();\n const copilotContext = useCopilotContext();\n\n const pushToTalkConfigured =\n copilotContext.copilotApiConfig.textToSpeechUrl !== undefined &&\n copilotContext.copilotApiConfig.transcribeAudioUrl !== undefined;\n\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n\n const handleDivClick = (event: React.MouseEvent<HTMLDivElement>) => {\n // Check if the clicked element is not the textarea itself\n if (event.target !== event.currentTarget) return;\n\n textareaRef.current?.focus();\n };\n\n const [text, setText] = useState(\"\");\n const send = () => {\n if (inProgress) return;\n onSend(text);\n setText(\"\");\n\n textareaRef.current?.focus();\n };\n\n useEffect(() => {\n if (isVisible) {\n textareaRef.current?.focus();\n }\n }, [isVisible]);\n\n const { pushToTalkState, setPushToTalkState } = usePushToTalk({\n sendFunction: onSend,\n inProgress,\n });\n\n const isInProgress = inProgress || pushToTalkState === \"transcribing\";\n const buttonIcon = isInProgress ? context.icons.stopIcon : context.icons.sendIcon;\n const showPushToTalk =\n pushToTalkConfigured &&\n (pushToTalkState === \"idle\" || pushToTalkState === \"recording\") &&\n !inProgress;\n\n const canSend = () => {\n const interruptEvent = copilotContext.langGraphInterruptAction?.event;\n const interruptInProgress =\n interruptEvent?.name === \"LangGraphInterruptEvent\" && !interruptEvent?.response;\n\n return (\n (isInProgress || (!isInProgress && text.trim().length > 0)) &&\n pushToTalkState === \"idle\" &&\n !interruptInProgress\n );\n };\n\n const sendDisabled = !canSend();\n\n return (\n <div className=\"copilotKitInputContainer\">\n <div className=\"copilotKitInput\" onClick={handleDivClick}>\n <AutoResizingTextarea\n ref={textareaRef}\n placeholder={context.labels.placeholder}\n autoFocus={true}\n maxRows={5}\n value={text}\n onChange={(event) => setText(event.target.value)}\n onKeyDown={(event) => {\n if (event.key === \"Enter\" && !event.shiftKey) {\n event.preventDefault();\n if (canSend()) {\n send();\n }\n }\n }}\n />\n <div className=\"copilotKitInputControls\">\n <div style={{ flexGrow: 1 }} />\n {showPushToTalk && (\n <button\n onClick={() =>\n setPushToTalkState(pushToTalkState === \"idle\" ? \"recording\" : \"transcribing\")\n }\n className={\n pushToTalkState === \"recording\"\n ? \"copilotKitInputControlButton copilotKitPushToTalkRecording\"\n : \"copilotKitInputControlButton\"\n }\n >\n {context.icons.pushToTalkIcon}\n </button>\n )}\n <button\n disabled={sendDisabled}\n onClick={isInProgress ? onStop : send}\n data-copilotkit-in-progress={inProgress}\n data-test-id={inProgress ? \"copilot-chat-request-in-progress\" : \"copilot-chat-ready\"}\n className=\"copilotKitInputControlButton\"\n >\n {buttonIcon}\n </button>\n </div>\n </div>\n </div>\n );\n};\n"],"mappings":";;;;;;;;;;;AAAA,SAAgB,WAAW,QAAQ,gBAAgB;AAKnD,SAAS,yBAAyB;AA+D1B,cAgBA,YAhBA;AA7DD,IAAM,QAAQ,CAAC,EAAE,YAAY,QAAQ,YAAY,OAAO,OAAO,MAAkB;AACtF,QAAM,UAAU,eAAe;AAC/B,QAAM,iBAAiB,kBAAkB;AAEzC,QAAM,uBACJ,eAAe,iBAAiB,oBAAoB,UACpD,eAAe,iBAAiB,uBAAuB;AAEzD,QAAM,cAAc,OAA4B,IAAI;AAEpD,QAAM,iBAAiB,CAAC,UAA4C;AAjBtE;AAmBI,QAAI,MAAM,WAAW,MAAM;AAAe;AAE1C,sBAAY,YAAZ,mBAAqB;AAAA,EACvB;AAEA,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,EAAE;AACnC,QAAM,OAAO,MAAM;AAzBrB;AA0BI,QAAI;AAAY;AAChB,WAAO,IAAI;AACX,YAAQ,EAAE;AAEV,sBAAY,YAAZ,mBAAqB;AAAA,EACvB;AAEA,YAAU,MAAM;AAjClB;AAkCI,QAAI,WAAW;AACb,wBAAY,YAAZ,mBAAqB;AAAA,IACvB;AAAA,EACF,GAAG,CAAC,SAAS,CAAC;AAEd,QAAM,EAAE,iBAAiB,mBAAmB,IAAI,cAAc;AAAA,IAC5D,cAAc;AAAA,IACd;AAAA,EACF,CAAC;AAED,QAAM,eAAe,cAAc,oBAAoB;AACvD,QAAM,aAAa,eAAe,QAAQ,MAAM,WAAW,QAAQ,MAAM;AACzE,QAAM,iBACJ,yBACC,oBAAoB,UAAU,oBAAoB,gBACnD,CAAC;AAEH,QAAM,UAAU,MAAM;AAnDxB;AAoDI,UAAM,kBAAiB,oBAAe,6BAAf,mBAAyC;AAChE,UAAM,uBACJ,iDAAgB,UAAS,6BAA6B,EAAC,iDAAgB;AAEzE,YACG,gBAAiB,CAAC,gBAAgB,KAAK,KAAK,EAAE,SAAS,MACxD,oBAAoB,UACpB,CAAC;AAAA,EAEL;AAEA,QAAM,eAAe,CAAC,QAAQ;AAE9B,SACE,oBAAC,SAAI,WAAU,4BACb,+BAAC,SAAI,WAAU,mBAAkB,SAAS,gBACxC;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,KAAK;AAAA,QACL,aAAa,QAAQ,OAAO;AAAA,QAC5B,WAAW;AAAA,QACX,SAAS;AAAA,QACT,OAAO;AAAA,QACP,UAAU,CAAC,UAAU,QAAQ,MAAM,OAAO,KAAK;AAAA,QAC/C,WAAW,CAAC,UAAU;AACpB,cAAI,MAAM,QAAQ,WAAW,CAAC,MAAM,UAAU;AAC5C,kBAAM,eAAe;AACrB,gBAAI,QAAQ,GAAG;AACb,mBAAK;AAAA,YACP;AAAA,UACF;AAAA,QACF;AAAA;AAAA,IACF;AAAA,IACA,qBAAC,SAAI,WAAU,2BACb;AAAA,0BAAC,SAAI,OAAO,EAAE,UAAU,EAAE,GAAG;AAAA,MAC5B,kBACC;AAAA,QAAC;AAAA;AAAA,UACC,SAAS,MACP,mBAAmB,oBAAoB,SAAS,cAAc,cAAc;AAAA,UAE9E,WACE,oBAAoB,cAChB,+DACA;AAAA,UAGL,kBAAQ,MAAM;AAAA;AAAA,MACjB;AAAA,MAEF;AAAA,QAAC;AAAA;AAAA,UACC,UAAU;AAAA,UACV,SAAS,eAAe,SAAS;AAAA,UACjC,+BAA6B;AAAA,UAC7B,gBAAc,aAAa,qCAAqC;AAAA,UAChE,WAAU;AAAA,UAET;AAAA;AAAA,MACH;AAAA,OACF;AAAA,KACF,GACF;AAEJ;","names":[]}
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotKitHelpModal
|
|
3
3
|
} from "./chunk-YC4NBUGE.mjs";
|
|
4
|
-
import {
|
|
5
|
-
CheckIcon,
|
|
6
|
-
ChevronDownIcon,
|
|
7
|
-
ExclamationMarkIcon,
|
|
8
|
-
ExclamationMarkTriangleIcon
|
|
9
|
-
} from "./chunk-OTPAZXVR.mjs";
|
|
10
4
|
import {
|
|
11
5
|
getPublishedCopilotKitVersion,
|
|
12
6
|
logActions,
|
|
@@ -17,6 +11,12 @@ import {
|
|
|
17
11
|
import {
|
|
18
12
|
SmallSpinnerIcon
|
|
19
13
|
} from "./chunk-ORSMX3SE.mjs";
|
|
14
|
+
import {
|
|
15
|
+
CheckIcon,
|
|
16
|
+
ChevronDownIcon,
|
|
17
|
+
ExclamationMarkIcon,
|
|
18
|
+
ExclamationMarkTriangleIcon
|
|
19
|
+
} from "./chunk-OTPAZXVR.mjs";
|
|
20
20
|
|
|
21
21
|
// src/components/dev-console/console.tsx
|
|
22
22
|
import { useCopilotContext, useCopilotMessagesContext } from "@copilotkit/react-core";
|
|
@@ -201,4 +201,4 @@ export {
|
|
|
201
201
|
CopilotDevConsole,
|
|
202
202
|
DebugMenuButton
|
|
203
203
|
};
|
|
204
|
-
//# sourceMappingURL=chunk-
|
|
204
|
+
//# sourceMappingURL=chunk-QQ4FBIGN.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotModal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AIR3MXUU.mjs";
|
|
4
4
|
import {
|
|
5
5
|
__spreadProps,
|
|
6
6
|
__spreadValues
|
|
@@ -18,4 +18,4 @@ function CopilotPopup(props) {
|
|
|
18
18
|
export {
|
|
19
19
|
CopilotPopup
|
|
20
20
|
};
|
|
21
|
-
//# sourceMappingURL=chunk-
|
|
21
|
+
//# sourceMappingURL=chunk-TFIQA2P5.mjs.map
|
|
@@ -786,7 +786,7 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop }) => {
|
|
|
786
786
|
"button",
|
|
787
787
|
{
|
|
788
788
|
onClick: () => setPushToTalkState(pushToTalkState === "idle" ? "recording" : "transcribing"),
|
|
789
|
-
className: pushToTalkState === "recording" ? "copilotKitPushToTalkRecording" : "",
|
|
789
|
+
className: pushToTalkState === "recording" ? "copilotKitInputControlButton copilotKitPushToTalkRecording" : "copilotKitInputControlButton",
|
|
790
790
|
children: context.icons.pushToTalkIcon
|
|
791
791
|
}
|
|
792
792
|
),
|
|
@@ -797,6 +797,7 @@ var Input = ({ inProgress, onSend, isVisible = false, onStop }) => {
|
|
|
797
797
|
onClick: isInProgress ? onStop : send,
|
|
798
798
|
"data-copilotkit-in-progress": inProgress,
|
|
799
799
|
"data-test-id": inProgress ? "copilot-chat-request-in-progress" : "copilot-chat-ready",
|
|
800
|
+
className: "copilotKitInputControlButton",
|
|
800
801
|
children: buttonIcon
|
|
801
802
|
}
|
|
802
803
|
)
|