@plannotator/ui 0.43.0 → 0.43.2

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.
@@ -15,6 +15,7 @@ export interface MentionMenuState {
15
15
  items: readonly MentionPerson[];
16
16
  /** Shown as one non-selectable row when `items` is empty. */
17
17
  emptyNotice: string | null;
18
+ heading: string | null;
18
19
  /** Explicitly activated row, or null — the menu opens with NOTHING active. */
19
20
  activeIndex: number | null;
20
21
  /** Measured textarea rect the portaled picker is placed from. */
@@ -112,6 +113,7 @@ export function useMentionAutocomplete(options: {
112
113
  );
113
114
 
114
115
  const emptyNotice = source?.emptyNotice ?? null;
116
+ const heading = source?.heading ?? null;
115
117
  const open =
116
118
  trigger !== null
117
119
  && trigger.from !== dismissedStart
@@ -236,7 +238,7 @@ export function useMentionAutocomplete(options: {
236
238
 
237
239
  return {
238
240
  menu: open && trigger
239
- ? { items, emptyNotice, activeIndex: boundedActive, anchor, query: trigger.query }
241
+ ? { items, emptyNotice, heading, activeIndex: boundedActive, anchor, query: trigger.query }
240
242
  : null,
241
243
  onKeyDown,
242
244
  onSelect: readCaret,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plannotator/ui",
3
- "version": "0.43.0",
3
+ "version": "0.43.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./components/*": "./components/*.tsx",