@adobe/spectrum-tokens 15.2.0 → 15.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # [**@adobe/spectrum-tokens**](https://github.com/adobe/spectrum-design-data)
2
2
 
3
+ ## 15.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1428](https://github.com/adobe/spectrum-design-data/pull/1428) [`6005339`](https://github.com/adobe/spectrum-design-data/commit/6005339a0678226eee3e827fd5bbfa793f5bccc7) Thanks [@GarthDB](https://github.com/GarthDB)! - Add a canonical `conceptId` UUID shared by every mode row of a design concept (closes the
8
+ concept-identity gap in proposal 013), and retire the transitional `set_uuid` cascade-migration
9
+ bridge field in the same release now that `conceptId` fully subsumes its role.
10
+ - **packages/tokens/schemas/token-types/alias.json**: removed `set_uuid`; `conceptId` was
11
+ already documented alongside `uuid` on the token schema.
12
+ - **packages/design-data/tokens/\*.tokens.json**: backfilled `conceptId` on every token
13
+ (reusing existing `set_uuid` values where present) and removed `set_uuid`.
14
+ - **sdk/core/src/{graph,legacy,migrate,figma/import}.rs**: re-keyed concept grouping,
15
+ legacy-output reconstruction, migration, and Figma import onto `conceptId`; CTR-side
16
+ camelCase `setUuid`/`setSchema` bridging is unchanged. `set_schema` is retained as-is —
17
+ it encodes set-type, not concept identity.
18
+ - **sdk/core/src/validate/rules/spec059.rs** (new): `alias-mode-context-compatibility`,
19
+ a mode analogue of SPEC-002 flagging an alias pinned to a mode-mismatched target.
20
+ - **spec/{cascade,token-format}.md**: normativize `conceptId` and context-aware `$ref`
21
+ resolution against a `conceptId` anchor.
22
+ - **conformance fixtures**: renamed `set_uuid` → `conceptId` throughout.
23
+
3
24
  ## 15.2.0
4
25
 
5
26
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spectrum-tokens",
3
- "version": "15.2.0",
3
+ "version": "15.3.0",
4
4
  "description": "Design tokens for Spectrum, Adobe's design system",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -44,14 +44,16 @@
44
44
  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
45
45
  "format": "uuid"
46
46
  },
47
- "set_uuid": {
48
- "type": "string",
49
- "description": "Set-level UUID carried from the cascade migration (used by legacy-output to reconstruct the outer set UUID)."
50
- },
51
47
  "set_schema": {
52
48
  "type": "string",
53
49
  "description": "Set-level schema URL carried from the cascade migration."
54
50
  },
51
+ "conceptId": {
52
+ "type": "string",
53
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
54
+ "format": "uuid",
55
+ "description": "Canonical concept-level UUID shared by every mode row of this design concept. Additive to the per-value uuid (which remains the $ref/diff/replacedBy/sync anchor)."
56
+ },
55
57
  "replaced_by": {
56
58
  "oneOf": [
57
59
  { "type": "string", "format": "uuid" },
@@ -66,7 +66,8 @@
66
66
  "deprecated_comment": {},
67
67
  "description": {},
68
68
  "renamed": {},
69
- "uuid": {}
69
+ "uuid": {},
70
+ "conceptId": {}
70
71
  },
71
72
  "required": ["sets", "uuid"]
72
73
  }
@@ -57,7 +57,8 @@
57
57
  "deprecated_comment": {},
58
58
  "description": {},
59
59
  "renamed": {},
60
- "uuid": {}
60
+ "uuid": {},
61
+ "conceptId": {}
61
62
  },
62
63
  "required": ["sets", "uuid"]
63
64
  }
@@ -79,7 +79,8 @@
79
79
  "deprecated_comment": {},
80
80
  "description": {},
81
81
  "renamed": {},
82
- "uuid": {}
82
+ "uuid": {},
83
+ "conceptId": {}
83
84
  },
84
85
  "required": ["sets"]
85
86
  }
@@ -63,6 +63,12 @@
63
63
  "type": "string",
64
64
  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
65
65
  "format": "uuid"
66
+ },
67
+ "conceptId": {
68
+ "type": "string",
69
+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
70
+ "format": "uuid",
71
+ "description": "Canonical concept-level UUID shared by every mode row of this design concept. Additive to the per-value uuid (which remains the $ref/diff/replacedBy/sync anchor)."
66
72
  }
67
73
  },
68
74
  "required": ["value", "uuid"]