document-schema 1.10.0 → 1.10.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 CHANGED
@@ -12,16 +12,19 @@ graph TD
12
12
  ooxml("ooxml.js")
13
13
  odf("odf.js")
14
14
  pdfcodec("pdf-codec")
15
+ mdcodec("markdown-codec")
15
16
  documents("documents.js")
16
17
  cli("document-cli")
17
18
 
18
19
  schema --> ooxml
19
20
  schema --> odf
20
21
  schema --> pdfcodec
22
+ schema --> mdcodec
21
23
  schema --> documents
22
24
  ooxml --> documents
23
25
  odf --> documents
24
26
  pdfcodec --> documents
27
+ mdcodec --> documents
25
28
  documents --> cli
26
29
  odf --> cli
27
30
 
@@ -29,6 +32,7 @@ graph TD
29
32
  click ooxml "https://github.com/ExaDev/ooxml.js" "ooxml.js"
30
33
  click odf "https://github.com/ExaDev/odf.js" "odf.js"
31
34
  click pdfcodec "https://github.com/ExaDev/pdf-codec" "pdf-codec"
35
+ click mdcodec "https://github.com/ExaDev/markdown-codec" "markdown-codec"
32
36
  click documents "https://github.com/ExaDev/documents.js" "documents.js"
33
37
  click cli "https://github.com/ExaDev/document-cli" "document-cli"
34
38
 
