document-content-model 7.9.1 → 7.11.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 (49) hide show
  1. package/dist/codec.d.cts +1 -1
  2. package/dist/codec.d.ts +1 -1
  3. package/dist/{construct-C9cYkjnd.d.cts → construct-GVdTKrE7.d.cts} +3 -3
  4. package/dist/{construct-C9cYkjnd.d.ts → construct-GVdTKrE7.d.ts} +3 -3
  5. package/dist/construct.d.cts +1 -1
  6. package/dist/construct.d.ts +1 -1
  7. package/dist/{content-B6SPQuuq.d.ts → content-C5CsxSt1.d.ts} +58 -36
  8. package/dist/{content-VhC4WCbj.d.cts → content-DWSflkUJ.d.cts} +58 -36
  9. package/dist/content-json-schema-defs.cjs +18 -0
  10. package/dist/content-json-schema-defs.js +18 -0
  11. package/dist/content.cjs +2 -0
  12. package/dist/content.d.cts +1 -1
  13. package/dist/content.d.ts +1 -1
  14. package/dist/content.js +2 -0
  15. package/dist/decompose.d.cts +2 -2
  16. package/dist/decompose.d.ts +2 -2
  17. package/dist/definitions.d.cts +4 -4
  18. package/dist/definitions.d.ts +4 -4
  19. package/dist/factor-styles.cjs +2 -1
  20. package/dist/factor-styles.d.cts +1 -1
  21. package/dist/factor-styles.d.ts +1 -1
  22. package/dist/factor-styles.js +2 -1
  23. package/dist/flatten.d.cts +1 -1
  24. package/dist/flatten.d.ts +1 -1
  25. package/dist/index.cjs +1 -0
  26. package/dist/index.d.cts +6 -6
  27. package/dist/index.d.ts +6 -6
  28. package/dist/index.js +2 -2
  29. package/dist/{package-node-mRax-XfS.d.ts → package-node-5OqgGCtu.d.ts} +15 -9
  30. package/dist/{package-node-ChC2_Itm.d.cts → package-node-DK-b0h6V.d.cts} +15 -9
  31. package/dist/package-node.d.cts +1 -1
  32. package/dist/package-node.d.ts +1 -1
  33. package/dist/package.cjs +8 -0
  34. package/dist/package.d.cts +44 -7
  35. package/dist/package.d.ts +44 -7
  36. package/dist/package.js +8 -1
  37. package/dist/schema-io.cjs +2 -2
  38. package/dist/schema-io.d.cts +1 -1
  39. package/dist/schema-io.d.ts +1 -1
  40. package/dist/schema-io.js +2 -2
  41. package/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
  42. package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
  43. package/dist/style.d.cts +1 -1
  44. package/dist/style.d.ts +1 -1
  45. package/dist/text-layout.d.cts +1 -1
  46. package/dist/text-layout.d.ts +1 -1
  47. package/package.json +1 -1
  48. package/schemas/content-document.schema.json +73 -13
  49. package/schemas/document-tree.schema.json +63 -3
@@ -1,20 +1,33 @@
1
1
  import { d as MathMlNode } from "./mathml-Czqc1mdZ.cjs";
2
2
  import { p as MathExpression } from "./math-BScHxedi.cjs";
3
- import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-ChC2_Itm.cjs";
3
+ import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-DK-b0h6V.cjs";
4
4
  import { z } from "zod";
5
5
  //#region src/package.d.ts
6
+ declare const TreeEmbeddedFontSchema: z.ZodObject<{
7
+ family: z.ZodString;
8
+ bold: z.ZodBoolean;
9
+ italic: z.ZodBoolean;
10
+ base64: z.ZodString;
11
+ }, z.core.$strip>;
12
+ type TreeEmbeddedFont = z.infer<typeof TreeEmbeddedFontSchema>;
6
13
  declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
14
  children: z.ZodArray<z.ZodCustom<SectionGroupNode, SectionGroupNode>>;
8
15
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
9
16
  widthPt: z.ZodNumber;
10
17
  heightPt: z.ZodNumber;
11
18
  }, z.core.$strip>>>;
19
+ fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
20
+ family: z.ZodString;
21
+ bold: z.ZodBoolean;
22
+ italic: z.ZodBoolean;
23
+ base64: z.ZodString;
24
+ }, z.core.$strip>>>;
12
25
  styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
