@adobe/design-data-spec 4.9.0 → 4.10.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/design-data-spec",
3
- "version": "4.9.0",
3
+ "version": "4.10.0",
4
4
  "description": "Design Data Specification — prose, JSON Schemas, rule catalog, and conformance fixtures for the design data format",
5
5
  "type": "module",
6
6
  "repository": {
@@ -4,12 +4,16 @@
4
4
  "title": "Component spec sheet (draft)",
5
5
  "description": "Draft model of a per-component spec sheet generated by `design-data spec-sheet`: pages of blocks, one block per relationship context. Renderers draw each block's scene and add no layout of their own.",
6
6
  "type": "object",
7
- "required": ["specVersion", "component", "size", "block", "pages"],
7
+ "required": ["specVersion", "component", "visual", "size", "block", "pages"],
8
8
  "properties": {
9
9
  "$schema": { "type": "string" },
10
10
  "specVersion": { "type": "string" },
11
11
  "component": { "type": "string" },
12
12
  "displayName": { "type": "string" },
13
+ "visual": {
14
+ "description": "True when the component has a visual recipe. False marks a table-only sheet: blocks carry token rows but no render, and views show \"No visual recipe yet\". The same stub is the starting point for a new component.",
15
+ "type": "boolean"
16
+ },
13
17
  "datasetRevision": {
14
18
  "description": "Dataset revision (git commit) the sheet and its changelog were generated from.",
15
19
  "type": ["string", "null"]
@@ -63,7 +67,10 @@
63
67
  "description": "The relationship context string the block documents.",
64
68
  "type": "string"
65
69
  },
66
- "render": { "$ref": "#/$defs/render" },
70
+ "render": {
71
+ "description": "The block's visual. Null on a table-only sheet (visual is false).",
72
+ "oneOf": [{ "$ref": "#/$defs/render" }, { "type": "null" }]
73
+ },
67
74
  "rows": { "type": "array", "items": { "$ref": "#/$defs/row" } },
68
75
  "notes": { "type": "array", "items": { "type": "string" } },
69
76
  "changes": {