@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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  chat_default
3
- } from "./chunk-EWAZFMA3.mjs";
3
+ } from "./chunk-RTHS72YX.mjs";
4
4
  import "./chunk-ONQMRE2G.mjs";
5
5
  import "./chunk-P5IJLX6I.mjs";
6
6
  import "./chunk-K2JGFKEB.mjs";
@@ -13,4 +13,4 @@ import "./chunk-BJTO5JO5.mjs";
13
13
  export {
14
14
  chat_default as default
15
15
  };
16
- //# sourceMappingURL=chat-OD4BF2XP.mjs.map
16
+ //# sourceMappingURL=chat-ECNXBYSS.mjs.map
@@ -9811,7 +9811,7 @@ var MCPToolsTabV2_default = MCPToolsTabV2;
9811
9811
 
9812
9812
  // src/management/management.tsx
9813
9813
  import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
9814
- var preloadChatPage = () => import("./chat-OD4BF2XP.mjs");
9814
+ var preloadChatPage = () => import("./chat-ECNXBYSS.mjs");
9815
9815
  var buildCapabilitiesUrl = (gatewayApiUrl) => {
9816
9816
  const trimmed = gatewayApiUrl.replace(/\/$/, "");
9817
9817
  if (trimmed.endsWith("/api")) {
@@ -11184,4 +11184,4 @@ export {
11184
11184
  useGatewayMemory,
11185
11185
  management_default
11186
11186
  };
11187
- //# sourceMappingURL=chunk-KBRI54SC.mjs.map
11187
+ //# sourceMappingURL=chunk-L3PSKQAU.mjs.map
@@ -10271,6 +10271,13 @@ var ChatContent = () => {
10271
10271
  const [isMobile, setIsMobile] = useState19(false);
10272
10272
  const [drawerOpen, setDrawerOpen] = useState19(false);
10273
10273
  const [mobileConversationsOpen, setMobileConversationsOpen] = useState19(false);
10274
+ useEffect17(() => {
10275
+ if (typeof document === "undefined") return;
10276
+ const meta = document.querySelector('meta[name="theme-color"]');
10277
+ if (!meta) return;
10278
+ const surface = isMobile && mobileConversationsOpen ? banditTheme.palette.background.paper : banditTheme.palette.chat?.shell ?? "#121212";
10279
+ meta.setAttribute("content", surface);
10280
+ }, [isMobile, mobileConversationsOpen, banditTheme]);
10274
10281
  const { generateName } = useConversationNameGenerator();
10275
10282
  const { preferences } = usePreferencesStore();
10276
10283
  const { containerRef: chatContainerRef, targetRef: scrollTargetRef, scrollToBottom, getScrollState } = useAutoScroll({
@@ -11144,7 +11151,11 @@ var ChatContent = () => {
11144
11151
  boxShadow: isMobile && mobileConversationsOpen ? `0 12px 40px ${theme.palette.mode === "dark" ? "rgba(0,0,0,0.55)" : "rgba(0,0,0,0.25)"}` : "none",
11145
11152
  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"
11146
11153
  }),
11147
- onClick: isMobile && mobileConversationsOpen ? () => setMobileConversationsOpen(false) : void 0,
11154
+ onClick: isMobile && mobileConversationsOpen ? (e) => {
11155
+ if (e.currentTarget.contains(e.target)) {
11156
+ setMobileConversationsOpen(false);
11157
+ }
11158
+ } : void 0,
11148
11159
  children: [
11149
11160
  /* @__PURE__ */ jsx23(
11150
11161
  chat_app_bar_default,
@@ -11458,4 +11469,4 @@ var chat_default = Chat;
11458
11469
  export {
11459
11470
  chat_default
11460
11471
  };
11461
- //# sourceMappingURL=chunk-EWAZFMA3.mjs.map
11472
+ //# sourceMappingURL=chunk-RTHS72YX.mjs.map