@syntrologie/runtime-sdk 2.8.0-canary.147 → 2.8.0-canary.149

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/version.d.ts CHANGED
@@ -10,4 +10,4 @@
10
10
  *
11
11
  * @since 2.0.0
12
12
  */
13
- export declare const SDK_VERSION = "2.8.0-canary.147";
13
+ export declare const SDK_VERSION = "2.8.0-canary.149";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syntrologie/runtime-sdk",
3
- "version": "2.8.0-canary.147",
3
+ "version": "2.8.0-canary.149",
4
4
  "description": "Syntrologie Runtime SDK for web experimentation and analytics",
5
5
  "license": "Proprietary",
6
6
  "private": false,
@@ -6467,9 +6467,53 @@
6467
6467
  ],
6468
6468
  "additionalProperties": false,
6469
6469
  "description": "Table layout: rows × named columns rendered as a grid of text cells."
6470
+ },
6471
+ {
6472
+ "type": "object",
6473
+ "properties": {
6474
+ "layout": {
6475
+ "type": "string",
6476
+ "const": "pie",
6477
+ "description": "Pie/donut chart. Use for part-of-whole compositions (e.g. ingredient percentages, share of segment). Best with ≤ ~10 slices."
6478
+ },
6479
+ "data": {
6480
+ "type": "array",
6481
+ "items": {
6482
+ "type": "object",
6483
+ "additionalProperties": {},
6484
+ "description": "A single row of inline data. Keys are column names; values are primitives or strings."
6485
+ },
6486
+ "description": "Inline rows. Each object is one slice. Must be self-contained — no URLs."
6487
+ },
6488
+ "categoryField": {
6489
+ "type": "string",
6490
+ "description": "Name of the field in `data` that names each slice (the legend / colour key)."
6491
+ },
6492
+ "valueField": {
6493
+ "type": "string",
6494
+ "description": "Name of the field in `data` that gives each slice its size. Must be a positive number; values are summed when categories repeat."
6495
+ },
6496
+ "innerRadius": {
6497
+ "type": "number",
6498
+ "minimum": 0,
6499
+ "description": "Optional. Inner radius in pixels. Set > 0 to render a donut chart instead of a solid pie (typical: 40–80)."
6500
+ },
6501
+ "title": {
6502
+ "type": "string",
6503
+ "description": "Optional chart title shown above the pie."
6504
+ }
6505
+ },
6506
+ "required": [
6507
+ "layout",
6508
+ "data",
6509
+ "categoryField",
6510
+ "valueField"
6511
+ ],
6512
+ "additionalProperties": false,
6513
+ "description": "Pie layout: category × value. Renders as a pie by default; pass `innerRadius` to make a donut."
6470
6514
  }
6471
6515
  ],
6472
- "description": "Configuration for the adaptive-viz:chart tile widget. Pick a layout (bar | line | table) and provide inline data plus the field mapping. Data must be inline — external URLs are not supported by design."
6516
+ "description": "Configuration for the adaptive-viz:chart tile widget. Pick a layout (bar | line | table | pie) and provide inline data plus the field mapping. Data must be inline — external URLs are not supported by design."
6473
6517
  },
6474
6518
  "actionStep": {
6475
6519
  "oneOf": [