document-schema 7.9.0 → 7.10.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 (43) hide show
  1. package/dist/codec.d.cts +1 -1
  2. package/dist/codec.d.ts +1 -1
  3. package/dist/{construct-GVdTKrE7.d.cts → construct-C9cYkjnd.d.cts} +3 -3
  4. package/dist/{construct-GVdTKrE7.d.ts → construct-C9cYkjnd.d.ts} +3 -3
  5. package/dist/construct.d.cts +1 -1
  6. package/dist/construct.d.ts +1 -1
  7. package/dist/{content-CWkiQCeb.d.cts → content-BVsLx31F.d.cts} +17 -4
  8. package/dist/{content-BrxuIVTc.d.ts → content-DtZVw7l9.d.ts} +17 -4
  9. package/dist/content-json-schema-defs.cjs +17 -0
  10. package/dist/content-json-schema-defs.js +17 -0
  11. package/dist/content.cjs +1 -0
  12. package/dist/content.d.cts +1 -1
  13. package/dist/content.d.ts +1 -1
  14. package/dist/content.js +1 -0
  15. package/dist/decompose.d.cts +2 -2
  16. package/dist/decompose.d.ts +2 -2
  17. package/dist/definitions.d.cts +1 -1
  18. package/dist/definitions.d.ts +1 -1
  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 +5 -5
  27. package/dist/index.d.ts +5 -5
  28. package/dist/index.js +2 -2
  29. package/dist/{package-node-_inncvUd.d.cts → package-node-COQGk_QJ.d.cts} +9 -8
  30. package/dist/{package-node-BYGq6LRL.d.ts → package-node-CYxBxyWR.d.ts} +9 -8
  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 +39 -2
  35. package/dist/package.d.ts +39 -2
  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/package.json +1 -1
  42. package/schemas/content-document.schema.json +46 -13
  43. package/schemas/document-tree.schema.json +60 -3
package/dist/codec.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-CWkiQCeb.cjs";
1
+ import { C as ContentDocument } from "./content-BVsLx31F.cjs";
2
2
  //#region src/codec.d.ts
