@celestia-island/hikari 0.55.533 → 0.55.534

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.
Files changed (75) hide show
  1. package/dist/types/generated/ActionableNode.d.ts +18 -0
  2. package/dist/types/generated/Align.d.ts +4 -0
  3. package/dist/types/generated/ButtonNode.d.ts +31 -0
  4. package/dist/types/generated/ButtonNodeView.d.ts +31 -0
  5. package/dist/types/generated/ButtonVariant.d.ts +4 -0
  6. package/dist/types/generated/CardNode.d.ts +26 -0
  7. package/dist/types/generated/CardNodeView.d.ts +26 -0
  8. package/dist/types/generated/ColumnNode.d.ts +28 -0
  9. package/dist/types/generated/ColumnNodeView.d.ts +28 -0
  10. package/dist/types/generated/ComponentNode.d.ts +33 -0
  11. package/dist/types/generated/ComponentNodeView.d.ts +33 -0
  12. package/dist/types/generated/DividerNode.d.ts +19 -0
  13. package/dist/types/generated/DividerNodeView.d.ts +18 -0
  14. package/dist/types/generated/FlexGap.d.ts +4 -0
  15. package/dist/types/generated/NodeFields.d.ts +13 -0
  16. package/dist/types/generated/PatchComponents.d.ts +24 -0
  17. package/dist/types/generated/PatchData.d.ts +21 -0
  18. package/dist/types/generated/RowNode.d.ts +33 -0
  19. package/dist/types/generated/RowNodeView.d.ts +33 -0
  20. package/dist/types/generated/StatCardNode.d.ts +43 -0
  21. package/dist/types/generated/StatCardNodeView.d.ts +43 -0
  22. package/dist/types/generated/StatTone.d.ts +4 -0
  23. package/dist/types/generated/SurfaceId.d.ts +7 -0
  24. package/dist/types/generated/SurfaceMessage.d.ts +61 -0
  25. package/dist/types/generated/TagNode.d.ts +27 -0
  26. package/dist/types/generated/TagNodeView.d.ts +27 -0
  27. package/dist/types/generated/TagVariant.d.ts +4 -0
  28. package/dist/types/generated/TrendChartNode.d.ts +35 -0
  29. package/dist/types/generated/TrendChartNodeView.d.ts +35 -0
  30. package/dist/types/generated/TrendPen.d.ts +19 -0
  31. package/dist/types/generated/TrendPoint.d.ts +13 -0
  32. package/dist/types/generated/TrendThresholds.d.ts +22 -0
  33. package/dist/types/generated/TypedAction.d.ts +21 -0
  34. package/dist/types/generated/Wrap.d.ts +8 -0
  35. package/dist/types/index.d.ts +34 -0
  36. package/package.json +1 -1
  37. package/src/errorLandingStandalone/error-landing.html +1 -1
  38. package/src/generated/ActionableNode.ts +19 -0
  39. package/src/generated/Align.ts +6 -0
  40. package/src/generated/ButtonNode.ts +32 -0
  41. package/src/generated/ButtonNodeView.ts +32 -0
  42. package/src/generated/ButtonVariant.ts +6 -0
  43. package/src/generated/CardNode.ts +27 -0
  44. package/src/generated/CardNodeView.ts +27 -0
  45. package/src/generated/ColumnNode.ts +29 -0
  46. package/src/generated/ColumnNodeView.ts +29 -0
  47. package/src/generated/ComponentNode.ts +19 -0
  48. package/src/generated/ComponentNodeView.ts +19 -0
  49. package/src/generated/DividerNode.ts +20 -0
  50. package/src/generated/DividerNodeView.ts +19 -0
  51. package/src/generated/FlexGap.ts +6 -0
  52. package/src/generated/NodeFields.ts +14 -0
  53. package/src/generated/PatchComponents.ts +25 -0
  54. package/src/generated/PatchData.ts +22 -0
  55. package/src/generated/RowNode.ts +34 -0
  56. package/src/generated/RowNodeView.ts +34 -0
  57. package/src/generated/StatCardNode.ts +44 -0
  58. package/src/generated/StatCardNodeView.ts +44 -0
  59. package/src/generated/StatTone.ts +6 -0
  60. package/src/generated/SurfaceId.ts +9 -0
  61. package/src/generated/SurfaceMessage.ts +55 -0
  62. package/src/generated/TagNode.ts +28 -0
  63. package/src/generated/TagNodeView.ts +28 -0
  64. package/src/generated/TagVariant.ts +6 -0
  65. package/src/generated/TrendChartNode.ts +36 -0
  66. package/src/generated/TrendChartNodeView.ts +36 -0
  67. package/src/generated/TrendPen.ts +20 -0
  68. package/src/generated/TrendPoint.ts +14 -0
  69. package/src/generated/TrendThresholds.ts +23 -0
  70. package/src/generated/TypedAction.ts +20 -0
  71. package/src/generated/Wrap.ts +10 -0
  72. package/src/index.ts +46 -0
  73. package/src/styles/index.scss +13 -3
  74. package/src/styles/themeSheet.test.ts +240 -0
  75. package/src/theme/theme.scss +14 -2
