@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/{chat-OD4BF2XP.mjs → chat-ECNXBYSS.mjs} +2 -2
- package/dist/{chunk-KBRI54SC.mjs → chunk-L3PSKQAU.mjs} +2 -2
- package/dist/{chunk-EWAZFMA3.mjs → chunk-RTHS72YX.mjs} +13 -2
- package/dist/chunk-RTHS72YX.mjs.map +1 -0
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/management/management.js +12 -1
- package/dist/management/management.js.map +1 -1
- package/dist/management/management.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-EWAZFMA3.mjs.map +0 -1
- /package/dist/{chat-OD4BF2XP.mjs.map → chat-ECNXBYSS.mjs.map} +0 -0
- /package/dist/{chunk-KBRI54SC.mjs.map → chunk-L3PSKQAU.mjs.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -30659,6 +30659,13 @@ var init_chat2 = __esm({
|
|
|
30659
30659
|
const [isMobile, setIsMobile] = (0, import_react41.useState)(false);
|
|
30660
30660
|
const [drawerOpen, setDrawerOpen] = (0, import_react41.useState)(false);
|
|
30661
30661
|
const [mobileConversationsOpen, setMobileConversationsOpen] = (0, import_react41.useState)(false);
|
|
30662
|
+
(0, import_react41.useEffect)(() => {
|
|
30663
|
+
if (typeof document === "undefined") return;
|
|
30664
|
+
const meta = document.querySelector('meta[name="theme-color"]');
|
|
30665
|
+
if (!meta) return;
|
|
30666
|
+
const surface = isMobile && mobileConversationsOpen ? banditTheme.palette.background.paper : banditTheme.palette.chat?.shell ?? "#121212";
|
|
30667
|
+
meta.setAttribute("content", surface);
|
|
30668
|
+
}, [isMobile, mobileConversationsOpen, banditTheme]);
|
|
30662
30669
|
const { generateName } = useConversationNameGenerator();
|
|
30663
30670
|
const { preferences } = usePreferencesStore();
|
|
30664
30671
|
const { containerRef: chatContainerRef, targetRef: scrollTargetRef, scrollToBottom, getScrollState } = useAutoScroll({
|
|
@@ -31532,7 +31539,11 @@ var init_chat2 = __esm({
|
|
|
31532
31539
|
boxShadow: isMobile && mobileConversationsOpen ? `0 12px 40px ${theme.palette.mode === "dark" ? "rgba(0,0,0,0.55)" : "rgba(0,0,0,0.25)"}` : "none",
|
|
31533
31540
|
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"
|
|
31534
31541
|
}),
|
|
31535
|
-
onClick: isMobile && mobileConversationsOpen ? () =>
|
|
31542
|
+
onClick: isMobile && mobileConversationsOpen ? (e) => {
|
|
31543
|
+
if (e.currentTarget.contains(e.target)) {
|
|
31544
|
+
setMobileConversationsOpen(false);
|
|
31545
|
+
}
|
|
31546
|
+
} : void 0,
|
|
31536
31547
|
children: [
|
|
31537
31548
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
31538
31549
|
chat_app_bar_default,
|