@adobe/design-data-spec 3.0.0 → 3.1.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.
@@ -0,0 +1,11 @@
1
+ {
2
+ "tokens": [
3
+ {
4
+ "name": {
5
+ "property": "icon-color-informative"
6
+ },
7
+ "value": "#0265dc"
8
+ }
9
+ ],
10
+ "components": []
11
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "layer": 2,
3
+ "errors": [
4
+ {
5
+ "rule_id": "SPEC-050",
6
+ "severity": "warning",
7
+ "message_pattern": ".*fuses.*name.property.*"
8
+ }
9
+ ]
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/design-data-spec",
3
- "version": "3.0.0",
3
+ "version": "3.1.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": {
package/rules/rules.yaml CHANGED
@@ -578,3 +578,19 @@ rules:
578
578
  message: "Token '{token}' references anatomy part '{anatomy}' which is not in the spectrum-design-data registry/anatomy-terms vocabulary"
579
579
  spec_ref: spec/anatomy-format.md#cross-reference-with-token-name-objects
580
580
  introduced_in: "1.0.0-draft"
581
+
582
+ - id: SPEC-050
583
+ name: property-decomposition-complete
584
+ severity: warning
585
+ layer: 2
586
+ category: naming-consistency
587
+ assert: >
588
+ A token name-object's `property` value SHOULD be atomic. It MUST NOT fuse a
589
+ segment that belongs to another structured field (anatomy, object, position,
590
+ size, state, colorRole, emphasis) -- detected independent of whether the token
591
+ roundtrips through canonical name generation (SPEC-007) or is listed in
592
+ naming-exceptions.json. Roundtripping cleanly does not mean a property is
593
+ decomposed (spectrum-design-data-284).
594
+ message: "Token '{token}' fuses '{field}' concept '{value}' into name.property; decompose into the structured field"
595
+ spec_ref: spec/token-format.md#name-object
596
+ introduced_in: "1.0.0-draft"