13
26
  paragraph: z.ZodOptional<z.ZodObject<{
14
27
  alignment: z.ZodOptional<z.ZodEnum<{
15
28
  left: "left";
16
- right: "right";
17
29
  center: "center";
30
+ right: "right";
18
31
  justify: "justify";
19
32
  }>>;
20
33
  list: z.ZodOptional<z.ZodObject<{
@@ -158,12 +171,18 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
158
171
  widthPt: z.ZodNumber;
159
172
  heightPt: z.ZodNumber;
160
173
  }, z.core.$strip>>>;
174
+ fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
175
+ family: z.ZodString;
176
+ bold: z.ZodBoolean;
177
+ italic: z.ZodBoolean;
178
+ base64: z.ZodString;
179
+ }, z.core.$strip>>>;
161
180
  styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
162
181
  paragraph: z.ZodOptional<z.ZodObject<{
163
182
  alignment: z.ZodOptional<z.ZodEnum<{
164
183
  left: "left";
165
- right: "right";
166
184
  center: "center";
185
+ right: "right";
167
186
  justify: "justify";
168
187
  }>>;
169
188
  list: z.ZodOptional<z.ZodObject<{
@@ -312,12 +331,18 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
312
331
  widthPt: z.ZodNumber;
313
332
  heightPt: z.ZodNumber;
314
333
  }, z.core.$strip>>>;
334
+ fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
335
+ family: z.ZodString;
336
+ bold: z.ZodBoolean;
337
+ italic: z.ZodBoolean;
338
+ base64: z.ZodString;
339
+ }, z.core.$strip>>>;
315
340
  styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
316
341
  paragraph: z.ZodOptional<z.ZodObject<{
317
342
  alignment: z.ZodOptional<z.ZodEnum<{
318
343
  left: "left";
319
- right: "right";
320
344
  center: "center";
345
+ right: "right";
321
346
  justify: "justify";
322
347
  }>>;
323
348
  list: z.ZodOptional<z.ZodObject<{
@@ -461,12 +486,18 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
461
486
  widthPt: z.ZodNumber;
462
487
  heightPt: z.ZodNumber;
463
488
  }, z.core.$strip>>>;
489
+ fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
490
+ family: z.ZodString;
491
+ bold: z.ZodBoolean;
492
+ italic: z.ZodBoolean;
493
+ base64: z.ZodString;
494
+ }, z.core.$strip>>>;
464
495
  styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
465
496
  paragraph: z.ZodOptional<z.ZodObject<{
466
497
  alignment: z.ZodOptional<z.ZodEnum<{
467
498
  left: "left";
468
- right: "right";
469
499
  center: "center";
500
+ right: "right";
470
501
  justify: "justify";
471
502
  }>>;
472
503
  list: z.ZodOptional<z.ZodObject<{
@@ -669,12 +700,18 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
669
700
  widthPt: z.ZodNumber;
670
701
  heightPt: z.ZodNumber;
671
702
  }, z.core.$strip>>>;
703
+ fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
704
+ family: z.ZodString;
705
+ bold: z.ZodBoolean;
706
+ italic: z.ZodBoolean;
707
+ base64: z.ZodString;
708
+ }, z.core.$strip>>>;
672
709
  styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
673
710
  paragraph: z.ZodOptional<z.ZodObject<{
674
711
  alignment: z.ZodOptional<z.ZodEnum<{
675
712
  left: "left";
676
- right: "right";
677
713
  center: "center";
714
+ right: "right";
678
715
  justify: "justify";
679
716
  }>>;
680
717
  list: z.ZodOptional<z.ZodObject<{
@@ -815,4 +852,4 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
815
852
  }, z.core.$strip>], "kind">;
816
853
  type DocumentTree = z.infer<typeof DocumentTreeSchema>;
817
854
  //#endregion
818
- export { DocumentTree, DocumentTreeSchema };
855
+ export { DocumentTree, DocumentTreeSchema, TreeEmbeddedFont, TreeEmbeddedFontSchema };
package/dist/package.d.ts CHANGED
@@ -1,20 +1,33 @@
1
1
  import { d as MathMlNode } from "./mathml-Czqc1mdZ.js";
2
2
  import { p as MathExpression } from "./math-BScHxedi.js";
