document-content-model 1.1.0 → 1.1.1
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 +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,14 @@ const content = ContentDocumentSchema.parse(someWordprocessingOrPresentationValu
|
|
|
17
17
|
const layout = LayoutDocumentSchema.parse(somePageLayoutValue);
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
## Used by
|
|
21
|
+
|
|
22
|
+
- [ooxml.js](https://github.com/ExaDev/ooxml.js) — its `readDocx`/`readPptx` return `ContentSection[]`/`ContentSlide[]` typed against this package's own schemas, not a locally-defined lookalike.
|
|
23
|
+
- [odf.js](https://github.com/ExaDev/odf.js) — its ODF typed readers (`readOdt`, `readOdp`, `readOdg`, …) return the same shared types, so an ODF document and an OOXML document speak the identical pivot.
|
|
24
|
+
- [documents.js](https://github.com/ExaDev/documents.js) — the primary consumer of both `ContentDocument` (the semantic pivot) and `LayoutDocument` (the PDF-rendering pivot), which it converts between via its layout engines and PDF codec.
|
|
25
|
+
|
|
26
|
+
None of these three packages depend on each other for this vocabulary — each depends on `document-content-model` directly, which is the whole point: one schema, not three independently-maintained, drift-prone copies.
|
|
27
|
+
|
|
20
28
|
## License
|
|
21
29
|
|
|
22
30
|
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-content-model",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "The canonical, format-agnostic content and layout schemas shared by ooxml.js, odf.js, and documents.js -- pure Zod schemas, no behaviour.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|