@agents24/chat-react 0.5.25 → 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.cjs CHANGED
@@ -963,7 +963,7 @@ function AgentChatComposer({
963
963
  textarea.style.height = "";
964
964
  textarea.style.overflowY = "hidden";
965
965
  }, [isExpanded, text]);
966
- const canSubmit = !disabled && !isSubmitting && (text.trim().length > 0 || files.length > 0);
966
+ const canSubmit = !disabled && !isCancelling && !isSubmitting && (text.trim().length > 0 || files.length > 0);
967
967
  const action = chatComposerAction({ hasDraft: text.trim().length > 0 || files.length > 0, isRunning, isCancelling });
968
968
  const handleFilesChange = (event) => {
969
969
  const selected = Array.from(event.target.files || []).map(createAgentChatComposerFile);
@@ -1015,7 +1015,7 @@ function AgentChatComposer({
1015
1015
  }
1016
1016
  };
1017
1017
  const handleKeyDown = (event) => {
1018
- if (event.key === "Enter" && !event.shiftKey) {
1018
+ if (event.key === "Enter" && !event.shiftKey && !event.nativeEvent.isComposing) {
1019
1019
  event.preventDefault();
1020
1020
  void submit();
1021
1021
  }
@@ -1174,7 +1174,7 @@ function QueueRow({ message, onRemove, onEdit }) {
1174
1174
  ),
1175
1175
  /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("details", { className: "a24-queue__menu relative group/queue-menu", children: [
1176
1176
  /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("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__ */ (0, import_jsx_runtime4.jsx)(import_lucide_react3.Ellipsis, { "aria-hidden": true, className: "size-4" }) }),
1177
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("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__ */ (0, import_jsx_runtime4.jsx)(
1177
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { className: "a24-queue__menu-content mt-1 min-w-28 rounded-md border bg-background p-1", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1178
1178
  "button",
1179
1179
  {
1180
1180
  type: "button",