document-schema 4.1.0 → 4.2.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 (42) hide show
  1. package/README.md +35 -6
  2. package/dist/codec.d.cts +1 -1
  3. package/dist/codec.d.ts +1 -1
  4. package/dist/{construct-CdQuI9f5.d.cts → construct-D5pdDPqM.d.cts} +6 -6
  5. package/dist/{construct-CdQuI9f5.d.ts → construct-D5pdDPqM.d.ts} +6 -6
  6. package/dist/construct.d.cts +1 -1
  7. package/dist/construct.d.ts +1 -1
  8. package/dist/{content-CiZf6Fqn.d.ts → content-D3C14yyb.d.ts} +97 -9
  9. package/dist/content-json-schema-defs.cjs +36 -6
  10. package/dist/content-json-schema-defs.js +36 -6
  11. package/dist/{content-BN0PWqpt.d.cts → content-oSmH1_zP.d.cts} +97 -9
  12. package/dist/content.cjs +32 -0
  13. package/dist/content.d.cts +2 -2
  14. package/dist/content.d.ts +2 -2
  15. package/dist/content.js +28 -1
  16. package/dist/definitions.d.cts +1 -1
  17. package/dist/definitions.d.ts +1 -1
  18. package/dist/index.cjs +7 -0
  19. package/dist/index.d.cts +5 -5
  20. package/dist/index.d.ts +5 -5
  21. package/dist/index.js +3 -3
  22. package/dist/{math-B7gZJeND.d.cts → math-BlG8Tjk-.d.cts} +3 -3
  23. package/dist/{math-B7gZJeND.d.ts → math-BlG8Tjk-.d.ts} +3 -3
  24. package/dist/math.d.cts +1 -1
  25. package/dist/math.d.ts +1 -1
  26. package/dist/{package-node-DLUobcDQ.d.ts → package-node-B9qLyhk5.d.ts} +56 -53
  27. package/dist/{package-node-BiUEzIzl.d.cts → package-node-DUKZHgAg.d.cts} +56 -53
  28. package/dist/package-node.cjs +11 -4
  29. package/dist/package-node.d.cts +2 -2
  30. package/dist/package-node.d.ts +2 -2
  31. package/dist/package-node.js +11 -6
  32. package/dist/package.d.cts +7 -7
  33. package/dist/package.d.ts +7 -7
  34. package/dist/schema-io.cjs +2 -2
  35. package/dist/schema-io.d.cts +1 -1
  36. package/dist/schema-io.d.ts +1 -1
  37. package/dist/schema-io.js +2 -2
  38. package/dist/style.d.cts +2 -2
  39. package/dist/style.d.ts +2 -2
  40. package/package.json +1 -1
  41. package/schemas/content-document.schema.json +64 -9
  42. package/schemas/document-package.schema.json +64 -9
@@ -1,5 +1,5 @@
1
1
  import { ConstructDescriptorSchema } from "./construct.js";
2
- import { ContentBlockSchema, ContentDrawPageSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentListMembershipSchema, ContentParagraphSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetImageSchema, ContentSheetSchema, ContentSlideSchema, ContentVectorSchema } from "./content.js";
2
+ import { ContentDrawPageSchema, ContentEmbeddedObjectSchema, ContentFormulaSchema, ContentListMembershipSchema, ContentParagraphSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetImageSchema, ContentSheetSchema, ContentSlideSchema, ContentVectorSchema, isContentBlock, isContentConstructEnd, isContentConstructStart } from "./content.js";
3
3
  import { z } from "zod";
4
4
  //#region src/package-node.ts
5
5
  const SectionDescriptorSchema = ContentSectionSchema.omit({ blocks: true }).extend({ kind: z.literal("section") }).strict();
@@ -28,14 +28,19 @@ function isLeafChild(schema, value) {
28
28
  if (isRecord(value) && "style" in value) return false;
29
29
  return schema.safeParse(value).success;
30
30
  }
31
+ function isPackageBlockLeaf(value) {
32
+ if (isContentConstructStart(value) || isContentConstructEnd(value)) return false;
33
+ return isContentBlock(value);
34
+ }
35
+ const PackageBlockLeafSchema = z.custom(isPackageBlockLeaf);
31
36
  function isSectionChild(value) {
32
- return isHeadingGroupNode(value) || isListGroupNode(value) || isSectionConstructGroupNode(value) || isLeafChild(ContentBlockSchema, value);
37
+ return isHeadingGroupNode(value) || isListGroupNode(value) || isSectionConstructGroupNode(value) || isLeafChild(PackageBlockLeafSchema, value);
33
38
  }
