@copilotkit/react-ui 1.5.18 → 1.5.19-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 +9 -0
- package/dist/{chunk-LTVGARDO.mjs → chunk-525VKRDO.mjs} +2 -2
- package/dist/{chunk-EQD5OMET.mjs → chunk-652TZXBO.mjs} +2 -2
- package/dist/{chunk-IBPPZVL7.mjs → chunk-PO3UGUKD.mjs} +2 -2
- package/dist/{chunk-BS76QNZU.mjs → chunk-QRHVTE25.mjs} +3 -3
- package/dist/{chunk-EMQEEXUB.mjs → chunk-QXTRFMPM.mjs} +5 -2
- package/dist/chunk-QXTRFMPM.mjs.map +1 -0
- package/dist/components/chat/Chat.js +4 -1
- package/dist/components/chat/Chat.js.map +1 -1
- package/dist/components/chat/Chat.mjs +2 -2
- package/dist/components/chat/Input.js +4 -1
- package/dist/components/chat/Input.js.map +1 -1
- package/dist/components/chat/Input.mjs +1 -1
- package/dist/components/chat/Modal.js +4 -1
- package/dist/components/chat/Modal.js.map +1 -1
- package/dist/components/chat/Modal.mjs +3 -3
- package/dist/components/chat/Popup.js +4 -1
- package/dist/components/chat/Popup.js.map +1 -1
- package/dist/components/chat/Popup.mjs +4 -4
- package/dist/components/chat/Sidebar.js +4 -1
- package/dist/components/chat/Sidebar.js.map +1 -1
- package/dist/components/chat/Sidebar.mjs +4 -4
- package/dist/components/chat/index.js +4 -1
- package/dist/components/chat/index.js.map +1 -1
- package/dist/components/chat/index.mjs +5 -5
- package/dist/components/index.js +4 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/index.mjs +5 -5
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/package.json +4 -4
- package/src/components/chat/Input.tsx +6 -1
- package/dist/chunk-EMQEEXUB.mjs.map +0 -1
- /package/dist/{chunk-LTVGARDO.mjs.map → chunk-525VKRDO.mjs.map} +0 -0
- /package/dist/{chunk-EQD5OMET.mjs.map → chunk-652TZXBO.mjs.map} +0 -0
- /package/dist/{chunk-IBPPZVL7.mjs.map → chunk-PO3UGUKD.mjs.map} +0 -0
- /package/dist/{chunk-BS76QNZU.mjs.map → chunk-QRHVTE25.mjs.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CopilotModal
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-QRHVTE25.mjs";
|
|
4
4
|
import "../../chunk-YAGE7RCE.mjs";
|
|
5
5
|
import "../../chunk-VEC45H6Q.mjs";
|
|
6
6
|
import "../../chunk-RQNJNK2W.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-525VKRDO.mjs";
|
|
8
8
|
import "../../chunk-UWWMAJ7R.mjs";
|
|
9
9
|
import "../../chunk-F7VWGY77.mjs";
|
|
10
10
|
import "../../chunk-OFYI4UU4.mjs";
|
|
@@ -19,7 +19,7 @@ import "../../chunk-KXE2JCUH.mjs";
|
|
|
19
19
|
import "../../chunk-TI7SY2RI.mjs";
|
|
20
20
|
import "../../chunk-BH6PCAAL.mjs";
|
|
21
21
|
import "../../chunk-OTPAZXVR.mjs";
|
|
22
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-QXTRFMPM.mjs";
|
|
23
23
|
import "../../chunk-YQFVRDNC.mjs";
|
|
24
24
|
import "../../chunk-YQ3D5IQV.mjs";
|
|
25
25
|
import "../../chunk-6FTRYYR5.mjs";
|
|
@@ -891,7 +891,10 @@ var Input = ({ inProgress, onSend, isVisible = false }) => {
|
|
|
891
891
|
const sendIcon = inProgress || pushToTalkState === "transcribing" ? context.icons.activityIcon : context.icons.sendIcon;
|
|
892
892
|
const showPushToTalk = pushToTalkConfigured && (pushToTalkState === "idle" || pushToTalkState === "recording") && !inProgress;
|
|
893
893
|
const canSend = () => {
|
|
894
|
-
|
|
894
|
+
var _a;
|
|
895
|
+
const interruptEvent = (_a = copilotContext.langGraphInterruptAction) == null ? void 0 : _a.event;
|
|
896
|
+
const interruptInProgress = (interruptEvent == null ? void 0 : interruptEvent.name) === "LangGraphInterruptEvent" && !(interruptEvent == null ? void 0 : interruptEvent.response);
|
|
897
|
+
return !inProgress && text.trim().length > 0 && pushToTalkState === "idle" && !interruptInProgress;
|
|
895
898
|
};
|
|
896
899
|
const sendDisabled = !canSend();
|
|
897
900
|
return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "copilotKitInput", onClick: handleDivClick, children: [
|