@filigran/chatbot 3.25.0 → 3.26.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.26.0
4
+
5
+ ### Minor Changes
6
+
7
+ - dc615f7: Agent switcher (filigran-ui#530, ported here; Refs XTM-One-Platform/xtm-one#10910):
8
+ - `theme.menuSurface` (`--filigran-chat-menu-surface`): the menus' own fill, so a host pairs it with `surfaceHover` and the keyboard-active row of the agent switcher reads in dark as in light.
9
+ - `theme.menuActiveBorder` (`--filigran-chat-menu-active-border`): a 2px left track on the keyboard-active row, `--border-input-hover` by default.
10
+ - The track now draws: the active rule sets the track colour as a variable the row's border reads, so the row's own `border-left` shorthand no longer resets it to transparent.
11
+ - With no agent list (`apiEndpoints.agents: null`) and no agent page or dashboard link, the header draws the agent as a label: no chevron and no dead-end "Agent switching is not available here" popover.
12
+
13
+ ### Patch Changes
14
+
15
+ - 4d583d2: fix(chatbot): render the panel's text in the design system's body face
16
+
17
+ The panel root's `--font-sans` reads the host's `--font-content-base` (IBM Plex Sans), then IBM Plex Sans by name, before the system stack. The `fontFamily` prop still wins. Refs XTM-One-Platform/xtm-one#10910.
18
+
19
+ - fb196e5: In-progress cards and composer focus (Refs XTM-One-Platform/xtm-one#10910):
20
+ - The status card ("Thinking...", "Analyzing results (step N)..."), the reasoning card under it and the waiting card take the design system's card corner, `--radius-sm` (Paper and Card draw `rounded-sm`), instead of the 12px `--radius-md` that made them rounder than every other card of the host. `src/components/radius.test.ts` pins the three.
21
+ - The composer shows exactly one focus indicator, the design system's 2px ring around the box, whether the focus came from a click, Tab or the panel after a send: the text field draws no outline or ring of its own (a browser's native ring or a host's `textarea:focus` rule stacked a second, often orange, edge) and the box drops its hover border while focused. The ring still stands aside while the agent works (the working glow).
22
+
3
23
  ## 3.25.0
4
24
 
5
25
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -390,15 +390,27 @@ interface ChatPanelTheme {
390
390
  surfaceSubtle?: string;
391
391
  /** A row or a button under the pointer (`--filigran-chat-surface-hover`). */
392
392
  surfaceHover?: string;
393
+ /**
394
+ * The menus' panel (the agent switcher, the history, the prompt and mention lists): the design system's
395
+ * `--bg-elevation-highlight`, a step off `surfaceHover` so the keyboard-active row reads in both modes
396
+ * (`--filigran-chat-menu-surface`, `surfaceRaised` unset).
397
+ */
398
+ menuSurface?: string;
399
+ /**
400
+ * The 2px left track of the keyboard-active menu row, the design system's `--border-input-hover`
401
+ * (at least 3:1 against `menuSurface`), so the row reads whatever the hover fill
402
+ * (`--filigran-chat-menu-active-border`, `--border-input-hover` then the accent unset).
403
+ */
404
+ menuActiveBorder?: string;
393
405
  /** A text field: the composer (no fill unless set), a rename field, the feedback and approval comments (`--filigran-chat-input-surface`). */
394
406
  inputSurface?: string;
395
407
  /** The composer's corners, as the host's text fields draw theirs (`--filigran-chat-input-radius`, `radiusMd` unset). */
396
408
  inputRadius?: string;
397
409
  /** The composer's border under the pointer, the design system's `--border-input-hover`; none at rest (`--filigran-chat-input-border-hover`, `border` unset). */
398
410
  inputBorderHover?: string;
399
- /** The small corner of every control, chip and avatar tile, the design system's `--radius-sm` (`--filigran-chat-radius-sm`, 4px unset). */
411
+ /** The small corner of every control, chip, avatar tile and in-progress card (status, reasoning, waiting), the design system's `--radius-sm` (`--filigran-chat-radius-sm`, 4px unset). */
400
412
  radiusSm?: string;
401
- /** The card corner of every card, bubble, status indicator, menu and dialog, the design system's `--radius-md` (`--filigran-chat-radius-md`, 12px unset). */
413
+ /** The large corner of every bubble, menu and dialog, the design system's `--radius-md` (`--filigran-chat-radius-md`, 12px unset). */
402
414
  radiusMd?: string;
403
415
  /** The composer field's height at rest, before it grows with the text (`--filigran-chat-input-min-height`, two lines unset). */
404
416
  inputMinHeight?: string;