@copilotkit/react-ui 1.5.18 → 1.5.19-next.1

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.
Files changed (38) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/{chunk-LTVGARDO.mjs → chunk-525VKRDO.mjs} +2 -2
  3. package/dist/{chunk-EQD5OMET.mjs → chunk-652TZXBO.mjs} +2 -2
  4. package/dist/{chunk-IBPPZVL7.mjs → chunk-PO3UGUKD.mjs} +2 -2
  5. package/dist/{chunk-BS76QNZU.mjs → chunk-QRHVTE25.mjs} +3 -3
  6. package/dist/{chunk-EMQEEXUB.mjs → chunk-QXTRFMPM.mjs} +5 -2
  7. package/dist/chunk-QXTRFMPM.mjs.map +1 -0
  8. package/dist/components/chat/Chat.js +4 -1
  9. package/dist/components/chat/Chat.js.map +1 -1
  10. package/dist/components/chat/Chat.mjs +2 -2
  11. package/dist/components/chat/Input.js +4 -1
  12. package/dist/components/chat/Input.js.map +1 -1
  13. package/dist/components/chat/Input.mjs +1 -1
  14. package/dist/components/chat/Modal.js +4 -1
  15. package/dist/components/chat/Modal.js.map +1 -1
  16. package/dist/components/chat/Modal.mjs +3 -3
  17. package/dist/components/chat/Popup.js +4 -1
  18. package/dist/components/chat/Popup.js.map +1 -1
  19. package/dist/components/chat/Popup.mjs +4 -4
  20. package/dist/components/chat/Sidebar.js +4 -1
  21. package/dist/components/chat/Sidebar.js.map +1 -1
  22. package/dist/components/chat/Sidebar.mjs +4 -4
  23. package/dist/components/chat/index.js +4 -1
  24. package/dist/components/chat/index.js.map +1 -1
  25. package/dist/components/chat/index.mjs +5 -5
  26. package/dist/components/index.js +4 -1
  27. package/dist/components/index.js.map +1 -1
  28. package/dist/components/index.mjs +5 -5
  29. package/dist/index.js +4 -1
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.mjs +5 -5
  32. package/package.json +4 -4
  33. package/src/components/chat/Input.tsx +6 -1
  34. package/dist/chunk-EMQEEXUB.mjs.map +0 -1
  35. /package/dist/{chunk-LTVGARDO.mjs.map → chunk-525VKRDO.mjs.map} +0 -0
  36. /package/dist/{chunk-EQD5OMET.mjs.map → chunk-652TZXBO.mjs.map} +0 -0
  37. /package/dist/{chunk-IBPPZVL7.mjs.map → chunk-PO3UGUKD.mjs.map} +0 -0
  38. /package/dist/{chunk-BS76QNZU.mjs.map → chunk-QRHVTE25.mjs.map} +0 -0
@@ -2,18 +2,18 @@ import "../chunk-MMVDU6DF.mjs";
2
2
  import "../chunk-SQMEPWVT.mjs";
3
3
  import {
4
4
  CopilotSidebar
5
- } from "../chunk-EQD5OMET.mjs";
5
+ } from "../chunk-652TZXBO.mjs";
6
6
  import "../chunk-WB3YULQ4.mjs";
7
7
  import {
8
8
  CopilotPopup
9
- } from "../chunk-IBPPZVL7.mjs";
10
- import "../chunk-BS76QNZU.mjs";
9
+ } from "../chunk-PO3UGUKD.mjs";
10
+ import "../chunk-QRHVTE25.mjs";
11
11
  import "../chunk-YAGE7RCE.mjs";
12
12
  import "../chunk-VEC45H6Q.mjs";
13
13
  import "../chunk-RQNJNK2W.mjs";
14
14
  import {
15
15
  CopilotChat
16
- } from "../chunk-LTVGARDO.mjs";
16
+ } from "../chunk-525VKRDO.mjs";
17
17
  import "../chunk-UWWMAJ7R.mjs";
18
18
  import "../chunk-F7VWGY77.mjs";
19
19
  import "../chunk-OFYI4UU4.mjs";
@@ -36,7 +36,7 @@ import "../chunk-KXE2JCUH.mjs";
36
36
  import "../chunk-TI7SY2RI.mjs";
37
37
  import "../chunk-BH6PCAAL.mjs";
38
38
  import "../chunk-OTPAZXVR.mjs";
39
- import "../chunk-EMQEEXUB.mjs";
39
+ import "../chunk-QXTRFMPM.mjs";
40
40
  import "../chunk-YQFVRDNC.mjs";
41
41
  import {
42
42
  Markdown
package/dist/index.js CHANGED
@@ -901,7 +901,10 @@ var Input = ({ inProgress, onSend, isVisible = false }) => {
901
901
  const sendIcon = inProgress || pushToTalkState === "transcribing" ? context.icons.activityIcon : context.icons.sendIcon;
902
902
  const showPushToTalk = pushToTalkConfigured && (pushToTalkState === "idle" || pushToTalkState === "recording") && !inProgress;
903
903
  const canSend = () => {
904
- return !inProgress && text.trim().length > 0 && pushToTalkState === "idle";
904
+ var _a;
905
+ const interruptEvent = (_a = copilotContext.langGraphInterruptAction) == null ? void 0 : _a.event;
906
+ const interruptInProgress = (interruptEvent == null ? void 0 : interruptEvent.name) === "LangGraphInterruptEvent" && !(interruptEvent == null ? void 0 : interruptEvent.response);
907
+ return !inProgress && text.trim().length > 0 && pushToTalkState === "idle" && !interruptInProgress;
905
908
  };
906
909
  const sendDisabled = !canSend();
907
910
  return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "copilotKitInput", onClick: handleDivClick, children: [