@adobe/design-data-spec 4.7.0 → 4.8.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 +1 -1
- package/schemas/platform-extension.json +1 -1
- package/spec/manifest.md +26 -25
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"extends": {
|
|
30
30
|
"type": "string",
|
|
31
|
-
"description": "
|
|
31
|
+
"description": "Foundation registry (field name or file basename) or active mode-set name whose existing ids or modes this annotates (e.g. states or contrast)."
|
|
32
32
|
},
|
|
33
33
|
"extensions": {
|
|
34
34
|
"type": "array",
|
package/spec/manifest.md
CHANGED
|
@@ -8,26 +8,26 @@ This document defines the **platform manifest**: how a platform implementation r
|
|
|
8
8
|
|
|
9
9
|
The manifest supports a fixed, enumerated set of operations against the foundation — it does **not** allow overriding, aliasing, or removing arbitrary foundation artifacts. Support is concentrated on tokens; translations and schemas have no manifest-level override mechanism at all.
|
|
10
10
|
|
|
11
|
-
| Operation | Supported? | Field | Applies to
|
|
12
|
-
| --------------------------------------------------- | ------------------------------------------------------------ | --------------------------------- |
|
|
13
|
-
| Remove / exclude | Yes | `exclude` | Tokens only
|
|
14
|
-
| Include / whitelist | Yes | `include` | Tokens only
|
|
15
|
-
| Override value (type-preserving) | Yes | `overrides[].value` | Tokens only
|
|
16
|
-
| Override → re-alias | Yes | `overrides[].$ref` | Tokens only
|
|
17
|
-
| Add new tokens (may alias via `$ref`) | Yes | `extensions/tokens/` | Tokens
|
|
18
|
-
| Add / replace components | Yes | `extensions/components/` | Components
|
|
19
|
-
| Add / replace field declarations | Yes | `extensions/fields/` | Fields
|
|
20
|
-
| Add / replace guideline documents | Yes | `extensions/guidelines/` | Guidelines
|
|
21
|
-
| Declare / replace platform-local mode set | Yes | `extensions/mode-sets/` | Mode sets
|
|
22
|
-
| Add / remove / retarget a single mode; remove a set | Yes | `extensions/mode-sets/` (`op`) | Mode sets
|
|
23
|
-
| Add relationships/CTRs; override/remove by `uuid` | Yes | `extensions/relationships/` | Relationships (CTRs)
|
|
24
|
-
| Add / remove naming exceptions | Yes | `namingExceptions` | Naming validation
|
|
25
|
-
| Annotate existing terminology (cannot add new ids) | Yes | `extensions/platform-extensions/` | Existing registry ids
|
|
26
|
-
| Upsert / remove own implementation mappings | Yes | `extensions/implementations/` | Component `implementations`
|
|
27
|
-
| Restrict allowed mode-set values | Yes | `modeSetRestrictions` | Mode sets
|
|
28
|
-
| Reformat name serialization | Schema-declared only, not yet applied by the reference SDK | `formatting` | Token name strings
|
|
29
|
-
| Override/remove/alias translations | No | — | —
|
|
30
|
-
| Override Layer-1 schemas | No (decided; see [spike](manifest-schema-override-spike.md)) | — | —
|
|
11
|
+
| Operation | Supported? | Field | Applies to |
|
|
12
|
+
| --------------------------------------------------- | ------------------------------------------------------------ | --------------------------------- | ------------------------------ |
|
|
13
|
+
| Remove / exclude | Yes | `exclude` | Tokens only |
|
|
14
|
+
| Include / whitelist | Yes | `include` | Tokens only |
|
|
15
|
+
| Override value (type-preserving) | Yes | `overrides[].value` | Tokens only |
|
|
16
|
+
| Override → re-alias | Yes | `overrides[].$ref` | Tokens only |
|
|
17
|
+
| Add new tokens (may alias via `$ref`) | Yes | `extensions/tokens/` | Tokens |
|
|
18
|
+
| Add / replace components | Yes | `extensions/components/` | Components |
|
|
19
|
+
| Add / replace field declarations | Yes | `extensions/fields/` | Fields |
|
|
20
|
+
| Add / replace guideline documents | Yes | `extensions/guidelines/` | Guidelines |
|
|
21
|
+
| Declare / replace platform-local mode set | Yes | `extensions/mode-sets/` | Mode sets |
|
|
22
|
+
| Add / remove / retarget a single mode; remove a set | Yes | `extensions/mode-sets/` (`op`) | Mode sets |
|
|
23
|
+
| Add relationships/CTRs; override/remove by `uuid` | Yes | `extensions/relationships/` | Relationships (CTRs) |
|
|
24
|
+
| Add / remove naming exceptions | Yes | `namingExceptions` | Naming validation |
|
|
25
|
+
| Annotate existing terminology (cannot add new ids) | Yes | `extensions/platform-extensions/` | Existing registry ids or modes |
|
|
26
|
+
| Upsert / remove own implementation mappings | Yes | `extensions/implementations/` | Component `implementations` |
|
|
27
|
+
| Restrict allowed mode-set values | Yes | `modeSetRestrictions` | Mode sets |
|
|
28
|
+
| Reformat name serialization | Schema-declared only, not yet applied by the reference SDK | `formatting` | Token name strings |
|
|
29
|
+
| Override/remove/alias translations | No | — | — |
|
|
30
|
+
| Override Layer-1 schemas | No (decided; see [spike](manifest-schema-override-spike.md)) | — | — |
|
|
31
31
|
|
|
32
32
|
## Manifest document
|
|
33
33
|
|
|
@@ -215,11 +215,12 @@ a new axis.
|
|
|
215
215
|
|
|
216
216
|
#### `extensions/platform-extensions/`
|
|
217
217
|
|
|
218
|
-
Platform terminology annotations
|
|
219
|
-
example, platform-specific state names). **NORMATIVE:** each file **MUST**
|
|
220
|
-
`platform-extension.json
|
|
221
|
-
|
|
222
|
-
|
|
218
|
+
Platform terminology annotations for **existing** registry entries or mode-set values (for
|
|
219
|
+
example, platform-specific state or contrast names). **NORMATIVE:** each file **MUST**
|
|
220
|
+
validate against `platform-extension.json`. `extends` **MUST** name a foundation registry
|
|
221
|
+
(by field name or registry-file basename) or an active mode set. Every `termId` **MUST**
|
|
222
|
+
exist in that registry or the mode set's `modes`, after applying the manifest's mode-set
|
|
223
|
+
edits. This mechanism annotates existing ids and modes; it does **NOT** introduce new ones.
|
|
223
224
|
|
|
224
225
|
#### `extensions/implementations/`
|
|
225
226
|
|