@agents24/chat-react 0.5.24 → 0.5.26

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/ui/index.js CHANGED
@@ -857,7 +857,7 @@ function AgentChatComposer({
857
857
  textarea.style.height = "";
858
858
  textarea.style.overflowY = "hidden";
859
859
  }, [isExpanded, text]);
860
- const canSubmit = !disabled && !isSubmitting && (text.trim().length > 0 || files.length > 0);
860
+ const canSubmit = !disabled && !isCancelling && !isSubmitting && (text.trim().length > 0 || files.length > 0);
861
861
  const action = chatComposerAction({ hasDraft: text.trim().length > 0 || files.length > 0, isRunning, isCancelling });
862
862
  const handleFilesChange = (event) => {
863
863
  const selected = Array.from(event.target.files || []).map(createAgentChatComposerFile);
@@ -909,7 +909,7 @@ function AgentChatComposer({
909
909
  }
910
910
  };
911
911
  const handleKeyDown = (event) => {
912
- if (event.key === "Enter" && !event.shiftKey) {
912
+ if (event.key === "Enter" && !event.shiftKey && !event.nativeEvent.isComposing) {
913
913
  event.preventDefault();
914
914
  void submit();
915
915
  }
@@ -1068,7 +1068,7 @@ function QueueRow({ message, onRemove, onEdit }) {
1068
1068
  ),
1069
1069
  /* @__PURE__ */ jsxs2("details", { className: "a24-queue__menu relative group/queue-menu", children: [
1070
1070
  /* @__PURE__ */ jsx4("summary", { "aria-label": "Queued message options", className: "a24-queue__icon flex size-8 cursor-pointer list-none items-center justify-center text-muted-foreground hover:text-foreground [&::-webkit-details-marker]:hidden", children: /* @__PURE__ */ jsx4(Ellipsis, { "aria-hidden": true, className: "size-4" }) }),
1071
- /* @__PURE__ */ jsx4("div", { className: "a24-queue__menu-content absolute bottom-full right-0 z-30 mb-1 min-w-28 rounded-md border bg-background p-1 shadow-md", children: /* @__PURE__ */ jsx4(
1071
+ /* @__PURE__ */ jsx4("div", { className: "a24-queue__menu-content mt-1 min-w-28 rounded-md border bg-background p-1", children: /* @__PURE__ */ jsx4(
1072
1072
  "button",
1073
1073
  {
1074
1074
  type: "button",