@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.js CHANGED
@@ -734,7 +734,7 @@ function Tip({ label, children }) {
734
734
  }
735
735
  function SidebarNav({ brand, groups = [], current: current2, onNavigate, footer, open = false, className = "", ...rest }) {
736
736
  return /* @__PURE__ */ jsxs9("nav", { className: ["fd-side", className].filter(Boolean).join(" "), "data-open": open ? "true" : "false", ...rest, children: [
737
- brand ? /* @__PURE__ */ jsx13("div", { style: { height: "var(--topbar-h)", display: "flex", alignItems: "center", padding: "0 18px", borderBottom: "1px solid var(--border)", flex: "none" }, children: brand }) : null,
737
+ brand ? /* @__PURE__ */ jsx13("div", { style: { minHeight: "var(--topbar-h)", display: "flex", alignItems: "center", padding: "10px 18px", borderBottom: "1px solid var(--border)", flex: "none" }, children: brand }) : null,
738
738
  /* @__PURE__ */ jsx13("div", { style: { flex: 1, overflow: "auto", padding: "4px 10px 18px" }, children: groups.map((g, gi) => /* @__PURE__ */ jsxs9("div", { children: [
739
739
  g.label ? /* @__PURE__ */ jsx13("div", { className: "fd-side-group", children: g.label }) : null,
740
740
  /* @__PURE__ */ jsx13("div", { className: "fd-stack", style: { gap: 2 }, children: g.items.map((it) => /* @__PURE__ */ jsxs9(
@@ -7656,8 +7656,11 @@ function useChatEngine(opts) {
7656
7656
  const serverCount = React33.useRef(0);
7657
7657
  const threadRef = React33.useRef(null);
7658
7658
  const mounted = React33.useRef(true);
7659
- React33.useEffect(() => () => {
7660
- mounted.current = false;
7659
+ React33.useEffect(() => {
7660
+ mounted.current = true;
7661
+ return () => {
7662
+ mounted.current = false;
7663
+ };
7661
7664
  }, []);
7662
7665
  const commit = (next) => {
7663
7666
  listRef.current = next;