@adobe/design-data-spec 4.5.0 → 4.7.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.
Files changed (45) hide show
  1. package/conformance/manifest-extensions/README.md +44 -36
  2. package/conformance/manifest-extensions/invalid/component-option-extension-missing-component/expected-errors.json +6 -0
  3. package/conformance/manifest-extensions/invalid/component-option-extension-missing-component/extensions/platform-extensions/broken.json +4 -0
  4. package/conformance/manifest-extensions/invalid/component-option-extension-missing-component/manifest.json +4 -0
  5. package/conformance/manifest-extensions/invalid/component-option-extension-unknown-canonical-value/expected-errors.json +5 -0
  6. package/conformance/manifest-extensions/invalid/component-option-extension-unknown-canonical-value/extensions/components/button.json +16 -0
  7. package/conformance/manifest-extensions/invalid/component-option-extension-unknown-canonical-value/extensions/platform-extensions/broken.json +12 -0
  8. package/conformance/manifest-extensions/invalid/component-option-extension-unknown-canonical-value/manifest.json +4 -0
  9. package/conformance/manifest-extensions/invalid/component-option-extension-unknown-component/expected-errors.json +1 -0
  10. package/conformance/manifest-extensions/invalid/component-option-extension-unknown-component/extensions/platform-extensions/broken.json +6 -0
  11. package/conformance/manifest-extensions/invalid/component-option-extension-unknown-component/manifest.json +4 -0
  12. package/conformance/manifest-extensions/invalid/component-option-extension-unknown-option/expected-errors.json +1 -0
  13. package/conformance/manifest-extensions/invalid/component-option-extension-unknown-option/extensions/components/button.json +16 -0
  14. package/conformance/manifest-extensions/invalid/component-option-extension-unknown-option/extensions/platform-extensions/broken.json +4 -0
  15. package/conformance/manifest-extensions/invalid/component-option-extension-unknown-option/manifest.json +4 -0
  16. package/conformance/manifest-extensions/valid/injects-component-option-extension/expected.json +18 -0
  17. package/conformance/manifest-extensions/valid/injects-component-option-extension/extensions/components/button.json +20 -0
  18. package/conformance/manifest-extensions/valid/injects-component-option-extension/extensions/platform-extensions/web-components-button.json +18 -0
  19. package/conformance/manifest-extensions/valid/injects-component-option-extension/manifest.json +4 -0
  20. package/llms.txt +29 -0
  21. package/package.json +4 -1
  22. package/schemas/manifest.schema.json +1 -1
  23. package/schemas/platform-extension.json +73 -1
  24. package/schemas/token-file.json +33 -0
  25. package/schemas/token-types/alias.json +70 -0
  26. package/schemas/token-types/alignment.json +28 -0
  27. package/schemas/token-types/angle.json +26 -0
  28. package/schemas/token-types/color-set.json +73 -0
  29. package/schemas/token-types/color.json +27 -0
  30. package/schemas/token-types/dimension.json +27 -0
  31. package/schemas/token-types/drop-shadow.json +52 -0
  32. package/schemas/token-types/font-family.json +27 -0
  33. package/schemas/token-types/font-size.json +27 -0
  34. package/schemas/token-types/font-style.json +27 -0
  35. package/schemas/token-types/font-weight.json +27 -0
  36. package/schemas/token-types/gradient-stop.json +28 -0
  37. package/schemas/token-types/multiplier.json +26 -0
  38. package/schemas/token-types/opacity.json +27 -0
  39. package/schemas/token-types/scale-set.json +64 -0
  40. package/schemas/token-types/set.json +30 -0
  41. package/schemas/token-types/system-set.json +86 -0
  42. package/schemas/token-types/text-transform.json +27 -0
  43. package/schemas/token-types/token.json +75 -0
  44. package/schemas/token-types/typography.json +48 -0
  45. package/spec/manifest.md +4 -4
@@ -0,0 +1,48 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/typography.json",
4
+ "title": "Typography",
5
+ "description": "A composite typography token.",
6
+ "type": "object",
7
+ "allOf": [
8
+ {
9
+ "$ref": "token.json"
10
+ }
11
+ ],
12
+ "properties": {
13
+ "$schema": {
14
+ "const": "https://opensource.adobe.com/spectrum-design-data/schemas/token-types/typography.json"
15
+ },
16
+ "value": {
17
+ "type": "object",
18
+ "properties": {
19
+ "fontFamily": {
20
+ "type": "string",
21
+ "pattern": "^\\{(\\w|-)*\\}$"
22
+ },
23
+ "fontSize": {
24
+ "type": "string",
25
+ "pattern": "^\\{(\\w|-)*\\}$"
26
+ },
27
+ "fontWeight": {
28
+ "type": "string",
29
+ "pattern": "^\\{(\\w|-)*\\}$"
30
+ },
31
+ "letterSpacing": {
32
+ "type": "string",
33
+ "pattern": "^\\{(\\w|-)*\\}$"
34
+ },
35
+ "lineHeight": {
36
+ "type": "string",
37
+ "pattern": "^\\{(\\w|-)*\\}$"
38
+ }
39
+ }
40
+ },
41
+ "component": {},
42
+ "private": {},
43
+ "deprecated": {},
44
+ "deprecated_comment": {},
45
+ "description": {},
46
+ "uuid": {}
47
+ }
48
+ }
package/spec/manifest.md CHANGED
@@ -35,10 +35,10 @@ A manifest **MUST** conform to [`manifest.schema.json`](../schemas/manifest.sche
35
35
 
36
36
  ## Required fields
37
37
 
38
- | Field | Type | Description |
39
- | ------------------- | ------ | ------------------------------------------------------------- |
40
- | `specVersion` | string | **MUST** be `1.0.0-draft` for documents targeting this draft. |
41
- | `foundationVersion` | string | Pin to a released foundation version (semver or tag string). |
38
+ | Field | Type | Description |
39
+ | ------------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
40
+ | `specVersion` | string | **MUST** be `1.0.0-draft` for documents targeting this draft. |
41
+ | `foundationVersion` | string | Pin to a released foundation version (semver or tag string). Spectrum platforms use the canonical package tag `@adobe/spectrum-design-data@<version>`, not the generated legacy `@adobe/spectrum-tokens`. |
42
42
 
43
43
  ## Optional fields
44
44