3
3
  interface ContentCodec<TOptions = unknown> {
4
4
  read(bytes: Uint8Array, options?: TOptions): ContentDocument;
package/dist/codec.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-BrxuIVTc.js";
1
+ import { C as ContentDocument } from "./content-DtZVw7l9.js";
2
2
  //#region src/codec.d.ts
3
3
  interface ContentCodec<TOptions = unknown> {
4
4
  read(bytes: Uint8Array, options?: TOptions): ContentDocument;
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  //#region src/construct.d.ts
3
3
  declare const ContentControlTypeSchema: z.ZodEnum<{
4
- date: "date";
5
4
  richText: "richText";
6
5
  plainText: "plainText";
7
6
  checkbox: "checkbox";
8
7
  dropDown: "dropDown";
9
8
  comboBox: "comboBox";
9
+ date: "date";
10
10
  picture: "picture";
11
11
  repeatingSection: "repeatingSection";
12
12
  button: "button";
@@ -23,12 +23,12 @@ type ContentControlLock = z.infer<typeof ContentControlLockSchema>;
23
23
  declare const ContentControlDescriptorSchema: z.ZodObject<{
24
24
  kind: z.ZodLiteral<"contentControl">;
25
25
  controlType: z.ZodEnum<{
26
- date: "date";
27
26
  richText: "richText";
28
27
  plainText: "plainText";
29
28
  checkbox: "checkbox";
30
29
  dropDown: "dropDown";
31
30
  comboBox: "comboBox";
31
+ date: "date";
32
32
  picture: "picture";
33
33
  repeatingSection: "repeatingSection";
34
34
  button: "button";
@@ -252,12 +252,12 @@ type DivisionDescriptor = z.infer<typeof DivisionDescriptorSchema>;
252
252
  declare const ConstructDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
253
253
  kind: z.ZodLiteral<"contentControl">;
254
254
  controlType: z.ZodEnum<{
255
- date: "date";
256
255
  richText: "richText";
257
256
  plainText: "plainText";
258
257
  checkbox: "checkbox";
259
258
  dropDown: "dropDown";
260
259
  comboBox: "comboBox";
260
+ date: "date";
261
261
  picture: "picture";
262
262
  repeatingSection: "repeatingSection";
263
263
  button: "button";
@@ -1,12 +1,12 @@
1
1
  import { z } from "zod";
2
2
  //#region src/construct.d.ts
3
3
  declare const ContentControlTypeSchema: z.ZodEnum<{
4
- date: "date";
5
4
  richText: "richText";
6
5
  plainText: "plainText";
7
6
  checkbox: "checkbox";
8
7
  dropDown: "dropDown";
9
8
  comboBox: "comboBox";
9
+ date: "date";
10
10
  picture: "picture";
11
11
  repeatingSection: "repeatingSection";
12
12
  button: "button";
@@ -23,12 +23,12 @@ type ContentControlLock = z.infer<typeof ContentControlLockSchema>;
23
23
  declare const ContentControlDescriptorSchema: z.ZodObject<{
24
24
  kind: z.ZodLiteral<"contentControl">;
25
25
  controlType: z.ZodEnum<{
26
- date: "date";
27
26
  richText: "richText";
28
27
  plainText: "plainText";
29
28
  checkbox: "checkbox";
30
29
  dropDown: "dropDown";
31
30
  comboBox: "comboBox";
31
+ date: "date";
32
32
  picture: "picture";
33
33
  repeatingSection: "repeatingSection";
34
34
  button: "button";
@@ -252,12 +252,12 @@ type DivisionDescriptor = z.infer<typeof DivisionDescriptorSchema>;
252
252
  declare const ConstructDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
253
253
  kind: z.ZodLiteral<"contentControl">;
254
254
  controlType: z.ZodEnum<{
255
- date: "date";
256
255
  richText: "richText";
257
256
  plainText: "plainText";
258
257
  checkbox: "checkbox";
259
258
  dropDown: "dropDown";
260
259
  comboBox: "comboBox";
260
+ date: "date";
261
261
  picture: "picture";
262
262
  repeatingSection: "repeatingSection";
263
263
  button: "button";
@@ -1,2 +1,2 @@
1
- import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-GVdTKrE7.cjs";
1
+ import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-C9cYkjnd.cjs";
2
2
  export { AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, ConstructDescriptor, ConstructDescriptorSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, FieldDescriptor, FieldDescriptorSchema, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema };
@@ -1,2 +1,2 @@
1
- import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-GVdTKrE7.js";
1
+ import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-C9cYkjnd.js";
2
2
  export { AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, ConstructDescriptor, ConstructDescriptorSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, FieldDescriptor, FieldDescriptorSchema, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema };
@@ -205,12 +205,12 @@ declare const RunConstructExtentSchema: z.ZodObject<{
205
205
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
206
206
  kind: z.ZodLiteral<"contentControl">;
207
207
  controlType: z.ZodEnum<{
208
- date: "date";
209
208
  richText: "richText";
210
209
  plainText: "plainText";
211
210
  checkbox: "checkbox";
212
211
  dropDown: "dropDown";
213
212
  comboBox: "comboBox";
213
+ date: "date";
214
214
  picture: "picture";
215
215
  repeatingSection: "repeatingSection";
216
216
  button: "button";
@@ -588,12 +588,12 @@ declare const ContentParagraphSchema: z.ZodObject<{
588
588
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
589
589
  kind: z.ZodLiteral<"contentControl">;
590
590
  controlType: z.ZodEnum<{
591
- date: "date";
592
591
  richText: "richText";
593
592
  plainText: "plainText";
594
593
  checkbox: "checkbox";
595
594
  dropDown: "dropDown";
596
595
  comboBox: "comboBox";
596
+ date: "date";
597
597
  picture: "picture";
598
598
  repeatingSection: "repeatingSection";
599
599
  button: "button";
@@ -1305,12 +1305,12 @@ declare const ContentConstructStartSchema: z.ZodObject<{
1305
1305
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1306
1306
  kind: z.ZodLiteral<"contentControl">;
1307
1307
  controlType: z.ZodEnum<{
1308
- date: "date";
1309
1308
  richText: "richText";
1310
1309
  plainText: "plainText";
1311
1310
  checkbox: "checkbox";
1312
1311
  dropDown: "dropDown";
1313
1312
  comboBox: "comboBox";
1313
+ date: "date";
1314
1314
  picture: "picture";
1315
1315
  repeatingSection: "repeatingSection";
1316
1316
  button: "button";
@@ -1509,6 +1509,8 @@ interface ContentTableCell {
1509
1509
  sourcePath?: string;
1510
1510
  source?: SourceResidue;
1511
1511
  frames?: LayoutFrame[];
1512
+ origin?: ContentOrigin;
1513
+ interpretation?: ContentInterpretation;
1512
1514
  }
1513
1515
  interface ContentTableRow {
1514
1516
  cells: ContentTableCell[];
@@ -1522,6 +1524,8 @@ interface ContentTable {
1522
1524
  sourcePath?: string;
1523
1525
  source?: SourceResidue;
1524
1526
  frames?: LayoutFrame[];
1527
+ origin?: ContentOrigin;
1528
+ interpretation?: ContentInterpretation;
1525
1529
  }
1526
1530
  type ContentEmbeddedObjectKind = "formula" | "wordprocessing" | "presentation" | "spreadsheet" | "drawing" | "chart";
1527
1531
  interface ContentEmbeddedObject {
@@ -1533,6 +1537,8 @@ interface ContentEmbeddedObject {
1533
1537
  offsetXPt?: number;
1534
1538
  offsetYPt?: number;
1535
1539
  source?: SourceResidue;
1540
+ origin?: ContentOrigin;
1541
+ interpretation?: ContentInterpretation;
1536
1542
  }
1537
1543
  interface ContentEmbeddedObjectBlock extends ContentEmbeddedObject {
1538
1544
  kind: "embeddedObject";
@@ -1582,12 +1588,12 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
1582
1588
  }, z.core.$strip>>;
1583
1589
  }, z.core.$strip>>;
1584
1590
  objectKind: z.ZodEnum<{
1585
- chart: "chart";
1586
1591
  formula: "formula";
1587
1592
  wordprocessing: "wordprocessing";
1588
1593
  presentation: "presentation";
1589
1594
  spreadsheet: "spreadsheet";
1590
1595
  drawing: "drawing";
1596
+ chart: "chart";
1591
1597
  }>;
1592
1598
  document: z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
1593
1599
  sections: z.ZodArray<z.ZodObject<{
@@ -1810,6 +1816,7 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
1810
1816
  fontScale: z.ZodOptional<z.ZodNumber>;
1811
1817
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
1812
1818
  paintOrder: z.ZodOptional<z.ZodNumber>;
1819
+ readingOrder: z.ZodOptional<z.ZodNumber>;
1813
1820
  sourcePath: z.ZodOptional<z.ZodString>;
1814
1821
  source: z.ZodOptional<z.ZodObject<{
1815
1822
  format: z.ZodEnum<{
@@ -3350,6 +3357,7 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
3350
3357
  fontScale: z.ZodOptional<z.ZodNumber>;
3351
3358
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
3352
3359
  paintOrder: z.ZodOptional<z.ZodNumber>;
3360
+ readingOrder: z.ZodOptional<z.ZodNumber>;
3353
3361
  sourcePath: z.ZodOptional<z.ZodString>;
3354
3362
  source: z.ZodOptional<z.ZodObject<{
3355
3363
  format: z.ZodEnum<{
@@ -5279,6 +5287,7 @@ declare const ContentShapeSchema: z.ZodObject<{
5279
5287
  fontScale: z.ZodOptional<z.ZodNumber>;
5280
5288
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
5281
5289
  paintOrder: z.ZodOptional<z.ZodNumber>;
5290
+ readingOrder: z.ZodOptional<z.ZodNumber>;
5282
5291
  sourcePath: z.ZodOptional<z.ZodString>;
5283
5292
  source: z.ZodOptional<z.ZodObject<{
5284
5293
  format: z.ZodEnum<{
@@ -5385,6 +5394,7 @@ declare const ContentSlideSchema: z.ZodObject<{
5385
5394
  fontScale: z.ZodOptional<z.ZodNumber>;
5386
5395
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
5387
5396
  paintOrder: z.ZodOptional<z.ZodNumber>;
5397
+ readingOrder: z.ZodOptional<z.ZodNumber>;
5388
5398
  sourcePath: z.ZodOptional<z.ZodString>;
5389
5399
  source: z.ZodOptional<z.ZodObject<{
5390
5400
  format: z.ZodEnum<{
@@ -8880,6 +8890,7 @@ declare const ContentDrawPageSchema: z.ZodObject<{
8880
8890
  fontScale: z.ZodOptional<z.ZodNumber>;
8881
8891
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
8882
8892
  paintOrder: z.ZodOptional<z.ZodNumber>;
8893
+ readingOrder: z.ZodOptional<z.ZodNumber>;
8883
8894
  sourcePath: z.ZodOptional<z.ZodString>;
8884
8895
  source: z.ZodOptional<z.ZodObject<{
8885
8896
  format: z.ZodEnum<{
@@ -9799,6 +9810,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9799
9810
  fontScale: z.ZodOptional<z.ZodNumber>;
9800
9811
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
9801
9812
  paintOrder: z.ZodOptional<z.ZodNumber>;
9813
+ readingOrder: z.ZodOptional<z.ZodNumber>;
9802
9814
  sourcePath: z.ZodOptional<z.ZodString>;
9803
9815
  source: z.ZodOptional<z.ZodObject<{
9804
9816
  format: z.ZodEnum<{
@@ -11339,6 +11351,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
11339
11351
  fontScale: z.ZodOptional<z.ZodNumber>;
11340
11352
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
11341
11353
  paintOrder: z.ZodOptional<z.ZodNumber>;
11354
+ readingOrder: z.ZodOptional<z.ZodNumber>;
11342
11355
  sourcePath: z.ZodOptional<z.ZodString>;
11343
11356
  source: z.ZodOptional<z.ZodObject<{
11344
11357
  format: z.ZodEnum<{
@@ -205,12 +205,12 @@ declare const RunConstructExtentSchema: z.ZodObject<{
205
205
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
206
206
  kind: z.ZodLiteral<"contentControl">;
207
207
  controlType: z.ZodEnum<{
208
- date: "date";
209
208
  richText: "richText";
210
209
  plainText: "plainText";
211
210
  checkbox: "checkbox";
212
211
  dropDown: "dropDown";
213
212
  comboBox: "comboBox";
213
+ date: "date";
214
214
  picture: "picture";
215
215
  repeatingSection: "repeatingSection";
216
216
  button: "button";
@@ -588,12 +588,12 @@ declare const ContentParagraphSchema: z.ZodObject<{
588
588
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
589
589
  kind: z.ZodLiteral<"contentControl">;
590
590
  controlType: z.ZodEnum<{
591
- date: "date";
592
591
  richText: "richText";
593
592
  plainText: "plainText";
594
593
  checkbox: "checkbox";
595
594
  dropDown: "dropDown";
596
595
  comboBox: "comboBox";
596
+ date: "date";
597
597
  picture: "picture";
598
598
  repeatingSection: "repeatingSection";
599
599
  button: "button";
@@ -1305,12 +1305,12 @@ declare const ContentConstructStartSchema: z.ZodObject<{
1305
1305
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1306
1306
  kind: z.ZodLiteral<"contentControl">;
1307
1307
  controlType: z.ZodEnum<{
1308
- date: "date";
1309
1308
  richText: "richText";
1310
1309
  plainText: "plainText";
1311
1310
  checkbox: "checkbox";
1312
1311
  dropDown: "dropDown";
1313
1312
  comboBox: "comboBox";
1313
+ date: "date";
1314
1314
  picture: "picture";
1315
1315
  repeatingSection: "repeatingSection";
1316
1316
  button: "button";
@@ -1509,6 +1509,8 @@ interface ContentTableCell {
1509
1509
  sourcePath?: string;
1510
1510
  source?: SourceResidue;
1511
1511
  frames?: LayoutFrame[];
1512
+ origin?: ContentOrigin;
1513
+ interpretation?: ContentInterpretation;
1512
1514
  }
1513
1515
  interface ContentTableRow {
1514
1516
  cells: ContentTableCell[];
@@ -1522,6 +1524,8 @@ interface ContentTable {
1522
1524
  sourcePath?: string;
1523
1525
  source?: SourceResidue;
1524
1526
  frames?: LayoutFrame[];
1527
+ origin?: ContentOrigin;
1528
+ interpretation?: ContentInterpretation;
1525
1529
  }
1526
1530
  type ContentEmbeddedObjectKind = "formula" | "wordprocessing" | "presentation" | "spreadsheet" | "drawing" | "chart";
1527
1531
  interface ContentEmbeddedObject {
@@ -1533,6 +1537,8 @@ interface ContentEmbeddedObject {
1533
1537
  offsetXPt?: number;
1534
1538
  offsetYPt?: number;
1535
1539
  source?: SourceResidue;
1540
+ origin?: ContentOrigin;
1541
+ interpretation?: ContentInterpretation;
1536
1542
  }
1537
1543
  interface ContentEmbeddedObjectBlock extends ContentEmbeddedObject {
1538
1544
  kind: "embeddedObject";
@@ -1582,12 +1588,12 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
1582
1588
  }, z.core.$strip>>;
1583
1589
  }, z.core.$strip>>;
1584
1590
  objectKind: z.ZodEnum<{
1585
- chart: "chart";
1586
1591
  formula: "formula";
1587
1592
  wordprocessing: "wordprocessing";
1588
1593
  presentation: "presentation";
1589
1594
  spreadsheet: "spreadsheet";
1590
1595
  drawing: "drawing";
1596
+ chart: "chart";
1591
1597
  }>;
1592
1598
  document: z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
1593
1599
  sections: z.ZodArray<z.ZodObject<{
@@ -1810,6 +1816,7 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
1810
1816
  fontScale: z.ZodOptional<z.ZodNumber>;
1811
1817
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
1812
1818
  paintOrder: z.ZodOptional<z.ZodNumber>;
1819
+ readingOrder: z.ZodOptional<z.ZodNumber>;
1813
1820
  sourcePath: z.ZodOptional<z.ZodString>;
1814
1821
  source: z.ZodOptional<z.ZodObject<{
1815
1822
  format: z.ZodEnum<{
@@ -3350,6 +3357,7 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
3350
3357
  fontScale: z.ZodOptional<z.ZodNumber>;
3351
3358
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
3352
3359
  paintOrder: z.ZodOptional<z.ZodNumber>;
3360
+ readingOrder: z.ZodOptional<z.ZodNumber>;
3353
3361
  sourcePath: z.ZodOptional<z.ZodString>;
3354
3362
  source: z.ZodOptional<z.ZodObject<{
3355
3363
  format: z.ZodEnum<{
@@ -5279,6 +5287,7 @@ declare const ContentShapeSchema: z.ZodObject<{
5279
5287
  fontScale: z.ZodOptional<z.ZodNumber>;
5280
5288
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
5281
5289
  paintOrder: z.ZodOptional<z.ZodNumber>;
5290
+ readingOrder: z.ZodOptional<z.ZodNumber>;
5282
5291
  sourcePath: z.ZodOptional<z.ZodString>;
5283
5292
  source: z.ZodOptional<z.ZodObject<{
5284
5293
  format: z.ZodEnum<{
@@ -5385,6 +5394,7 @@ declare const ContentSlideSchema: z.ZodObject<{
5385
5394
  fontScale: z.ZodOptional<z.ZodNumber>;
5386
5395
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
5387
5396
  paintOrder: z.ZodOptional<z.ZodNumber>;
5397
+ readingOrder: z.ZodOptional<z.ZodNumber>;
5388
5398
  sourcePath: z.ZodOptional<z.ZodString>;
5389
5399
  source: z.ZodOptional<z.ZodObject<{
5390
5400
  format: z.ZodEnum<{
@@ -8880,6 +8890,7 @@ declare const ContentDrawPageSchema: z.ZodObject<{
8880
8890
  fontScale: z.ZodOptional<z.ZodNumber>;
8881
8891
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
8882
8892
  paintOrder: z.ZodOptional<z.ZodNumber>;
8893
+ readingOrder: z.ZodOptional<z.ZodNumber>;
8883
8894
  sourcePath: z.ZodOptional<z.ZodString>;
8884
8895
  source: z.ZodOptional<z.ZodObject<{
8885
8896
  format: z.ZodEnum<{
@@ -9799,6 +9810,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
9799
9810
  fontScale: z.ZodOptional<z.ZodNumber>;
9800
9811
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
9801
9812
  paintOrder: z.ZodOptional<z.ZodNumber>;
9813
+ readingOrder: z.ZodOptional<z.ZodNumber>;
9802
9814
  sourcePath: z.ZodOptional<z.ZodString>;
9803
9815
  source: z.ZodOptional<z.ZodObject<{
9804
9816
  format: z.ZodEnum<{
@@ -11339,6 +11351,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
11339
11351
  fontScale: z.ZodOptional<z.ZodNumber>;
11340
11352
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
11341
11353
  paintOrder: z.ZodOptional<z.ZodNumber>;
11354
+ readingOrder: z.ZodOptional<z.ZodNumber>;
11342
11355
  sourcePath: z.ZodOptional<z.ZodString>;
11343
11356
  source: z.ZodOptional<z.ZodObject<{
11344
11357
  format: z.ZodEnum<{
@@ -1010,6 +1010,7 @@ const CONTENT_DEFS = {
1010
1010
  minimum: 0
1011
1011
  },
1012
1012
  paintOrder: { type: "number" },
1013
+ readingOrder: { type: "number" },
1013
1014
  sourcePath: { type: "string" },
1014
1015
  source: { $ref: "#/$defs/SourceResidue" },
1015
1016
  frames: {
@@ -2901,6 +2902,22 @@ const CONTENT_DEFS = {
2901
2902
  required: ["id", "bases"],
2902
2903
  additionalProperties: false
2903
2904
  },
2905
+ TreeEmbeddedFont: {
2906
+ type: "object",
2907
+ properties: {
2908
+ family: { type: "string" },
2909
+ bold: { type: "boolean" },
2910
+ italic: { type: "boolean" },
2911
+ base64: { type: "string" }
2912
+ },
2913
+ required: [
2914
+ "family",
2915
+ "bold",
2916
+ "italic",
2917
+ "base64"
2918
+ ],
2919
+ additionalProperties: false
2920
+ },
2904
2921
  SymbolTable: {
2905
2922
  type: "object",
2906
2923
  properties: {
@@ -1009,6 +1009,7 @@ const CONTENT_DEFS = {
1009
1009
  minimum: 0
1010
1010
  },
1011
1011
  paintOrder: { type: "number" },
1012
+ readingOrder: { type: "number" },
1012
1013
  sourcePath: { type: "string" },
1013
1014
  source: { $ref: "#/$defs/SourceResidue" },
1014
1015
  frames: {
@@ -2900,6 +2901,22 @@ const CONTENT_DEFS = {
2900
2901
  required: ["id", "bases"],
2901
2902
  additionalProperties: false
2902
2903
  },
2904
+ TreeEmbeddedFont: {
2905
+ type: "object",
2906
+ properties: {
2907
+ family: { type: "string" },
2908
+ bold: { type: "boolean" },
2909
+ italic: { type: "boolean" },
2910
+ base64: { type: "string" }
2911
+ },
2912
+ required: [
2913
+ "family",
2914
+ "bold",
2915
+ "italic",
2916
+ "base64"
2917
+ ],
2918
+ additionalProperties: false
2919
+ },
2903
2920
  SymbolTable: {
2904
2921
  type: "object",
2905
2922
  properties: {
package/dist/content.cjs CHANGED
@@ -445,6 +445,7 @@ const ContentShapeSchema = zod.z.object({
445
445
  fontScale: zod.z.number().positive().optional(),
446
446
  lineSpacingReduction: zod.z.number().nonnegative().optional(),
447
447
  paintOrder: zod.z.number().optional(),
448
+ readingOrder: zod.z.number().optional(),
448
449
  sourcePath: zod.z.string().optional(),
449
450
  source: require_source.SourceResidueSchema.optional(),
450
451
  frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
@@ -1,2 +1,2 @@
1
- import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-CWkiQCeb.cjs";
1
+ import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-BVsLx31F.cjs";
2
2
  export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
package/dist/content.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-BrxuIVTc.js";
1
+ import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-DtZVw7l9.js";
2
2
  export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
package/dist/content.js CHANGED
@@ -444,6 +444,7 @@ const ContentShapeSchema = z.object({
444
444
  fontScale: z.number().positive().optional(),
445
445
  lineSpacingReduction: z.number().nonnegative().optional(),
446
446
  paintOrder: z.number().optional(),
447
+ readingOrder: z.number().optional(),
447
448
  sourcePath: z.string().optional(),
448
449
  source: SourceResidueSchema.optional(),
449
450
  frames: z.array(LayoutFrameSchema).optional(),
@@ -1,5 +1,5 @@
1
- import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-CWkiQCeb.cjs";
2
- import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-_inncvUd.cjs";
1
+ import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-BVsLx31F.cjs";
2
+ import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-COQGk_QJ.cjs";
3
3
  //#region src/decompose.d.ts
4
4
  declare function isHeadingParagraph(paragraph: ContentParagraph): paragraph is HeadingParagraph;
5
5
  declare function isListParagraph(paragraph: ContentParagraph): paragraph is ListParagraph;
@@ -1,5 +1,5 @@
1
- import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-BrxuIVTc.js";
2
- import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-BYGq6LRL.js";
1
+ import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-DtZVw7l9.js";
2
+ import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-CYxBxyWR.js";
3
3
  //#region src/decompose.d.ts
4
4
  declare function isHeadingParagraph(paragraph: ContentParagraph): paragraph is HeadingParagraph;
5
5
  declare function isListParagraph(paragraph: ContentParagraph): paragraph is ListParagraph;
@@ -1,4 +1,4 @@
1
- import { St as ContentRun, mt as ContentParagraph } from "./content-CWkiQCeb.cjs";
1
+ import { St as ContentRun, mt as ContentParagraph } from "./content-BVsLx31F.cjs";
2
2
  import { z } from "zod";
3
3
  //#region src/definitions.d.ts
4
4
  declare const StyleParagraphPropertiesSchema: z.ZodObject<{
@@ -1,4 +1,4 @@
1
- import { St as ContentRun, mt as ContentParagraph } from "./content-BrxuIVTc.js";
1
+ import { St as ContentRun, mt as ContentParagraph } from "./content-DtZVw7l9.js";
2
2
  import { z } from "zod";
3
3
  //#region src/definitions.d.ts
4
4
  declare const StyleParagraphPropertiesSchema: z.ZodObject<{
@@ -79,9 +79,10 @@ function factorStyles(pkg) {
79
79
  const reassembled = assembleTree(require_flatten.flattenTree(pkg), pkg.pages);
80
80
  const carried = {
81
81
  ...pkg.definitions !== void 0 ? { definitions: pkg.definitions } : {},
82
+ ...pkg.fonts !== void 0 ? { fonts: pkg.fonts } : {},
82
83
  ...pkg.source !== void 0 ? { source: pkg.source } : {}
83
84
  };
84
- if (pkg.definitions === void 0 && pkg.source === void 0) return reassembled;
85
+ if (pkg.definitions === void 0 && pkg.fonts === void 0 && pkg.source === void 0) return reassembled;
85
86
  return {
86
87
  ...reassembled,
87
88
  ...carried
@@ -1,5 +1,5 @@
1
1
  import { l as PageSize } from "./geometry-CvcjSwnA.cjs";
2
- import { C as ContentDocument } from "./content-CWkiQCeb.cjs";
2
+ import { C as ContentDocument } from "./content-BVsLx31F.cjs";
3
3
  import { DocumentTree } from "./package.cjs";
4
4
  //#region src/factor-styles.d.ts
5
5
  declare function assembleTree(content: ContentDocument, pages?: readonly PageSize[]): DocumentTree;
@@ -1,5 +1,5 @@
1
1
  import { l as PageSize } from "./geometry-CvcjSwnA.js";
2
- import { C as ContentDocument } from "./content-BrxuIVTc.js";
2
+ import { C as ContentDocument } from "./content-DtZVw7l9.js";
3
3
  import { DocumentTree } from "./package.js";
4
4
  //#region src/factor-styles.d.ts
5
5
  declare function assembleTree(content: ContentDocument, pages?: readonly PageSize[]): DocumentTree;
@@ -78,9 +78,10 @@ function factorStyles(pkg) {
78
78
  const reassembled = assembleTree(flattenTree(pkg), pkg.pages);
79
79
  const carried = {
80
80
  ...pkg.definitions !== void 0 ? { definitions: pkg.definitions } : {},
81
+ ...pkg.fonts !== void 0 ? { fonts: pkg.fonts } : {},
81
82
  ...pkg.source !== void 0 ? { source: pkg.source } : {}
82
83
  };
83
- if (pkg.definitions === void 0 && pkg.source === void 0) return reassembled;
84
+ if (pkg.definitions === void 0 && pkg.fonts === void 0 && pkg.source === void 0) return reassembled;
84
85
  return {
85
86
  ...reassembled,
86
87
  ...carried
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-CWkiQCeb.cjs";
1
+ import { C as ContentDocument } from "./content-BVsLx31F.cjs";
2
2
  import { DocumentTree } from "./package.cjs";
3
3
  //#region src/flatten.d.ts
4
4
  declare function flattenTree(pkg: DocumentTree): ContentDocument;
package/dist/flatten.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-BrxuIVTc.js";
1
+ import { C as ContentDocument } from "./content-DtZVw7l9.js";
2
2
  import { DocumentTree } from "./package.js";
3
3
  //#region src/flatten.d.ts
4
4
  declare function flattenTree(pkg: DocumentTree): ContentDocument;
package/dist/index.cjs CHANGED
@@ -187,6 +187,7 @@ exports.StylesTableSchema = require_definitions.StylesTableSchema;
187
187
  exports.SymbolTableSchema = require_math.SymbolTableSchema;
188
188
  exports.TextDirectionSchema = require_style.TextDirectionSchema;
189
189
  exports.TreeBlockLeafSchema = require_package_node.TreeBlockLeafSchema;
190
+ exports.TreeEmbeddedFontSchema = require_package.TreeEmbeddedFontSchema;
190
191
  exports.TreeGroupSchema = require_package_node.TreeGroupSchema;
191
192
  exports.TreeLeafSchema = require_package_node.TreeLeafSchema;
192
193
  exports.TreeNodeSchema = require_package_node.TreeNodeSchema;