@flytedan/flytebot-design-system 0.1.3 → 0.1.5
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 +6 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -915,7 +915,7 @@ function Tip({ label, children }) {
|
|
|
915
915
|
}
|
|
916
916
|
function SidebarNav({ brand, groups = [], current: current2, onNavigate, footer, open = false, className = "", ...rest }) {
|
|
917
917
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("nav", { className: ["fd-side", className].filter(Boolean).join(" "), "data-open": open ? "true" : "false", ...rest, children: [
|
|
918
|
-
brand ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: {
|
|
918
|
+
brand ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: { minHeight: "var(--topbar-h)", display: "flex", alignItems: "center", padding: "10px 18px", borderBottom: "1px solid var(--border)", flex: "none" }, children: brand }) : null,
|
|
919
919
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { style: { flex: 1, overflow: "auto", padding: "4px 10px 18px" }, children: groups.map((g, gi) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { children: [
|
|
920
920
|
g.label ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "fd-side-group", children: g.label }) : null,
|
|
921
921
|
/* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "fd-stack", style: { gap: 2 }, children: g.items.map((it) => /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
|
|
@@ -7837,8 +7837,11 @@ function useChatEngine(opts) {
|
|
|
7837
7837
|
const serverCount = React33.useRef(0);
|
|
7838
7838
|
const threadRef = React33.useRef(null);
|
|
7839
7839
|
const mounted = React33.useRef(true);
|
|
7840
|
-
React33.useEffect(() =>
|
|
7841
|
-
mounted.current =
|
|
7840
|
+
React33.useEffect(() => {
|
|
7841
|
+
mounted.current = true;
|
|
7842
|
+
return () => {
|
|
7843
|
+
mounted.current = false;
|
|
7844
|
+
};
|
|
7842
7845
|
}, []);
|
|
7843
7846
|
const commit = (next) => {
|
|
7844
7847
|
listRef.current = next;
|