3
- import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-mRax-XfS.js";
3
+ import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-5OqgGCtu.js";
4
4
  import { z } from "zod";
5
5
  //#region src/package.d.ts
6
+ declare const TreeEmbeddedFontSchema: z.ZodObject<{
7
+ family: z.ZodString;
8
+ bold: z.ZodBoolean;
9
+ italic: z.ZodBoolean;
10
+ base64: z.ZodString;
11
+ }, z.core.$strip>;
12
+ type TreeEmbeddedFont = z.infer<typeof TreeEmbeddedFontSchema>;
6
13
  declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
7
14
  children: z.ZodArray<z.ZodCustom<SectionGroupNode, SectionGroupNode>>;
8
15
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
9
16
  widthPt: z.ZodNumber;
10
17
  heightPt: z.ZodNumber;
11
18
  }, z.core.$strip>>>;
19
+ fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
20
+ family: z.ZodString;
21
+ bold: z.ZodBoolean;
22
+ italic: z.ZodBoolean;
23
+ base64: z.ZodString;
24
+ }, z.core.$strip>>>;
12
25
  styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
13
26
  paragraph: z.ZodOptional<z.ZodObject<{
14
27
  alignment: z.ZodOptional<z.ZodEnum<{
15
28
  left: "left";
16
- right: "right";
17
29
  center: "center";
30
+ right: "right";
18
31
  justify: "justify";
19
32
  }>>;
20
33
  list: z.ZodOptional<z.ZodObject<{
@@ -158,12 +171,18 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
158
171
  widthPt: z.ZodNumber;
159
172
  heightPt: z.ZodNumber;
160
173
  }, z.core.$strip>>>;
174
+ fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
175
+ family: z.ZodString;
176
+ bold: z.ZodBoolean;
177
+ italic: z.ZodBoolean;
178
+ base64: z.ZodString;
179
+ }, z.core.$strip>>>;
161
180
  styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
162
181
  paragraph: z.ZodOptional<z.ZodObject<{
163
182
  alignment: z.ZodOptional<z.ZodEnum<{
164
183
  left: "left";
165
- right: "right";
166
184
  center: "center";
185
+ right: "right";
167
186
  justify: "justify";
168
187
  }>>;
169
188
  list: z.ZodOptional<z.ZodObject<{
@@ -312,12 +331,18 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
312
331
  widthPt: z.ZodNumber;
313
332
  heightPt: z.ZodNumber;
314
333
  }, z.core.$strip>>>;
334
+ fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
335
+ family: z.ZodString;
336
+ bold: z.ZodBoolean;
337
+ italic: z.ZodBoolean;
338
+ base64: z.ZodString;
339
+ }, z.core.$strip>>>;
315
340
  styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
316
341
  paragraph: z.ZodOptional<z.ZodObject<{
317
342
  alignment: z.ZodOptional<z.ZodEnum<{
318
343
  left: "left";
319
- right: "right";
320
344
  center: "center";
345
+ right: "right";
321
346
  justify: "justify";
322
347
  }>>;
323
348
  list: z.ZodOptional<z.ZodObject<{
@@ -461,12 +486,18 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
461
486
  widthPt: z.ZodNumber;
462
487
  heightPt: z.ZodNumber;
463
488
  }, z.core.$strip>>>;
489
+ fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
490
+ family: z.ZodString;
491
+ bold: z.ZodBoolean;
492
+ italic: z.ZodBoolean;
493
+ base64: z.ZodString;
494
+ }, z.core.$strip>>>;
464
495
  styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
465
496
  paragraph: z.ZodOptional<z.ZodObject<{
466
497
  alignment: z.ZodOptional<z.ZodEnum<{
467
498
  left: "left";
468
- right: "right";
469
499
  center: "center";
500
+ right: "right";
470
501
  justify: "justify";
471
502
  }>>;
472
503
  list: z.ZodOptional<z.ZodObject<{
@@ -669,12 +700,18 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
669
700
  widthPt: z.ZodNumber;
670
701
  heightPt: z.ZodNumber;
671
702
  }, z.core.$strip>>>;
703
+ fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
704
+ family: z.ZodString;
705
+ bold: z.ZodBoolean;
706
+ italic: z.ZodBoolean;
707
+ base64: z.ZodString;
708
+ }, z.core.$strip>>>;
672
709
  styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
