@burtson-labs/bandit-engine 2.0.143 → 2.0.144

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-TQFUNLAT.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-ZZO2QCAD.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({