package/dist/layout.d.cts CHANGED
@@ -9,12 +9,12 @@ declare const LayoutTextSchema: z.ZodObject<{
9
9
  font: z.ZodObject<{
10
10
  family: z.ZodString;
11
11
  weight: z.ZodEnum<{
12
- normal: "normal";
13
12
  bold: "bold";
13
+ normal: "normal";
14
14
  }>;
15
15
  style: z.ZodEnum<{
16
- normal: "normal";
17
16
  italic: "italic";
17
+ normal: "normal";
18
18
  }>;
19
19
  }, z.core.$strip>;
20
20
  sizePt: z.ZodNumber;
@@ -190,12 +190,12 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
190
190
  font: z.ZodObject<{
191
191
  family: z.ZodString;
192
192
  weight: z.ZodEnum<{
193
- normal: "normal";
194
193
  bold: "bold";
194
+ normal: "normal";
195
195
  }>;
196
196
  style: z.ZodEnum<{
197
- normal: "normal";
198
197
  italic: "italic";
198
+ normal: "normal";
199
199
  }>;
200
200
  }, z.core.$strip>;
201
201
  sizePt: z.ZodNumber;
@@ -329,12 +329,12 @@ declare const LayoutPageSchema: z.ZodObject<{
329
329
  font: z.ZodObject<{
330
330
  family: z.ZodString;
331
331
  weight: z.ZodEnum<{
332
- normal: "normal";
333
332
  bold: "bold";
333
+ normal: "normal";
334
334
  }>;
335
335
  style: z.ZodEnum<{
336
- normal: "normal";
337
336
  italic: "italic";
337
+ normal: "normal";
338
338
  }>;
339
339
  }, z.core.$strip>;
340
340
  sizePt: z.ZodNumber;
@@ -492,12 +492,12 @@ declare const LayoutDocumentSchema: z.ZodObject<{
492
492
  font: z.ZodObject<{
493
493
  family: z.ZodString;
494
494
  weight: z.ZodEnum<{
495
- normal: "normal";
496
495
  bold: "bold";
496
+ normal: "normal";
497
497
  }>;
498
498
  style: z.ZodEnum<{
499
- normal: "normal";
500
499
  italic: "italic";
500
+ normal: "normal";
501
501
  }>;
502
502
  }, z.core.$strip>;
503
503
  sizePt: z.ZodNumber;
package/dist/layout.d.ts CHANGED
@@ -9,12 +9,12 @@ declare const LayoutTextSchema: z.ZodObject<{
9
9
  font: z.ZodObject<{
10
10
  family: z.ZodString;
11
11
  weight: z.ZodEnum<{
12
- normal: "normal";
13
12
  bold: "bold";
13
+ normal: "normal";
14
14
  }>;
15
15
  style: z.ZodEnum<{
16
- normal: "normal";
17
16
  italic: "italic";
17
+ normal: "normal";
18
18
  }>;
19
19
  }, z.core.$strip>;
20
20
  sizePt: z.ZodNumber;
@@ -190,12 +190,12 @@ declare const LayoutItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
190
190
  font: z.ZodObject<{
191
191
  family: z.ZodString;
192
192
  weight: z.ZodEnum<{
193
- normal: "normal";
194
193
  bold: "bold";
194
+ normal: "normal";
195
195
  }>;
196
196
  style: z.ZodEnum<{
197
- normal: "normal";
198
197
  italic: "italic";
198
+ normal: "normal";
199
199
  }>;
200
200
  }, z.core.$strip>;
201
201
  sizePt: z.ZodNumber;
@@ -329,12 +329,12 @@ declare const LayoutPageSchema: z.ZodObject<{
329
329
  font: z.ZodObject<{
330
330
  family: z.ZodString;
331
331
  weight: z.ZodEnum<{
332
- normal: "normal";
333
332
  bold: "bold";
333
+ normal: "normal";
334
334
  }>;
335
335
  style: z.ZodEnum<{
336
- normal: "normal";
337
336
  italic: "italic";
337
+ normal: "normal";
338
338
  }>;
339
339
  }, z.core.$strip>;
340
340
  sizePt: z.ZodNumber;
@@ -492,12 +492,12 @@ declare const LayoutDocumentSchema: z.ZodObject<{
492
492
  font: z.ZodObject<{
493
493
  family: z.ZodString;
494
494
  weight: z.ZodEnum<{
495
- normal: "normal";
496
495
  bold: "bold";
496
+ normal: "normal";
497
497
  }>;
498
498
  style: z.ZodEnum<{
499
- normal: "normal";
500
499
  italic: "italic";
500
+ normal: "normal";
501
501
  }>;
502
502
  }, z.core.$strip>;
503
503
  sizePt: z.ZodNumber;
@@ -383,12 +383,12 @@ declare const DocumentPackageSchema: z.ZodObject<{
383
383
  font: z.ZodObject<{
384
384
  family: z.ZodString;
385
385
  weight: z.ZodEnum<{
386
- normal: "normal";
387
386
  bold: "bold";
387
+ normal: "normal";
388
388
  }>;
389
389
  style: z.ZodEnum<{
390
- normal: "normal";
391
390
  italic: "italic";
391
+ normal: "normal";
392
392
  }>;
393
393
  }, z.core.$strip>;
394
394
  sizePt: z.ZodNumber;
package/dist/package.d.ts CHANGED
@@ -383,12 +383,12 @@ declare const DocumentPackageSchema: z.ZodObject<{
383
383
  font: z.ZodObject<{
384
384
  family: z.ZodString;
385
385
  weight: z.ZodEnum<{
386
- normal: "normal";
387
386
  bold: "bold";
387
+ normal: "normal";
388
388
  }>;
389
389
  style: z.ZodEnum<{
390
- normal: "normal";
391
390
  italic: "italic";
391
+ normal: "normal";
392
392
  }>;
393
393
  }, z.core.$strip>;
394
394
  sizePt: z.ZodNumber;
@@ -9,7 +9,7 @@ const SCHEMA_FILE_NAMES = {
9
9
  LayoutDocument: "layout-document.schema.json"
10
10
  };
11
11
  function schemaUriFor(kind) {
12
- return `https://cdn.jsdelivr.net/npm/document-schema.js@1.10.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
12
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@1.10.1/schemas/${SCHEMA_FILE_NAMES[kind]}`;
13
13
  }
14
14
  const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@[^/]+\/schemas\/(document-package|content-document|layout-document)\.schema\.json$/;
15
15
  function kindForFileStem(stem) {
package/dist/schema-io.js CHANGED
@@ -8,7 +8,7 @@ const SCHEMA_FILE_NAMES = {
8
8
  LayoutDocument: "layout-document.schema.json"
9
9
  };
10
10
  function schemaUriFor(kind) {
11
- return `https://cdn.jsdelivr.net/npm/document-schema.js@1.10.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
11
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@1.10.1/schemas/${SCHEMA_FILE_NAMES[kind]}`;
12
12
  }
13
13
  const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@[^/]+\/schemas\/(document-package|content-document|layout-document)\.schema\.json$/;
14
14
  function kindForFileStem(stem) {
package/dist/style.d.cts CHANGED
@@ -10,12 +10,12 @@ type Alignment = z.infer<typeof AlignmentSchema>;
10
10
  declare const LayoutFontSchema: z.ZodObject<{
11
11
  family: z.ZodString;
12
12
  weight: z.ZodEnum<{
13
- normal: "normal";
14
13
  bold: "bold";
14
+ normal: "normal";
15
15
  }>;
16
16
  style: z.ZodEnum<{
17
- normal: "normal";
18
17
  italic: "italic";
18
+ normal: "normal";
19
19
  }>;
20
20
  }, z.core.$strip>;
21
21
  type LayoutFont = z.infer<typeof LayoutFontSchema>;
package/dist/style.d.ts CHANGED
@@ -10,12 +10,12 @@ type Alignment = z.infer<typeof AlignmentSchema>;
10
10
  declare const LayoutFontSchema: z.ZodObject<{
11
11
  family: z.ZodString;
12
12
  weight: z.ZodEnum<{
13
- normal: "normal";
14
13
  bold: "bold";
14
+ normal: "normal";
15
15
  }>;
16
16
  style: z.ZodEnum<{
17
- normal: "normal";
18
17
  italic: "italic";
18
+ normal: "normal";
19
19
  }>;
20
20
  }, z.core.$strip>;
21
21
  type LayoutFont = z.infer<typeof LayoutFontSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-schema",
3
- "version": "1.10.0",
3
+ "version": "1.10.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": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.0/schemas/content-document.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.1/schemas/content-document.schema.json",
4
4
  "oneOf": [
5
5
  {
6
6
  "type": "object",
@@ -930,7 +930,7 @@
930
930
  ]
931
931
  },
932
932
  "document": {
933
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.0/schemas/content-document.schema.json"
933
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.1/schemas/content-document.schema.json"
934
934
  },
935
935
  "frame": {
936
936
  "$ref": "#/$defs/Box"
@@ -2021,7 +2021,7 @@
2021
2021
  ]
2022
2022
  },
2023
2023
  "document": {
2024
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.0/schemas/content-document.schema.json"
2024
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.1/schemas/content-document.schema.json"
2025
2025
  },
2026
2026
  "frame": {
2027
2027
  "$ref": "#/$defs/Box"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.0/schemas/document-package.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.1/schemas/document-package.schema.json",
4
4
  "type": "object",
5
5
  "properties": {
6
6
  "formatVersion": {
@@ -8,10 +8,10 @@
8
8
  "const": 1
9
9
  },
10
10
  "content": {
11
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.0/schemas/content-document.schema.json"
11
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.1/schemas/content-document.schema.json"
12
12
  },
13
13
  "layout": {
14
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.0/schemas/layout-document.schema.json"
14
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.1/schemas/layout-document.schema.json"
15
15
  }
16
16
  },
17
17
  "required": [
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.0/schemas/layout-document.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@1.10.1/schemas/layout-document.schema.json",
4
4
  "type": "object",
5
5
  "properties": {
6
6
  "formatVersion": {