@burtson-labs/bandit-engine 2.0.120 → 2.0.121

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-32R7DYFL.mjs";
3
+ } from "./chunk-26KZF54U.mjs";
4
4
  import "./chunk-ONQMRE2G.mjs";
5
5
  import "./chunk-W2EPDR5G.mjs";
6
6
  import "./chunk-BN3D45E2.mjs";
@@ -13,4 +13,4 @@ import "./chunk-BJTO5JO5.mjs";
13
13
  export {
14
14
  chat_default as default
15
15
  };
16
- //# sourceMappingURL=chat-QOF3GSGB.mjs.map
16
+ //# sourceMappingURL=chat-NF4FKMA4.mjs.map
@@ -95,7 +95,7 @@ import { Box, Avatar, useMediaQuery } from "@mui/material";
95
95
  import { useTheme } from "@mui/material/styles";
96
96
 
97
97
  // src/chat/chat.css
98
- styleInject(".typing-only {\n display: inline-flex;\n gap: 0.4rem;\n padding: 0;\n background: transparent;\n border-radius: 999px;\n box-shadow: none;\n}\n.typing-only .dot {\n width: 6px;\n height: 6px;\n background: #a78bfa;\n border-radius: 50%;\n animation: bounce 1.3s infinite ease-in-out;\n}\n.typing-only .dot:nth-child(2) {\n animation-delay: 0.2s;\n}\n.typing-only .dot:nth-child(3) {\n animation-delay: 0.4s;\n}\n@keyframes bounce {\n 0%, 80%, 100% {\n transform: translateY(0);\n opacity: 0.3;\n }\n 40% {\n transform: translateY(-6px);\n opacity: 1;\n }\n}\n@keyframes float {\n 0% {\n transform: translateY(0);\n }\n 50% {\n transform: translateY(-8px);\n }\n 100% {\n transform: translateY(0);\n }\n}\n.logo-animated {\n animation: pulseBandit 4s infinite ease-in-out;\n transition: transform 0.3s ease-in-out;\n}\n@keyframes pulseBandit {\n 0% {\n transform: scale(1) rotate(0deg);\n opacity: 0.85;\n }\n 50% {\n transform: scale(1.05) rotate(1deg);\n opacity: 1;\n }\n 100% {\n transform: scale(1) rotate(0deg);\n opacity: 0.85;\n }\n}\n.logo-container {\n transition: opacity 0.5s ease, transform 0.5s ease;\n}\n.fade-in {\n opacity: 1;\n transform: scale(1);\n}\n.fade-out {\n opacity: 0;\n transform: translateY(-16px) scale(0.95);\n}\n@keyframes fadeOut {\n to {\n opacity: 0;\n transform: translateY(-5px);\n visibility: hidden;\n }\n}\n");
98
+ styleInject(".typing-only {\n display: inline-flex;\n gap: 0.4rem;\n padding: 0;\n background: transparent;\n border-radius: 999px;\n box-shadow: none;\n}\n.typing-only .dot {\n width: 6px;\n height: 6px;\n background: #a78bfa;\n border-radius: 50%;\n animation: bounce 1.3s infinite ease-in-out;\n}\n.typing-only .dot:nth-child(2) {\n animation-delay: 0.2s;\n}\n.typing-only .dot:nth-child(3) {\n animation-delay: 0.4s;\n}\n@keyframes bounce {\n 0%, 80%, 100% {\n transform: translateY(0);\n opacity: 0.3;\n }\n 40% {\n transform: translateY(-6px);\n opacity: 1;\n }\n}\n.logo-container {\n transition: opacity 0.5s ease, transform 0.5s ease;\n}\n.fade-in {\n opacity: 1;\n transform: scale(1);\n}\n.fade-out {\n opacity: 0;\n transform: translateY(-16px) scale(0.95);\n}\n@keyframes fadeOut {\n to {\n opacity: 0;\n transform: translateY(-5px);\n visibility: hidden;\n }\n}\n");
99
99
 
100
100
  // src/chat/custom-logo.tsx
101
101
  import { Fragment, jsx } from "react/jsx-runtime";
