@dashspec/renderer 0.1.49 → 0.1.51
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/CHANGELOG.md +18 -0
- package/README.md +9 -3
- package/dist/{chunk-JLMFLGL5.js → chunk-22YUF23C.js} +6 -7
- package/dist/chunk-22YUF23C.js.map +1 -0
- package/dist/{core-YqAhfzKG.d.ts → core-DRAX-WnY.d.ts} +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/core.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-JLMFLGL5.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,24 @@ under the new version.
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.1.51] - 2026-11-19
|
|
18
|
+
|
|
19
|
+
### Fixed
|
|
20
|
+
|
|
21
|
+
- Bar charts with value labels keep 28 px above the plot, so the label of a bar reaching the top of the axis isn't cut
|
|
22
|
+
off.
|
|
23
|
+
|
|
24
|
+
## [0.1.50] - 2026-11-19
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- Validation doesn't warn about a templated value of a widget prop with fixed choices (e.g. a Button `variant` chosen
|
|
29
|
+
by state); it is checked when it resolves at runtime.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
|
|
33
|
+
- README: FlowMap, light/dark and `colorMode`, `scale.parts`, `token`, and the `ui` slots (icons, filter bar, drawer).
|
|
34
|
+
|
|
17
35
|
## [0.1.49] - 2026-11-19
|
|
18
36
|
|
|
19
37
|
### Fixed
|
package/README.md
CHANGED
|
@@ -10,8 +10,8 @@ You describe a dashboard once as a JSON document (layout, filters, data sources,
|
|
|
10
10
|
what happens on click), and `<DashboardRenderer>` draws it. A new dashboard, or a new
|
|
11
11
|
version of one, is a new document — not new frontend code and not a redeploy.
|
|
12
12
|
|
|
13
|
-
- **32 built-in widgets**: KPIs, charts, tables, tiles, status,
|
|
14
|
-
small building blocks, nestable at any depth.
|
|
13
|
+
- **32 built-in widgets**: KPIs, charts, tables, tiles, status, a process-flow map (`FlowMap`), layout
|
|
14
|
+
containers and small building blocks, nestable at any depth.
|
|
15
15
|
- **Data built in**: REST, GraphQL, SSE and WebSocket sources, auth and token refresh,
|
|
16
16
|
caching, polling, transforms.
|
|
17
17
|
- **Interactive**: global filters, cross-filtering, drill-down, pop-ups, 28 actions,
|
|
@@ -221,7 +221,13 @@ document (`{ "Table": "acme.DataGrid" }`). See [docs/widgets.md](docs/widgets.md
|
|
|
221
221
|
Everything is styled from design tokens exposed as `--ds-*` CSS variables. Build a theme
|
|
222
222
|
with `createTheme` (a short form of brand colours, font, radius and density, or full
|
|
223
223
|
overrides per light and dark mode), and let documents pick a registered theme by name with
|
|
224
|
-
`"display": { "theme": "acme-dark" }`.
|
|
224
|
+
`"display": { "theme": "acme-dark" }`. Every theme has light and dark colours; the host picks with `colorMode`.
|
|
225
|
+
The parts every widget shares (titles, labels, values, tiles, tables, legends…) are restyled with typed values in
|
|
226
|
+
`scale.parts`, without CSS or class names, and `token.color("text.secondary")` refers to the active theme's values.
|
|
227
|
+
See [docs/theming.md](docs/theming.md).
|
|
228
|
+
|
|
229
|
+
Bring your own pieces through `ui`: icons (`ui.icons`), a whole filter bar (`ui.FilterBar`) or your app's drawer
|
|
230
|
+
(`ui.Drawer`). See [docs/design-systems.md](docs/design-systems.md).
|
|
225
231
|
|
|
226
232
|
## State, events and actions
|
|
227
233
|
|
|
@@ -1473,7 +1473,7 @@ function migrateDocument(input, widgets = []) {
|
|
|
1473
1473
|
import { z as z10 } from "zod";
|
|
1474
1474
|
|
|
1475
1475
|
// src/version.ts
|
|
1476
|
-
var RENDERER_VERSION = "0.1.
|
|
1476
|
+
var RENDERER_VERSION = "0.1.51";
|
|
1477
1477
|
var parse2 = (v) => {
|
|
1478
1478
|
const m = /^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/.exec(v.trim());
|
|
1479
1479
|
return m ? [Number(m[1]), Number(m[2] ?? 0), Number(m[3] ?? 0)] : void 0;
|
|
@@ -1836,11 +1836,10 @@ function validateDocument(input, options = {}) {
|
|
|
1836
1836
|
`${p.kind} version ${version} is newer than this renderer supports (${w.version}); update the renderer to show it fully`
|
|
1837
1837
|
);
|
|
1838
1838
|
if (w.schema) {
|
|
1839
|
-
const r = tolerantParse(
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
);
|
|
1839
|
+
const r = tolerantParse(w.schema, p.spec ?? {}, (path, code, message) => {
|
|
1840
|
+
if (code === "unknown-value" && isDynamic(p.spec, path)) return;
|
|
1841
|
+
warn([...at, "spec", ...path], code, message);
|
|
1842
|
+
});
|
|
1844
1843
|
if (!r.success)
|
|
1845
1844
|
for (const i of r.error.issues) {
|
|
1846
1845
|
if (isDynamic(p.spec, i.path)) continue;
|
|
@@ -3238,4 +3237,4 @@ export {
|
|
|
3238
3237
|
RepeaterContract,
|
|
3239
3238
|
builtInWidgetChecks
|
|
3240
3239
|
};
|
|
3241
|
-
//# sourceMappingURL=chunk-
|
|
3240
|
+
//# sourceMappingURL=chunk-22YUF23C.js.map
|