@uibot/registry 0.6.0 → 0.7.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/dist/index.js +9 -9
- package/dist/shadcn/r/admin-dashboard.json +70 -0
- package/dist/shadcn/r/admin-shell.json +148 -0
- package/dist/shadcn/r/ai-chat.json +74 -0
- package/dist/shadcn/r/analytics-dashboard.json +65 -0
- package/dist/shadcn/r/app-shell-floating.json +54 -0
- package/dist/shadcn/r/app-shell-icon-rail.json +54 -0
- package/dist/shadcn/r/app-shell-inset.json +54 -0
- package/dist/shadcn/r/app-shell-settings.json +54 -0
- package/dist/shadcn/r/app-shell-sidebar.json +54 -0
- package/dist/shadcn/r/app-shell-workspace.json +54 -0
- package/dist/shadcn/r/auth.json +61 -0
- package/dist/shadcn/r/blog.json +64 -0
- package/dist/shadcn/r/charts.json +211 -0
- package/dist/shadcn/r/content.json +444 -0
- package/dist/shadcn/r/creation-html-generation.json +29 -0
- package/dist/shadcn/r/creation-reference-generation.json +29 -0
- package/dist/shadcn/r/creation-revision-export.json +27 -0
- package/dist/shadcn/r/creation-shared.json +24 -0
- package/dist/shadcn/r/creation-workspace.json +33 -0
- package/dist/shadcn/r/crm.json +67 -0
- package/dist/shadcn/r/dashboard.json +147 -0
- package/dist/shadcn/r/data-studio.json +368 -0
- package/dist/shadcn/r/data-table.json +224 -0
- package/dist/shadcn/r/data.json +320 -0
- package/dist/shadcn/r/ecommerce.json +65 -0
- package/dist/shadcn/r/feedback.json +300 -0
- package/dist/shadcn/r/field.json +164 -0
- package/dist/shadcn/r/form.json +425 -0
- package/dist/shadcn/r/grid.json +188 -0
- package/dist/shadcn/r/interactive.json +355 -0
- package/dist/shadcn/r/kanban.json +154 -0
- package/dist/shadcn/r/layout.json +529 -0
- package/dist/shadcn/r/lms.json +74 -0
- package/dist/shadcn/r/marketing.json +402 -0
- package/dist/shadcn/r/nav.json +257 -0
- package/dist/shadcn/r/portfolio.json +62 -0
- package/dist/shadcn/r/presentation.json +454 -0
- package/dist/shadcn/r/pricing.json +63 -0
- package/dist/shadcn/r/primitives.json +360 -0
- package/dist/shadcn/r/saas-landing.json +60 -0
- package/dist/shadcn/r/sections.json +734 -0
- package/dist/shadcn/r/settings.json +72 -0
- package/dist/shadcn/r/shadcn-admin-shell.json +49 -0
- package/dist/shadcn/r/shadcn-admin.json +76 -0
- package/dist/shadcn/r/store.json +75 -0
- package/dist/shadcn/r/support-inbox.json +63 -0
- package/dist/shadcn/r/team-directory.json +59 -0
- package/dist/shadcn/r/uibot-base.json +30 -0
- package/dist/shadcn/r/uibot-theme.json +86 -0
- package/dist/shadcn/r/workspace.json +174 -0
- package/dist/shadcn/registry.json +615 -0
- package/dist/shadcn.d.ts +10 -5
- package/package.json +2 -2
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "blog",
|
|
4
|
+
"type": "registry:block",
|
|
5
|
+
"description": "The Northwind Journal",
|
|
6
|
+
"registryDependencies": [
|
|
7
|
+
"@uibot/data",
|
|
8
|
+
"@uibot/form",
|
|
9
|
+
"@uibot/grid",
|
|
10
|
+
"@uibot/interactive",
|
|
11
|
+
"@uibot/layout",
|
|
12
|
+
"@uibot/nav"
|
|
13
|
+
],
|
|
14
|
+
"files": [
|
|
15
|
+
{
|
|
16
|
+
"path": "lib/uibot/templates/blog.uibot.yaml",
|
|
17
|
+
"target": "lib/uibot/templates/blog.uibot.yaml",
|
|
18
|
+
"content": "version: \"2.0\"\npages:\n - id: blog\n path: /\n title: The Northwind Journal\n blocks:\n - type: PageLayout\n props:\n title: The Journal\n slots:\n headerActions:\n - type: Link\n props:\n label: Subscribe\n href: \"#\"\n variant: button\n children:\n - type: Box\n props:\n className: \"flex flex-col gap-2 py-10 border-b border-border mb-8\"\n children:\n - type: BadgeGroup\n props:\n items:\n - label: Engineering\n tone: info\n - type: Heading\n props:\n level: 1\n text: \"Building a local-first sync engine\"\n - type: Paragraph\n props:\n muted: true\n text: \"By Ada Lovelace · March 14, 2026 · 8 min read\"\n - type: Grid\n props:\n cols: \"3\"\n gap: lg\n children:\n # ── Article body ───────────────────────────────────\n - type: Box\n props:\n className: \"col-span-2\"\n children:\n - type: Markdown\n props:\n content: |\n Most apps treat the network as the source of truth. We flipped that.\n\n ## Why local-first?\n\n When the **local store** is authoritative, the UI never waits on a\n round-trip. Reads and writes resolve instantly, then sync in the\n background. The result is an interface that feels *native* even on\n flaky connections.\n\n - Zero perceived latency on every interaction\n - Conflict-free merges via CRDTs\n - Offline by default, online when possible\n\n ## The hard part\n\n Ordering. We assign each mutation a `lamport` timestamp and replay\n them deterministically across clients. The merge function is pure,\n so two clients always converge on the same state.\n\n > The best sync is the sync you never notice.\n\n Next week we'll dig into how we keep the wire format under 100 bytes\n per mutation.\n # ── Sidebar ────────────────────────────────────────\n - type: Box\n props:\n className: \"flex flex-col gap-4\"\n children:\n - type: Card\n props:\n title: More posts\n children:\n - type: List\n props:\n divided: true\n children:\n - type: Link\n props:\n label: \"Designing for keyboard-first teams\"\n href: \"#\"\n - type: Link\n props:\n label: \"How we cut bundle size by 40%\"\n href: \"#\"\n - type: Link\n props:\n label: \"A field guide to CRDTs\"\n href: \"#\"\n - type: Card\n props:\n title: Newsletter\n description: \"One thoughtful email a week\"\n children:\n - type: Form\n children:\n - type: \"Form.Input\"\n props:\n name: email\n type: email\n placeholder: you@company.com\n - type: \"Form.Submit\"\n props:\n label: Subscribe\n full: true\n",
|
|
19
|
+
"type": "registry:lib"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "lib/uibot/templates/blog.uibot.json",
|
|
23
|
+
"target": "lib/uibot/templates/blog.uibot.json",
|
|
24
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"blog\",\n \"channel\": \"public\",\n \"template\": {\n \"file\": \"blog.uibot.yaml\",\n \"contract\": {\n \"name\": \"blog\",\n \"description\": \"The Northwind Journal\",\n \"level\": \"L4\",\n \"category\": \"template\",\n \"keywords\": [\n \"blog\",\n \"blog\",\n \"uibot-template\"\n ],\n \"composedFrom\": [\n \"BadgeGroup\",\n \"Box\",\n \"Card\",\n \"Form\",\n \"Form.Input\",\n \"Form.Submit\",\n \"Grid\",\n \"Heading\",\n \"Link\",\n \"List\",\n \"Markdown\",\n \"PageLayout\",\n \"Paragraph\"\n ]\n }\n }\n}\n",
|
|
25
|
+
"type": "registry:lib"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"meta": {
|
|
29
|
+
"uibot": {
|
|
30
|
+
"schema": "uibot.registry.item.v1",
|
|
31
|
+
"item": "blog",
|
|
32
|
+
"channel": "public",
|
|
33
|
+
"template": {
|
|
34
|
+
"file": "blog.uibot.yaml",
|
|
35
|
+
"contract": {
|
|
36
|
+
"name": "blog",
|
|
37
|
+
"description": "The Northwind Journal",
|
|
38
|
+
"level": "L4",
|
|
39
|
+
"category": "template",
|
|
40
|
+
"keywords": [
|
|
41
|
+
"blog",
|
|
42
|
+
"blog",
|
|
43
|
+
"uibot-template"
|
|
44
|
+
],
|
|
45
|
+
"composedFrom": [
|
|
46
|
+
"BadgeGroup",
|
|
47
|
+
"Box",
|
|
48
|
+
"Card",
|
|
49
|
+
"Form",
|
|
50
|
+
"Form.Input",
|
|
51
|
+
"Form.Submit",
|
|
52
|
+
"Grid",
|
|
53
|
+
"Heading",
|
|
54
|
+
"Link",
|
|
55
|
+
"List",
|
|
56
|
+
"Markdown",
|
|
57
|
+
"PageLayout",
|
|
58
|
+
"Paragraph"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
|
|
3
|
+
"name": "charts",
|
|
4
|
+
"type": "registry:ui",
|
|
5
|
+
"description": "Pure-SVG line / area chart with no third-party dependency. Draws one polyline per series on a shared vertical scale. Alias: LineChart.",
|
|
6
|
+
"dependencies": [
|
|
7
|
+
"react"
|
|
8
|
+
],
|
|
9
|
+
"registryDependencies": [
|
|
10
|
+
"@uibot/uibot-base"
|
|
11
|
+
],
|
|
12
|
+
"files": [
|
|
13
|
+
{
|
|
14
|
+
"path": "components/uibot/charts.tsx",
|
|
15
|
+
"target": "components/uibot/charts.tsx",
|
|
16
|
+
"content": "import type { RendererComponent } from \"@/lib/uibot-renderer\";\nimport { cn } from \"@/lib/utils\";\n\ninterface Series {\n name?: string;\n points: number[];\n area?: boolean;\n}\n\nfunction parseSeries(raw: unknown): Series[] {\n if (!Array.isArray(raw)) return [];\n return raw\n .map((s) => {\n if (!s || typeof s !== \"object\") return null;\n const rec = s as Record<string, unknown>;\n const points = Array.isArray(rec[\"points\"])\n ? rec[\"points\"].map((p) => (typeof p === \"number\" ? p : Number(p) || 0))\n : [];\n return {\n name: typeof rec[\"name\"] === \"string\" ? rec[\"name\"] : undefined,\n points,\n area: rec[\"area\"] === true,\n } as Series;\n })\n .filter((s): s is Series => s !== null && s.points.length > 0);\n}\n\n// Padding reserved around the plot so strokes are not clipped at the edges.\nconst PAD = 8;\n\n// Map a series' points into an SVG polyline `points` string. min/max are taken\n// across every series so all lines share one vertical scale.\nfunction toPolyline(points: number[], w: number, h: number, min: number, max: number): string {\n const range = max - min || 1;\n const innerW = w - PAD * 2;\n const innerH = h - PAD * 2;\n const step = points.length > 1 ? innerW / (points.length - 1) : 0;\n return points\n .map((value, i) => {\n const x = PAD + step * i;\n const y = PAD + innerH - ((value - min) / range) * innerH;\n return `${x.toFixed(1)},${y.toFixed(1)}`;\n })\n .join(\" \");\n}\n\n// A small palette of theme-token colours, cycled per series.\nconst STROKE = [\"text-primary\", \"text-sky-500\", \"text-emerald-500\", \"text-amber-500\"];\n\n/**\n * Pure-SVG line / area chart. No third-party charting dependency (keeps the\n * package peerDeps-only). Intended for small dogfood datasets (≤ ~200 points\n * per series); larger inputs produce heavy DOM.\n */\nexport const TrendChart: RendererComponent = (props) => {\n const series = parseSeries(props[\"series\"]);\n const title = typeof props[\"title\"] === \"string\" ? props[\"title\"] : \"\";\n const w = typeof props[\"width\"] === \"number\" ? props[\"width\"] : 480;\n const h = typeof props[\"height\"] === \"number\" ? props[\"height\"] : 160;\n\n const all = series.flatMap((s) => s.points);\n const min = all.length ? Math.min(...all) : 0;\n const max = all.length ? Math.max(...all) : 1;\n\n return (\n <div\n className=\"uibot-trendchart bg-card text-card-foreground rounded-xl border p-4 shadow-sm\"\n data-uibot-type=\"TrendChart\"\n >\n {title && <h3 className=\"mb-2 text-sm font-medium\">{title}</h3>}\n {series.length === 0 ? (\n <p className=\"py-6 text-center text-sm text-muted-foreground\">No data</p>\n ) : (\n <svg\n viewBox={`0 0 ${w} ${h}`}\n className=\"h-auto w-full\"\n role=\"img\"\n aria-label={title || \"Trend chart\"}\n preserveAspectRatio=\"none\"\n >\n {/* baseline grid lines */}\n {[0, 0.25, 0.5, 0.75, 1].map((t) => {\n const y = PAD + (h - PAD * 2) * t;\n return (\n <line\n key={t}\n x1={PAD}\n x2={w - PAD}\n y1={y}\n y2={y}\n className=\"text-border\"\n stroke=\"currentColor\"\n strokeWidth={0.5}\n />\n );\n })}\n {series.map((s, i) => {\n const pts = toPolyline(s.points, w, h, min, max);\n const colour = STROKE[i % STROKE.length];\n return (\n <g key={i} className={colour}>\n {s.area && (\n <polygon\n fill=\"currentColor\"\n fillOpacity={0.12}\n points={`${PAD},${h - PAD} ${pts} ${w - PAD},${h - PAD}`}\n />\n )}\n <polyline\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={2}\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n points={pts}\n />\n </g>\n );\n })}\n </svg>\n )}\n {series.some((s) => s.name) && (\n <ul className=\"mt-3 flex flex-wrap gap-4\">\n {series.map((s, i) => (\n <li key={i} className=\"flex items-center gap-1.5 text-xs text-muted-foreground\">\n <span className={cn(\"h-2 w-2 rounded-full bg-current\", STROKE[i % STROKE.length])} />\n {s.name ?? `Series ${i + 1}`}\n </li>\n ))}\n </ul>\n )}\n </div>\n );\n};\n\n/** Alias of {@link TrendChart} for specs that prefer the LineChart name. */\nexport const LineChart = TrendChart;\n",
|
|
17
|
+
"type": "registry:ui"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"path": "components/uibot/charts.uibot.json",
|
|
21
|
+
"target": "components/uibot/charts.uibot.json",
|
|
22
|
+
"content": "{\n \"schema\": \"uibot.registry.item.v1\",\n \"item\": \"charts\",\n \"channel\": \"public\",\n \"components\": [\n {\n \"name\": \"LineChart\",\n \"export\": \"LineChart\",\n \"module\": \"charts.tsx\",\n \"catalog\": {\n \"name\": \"LineChart\",\n \"description\": \"Alias of TrendChart — pure-SVG multi-series line / area chart.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"chart\",\n \"line\",\n \"svg\"\n ],\n \"props\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"series\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"points\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"number\"\n }\n },\n \"area\": {\n \"type\": \"boolean\"\n }\n }\n }\n },\n \"width\": {\n \"type\": \"integer\",\n \"default\": 480\n },\n \"height\": {\n \"type\": \"integer\",\n \"default\": 160\n }\n },\n \"usageScenarios\": [\n \"Same as TrendChart; use whichever name reads better in the spec\"\n ],\n \"constraints\": [\n \"Identical implementation to TrendChart\"\n ]\n }\n },\n {\n \"name\": \"TrendChart\",\n \"export\": \"TrendChart\",\n \"module\": \"charts.tsx\",\n \"catalog\": {\n \"name\": \"TrendChart\",\n \"description\": \"Pure-SVG line / area chart with no third-party dependency. Draws one polyline per series on a shared vertical scale. Alias: LineChart.\",\n \"category\": \"composite\",\n \"level\": \"L2\",\n \"tags\": [\n \"chart\",\n \"trend\",\n \"line\",\n \"svg\"\n ],\n \"props\": {\n \"title\": {\n \"type\": \"string\"\n },\n \"series\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"object\",\n \"properties\": {\n \"name\": {\n \"type\": \"string\"\n },\n \"points\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"number\"\n }\n },\n \"area\": {\n \"type\": \"boolean\",\n \"default\": false\n }\n }\n },\n \"description\": \"[{name, points:number[], area?}]\"\n },\n \"labels\": {\n \"type\": \"array\",\n \"items\": {\n \"type\": \"string\"\n },\n \"description\": \"Optional x-axis labels\"\n },\n \"width\": {\n \"type\": \"integer\",\n \"default\": 480\n },\n \"height\": {\n \"type\": \"integer\",\n \"default\": 160\n }\n },\n \"usageScenarios\": [\n \"Evolution score trend over versions\",\n \"Daily active users line chart\"\n ],\n \"constraints\": [\n \"Keep each series under ~200 points; larger inputs produce heavy SVG DOM\"\n ]\n }\n }\n ]\n}\n",
|
|
23
|
+
"type": "registry:ui"
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"meta": {
|
|
27
|
+
"category": "composite",
|
|
28
|
+
"level": "L2",
|
|
29
|
+
"props": {
|
|
30
|
+
"title": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"series": {
|
|
34
|
+
"type": "array",
|
|
35
|
+
"items": {
|
|
36
|
+
"type": "object",
|
|
37
|
+
"properties": {
|
|
38
|
+
"name": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"points": {
|
|
42
|
+
"type": "array",
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "number"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"area": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"default": false
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"description": "[{name, points:number[], area?}]"
|
|
54
|
+
},
|
|
55
|
+
"labels": {
|
|
56
|
+
"type": "array",
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"description": "Optional x-axis labels"
|
|
61
|
+
},
|
|
62
|
+
"width": {
|
|
63
|
+
"type": "integer",
|
|
64
|
+
"default": 480
|
|
65
|
+
},
|
|
66
|
+
"height": {
|
|
67
|
+
"type": "integer",
|
|
68
|
+
"default": 160
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"scenarios": [
|
|
72
|
+
"Evolution score trend over versions",
|
|
73
|
+
"Daily active users line chart"
|
|
74
|
+
],
|
|
75
|
+
"constraints": [
|
|
76
|
+
"Keep each series under ~200 points; larger inputs produce heavy SVG DOM"
|
|
77
|
+
],
|
|
78
|
+
"provides": [
|
|
79
|
+
"TrendChart",
|
|
80
|
+
"LineChart"
|
|
81
|
+
],
|
|
82
|
+
"uibot": {
|
|
83
|
+
"schema": "uibot.registry.item.v1",
|
|
84
|
+
"item": "charts",
|
|
85
|
+
"channel": "public",
|
|
86
|
+
"components": [
|
|
87
|
+
{
|
|
88
|
+
"name": "LineChart",
|
|
89
|
+
"export": "LineChart",
|
|
90
|
+
"module": "charts.tsx",
|
|
91
|
+
"catalog": {
|
|
92
|
+
"name": "LineChart",
|
|
93
|
+
"description": "Alias of TrendChart — pure-SVG multi-series line / area chart.",
|
|
94
|
+
"category": "composite",
|
|
95
|
+
"level": "L2",
|
|
96
|
+
"tags": [
|
|
97
|
+
"chart",
|
|
98
|
+
"line",
|
|
99
|
+
"svg"
|
|
100
|
+
],
|
|
101
|
+
"props": {
|
|
102
|
+
"title": {
|
|
103
|
+
"type": "string"
|
|
104
|
+
},
|
|
105
|
+
"series": {
|
|
106
|
+
"type": "array",
|
|
107
|
+
"items": {
|
|
108
|
+
"type": "object",
|
|
109
|
+
"properties": {
|
|
110
|
+
"name": {
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"points": {
|
|
114
|
+
"type": "array",
|
|
115
|
+
"items": {
|
|
116
|
+
"type": "number"
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"area": {
|
|
120
|
+
"type": "boolean"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"width": {
|
|
126
|
+
"type": "integer",
|
|
127
|
+
"default": 480
|
|
128
|
+
},
|
|
129
|
+
"height": {
|
|
130
|
+
"type": "integer",
|
|
131
|
+
"default": 160
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
"usageScenarios": [
|
|
135
|
+
"Same as TrendChart; use whichever name reads better in the spec"
|
|
136
|
+
],
|
|
137
|
+
"constraints": [
|
|
138
|
+
"Identical implementation to TrendChart"
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "TrendChart",
|
|
144
|
+
"export": "TrendChart",
|
|
145
|
+
"module": "charts.tsx",
|
|
146
|
+
"catalog": {
|
|
147
|
+
"name": "TrendChart",
|
|
148
|
+
"description": "Pure-SVG line / area chart with no third-party dependency. Draws one polyline per series on a shared vertical scale. Alias: LineChart.",
|
|
149
|
+
"category": "composite",
|
|
150
|
+
"level": "L2",
|
|
151
|
+
"tags": [
|
|
152
|
+
"chart",
|
|
153
|
+
"trend",
|
|
154
|
+
"line",
|
|
155
|
+
"svg"
|
|
156
|
+
],
|
|
157
|
+
"props": {
|
|
158
|
+
"title": {
|
|
159
|
+
"type": "string"
|
|
160
|
+
},
|
|
161
|
+
"series": {
|
|
162
|
+
"type": "array",
|
|
163
|
+
"items": {
|
|
164
|
+
"type": "object",
|
|
165
|
+
"properties": {
|
|
166
|
+
"name": {
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
169
|
+
"points": {
|
|
170
|
+
"type": "array",
|
|
171
|
+
"items": {
|
|
172
|
+
"type": "number"
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"area": {
|
|
176
|
+
"type": "boolean",
|
|
177
|
+
"default": false
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"description": "[{name, points:number[], area?}]"
|
|
182
|
+
},
|
|
183
|
+
"labels": {
|
|
184
|
+
"type": "array",
|
|
185
|
+
"items": {
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
"description": "Optional x-axis labels"
|
|
189
|
+
},
|
|
190
|
+
"width": {
|
|
191
|
+
"type": "integer",
|
|
192
|
+
"default": 480
|
|
193
|
+
},
|
|
194
|
+
"height": {
|
|
195
|
+
"type": "integer",
|
|
196
|
+
"default": 160
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"usageScenarios": [
|
|
200
|
+
"Evolution score trend over versions",
|
|
201
|
+
"Daily active users line chart"
|
|
202
|
+
],
|
|
203
|
+
"constraints": [
|
|
204
|
+
"Keep each series under ~200 points; larger inputs produce heavy SVG DOM"
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|