@tangle-network/agent-app 0.45.57 → 0.45.58

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.
@@ -2,7 +2,7 @@ import {
2
2
  ChatComposer,
3
3
  ChatEmptyState,
4
4
  ChatMessages
5
- } from "../chunk-5T5TSBM4.js";
5
+ } from "../chunk-UPXDBHEE.js";
6
6
  import "../chunk-FBVLEGEG.js";
7
7
  import "../chunk-ENLRJYVW.js";
8
8
  import "../chunk-GEYACSFW.js";
@@ -1421,6 +1421,9 @@ function SendGlyph({ className }) {
1421
1421
  function StopGlyph({ className }) {
1422
1422
  return /* @__PURE__ */ jsx7("svg", { className, viewBox: "0 0 24 24", fill: "currentColor", "aria-hidden": true, children: /* @__PURE__ */ jsx7("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2" }) });
1423
1423
  }
1424
+ function ArrowUpGlyph({ className }) {
1425
+ return /* @__PURE__ */ jsx7("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx7("path", { d: "M12 19V5M5 12l7-7 7 7" }) });
1426
+ }
1424
1427
  function PaperclipGlyph({ className }) {
1425
1428
  return /* @__PURE__ */ jsx7("svg", { className, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": true, children: /* @__PURE__ */ jsx7("path", { d: "m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" }) });
1426
1429
  }
@@ -1480,6 +1483,7 @@ function ChatComposer({
1480
1483
  focusShortcut = true,
1481
1484
  floating = false,
1482
1485
  sendLabel = "Send",
1486
+ sendVariant = "pill",
1483
1487
  className
1484
1488
  }) {
1485
1489
  const isControlled = value !== void 0;
@@ -1823,7 +1827,17 @@ function ChatComposer({
1823
1827
  children: showInline && controls
1824
1828
  }
1825
1829
  ),
1826
- isStreaming ? /* @__PURE__ */ jsxs5(
1830
+ isStreaming ? sendVariant === "icon" ? /* @__PURE__ */ jsx7(
1831
+ "button",
1832
+ {
1833
+ type: "button",
1834
+ onClick: onCancel,
1835
+ "aria-label": "Stop response",
1836
+ title: "Stop",
1837
+ className: "inline-flex h-[34px] w-[34px] shrink-0 items-center justify-center rounded-full border border-border bg-transparent text-foreground transition hover:bg-accent focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",
1838
+ children: /* @__PURE__ */ jsx7(StopGlyph, { className: "h-3 w-3" })
1839
+ }
1840
+ ) : /* @__PURE__ */ jsxs5(
1827
1841
  "button",
1828
1842
  {
1829
1843
  type: "button",
@@ -1835,6 +1849,17 @@ function ChatComposer({
1835
1849
  /* @__PURE__ */ jsx7("span", { children: "Stop" })
1836
1850
  ]
1837
1851
  }
1852
+ ) : sendVariant === "icon" ? /* @__PURE__ */ jsx7(
1853
+ "button",
1854
+ {
1855
+ type: "button",
1856
+ onClick: send,
1857
+ disabled: !canSend,
1858
+ "aria-label": sendLabel,
1859
+ title: sendLabel,
1860
+ className: "inline-flex h-[34px] w-[34px] shrink-0 items-center justify-center rounded-full bg-foreground text-background transition hover:opacity-90 disabled:cursor-not-allowed disabled:opacity-40 focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-card",
1861
+ children: /* @__PURE__ */ jsx7(ArrowUpGlyph, { className: "h-4 w-4" })
1862
+ }
1838
1863
  ) : /* @__PURE__ */ jsxs5(
1839
1864
  "button",
1840
1865
  {
@@ -6813,4 +6838,4 @@ export {
6813
6838
  useThinkingSeconds,
6814
6839
  ChatMessages
6815
6840
  };
6816
- //# sourceMappingURL=chunk-5T5TSBM4.js.map
6841
+ //# sourceMappingURL=chunk-UPXDBHEE.js.map