document-content-model 7.14.0 → 7.15.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 +3 -3
  2. package/dist/codec.d.cts +1 -1
  3. package/dist/codec.d.ts +1 -1
  4. package/dist/{construct-C9cYkjnd.d.cts → construct-GVdTKrE7.d.cts} +3 -3
  5. package/dist/{construct-C9cYkjnd.d.ts → construct-GVdTKrE7.d.ts} +3 -3
  6. package/dist/construct.d.cts +1 -1
  7. package/dist/construct.d.ts +1 -1
  8. package/dist/{content-Cc9oMKMd.d.ts → content-BzGOsekw.d.ts} +51 -40
  9. package/dist/content-json-schema-defs.cjs +15 -6
  10. package/dist/content-json-schema-defs.js +15 -6
  11. package/dist/{content-Db6wh_6v.d.cts → content-lXpPw1nC.d.cts} +51 -40
  12. package/dist/content.cjs +10 -2
  13. package/dist/content.d.cts +2 -2
  14. package/dist/content.d.ts +2 -2
  15. package/dist/content.js +10 -3
  16. package/dist/decompose.d.cts +2 -2
  17. package/dist/decompose.d.ts +2 -2
  18. package/dist/definitions.d.cts +4 -4
  19. package/dist/definitions.d.ts +4 -4
  20. package/dist/factor-styles.d.cts +1 -1
  21. package/dist/factor-styles.d.ts +1 -1
  22. package/dist/flatten.d.cts +1 -1
  23. package/dist/flatten.d.ts +1 -1
  24. package/dist/index.cjs +1 -0
  25. package/dist/index.d.cts +5 -5
  26. package/dist/index.d.ts +5 -5
  27. package/dist/index.js +2 -2
  28. package/dist/{package-node-D42YxKm6.d.cts → package-node-CWW0Evpn.d.cts} +9 -9
  29. package/dist/{package-node-D-1yiCmi.d.ts → package-node-DosdPQ6x.d.ts} +9 -9
  30. package/dist/package-node.d.cts +1 -1
  31. package/dist/package-node.d.ts +1 -1
  32. package/dist/package.d.cts +6 -6
  33. package/dist/package.d.ts +6 -6
  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-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
  39. package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
  40. package/dist/style.d.cts +1 -1
  41. package/dist/style.d.ts +1 -1
  42. package/dist/table-grid.cjs +4 -4
  43. package/dist/table-grid.d.cts +5 -5
  44. package/dist/table-grid.d.ts +5 -5
  45. package/dist/table-grid.js +4 -4
  46. package/dist/text-layout.d.cts +1 -1
  47. package/dist/text-layout.d.ts +1 -1
  48. package/package.json +2 -2
  49. package/schemas/content-document.schema.json +35 -20
  50. package/schemas/document-tree.schema.json +22 -7
package/README.md CHANGED
@@ -61,7 +61,7 @@ Two format-agnostic helpers live here because they operate on the content model
61
61
  ```ts
62
62
  import { ContentDocumentSchema, DocumentTreeSchema } from "document-schema.js";
63
63
 
64
- // The codec-exchange form: what every format's reader produces and every writer consumes -- always flat,
64
+ // The codec-exchange form: what every format's reader produces and every writer consumes — always flat,
65
65
  // always fully materialised (no styles table, no refs), never versioned (that lives on the serialised artefact).
66
66
  const content = ContentDocumentSchema.parse(
67
67
  someWordprocessingOrPresentationValue,
@@ -133,7 +133,7 @@ import {
133
133
  } from "document-schema.js";
134
134
 
135
135
  // The one call a construction site makes: decompose the flat content into the tree, splice the envelope
136
- // onto the root, and mint a styles table over the result. `pages` is optional -- pass it once a layout
136
+ // onto the root, and mint a styles table over the result. `pages` is optional — pass it once a layout
137
137
  // pass has produced each rendered page's own size.
138
138
  const pkg = assembleTree(content, pages);
139
139
 
@@ -397,7 +397,7 @@ import { ColorSchema } from "document-schema.js/color";
397
397
  ```ts
398
398
  import type { ContentCodec } from "document-schema.js";
399
399
 
