@agents24/chat-react 0.5.25 → 0.5.27
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/scaffold/index.cjs +1 -1
- package/dist/scaffold/index.cjs.map +1 -1
- package/dist/scaffold/index.js +1 -1
- package/dist/scaffold/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/ui/index.cjs +3 -3
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.js +3 -3
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
- package/scaffold/src/components/chat/chat-composer.tsx +1 -1
package/dist/styles.css
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
.a24-queue__menu { position: relative; }
|
|
62
62
|
.a24-queue__menu summary { list-style: none; cursor: pointer; }
|
|
63
63
|
.a24-queue__menu summary::-webkit-details-marker { display: none; }
|
|
64
|
-
.a24-queue__menu-content { position:
|
|
64
|
+
.a24-queue__menu-content { position: static; min-width: 7rem; margin-top: .25rem; padding: .25rem; border: 1px solid var(--a24-border); border-radius: .375rem; background: var(--a24-background); }
|
|
65
65
|
.a24-queue__menu-content button { width: 100%; padding: .25rem .5rem; border: 0; border-radius: .25rem; background: transparent; color: var(--a24-text); text-align: left; cursor: pointer; }
|
|
66
66
|
.a24-queue__menu-content button:hover { background: var(--a24-surface); }
|
|
67
67
|
|
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
|
|
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",
|