34
39
  function isShapeChild(value) {
35
- return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(ContentBlockSchema, value);
40
+ return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(PackageBlockLeafSchema, value);
36
41
  }
37
42
  function isListChild(value) {
38
- return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(ContentBlockSchema, value);
43
+ return isListGroupNode(value) || isShapeConstructGroupNode(value) || isLeafChild(PackageBlockLeafSchema, value);
39
44
  }
40
45
  function isSheetChild(value) {
41
46
  return isLeafChild(ContentSheetImageSchema, value) || isLeafChild(ContentEmbeddedObjectSchema, value);
@@ -71,7 +76,7 @@ function isShapeConstructGroupNode(value) {
71
76
  return isRecord(value) && ConstructDescriptorSchema.safeParse(value.node).success && isGroupWrapper(value, isShapeChild);
72
77
  }
73
78
  const packageLeafUnion = z.union([
74
- ContentBlockSchema,
79
+ PackageBlockLeafSchema,
75
80
  ContentSheetImageSchema,
76
81
  ContentEmbeddedObjectSchema,
77
82
  ContentVectorSchema,
@@ -99,4 +104,4 @@ const PackageGroupSchema = z.custom(isPackageGroup);
99
104
  const PackageLeafSchema = z.custom(isPackageLeaf);
100
105
  const PackageNodeSchema = z.custom(isPackageNode);
101
106
  //#endregion
102
- export { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode };
107
+ export { DrawPageDescriptorSchema, DrawPageGroupSchema, HeadingGroupSchema, HeadingParagraphSchema, ListGroupSchema, ListParagraphSchema, PackageBlockLeafSchema, PackageGroupSchema, PackageLeafSchema, PackageNodeSchema, SectionConstructGroupSchema, SectionDescriptorSchema, SectionGroupSchema, ShapeConstructGroupSchema, ShapeDescriptorSchema, ShapeGroupSchema, SheetDescriptorSchema, SheetGroupSchema, SlideDescriptorSchema, SlideGroupSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isPackageBlockLeaf, isPackageGroup, isPackageLeaf, isPackageNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode };
@@ -1,6 +1,6 @@
1
1
  import { d as MathMlNode } from "./mathml-B1oTCtzc.cjs";
2
- import { s as MathExpression } from "./math-B7gZJeND.cjs";
3
- import { E as SectionGroupNode, H as SlideGroupNode, R as SheetGroupNode, i as DrawPageGroupNode } from "./package-node-BiUEzIzl.cjs";
2
+ import { s as MathExpression } from "./math-BlG8Tjk-.cjs";
3
+ import { B as SheetGroupNode, O as SectionGroupNode, W as SlideGroupNode, i as DrawPageGroupNode } from "./package-node-DUKZHgAg.cjs";
4
4
  import { z } from "zod";
5
5
  //#region src/package.d.ts
6
6
  declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -67,9 +67,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
67
67
  symbol: z.ZodString;
68
68
  name: z.ZodOptional<z.ZodString>;
69
69
  dimension: z.ZodRecord<z.ZodEnum<{
70
- time: "time";
71
70
  length: "length";
72
71
  mass: "mass";
72
+ time: "time";
73
73
  electricCurrent: "electricCurrent";
74
74
  thermodynamicTemperature: "thermodynamicTemperature";
75
75
  amountOfSubstance: "amountOfSubstance";
@@ -171,9 +171,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
171
171
  symbol: z.ZodString;
172
172
  name: z.ZodOptional<z.ZodString>;
173
173
  dimension: z.ZodRecord<z.ZodEnum<{
174
- time: "time";
175
174
  length: "length";
176
175
  mass: "mass";
176
+ time: "time";
177
177
  electricCurrent: "electricCurrent";
178
178
  thermodynamicTemperature: "thermodynamicTemperature";
179
179
  amountOfSubstance: "amountOfSubstance";
@@ -275,9 +275,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
275
275
  symbol: z.ZodString;
276
276
  name: z.ZodOptional<z.ZodString>;
277
277
  dimension: z.ZodRecord<z.ZodEnum<{
278
- time: "time";
279
278
  length: "length";
280
279
  mass: "mass";
280
+ time: "time";
281
281
  electricCurrent: "electricCurrent";
282
282
  thermodynamicTemperature: "thermodynamicTemperature";
283
283
  amountOfSubstance: "amountOfSubstance";
@@ -379,9 +379,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
379
379
  symbol: z.ZodString;
380
380
  name: z.ZodOptional<z.ZodString>;
381
381
  dimension: z.ZodRecord<z.ZodEnum<{
382
- time: "time";
383
382
  length: "length";
384
383
  mass: "mass";
384
+ time: "time";
385
385
  electricCurrent: "electricCurrent";
386
386
  thermodynamicTemperature: "thermodynamicTemperature";
387
387
  amountOfSubstance: "amountOfSubstance";
@@ -495,9 +495,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
495
495
  symbol: z.ZodString;
496
496
  name: z.ZodOptional<z.ZodString>;
497
497
  dimension: z.ZodRecord<z.ZodEnum<{
498
- time: "time";
499
498
  length: "length";
500
499
  mass: "mass";
500
+ time: "time";
501
501
  electricCurrent: "electricCurrent";
502
502
  thermodynamicTemperature: "thermodynamicTemperature";
503
503
  amountOfSubstance: "amountOfSubstance";
package/dist/package.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { d as MathMlNode } from "./mathml-B1oTCtzc.js";
2
- import { s as MathExpression } from "./math-B7gZJeND.js";
3
- import { E as SectionGroupNode, H as SlideGroupNode, R as SheetGroupNode, i as DrawPageGroupNode } from "./package-node-DLUobcDQ.js";
2
+ import { s as MathExpression } from "./math-BlG8Tjk-.js";
3
+ import { B as SheetGroupNode, O as SectionGroupNode, W as SlideGroupNode, i as DrawPageGroupNode } from "./package-node-B9qLyhk5.js";
4
4
  import { z } from "zod";
5
5
  //#region src/package.d.ts
6
6
  declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -67,9 +67,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
67
67
  symbol: z.ZodString;
68
68
  name: z.ZodOptional<z.ZodString>;
69
69
  dimension: z.ZodRecord<z.ZodEnum<{
70
- time: "time";
71
70
  length: "length";
72
71
  mass: "mass";
72
+ time: "time";
73
73
  electricCurrent: "electricCurrent";
74
74
  thermodynamicTemperature: "thermodynamicTemperature";
75
75
  amountOfSubstance: "amountOfSubstance";
@@ -171,9 +171,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
171
171
  symbol: z.ZodString;
172
172
  name: z.ZodOptional<z.ZodString>;
173
173
  dimension: z.ZodRecord<z.ZodEnum<{
174
- time: "time";
175
174
  length: "length";
176
175
  mass: "mass";
176
+ time: "time";
177
177
  electricCurrent: "electricCurrent";
178
178
  thermodynamicTemperature: "thermodynamicTemperature";
179
179
  amountOfSubstance: "amountOfSubstance";
@@ -275,9 +275,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
275
275
  symbol: z.ZodString;
276
276
  name: z.ZodOptional<z.ZodString>;
277
277
  dimension: z.ZodRecord<z.ZodEnum<{
278
- time: "time";
279
278
  length: "length";
280
279
  mass: "mass";
280
+ time: "time";
281
281
  electricCurrent: "electricCurrent";
282
282
  thermodynamicTemperature: "thermodynamicTemperature";
283
283
  amountOfSubstance: "amountOfSubstance";
@@ -379,9 +379,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
379
379
  symbol: z.ZodString;
380
380
  name: z.ZodOptional<z.ZodString>;
381
381
  dimension: z.ZodRecord<z.ZodEnum<{
382
- time: "time";
383
382
  length: "length";
384
383
  mass: "mass";
384
+ time: "time";
385
385
  electricCurrent: "electricCurrent";
386
386
  thermodynamicTemperature: "thermodynamicTemperature";
387
387
  amountOfSubstance: "amountOfSubstance";
@@ -495,9 +495,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
495
495
  symbol: z.ZodString;
496
496
  name: z.ZodOptional<z.ZodString>;
497
497
  dimension: z.ZodRecord<z.ZodEnum<{
498
- time: "time";
499
498
  length: "length";
500
499
  mass: "mass";
500
+ time: "time";
501
501
  electricCurrent: "electricCurrent";
502
502
  thermodynamicTemperature: "thermodynamicTemperature";
503
503
  amountOfSubstance: "amountOfSubstance";
@@ -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@4.1.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
10
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@4.2.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
11
11
  }
12
12
  const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-package|content-document|layout-document)\.schema\.json$/;
13
13
  function parseSchemaUri(uri) {
@@ -93,7 +93,7 @@ function documentFromJson(value) {
93
93
  if (parts.stem === "layout-document") throw new LayoutSchemaDemotedError(value.$schema);
94
94
  const kind = kindForFileStem(parts.stem);
95
95
  if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
96
- if (majorVersionOf(parts.version) !== majorVersionOf("4.1.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "4.1.0");
96
+ if (majorVersionOf(parts.version) !== majorVersionOf("4.2.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "4.2.0");
97
97
  switch (kind) {
98
98
  case "DocumentPackage": return {
99
99
  kind,
@@ -1,4 +1,4 @@
1
- import { l as ContentDocument } from "./content-BN0PWqpt.cjs";
1
+ import { m as ContentDocument } from "./content-oSmH1_zP.cjs";
2
2
  import { DocumentPackage } from "./package.cjs";
3
3
  //#region src/schema-io.d.ts
4
4
  type DocumentSchemaKind = 'DocumentPackage' | 'ContentDocument';
@@ -1,4 +1,4 @@
1
- import { l as ContentDocument } from "./content-CiZf6Fqn.js";
1
+ import { m as ContentDocument } from "./content-D3C14yyb.js";
2
2
  import { DocumentPackage } from "./package.js";
3
3
  //#region src/schema-io.d.ts
4
4
  type DocumentSchemaKind = 'DocumentPackage' | '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@4.1.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
9
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@4.2.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
10
10
  }
11
11
  const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-package|content-document|layout-document)\.schema\.json$/;
12
12
  function parseSchemaUri(uri) {
@@ -92,7 +92,7 @@ function documentFromJson(value) {
92
92
  if (parts.stem === "layout-document") throw new LayoutSchemaDemotedError(value.$schema);
93
93
  const kind = kindForFileStem(parts.stem);
94
94
  if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
95
- if (majorVersionOf(parts.version) !== majorVersionOf("4.1.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "4.1.0");
95
+ if (majorVersionOf(parts.version) !== majorVersionOf("4.2.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "4.2.0");
96
96
  switch (kind) {
97
97
  case "DocumentPackage": return {
98
98
  kind,
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
- bold: "bold";
14
13
  normal: "normal";
14
+ bold: "bold";
15
15
  }>;
16
16
  style: z.ZodEnum<{
17
- italic: "italic";
18
17
  normal: "normal";
18
+ italic: "italic";
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
- bold: "bold";
14
13
  normal: "normal";
14
+ bold: "bold";
15
15
  }>;
16
16
  style: z.ZodEnum<{
17
- italic: "italic";
18
17
  normal: "normal";
18
+ italic: "italic";
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": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "The canonical, format-agnostic content and document-package schemas shared by ooxml.js, odf.js, documents.js, pdf-codec, and markdown-codec -- 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@4.1.0/schemas/content-document.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@4.2.0/schemas/content-document.schema.json",
4
4
  "oneOf": [
5
5
  {
6
6
  "type": "object",
@@ -2857,7 +2857,7 @@
2857
2857
  ]
2858
2858
  },
2859
2859
  "document": {
2860
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json"
2860
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.2.0/schemas/content-document.schema.json"
2861
2861
  },
2862
2862
  "frame": {
2863
2863
  "$ref": "#/$defs/Box"
@@ -2896,7 +2896,62 @@
2896
2896
  ],
2897
2897
  "additionalProperties": false
2898
2898
  },
2899
+ "ContentConstructStart": {
2900
+ "type": "object",
2901
+ "properties": {
2902
+ "kind": {
2903
+ "type": "string",
2904
+ "const": "constructStart"
2905
+ },
2906
+ "descriptor": {
2907
+ "$ref": "#/$defs/ConstructDescriptor"
2908
+ }
2909
+ },
2910
+ "required": [
2911
+ "kind",
2912
+ "descriptor"
2913
+ ],
2914
+ "additionalProperties": false
2915
+ },
2916
+ "ContentConstructEnd": {
2917
+ "type": "object",
2918
+ "properties": {
2919
+ "kind": {
2920
+ "type": "string",
2921
+ "const": "constructEnd"
2922
+ }
2923
+ },
2924
+ "required": [
2925
+ "kind"
2926
+ ],
2927
+ "additionalProperties": false
2928
+ },
2899
2929
  "ContentBlock": {
2930
+ "oneOf": [
2931
+ {
2932
+ "$ref": "#/$defs/ContentParagraph"
2933
+ },
2934
+ {
2935
+ "$ref": "#/$defs/ContentTable"
2936
+ },
2937
+ {
2938
+ "$ref": "#/$defs/ContentImageBlock"
2939
+ },
2940
+ {
2941
+ "$ref": "#/$defs/ContentPageBreak"
2942
+ },
2943
+ {
2944
+ "$ref": "#/$defs/ContentEmbeddedObjectBlock"
2945
+ },
2946
+ {
2947
+ "$ref": "#/$defs/ContentConstructStart"
2948
+ },
2949
+ {
2950
+ "$ref": "#/$defs/ContentConstructEnd"
2951
+ }
2952
+ ]
2953
+ },
2954
+ "PackageBlockLeaf": {
2900
2955
  "oneOf": [
2901
2956
  {
2902
2957
  "$ref": "#/$defs/ContentParagraph"
@@ -4077,7 +4132,7 @@
4077
4132
  ]
4078
4133
  },
4079
4134
  "document": {
4080
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json"
4135
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.2.0/schemas/content-document.schema.json"
4081
4136
  },
4082
4137
  "frame": {
4083
4138
  "$ref": "#/$defs/Box"
@@ -4129,7 +4184,7 @@
4129
4184
  "$ref": "#/$defs/SectionConstructGroup"
4130
4185
  },
4131
4186
  {
4132
- "$ref": "#/$defs/ContentBlock"
4187
+ "$ref": "#/$defs/PackageBlockLeaf"
4133
4188
  }
4134
4189
  ]
4135
4190
  }
@@ -4164,7 +4219,7 @@
4164
4219
  "$ref": "#/$defs/SectionConstructGroup"
4165
4220
  },
4166
4221
  {
4167
- "$ref": "#/$defs/ContentBlock"
4222
+ "$ref": "#/$defs/PackageBlockLeaf"
4168
4223
  }
4169
4224
  ]
4170
4225
  }
@@ -4196,7 +4251,7 @@
4196
4251
  "$ref": "#/$defs/ShapeConstructGroup"
4197
4252
  },
4198
4253
  {
4199
- "$ref": "#/$defs/ContentBlock"
4254
+ "$ref": "#/$defs/PackageBlockLeaf"
4200
4255
  }
4201
4256
  ]
4202
4257
  }
@@ -4250,7 +4305,7 @@
4250
4305
  "$ref": "#/$defs/ShapeConstructGroup"
4251
4306
  },
4252
4307
  {
4253
- "$ref": "#/$defs/ContentBlock"
4308
+ "$ref": "#/$defs/PackageBlockLeaf"
4254
4309
  }
4255
4310
  ]
4256
4311
  }
@@ -4343,7 +4398,7 @@
4343
4398
  "$ref": "#/$defs/SectionConstructGroup"
4344
4399
  },
4345
4400
  {
4346
- "$ref": "#/$defs/ContentBlock"
4401
+ "$ref": "#/$defs/PackageBlockLeaf"
4347
4402
  }
4348
4403
  ]
4349
4404
  }
@@ -4375,7 +4430,7 @@
4375
4430
  "$ref": "#/$defs/ShapeConstructGroup"
4376
4431
  },
4377
4432
  {
4378
- "$ref": "#/$defs/ContentBlock"
4433
+ "$ref": "#/$defs/PackageBlockLeaf"
4379
4434
  }
4380
4435
  ]
4381
4436
  }
@@ -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@4.1.0/schemas/document-package.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@4.2.0/schemas/document-package.schema.json",
4
4
  "oneOf": [
5
5
  {
6
6
  "type": "object",
@@ -1066,7 +1066,7 @@
1066
1066
  ]
1067
1067
  },
1068
1068
  "document": {
1069
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json"
1069
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.2.0/schemas/content-document.schema.json"
1070
1070
  },
1071
1071
  "frame": {
1072
1072
  "$ref": "#/$defs/Box"
@@ -1105,7 +1105,62 @@
1105
1105
  ],
1106
1106
  "additionalProperties": false
1107
1107
  },
1108
+ "ContentConstructStart": {
1109
+ "type": "object",
1110
+ "properties": {
1111
+ "kind": {
1112
+ "type": "string",
1113
+ "const": "constructStart"
1114
+ },
1115
+ "descriptor": {
1116
+ "$ref": "#/$defs/ConstructDescriptor"
1117
+ }
1118
+ },
1119
+ "required": [
1120
+ "kind",
1121
+ "descriptor"
1122
+ ],
1123
+ "additionalProperties": false
1124
+ },
1125
+ "ContentConstructEnd": {
1126
+ "type": "object",
1127
+ "properties": {
1128
+ "kind": {
1129
+ "type": "string",
1130
+ "const": "constructEnd"
1131
+ }
1132
+ },
1133
+ "required": [
1134
+ "kind"
1135
+ ],
1136
+ "additionalProperties": false
1137
+ },
1108
1138
  "ContentBlock": {
1139
+ "oneOf": [
1140
+ {
1141
+ "$ref": "#/$defs/ContentParagraph"
1142
+ },
1143
+ {
1144
+ "$ref": "#/$defs/ContentTable"
1145
+ },
1146
+ {
1147
+ "$ref": "#/$defs/ContentImageBlock"
1148
+ },
1149
+ {
1150
+ "$ref": "#/$defs/ContentPageBreak"
1151
+ },
1152
+ {
1153
+ "$ref": "#/$defs/ContentEmbeddedObjectBlock"
1154
+ },
1155
+ {
1156
+ "$ref": "#/$defs/ContentConstructStart"
1157
+ },
1158
+ {
1159
+ "$ref": "#/$defs/ContentConstructEnd"
1160
+ }
1161
+ ]
1162
+ },
1163
+ "PackageBlockLeaf": {
1109
1164
  "oneOf": [
1110
1165
  {
1111
1166
  "$ref": "#/$defs/ContentParagraph"
@@ -2286,7 +2341,7 @@
2286
2341
  ]
2287
2342
  },
2288
2343
  "document": {
2289
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json"
2344
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.2.0/schemas/content-document.schema.json"
2290
2345
  },
2291
2346
  "frame": {
2292
2347
  "$ref": "#/$defs/Box"
@@ -2338,7 +2393,7 @@
2338
2393
  "$ref": "#/$defs/SectionConstructGroup"
2339
2394
  },
2340
2395
  {
2341
- "$ref": "#/$defs/ContentBlock"
2396
+ "$ref": "#/$defs/PackageBlockLeaf"
2342
2397
  }
2343
2398
  ]
2344
2399
  }
@@ -2373,7 +2428,7 @@
2373
2428
  "$ref": "#/$defs/SectionConstructGroup"
2374
2429
  },
2375
2430
  {
2376
- "$ref": "#/$defs/ContentBlock"
2431
+ "$ref": "#/$defs/PackageBlockLeaf"
2377
2432
  }
2378
2433
  ]
2379
2434
  }
@@ -2405,7 +2460,7 @@
2405
2460
  "$ref": "#/$defs/ShapeConstructGroup"
2406
2461
  },
2407
2462
  {
2408
- "$ref": "#/$defs/ContentBlock"
2463
+ "$ref": "#/$defs/PackageBlockLeaf"
2409
2464
  }
2410
2465
  ]
2411
2466
  }
@@ -2459,7 +2514,7 @@
2459
2514
  "$ref": "#/$defs/ShapeConstructGroup"
2460
2515
  },
2461
2516
  {
2462
- "$ref": "#/$defs/ContentBlock"
2517
+ "$ref": "#/$defs/PackageBlockLeaf"
2463
2518
  }
2464
2519
  ]
2465
2520
  }
@@ -2552,7 +2607,7 @@
2552
2607
  "$ref": "#/$defs/SectionConstructGroup"
2553
2608
  },
2554
2609
  {
2555
- "$ref": "#/$defs/ContentBlock"
2610
+ "$ref": "#/$defs/PackageBlockLeaf"
2556
2611
  }
2557
2612
  ]
2558
2613
  }
@@ -2584,7 +2639,7 @@
2584
2639
  "$ref": "#/$defs/ShapeConstructGroup"
2585
2640
  },
2586
2641
  {
2587
- "$ref": "#/$defs/ContentBlock"
2642
+ "$ref": "#/$defs/PackageBlockLeaf"
2588
2643
  }
2589
2644
  ]
2590
2645
  }