@adobe/spectrum-tokens 14.14.0 → 14.15.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,57 @@
1
1
  # [**@adobe/spectrum-tokens**](https://github.com/adobe/spectrum-design-data)
2
2
 
3
+ ## 14.15.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1229](https://github.com/adobe/spectrum-design-data/pull/1229) [`b4f79db`](https://github.com/adobe/spectrum-design-data/commit/b4f79db78d8b889b46b98d0fc26d424c1d4fe5fe) Thanks [@GarthDB](https://github.com/GarthDB)! - Route tab-item, menu-item, and in-field-stepper anatomy sub-parts to their real parent
8
+ component, clearing 123 SPEC-009 warnings (part of spectrum-design-data-uep; remaining
9
+ 71 tokens tracked separately pending a taxonomy ruling).
10
+ - **packages/design-data/registry/anatomy-terms.json**: add `in-field-stepper`; mark
11
+ `tab-item`/`menu-item` `usedIn: ["tokens"]`.
12
+ - **packages/design-data/tokens/{layout,color}-component.tokens.json**: 123 tokens gain
13
+ `component` (real parent: `tabs`, `menu`, `number-field`) + `anatomy` (sub-part) + a
14
+ pinned `legacyKey` so the published key is unchanged.
15
+ - **packages/tokens/src/{layout,color}-component.json**: regenerated; only the flat
16
+ `component` attribute value changed (67 tokens), no key renames.
17
+ - **packages/tokens/naming-exceptions.json** / **validation-snapshot.json**: track the
18
+ 49 tokens whose pinned legacy key no longer roundtrips through canonical name
19
+ generation (category `anatomy-decomposition`).
20
+ - **packages/tokens/test/checkComponentProps.js**: recognize anatomy sub-part prefixes
21
+ (via the anatomy registry) as valid even when they don't match `component`.
22
+ - **sdk/core/src/migrate.rs**: `thin_name_val` now pins `legacyKey` when a corrected
23
+ `component` no longer reproduces the original key, fixing legacy→cascade roundtrip.
24
+
25
+ - [#1231](https://github.com/adobe/spectrum-design-data/pull/1231) [`62e74d7`](https://github.com/adobe/spectrum-design-data/commit/62e74d7f4d59bcc3e63fbc5b7c594f65ef78b024) Thanks [@GarthDB](https://github.com/GarthDB)! - Re-key icon tokens off the new `icon` name field (part of spectrum-design-data-aui),
26
+ clearing ~315 SPEC-009 warnings. Published legacy keys are unchanged.
27
+ - **packages/design-data/registry/icon-terms.json**: new registry, 12 icon ids (`icon`,
28
+ `ui`, `checkmark`, `chevron`, `dash`, `arrow`, `cross`, `add`, `link-out`,
29
+ `drag-handle`, `asterisk`, `gripper`), with `tokenName` long-form expansions.
30
+ - **packages/design-data/tokens/icons.tokens.json**: 191 tokens re-keyed
31
+ `component:'icon'` → `icon:'icon'`.
32
+ - **packages/design-data/tokens/layout-component.tokens.json**: 124 tokens re-keyed
33
+ `component:'X-icon'` → `icon:'X'` across 11 distinct values.
34
+ - **sdk/core/src/naming.rs**: `extract_legacy_key` gains an icon (non-color) branch and
35
+ a thin-format guard so re-keyed tokens still resolve to their original legacy key.
36
+ - **sdk/core/src/legacy.rs**: legacy-metadata hoisting (`resolve_owner_component`) now
37
+ falls back to the icon field so published `component` metadata is unaffected.
38
+ - **packages/tokens/src/icons.json**, **layout-component.json**: regenerated, byte-identical
39
+ to their pre-change state.
40
+
41
+ - [#1238](https://github.com/adobe/spectrum-design-data/pull/1238) [`8d8bf09`](https://github.com/adobe/spectrum-design-data/commit/8d8bf0904e716ed86b10f890251980f73f0215c7) Thanks [@GarthDB](https://github.com/GarthDB)! - Decompose the 16 remaining fused-property typography tokens onto proper
42
+ `component`/`property`/`family`/`script`/`emphasis`/`size` fields (closes
43
+ spectrum-design-data-1lf).
44
+ - **packages/design-data/tokens/typography.tokens.json**:
45
+ `body-cjk-size-{l,m,s,xl,xs,xxl,xxs,xxxl}`, `body-size-xxs`, `heading-cjk-font-weight`,
46
+ `heading-cjk-size-xxxxl`, `heading-size-xxxxl` get `component`/`property`/`script`/`size`
47
+ fields, retaining `legacyKey` to pin their published fused name.
48
+ `heading-{sans-serif,serif}[-emphasized]-font-weight` get `component`/`property`/`family`/
49
+ `emphasis` fields; their reconstructed names already match the fused originals, so no
50
+ `legacyKey` pin is needed.
51
+ - **packages/tokens/src/typography.json**: regenerated legacy output now carries a
52
+ `component` attribute on these 16 tokens (previously absent) — an accepted, additive
53
+ publish diff.
54
+
3
55
  ## 14.14.0
4
56
 
5
57
  ### Minor Changes
@@ -1165,6 +1165,300 @@
1165
1165
  "file": "typography.json",
1166
1166
  "category": "state-position",
1167
1167
  "reason": "Does not roundtrip through canonical generation rules (category: state-position)"
1168
+ },
1169
+ {
1170
+ "token": "in-field-stepper-to-end-extra-large",
1171
+ "file": "layout-component.json",
1172
+ "category": "anatomy-decomposition",
1173
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1174
+ },
1175
+ {
1176
+ "token": "in-field-stepper-to-end-large",
1177
+ "file": "layout-component.json",
1178
+ "category": "anatomy-decomposition",
1179
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1180
+ },
1181
+ {
1182
+ "token": "in-field-stepper-to-end-medium",
1183
+ "file": "layout-component.json",
1184
+ "category": "anatomy-decomposition",
1185
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1186
+ },
1187
+ {
1188
+ "token": "in-field-stepper-to-end-small",
1189
+ "file": "layout-component.json",
1190
+ "category": "anatomy-decomposition",
1191
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1192
+ },
1193
+ {
1194
+ "token": "tab-item-bottom-to-text-compact-extra-large",
1195
+ "file": "layout-component.json",
1196
+ "category": "anatomy-decomposition",
1197
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1198
+ },
1199
+ {
1200
+ "token": "tab-item-bottom-to-text-compact-large",
1201
+ "file": "layout-component.json",
1202
+ "category": "anatomy-decomposition",
1203
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1204
+ },
1205
+ {
1206
+ "token": "tab-item-bottom-to-text-compact-medium",
1207
+ "file": "layout-component.json",
1208
+ "category": "anatomy-decomposition",
1209
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1210
+ },
1211
+ {
1212
+ "token": "tab-item-bottom-to-text-compact-small",
1213
+ "file": "layout-component.json",
1214
+ "category": "anatomy-decomposition",
1215
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1216
+ },
1217
+ {
1218
+ "token": "tab-item-bottom-to-text-extra-large",
1219
+ "file": "layout-component.json",
1220
+ "category": "anatomy-decomposition",
1221
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1222
+ },
1223
+ {
1224
+ "token": "tab-item-bottom-to-text-large",
1225
+ "file": "layout-component.json",
1226
+ "category": "anatomy-decomposition",
1227
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1228
+ },
1229
+ {
1230
+ "token": "tab-item-bottom-to-text-medium",
1231
+ "file": "layout-component.json",
1232
+ "category": "anatomy-decomposition",
1233
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1234
+ },
1235
+ {
1236
+ "token": "tab-item-bottom-to-text-small",
1237
+ "file": "layout-component.json",
1238
+ "category": "anatomy-decomposition",
1239
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1240
+ },
1241
+ {
1242
+ "token": "tab-item-compact-height-extra-large",
1243
+ "file": "layout-component.json",
1244
+ "category": "anatomy-decomposition",
1245
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1246
+ },
1247
+ {
1248
+ "token": "tab-item-compact-height-large",
1249
+ "file": "layout-component.json",
1250
+ "category": "anatomy-decomposition",
1251
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1252
+ },
1253
+ {
1254
+ "token": "tab-item-compact-height-medium",
1255
+ "file": "layout-component.json",
1256
+ "category": "anatomy-decomposition",
1257
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1258
+ },
1259
+ {
1260
+ "token": "tab-item-compact-height-small",
1261
+ "file": "layout-component.json",
1262
+ "category": "anatomy-decomposition",
1263
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1264
+ },
1265
+ {
1266
+ "token": "tab-item-height-extra-large",
1267
+ "file": "layout-component.json",
1268
+ "category": "anatomy-decomposition",
1269
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1270
+ },
1271
+ {
1272
+ "token": "tab-item-height-large",
1273
+ "file": "layout-component.json",
1274
+ "category": "anatomy-decomposition",
1275
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1276
+ },
1277
+ {
1278
+ "token": "tab-item-height-medium",
1279
+ "file": "layout-component.json",
1280
+ "category": "anatomy-decomposition",
1281
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1282
+ },
1283
+ {
1284
+ "token": "tab-item-height-small",
1285
+ "file": "layout-component.json",
1286
+ "category": "anatomy-decomposition",
1287
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1288
+ },
1289
+ {
1290
+ "token": "tab-item-start-to-edge-extra-large",
1291
+ "file": "layout-component.json",
1292
+ "category": "anatomy-decomposition",
1293
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1294
+ },
1295
+ {
1296
+ "token": "tab-item-start-to-edge-large",
1297
+ "file": "layout-component.json",
1298
+ "category": "anatomy-decomposition",
1299
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1300
+ },
1301
+ {
1302
+ "token": "tab-item-start-to-edge-medium",
1303
+ "file": "layout-component.json",
1304
+ "category": "anatomy-decomposition",
1305
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1306
+ },
1307
+ {
1308
+ "token": "tab-item-start-to-edge-quiet",
1309
+ "file": "layout-component.json",
1310
+ "category": "anatomy-decomposition",
1311
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1312
+ },
1313
+ {
1314
+ "token": "tab-item-start-to-edge-small",
1315
+ "file": "layout-component.json",
1316
+ "category": "anatomy-decomposition",
1317
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1318
+ },
1319
+ {
1320
+ "token": "tab-item-to-tab-item-horizontal-extra-large",
1321
+ "file": "layout-component.json",
1322
+ "category": "anatomy-decomposition",
1323
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1324
+ },
1325
+ {
1326
+ "token": "tab-item-to-tab-item-horizontal-large",
1327
+ "file": "layout-component.json",
1328
+ "category": "anatomy-decomposition",
1329
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1330
+ },
1331
+ {
1332
+ "token": "tab-item-to-tab-item-horizontal-medium",
1333
+ "file": "layout-component.json",
1334
+ "category": "anatomy-decomposition",
1335
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1336
+ },
1337
+ {
1338
+ "token": "tab-item-to-tab-item-horizontal-small",
1339
+ "file": "layout-component.json",
1340
+ "category": "anatomy-decomposition",
1341
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1342
+ },
1343
+ {
1344
+ "token": "tab-item-to-tab-item-vertical-extra-large",
1345
+ "file": "layout-component.json",
1346
+ "category": "anatomy-decomposition",
1347
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1348
+ },
1349
+ {
1350
+ "token": "tab-item-to-tab-item-vertical-large",
1351
+ "file": "layout-component.json",
1352
+ "category": "anatomy-decomposition",
1353
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1354
+ },
1355
+ {
1356
+ "token": "tab-item-to-tab-item-vertical-medium",
1357
+ "file": "layout-component.json",
1358
+ "category": "anatomy-decomposition",
1359
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1360
+ },
1361
+ {
1362
+ "token": "tab-item-to-tab-item-vertical-small",
1363
+ "file": "layout-component.json",
1364
+ "category": "anatomy-decomposition",
1365
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1366
+ },
1367
+ {
1368
+ "token": "tab-item-top-to-text-compact-extra-large",
1369
+ "file": "layout-component.json",
1370
+ "category": "anatomy-decomposition",
1371
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1372
+ },
1373
+ {
1374
+ "token": "tab-item-top-to-text-compact-large",
1375
+ "file": "layout-component.json",
1376
+ "category": "anatomy-decomposition",
1377
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1378
+ },
1379
+ {
1380
+ "token": "tab-item-top-to-text-compact-medium",
1381
+ "file": "layout-component.json",
1382
+ "category": "anatomy-decomposition",
1383
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1384
+ },
1385
+ {
1386
+ "token": "tab-item-top-to-text-compact-small",
1387
+ "file": "layout-component.json",
1388
+ "category": "anatomy-decomposition",
1389
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1390
+ },
1391
+ {
1392
+ "token": "tab-item-top-to-text-extra-large",
1393
+ "file": "layout-component.json",
1394
+ "category": "anatomy-decomposition",
1395
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1396
+ },
1397
+ {
1398
+ "token": "tab-item-top-to-text-large",
1399
+ "file": "layout-component.json",
1400
+ "category": "anatomy-decomposition",
1401
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1402
+ },
1403
+ {
1404
+ "token": "tab-item-top-to-text-medium",
1405
+ "file": "layout-component.json",
1406
+ "category": "anatomy-decomposition",
1407
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1408
+ },
1409
+ {
1410
+ "token": "tab-item-top-to-text-small",
1411
+ "file": "layout-component.json",
1412
+ "category": "anatomy-decomposition",
1413
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1414
+ },
1415
+ {
1416
+ "token": "tab-item-top-to-workflow-icon-compact-extra-large",
1417
+ "file": "layout-component.json",
1418
+ "category": "anatomy-decomposition",
1419
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1420
+ },
1421
+ {
1422
+ "token": "tab-item-top-to-workflow-icon-compact-large",
1423
+ "file": "layout-component.json",
1424
+ "category": "anatomy-decomposition",
1425
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1426
+ },
1427
+ {
1428
+ "token": "tab-item-top-to-workflow-icon-compact-medium",
1429
+ "file": "layout-component.json",
1430
+ "category": "anatomy-decomposition",
1431
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1432
+ },
1433
+ {
1434
+ "token": "tab-item-top-to-workflow-icon-compact-small",
1435
+ "file": "layout-component.json",
1436
+ "category": "anatomy-decomposition",
1437
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1438
+ },
1439
+ {
1440
+ "token": "tab-item-top-to-workflow-icon-extra-large",
1441
+ "file": "layout-component.json",
1442
+ "category": "anatomy-decomposition",
1443
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1444
+ },
1445
+ {
1446
+ "token": "tab-item-top-to-workflow-icon-large",
1447
+ "file": "layout-component.json",
1448
+ "category": "anatomy-decomposition",
1449
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1450
+ },
1451
+ {
1452
+ "token": "tab-item-top-to-workflow-icon-medium",
1453
+ "file": "layout-component.json",
1454
+ "category": "anatomy-decomposition",
1455
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1456
+ },
1457
+ {
1458
+ "token": "tab-item-top-to-workflow-icon-small",
1459
+ "file": "layout-component.json",
1460
+ "category": "anatomy-decomposition",
1461
+ "reason": "Does not roundtrip through canonical generation rules (category: anatomy-decomposition) \u2014 legacyKey pinned to preserve the published key after routing this anatomy sub-part token to its real parent component"
1168
1462
  }
1169
1463
  ]
1170
1464
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spectrum-tokens",
3
- "version": "14.14.0",
3
+ "version": "14.15.0",
4
4
  "description": "Design tokens for Spectrum, Adobe's design system",
5
5
  "type": "module",
6
6
  "main": "index.js",