@filigran/chatbot 3.10.0 → 3.11.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/README.md CHANGED
@@ -88,6 +88,10 @@ import { ChatPanel } from '@filigran/chatbot';
88
88
  | `contextUsageEnabled` | `boolean` | `true` | Show how full the model's context window is for the current conversation (ring + percentage in the composer toolbar). Data-driven, so it stays absent until the backend reports occupancy — see [Context usage](#context-usage). |
89
89
  | `composerToolbar` | `React.ReactNode` | — | Extra controls appended to the composer toolbar. The escape hatch for host-specific affordances (XTM One's session-tool picker) — the package never learns what they are. Pass nothing and the toolbar simply has none. |
90
90
 
91
+ Plain-data props (`requestHeaders`, `apiEndpoints`, `pageContext`, `promptSuggestions`) are compared by content and callback props are called
92
+ through a stable wrapper, so building them inline is fine. `t` and `logoIcon` are used as given: keep them stable (`useCallback` / `useMemo`),
93
+ or every render of the host re-renders every message in the thread.
94
+
91
95
  #### Resizable Sidebar Example
92
96
 
93
97
  ```tsx
@@ -947,6 +951,11 @@ returned byte-identical.
947
951
  - `remark-breaks` >= 4
948
952
  - `remark-gfm` >= 4
949
953
 
954
+ ## Dependencies
955
+
956
+ - `unified` ^11 and `remark-parse` ^11 — the ranges react-markdown 10 depends on, so a host resolves them to the copies it already has. The panel
957
+ uses them to find the top-level blocks of a streaming answer, and re-renders only the blocks that can still change.
958
+
950
959
  ---
951
960
 
952
961
  ## Development
@@ -964,6 +973,12 @@ To build:
964
973
  yarn build
965
974
  ```
966
975
 
976
+ To run the unit tests (Node's built-in test runner, which runs TypeScript natively from Node 22.18 / 23.6):
977
+
978
+ ```bash
979
+ yarn test
980
+ ```
981
+
967
982
  To publish:
968
983
 
969
984
  ```bash