@danxbot/ui 15.30.0 → 15.31.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.
@@ -5,6 +5,12 @@ export interface LineDiffProps {
5
5
  after: string;
6
6
  /** The accessible name for the diff region. */
7
7
  label: string;
8
+ /**
9
+ * Show only this many unchanged lines either side of a change, folding each
10
+ * longer unchanged run into a "N unchanged lines" row (`git diff -U<n>`).
11
+ * Omitted: every line is shown. `0` shows the changed lines alone. DX-4041.
12
+ */
13
+ context?: number;
8
14
  className?: string;
9
15
  }
10
16
  /**
@@ -15,4 +21,4 @@ export interface LineDiffProps {
15
21
  * its new form added. Identical `before`/`after` renders every line
16
22
  * unchanged, with no added/removed markers at all.
17
23
  */
18
- export declare function LineDiff({ before, after, label, className }: LineDiffProps): import("react").JSX.Element;
24
+ export declare function LineDiff({ before, after, label, context, className }: LineDiffProps): import("react").JSX.Element;
@@ -17,6 +17,20 @@ export interface FocusWebNodeLook {
17
17
  * themes, and a caller-supplied hex is not. Omitted → the accent colour.
18
18
  */
19
19
  paletteKey?: string;
20
+ /**
21
+ * DX-4041: a small marker drawn at the disc's top-right corner — a count, a
22
+ * change tag, an unread dot — typically a `Badge` (or a few stacked). It is
23
+ * decoration for the eye: the default body hides it from assistive tech, so
24
+ * say what it MEANS in `badgeLabel`. Ignored by a custom `renderNode`, which
25
+ * draws whatever it likes from the node's own fields.
26
+ */
27
+ badge?: ReactNode;
28
+ /**
29
+ * What `badge` means, in words ("contains 2 added, 1 changed"). Appended to a
30
+ * clickable node's accessible name after its label, and read in place beside
31
+ * a plain (non-clickable) centre. Meaningless without `badge`.
32
+ */
33
+ badgeLabel?: string;
20
34
  }
21
35
  /**
22
36
  * One node FocusWeb draws — the centre, a ring member, or the "up" parent.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danxbot/ui",
3
- "version": "15.30.0",
3
+ "version": "15.31.0",
4
4
  "type": "module",
5
5
  "description": "Danxbot — a domain-agnostic React design system with motion as a first-class primitive.",
6
6
  "license": "MIT",