@burtson-labs/bandit-engine 2.0.143 → 2.0.145

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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  chat_default
3
- } from "./chunk-EWAZFMA3.mjs";
3
+ } from "./chunk-RTHS72YX.mjs";
4
4
  import {
5
5
  chat_provider_default
6
6
  } from "./chunk-PU74BI6Y.mjs";
@@ -10,7 +10,7 @@ import {
10
10
  useGatewayHealth,
11
11
  useGatewayMemory,
12
12
  useGatewayModels
13
- } from "./chunk-KBRI54SC.mjs";
13
+ } from "./chunk-L3PSKQAU.mjs";
14
14
  import "./chunk-P5IJLX6I.mjs";
15
15
  import "./chunk-F7JXIW6T.mjs";
16
16
  import "./chunk-K2JGFKEB.mjs";
@@ -30269,6 +30269,13 @@ var init_chat2 = __esm({
30269
30269
  const [isMobile, setIsMobile] = (0, import_react63.useState)(false);
30270
30270
  const [drawerOpen, setDrawerOpen] = (0, import_react63.useState)(false);
30271
30271
  const [mobileConversationsOpen, setMobileConversationsOpen] = (0, import_react63.useState)(false);
30272
+ (0, import_react63.useEffect)(() => {
30273
+ if (typeof document === "undefined") return;
30274
+ const meta = document.querySelector('meta[name="theme-color"]');
30275
+ if (!meta) return;
30276
+ const surface = isMobile && mobileConversationsOpen ? banditTheme.palette.background.paper : banditTheme.palette.chat?.shell ?? "#121212";
30277
+ meta.setAttribute("content", surface);
30278
+ }, [isMobile, mobileConversationsOpen, banditTheme]);
30272
30279
  const { generateName } = useConversationNameGenerator();
30273
30280
  const { preferences } = usePreferencesStore();
30274
30281
  const { containerRef: chatContainerRef, targetRef: scrollTargetRef, scrollToBottom, getScrollState } = useAutoScroll({
@@ -31142,7 +31149,11 @@ var init_chat2 = __esm({
31142
31149
  boxShadow: isMobile && mobileConversationsOpen ? `0 12px 40px ${theme.palette.mode === "dark" ? "rgba(0,0,0,0.55)" : "rgba(0,0,0,0.25)"}` : "none",
31143
31150
  transition: "left 0.3s ease-in-out, width 0.3s ease-in-out, transform 0.3s ease-in-out, border-radius 0.3s ease-in-out"
31144
31151
  }),
31145
- onClick: isMobile && mobileConversationsOpen ? () => setMobileConversationsOpen(false) : void 0,
31152
+ onClick: isMobile && mobileConversationsOpen ? (e) => {
31153
+ if (e.currentTarget.contains(e.target)) {
31154
+ setMobileConversationsOpen(false);
31155
+ }
31156
+ } : void 0,
31146
31157
  children: [
31147
31158
  /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
31148
31159
  chat_app_bar_default,