673
710
  paragraph: z.ZodOptional<z.ZodObject<{
674
711
  alignment: z.ZodOptional<z.ZodEnum<{
675
712
  left: "left";
676
- right: "right";
677
713
  center: "center";
714
+ right: "right";
678
715
  justify: "justify";
679
716
  }>>;
680
717
  list: z.ZodOptional<z.ZodObject<{
@@ -815,4 +852,4 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
815
852
  }, z.core.$strip>], "kind">;
816
853
  type DocumentTree = z.infer<typeof DocumentTreeSchema>;
817
854
  //#endregion
818
- export { DocumentTree, DocumentTreeSchema };
855
+ export { DocumentTree, DocumentTreeSchema, TreeEmbeddedFont, TreeEmbeddedFontSchema };
package/dist/package.js CHANGED
@@ -6,10 +6,17 @@ import { DefinitionsTableSchema, StylesTableSchema } from "./definitions.js";
6
6
  import { DrawPageGroupSchema, SectionGroupSchema, SheetGroupSchema, SlideGroupSchema } from "./package-node.js";
7
7
  import { z } from "zod";
8
8
  //#region src/package.ts
9
+ const TreeEmbeddedFontSchema = z.object({
10
+ family: z.string(),
11
+ bold: z.boolean(),
12
+ italic: z.boolean(),
13
+ base64: z.string()
14
+ });
9
15
  const packageEnvelopeFields = {
10
16
  metadata: LayoutMetadataSchema,
11
17
  ...contentDocumentSharedFields,
12
18
  pages: z.array(PageSizeSchema).optional(),
19
+ fonts: z.array(TreeEmbeddedFontSchema).optional(),
13
20
  styles: StylesTableSchema.optional(),
14
21
  definitions: DefinitionsTableSchema.optional(),
15
22
  layers: DefinitionsTableSchema.optional(),
@@ -46,4 +53,4 @@ const DocumentTreeSchema = z.discriminatedUnion("kind", [
46
53
  })
47
54
  ]);
48
55
  //#endregion
49
- export { DocumentTreeSchema };
56
+ export { DocumentTreeSchema, TreeEmbeddedFontSchema };
@@ -7,7 +7,7 @@ const SCHEMA_FILE_NAMES = {
7
7
  ContentDocument: "content-document.schema.json"
8
8
  };
9
9
  function schemaUriFor(kind) {
10
- return `https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/${SCHEMA_FILE_NAMES[kind]}`;
10
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
11
11
  }
12
12
  const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
