document-schema 7.6.0 → 7.7.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 (50) hide show
  1. package/README.md +1 -1
  2. package/dist/codec.d.cts +1 -1
  3. package/dist/codec.d.ts +1 -1
  4. package/dist/{content-JIKLIrji.d.cts → content-BlTHCDvF.d.cts} +192 -46
  5. package/dist/{content-PPcQWl8e.d.ts → content-BqSMRlSK.d.ts} +192 -46
  6. package/dist/content-json-schema-defs.cjs +32 -0
  7. package/dist/content-json-schema-defs.js +32 -0
  8. package/dist/content.cjs +37 -11
  9. package/dist/content.d.cts +2 -2
  10. package/dist/content.d.ts +2 -2
  11. package/dist/content.js +33 -12
  12. package/dist/decompose.d.cts +2 -2
  13. package/dist/decompose.d.ts +2 -2
  14. package/dist/definitions.cjs +1 -10
  15. package/dist/definitions.d.cts +4 -4
  16. package/dist/definitions.d.ts +4 -4
  17. package/dist/definitions.js +2 -11
  18. package/dist/factor-styles.cjs +1 -0
  19. package/dist/factor-styles.d.cts +1 -1
  20. package/dist/factor-styles.d.ts +1 -1
  21. package/dist/factor-styles.js +1 -0
  22. package/dist/flatten.cjs +1 -0
  23. package/dist/flatten.d.cts +1 -1
  24. package/dist/flatten.d.ts +1 -1
  25. package/dist/flatten.js +1 -0
  26. package/dist/index.cjs +5 -0
  27. package/dist/index.d.cts +4 -4
  28. package/dist/index.d.ts +4 -4
  29. package/dist/index.js +2 -2
  30. package/dist/{package-node-duDMdOvH.d.cts → package-node-Btm9VsaX.d.cts} +43 -30
  31. package/dist/{package-node-B4CHgiVQ.d.ts → package-node-DPm8hWYt.d.ts} +43 -30
  32. package/dist/package-node.d.cts +1 -1
  33. package/dist/package-node.d.ts +1 -1
  34. package/dist/package.cjs +1 -0
  35. package/dist/package.d.cts +11 -6
  36. package/dist/package.d.ts +11 -6
  37. package/dist/package.js +2 -1
  38. package/dist/schema-io.cjs +2 -2
  39. package/dist/schema-io.d.cts +1 -1
  40. package/dist/schema-io.d.ts +1 -1
  41. package/dist/schema-io.js +2 -2
  42. package/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
  43. package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
  44. package/dist/style.d.cts +1 -1
  45. package/dist/style.d.ts +1 -1
  46. package/dist/text-layout.d.cts +1 -1
  47. package/dist/text-layout.d.ts +1 -1
  48. package/package.json +1 -1
  49. package/schemas/content-document.schema.json +171 -13
  50. package/schemas/document-tree.schema.json +87 -3
@@ -1,6 +1,6 @@
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-duDMdOvH.cjs";
3
+ import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-Btm9VsaX.cjs";
4
4
  import { z } from "zod";
5
5
  //#region src/package.d.ts
6
6
  declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -13,8 +13,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
