@optilogic/chat 1.0.0-beta.13 → 1.0.0-beta.15

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/index.cjs CHANGED
@@ -1248,7 +1248,7 @@ function AgentTimeline({ entries, renderMarkdown, uiState, maxHeight = "300px" }
1248
1248
  className: maxHeight !== "none" ? "overflow-y-auto" : "",
1249
1249
  style: scrollStyle,
1250
1250
  children: [
1251
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sticky top-0 z-10 bg-background flex items-center gap-1 py-1.5 mb-1 border-b border-border/50 flex-wrap", children: [
1251
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sticky top-0 z-10 bg-background flex items-center gap-1 py-1.5 mb-1 border-b border-border/50 flex-wrap pl-2", children: [
1252
1252
  TYPE_CONFIG.filter((tc) => availableTypes.has(tc.type)).map((tc) => {
1253
1253
  const isActive = activeFilters.has(tc.type);
1254
1254
  const count = entries.filter((e) => e.type === tc.type).length;
@@ -1406,7 +1406,7 @@ var AgentResponse = React11__namespace.forwardRef(
1406
1406
  elapsedTime
1407
1407
  }
1408
1408
  ),
1409
- hasTimelineEntries ? thinkingExpanded && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pl-3 pb-3 border-t border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
1409
+ hasTimelineEntries ? thinkingExpanded && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pb-3 border-t border-border", children: /* @__PURE__ */ jsxRuntime.jsx(
1410
1410
  AgentTimeline,
1411
1411
  {
1412
1412
  entries: state.timelineEntries,
@@ -1567,6 +1567,8 @@ var UserPromptInput = React11__namespace.forwardRef(
1567
1567
  disabled = false,
1568
1568
  isSubmitting = false,
1569
1569
  onStop,
1570
+ stopTooltip,
1571
+ stopClassName,
1570
1572
  disableWhileSubmitting = true,
1571
1573
  autoFocus = false,
1572
1574
  refocusAfterSubmit = false,
@@ -1693,16 +1695,17 @@ var UserPromptInput = React11__namespace.forwardRef(
1693
1695
  ) }),
1694
1696
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between pl-2 pr-1 pb-1 pt-1", children: [
1695
1697
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-1", children: renderActions?.() }),
1696
- isSubmitting && onStop ? /* @__PURE__ */ jsxRuntime.jsx(
1698
+ isSubmitting && onStop ? /* @__PURE__ */ jsxRuntime.jsx(core.Tooltip, { content: stopTooltip, disabled: !stopTooltip, children: /* @__PURE__ */ jsxRuntime.jsx(
1697
1699
  core.IconButton,
1698
1700
  {
1699
1701
  icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Square, {}),
1700
1702
  variant: "filled",
1701
1703
  size: "sm",
1702
- "aria-label": "Stop",
1703
- onClick: onStop
1704
+ "aria-label": stopTooltip || "Stop",
1705
+ onClick: onStop,
1706
+ className: stopClassName
1704
1707
  }
1705
- ) : /* @__PURE__ */ jsxRuntime.jsx(
1708
+ ) }) : /* @__PURE__ */ jsxRuntime.jsx(
1706
1709
  core.IconButton,
1707
1710
  {
1708
1711
  icon: isSubmitting ? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "animate-spin" }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Send, {}),