13
13
  function parseSchemaUri(uri) {
@@ -102,7 +102,7 @@ function documentFromJson(value) {
102
102
  if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
103
103
  const kind = kindForFileStem(parts.stem);
104
104
  if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
105
- if (majorVersionOf(parts.version) !== majorVersionOf("7.9.1")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.9.1");
105
+ if (majorVersionOf(parts.version) !== majorVersionOf("7.11.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.11.0");
106
106
  switch (kind) {
107
107
  case "DocumentTree": return {
108
108
  kind,
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-VhC4WCbj.cjs";
1
+ import { C as ContentDocument } from "./content-DWSflkUJ.cjs";
2
2
  import { DocumentTree } from "./package.cjs";
3
3
  //#region src/schema-io.d.ts
4
4
  type DocumentSchemaKind = "DocumentTree" | "ContentDocument";
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-B6SPQuuq.js";
1
+ import { C as ContentDocument } from "./content-C5CsxSt1.js";
2
2
  import { DocumentTree } from "./package.js";
3
3
  //#region src/schema-io.d.ts
4
4
  type DocumentSchemaKind = "DocumentTree" | "ContentDocument";
package/dist/schema-io.js CHANGED
@@ -6,7 +6,7 @@ const SCHEMA_FILE_NAMES = {
6
6
  ContentDocument: "content-document.schema.json"
7
7
  };
8
8
  function schemaUriFor(kind) {
9
- return `https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/${SCHEMA_FILE_NAMES[kind]}`;
9
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
10
10
  }
11
11
  const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
12
12
  function parseSchemaUri(uri) {
@@ -101,7 +101,7 @@ function documentFromJson(value) {
101
101
  if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
102
102
  const kind = kindForFileStem(parts.stem);
103
103
  if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
104
- if (majorVersionOf(parts.version) !== majorVersionOf("7.9.1")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.9.1");
104
+ if (majorVersionOf(parts.version) !== majorVersionOf("7.11.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.11.0");
105
105
  switch (kind) {
106
106
  case "DocumentTree": return {
107
107
  kind,
@@ -2,8 +2,8 @@ import { z } from "zod";
2
2
  //#region src/style.d.ts
3
3
  declare const AlignmentSchema: z.ZodEnum<{
4
4
  left: "left";
5
- right: "right";
6
5
  center: "center";
6
+ right: "right";
7
7
  justify: "justify";
8
8
  }>;
9
9
  type Alignment = z.infer<typeof AlignmentSchema>;
@@ -2,8 +2,8 @@ import { z } from "zod";
2
2
  //#region src/style.d.ts
3
3
  declare const AlignmentSchema: z.ZodEnum<{
4
4
  left: "left";
5
- right: "right";
6
5
  center: "center";
6
+ right: "right";
7
7
  justify: "justify";
8
8
  }>;
9
9
  type Alignment = z.infer<typeof AlignmentSchema>;
package/dist/style.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-BGMcYrD2.cjs";
1
+ import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-D06NwxAJ.cjs";
2
2
  export { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema, TextDirection, TextDirectionSchema };
package/dist/style.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-BGMcYrD2.js";
1
+ import { a as LayoutFontSchema, i as LayoutFont, n as AlignmentSchema, o as TextDirection, r as DEFAULT_LAYOUT_FONT, s as TextDirectionSchema, t as Alignment } from "./style-D06NwxAJ.js";
2
2
  export { Alignment, AlignmentSchema, DEFAULT_LAYOUT_FONT, LayoutFont, LayoutFontSchema, TextDirection, TextDirectionSchema };
@@ -1,5 +1,5 @@
1
1
  import { n as Color } from "./color-AELCDH_b.cjs";
2
- import { i as LayoutFont } from "./style-BGMcYrD2.cjs";
2
+ import { i as LayoutFont } from "./style-D06NwxAJ.cjs";
3
3
  //#region src/text-layout.d.ts
4
4
  interface UnderlineMetrics {
5
5
  readonly offsetPt: number;
@@ -1,5 +1,5 @@
1
1
  import { n as Color } from "./color-AELCDH_b.js";
2
- import { i as LayoutFont } from "./style-BGMcYrD2.js";
2
+ import { i as LayoutFont } from "./style-D06NwxAJ.js";
3
3
  //#region src/text-layout.d.ts
4
4
  interface UnderlineMetrics {
5
5
  readonly offsetPt: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-content-model",
3
- "version": "7.9.1",
3
+ "version": "7.11.0",
4
4
  "description": "The canonical, format-agnostic content and document-tree schemas shared by ooxml.js, odf.js, documents.js, pdf-codec, and markdown-codec, plus the structural transform between them -- no format-specific or I/O 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@7.9.1/schemas/content-document.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/content-document.schema.json",
4
4
  "oneOf": [
5
5
  {
6
6
  "type": "object",
@@ -133,7 +133,7 @@
133
133
  "blocks": {
134
134
  "type": "array",
135
135
  "items": {
136
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/undefined#/$defs/schema2"
136
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
137
137
  }
138
138
  },
139
139
  "breakType": {
@@ -151,19 +151,19 @@
151
151
  "default": {
152
152
  "type": "array",
153
153
  "items": {
154
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/undefined#/$defs/schema2"
154
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
155
155
  }
156
156
  },
157
157
  "even": {
158
158
  "type": "array",
159
159
  "items": {
160
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/undefined#/$defs/schema2"
160
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
161
161
  }
162
162
  },
163
163
  "first": {
164
164
  "type": "array",
165
165
  "items": {
166
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/undefined#/$defs/schema2"
166
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
167
167
  }
168
168
  }
169
169
  },
@@ -175,19 +175,43 @@
175
175
  "default": {
176
176
  "type": "array",
177
177
  "items": {
178
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/undefined#/$defs/schema2"
178
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
179
179
  }
180
180
  },
181
181
  "even": {
182
182
  "type": "array",
183
183
  "items": {
184
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/undefined#/$defs/schema2"
184
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
185
185
  }
186
186
  },
187
187
  "first": {
188
188
  "type": "array",
189
189
  "items": {
190
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/undefined#/$defs/schema2"
190
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
191
+ }
192
+ }
193
+ },
194
+ "additionalProperties": false
195
+ },
196
+ "watermarks": {
197
+ "type": "object",
198
+ "properties": {
199
+ "default": {
200
+ "type": "array",
201
+ "items": {
202
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
203
+ }
204
+ },
205
+ "even": {
206
+ "type": "array",
207
+ "items": {
208
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
209
+ }
210
+ },
211
+ "first": {
212
+ "type": "array",
213
+ "items": {
214
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
191
215
  }
192
216
  }
193
217
  },
@@ -472,6 +496,9 @@
472
496
  "paintOrder": {
473
497
  "type": "number"
474
498
  },
499
+ "readingOrder": {
500
+ "type": "number"
501
+ },
475
502
  "sourcePath": {
476
503
  "type": "string"
477
504
  },
@@ -611,7 +638,7 @@
611
638
  "blocks": {
612
639
  "type": "array",
613
640
  "items": {
614
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/undefined#/$defs/schema2"
641
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
615
642
  }
616
643
  }
617
644
  },
@@ -2632,7 +2659,7 @@
2632
2659
  ]
2633
2660
  },
2634
2661
  "document": {
2635
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/content-document.schema.json"
2662
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/content-document.schema.json"
2636
2663
  },
2637
2664
  "frame": {
2638
2665
  "type": "object",
@@ -4852,6 +4879,9 @@
4852
4879
  "paintOrder": {
4853
4880
  "type": "number"
4854
4881
  },
4882
+ "readingOrder": {
4883
+ "type": "number"
4884
+ },
4855
4885
  "sourcePath": {
4856
4886
  "type": "string"
4857
4887
  },
@@ -4991,7 +5021,7 @@
4991
5021
  "blocks": {
4992
5022
  "type": "array",
4993
5023
  "items": {
4994
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/undefined#/$defs/schema2"
5024
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
4995
5025
  }
4996
5026
  }
4997
5027
  },
@@ -7997,7 +8027,7 @@
7997
8027
  ]
7998
8028
  },
7999
8029
  "document": {
8000
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/content-document.schema.json"
8030
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/content-document.schema.json"
8001
8031
  },
8002
8032
  "frame": {
8003
8033
  "$ref": "#/$defs/Box"
@@ -8183,6 +8213,9 @@
8183
8213
  "footers": {
8184
8214
  "$ref": "#/$defs/ContentPageFurniture"
8185
8215
  },
8216
+ "watermarks": {
8217
+ "$ref": "#/$defs/ContentPageFurniture"
8218
+ },
8186
8219
  "source": {
8187
8220
  "$ref": "#/$defs/SourceResidue"
8188
8221
  },
@@ -8386,6 +8419,9 @@
8386
8419
  "paintOrder": {
8387
8420
  "type": "number"
8388
8421
  },
8422
+ "readingOrder": {
8423
+ "type": "number"
8424
+ },
8389
8425
  "sourcePath": {
8390
8426
  "type": "string"
8391
8427
  },
@@ -10317,7 +10353,7 @@
10317
10353
  ]
10318
10354
  },
10319
10355
  "document": {
10320
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.1/schemas/content-document.schema.json"
10356
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/content-document.schema.json"
10321
10357
  },
10322
10358
  "frame": {
10323
10359
  "$ref": "#/$defs/Box"
@@ -11359,6 +11395,30 @@
11359
11395
  ],
11360
11396
  "additionalProperties": false
11361
11397
  },
11398
+ "TreeEmbeddedFont": {
11399
+ "type": "object",
11400
+ "properties": {
11401
+ "family": {
11402
+ "type": "string"
11403
+ },
11404
+ "bold": {
11405
+ "type": "boolean"
11406
+ },
11407
+ "italic": {
11408
+ "type": "boolean"
11409
+ },
11410
+ "base64": {
11411
+ "type": "string"
11412
+ }
11413
+ },
11414
+ "required": [
11415
+ "family",
11416
+ "bold",
11417
+ "italic",
11418
+ "base64"
11419
+ ],
11420
+ "additionalProperties": false
11421
+ },
11362
11422
  "SymbolTable": {
11363
11423
  "type": "object",
11364
11424
  "properties": {