@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.
package/types.ts CHANGED
@@ -83,6 +83,7 @@ export interface Annotation {
83
83
  author?: string; // Tater identity for collaborative sharing
84
84
  source?: string; // External tool identifier (e.g., "eslint") — set when annotation comes from external API
85
85
  images?: ImageAttachment[]; // Attached images with human-readable names
86
+ mentions?: readonly string[]; // opaque host ids named with `@` in the comment body, set ONLY when a host supplied a `mentionSource` to the composer and at least one token survived; the key is absent otherwise. Host data: the package never renders, exports, shares or archives it.
86
87
  isQuickLabel?: boolean; // true if created via quick label chip
87
88
  quickLabelTip?: string; // optional instruction tip from the label definition
88
89
  diffContext?: 'added' | 'removed' | 'modified'; // set when annotation created in plan diff view
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
  /**