400
- declare const docxCodec: ContentCodec; // read(bytes) -> ContentDocument; write(content) -> bytes -- write is optional
400
+ declare const docxCodec: ContentCodec; // read(bytes) -> ContentDocument; write(content) -> bytes — write is optional
401
401
  ```
402
402
 
403
403
  `ContentCodec.write` is optional (`odf` has a reader but no builder — recovering MathML from glyphs is OCR-adjacent), and the interface is generic over its own `TOptions`. There is no `LayoutCodec` any more: it modelled the one format that produces layout cheaply on read — PDF — and the whole `LayoutDocument` family it described moved to pdf-codec in 4.0.0 (see [pdf-codec#65](https://github.com/ExaDev/pdf-codec/issues/65)).
package/dist/codec.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as ContentDocument } from "./content-Db6wh_6v.cjs";
1
+ import { C as ContentDocument } from "./content-lXpPw1nC.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-Cc9oMKMd.js";
1
+ import { C as ContentDocument } from "./content-BzGOsekw.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";
4
5
  richText: "richText";
5
6
  plainText: "plainText";
6
7
  checkbox: "checkbox";
7
8
  dropDown: "dropDown";
8
9
  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";
26
27
  richText: "richText";
27
28
  plainText: "plainText";
28
29
  checkbox: "checkbox";
29
30
  dropDown: "dropDown";
30
31
  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";
255
256
  richText: "richText";
256
257
  plainText: "plainText";
257
258
  checkbox: "checkbox";
258
259
  dropDown: "dropDown";
259
260
  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";
4
5
  richText: "richText";
5
6
  plainText: "plainText";
6
7
  checkbox: "checkbox";
7
8
  dropDown: "dropDown";
8
9
  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";
26
27
  richText: "richText";
27
28
  plainText: "plainText";
28
29
  checkbox: "checkbox";
29
30
  dropDown: "dropDown";
30
31
  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";
255
256
  richText: "richText";
256
257
  plainText: "plainText";
257
258
  checkbox: "checkbox";
258
259
  dropDown: "dropDown";
259
260
  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-C9cYkjnd.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-GVdTKrE7.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-C9cYkjnd.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-GVdTKrE7.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 };
@@ -3,7 +3,7 @@ import { p as MathExpression } from "./math-BScHxedi.js";
3
3
  import { n as Color } from "./color-AELCDH_b.js";
4
4
  import { r as LayoutFrame, t as Box } from "./geometry-CvcjSwnA.js";
5
5
  import { r as SourceResidue } from "./source-Bas5ol6f.js";
6
- import { o as TextDirection } from "./style-BGMcYrD2.js";
6
+ import { o as TextDirection } from "./style-D06NwxAJ.js";
7
7
  import { z } from "zod";
8
8
  //#region src/content.d.ts
9
9
  type FusedNode<T> = T & {
@@ -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";
208
209
  richText: "richText";
209
210
  plainText: "plainText";
210
211
  checkbox: "checkbox";
211
212
  dropDown: "dropDown";
212
213
  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";
591
592
  richText: "richText";
592
593
  plainText: "plainText";
593
594
  checkbox: "checkbox";
594
595
  dropDown: "dropDown";
595
596
  comboBox: "comboBox";
596
- date: "date";
597
597
  picture: "picture";
598
598
  repeatingSection: "repeatingSection";
599
599
  button: "button";
@@ -784,8 +784,8 @@ declare const ContentParagraphSchema: z.ZodObject<{
784
784
  headingLevel: z.ZodOptional<z.ZodNumber>;
785
785
  alignment: z.ZodOptional<z.ZodEnum<{
786
786
  left: "left";
787
- right: "right";
788
787
  center: "center";
788
+ right: "right";
789
789
  justify: "justify";
790
790
  }>>;
791
791
  list: z.ZodOptional<z.ZodObject<{
@@ -921,10 +921,10 @@ declare const ContentFloatOriginSchema: z.ZodEnum<{
921
921
  type ContentFloatOrigin = z.infer<typeof ContentFloatOriginSchema>;
922
922
  declare const ContentFloatAlignSchema: z.ZodEnum<{
923
923
  left: "left";
924
+ center: "center";
924
925
  right: "right";
925
926
  top: "top";
926
927
  bottom: "bottom";
927
- center: "center";
928
928
  inside: "inside";
929
929
  outside: "outside";
930
930
  }>;
@@ -964,10 +964,10 @@ declare const ContentFloatAxisSchema: z.ZodUnion<readonly [z.ZodObject<{
964
964
  }>;
965
965
  align: z.ZodEnum<{
966
966
  left: "left";
967
+ center: "center";
967
968
  right: "right";
968
969
  top: "top";
969
970
  bottom: "bottom";
970
- center: "center";
971
971
  inside: "inside";
972
972
  outside: "outside";
973
973
  }>;
@@ -1009,10 +1009,10 @@ declare const ContentFloatPositionSchema: z.ZodObject<{
1009
1009
  }>;
1010
1010
  align: z.ZodEnum<{
1011
1011
  left: "left";
1012
+ center: "center";
1012
1013
  right: "right";
1013
1014
  top: "top";
1014
1015
  bottom: "bottom";
1015
- center: "center";
1016
1016
  inside: "inside";
1017
1017
  outside: "outside";
1018
1018
  }>;
@@ -1052,10 +1052,10 @@ declare const ContentFloatPositionSchema: z.ZodObject<{
1052
1052
  }>;
1053
1053
  align: z.ZodEnum<{
1054
1054
  left: "left";
1055
+ center: "center";
1055
1056
  right: "right";
1056
1057
  top: "top";
1057
1058
  bottom: "bottom";
1058
- center: "center";
1059
1059
  inside: "inside";
1060
1060
  outside: "outside";
1061
1061
  }>;
@@ -1159,10 +1159,10 @@ declare const ContentImageBlockSchema: z.ZodObject<{
1159
1159
  }>;
1160
1160
  align: z.ZodEnum<{
1161
1161
  left: "left";
1162
+ center: "center";
1162
1163
  right: "right";
1163
1164
  top: "top";
1164
1165
  bottom: "bottom";
1165
- center: "center";
1166
1166
  inside: "inside";
1167
1167
  outside: "outside";
1168
1168
  }>;
@@ -1202,10 +1202,10 @@ declare const ContentImageBlockSchema: z.ZodObject<{
1202
1202
  }>;
1203
1203
  align: z.ZodEnum<{
1204
1204
  left: "left";
1205
+ center: "center";
1205
1206
  right: "right";
1206
1207
  top: "top";
1207
1208
  bottom: "bottom";
1208
- center: "center";
1209
1209
  inside: "inside";
1210
1210
  outside: "outside";
1211
1211
  }>;
@@ -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";
1308
1309
  richText: "richText";
1309
1310
  plainText: "plainText";
1310
1311
  checkbox: "checkbox";
1311
1312
  dropDown: "dropDown";
1312
1313
  comboBox: "comboBox";
1313
- date: "date";
1314
1314
  picture: "picture";
1315
1315
  repeatingSection: "repeatingSection";
1316
1316
  button: "button";
@@ -1518,10 +1518,14 @@ interface ContentTableRow {
1518
1518
  direction?: TextDirection;
1519
1519
  isHeader?: boolean;
1520
1520
  }
1521
+ interface ContentTableColumn {
1522
+ widthPt: number;
1523
+ isHeader?: boolean;
1524
+ }
1521
1525
  interface ContentTable {
1522
1526
  kind: "table";
1523
1527
  rows: ContentTableRow[];
1524
- columnWidthsPt: number[];
1528
+ columns: ContentTableColumn[];
1525
1529
  sourcePath?: string;
1526
1530
  source?: SourceResidue;
1527
1531
  frames?: LayoutFrame[];
@@ -1589,12 +1593,12 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
1589
1593
  }, z.core.$strip>>;
1590
1594
  }, z.core.$strip>>;
1591
1595
  objectKind: z.ZodEnum<{
1596
+ chart: "chart";
1592
1597
  formula: "formula";
1593
1598
  wordprocessing: "wordprocessing";
1594
1599
  presentation: "presentation";
1595
1600
  spreadsheet: "spreadsheet";
1596
1601
  drawing: "drawing";
1597
- chart: "chart";
1598
1602
  }>;
1599
1603
  document: z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
1600
1604
  sections: z.ZodArray<z.ZodObject<{
@@ -2293,8 +2297,8 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
2293
2297
  }, z.core.$strip>>;
2294
2298
  alignment: z.ZodOptional<z.ZodEnum<{
2295
2299
  left: "left";
2296
- right: "right";
2297
2300
  center: "center";
2301
+ right: "right";
2298
2302
  justify: "justify";
2299
2303
  }>>;
2300
2304
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -2436,10 +2440,10 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
2436
2440
  }>;
2437
2441
  align: z.ZodEnum<{
2438
2442
  left: "left";
2443
+ center: "center";
2439
2444
  right: "right";
2440
2445
  top: "top";
2441
2446
  bottom: "bottom";
2442
- center: "center";
2443
2447
  inside: "inside";
2444
2448
  outside: "outside";
2445
2449
  }>;
@@ -2479,10 +2483,10 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
2479
2483
  }>;
2480
2484
  align: z.ZodEnum<{
2481
2485
  left: "left";
2486
+ center: "center";
2482
2487
  right: "right";
2483
2488
  top: "top";
2484
2489
  bottom: "bottom";
2485
- center: "center";
2486
2490
  inside: "inside";
2487
2491
  outside: "outside";
2488
2492
  }>;
@@ -2571,10 +2575,10 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
2571
2575
  endColumn: z.ZodNumber;
2572
2576
  }, z.core.$strip>>;
2573
2577
  type: z.ZodEnum<{
2574
- date: "date";
2575
- custom: "custom";
2576
2578
  decimal: "decimal";
2577
2579
  list: "list";
2580
+ date: "date";
2581
+ custom: "custom";
2578
2582
  time: "time";
2579
2583
  whole: "whole";
2580
2584
  textLength: "textLength";
@@ -4606,9 +4610,9 @@ declare const ContentTableCellSchema: z.ZodObject<{
4606
4610
  }, z.core.$strip>>;
4607
4611
  }, z.core.$strip>>;
4608
4612
  verticalAlign: z.ZodOptional<z.ZodEnum<{
4613
+ center: "center";
4609
4614
  top: "top";
4610
4615
  bottom: "bottom";
4611
- center: "center";
4612
4616
  }>>;
4613
4617
  formula: z.ZodOptional<z.ZodString>;
4614
4618
  sourcePath: z.ZodOptional<z.ZodString>;
@@ -4833,9 +4837,9 @@ declare const ContentTableRowSchema: z.ZodObject<{
4833
4837
  }, z.core.$strip>>;
4834
4838
  }, z.core.$strip>>;
4835
4839
  verticalAlign: z.ZodOptional<z.ZodEnum<{
4840
+ center: "center";
4836
4841
  top: "top";
4837
4842
  bottom: "bottom";
4838
- center: "center";
4839
4843
  }>>;
4840
4844
  formula: z.ZodOptional<z.ZodString>;
4841
4845
  sourcePath: z.ZodOptional<z.ZodString>;
@@ -4874,6 +4878,10 @@ declare const ContentTableRowSchema: z.ZodObject<{
4874
4878
  }>>;
4875
4879
  isHeader: z.ZodOptional<z.ZodBoolean>;
4876
4880
  }, z.core.$strip>;
4881
+ declare const ContentTableColumnSchema: z.ZodObject<{
4882
+ widthPt: z.ZodNumber;
4883
+ isHeader: z.ZodOptional<z.ZodBoolean>;
4884
+ }, z.core.$strip>;
4877
4885
  declare const ContentTableSchema: z.ZodObject<{
4878
4886
  origin: z.ZodOptional<z.ZodEnum<{
4879
4887
  chart: "chart";
@@ -5096,9 +5104,9 @@ declare const ContentTableSchema: z.ZodObject<{
5096
5104
  }, z.core.$strip>>;
5097
5105
  }, z.core.$strip>>;
5098
5106
  verticalAlign: z.ZodOptional<z.ZodEnum<{
5107
+ center: "center";
5099
5108
  top: "top";
5100
5109
  bottom: "bottom";
5101
- center: "center";
5102
5110
  }>>;
5103
5111
  formula: z.ZodOptional<z.ZodString>;
5104
5112
  sourcePath: z.ZodOptional<z.ZodString>;
@@ -5137,7 +5145,10 @@ declare const ContentTableSchema: z.ZodObject<{
5137
5145
  }>>;
5138
5146
  isHeader: z.ZodOptional<z.ZodBoolean>;
5139
5147
  }, z.core.$strip>>;
5140
- columnWidthsPt: z.ZodArray<z.ZodNumber>;
5148
+ columns: z.ZodArray<z.ZodObject<{
5149
+ widthPt: z.ZodNumber;
5150
+ isHeader: z.ZodOptional<z.ZodBoolean>;
5151
+ }, z.core.$strip>>;
5141
5152
  sourcePath: z.ZodOptional<z.ZodString>;
5142
5153
  source: z.ZodOptional<z.ZodObject<{
5143
5154
  format: z.ZodEnum<{
@@ -5829,8 +5840,8 @@ declare const ContentSheetCellSchema: z.ZodObject<{
5829
5840
  }, z.core.$strip>>;
5830
5841
  alignment: z.ZodOptional<z.ZodEnum<{
5831
5842
  left: "left";
5832
- right: "right";
5833
5843
  center: "center";
5844
+ right: "right";
5834
5845
  justify: "justify";
5835
5846
  }>>;
5836
5847
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -5962,10 +5973,10 @@ declare const SheetRuleOperatorSchema: z.ZodEnum<{
5962
5973
  }>;
5963
5974
  type SheetRuleOperator = z.infer<typeof SheetRuleOperatorSchema>;
5964
5975
  declare const ContentSheetDataValidationTypeSchema: z.ZodEnum<{
5965
- date: "date";
5966
- custom: "custom";
5967
5976
  decimal: "decimal";
5968
5977
  list: "list";
5978
+ date: "date";
5979
+ custom: "custom";
5969
5980
  time: "time";
5970
5981
  whole: "whole";
5971
5982
  textLength: "textLength";
@@ -5979,10 +5990,10 @@ declare const ContentSheetDataValidationSchema: z.ZodObject<{
5979
5990
  endColumn: z.ZodNumber;
5980
5991
  }, z.core.$strip>>;
5981
5992
  type: z.ZodEnum<{
5982
- date: "date";
5983
- custom: "custom";
5984
5993
  decimal: "decimal";
5985
5994
  list: "list";
5995
+ date: "date";
5996
+ custom: "custom";
5986
5997
  time: "time";
5987
5998
  whole: "whole";
5988
5999
  textLength: "textLength";
@@ -6734,10 +6745,10 @@ declare const ContentSheetImageSchema: z.ZodObject<{
6734
6745
  }>;
6735
6746
  align: z.ZodEnum<{
6736
6747
  left: "left";
6748
+ center: "center";
6737
6749
  right: "right";
6738
6750
  top: "top";
6739
6751
  bottom: "bottom";
6740
- center: "center";
6741
6752
  inside: "inside";
6742
6753
  outside: "outside";
6743
6754
  }>;
@@ -6777,10 +6788,10 @@ declare const ContentSheetImageSchema: z.ZodObject<{
6777
6788
  }>;
6778
6789
  align: z.ZodEnum<{
6779
6790
  left: "left";
6791
+ center: "center";
6780
6792
  right: "right";
6781
6793
  top: "top";
6782
6794
  bottom: "bottom";
6783
- center: "center";
6784
6795
  inside: "inside";
6785
6796
  outside: "outside";
6786
6797
  }>;
@@ -7171,8 +7182,8 @@ declare const ContentSheetSchema: z.ZodObject<{
7171
7182
  }, z.core.$strip>>;
7172
7183
  alignment: z.ZodOptional<z.ZodEnum<{
7173
7184
  left: "left";
7174
- right: "right";
7175
7185
  center: "center";
7186
+ right: "right";
7176
7187
  justify: "justify";
7177
7188
  }>>;
7178
7189
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -7314,10 +7325,10 @@ declare const ContentSheetSchema: z.ZodObject<{
7314
7325
  }>;
7315
7326
  align: z.ZodEnum<{
7316
7327
  left: "left";
7328
+ center: "center";
7317
7329
  right: "right";
7318
7330
  top: "top";
7319
7331
  bottom: "bottom";
7320
- center: "center";
7321
7332
  inside: "inside";
7322
7333
  outside: "outside";
7323
7334
  }>;
@@ -7357,10 +7368,10 @@ declare const ContentSheetSchema: z.ZodObject<{
7357
7368
  }>;
7358
7369
  align: z.ZodEnum<{
7359
7370
  left: "left";
7371
+ center: "center";
7360
7372
  right: "right";
7361
7373
  top: "top";
7362
7374
  bottom: "bottom";
7363
- center: "center";
7364
7375
  inside: "inside";
7365
7376
  outside: "outside";
7366
7377
  }>;
@@ -7449,10 +7460,10 @@ declare const ContentSheetSchema: z.ZodObject<{
7449
7460
  endColumn: z.ZodNumber;
7450
7461
  }, z.core.$strip>>;
7451
7462
  type: z.ZodEnum<{
7452
- date: "date";
7453
- custom: "custom";
7454
7463
  decimal: "decimal";
7455
7464
  list: "list";
7465
+ date: "date";
7466
+ custom: "custom";
7456
7467
  time: "time";
7457
7468
  whole: "whole";
7458
7469
  textLength: "textLength";
@@ -10299,8 +10310,8 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10299
10310
  }, z.core.$strip>>;
10300
10311
  alignment: z.ZodOptional<z.ZodEnum<{
10301
10312
  left: "left";
10302
- right: "right";
10303
10313
  center: "center";
10314
+ right: "right";
10304
10315
  justify: "justify";
10305
10316
  }>>;
10306
10317
  verticalAlignment: z.ZodOptional<z.ZodEnum<{
@@ -10442,10 +10453,10 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10442
10453
  }>;
10443
10454
  align: z.ZodEnum<{
10444
10455
  left: "left";
10456
+ center: "center";
10445
10457
  right: "right";
10446
10458
  top: "top";
10447
10459
  bottom: "bottom";
10448
- center: "center";
10449
10460
  inside: "inside";
10450
10461
  outside: "outside";
10451
10462
  }>;
@@ -10485,10 +10496,10 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10485
10496
  }>;
10486
10497
  align: z.ZodEnum<{
10487
10498
  left: "left";
10499
+ center: "center";
10488
10500
  right: "right";
10489
10501
  top: "top";
10490
10502
  bottom: "bottom";
10491
- center: "center";
10492
10503
  inside: "inside";
10493
10504
  outside: "outside";
10494
10505
  }>;
@@ -10577,10 +10588,10 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10577
10588
  endColumn: z.ZodNumber;
10578
10589
  }, z.core.$strip>>;
10579
10590
  type: z.ZodEnum<{
10580
- date: "date";
10581
- custom: "custom";
10582
10591
  decimal: "decimal";
10583
10592
  list: "list";
10593
+ date: "date";
10594
+ custom: "custom";
10584
10595
  time: "time";
10585
10596
  whole: "whole";
10586
10597
  textLength: "textLength";
@@ -12153,4 +12164,4 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
12153
12164
  }, z.core.$strip>], "kind">;
12154
12165
  type ContentDocument = z.infer<typeof ContentDocumentSchema>;
12155
12166
  //#endregion
12156
- export { ContentHatchStyleSchema as $, ContentSheetRepeatRange as $t, ContentEmbeddedObjectKind as A, RunConstructExtent as An, ContentSheetCellComment as At, ContentFloatPosition as B, isContentConstructEnd as Bn, ContentSheetConditionalFormatValueSchema as Bt, ContentDocument as C, ContentVectorSchema as Cn, ContentRunSchema as Ct, ContentEmbeddedObject as D, IMAGE_FORMATS as Dn, ContentShapeSchema as Dt, ContentDrawPageSchema as E, FusedNode as En, ContentShape as Et, ContentFloatAlignSchema as F, clampHeadingLevel as Fn, ContentSheetConditionalFormat as Ft, ContentFormulaSchema as G, ContentSheetImage as Gt, ContentFont as H, isRunConstructExtent as Hn, ContentSheetDataValidationSchema as Ht, ContentFloatAxis as I, contentDocumentSharedFields as In, ContentSheetConditionalFormatSchema as It, ContentGradientStyle as J, ContentSheetPrintRangeSchema as Jt, ContentGradientFill as K, ContentSheetImageSchema as Kt, ContentFloatAxisSchema as L, findConstructMarkerImbalance as Ln, ContentSheetConditionalFormatStyle as Lt, ContentFillPattern as M, RunConstructFault as Mn, ContentSheetCellSchema as Mt, ContentFillPatternSchema as N, SheetRuleOperator as Nn, ContentSheetColumn as Nt, ContentEmbeddedObjectBlock as O, ImageFormat as On, ContentSheet as Ot, ContentFloatAlign as P, SheetRuleOperatorSchema as Pn, ContentSheetColumnSchema as Pt, ContentHatchStyle as Q, ContentSheetRangeSchema as Qt, ContentFloatOrigin as R, findRunConstructFault as Rn, ContentSheetConditionalFormatStyleSchema as Rt, ContentDefinedNameSchema as S, ContentVector as Sn, ContentRun as St, ContentDrawPage as T, DecimalStringSchema as Tn, ContentSectionSchema as Tt, ContentFontSchema as U, resolveCellFillColor as Un, ContentSheetDataValidationType as Ut, ContentFloatPositionSchema as V, isContentConstructStart as Vn, ContentSheetDataValidation as Vt, ContentFormula as W, unrecognizedFillKind as Wn, ContentSheetDataValidationTypeSchema as Wt, ContentHatchFill as X, ContentSheetPrintSettingsSchema as Xt, ContentGradientStyleSchema as Y, ContentSheetPrintSettings as Yt, ContentHatchFillSchema as Z, ContentSheetRange as Zt, ContentConstructEnd as _, ContentTableRow as _n, ContentParagraphSchema as _t, ContentBlock as a, ContentSlideSchema as an, ContentInterpretationSchema as at, ContentConstructStartSchema as b, ContentTranscript as bn, ContentPathSegment as bt, ContentBorderSchema as c, ContentStrokeDashSchema as cn, ContentOrigin as ct, ContentCellFill as d, ContentStrokeStyleSchema as dn, ContentPageBreakSchema as dt, ContentSheetRepeatRangeSchema as en, ContentImageBlock as et, ContentCellFillSchema as f, ContentSubpath as fn, ContentPageFurniture as ft, ContentCellValueSchema as g, ContentTableCellSchema as gn, ContentParagraphBordersSchema as gt, ContentCellValue as h, ContentTableCell as hn, ContentParagraphBorders as ht, ContentBitmapFillSchema as i, ContentSlide as in, ContentInterpretation as it, ContentEmbeddedObjectSchema as j, RunConstructExtentSchema as jn, ContentSheetCellCommentSchema as jt, ContentEmbeddedObjectBlockSchema as k, RUN_FONT_PROPERTY_SHAPE as kn, ContentSheetCell as kt, ContentCellBorders as l, ContentStrokeSchema as ln, ContentOriginSchema as lt, ContentCellPatternTypeSchema as m, ContentTable as mn, ContentParagraph as mt, ConstructMarkerImbalance as n, ContentSheetRowSchema as nn, ContentImageOriginal as nt, ContentBlockSchema as o, ContentStroke as on, ContentListMembership as ot, ContentCellPatternType as p, ContentSubpathSchema as pn, ContentPageFurnitureSchema as pt, ContentGradientFillSchema as q, ContentSheetPrintRange as qt, ContentBitmapFill as r, ContentSheetSchema as rn, ContentImageOriginalSchema as rt, ContentBorder as s, ContentStrokeDash as sn, ContentListMembershipSchema as st, CONTENT_ANNOTATION_FIELDS as t, ContentSheetRow as tn, ContentImageBlockSchema as tt, ContentCellBordersSchema as u, ContentStrokeStyle as un, ContentPageBreak as ut, ContentConstructEndSchema as v, ContentTableRowSchema as vn, ContentPathPoint as vt, ContentDocumentSchema as w, DecimalString as wn, ContentSection as wt, ContentDefinedName as x, ContentTranscriptSchema as xn, ContentPathSegmentSchema as xt, ContentConstructStart as y, ContentTableSchema as yn, ContentPathPointSchema as yt, ContentFloatOriginSchema as z, isContentBlock as zn, ContentSheetConditionalFormatValue as zt };
12167
+ export { ContentHatchStyleSchema as $, ContentSheetRepeatRange as $t, ContentEmbeddedObjectKind as A, ImageFormat as An, ContentSheetCellComment as At, ContentFloatPosition as B, findRunConstructFault as Bn, ContentSheetConditionalFormatValueSchema as Bt, ContentDocument as C, ContentTranscriptSchema as Cn, ContentRunSchema as Ct, ContentEmbeddedObject as D, DecimalStringSchema as Dn, ContentShapeSchema as Dt, ContentDrawPageSchema as E, DecimalString as En, ContentShape as Et, ContentFloatAlignSchema as F, SheetRuleOperator as Fn, ContentSheetConditionalFormat as Ft, ContentFormulaSchema as G, resolveCellFillColor as Gn, ContentSheetImage as Gt, ContentFont as H, isContentConstructEnd as Hn, ContentSheetDataValidationSchema as Ht, ContentFloatAxis as I, SheetRuleOperatorSchema as In, ContentSheetConditionalFormatSchema as It, ContentGradientStyle as J, ContentSheetPrintRangeSchema as Jt, ContentGradientFill as K, unrecognizedFillKind as Kn, ContentSheetImageSchema as Kt, ContentFloatAxisSchema as L, clampHeadingLevel as Ln, ContentSheetConditionalFormatStyle as Lt, ContentFillPattern as M, RunConstructExtent as Mn, ContentSheetCellSchema as Mt, ContentFillPatternSchema as N, RunConstructExtentSchema as Nn, ContentSheetColumn as Nt, ContentEmbeddedObjectBlock as O, FusedNode as On, ContentSheet as Ot, ContentFloatAlign as P, RunConstructFault as Pn, ContentSheetColumnSchema as Pt, ContentHatchStyle as Q, ContentSheetRangeSchema as Qt, ContentFloatOrigin as R, contentDocumentSharedFields as Rn, ContentSheetConditionalFormatStyleSchema as Rt, ContentDefinedNameSchema as S, ContentTranscript as Sn, ContentRun as St, ContentDrawPage as T, ContentVectorSchema as Tn, ContentSectionSchema as Tt, ContentFontSchema as U, isContentConstructStart as Un, ContentSheetDataValidationType as Ut, ContentFloatPositionSchema as V, isContentBlock as Vn, ContentSheetDataValidation as Vt, ContentFormula as W, isRunConstructExtent as Wn, ContentSheetDataValidationTypeSchema as Wt, ContentHatchFill as X, ContentSheetPrintSettingsSchema as Xt, ContentGradientStyleSchema as Y, ContentSheetPrintSettings as Yt, ContentHatchFillSchema as Z, ContentSheetRange as Zt, ContentConstructEnd as _, ContentTableColumn as _n, ContentParagraphSchema as _t, ContentBlock as a, ContentSlideSchema as an, ContentInterpretationSchema as at, ContentConstructStartSchema as b, ContentTableRowSchema as bn, ContentPathSegment as bt, ContentBorderSchema as c, ContentStrokeDashSchema as cn, ContentOrigin as ct, ContentCellFill as d, ContentStrokeStyleSchema as dn, ContentPageBreakSchema as dt, ContentSheetRepeatRangeSchema as en, ContentImageBlock as et, ContentCellFillSchema as f, ContentSubpath as fn, ContentPageFurniture as ft, ContentCellValueSchema as g, ContentTableCellSchema as gn, ContentParagraphBordersSchema as gt, ContentCellValue as h, ContentTableCell as hn, ContentParagraphBorders as ht, ContentBitmapFillSchema as i, ContentSlide as in, ContentInterpretation as it, ContentEmbeddedObjectSchema as j, RUN_FONT_PROPERTY_SHAPE as jn, ContentSheetCellCommentSchema as jt, ContentEmbeddedObjectBlockSchema as k, IMAGE_FORMATS as kn, ContentSheetCell as kt, ContentCellBorders as l, ContentStrokeSchema as ln, ContentOriginSchema as lt, ContentCellPatternTypeSchema as m, ContentTable as mn, ContentParagraph as mt, ConstructMarkerImbalance as n, ContentSheetRowSchema as nn, ContentImageOriginal as nt, ContentBlockSchema as o, ContentStroke as on, ContentListMembership as ot, ContentCellPatternType as p, ContentSubpathSchema as pn, ContentPageFurnitureSchema as pt, ContentGradientFillSchema as q, ContentSheetPrintRange as qt, ContentBitmapFill as r, ContentSheetSchema as rn, ContentImageOriginalSchema as rt, ContentBorder as s, ContentStrokeDash as sn, ContentListMembershipSchema as st, CONTENT_ANNOTATION_FIELDS as t, ContentSheetRow as tn, ContentImageBlockSchema as tt, ContentCellBordersSchema as u, ContentStrokeStyle as un, ContentPageBreak as ut, ContentConstructEndSchema as v, ContentTableColumnSchema as vn, ContentPathPoint as vt, ContentDocumentSchema as w, ContentVector as wn, ContentSection as wt, ContentDefinedName as x, ContentTableSchema as xn, ContentPathSegmentSchema as xt, ContentConstructStart as y, ContentTableRow as yn, ContentPathPointSchema as yt, ContentFloatOriginSchema as z, findConstructMarkerImbalance as zn, ContentSheetConditionalFormatValue as zt };
@@ -697,6 +697,18 @@ const CONTENT_DEFS = {
697
697
  required: ["cells"],
698
698
  additionalProperties: false
699
699
  },
700
+ ContentTableColumn: {
701
+ type: "object",
702
+ properties: {
703
+ widthPt: {
704
+ type: "number",
705
+ minimum: 0
706
+ },
707
+ isHeader: { type: "boolean" }
708
+ },
709
+ required: ["widthPt"],
710
+ additionalProperties: false
711
+ },
700
712
  ContentTable: {
701
713
  type: "object",
702
714
  properties: {
@@ -708,12 +720,9 @@ const CONTENT_DEFS = {
708
720
  type: "array",
709
721
  items: { $ref: "#/$defs/ContentTableRow" }
710
722
  },
711
- columnWidthsPt: {
723
+ columns: {
712
724
  type: "array",
713
- items: {
714
- type: "number",
715
- minimum: 0
716
- }
725
+ items: { $ref: "#/$defs/ContentTableColumn" }
717
726
  },
718
727
  sourcePath: { type: "string" },
719
728
  source: { $ref: "#/$defs/SourceResidue" },
@@ -727,7 +736,7 @@ const CONTENT_DEFS = {
727
736
  required: [
728
737
  "kind",
729
738
  "rows",
730
- "columnWidthsPt"
739
+ "columns"
731
740
  ],
732
741
  additionalProperties: false
733
742
  },
@@ -696,6 +696,18 @@ const CONTENT_DEFS = {
696
696
  required: ["cells"],
697
697
  additionalProperties: false
698
698
  },
699
+ ContentTableColumn: {
700
+ type: "object",
701
+ properties: {
702
+ widthPt: {
703
+ type: "number",
704
+ minimum: 0
705
+ },
706
+ isHeader: { type: "boolean" }
707
+ },
708
+ required: ["widthPt"],
709
+ additionalProperties: false
710
+ },
699
711
  ContentTable: {
700
712
  type: "object",
701
713
  properties: {
@@ -707,12 +719,9 @@ const CONTENT_DEFS = {
707
719
  type: "array",
708
720
  items: { $ref: "#/$defs/ContentTableRow" }
709
721
  },
710
- columnWidthsPt: {
722
+ columns: {
711
723
  type: "array",
712
- items: {
713
- type: "number",
714
- minimum: 0
715
- }
724
+ items: { $ref: "#/$defs/ContentTableColumn" }
716
725
  },
717
726
  sourcePath: { type: "string" },
718
727
  source: { $ref: "#/$defs/SourceResidue" },
@@ -726,7 +735,7 @@ const CONTENT_DEFS = {
726
735
  required: [
727
736
  "kind",
728
737
  "rows",
729
- "columnWidthsPt"
738
+ "columns"
730
739
  ],
731
740
  additionalProperties: false
732
741
  },