@burtson-labs/bandit-engine 2.0.42 → 2.0.44

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.js CHANGED
@@ -22290,6 +22290,24 @@ var init_project_header = __esm({
22290
22290
  }
22291
22291
  });
22292
22292
 
22293
+ // src/config/tooltips.ts
22294
+ var TOOLTIP_COPY, tooltip;
22295
+ var init_tooltips = __esm({
22296
+ "src/config/tooltips.ts"() {
22297
+ "use strict";
22298
+ TOOLTIP_COPY = {
22299
+ openNavigation: "Open navigation",
22300
+ closeNavigation: "Close navigation",
22301
+ manageProjects: "Manage projects",
22302
+ conversationOptions: "Open conversation options",
22303
+ closeConversationsPanel: "Close conversations panel",
22304
+ clearSearch: "Clear search",
22305
+ addProject: "Add new project"
22306
+ };
22307
+ tooltip = (key) => TOOLTIP_COPY[key];
22308
+ }
22309
+ });
22310
+
22293
22311
  // src/chat/conversation-drawer.tsx
22294
22312
  var import_react28, import_material19, import_icons_material7, import_icons_material8, import_styles13, import_jsx_runtime21, BANDIT_AVATAR, coerceOptionalString, deriveInitials, ConversationDrawer, conversation_drawer_default;
22295
22313
  var init_conversation_drawer = __esm({
@@ -22309,6 +22327,7 @@ var init_conversation_drawer = __esm({
22309
22327
  init_simple_conversation_item();
22310
22328
  init_project_header();
22311
22329
  init_debugLogger();
22330
+ init_tooltips();
22312
22331
  import_jsx_runtime21 = require("react/jsx-runtime");
22313
22332
  BANDIT_AVATAR = "https://cdn.burtson.ai/images/bandit-head.png";
22314
22333
  coerceOptionalString = (value) => {
@@ -22585,11 +22604,12 @@ var init_conversation_drawer = __esm({
22585
22604
  gap: 1
22586
22605
  },
22587
22606
  children: [
22588
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22607
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.Tooltip, { title: tooltip("manageProjects"), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22589
22608
  import_material19.IconButton,
22590
22609
  {
22591
22610
  onClick: () => setProjectManagementOpen(true),
22592
22611
  size: "small",
22612
+ "aria-label": tooltip("manageProjects"),
22593
22613
  sx: {
22594
22614
  color: theme.palette.text.secondary,
22595
22615
  "&:hover": {
@@ -22599,12 +22619,13 @@ var init_conversation_drawer = __esm({
22599
22619
  },
22600
22620
  children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_material7.Folder, {})
22601
22621
  }
22602
- ),
22603
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22622
+ ) }),
22623
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.Tooltip, { title: tooltip("conversationOptions"), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22604
22624
  import_material19.IconButton,
22605
22625
  {
22606
22626
  onClick: handleMenuOpen,
22607
22627
  size: "small",
22628
+ "aria-label": tooltip("conversationOptions"),
22608
22629
  sx: {
22609
22630
  color: theme.palette.text.secondary,
22610
22631
  "&:hover": {
@@ -22614,8 +22635,8 @@ var init_conversation_drawer = __esm({
22614
22635
  },
22615
22636
  children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_material7.MoreVert, {})
22616
22637
  }
22617
- ),
22618
- isMobile && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22638
+ ) }),
22639
+ isMobile && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.Tooltip, { title: tooltip("closeConversationsPanel"), children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22619
22640
  import_material19.IconButton,
22620
22641
  {
22621
22642
  onClick: (e) => {
@@ -22624,6 +22645,7 @@ var init_conversation_drawer = __esm({
22624
22645
  onClose();
22625
22646
  },
22626
22647
  size: "small",
22648
+ "aria-label": tooltip("closeConversationsPanel"),
22627
22649
  sx: {
22628
22650
  color: theme.palette.text.secondary,
22629
22651
  "&:hover": {
@@ -22633,7 +22655,7 @@ var init_conversation_drawer = __esm({
22633
22655
  },
22634
22656
  children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_material7.Close, {})
22635
22657
  }
22636
- )
22658
+ ) })
22637
22659
  ]
22638
22660
  }
22639
22661
  ),
@@ -22648,16 +22670,17 @@ var init_conversation_drawer = __esm({
22648
22670
  variant: "outlined",
22649
22671
  InputProps: {
22650
22672
  startAdornment: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.InputAdornment, { position: "start", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_material7.Search, { fontSize: "small", sx: { color: theme.palette.text.secondary } }) }),
22651
- endAdornment: searchQuery && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.InputAdornment, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22673
+ endAdornment: searchQuery && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.InputAdornment, { position: "end", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.Tooltip, { title: tooltip("clearSearch"), children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22652
22674
  import_material19.IconButton,
22653
22675
  {
22654
22676
  onClick: handleSearchClear,
22655
22677
  size: "small",
22656
22678
  edge: "end",
22679
+ "aria-label": tooltip("clearSearch"),
22657
22680
  sx: { color: theme.palette.text.secondary },
22658
22681
  children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_material7.Clear, { fontSize: "small" })
22659
22682
  }
22660
- ) })
22683
+ ) }) })
22661
22684
  },
22662
22685
  sx: {
22663
22686
  "& .MuiOutlinedInput-root": {
@@ -22732,7 +22755,15 @@ var init_conversation_drawer = __esm({
22732
22755
  children: "New Project"
22733
22756
  }
22734
22757
  ),
22735
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.IconButton, { size: "small", sx: { color: theme.palette.success.main }, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_material8.Add, { fontSize: "small" }) })
22758
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material19.Tooltip, { title: tooltip("addProject"), arrow: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
22759
+ import_material19.IconButton,
22760
+ {
22761
+ size: "small",
22762
+ "aria-label": tooltip("addProject"),
22763
+ sx: { color: theme.palette.success.main },
22764
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_material8.Add, { fontSize: "small" })
22765
+ }
22766
+ ) })
22736
22767
  ]
22737
22768
  }
22738
22769
  ),