@syntrologie/runtime-sdk 2.8.0-canary.140 → 2.8.0-canary.142
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/CAPABILITIES.md +2 -9
- package/dist/adaptives/adaptive-viz/index.js +16 -16
- package/dist/adaptives/adaptive-viz/index.js.map +4 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/smart-canvas.esm.js +2 -2
- package/dist/smart-canvas.esm.js.map +1 -1
- package/dist/smart-canvas.js +2 -2
- package/dist/smart-canvas.js.map +1 -1
- package/dist/smart-canvas.min.js +2 -2
- package/dist/smart-canvas.min.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/schema/canvas-config.schema.json +418 -227
package/CAPABILITIES.md
CHANGED
|
@@ -1208,7 +1208,7 @@ Renders a fullscreen Canvas 2D celebration effect. One action kind with a plugga
|
|
|
1208
1208
|
|
|
1209
1209
|
| Widget ID | Purpose |
|
|
1210
1210
|
|-----------|---------|
|
|
1211
|
-
| `adaptive-viz:chart` | Renders a chart given typed props (bar / line / table)
|
|
1211
|
+
| `adaptive-viz:chart` | Renders a chart given typed props (bar / line / table) |
|
|
1212
1212
|
|
|
1213
1213
|
## Configuration Shape (per tile)
|
|
1214
1214
|
|
|
@@ -1217,7 +1217,7 @@ Renders a fullscreen Canvas 2D celebration effect. One action kind with a plugga
|
|
|
1217
1217
|
"id": "tile-id",
|
|
1218
1218
|
"widget": "adaptive-viz:chart",
|
|
1219
1219
|
"props": {
|
|
1220
|
-
"layout": "bar",
|
|
1220
|
+
"layout": "bar", // or "line", "table"
|
|
1221
1221
|
// ...layout-specific fields (see schema.ts)
|
|
1222
1222
|
}
|
|
1223
1223
|
}
|
|
@@ -1234,9 +1234,6 @@ Continuous line chart. Inputs: `data`, `xField`, `yField`, optional `seriesField
|
|
|
1234
1234
|
### `table`
|
|
1235
1235
|
Tabular data display (rendered as Vega-Lite text marks in a grid). Inputs: `data`, `columns: { field, header }[]`.
|
|
1236
1236
|
|
|
1237
|
-
### `custom`
|
|
1238
|
-
Free-form Vega-Lite v5 spec. Inputs: `spec: VegaLiteSpec`. Constraint: data must be inline (`spec.data.values`); URL-based data sources are rejected at runtime.
|
|
1239
|
-
|
|
1240
1237
|
## Actions
|
|
1241
1238
|
|
|
1242
1239
|
None. This widget renders only; it does not emit DOM-mutation actions.
|
|
@@ -1245,10 +1242,6 @@ None. This widget renders only; it does not emit DOM-mutation actions.
|
|
|
1245
1242
|
|
|
1246
1243
|
`--sc-color-primary`, `--sc-color-primary-hover`, `--sc-overlay-text-color`, `--sc-font-family`, `--sc-tile-background`. See `theme.ts` for the full mapping to Vega-Lite `config` properties.
|
|
1247
1244
|
|
|
1248
|
-
## Security Note
|
|
1249
|
-
|
|
1250
|
-
The `custom` layout passes a user-supplied Vega-Lite spec through. Runtime validation in `validation.ts` rejects specs with non-inline data sources (e.g. `data.url`), but a more thorough security review of the Vega-Lite spec surface (transforms, projections, image marks) is **TODO(security)** — see `validation.ts`.
|
|
1251
|
-
|
|
1252
1245
|
|
|
1253
1246
|
---
|
|
1254
1247
|
|