@plannotator/ui 0.43.1 → 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.
package/utils/mentions.ts CHANGED
@@ -20,6 +20,12 @@ export interface MentionPerson {
20
20
  readonly label: string;
21
21
  /** Right-aligned hint shown after the label (an email, "Agent"), or null. */
22
22
  readonly detail: string | null;
23
+ /**
24
+ * Optional avatar drawn before the label (0.43.2): an image when `url` is
25
+ * given, else `initials` on a tinted disc (`tint` is any CSS color; absent
26
+ * means the muted surface). Absent → no avatar column, the 0.43.1 row.
27
+ */
28
+ readonly avatar?: { readonly url?: string; readonly initials?: string; readonly tint?: string };
23
29
  /**
24
30
  * Whether this person can open the document. Host data: rows render
25
31
  * identically either way, and a `false` row is only special when the host
@@ -37,6 +43,8 @@ export interface MentionSource {
37
43
  * to keep the menu closed instead.
38
44
  */
39
45
  readonly emptyNotice?: string | null;
46
+ /** Optional heading drawn above the list ("People in this workspace"). Absent → no heading row. */
47
+ readonly heading?: string | null;
40
48
  /** Fires on every text change with the ids whose token still survives in the body. */
41
49
  readonly onMentionsChange?: (ids: readonly string[]) => void;
42
50
  /**