@@ -0,0 +1,18 @@
1
+ import type { TypedAction } from "./TypedAction";
2
+ /**
3
+ * A node that may raise an event — the shared tail plus `action`.
4
+ */
5
+ export type ActionableNode = {
6
+ /**
7
+ * Node id, unique within one surface. Patches address nodes by this id.
8
+ */
9
+ id: string;
10
+ /**
11
+ * Child node ids, in render order.
12
+ */
13
+ children: Array<string>;
14
+ /**
15
+ * The event this node raises, if any.
16
+ */
17
+ action?: TypedAction | null;
18
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Cross-axis alignment — the values of `Align` (`components/src/layout/flex.rs`).
3
+ */
4
+ export type Align = "start" | "center" | "end" | "stretch" | "baseline";
@@ -0,0 +1,31 @@
1
+ import type { ButtonVariant } from "./ButtonVariant";
2
+ import type { TypedAction } from "./TypedAction";
3
+ /**
4
+ * A `button` node — a labelled action (`Button`).
5
+ */
6
+ export type ButtonNode = {
7
+ /**
8
+ * Node id, unique within one surface. Patches address nodes by this id.
9
+ */
10
+ id: string;
11
+ /**
12
+ * Child node ids, in render order (a button's text is `label`).
13
+ */
14
+ children: Array<string>;
15
+ /**
16
+ * The event this node raises.
17
+ */
18
+ action?: TypedAction | null;
19
+ /**
20
+ * The visible label (also the accessible name unless overridden).
21
+ */
22
+ label: string;
23
+ /**
24
+ * Semantic variant.
25
+ */
26
+ variant: ButtonVariant;
27
+ /**
28
+ * Native disabled state.
29
+ */
30
+ disabled: boolean;
31
+ };
@@ -0,0 +1,31 @@
1
+ import type { ButtonVariant } from "./ButtonVariant";
2
+ import type { TypedAction } from "./TypedAction";
3
+ /**
4
+ * [`ButtonNode`] as the generated binding sees it.
5
+ */
6
+ export type ButtonNodeView = {
7
+ /**
8
+ * The visible label (also the accessible name unless overridden).
9
+ */
10
+ label: string;
11
+ /**
12
+ * Semantic variant.
13
+ */
14
+ variant: ButtonVariant;
15
+ /**
16
+ * Native disabled state.
17
+ */
18
+ disabled: boolean;
19
+ /**
20
+ * Node id, unique within one surface. Patches address nodes by this id.
21
+ */
22
+ id: string;
23
+ /**
24
+ * Child node ids, in render order.
25
+ */
26
+ children: Array<string>;
27
+ /**
28
+ * The event this node raises, if any.
29
+ */
30
+ action?: TypedAction | null;
31
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Button variant — the values of `ButtonVariant` (`components/src/basic/button.rs`).
3
+ */
4
+ export type ButtonVariant = "primary" | "secondary" | "ghost" | "danger" | "outline";
@@ -0,0 +1,26 @@
1
+ import type { TypedAction } from "./TypedAction";
2
+ /**
3
+ * A `card` node — a titled, padded container (`Card`).
4
+ */
5
+ export type CardNode = {
6
+ /**
7
+ * Node id, unique within one surface. Patches address nodes by this id.
8
+ */
9
+ id: string;
10
+ /**
11
+ * Child node ids, in render order.
12
+ */
13
+ children: Array<string>;
14
+ /**
15
+ * The event this node raises, if any.
16
+ */
17
+ action?: TypedAction | null;
18
+ /**
19
+ * Header title; omit for a header-less card.
20
+ */
21
+ title?: string | null;
22
+ /**
23
+ * Body padding (`CardProps::padded`, default `true`).
24
+ */
25
+ padded: boolean;
26
+ };
@@ -0,0 +1,26 @@
1
+ import type { TypedAction } from "./TypedAction";
2
+ /**
3
+ * [`CardNode`] as the generated binding sees it.
4
+ */
5
+ export type CardNodeView = {
6
+ /**
7
+ * Header title; omit for a header-less card.
8
+ */
9
+ title?: string;
10
+ /**
11
+ * Body padding (`CardProps::padded`, default `true`).
12
+ */
13
+ padded: boolean;
14
+ /**
15
+ * Node id, unique within one surface. Patches address nodes by this id.
16
+ */
17
+ id: string;
18
+ /**
19
+ * Child node ids, in render order.
20
+ */
21
+ children: Array<string>;
22
+ /**
23
+ * The event this node raises, if any.
24
+ */
25
+ action?: TypedAction | null;
26
+ };
@@ -0,0 +1,28 @@
1
+ import type { Align } from "./Align";
2
+ import type { FlexGap } from "./FlexGap";
3
+ import type { TypedAction } from "./TypedAction";
4
+ /**
5
+ * A `column` node — a vertical layout container.
6
+ */
7
+ export type ColumnNode = {
8
+ /**
9
+ * Node id, unique within one surface. Patches address nodes by this id.
10
+ */
11
+ id: string;
12
+ /**
13
+ * Child node ids, in render order.
14
+ */
15
+ children: Array<string>;
16
+ /**
17
+ * The event this node raises, if any.
18
+ */
19
+ action?: TypedAction | null;
20
+ /**
21
+ * Spacing between children.
22
+ */
23
+ gap: FlexGap;
24
+ /**
25
+ * Cross-axis alignment.
26
+ */
27
+ align: Align;
28
+ };
@@ -0,0 +1,28 @@
1
+ import type { Align } from "./Align";
2
+ import type { FlexGap } from "./FlexGap";
3
+ import type { TypedAction } from "./TypedAction";
4
+ /**
5
+ * [`ColumnNode`] as the generated binding sees it.
6
+ */
7
+ export type ColumnNodeView = {
8
+ /**
9
+ * Spacing between children.
10
+ */
11
+ gap: FlexGap;
12
+ /**
13
+ * Cross-axis alignment.
14
+ */
15
+ align: Align;
16
+ /**
17
+ * Node id, unique within one surface. Patches address nodes by this id.
18
+ */
19
+ id: string;
20
+ /**
21
+ * Child node ids, in render order.
22
+ */
23
+ children: Array<string>;
24
+ /**
25
+ * The event this node raises, if any.
26
+ */
27
+ action?: TypedAction | null;
28
+ };
@@ -0,0 +1,33 @@
1
+ import type { ButtonNode } from "./ButtonNode";
2
+ import type { CardNode } from "./CardNode";
3
+ import type { ColumnNode } from "./ColumnNode";
4
+ import type { DividerNode } from "./DividerNode";
5
+ import type { RowNode } from "./RowNode";
6
+ import type { StatCardNode } from "./StatCardNode";
7
+ import type { TagNode } from "./TagNode";
8
+ import type { TrendChartNode } from "./TrendChartNode";
9
+ /**
10
+ * Every component a surface may use. Closed on purpose: the tag is part of
11
+ * the vocabulary, so an unknown `kind` is a deserialization error.
12
+ *
13
+ * Each variant inlines its props (the spec's shape) — serde cannot combine
14
+ * `flatten` with an internal tag, and inlining keeps the whitelist readable
15
+ * next to the shared `id` / `children` / `action` tail.
16
+ */
17
+ export type ComponentNode = {
18
+ "kind": "card";
19
+ } & CardNode | {
20
+ "kind": "row";
21
+ } & RowNode | {
22
+ "kind": "column";
23
+ } & ColumnNode | {
24
+ "kind": "statCard";
25
+ } & StatCardNode | {
26
+ "kind": "trendChart";
27
+ } & TrendChartNode | {
28
+ "kind": "button";
29
+ } & ButtonNode | {
30
+ "kind": "tag";
31
+ } & TagNode | {
32
+ "kind": "divider";
33
+ } & DividerNode;
@@ -0,0 +1,33 @@
1
+ import type { ButtonNodeView } from "./ButtonNodeView";
2
+ import type { CardNodeView } from "./CardNodeView";
3
+ import type { ColumnNodeView } from "./ColumnNodeView";
4
+ import type { DividerNodeView } from "./DividerNodeView";
5
+ import type { RowNodeView } from "./RowNodeView";
6
+ import type { StatCardNodeView } from "./StatCardNodeView";
7
+ import type { TagNodeView } from "./TagNodeView";
8
+ import type { TrendChartNodeView } from "./TrendChartNodeView";
9
+ /**
10
+ * The component node as the host reads it: the same eight tags as
11
+ * [`ComponentNode`], each variant composed from its [`ActionableNode`] tail
12
+ * and its own props.
13
+ *
14
+ * `ComponentNode.ts` is generated from this type: the node the host
15
+ * switches on `kind` and narrows to one props set.
16
+ */
17
+ export type ComponentNodeView = {
18
+ "kind": "card";
19
+ } & CardNodeView | {
20
+ "kind": "row";
21
+ } & RowNodeView | {
22
+ "kind": "column";
23
+ } & ColumnNodeView | {
24
+ "kind": "statCard";
25
+ } & StatCardNodeView | {
26
+ "kind": "trendChart";
27
+ } & TrendChartNodeView | {
28
+ "kind": "button";
29
+ } & ButtonNodeView | {
30
+ "kind": "tag";
31
+ } & TagNodeView | {
32
+ "kind": "divider";
33
+ } & DividerNodeView;
@@ -0,0 +1,19 @@
1
+ import type { TypedAction } from "./TypedAction";
2
+ /**
3
+ * A `divider` node — a divider rule (`Divider`); the catalog whitelists no
4
+ * props beyond the shared tail.
5
+ */
6
+ export type DividerNode = {
7
+ /**
8
+ * Node id, unique within one surface. Patches address nodes by this id.
9
+ */
10
+ id: string;
11
+ /**
12
+ * Child node ids, in render order (a rule never has any).
13
+ */
14
+ children: Array<string>;
15
+ /**
16
+ * The event this node raises, if any.
17
+ */
18
+ action?: TypedAction | null;
19
+ };
@@ -0,0 +1,18 @@
1
+ import type { TypedAction } from "./TypedAction";
2
+ /**
3
+ * [`DividerNode`] as the generated binding sees it.
4
+ */
5
+ export type DividerNodeView = {
6
+ /**
7
+ * Node id, unique within one surface. Patches address nodes by this id.
8
+ */
9
+ id: string;
10
+ /**
11
+ * Child node ids, in render order.
12
+ */
13
+ children: Array<string>;
14
+ /**
15
+ * The event this node raises, if any.
16
+ */
17
+ action?: TypedAction | null;
18
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Layout gap step — the values of `FlexGap` (`components/src/layout/flex.rs`).
3
+ */
4
+ export type FlexGap = "none" | "gap1" | "gap2" | "gap3" | "gap4" | "gap5" | "gap6" | "gap8";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The shared `id` / `children` tail of every node.
3
+ */
4
+ export type NodeFields = {
5
+ /**
6
+ * Node id, unique within one surface. Patches address nodes by this id.
7
+ */
8
+ id: string;
9
+ /**
10
+ * Child node ids, in render order.
11
+ */
12
+ children: Array<string>;
13
+ };
@@ -0,0 +1,24 @@
1
+ import type { ComponentNode } from "./ComponentNode";
2
+ import type { SurfaceId } from "./SurfaceId";
3
+ /**
4
+ * Replace the component set (upserts, then removals).
5
+ *
6
+ * `packages/vue` gets this shape twice: as a whole message variant
7
+ * (`SurfaceMessage.ts`) and as a standalone payload, for a host that applies
8
+ * one patch at a time.
9
+ */
10
+ export type PatchComponents = {
11
+ /**
12
+ * Which surface the patch applies to.
13
+ */
14
+ surfaceId: SurfaceId;
15
+ /**
16
+ * Nodes to insert, or to replace by id.
17
+ */
18
+ upserts: Array<ComponentNode>;
19
+ /**
20
+ * Node ids to delete. Nothing cascades: a removed parent's children stay
21
+ * in the table until a patch removes them too.
22
+ */
23
+ removals: Array<string>;
24
+ };
@@ -0,0 +1,21 @@
1
+ import type { SurfaceId } from "./SurfaceId";
2
+ /**
3
+ * Change values inside the data model, addressed by [`DataRef`].
4
+ *
5
+ * Like [`PatchComponents`], shipped both as a message variant and standalone.
6
+ */
7
+ export type PatchData = {
8
+ /**
9
+ * Which surface the patch applies to.
10
+ */
11
+ surfaceId: SurfaceId;
12
+ /**
13
+ * Pointer → new value. A map rather than a list of pairs: pointers are
14
+ * unique by construction, and JSON has no tuple type of its own.
15
+ */
16
+ set: Record<string, unknown>;
17
+ /**
18
+ * Pointers to delete.
19
+ */
20
+ removals: Array<string>;
21
+ };
@@ -0,0 +1,33 @@
1
+ import type { Align } from "./Align";
2
+ import type { FlexGap } from "./FlexGap";
3
+ import type { TypedAction } from "./TypedAction";
4
+ import type { Wrap } from "./Wrap";
5
+ /**
6
+ * A `row` node — a horizontal layout container.
7
+ */
8
+ export type RowNode = {
9
+ /**
10
+ * Node id, unique within one surface. Patches address nodes by this id.
11
+ */
12
+ id: string;
13
+ /**
14
+ * Child node ids, in render order.
15
+ */
16
+ children: Array<string>;
17
+ /**
18
+ * The event this node raises, if any.
19
+ */
20
+ action?: TypedAction | null;
21
+ /**
22
+ * Spacing between children.
23
+ */
24
+ gap: FlexGap;
25
+ /**
26
+ * Line wrapping.
27
+ */
28
+ wrap: Wrap;
29
+ /**
30
+ * Cross-axis alignment.
31
+ */
32
+ align: Align;
33
+ };
@@ -0,0 +1,33 @@
1
+ import type { Align } from "./Align";
2
+ import type { FlexGap } from "./FlexGap";
3
+ import type { TypedAction } from "./TypedAction";
4
+ import type { Wrap } from "./Wrap";
5
+ /**
6
+ * [`RowNode`] as the generated binding sees it.
7
+ */
8
+ export type RowNodeView = {
9
+ /**
10
+ * Spacing between children.
11
+ */
12
+ gap: FlexGap;
13
+ /**
14
+ * Line wrapping.
15
+ */
16
+ wrap: Wrap;
17
+ /**
18
+ * Cross-axis alignment.
19
+ */
20
+ align: Align;
21
+ /**
22
+ * Node id, unique within one surface. Patches address nodes by this id.
23
+ */
24
+ id: string;
25
+ /**
26
+ * Child node ids, in render order.
27
+ */
28
+ children: Array<string>;
29
+ /**
30
+ * The event this node raises, if any.
31
+ */
32
+ action?: TypedAction | null;
33
+ };
@@ -0,0 +1,43 @@
1
+ import type { StatTone } from "./StatTone";
2
+ import type { TypedAction } from "./TypedAction";
3
+ /**
4
+ * A `statCard` node — one KPI (`StatCard`).
5
+ */
6
+ export type StatCardNode = {
7
+ /**
8
+ * Node id, unique within one surface. Patches address nodes by this id.
9
+ */
10
+ id: string;
11
+ /**
12
+ * Child node ids, in render order.
13
+ */
14
+ children: Array<string>;
15
+ /**
16
+ * The event this node raises, if any.
17
+ */
18
+ action?: TypedAction | null;
19
+ /**
20
+ * The metric name.
21
+ */
22
+ label: string;
23
+ /**
24
+ * The headline value, pre-formatted by the producer.
25
+ */
26
+ value: string;
27
+ /**
28
+ * Colour tone.
29
+ */
30
+ tone: StatTone;
31
+ /**
32
+ * Secondary line under the value.
33
+ */
34
+ hint?: string | null;
35
+ /**
36
+ * Unit rendered inside the ring under the value.
37
+ */
38
+ unit?: string | null;
39
+ /**
40
+ * Gauge percentage (clamped to 0–100 by the component).
41
+ */
42
+ pct?: number | null;
43
+ };
@@ -0,0 +1,43 @@
1
+ import type { StatTone } from "./StatTone";
2
+ import type { TypedAction } from "./TypedAction";
3
+ /**
4
+ * [`StatCardNode`] as the generated binding sees it.
5
+ */
6
+ export type StatCardNodeView = {
7
+ /**
8
+ * The metric name.
9
+ */
10
+ label: string;
11
+ /**
12
+ * The headline value, pre-formatted by the producer.
13
+ */
14
+ value: string;
15
+ /**
16
+ * Colour tone.
17
+ */
18
+ tone: StatTone;
19
+ /**
20
+ * Secondary line under the value.
21
+ */
22
+ hint?: string;
23
+ /**
24
+ * Unit rendered inside the ring under the value.
25
+ */
26
+ unit?: string;
27
+ /**
28
+ * Gauge percentage (clamped to 0–100 by the component).
29
+ */
30
+ pct?: number;
31
+ /**
32
+ * Node id, unique within one surface. Patches address nodes by this id.
33
+ */
34
+ id: string;
35
+ /**
36
+ * Child node ids, in render order.
37
+ */
38
+ children: Array<string>;
39
+ /**
40
+ * The event this node raises, if any.
41
+ */
42
+ action?: TypedAction | null;
43
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Stat card tone — the values of `StatTone` (`components/src/data/stat_card.rs`).
3
+ */
4
+ export type StatTone = "success" | "warning" | "error" | "info" | "primary" | "muted";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The identity of one surface on one conversation message.
3
+ *
4
+ * Opaque to the host: it is whatever the producer minted, echoed back on
5
+ * every patch and on every action the host sends.
6
+ */
7
+ export type SurfaceId = string;
@@ -0,0 +1,61 @@
1
+ import type { ComponentNodeView } from "./ComponentNodeView";
2
+ import type { SurfaceId } from "./SurfaceId";
3
+ /**
4
+ * The host's reading of a surface message: generated as
5
+ * `SurfaceMessage.ts`, with the same four tags, field names and payload
6
+ * shapes as [`SurfaceMessage`]. The golden test encodes a decoded message
7
+ * through this distinct type, so the two shapes cannot drift apart.
8
+ */
9
+ export type SurfaceMessage = {
10
+ "type": "openSurface";
11
+ /**
12
+ * The surface's identity for the rest of its life.
13
+ */
14
+ surfaceId: SurfaceId;
15
+ /**
16
+ * The catalog revision the components were authored against.
17
+ */
18
+ catalogRevision: string;
19
+ /**
20
+ * The initial nodes.
21
+ */
22
+ components: Array<ComponentNodeView>;
23
+ /**
24
+ * The initial data model.
25
+ */
26
+ data: unknown;
27
+ } | {
28
+ "type": "patchComponents";
29
+ /**
30
+ * Which surface the patch applies to.
31
+ */
32
+ surfaceId: SurfaceId;
33
+ /**
34
+ * Nodes to insert, or to replace by id.
35
+ */
36
+ upserts: Array<ComponentNodeView>;
37
+ /**
38
+ * Node ids to delete.
39
+ */
40
+ removals: Array<string>;
41
+ } | {
42
+ "type": "patchData";
43
+ /**
44
+ * Which surface the patch applies to.
45
+ */
46
+ surfaceId: SurfaceId;
47
+ /**
48
+ * Pointer → new value.
49
+ */
50
+ set: Record<string, unknown>;
51
+ /**
52
+ * Pointers to delete.
53
+ */
54
+ removals: Array<string>;
55
+ } | {
56
+ "type": "closeSurface";
57
+ /**
58
+ * Which surface is closing.
59
+ */
60
+ surfaceId: SurfaceId;
61
+ };
@@ -0,0 +1,27 @@
1
+ import type { TagVariant } from "./TagVariant";
2
+ import type { TypedAction } from "./TypedAction";
3
+ /**
4
+ * A `tag` node — a small status chip (`Tag`).
5
+ */
6
+ export type TagNode = {
7
+ /**
8
+ * Node id, unique within one surface. Patches address nodes by this id.
9
+ */
10
+ id: string;
11
+ /**
12
+ * Child node ids, in render order (a tag's text is `label`).
13
+ */
14
+ children: Array<string>;
15
+ /**
16
+ * The event this node raises, if any.
17
+ */
18
+ action?: TypedAction | null;
19
+ /**
20
+ * The chip text (the Vue component's default slot).
21
+ */
22
+ label: string;
23
+ /**
24
+ * Semantic variant.
25
+ */
26
+ variant: TagVariant;
27
+ };
@@ -0,0 +1,27 @@
1
+ import type { TagVariant } from "./TagVariant";
2
+ import type { TypedAction } from "./TypedAction";
3
+ /**
4
+ * [`TagNode`] as the generated binding sees it.
5
+ */
6
+ export type TagNodeView = {
7
+ /**
8
+ * The chip text (the Vue component's default slot).
9
+ */
10
+ label: string;
11
+ /**
12
+ * Semantic variant.
13
+ */
14
+ variant: TagVariant;
15
+ /**
16
+ * Node id, unique within one surface. Patches address nodes by this id.
17
+ */
18
+ id: string;
19
+ /**
20
+ * Child node ids, in render order.
21
+ */
22
+ children: Array<string>;
23
+ /**
24
+ * The event this node raises, if any.
25
+ */
26
+ action?: TypedAction | null;
27
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Tag variant — the values of `TagVariant` (`components/src/display/tag.rs`).
3
+ */
4
+ export type TagVariant = "default" | "primary" | "success" | "warning" | "danger" | "info";