@asteby/metacore-genui 2.1.1 → 2.3.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.
- package/README.md +54 -6
- package/dist/diagram.d.ts +34 -0
- package/dist/diagram.d.ts.map +1 -0
- package/dist/diagram.js +103 -0
- package/dist/diagram.js.map +1 -0
- package/dist/generated/genui-v2-schema.d.ts +332 -0
- package/dist/generated/genui-v2-schema.d.ts.map +1 -1
- package/dist/generated/genui-v2-schema.js +454 -0
- package/dist/generated/genui-v2-schema.js.map +1 -1
- package/dist/generated/genui-v2.d.ts +342 -1
- package/dist/generated/genui-v2.d.ts.map +1 -1
- package/dist/generative-ui.d.ts +11 -1
- package/dist/generative-ui.d.ts.map +1 -1
- package/dist/generative-ui.js +3 -3
- package/dist/generative-ui.js.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -1
- package/dist/index.js.map +1 -1
- package/dist/map-points.d.ts +31 -0
- package/dist/map-points.d.ts.map +1 -0
- package/dist/map-points.js +60 -0
- package/dist/map-points.js.map +1 -0
- package/dist/markdown.d.ts +13 -0
- package/dist/markdown.d.ts.map +1 -0
- package/dist/markdown.js +63 -0
- package/dist/markdown.js.map +1 -0
- package/dist/metric.d.ts +12 -0
- package/dist/metric.d.ts.map +1 -0
- package/dist/metric.js +80 -0
- package/dist/metric.js.map +1 -0
- package/dist/page/blocks.d.ts +92 -0
- package/dist/page/blocks.d.ts.map +1 -0
- package/dist/page/blocks.js +363 -0
- package/dist/page/blocks.js.map +1 -0
- package/dist/page/context.d.ts +74 -0
- package/dist/page/context.d.ts.map +1 -0
- package/dist/page/context.js +167 -0
- package/dist/page/context.js.map +1 -0
- package/dist/page/custom.d.ts +55 -0
- package/dist/page/custom.d.ts.map +1 -0
- package/dist/page/custom.js +27 -0
- package/dist/page/custom.js.map +1 -0
- package/dist/page/index.d.ts +4 -0
- package/dist/page/index.d.ts.map +1 -0
- package/dist/page/index.js +5 -0
- package/dist/page/index.js.map +1 -0
- package/dist/registry.d.ts +69 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +49 -0
- package/dist/registry.js.map +1 -0
- package/dist/render-v2.d.ts +23 -0
- package/dist/render-v2.d.ts.map +1 -0
- package/dist/render-v2.js +166 -0
- package/dist/render-v2.js.map +1 -0
- package/dist/validate-v2.d.ts.map +1 -1
- package/dist/validate-v2.js +38 -0
- package/dist/validate-v2.js.map +1 -1
- package/package.json +2 -2
- package/schema/genui-v2.schema.json +386 -0
package/README.md
CHANGED
|
@@ -43,11 +43,11 @@ See [ADR 0001](../../docs/adr/0001-genui-ui-declarativa-universal.md)
|
|
|
43
43
|
`q:caps`. The JSON Schema in the kernel is the single source; Go and TS types
|
|
44
44
|
are generated and both validators run a shared conformance suite.
|
|
45
45
|
|
|
46
|
-
## `genui/v2` contract
|
|
46
|
+
## `genui/v2` contract and validator
|
|
47
47
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
Contract and validator of the genui/v2 plan (ADR 0001, section 3, row 4).
|
|
49
|
+
`GenerativeUI` still renders `genui/v1` only; the v2 renderer is `GenUI`
|
|
50
|
+
(see "Renderer" below).
|
|
51
51
|
|
|
52
52
|
```ts
|
|
53
53
|
import { parseGenUI, parseUISpecV2, upgradeV1, downgrade } from '@asteby/metacore-genui'
|
|
@@ -61,8 +61,9 @@ downgrade(spec, { versions: ['genui/v1'] }) // what a v1-only clie
|
|
|
61
61
|
`pnpm --filter @asteby/metacore-genui codegen` regenerates
|
|
62
62
|
`src/generated/genui-v2.ts` (types) and `src/generated/genui-v2-schema.ts`
|
|
63
63
|
(embedded schema + allowed/required fields per block). CI fails on a diff.
|
|
64
|
-
The schema lives in this SDK; the Go kernel copies it
|
|
65
|
-
|
|
64
|
+
The schema lives in this SDK; the Go kernel (`genui/v2`) copies it and the
|
|
65
|
+
vectors with `scripts/sync-genui-vectors.sh` and pins their hash in
|
|
66
|
+
`conformance.lock` (`conformance/README.md`). Both CIs run the same vectors. The validator interprets a
|
|
66
67
|
small, whitelisted subset of JSON Schema and fails closed
|
|
67
68
|
(`scripts/schema-keywords.mjs`, enforced by codegen and by a test).
|
|
68
69
|
- **Hand-written rules** (what the schema cannot say), each with a vector, are
|
|
@@ -83,3 +84,50 @@ downgrade(spec, { versions: ['genui/v1'] }) // what a v1-only clie
|
|
|
83
84
|
`genui/v1` document when the client only speaks v1. Without caps, v1 is assumed.
|
|
84
85
|
- **Conformance vectors**: `conformance/{valid,invalid,upgrade,downgrade}/*.json`,
|
|
85
86
|
shared with the Go kernel; see `conformance/README.md`.
|
|
87
|
+
|
|
88
|
+
## Renderer (phase 1)
|
|
89
|
+
|
|
90
|
+
```tsx
|
|
91
|
+
import { GenUI, GenUIProvider, registerGenUIBlockRenderer } from '@asteby/metacore-genui'
|
|
92
|
+
import { registerGenUIMapBlock } from '@asteby/metacore-maps/genui' // `map` block (MapLibre, lazy)
|
|
93
|
+
import { registerGenUISettingsBlock } from '@asteby/metacore-runtime-react/genui' // `settings` block (pilot)
|
|
94
|
+
|
|
95
|
+
registerGenUIMapBlock()
|
|
96
|
+
registerGenUISettingsBlock()
|
|
97
|
+
|
|
98
|
+
<GenUIProvider sources={{ points: rows }} onNavigate={go} onAction={handle} t={t}>
|
|
99
|
+
<GenUI spec={untrustedV1OrV2} />
|
|
100
|
+
</GenUIProvider>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
- `GenUI` validates with `parseGenUI` (v1 is upgraded) and draws the closed block
|
|
104
|
+
set. Built in: `stack`, `grid`, `tabs`, `section`, `text`, `markdown` (safe
|
|
105
|
+
subset parsed to React nodes: no HTML, no images, links through `isSafeLink`),
|
|
106
|
+
`alert`, `empty`, `card`, `list`, `metric` (KPI with trend, severity
|
|
107
|
+
thresholds and sparkline), `diagram` (nodes + edges with automatic layered
|
|
108
|
+
layout, drawn as SVG text; there is no mermaid and no HTML path), plus the v1
|
|
109
|
+
blocks. Heavy blocks register themselves: `map` (`@asteby/metacore-maps/genui`:
|
|
110
|
+
facade over MapView with tone-by-status colours, legend by status or group,
|
|
111
|
+
hover tooltip, cluster and a side detail panel), `settings`
|
|
112
|
+
(`@asteby/metacore-runtime-react/genui`). A block with no renderer shows its
|
|
113
|
+
`fallback` text. `GenUIProvider` overrides renderers per tree.
|
|
114
|
+
- Data never comes from the spec: blocks with `source` read rows the HOST
|
|
115
|
+
resolved (batch query, with the viewer's permissions) and passed in `sources`.
|
|
116
|
+
- Not in phase 1: `$ref`/`when` evaluation, declared-source loading, the action
|
|
117
|
+
engine (only plain `navigate` runs here; every other verb and anything with
|
|
118
|
+
`confirm` goes to `onAction`) and streaming. A block with `when` is not shown.
|
|
119
|
+
- Links: external `http(s)` are off unless `allowExternalLinks` (the chat turns it on).
|
|
120
|
+
|
|
121
|
+
## Page renderers (page@1 / block@1)
|
|
122
|
+
|
|
123
|
+
Additive layer for declarative addon pages (see `examples/fleet-map.tsx`):
|
|
124
|
+
`PageView`/`PageBlocks` render `grid` with `areas` (+ `mobile` order),
|
|
125
|
+
`stats`/`kpi_card`, `section` (`mode: declarative | hybrid | custom`,
|
|
126
|
+
`chrome: card | bare`, loading/error/empty states, per-section ErrorBoundary,
|
|
127
|
+
`permission` + `on_denied`) and a `map` whose selection writes
|
|
128
|
+
`state.<select>` and emits a `select` event. `PageProvider` holds the shared
|
|
129
|
+
state, an event bus and optional `url_state`. `defineBlock`/`registerPageBlock`
|
|
130
|
+
define the custom block contract (`block@1`: props, reads, writes, events);
|
|
131
|
+
federation/iframe loading is NOT implemented, an unregistered component renders
|
|
132
|
+
a stub. These page-level keys are proposals and are not yet in the shared
|
|
133
|
+
genui/v2 JSON Schema; core blocks still go through `parseGenUI`.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { GenUIBlockRendererProps } from './registry';
|
|
2
|
+
import type { Tone } from './types';
|
|
3
|
+
interface DNode {
|
|
4
|
+
id: string;
|
|
5
|
+
label: unknown;
|
|
6
|
+
kind?: string;
|
|
7
|
+
tone?: Tone;
|
|
8
|
+
detail?: string;
|
|
9
|
+
route?: Record<string, unknown>;
|
|
10
|
+
}
|
|
11
|
+
interface DEdge {
|
|
12
|
+
from: string;
|
|
13
|
+
to: string;
|
|
14
|
+
label?: unknown;
|
|
15
|
+
tone?: Tone;
|
|
16
|
+
style?: 'solid' | 'dashed';
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Automatic layered layout (longest-path layering, tolerant to cycles, one
|
|
20
|
+
* barycenter pass to reduce crossings). Pure and deterministic: same spec,
|
|
21
|
+
* same picture. Returns node centres in SVG units.
|
|
22
|
+
*/
|
|
23
|
+
export declare function layoutDiagram(nodes: Pick<DNode, 'id'>[], edges: Pick<DEdge, 'from' | 'to'>[], direction?: 'lr' | 'tb'): {
|
|
24
|
+
centers: Map<string, {
|
|
25
|
+
x: number;
|
|
26
|
+
y: number;
|
|
27
|
+
}>;
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
};
|
|
31
|
+
/** `diagram` block: closed nodes+edges spec drawn as SVG text (never HTML, never mermaid). */
|
|
32
|
+
export declare function DiagramBlock({ block, text, navigate, act }: GenUIBlockRendererProps): import("react").JSX.Element;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=diagram.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagram.d.ts","sourceRoot":"","sources":["../src/diagram.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAA;AAEzD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAEnC,UAAU,KAAK;IACb,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,OAAO,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC;AACD,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;CAC3B;AAQD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC,EAAE,EAAE,SAAS,GAAE,IAAI,GAAG,IAAW;;WA6BrF,MAAM;WAAK,MAAM;;;;EAevD;AAaD,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,EAAE,uBAAuB,+BAqFnF"}
|
package/dist/diagram.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useId, useMemo } from 'react';
|
|
3
|
+
import { cn } from '@asteby/metacore-ui';
|
|
4
|
+
import { TEXT_TONE } from './generative-ui';
|
|
5
|
+
const NW = 156;
|
|
6
|
+
const NH = 48;
|
|
7
|
+
const GX = 72;
|
|
8
|
+
const GY = 28;
|
|
9
|
+
const PAD = 16;
|
|
10
|
+
/**
|
|
11
|
+
* Automatic layered layout (longest-path layering, tolerant to cycles, one
|
|
12
|
+
* barycenter pass to reduce crossings). Pure and deterministic: same spec,
|
|
13
|
+
* same picture. Returns node centres in SVG units.
|
|
14
|
+
*/
|
|
15
|
+
export function layoutDiagram(nodes, edges, direction = 'lr') {
|
|
16
|
+
const n = nodes.length;
|
|
17
|
+
const layer = new Map(nodes.map((x) => [x.id, 0]));
|
|
18
|
+
for (let pass = 0; pass < n; pass++) {
|
|
19
|
+
let changed = false;
|
|
20
|
+
for (const e of edges) {
|
|
21
|
+
if (e.from === e.to)
|
|
22
|
+
continue;
|
|
23
|
+
const next = (layer.get(e.from) ?? 0) + 1;
|
|
24
|
+
if (next < n && next > (layer.get(e.to) ?? 0)) {
|
|
25
|
+
layer.set(e.to, next);
|
|
26
|
+
changed = true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if (!changed)
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
const cols = [];
|
|
33
|
+
for (const x of nodes)
|
|
34
|
+
(cols[layer.get(x.id)] ??= []).push(x.id);
|
|
35
|
+
const pos = new Map();
|
|
36
|
+
cols.forEach((c) => c?.forEach((id, i) => pos.set(id, i)));
|
|
37
|
+
for (let l = 1; l < cols.length; l++) {
|
|
38
|
+
const col = cols[l];
|
|
39
|
+
if (!col)
|
|
40
|
+
continue;
|
|
41
|
+
const bary = (id) => {
|
|
42
|
+
const ps = edges.filter((e) => e.to === id && (layer.get(e.from) ?? 0) < l).map((e) => pos.get(e.from) ?? 0);
|
|
43
|
+
return ps.length ? ps.reduce((a, b) => a + b, 0) / ps.length : pos.get(id);
|
|
44
|
+
};
|
|
45
|
+
col.sort((a, b) => bary(a) - bary(b) || pos.get(a) - pos.get(b));
|
|
46
|
+
col.forEach((id, i) => pos.set(id, i));
|
|
47
|
+
}
|
|
48
|
+
const centers = new Map();
|
|
49
|
+
let maxMain = 0;
|
|
50
|
+
let maxCross = 0;
|
|
51
|
+
cols.forEach((col, l) => {
|
|
52
|
+
col?.forEach((id, i) => {
|
|
53
|
+
const main = PAD + l * ((direction === 'lr' ? NW : NH) + (direction === 'lr' ? GX : GY * 2)) + (direction === 'lr' ? NW : NH) / 2;
|
|
54
|
+
const cross = PAD + i * ((direction === 'lr' ? NH : NW) + (direction === 'lr' ? GY : GX / 2)) + (direction === 'lr' ? NH : NW) / 2;
|
|
55
|
+
centers.set(id, direction === 'lr' ? { x: main, y: cross } : { x: cross, y: main });
|
|
56
|
+
maxMain = Math.max(maxMain, main);
|
|
57
|
+
maxCross = Math.max(maxCross, cross);
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
const w = (direction === 'lr' ? maxMain + NW / 2 : maxCross + NW / 2) + PAD;
|
|
61
|
+
const h = (direction === 'lr' ? maxCross + NH / 2 : maxMain + NH / 2) + PAD;
|
|
62
|
+
return { centers, width: w, height: h };
|
|
63
|
+
}
|
|
64
|
+
function edgePoint(from, to) {
|
|
65
|
+
// Intersection of the segment with the node rectangle around `from`.
|
|
66
|
+
const dx = to.x - from.x;
|
|
67
|
+
const dy = to.y - from.y;
|
|
68
|
+
if (dx === 0 && dy === 0)
|
|
69
|
+
return from;
|
|
70
|
+
const k = Math.min(dx === 0 ? Infinity : NW / 2 / Math.abs(dx), dy === 0 ? Infinity : NH / 2 / Math.abs(dy));
|
|
71
|
+
return { x: from.x + dx * k, y: from.y + dy * k };
|
|
72
|
+
}
|
|
73
|
+
const radius = (kind) => (kind === 'database' ? 22 : kind === 'queue' ? 24 : kind === 'user' ? 24 : kind === 'group' ? 4 : 8);
|
|
74
|
+
/** `diagram` block: closed nodes+edges spec drawn as SVG text (never HTML, never mermaid). */
|
|
75
|
+
export function DiagramBlock({ block, text, navigate, act }) {
|
|
76
|
+
const uid = useId();
|
|
77
|
+
const nodes = block.nodes;
|
|
78
|
+
const edges = (block.edges ?? []);
|
|
79
|
+
const direction = block.direction === 'tb' ? 'tb' : 'lr';
|
|
80
|
+
const { centers, width, height } = useMemo(() => layoutDiagram(nodes, edges, direction), [nodes, edges, direction]);
|
|
81
|
+
const open = (n) => {
|
|
82
|
+
const path = n.route?.path;
|
|
83
|
+
if (typeof path === 'string')
|
|
84
|
+
navigate(path);
|
|
85
|
+
else if (n.route)
|
|
86
|
+
act({ action: { do: 'navigate', route: n.route }, blockId: block.id, context: { node: n.id } });
|
|
87
|
+
};
|
|
88
|
+
return (_jsxs("figure", { className: 'm-0 w-full', "data-genui-block": 'diagram', children: [block.title ? _jsx("figcaption", { className: 'mb-1 text-xs font-medium text-muted-foreground', children: text(block.title) }) : null, _jsx("div", { className: 'w-full overflow-auto rounded-lg border bg-card', children: _jsxs("svg", { role: 'img', "aria-label": block.summary, width: width, height: height, viewBox: `0 0 ${width} ${height}`, className: 'block max-w-none', children: [_jsx("defs", { children: _jsx("marker", { id: `${uid}-arrow`, viewBox: '0 0 10 10', refX: '9', refY: '5', markerWidth: '7', markerHeight: '7', orient: 'auto-start-reverse', children: _jsx("path", { d: 'M0,0 L10,5 L0,10 z', fill: 'currentColor' }) }) }), edges.map((e, i) => {
|
|
89
|
+
const a = centers.get(e.from);
|
|
90
|
+
const b = centers.get(e.to);
|
|
91
|
+
if (!a || !b)
|
|
92
|
+
return null;
|
|
93
|
+
const p1 = edgePoint(a, b);
|
|
94
|
+
const p2 = edgePoint(b, a);
|
|
95
|
+
return (_jsxs("g", { className: cn(TEXT_TONE[e.tone ?? 'muted']), children: [_jsx("line", { x1: p1.x, y1: p1.y, x2: p2.x, y2: p2.y, stroke: 'currentColor', strokeWidth: 1.5, strokeDasharray: e.style === 'dashed' ? '5 4' : undefined, markerEnd: `url(#${uid}-arrow)` }), e.label ? (_jsx("text", { x: (p1.x + p2.x) / 2, y: (p1.y + p2.y) / 2 - 4, textAnchor: 'middle', fontSize: 11, className: 'fill-muted-foreground', children: text(e.label) })) : null] }, i));
|
|
96
|
+
}), nodes.map((n) => {
|
|
97
|
+
const c = centers.get(n.id);
|
|
98
|
+
const clickable = !!n.route;
|
|
99
|
+
return (_jsxs("g", { transform: `translate(${c.x - NW / 2},${c.y - NH / 2})`, className: cn(TEXT_TONE[n.tone ?? 'default'], clickable && 'cursor-pointer outline-none focus-visible:[&>rect]:stroke-[3]'), role: clickable ? 'link' : undefined, tabIndex: clickable ? 0 : undefined, "aria-label": clickable ? `${text(n.label)}${n.tone ? ` (${n.tone})` : ''}` : undefined, onClick: clickable ? () => open(n) : undefined, onKeyDown: clickable ? (ev) => (ev.key === 'Enter' || ev.key === ' ') && (ev.preventDefault(), open(n)) : undefined, children: [n.detail ? _jsx("title", { children: n.detail }) : null, _jsx("rect", { width: NW, height: NH, rx: radius(n.kind), className: 'fill-card', stroke: 'currentColor', strokeWidth: n.tone && n.tone !== 'default' ? 2 : 1.25 }), _jsx("text", { x: NW / 2, y: n.kind && n.kind !== 'generic' ? 20 : 29, textAnchor: 'middle', fontSize: 13, fontWeight: 600, className: 'fill-foreground', children: clip(text(n.label), 20) }), n.kind && n.kind !== 'generic' ? (_jsx("text", { x: NW / 2, y: 36, textAnchor: 'middle', fontSize: 9.5, letterSpacing: 0.6, className: 'fill-muted-foreground', children: n.kind.toUpperCase() })) : null] }, n.id));
|
|
100
|
+
})] }) }), _jsxs("ul", { className: 'sr-only', children: [nodes.map((n) => (_jsxs("li", { children: [text(n.label), n.kind ? `, ${n.kind}` : '', n.tone && n.tone !== 'default' ? `, ${n.tone}` : '', n.detail ? `: ${n.detail}` : ''] }, n.id))), edges.map((e, i) => (_jsxs("li", { children: [e.from, " \u2192 ", e.to, e.label ? `: ${text(e.label)}` : ''] }, `e${i}`)))] })] }));
|
|
101
|
+
}
|
|
102
|
+
const clip = (s, n) => (Array.from(s).length > n ? `${Array.from(s).slice(0, n - 1).join('')}…` : s);
|
|
103
|
+
//# sourceMappingURL=diagram.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"diagram.js","sourceRoot":"","sources":["../src/diagram.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,EAAE,EAAE,EAAE,MAAM,qBAAqB,CAAA;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAmB3C,MAAM,EAAE,GAAG,GAAG,CAAA;AACd,MAAM,EAAE,GAAG,EAAE,CAAA;AACb,MAAM,EAAE,GAAG,EAAE,CAAA;AACb,MAAM,EAAE,GAAG,EAAE,CAAA;AACb,MAAM,G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CAAC,CAAC,CAAC,EAAE,EACnD,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,KAJzB,CAAC,CAAC,EAAE,CAKR,CACN,CAAC,EACD,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CACnB,yBACG,CAAC,CAAC,IAAI,cAAK,CAAC,CAAC,EAAE,EACf,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,KAF7B,IAAI,CAAC,EAAE,CAGX,CACN,CAAC,IACC,IACE,CACV,CAAA;AACH,CAAC;AAED,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
|
|
@@ -1222,6 +1222,12 @@ export declare const GENUI_V2_SCHEMA: {
|
|
|
1222
1222
|
readonly $ref: "#/$defs/block_slot";
|
|
1223
1223
|
}, {
|
|
1224
1224
|
readonly $ref: "#/$defs/block_ext";
|
|
1225
|
+
}, {
|
|
1226
|
+
readonly $ref: "#/$defs/block_map";
|
|
1227
|
+
}, {
|
|
1228
|
+
readonly $ref: "#/$defs/block_metric";
|
|
1229
|
+
}, {
|
|
1230
|
+
readonly $ref: "#/$defs/block_diagram";
|
|
1225
1231
|
}];
|
|
1226
1232
|
};
|
|
1227
1233
|
readonly block_stack: {
|
|
@@ -2362,6 +2368,332 @@ export declare const GENUI_V2_SCHEMA: {
|
|
|
2362
2368
|
};
|
|
2363
2369
|
};
|
|
2364
2370
|
};
|
|
2371
|
+
readonly mapPoint: {
|
|
2372
|
+
readonly type: "object";
|
|
2373
|
+
readonly additionalProperties: false;
|
|
2374
|
+
readonly required: readonly ["key", "lat", "lng", "label"];
|
|
2375
|
+
readonly properties: {
|
|
2376
|
+
readonly key: {
|
|
2377
|
+
readonly $ref: "#/$defs/key";
|
|
2378
|
+
};
|
|
2379
|
+
readonly lat: {
|
|
2380
|
+
readonly type: "number";
|
|
2381
|
+
readonly minimum: -90;
|
|
2382
|
+
readonly maximum: 90;
|
|
2383
|
+
};
|
|
2384
|
+
readonly lng: {
|
|
2385
|
+
readonly type: "number";
|
|
2386
|
+
readonly minimum: -180;
|
|
2387
|
+
readonly maximum: 180;
|
|
2388
|
+
};
|
|
2389
|
+
readonly label: {
|
|
2390
|
+
readonly $ref: "#/$defs/label";
|
|
2391
|
+
};
|
|
2392
|
+
readonly status: {
|
|
2393
|
+
readonly type: "string";
|
|
2394
|
+
readonly maxLength: 64;
|
|
2395
|
+
};
|
|
2396
|
+
readonly group: {
|
|
2397
|
+
readonly type: "string";
|
|
2398
|
+
readonly maxLength: 64;
|
|
2399
|
+
};
|
|
2400
|
+
readonly tone: {
|
|
2401
|
+
readonly $ref: "#/$defs/tone";
|
|
2402
|
+
};
|
|
2403
|
+
readonly details: {
|
|
2404
|
+
readonly type: "array";
|
|
2405
|
+
readonly maxItems: 8;
|
|
2406
|
+
readonly items: {
|
|
2407
|
+
readonly type: "object";
|
|
2408
|
+
readonly additionalProperties: false;
|
|
2409
|
+
readonly required: readonly ["value"];
|
|
2410
|
+
readonly properties: {
|
|
2411
|
+
readonly label: {
|
|
2412
|
+
readonly $ref: "#/$defs/label";
|
|
2413
|
+
};
|
|
2414
|
+
readonly value: {
|
|
2415
|
+
readonly $ref: "#/$defs/text";
|
|
2416
|
+
};
|
|
2417
|
+
};
|
|
2418
|
+
};
|
|
2419
|
+
};
|
|
2420
|
+
};
|
|
2421
|
+
};
|
|
2422
|
+
readonly mapFields: {
|
|
2423
|
+
readonly type: "object";
|
|
2424
|
+
readonly additionalProperties: false;
|
|
2425
|
+
readonly description: "Columnas de la fuente que alimentan cada punto.";
|
|
2426
|
+
readonly properties: {
|
|
2427
|
+
readonly key: {
|
|
2428
|
+
readonly $ref: "#/$defs/key";
|
|
2429
|
+
};
|
|
2430
|
+
readonly lat: {
|
|
2431
|
+
readonly $ref: "#/$defs/key";
|
|
2432
|
+
};
|
|
2433
|
+
readonly lng: {
|
|
2434
|
+
readonly $ref: "#/$defs/key";
|
|
2435
|
+
};
|
|
2436
|
+
readonly label: {
|
|
2437
|
+
readonly $ref: "#/$defs/key";
|
|
2438
|
+
};
|
|
2439
|
+
readonly status: {
|
|
2440
|
+
readonly $ref: "#/$defs/key";
|
|
2441
|
+
};
|
|
2442
|
+
readonly group: {
|
|
2443
|
+
readonly $ref: "#/$defs/key";
|
|
2444
|
+
};
|
|
2445
|
+
readonly tone: {
|
|
2446
|
+
readonly $ref: "#/$defs/key";
|
|
2447
|
+
};
|
|
2448
|
+
};
|
|
2449
|
+
};
|
|
2450
|
+
readonly block_map: {
|
|
2451
|
+
readonly type: "object";
|
|
2452
|
+
readonly additionalProperties: false;
|
|
2453
|
+
readonly required: readonly ["type", "summary"];
|
|
2454
|
+
readonly properties: {
|
|
2455
|
+
readonly type: {
|
|
2456
|
+
readonly const: "map";
|
|
2457
|
+
};
|
|
2458
|
+
readonly id: {
|
|
2459
|
+
readonly $ref: "#/$defs/id";
|
|
2460
|
+
};
|
|
2461
|
+
readonly when: {
|
|
2462
|
+
readonly $ref: "#/$defs/predicate";
|
|
2463
|
+
};
|
|
2464
|
+
readonly fallback: {
|
|
2465
|
+
readonly type: "string";
|
|
2466
|
+
readonly maxLength: 2000;
|
|
2467
|
+
};
|
|
2468
|
+
readonly title: {
|
|
2469
|
+
readonly $ref: "#/$defs/label";
|
|
2470
|
+
};
|
|
2471
|
+
readonly points: {
|
|
2472
|
+
readonly type: "array";
|
|
2473
|
+
readonly items: {
|
|
2474
|
+
readonly $ref: "#/$defs/mapPoint";
|
|
2475
|
+
};
|
|
2476
|
+
readonly maxItems: 200;
|
|
2477
|
+
};
|
|
2478
|
+
readonly source: {
|
|
2479
|
+
readonly $ref: "#/$defs/source";
|
|
2480
|
+
};
|
|
2481
|
+
readonly fields: {
|
|
2482
|
+
readonly $ref: "#/$defs/mapFields";
|
|
2483
|
+
};
|
|
2484
|
+
readonly status_tones: {
|
|
2485
|
+
readonly type: "object";
|
|
2486
|
+
readonly maxProperties: 16;
|
|
2487
|
+
readonly propertyNames: {
|
|
2488
|
+
readonly pattern: "^[A-Za-z0-9_.:-]{1,64}$";
|
|
2489
|
+
};
|
|
2490
|
+
readonly additionalProperties: {
|
|
2491
|
+
readonly $ref: "#/$defs/tone";
|
|
2492
|
+
};
|
|
2493
|
+
readonly description: "Color por estado: status -> Tone (nunca colores literales).";
|
|
2494
|
+
};
|
|
2495
|
+
readonly group_by: {
|
|
2496
|
+
readonly enum: readonly ["status", "group"];
|
|
2497
|
+
};
|
|
2498
|
+
readonly legend: {
|
|
2499
|
+
readonly type: "boolean";
|
|
2500
|
+
};
|
|
2501
|
+
readonly cluster: {
|
|
2502
|
+
readonly type: "boolean";
|
|
2503
|
+
};
|
|
2504
|
+
readonly tooltip: {
|
|
2505
|
+
readonly type: "boolean";
|
|
2506
|
+
};
|
|
2507
|
+
readonly detail_panel: {
|
|
2508
|
+
readonly type: "boolean";
|
|
2509
|
+
readonly description: "Panel lateral con el detalle del punto seleccionado.";
|
|
2510
|
+
};
|
|
2511
|
+
readonly on_select: {
|
|
2512
|
+
readonly $ref: "#/$defs/action";
|
|
2513
|
+
};
|
|
2514
|
+
readonly height: {
|
|
2515
|
+
readonly enum: readonly ["sm", "md", "lg"];
|
|
2516
|
+
};
|
|
2517
|
+
readonly summary: {
|
|
2518
|
+
readonly type: "string";
|
|
2519
|
+
readonly maxLength: 2000;
|
|
2520
|
+
readonly description: "Resumen accesible (obligatorio).";
|
|
2521
|
+
};
|
|
2522
|
+
};
|
|
2523
|
+
};
|
|
2524
|
+
readonly block_metric: {
|
|
2525
|
+
readonly type: "object";
|
|
2526
|
+
readonly additionalProperties: false;
|
|
2527
|
+
readonly required: readonly ["type", "label"];
|
|
2528
|
+
readonly properties: {
|
|
2529
|
+
readonly type: {
|
|
2530
|
+
readonly const: "metric";
|
|
2531
|
+
};
|
|
2532
|
+
readonly id: {
|
|
2533
|
+
readonly $ref: "#/$defs/id";
|
|
2534
|
+
};
|
|
2535
|
+
readonly when: {
|
|
2536
|
+
readonly $ref: "#/$defs/predicate";
|
|
2537
|
+
};
|
|
2538
|
+
readonly fallback: {
|
|
2539
|
+
readonly type: "string";
|
|
2540
|
+
readonly maxLength: 2000;
|
|
2541
|
+
};
|
|
2542
|
+
readonly label: {
|
|
2543
|
+
readonly $ref: "#/$defs/label";
|
|
2544
|
+
};
|
|
2545
|
+
readonly value: {
|
|
2546
|
+
readonly $ref: "#/$defs/value";
|
|
2547
|
+
};
|
|
2548
|
+
readonly source: {
|
|
2549
|
+
readonly $ref: "#/$defs/source";
|
|
2550
|
+
};
|
|
2551
|
+
readonly field: {
|
|
2552
|
+
readonly $ref: "#/$defs/key";
|
|
2553
|
+
};
|
|
2554
|
+
readonly format: {
|
|
2555
|
+
readonly $ref: "#/$defs/statFormat";
|
|
2556
|
+
};
|
|
2557
|
+
readonly trend: {
|
|
2558
|
+
readonly enum: readonly ["up", "down", "flat"];
|
|
2559
|
+
};
|
|
2560
|
+
readonly delta: {
|
|
2561
|
+
readonly type: "string";
|
|
2562
|
+
readonly maxLength: 64;
|
|
2563
|
+
};
|
|
2564
|
+
readonly compare: {
|
|
2565
|
+
readonly type: "string";
|
|
2566
|
+
readonly maxLength: 160;
|
|
2567
|
+
};
|
|
2568
|
+
readonly tone: {
|
|
2569
|
+
readonly $ref: "#/$defs/tone";
|
|
2570
|
+
};
|
|
2571
|
+
readonly thresholds: {
|
|
2572
|
+
readonly type: "array";
|
|
2573
|
+
readonly maxItems: 4;
|
|
2574
|
+
readonly items: {
|
|
2575
|
+
readonly type: "object";
|
|
2576
|
+
readonly additionalProperties: false;
|
|
2577
|
+
readonly required: readonly ["at", "tone"];
|
|
2578
|
+
readonly properties: {
|
|
2579
|
+
readonly at: {
|
|
2580
|
+
readonly type: "number";
|
|
2581
|
+
};
|
|
2582
|
+
readonly tone: {
|
|
2583
|
+
readonly $ref: "#/$defs/tone";
|
|
2584
|
+
};
|
|
2585
|
+
};
|
|
2586
|
+
};
|
|
2587
|
+
readonly description: "Tono por severidad: el umbral mayor alcanzado por el valor gana.";
|
|
2588
|
+
};
|
|
2589
|
+
readonly spark: {
|
|
2590
|
+
readonly type: "array";
|
|
2591
|
+
readonly maxItems: 60;
|
|
2592
|
+
readonly items: {
|
|
2593
|
+
readonly type: "number";
|
|
2594
|
+
};
|
|
2595
|
+
};
|
|
2596
|
+
readonly spark_field: {
|
|
2597
|
+
readonly $ref: "#/$defs/key";
|
|
2598
|
+
};
|
|
2599
|
+
readonly hint: {
|
|
2600
|
+
readonly $ref: "#/$defs/label";
|
|
2601
|
+
};
|
|
2602
|
+
};
|
|
2603
|
+
};
|
|
2604
|
+
readonly diagramNode: {
|
|
2605
|
+
readonly type: "object";
|
|
2606
|
+
readonly additionalProperties: false;
|
|
2607
|
+
readonly required: readonly ["id", "label"];
|
|
2608
|
+
readonly properties: {
|
|
2609
|
+
readonly id: {
|
|
2610
|
+
readonly $ref: "#/$defs/key";
|
|
2611
|
+
};
|
|
2612
|
+
readonly label: {
|
|
2613
|
+
readonly $ref: "#/$defs/label";
|
|
2614
|
+
};
|
|
2615
|
+
readonly kind: {
|
|
2616
|
+
readonly enum: readonly ["service", "database", "queue", "user", "external", "group", "generic"];
|
|
2617
|
+
};
|
|
2618
|
+
readonly tone: {
|
|
2619
|
+
readonly $ref: "#/$defs/tone";
|
|
2620
|
+
};
|
|
2621
|
+
readonly detail: {
|
|
2622
|
+
readonly type: "string";
|
|
2623
|
+
readonly maxLength: 160;
|
|
2624
|
+
};
|
|
2625
|
+
readonly route: {
|
|
2626
|
+
readonly $ref: "#/$defs/route";
|
|
2627
|
+
};
|
|
2628
|
+
};
|
|
2629
|
+
};
|
|
2630
|
+
readonly diagramEdge: {
|
|
2631
|
+
readonly type: "object";
|
|
2632
|
+
readonly additionalProperties: false;
|
|
2633
|
+
readonly required: readonly ["from", "to"];
|
|
2634
|
+
readonly properties: {
|
|
2635
|
+
readonly from: {
|
|
2636
|
+
readonly $ref: "#/$defs/key";
|
|
2637
|
+
};
|
|
2638
|
+
readonly to: {
|
|
2639
|
+
readonly $ref: "#/$defs/key";
|
|
2640
|
+
};
|
|
2641
|
+
readonly label: {
|
|
2642
|
+
readonly $ref: "#/$defs/label";
|
|
2643
|
+
};
|
|
2644
|
+
readonly tone: {
|
|
2645
|
+
readonly $ref: "#/$defs/tone";
|
|
2646
|
+
};
|
|
2647
|
+
readonly style: {
|
|
2648
|
+
readonly enum: readonly ["solid", "dashed"];
|
|
2649
|
+
};
|
|
2650
|
+
};
|
|
2651
|
+
};
|
|
2652
|
+
readonly block_diagram: {
|
|
2653
|
+
readonly type: "object";
|
|
2654
|
+
readonly additionalProperties: false;
|
|
2655
|
+
readonly required: readonly ["type", "nodes", "summary"];
|
|
2656
|
+
readonly properties: {
|
|
2657
|
+
readonly type: {
|
|
2658
|
+
readonly const: "diagram";
|
|
2659
|
+
};
|
|
2660
|
+
readonly id: {
|
|
2661
|
+
readonly $ref: "#/$defs/id";
|
|
2662
|
+
};
|
|
2663
|
+
readonly when: {
|
|
2664
|
+
readonly $ref: "#/$defs/predicate";
|
|
2665
|
+
};
|
|
2666
|
+
readonly fallback: {
|
|
2667
|
+
readonly type: "string";
|
|
2668
|
+
readonly maxLength: 2000;
|
|
2669
|
+
};
|
|
2670
|
+
readonly title: {
|
|
2671
|
+
readonly $ref: "#/$defs/label";
|
|
2672
|
+
};
|
|
2673
|
+
readonly direction: {
|
|
2674
|
+
readonly enum: readonly ["lr", "tb"];
|
|
2675
|
+
};
|
|
2676
|
+
readonly nodes: {
|
|
2677
|
+
readonly type: "array";
|
|
2678
|
+
readonly items: {
|
|
2679
|
+
readonly $ref: "#/$defs/diagramNode";
|
|
2680
|
+
};
|
|
2681
|
+
readonly maxItems: 60;
|
|
2682
|
+
readonly minItems: 1;
|
|
2683
|
+
};
|
|
2684
|
+
readonly edges: {
|
|
2685
|
+
readonly type: "array";
|
|
2686
|
+
readonly items: {
|
|
2687
|
+
readonly $ref: "#/$defs/diagramEdge";
|
|
2688
|
+
};
|
|
2689
|
+
readonly maxItems: 120;
|
|
2690
|
+
};
|
|
2691
|
+
readonly summary: {
|
|
2692
|
+
readonly type: "string";
|
|
2693
|
+
readonly maxLength: 2000;
|
|
2694
|
+
};
|
|
2695
|
+
};
|
|
2696
|
+
};
|
|
2365
2697
|
};
|
|
2366
2698
|
};
|
|
2367
2699
|
/** Campos permitidos y requeridos por tipo de bloque (derivado del esquema). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genui-v2-schema.d.ts","sourceRoot":"","sources":["../../src/generated/genui-v2-schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"genui-v2-schema.d.ts","sourceRoot":"","sources":["../../src/generated/genui-v2-schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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