13
13
  paragraph: z.ZodOptional<z.ZodObject<{
14
14
  alignment: z.ZodOptional<z.ZodEnum<{
15
15
  left: "left";
16
- right: "right";
17
16
  center: "center";
17
+ right: "right";
18
18
  justify: "justify";
19
19
  }>>;
20
20
  list: z.ZodOptional<z.ZodObject<{
@@ -162,8 +162,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
162
162
  paragraph: z.ZodOptional<z.ZodObject<{
163
163
  alignment: z.ZodOptional<z.ZodEnum<{
164
164
  left: "left";
165
- right: "right";
166
165
  center: "center";
166
+ right: "right";
167
167
  justify: "justify";
168
168
  }>>;
169
169
  list: z.ZodOptional<z.ZodObject<{
@@ -302,6 +302,11 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
302
302
  }, z.core.$strip>;
303
303
  kind: z.ZodLiteral<"presentation">;
304
304
  }, z.core.$strip>, z.ZodObject<{
305
+ names: z.ZodOptional<z.ZodArray<z.ZodObject<{
306
+ name: z.ZodString;
307
+ refersTo: z.ZodString;
308
+ scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
309
+ }, z.core.$strip>>>;
305
310
  children: z.ZodArray<z.ZodCustom<SheetGroupNode, SheetGroupNode>>;
306
311
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
307
312
  widthPt: z.ZodNumber;
@@ -311,8 +316,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
311
316
  paragraph: z.ZodOptional<z.ZodObject<{
312
317
  alignment: z.ZodOptional<z.ZodEnum<{
313
318
  left: "left";
314
- right: "right";
315
319
  center: "center";
320
+ right: "right";
316
321
  justify: "justify";
317
322
  }>>;
318
323
  list: z.ZodOptional<z.ZodObject<{
@@ -460,8 +465,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
460
465
  paragraph: z.ZodOptional<z.ZodObject<{
461
466
  alignment: z.ZodOptional<z.ZodEnum<{
462
467
  left: "left";
463
- right: "right";
464
468
  center: "center";
469
+ right: "right";
465
470
  justify: "justify";
466
471
  }>>;
467
472
  list: z.ZodOptional<z.ZodObject<{
@@ -641,8 +646,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
641
646
  paragraph: z.ZodOptional<z.ZodObject<{
642
647
  alignment: z.ZodOptional<z.ZodEnum<{
643
648
  left: "left";
644
- right: "right";
645
649
  center: "center";
650
+ right: "right";
646
651
  justify: "justify";
647
652
  }>>;
648
653
  list: z.ZodOptional<z.ZodObject<{
package/dist/package.d.ts CHANGED
@@ -1,6 +1,6 @@
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-B4CHgiVQ.js";
3
+ import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-DPm8hWYt.js";
4
4
  import { z } from "zod";
5
5
  //#region src/package.d.ts
6
6
  declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -13,8 +13,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
13
13
  paragraph: z.ZodOptional<z.ZodObject<{
14
14
  alignment: z.ZodOptional<z.ZodEnum<{
15
15
  left: "left";
16
- right: "right";
17
16
  center: "center";
17
+ right: "right";
18
18
  justify: "justify";
19
19
  }>>;
20
20
  list: z.ZodOptional<z.ZodObject<{
@@ -162,8 +162,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
162
162
  paragraph: z.ZodOptional<z.ZodObject<{
163
163
  alignment: z.ZodOptional<z.ZodEnum<{
164
164
  left: "left";
165
- right: "right";
166
165
  center: "center";
166
+ right: "right";
167
167
  justify: "justify";
168
168
  }>>;
169
169
  list: z.ZodOptional<z.ZodObject<{
@@ -302,6 +302,11 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
302
302
  }, z.core.$strip>;
303
303
  kind: z.ZodLiteral<"presentation">;
304
304
  }, z.core.$strip>, z.ZodObject<{
305
+ names: z.ZodOptional<z.ZodArray<z.ZodObject<{
306
+ name: z.ZodString;
307
+ refersTo: z.ZodString;
308
+ scopeSheetIndex: z.ZodOptional<z.ZodNumber>;
309
+ }, z.core.$strip>>>;
305
310
  children: z.ZodArray<z.ZodCustom<SheetGroupNode, SheetGroupNode>>;
306
311
  pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
307
312
  widthPt: z.ZodNumber;
@@ -311,8 +316,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
311
316
  paragraph: z.ZodOptional<z.ZodObject<{
312
317
  alignment: z.ZodOptional<z.ZodEnum<{
313
318
  left: "left";
314
- right: "right";
315
319
  center: "center";
320
+ right: "right";
316
321
  justify: "justify";
317
322
  }>>;
318
323
  list: z.ZodOptional<z.ZodObject<{
@@ -460,8 +465,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
460
465
  paragraph: z.ZodOptional<z.ZodObject<{
461
466
  alignment: z.ZodOptional<z.ZodEnum<{
462
467
  left: "left";
463
- right: "right";
464
468
  center: "center";
469
+ right: "right";
465
470
  justify: "justify";
466
471
  }>>;
467
472
  list: z.ZodOptional<z.ZodObject<{
@@ -641,8 +646,8 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
641
646
  paragraph: z.ZodOptional<z.ZodObject<{
642
647
  alignment: z.ZodOptional<z.ZodEnum<{
643
648
  left: "left";
644
- right: "right";
645
649
  center: "center";
650
+ right: "right";
646
651
  justify: "justify";
647
652
  }>>;
648
653
  list: z.ZodOptional<z.ZodObject<{
package/dist/package.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SourceResidueSchema } from "./source.js";
2
2
  import { PageSizeSchema } from "./geometry.js";
3
3
  import { LayoutMetadataSchema } from "./metadata.js";
4
- import { ContentFormulaSchema, contentDocumentSharedFields } from "./content.js";
4
+ import { ContentDefinedNameSchema, ContentFormulaSchema, contentDocumentSharedFields } from "./content.js";
5
5
  import { DefinitionsTableSchema, StylesTableSchema } from "./definitions.js";
6
6
  import { DrawPageGroupSchema, SectionGroupSchema, SheetGroupSchema, SlideGroupSchema } from "./package-node.js";
7
7
  import { z } from "zod";
@@ -31,6 +31,7 @@ const DocumentTreeSchema = z.discriminatedUnion("kind", [
31
31
  z.object({
32
32
  kind: z.literal("spreadsheet"),
33
33
  ...packageEnvelopeFields,
34
+ names: z.array(ContentDefinedNameSchema).optional(),
34
35
  children: z.array(SheetGroupSchema)
35
36
  }),
36
37
  z.object({
@@ -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.6.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
10
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@7.7.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.6.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.6.0");
105
+ if (majorVersionOf(parts.version) !== majorVersionOf("7.7.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.7.0");
106
106
  switch (kind) {
107
107
  case "DocumentTree": return {
108
108
  kind,
@@ -1,4 +1,4 @@
1
- import { b as ContentDocument } from "./content-JIKLIrji.cjs";
1
+ import { S as ContentDocument } from "./content-BlTHCDvF.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 { b as ContentDocument } from "./content-PPcQWl8e.js";
1
+ import { S as ContentDocument } from "./content-BqSMRlSK.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.6.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
9
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@7.7.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.6.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.6.0");
104
+ if (majorVersionOf(parts.version) !== majorVersionOf("7.7.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.7.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-schema",
3
- "version": "7.6.0",
3
+ "version": "7.7.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.6.0/schemas/content-document.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.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.6.0/schemas/undefined#/$defs/schema2"
136
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.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.6.0/schemas/undefined#/$defs/schema2"
154
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.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.6.0/schemas/undefined#/$defs/schema2"
160
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.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.6.0/schemas/undefined#/$defs/schema2"
166
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/undefined#/$defs/schema2"
167
167
  }
168
168
  }
169
169
  },
@@ -175,19 +175,19 @@
175
175
  "default": {
176
176
  "type": "array",
177
177
  "items": {
178
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.6.0/schemas/undefined#/$defs/schema2"
178
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.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.6.0/schemas/undefined#/$defs/schema2"
184
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.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.6.0/schemas/undefined#/$defs/schema2"
190
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/undefined#/$defs/schema2"
191
191
  }
192
192
  }
193
193
  },
@@ -481,7 +481,7 @@
481
481
  "blocks": {
482
482
  "type": "array",
483
483
  "items": {
484
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.6.0/schemas/undefined#/$defs/schema2"
484
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/undefined#/$defs/schema2"
485
485
  }
486
486
  }
487
487
  },
@@ -843,6 +843,57 @@
843
843
  "numberFormatCode": {
844
844
  "type": "string"
845
845
  },
846
+ "font": {
847
+ "type": "object",
848
+ "properties": {
849
+ "bold": {
850
+ "type": "boolean"
851
+ },
852
+ "italic": {
853
+ "type": "boolean"
854
+ },
855
+ "underline": {
856
+ "type": "boolean"
857
+ },
858
+ "strike": {
859
+ "type": "boolean"
860
+ },
861
+ "fontFamily": {
862
+ "type": "string"
863
+ },
864
+ "sizePt": {
865
+ "type": "number",
866
+ "exclusiveMinimum": 0
867
+ },
868
+ "color": {
869
+ "type": "object",
870
+ "properties": {
871
+ "r": {
872
+ "type": "number",
873
+ "minimum": 0,
874
+ "maximum": 1
875
+ },
876
+ "g": {
877
+ "type": "number",
878
+ "minimum": 0,
879
+ "maximum": 1
880
+ },
881
+ "b": {
882
+ "type": "number",
883
+ "minimum": 0,
884
+ "maximum": 1
885
+ }
886
+ },
887
+ "required": [
888
+ "r",
889
+ "g",
890
+ "b"
891
+ ],
892
+ "additionalProperties": false
893
+ }
894
+ },
895
+ "additionalProperties": false
896
+ },
846
897
  "runs": {
847
898
  "type": "array",
848
899
  "items": {
@@ -1682,6 +1733,29 @@
1682
1733
  "altText": {
1683
1734
  "type": "string"
1684
1735
  },
1736
+ "original": {
1737
+ "type": "object",
1738
+ "properties": {
1739
+ "filter": {
1740
+ "type": "string",
1741
+ "enum": [
1742
+ "jbig2",
1743
+ "jpeg2000"
1744
+ ]
1745
+ },
1746
+ "base64": {
1747
+ "type": "string"
1748
+ },
1749
+ "jbig2GlobalsBase64": {
1750
+ "type": "string"
1751
+ }
1752
+ },
1753
+ "required": [
1754
+ "filter",
1755
+ "base64"
1756
+ ],
1757
+ "additionalProperties": false
1758
+ },
1685
1759
  "floatPosition": {
1686
1760
  "type": "object",
1687
1761
  "properties": {
@@ -2155,7 +2229,7 @@
2155
2229
  ]
2156
2230
  },
2157
2231
  "document": {
2158
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.6.0/schemas/content-document.schema.json"
2232
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/content-document.schema.json"
2159
2233
  },
2160
2234
  "frame": {
2161
2235
  "type": "object",
@@ -4048,6 +4122,30 @@
4048
4122
  ],
4049
4123
  "additionalProperties": false
4050
4124
  }
4125
+ },
4126
+ "names": {
4127
+ "type": "array",
4128
+ "items": {
4129
+ "type": "object",
4130
+ "properties": {
4131
+ "name": {
4132
+ "type": "string"
4133
+ },
4134
+ "refersTo": {
4135
+ "type": "string"
4136
+ },
4137
+ "scopeSheetIndex": {
4138
+ "type": "integer",
4139
+ "minimum": 0,
4140
+ "maximum": 9007199254740991
4141
+ }
4142
+ },
4143
+ "required": [
4144
+ "name",
4145
+ "refersTo"
4146
+ ],
4147
+ "additionalProperties": false
4148
+ }
4051
4149
  }
4052
4150
  },
4053
4151
  "required": [
@@ -4295,7 +4393,7 @@
4295
4393
  "blocks": {
4296
4394
  "type": "array",
4297
4395
  "items": {
4298
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.6.0/schemas/undefined#/$defs/schema2"
4396
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/undefined#/$defs/schema2"
4299
4397
  }
4300
4398
  }
4301
4399
  },
@@ -6617,6 +6715,29 @@
6617
6715
  ],
6618
6716
  "additionalProperties": false
6619
6717
  },
6718
+ "ContentImageOriginal": {
6719
+ "type": "object",
6720
+ "properties": {
6721
+ "filter": {
6722
+ "type": "string",
6723
+ "enum": [
6724
+ "jbig2",
6725
+ "jpeg2000"
6726
+ ]
6727
+ },
6728
+ "base64": {
6729
+ "type": "string"
6730
+ },
6731
+ "jbig2GlobalsBase64": {
6732
+ "type": "string"
6733
+ }
6734
+ },
6735
+ "required": [
6736
+ "filter",
6737
+ "base64"
6738
+ ],
6739
+ "additionalProperties": false
6740
+ },
6620
6741
  "ContentImageBlock": {
6621
6742
  "type": "object",
6622
6743
  "properties": {
@@ -6647,6 +6768,9 @@
6647
6768
  "altText": {
6648
6769
  "type": "string"
6649
6770
  },
6771
+ "original": {
6772
+ "$ref": "#/$defs/ContentImageOriginal"
6773
+ },
6650
6774
  "floatPosition": {
6651
6775
  "$ref": "#/$defs/ContentFloatPosition"
6652
6776
  },
@@ -6836,7 +6960,7 @@
6836
6960
  ]
6837
6961
  },
6838
6962
  "document": {
6839
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.6.0/schemas/content-document.schema.json"
6963
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/content-document.schema.json"
6840
6964
  },
6841
6965
  "frame": {
6842
6966
  "$ref": "#/$defs/Box"
@@ -7411,6 +7535,34 @@
7411
7535
  ],
7412
7536
  "additionalProperties": false
7413
7537
  },
7538
+ "ContentFont": {
7539
+ "type": "object",
7540
+ "properties": {
7541
+ "bold": {
7542
+ "type": "boolean"
7543
+ },
7544
+ "italic": {
7545
+ "type": "boolean"
7546
+ },
7547
+ "underline": {
7548
+ "type": "boolean"
7549
+ },
7550
+ "strike": {
7551
+ "type": "boolean"
7552
+ },
7553
+ "fontFamily": {
7554
+ "type": "string"
7555
+ },
7556
+ "sizePt": {
7557
+ "type": "number",
7558
+ "exclusiveMinimum": 0
7559
+ },
7560
+ "color": {
7561
+ "$ref": "#/$defs/Color"
7562
+ }
7563
+ },
7564
+ "additionalProperties": false
7565
+ },
7414
7566
  "ContentSheetCell": {
7415
7567
  "type": "object",
7416
7568
  "properties": {
@@ -7436,6 +7588,9 @@
7436
7588
  "numberFormatCode": {
7437
7589
  "type": "string"
7438
7590
  },
7591
+ "font": {
7592
+ "$ref": "#/$defs/ContentFont"
7593
+ },
7439
7594
  "runs": {
7440
7595
  "type": "array",
7441
7596
  "items": {
@@ -8504,6 +8659,9 @@
8504
8659
  "altText": {
8505
8660
  "type": "string"
8506
8661
  },
8662
+ "original": {
8663
+ "$ref": "#/$defs/ContentImageOriginal"
8664
+ },
8507
8665
  "floatPosition": {
8508
8666
  "$ref": "#/$defs/ContentFloatPosition"
8509
8667
  },
@@ -9031,7 +9189,7 @@
9031
9189
  ]
9032
9190
  },
9033
9191
  "document": {
9034
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.6.0/schemas/content-document.schema.json"
9192
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.7.0/schemas/content-document.schema.json"
9035
9193
  },
9036
9194
  "frame": {
9037
9195
  "$ref": "#/$defs/Box"