@contentful/experience-design-system-types 2.5.2 → 2.5.3-dev-build-727fd69.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/README.md +32 -7
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,25 +1,50 @@
|
|
|
1
1
|
# @contentful/experience-design-system-types
|
|
2
2
|
|
|
3
|
-
Shared TypeScript types
|
|
3
|
+
Shared TypeScript types, Zod schemas, and JSON schema validators for the Contentful Experience Design System import pipeline.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This package is a bundled dependency of `@contentful/experience-design-system-cli`. You generally don't need to install it directly — the CLI brings it in. Use it when you want to validate or generate CDF/DTCG files in your own tooling.
|
|
6
|
+
|
|
7
|
+
## Formats
|
|
6
8
|
|
|
7
9
|
### CDF — Component Definition Format
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
Typed and validated structure for `.cdf.json` component definition files that describe a design system's component library.
|
|
12
|
+
|
|
13
|
+
**Exports:** `validateCDF`, `CDF_V1_SCHEMA_URL`, `CDF_PROPERTY_TYPES`, `CDFComponentEntry`, `CDFPropertyDefinition`, `CDFValidationError`
|
|
10
14
|
|
|
11
15
|
### DTCG — Design Token Community Group
|
|
12
16
|
|
|
13
|
-
Types for `.tokens.json` files
|
|
17
|
+
Types for `.tokens.json` files following the [W3C DTCG format](https://tr.designtokens.org/format/) that describe a design system's token library.
|
|
18
|
+
|
|
19
|
+
**Exports:** `DESIGN_TOKEN_TYPES`, `DesignTokenType`, `DTCGTokenEntry`, `DTCGTokenGroup`, `DTCGTokenNode`, `DTCGTokenGroupNode`
|
|
14
20
|
|
|
15
21
|
### Sources API — Manifest
|
|
16
22
|
|
|
17
|
-
Request body sent to both the preview and apply endpoints.
|
|
23
|
+
Request body sent to both the preview and apply endpoints.
|
|
24
|
+
|
|
25
|
+
**Exports:** `ManifestPayload`
|
|
18
26
|
|
|
19
27
|
### Sources API — Preview
|
|
20
28
|
|
|
21
|
-
Response types for the Sources API preview endpoint, which returns a diff of what will change before committing.
|
|
29
|
+
Response types for the Sources API preview endpoint, which returns a diff of what will change before committing.
|
|
30
|
+
|
|
31
|
+
**Exports:** `ServerPreviewResponse`, `EntityDiffGroup`, `ChangedEntity`, `BreakingChange`, `ChangeClassification`, `DownstreamImpact`, `ComponentTypeSummary`, `DesignTokenSummary`, `TaxonomySummary`, `PropertySummary`
|
|
22
32
|
|
|
23
33
|
### Sources API — Apply
|
|
24
34
|
|
|
25
|
-
Response types for the Sources API apply endpoint, which runs the async import operation.
|
|
35
|
+
Response types for the Sources API apply endpoint, which runs the async import operation.
|
|
36
|
+
|
|
37
|
+
**Exports:** `ApplyOperationResponse`, `ApplyOperationItem`, `ApplyOperationItemError`, `ApplyOperationStatus`, `ApplyGateError`
|
|
38
|
+
|
|
39
|
+
## Development
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
# Build
|
|
43
|
+
pnpm -F @contentful/experience-design-system-types build
|
|
44
|
+
|
|
45
|
+
# Test
|
|
46
|
+
pnpm -F @contentful/experience-design-system-types test
|
|
47
|
+
|
|
48
|
+
# Typecheck
|
|
49
|
+
pnpm -F @contentful/experience-design-system-types typecheck
|
|
50
|
+
```
|
package/dist/package.json
CHANGED