@burtson-labs/bandit-engine 2.0.92 → 2.0.94

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-JJNPBLJ7.mjs";
3
+ } from "./chunk-JOY64M5C.mjs";
4
4
  import {
5
5
  chat_provider_default
6
6
  } from "./chunk-OSSZ7Z2O.mjs";
@@ -10,7 +10,7 @@ import {
10
10
  useGatewayHealth,
11
11
  useGatewayMemory,
12
12
  useGatewayModels
13
- } from "./chunk-AS6WS4H2.mjs";
13
+ } from "./chunk-XEFBF6IM.mjs";
14
14
  import "./chunk-RUMVTVNM.mjs";
15
15
  import "./chunk-ZLXWNTFK.mjs";
16
16
  import "./chunk-L2EKYO4F.mjs";
@@ -20404,13 +20404,13 @@ var init_source_chips = __esm({
20404
20404
  href: source.url,
20405
20405
  target: "_blank",
20406
20406
  rel: "noopener noreferrer",
20407
- className: "source-chip",
20408
20407
  sx: {
20409
20408
  display: "inline-flex",
20410
20409
  alignItems: "center",
20411
20410
  flexShrink: 0,
20411
+ gap: 0.5,
20412
20412
  height: 26,
20413
- px: 0.4,
20413
+ px: 0.75,
20414
20414
  borderRadius: 999,
20415
20415
  border: "1px solid",
20416
20416
  borderColor: "divider",
@@ -20454,9 +20454,8 @@ var init_source_chips = __esm({
20454
20454
  /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
20455
20455
  import_material35.Box,
20456
20456
  {
20457
- className: "chip-label",
20458
20457
  component: "span",
20459
- sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
20458
+ sx: { maxWidth: 150, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
20460
20459
  children: label
20461
20460
  }
20462
20461
  )
@@ -20485,37 +20484,7 @@ var init_source_chips = __esm({
20485
20484
  children: "Sources"
20486
20485
  }
20487
20486
  ),
20488
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
20489
- import_material35.Box,
20490
- {
20491
- sx: {
20492
- display: "flex",
20493
- alignItems: "center",
20494
- flexWrap: "wrap",
20495
- rowGap: 0.5,
20496
- // Touch / no-hover devices: chips stay expanded (no hover to reveal).
20497
- "& .source-chip": { ml: "4px" },
20498
- "& .source-chip:first-of-type": { ml: 0 },
20499
- "& .chip-label": { maxWidth: 200, opacity: 1, ml: 0.6 },
20500
- // Hover-capable devices: collapse into an overlapping favicon stack
20501
- // that spreads out and reveals titles when the rail is hovered.
20502
- "@media (hover: hover)": {
20503
- "& .source-chip": { ml: "-10px", transition: "margin-left 0.22s ease" },
20504
- "& .source-chip:first-of-type": { ml: 0 },
20505
- "& .chip-label": {
20506
- maxWidth: 0,
20507
- opacity: 0,
20508
- ml: 0,
20509
- transition: "max-width 0.28s ease, opacity 0.18s ease, margin-left 0.2s ease"
20510
- },
20511
- "&:hover .source-chip": { ml: "6px" },
20512
- "&:hover .source-chip:first-of-type": { ml: 0 },
20513
- "&:hover .chip-label": { maxWidth: 200, opacity: 1, ml: 0.6 }
20514
- }
20515
- },
20516
- children: sources.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SourceChip, { source: s }, `${s.url}-${i}`))
20517
- }
20518
- )
20487
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_material35.Box, { sx: { display: "flex", flexWrap: "wrap", alignItems: "center", gap: 0.75 }, children: sources.map((s, i) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SourceChip, { source: s }, `${s.url}-${i}`)) })
20519
20488
  ] });
20520
20489
  };
20521
20490
  source_chips_default = SourceChips;
@@ -37234,8 +37203,8 @@ var BrandingTab = ({
37234
37203
  }
37235
37204
  }
37236
37205
  ),
37237
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material22.Typography, { variant: "body2", color: logoBase64 ? "success.main" : "info.main", sx: { fontWeight: 600, fontSize: "0.85rem" }, children: logoBase64 ? "\u2713 Custom Logo" : "Default Logo" }),
37238
- !logoBase64 && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material22.Typography, { variant: "caption", color: "text.secondary", sx: { fontSize: "0.75rem", textAlign: "center" }, children: "\u{1F3AF} Click to upload & crop your logo" })
37206
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material22.Typography, { variant: "body2", color: logoBase64 ? "success.main" : "info.main", sx: { fontWeight: 600, fontSize: "0.85rem" }, children: logoBase64 ? "Custom Logo" : "Default Logo" }),
37207
+ !logoBase64 && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material22.Typography, { variant: "caption", color: "text.secondary", sx: { fontSize: "0.75rem", textAlign: "center" }, children: "Click to upload & crop your logo" })
37239
37208
  ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_material22.Box, { sx: { display: "flex", flexDirection: "column", alignItems: "center", gap: 1 }, children: [
37240
37209
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
37241
37210
  UploadIcon,
@@ -37248,7 +37217,7 @@ var BrandingTab = ({
37248
37217
  }
37249
37218
  }
37250
37219
  ),
37251
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material22.Typography, { variant: "body2", color: "text.primary", sx: { fontSize: "1rem" }, children: dragOver ? "Drop here" : "\u{1F3AF} Upload & Crop Logo" }),
37220
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material22.Typography, { variant: "body2", color: "text.primary", sx: { fontSize: "1rem" }, children: dragOver ? "Drop here" : "Upload & Crop Logo" }),
37252
37221
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material22.Typography, { variant: "caption", color: "text.secondary", sx: { fontSize: "0.82rem", textAlign: "center" }, children: "JPG/PNG \u2022 Drag & drop or tap to upload \u2022 Built-in cropper" })
37253
37222
  ] }),
37254
37223
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
@@ -42820,7 +42789,7 @@ var ProviderTab = () => {
42820
42789
  ] })
42821
42790
  ] }),
42822
42791
  /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_material29.Paper, { sx: { p: 3, bgcolor: "info.main", color: "info.contrastText", borderRadius: 2 }, children: [
42823
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material29.Typography, { variant: "h6", sx: { mb: 1, fontWeight: 600, color: "text.primary" }, children: "\u{1F680} Gateway Provider Recommended" }),
42792
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material29.Typography, { variant: "h6", sx: { mb: 1, fontWeight: 600, color: "text.primary" }, children: "Gateway Provider Recommended" }),
42824
42793
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_material29.Typography, { variant: "body2", children: "For production deployments, we recommend using the Gateway provider which routes requests through your secure backend API. This approach keeps API keys secure, enables rate limiting, and provides better monitoring capabilities." })
42825
42794
  ] })
42826
42795
  ] }),