@@ -140,7 +140,7 @@ var Logo = ({ visible, atTop = false }) => {
140
140
  component: "img",
141
141
  src: logoBase64,
142
142
  alt: "Custom Logo",
143
- className: `logo-container ${visible ? "fade-in" : "fade-out"} logo-animated`,
143
+ className: `logo-container ${visible ? "fade-in" : "fade-out"}`,
144
144
  sx: {
145
145
  width: isMobile ? "80vw" : "60vw",
146
146
  maxWidth: 600,
@@ -155,7 +155,7 @@ var Logo = ({ visible, atTop = false }) => {
155
155
  {
156
156
  src: logoBase64,
157
157
  variant: "circular",
158
- className: `logo-container ${visible ? "fade-in" : "fade-out"} logo-animated`,
158
+ className: `logo-container ${visible ? "fade-in" : "fade-out"}`,
159
159
  sx: {
160
160
  width: isMobile ? "50vw" : "400px",
161
161
  height: isMobile ? "50vw" : "400px",
@@ -10081,7 +10081,8 @@ var ChatContent = () => {
10081
10081
  if (brandingConfig) {
10082
10082
  setBranding({
10083
10083
  brandingText: brandingConfig.brandingText || "",
10084
- logoBase64: brandingConfig.logoBase64 ?? void 0
10084
+ logoBase64: brandingConfig.logoBase64 ?? void 0,
10085
+ headerMode: brandingConfig.headerMode || "logo"
10085
10086
  });
10086
10087
  if (brandingConfig.brandingText) {
10087
10088
  document.title = brandingConfig.brandingText;
@@ -10124,7 +10125,8 @@ var ChatContent = () => {
10124
10125
  debugLogger.info("Loading branding and theme from CDN config");
10125
10126
  setBranding({
10126
10127
  brandingText: cdnBranding.brandingText,
10127
- logoBase64: cdnBranding.logoBase64 ?? void 0
10128
+ logoBase64: cdnBranding.logoBase64 ?? void 0,
10129
+ headerMode: cdnBranding.headerMode || "logo"
10128
10130
  });
10129
10131
  if (cdnBranding.brandingText) {
10130
10132
  document.title = cdnBranding.brandingText;
@@ -10805,7 +10807,44 @@ var ChatContent = () => {
10805
10807
  pt: 2
10806
10808
  },
10807
10809
  children: [
10808
- logoShouldRender && !brandingLoading && (branding?.logoBase64 ? /* @__PURE__ */ jsx21(custom_logo_default, { visible: logoVisible, atTop: true }) : /* @__PURE__ */ jsx21(bandit_chat_logo_default, { visible: logoVisible, atTop: true })),
10810
+ logoShouldRender && !brandingLoading && (() => {
10811
+ const headerMode = branding?.headerMode ?? "logo";
10812
+ if (headerMode === "minimal") {
10813
+ return /* @__PURE__ */ jsx21(
10814
+ Box18,
10815
+ {
10816
+ sx: (theme) => ({
10817
+ textAlign: "center",
10818
+ mt: { xs: 6, md: 10 },
10819
+ mb: 2,
10820
+ px: 2,
10821
+ opacity: logoVisible ? 1 : 0,
10822
+ transition: "opacity 0.5s ease",
10823
+ color: theme.palette.text.primary
10824
+ }),
10825
+ children: /* @__PURE__ */ jsx21(Typography12, { sx: { fontWeight: 500, fontSize: { xs: "1.5rem", md: "1.9rem" }, lineHeight: 1.2 }, children: "What can I help with?" })
10826
+ }
10827
+ );
10828
+ }
10829
+ if (headerMode === "text") {
10830
+ return /* @__PURE__ */ jsx21(
10831
+ Box18,
10832
+ {
10833
+ sx: (theme) => ({
10834
+ textAlign: "center",
10835
+ mt: { xs: 6, md: 10 },
10836
+ mb: 2,
10837
+ px: 2,
10838
+ opacity: logoVisible ? 1 : 0,
10839
+ transition: "opacity 0.5s ease",
10840
+ color: theme.palette.text.primary
10841
+ }),
10842
+ children: /* @__PURE__ */ jsx21(Typography12, { sx: { fontWeight: 600, fontSize: { xs: "1.6rem", md: "2.1rem" }, lineHeight: 1.2 }, children: branding?.brandingText?.trim() || "Bandit AI" })
10843
+ }
10844
+ );
10845
+ }
10846
+ return branding?.logoBase64 ? /* @__PURE__ */ jsx21(custom_logo_default, { visible: logoVisible, atTop: true }) : /* @__PURE__ */ jsx21(bandit_chat_logo_default, { visible: logoVisible, atTop: true });
10847
+ })(),
10809
10848
  /* @__PURE__ */ jsx21(
10810
10849
  Box18,
10811
10850
  {
@@ -10963,4 +11002,4 @@ var chat_default = Chat;
10963
11002
  export {
10964
11003
  chat_default
10965
11004
  };
10966
- //# sourceMappingURL=chunk-32R7DYFL.mjs.map
11005
+ //# sourceMappingURL=chunk-26KZF54U.mjs.map