@optilogic/chat 1.0.0-beta.14 → 1.0.0-beta.16
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 +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/user-prompt-input/UserPromptInput.tsx +13 -8
- package/src/components/user-prompt-input/types.ts +4 -0
package/dist/index.cjs
CHANGED
|
@@ -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, {}),
|