document-content-model 7.16.4 → 7.16.6

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 (55) hide show
  1. package/dist/{bijection-constructs-CpkTnyq-.js → bijection-constructs-7Qy6aTNI.js} +1 -1
  2. package/dist/{bijection-constructs-k0YIBIt2.cjs → bijection-constructs-DTrXGJ48.cjs} +1 -1
  3. package/dist/bijection-constructs.cjs +1 -1
  4. package/dist/bijection-constructs.js +1 -1
  5. package/dist/bijection-corpus.cjs +1 -1
  6. package/dist/bijection-corpus.d.cts +2 -2
  7. package/dist/bijection-corpus.d.ts +2 -2
  8. package/dist/bijection-corpus.js +1 -1
  9. package/dist/codec.d.cts +1 -1
  10. package/dist/codec.d.ts +1 -1
  11. package/dist/{construct-C9cYkjnd.d.cts → construct-C4XiF8OW.d.cts} +6 -6
  12. package/dist/{construct-C9cYkjnd.d.ts → construct-C4XiF8OW.d.ts} +6 -6
  13. package/dist/construct.d.cts +1 -1
  14. package/dist/construct.d.ts +1 -1
  15. package/dist/{content-UFAqR2zQ.d.cts → content-aajLBYmM.d.cts} +187 -187
  16. package/dist/{content-drawing-cjm6n33_.d.ts → content-drawing-7Xc3b1ox.d.ts} +14 -14
  17. package/dist/{content-drawing-3yNJVteg.d.cts → content-drawing-Bc9g5Xpi.d.cts} +14 -14
  18. package/dist/content-drawing.d.cts +1 -1
  19. package/dist/content-drawing.d.ts +1 -1
  20. package/dist/{content-C8oVg7U_.d.ts → content-f8QS1OOK.d.ts} +187 -187
  21. package/dist/content-sheet.d.cts +1 -1
  22. package/dist/content-sheet.d.ts +1 -1
  23. package/dist/content-vocabulary.d.cts +1 -1
  24. package/dist/content-vocabulary.d.ts +1 -1
  25. package/dist/content.d.cts +1 -1
  26. package/dist/content.d.ts +1 -1
  27. package/dist/decompose.d.cts +3 -3
  28. package/dist/decompose.d.ts +3 -3
  29. package/dist/definitions.d.cts +1 -1
  30. package/dist/definitions.d.ts +1 -1
  31. package/dist/factor-styles.cjs +1 -1
  32. package/dist/factor-styles.d.cts +1 -1
  33. package/dist/factor-styles.d.ts +1 -1
  34. package/dist/factor-styles.js +1 -1
  35. package/dist/flatten.cjs +12 -5
  36. package/dist/flatten.d.cts +1 -1
  37. package/dist/flatten.d.ts +1 -1
  38. package/dist/flatten.js +12 -5
  39. package/dist/index.d.cts +4 -4
  40. package/dist/index.d.ts +4 -4
  41. package/dist/{package-node-CoWOKxt7.d.ts → package-node-B8XofZJU.d.ts} +59 -59
  42. package/dist/{package-node-H2Calta4.d.cts → package-node-DXWraAeS.d.cts} +59 -59
  43. package/dist/package-node.d.cts +1 -1
  44. package/dist/package-node.d.ts +1 -1
  45. package/dist/package.d.cts +2 -2
  46. package/dist/package.d.ts +2 -2
  47. package/dist/schema-io.cjs +2 -2
  48. package/dist/schema-io.d.cts +1 -1
  49. package/dist/schema-io.d.ts +1 -1
  50. package/dist/schema-io.js +2 -2
  51. package/dist/table-grid.d.cts +1 -1
  52. package/dist/table-grid.d.ts +1 -1
  53. package/package.json +2 -2
  54. package/schemas/content-document.schema.json +16 -16
  55. package/schemas/document-tree.schema.json +3 -3
@@ -1,6 +1,6 @@
1
- import { f as ContentEmbeddedObject, h as ContentFormula, i as ContentConstructEnd, n as ContentBlock, o as ContentConstructStart, vt as ContentSheetImage } from "./content-UFAqR2zQ.cjs";
2
- import { k as ContentVector } from "./content-drawing-3yNJVteg.cjs";
3
- import { a as ConstructDescriptor } from "./construct-C9cYkjnd.cjs";
1
+ import { f as ContentEmbeddedObject, h as ContentFormula, i as ContentConstructEnd, n as ContentBlock, o as ContentConstructStart, vt as ContentSheetImage } from "./content-aajLBYmM.cjs";
2
+ import { k as ContentVector } from "./content-drawing-Bc9g5Xpi.cjs";
3
+ import { a as ConstructDescriptor } from "./construct-C4XiF8OW.cjs";
4
4
  import { z } from "zod";
5
5
  //#region src/package-node.d.ts
6
6
  declare const SectionDescriptorSchema: z.ZodObject<{
@@ -24,13 +24,23 @@ declare const SectionDescriptorSchema: z.ZodObject<{
24
24
  }>;
25
25
  xml: z.ZodString;
26
26
  }, z.core.$strict>>;
27
+ pageSize: z.ZodObject<{
28
+ widthPt: z.ZodNumber;
29
+ heightPt: z.ZodNumber;
30
+ }, z.core.$strip>;
31
+ margins: z.ZodObject<{
32
+ topPt: z.ZodNumber;
33
+ rightPt: z.ZodNumber;
34
+ bottomPt: z.ZodNumber;
35
+ leftPt: z.ZodNumber;
36
+ }, z.core.$strip>;
27
37
  origin: z.ZodOptional<z.ZodEnum<{
28
38
  chart: "chart";
39
+ body: "body";
29
40
  diagram: "diagram";
30
41
  table: "table";
31
42
  image: "image";
32
43
  notes: "notes";
33
- body: "body";
34
44
  }>>;
35
45
  interpretation: z.ZodOptional<z.ZodObject<{
36
46
  transcript: z.ZodOptional<z.ZodObject<{
@@ -51,16 +61,6 @@ declare const SectionDescriptorSchema: z.ZodObject<{
51
61
  at: z.ZodString;
52
62
  }, z.core.$strip>>;
53
63
  }, z.core.$strip>>;
54
- pageSize: z.ZodObject<{
55
- widthPt: z.ZodNumber;
56
- heightPt: z.ZodNumber;
57
- }, z.core.$strip>;
58
- margins: z.ZodObject<{
59
- topPt: z.ZodNumber;
60
- rightPt: z.ZodNumber;
61
- bottomPt: z.ZodNumber;
62
- leftPt: z.ZodNumber;
63
- }, z.core.$strip>;
64
64
  breakType: z.ZodOptional<z.ZodEnum<{
65
65
  nextPage: "nextPage";
66
66
  continuous: "continuous";
@@ -109,11 +109,11 @@ declare const SlideDescriptorSchema: z.ZodObject<{
109
109
  notes: z.ZodString;
110
110
  origin: z.ZodOptional<z.ZodEnum<{
111
111
  chart: "chart";
112
+ body: "body";
112
113
  diagram: "diagram";
113
114
  table: "table";
114
115
  image: "image";
115
116
  notes: "notes";
116
- body: "body";
117
117
  }>>;
118
118
  interpretation: z.ZodOptional<z.ZodObject<{
119
119
  transcript: z.ZodOptional<z.ZodObject<{
@@ -142,6 +142,7 @@ declare const SlideDescriptorSchema: z.ZodObject<{
142
142
  }, z.core.$strict>;
143
143
  type SlideDescriptor = z.infer<typeof SlideDescriptorSchema>;
144
144
  declare const SheetDescriptorSchema: z.ZodObject<{
145
+ name: z.ZodString;
145
146
  source: z.ZodOptional<z.ZodObject<{
146
147
  format: z.ZodEnum<{
147
148
  docx: "docx";
@@ -162,14 +163,18 @@ declare const SheetDescriptorSchema: z.ZodObject<{
162
163
  }>;
163
164
  xml: z.ZodString;
164
165
  }, z.core.$strict>>;
165
- name: z.ZodString;
166
+ rows: z.ZodArray<z.ZodObject<{
167
+ index: z.ZodNumber;
168
+ heightPt: z.ZodOptional<z.ZodNumber>;
169
+ hidden: z.ZodOptional<z.ZodBoolean>;
170
+ }, z.core.$strip>>;
166
171
  origin: z.ZodOptional<z.ZodEnum<{
167
172
  chart: "chart";
173
+ body: "body";
168
174
  diagram: "diagram";
169
175
  table: "table";
170
176
  image: "image";
171
177
  notes: "notes";
172
- body: "body";
173
178
  }>>;
174
179
  interpretation: z.ZodOptional<z.ZodObject<{
175
180
  transcript: z.ZodOptional<z.ZodObject<{
@@ -234,11 +239,11 @@ declare const SheetDescriptorSchema: z.ZodObject<{
234
239
  cells: z.ZodArray<z.ZodObject<{
235
240
  origin: z.ZodOptional<z.ZodEnum<{
236
241
  chart: "chart";
242
+ body: "body";
237
243
  diagram: "diagram";
238
244
  table: "table";
239
245
  image: "image";
240
246
  notes: "notes";
241
- body: "body";
242
247
  }>>;
243
248
  interpretation: z.ZodOptional<z.ZodObject<{
244
249
  transcript: z.ZodOptional<z.ZodObject<{
@@ -314,11 +319,11 @@ declare const SheetDescriptorSchema: z.ZodObject<{
314
319
  runs: z.ZodOptional<z.ZodArray<z.ZodObject<{
315
320
  origin: z.ZodOptional<z.ZodEnum<{
316
321
  chart: "chart";
322
+ body: "body";
317
323
  diagram: "diagram";
318
324
  table: "table";
319
325
  image: "image";
320
326
  notes: "notes";
321
- body: "body";
322
327
  }>>;
323
328
  interpretation: z.ZodOptional<z.ZodObject<{
324
329
  transcript: z.ZodOptional<z.ZodObject<{
@@ -605,11 +610,6 @@ declare const SheetDescriptorSchema: z.ZodObject<{
605
610
  widthPt: z.ZodOptional<z.ZodNumber>;
606
611
  hidden: z.ZodOptional<z.ZodBoolean>;
607
612
  }, z.core.$strip>>;
608
- rows: z.ZodArray<z.ZodObject<{
609
- index: z.ZodNumber;
610
- heightPt: z.ZodOptional<z.ZodNumber>;
611
- hidden: z.ZodOptional<z.ZodBoolean>;
612
- }, z.core.$strip>>;
613
613
  dataValidations: z.ZodOptional<z.ZodArray<z.ZodObject<{
614
614
  ranges: z.ZodArray<z.ZodObject<{
615
615
  startRow: z.ZodNumber;
@@ -618,11 +618,11 @@ declare const SheetDescriptorSchema: z.ZodObject<{
618
618
  endColumn: z.ZodNumber;
619
619
  }, z.core.$strip>>;
620
620
  type: z.ZodEnum<{
621
+ time: "time";
621
622
  date: "date";
622
623
  custom: "custom";
623
624
  decimal: "decimal";
624
625
  list: "list";
625
- time: "time";
626
626
  whole: "whole";
627
627
  textLength: "textLength";
628
628
  }>;
@@ -1094,10 +1094,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
1094
1094
  value: z.ZodObject<{
1095
1095
  type: z.ZodEnum<{
1096
1096
  formula: "formula";
1097
- percent: "percent";
1098
1097
  num: "num";
1099
- max: "max";
1100
1098
  min: "min";
1099
+ max: "max";
1100
+ percent: "percent";
1101
1101
  percentile: "percentile";
1102
1102
  }>;
1103
1103
  value: z.ZodOptional<z.ZodString>;
@@ -1141,10 +1141,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
1141
1141
  min: z.ZodObject<{
1142
1142
  type: z.ZodEnum<{
1143
1143
  formula: "formula";
1144
- percent: "percent";
1145
1144
  num: "num";
1146
- max: "max";
1147
1145
  min: "min";
1146
+ max: "max";
1147
+ percent: "percent";
1148
1148
  percentile: "percentile";
1149
1149
  }>;
1150
1150
  value: z.ZodOptional<z.ZodString>;
@@ -1152,10 +1152,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
1152
1152
  max: z.ZodObject<{
1153
1153
  type: z.ZodEnum<{
1154
1154
  formula: "formula";
1155
- percent: "percent";
1156
1155
  num: "num";
1157
- max: "max";
1158
1156
  min: "min";
1157
+ max: "max";
1158
+ percent: "percent";
1159
1159
  percentile: "percentile";
1160
1160
  }>;
1161
1161
  value: z.ZodOptional<z.ZodString>;
@@ -1200,10 +1200,10 @@ declare const SheetDescriptorSchema: z.ZodObject<{
1200
1200
  thresholds: z.ZodArray<z.ZodObject<{
1201
1201
  type: z.ZodEnum<{
1202
1202
  formula: "formula";
1203
- percent: "percent";
1204
1203
  num: "num";
1205
- max: "max";
1206
1204
  min: "min";
1205
+ max: "max";
1206
+ percent: "percent";
1207
1207
  percentile: "percentile";
1208
1208
  }>;
1209
1209
  value: z.ZodOptional<z.ZodString>;
@@ -1266,11 +1266,11 @@ declare const DrawPageDescriptorSchema: z.ZodObject<{
1266
1266
  }, z.core.$strict>>;
1267
1267
  origin: z.ZodOptional<z.ZodEnum<{
1268
1268
  chart: "chart";
1269
+ body: "body";
1269
1270
  diagram: "diagram";
1270
1271
  table: "table";
1271
1272
  image: "image";
1272
1273
  notes: "notes";
1273
- body: "body";
1274
1274
  }>>;
1275
1275
  interpretation: z.ZodOptional<z.ZodObject<{
1276
1276
  transcript: z.ZodOptional<z.ZodObject<{
@@ -1299,6 +1299,7 @@ declare const DrawPageDescriptorSchema: z.ZodObject<{
1299
1299
  }, z.core.$strict>;
1300
1300
  type DrawPageDescriptor = z.infer<typeof DrawPageDescriptorSchema>;
1301
1301
  declare const ShapeDescriptorSchema: z.ZodObject<{
1302
+ name: z.ZodOptional<z.ZodString>;
1302
1303
  source: z.ZodOptional<z.ZodObject<{
1303
1304
  format: z.ZodEnum<{
1304
1305
  docx: "docx";
@@ -1319,22 +1320,6 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
1319
1320
  }>;
1320
1321
  xml: z.ZodString;
1321
1322
  }, z.core.$strict>>;
1322
- name: z.ZodOptional<z.ZodString>;
1323
- frame: z.ZodObject<{
1324
- xPt: z.ZodNumber;
1325
- yPt: z.ZodNumber;
1326
- widthPt: z.ZodNumber;
1327
- heightPt: z.ZodNumber;
1328
- }, z.core.$strip>;
1329
- rotationDeg: z.ZodOptional<z.ZodNumber>;
1330
- insetLeftPt: z.ZodNumber;
1331
- insetTopPt: z.ZodNumber;
1332
- insetRightPt: z.ZodNumber;
1333
- insetBottomPt: z.ZodNumber;
1334
- fontScale: z.ZodOptional<z.ZodNumber>;
1335
- lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
1336
- paintOrder: z.ZodOptional<z.ZodNumber>;
1337
- readingOrder: z.ZodOptional<z.ZodNumber>;
1338
1323
  sourcePath: z.ZodOptional<z.ZodString>;
1339
1324
  frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1340
1325
  pageIndex: z.ZodNumber;
@@ -1345,11 +1330,11 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
1345
1330
  }, z.core.$strip>>>;
1346
1331
  origin: z.ZodOptional<z.ZodEnum<{
1347
1332
  chart: "chart";
1333
+ body: "body";
1348
1334
  diagram: "diagram";
1349
1335
  table: "table";
1350
1336
  image: "image";
1351
1337
  notes: "notes";
1352
- body: "body";
1353
1338
  }>>;
1354
1339
  interpretation: z.ZodOptional<z.ZodObject<{
1355
1340
  transcript: z.ZodOptional<z.ZodObject<{
@@ -1370,16 +1355,31 @@ declare const ShapeDescriptorSchema: z.ZodObject<{
1370
1355
  at: z.ZodString;
1371
1356
  }, z.core.$strip>>;
1372
1357
  }, z.core.$strip>>;
1358
+ frame: z.ZodObject<{
1359
+ xPt: z.ZodNumber;
1360
+ yPt: z.ZodNumber;
1361
+ widthPt: z.ZodNumber;
1362
+ heightPt: z.ZodNumber;
1363
+ }, z.core.$strip>;
1364
+ rotationDeg: z.ZodOptional<z.ZodNumber>;
1365
+ insetLeftPt: z.ZodNumber;
1366
+ insetTopPt: z.ZodNumber;
1367
+ insetRightPt: z.ZodNumber;
1368
+ insetBottomPt: z.ZodNumber;
1369
+ fontScale: z.ZodOptional<z.ZodNumber>;
1370
+ lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
1371
+ paintOrder: z.ZodOptional<z.ZodNumber>;
1372
+ readingOrder: z.ZodOptional<z.ZodNumber>;
1373
1373
  }, z.core.$strict>;
1374
1374
  type ShapeDescriptor = z.infer<typeof ShapeDescriptorSchema>;
1375
1375
  declare const HeadingParagraphSchema: z.ZodObject<{
1376
1376
  origin: z.ZodOptional<z.ZodEnum<{
1377
1377
  chart: "chart";
1378
+ body: "body";
1378
1379
  diagram: "diagram";
1379
1380
  table: "table";
1380
1381
  image: "image";
1381
1382
  notes: "notes";
1382
- body: "body";
1383
1383
  }>>;
1384
1384
  interpretation: z.ZodOptional<z.ZodObject<{
1385
1385
  transcript: z.ZodOptional<z.ZodObject<{
@@ -1404,11 +1404,11 @@ declare const HeadingParagraphSchema: z.ZodObject<{
1404
1404
  runs: z.ZodArray<z.ZodObject<{
1405
1405
  origin: z.ZodOptional<z.ZodEnum<{
1406
1406
  chart: "chart";
1407
+ body: "body";
1407
1408
  diagram: "diagram";
1408
1409
  table: "table";
1409
1410
  image: "image";
1410
1411
  notes: "notes";
1411
- body: "body";
1412
1412
  }>>;
1413
1413
  interpretation: z.ZodOptional<z.ZodObject<{
1414
1414
  transcript: z.ZodOptional<z.ZodObject<{
@@ -1483,12 +1483,12 @@ declare const HeadingParagraphSchema: z.ZodObject<{
1483
1483
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1484
1484
  kind: z.ZodLiteral<"contentControl">;
1485
1485
  controlType: z.ZodEnum<{
1486
+ date: "date";
1486
1487
  richText: "richText";
1487
1488
  plainText: "plainText";
1488
1489
  checkbox: "checkbox";
1489
1490
  dropDown: "dropDown";
1490
1491
  comboBox: "comboBox";
1491
- date: "date";
1492
1492
  picture: "picture";
1493
1493
  repeatingSection: "repeatingSection";
1494
1494
  button: "button";
@@ -1552,10 +1552,10 @@ declare const HeadingParagraphSchema: z.ZodObject<{
1552
1552
  }, z.core.$strict>, z.ZodObject<{
1553
1553
  kind: z.ZodLiteral<"anchor">;
1554
1554
  anchorType: z.ZodEnum<{
1555
+ comment: "comment";
1555
1556
  bookmark: "bookmark";
1556
1557
  footnote: "footnote";
1557
1558
  endnote: "endnote";
1558
- comment: "comment";
1559
1559
  }>;
1560
1560
  name: z.ZodString;
1561
1561
  definition: z.ZodOptional<z.ZodString>;
@@ -1800,11 +1800,11 @@ type HeadingParagraph = z.infer<typeof HeadingParagraphSchema>;
1800
1800
  declare const ListParagraphSchema: z.ZodObject<{
1801
1801
  origin: z.ZodOptional<z.ZodEnum<{
1802
1802
  chart: "chart";
1803
+ body: "body";
1803
1804
  diagram: "diagram";
1804
1805
  table: "table";
1805
1806
  image: "image";
1806
1807
  notes: "notes";
1807
- body: "body";
1808
1808
  }>>;
1809
1809
  interpretation: z.ZodOptional<z.ZodObject<{
1810
1810
  transcript: z.ZodOptional<z.ZodObject<{
@@ -1829,11 +1829,11 @@ declare const ListParagraphSchema: z.ZodObject<{
1829
1829
  runs: z.ZodArray<z.ZodObject<{
1830
1830
  origin: z.ZodOptional<z.ZodEnum<{
1831
1831
  chart: "chart";
1832
+ body: "body";
1832
1833
  diagram: "diagram";
1833
1834
  table: "table";
1834
1835
  image: "image";
1835
1836
  notes: "notes";
1836
- body: "body";
1837
1837
  }>>;
1838
1838
  interpretation: z.ZodOptional<z.ZodObject<{
1839
1839
  transcript: z.ZodOptional<z.ZodObject<{
@@ -1908,12 +1908,12 @@ declare const ListParagraphSchema: z.ZodObject<{
1908
1908
  descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
1909
1909
  kind: z.ZodLiteral<"contentControl">;
1910
1910
  controlType: z.ZodEnum<{
1911
+ date: "date";
1911
1912
  richText: "richText";
1912
1913
  plainText: "plainText";
1913
1914
  checkbox: "checkbox";
1914
1915
  dropDown: "dropDown";
1915
1916
  comboBox: "comboBox";
1916
- date: "date";
1917
1917
  picture: "picture";
1918
1918
  repeatingSection: "repeatingSection";
1919
1919
  button: "button";
@@ -1977,10 +1977,10 @@ declare const ListParagraphSchema: z.ZodObject<{
1977
1977
  }, z.core.$strict>, z.ZodObject<{
1978
1978
  kind: z.ZodLiteral<"anchor">;
1979
1979
  anchorType: z.ZodEnum<{
1980
+ comment: "comment";
1980
1981
  bookmark: "bookmark";
1981
1982
  footnote: "footnote";
1982
1983
  endnote: "endnote";
1983
- comment: "comment";
1984
1984
  }>;
1985
1985
  name: z.ZodString;
1986
1986
  definition: z.ZodOptional<z.ZodString>;
@@ -1,2 +1,2 @@
1
- import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-H2Calta4.cjs";
1
+ import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-DXWraAeS.cjs";
2
2
  export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, TreeBlockLeaf, TreeBlockLeafSchema, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode };
@@ -1,2 +1,2 @@
1
- import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-CoWOKxt7.js";
1
+ import { $ as isSheetGroupNode, A as SheetDescriptor, B as TreeGroup, C as ShapeConstructGroupNode, D as ShapeGroupNode, E as ShapeDescriptorSchema, F as SlideDescriptorSchema, G as TreeNodeSchema, H as TreeLeaf, I as SlideGroupNode, J as isListGroupNode, K as isDrawPageGroupNode, L as SlideGroupSchema, M as SheetGroupNode, N as SheetGroupSchema, O as ShapeGroupSchema, P as SlideDescriptor, Q as isShapeGroupNode, R as TreeBlockLeaf, S as ShapeChild, T as ShapeDescriptor, U as TreeLeafSchema, V as TreeGroupSchema, W as TreeNode, X as isSectionGroupNode, Y as isSectionConstructGroupNode, Z as isShapeConstructGroupNode, _ as SectionConstructGroupSchema, a as DrawPageGroupSchema, b as SectionGroupNode, c as HeadingParagraph, d as ListGroupNode, et as isSlideGroupNode, f as ListGroupSchema, g as SectionConstructGroupNode, h as SectionChild, i as DrawPageGroupNode, it as isTreeNode, j as SheetDescriptorSchema, k as SheetChild, l as HeadingParagraphSchema, m as ListParagraphSchema, n as DrawPageDescriptor, nt as isTreeGroup, o as HeadingGroupNode, p as ListParagraph, q as isHeadingGroupNode, r as DrawPageDescriptorSchema, rt as isTreeLeaf, s as HeadingGroupSchema, t as DrawPageChild, tt as isTreeBlockLeaf, u as ListChild, v as SectionDescriptor, w as ShapeConstructGroupSchema, x as SectionGroupSchema, y as SectionDescriptorSchema, z as TreeBlockLeafSchema } from "./package-node-B8XofZJU.js";
2
2
  export { DrawPageChild, DrawPageDescriptor, DrawPageDescriptorSchema, DrawPageGroupNode, DrawPageGroupSchema, HeadingGroupNode, HeadingGroupSchema, HeadingParagraph, HeadingParagraphSchema, ListChild, ListGroupNode, ListGroupSchema, ListParagraph, ListParagraphSchema, SectionChild, SectionConstructGroupNode, SectionConstructGroupSchema, SectionDescriptor, SectionDescriptorSchema, SectionGroupNode, SectionGroupSchema, ShapeChild, ShapeConstructGroupNode, ShapeConstructGroupSchema, ShapeDescriptor, ShapeDescriptorSchema, ShapeGroupNode, ShapeGroupSchema, SheetChild, SheetDescriptor, SheetDescriptorSchema, SheetGroupNode, SheetGroupSchema, SlideDescriptor, SlideDescriptorSchema, SlideGroupNode, SlideGroupSchema, TreeBlockLeaf, TreeBlockLeafSchema, TreeGroup, TreeGroupSchema, TreeLeaf, TreeLeafSchema, TreeNode, TreeNodeSchema, isDrawPageGroupNode, isHeadingGroupNode, isListGroupNode, isSectionConstructGroupNode, isSectionGroupNode, isShapeConstructGroupNode, isShapeGroupNode, isSheetGroupNode, isSlideGroupNode, isTreeBlockLeaf, isTreeGroup, isTreeLeaf, isTreeNode };
@@ -1,6 +1,6 @@
1
1
  import { d as MathMlNode } from "./mathml-Czqc1mdZ.cjs";
2
2
  import { p as MathExpression } from "./math-BScHxedi.cjs";
3
- import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-H2Calta4.cjs";
3
+ import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-DXWraAeS.cjs";
4
4
  import { z } from "zod";
5
5
  //#region src/package.d.ts
6
6
  declare const TreeEmbeddedFontSchema: z.ZodObject<{
@@ -639,11 +639,11 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
639
639
  children: z.ZodArray<z.ZodObject<{
640
640
  origin: z.ZodOptional<z.ZodEnum<{
641
641
  chart: "chart";
642
+ body: "body";
642
643
  diagram: "diagram";
643
644
  table: "table";
644
645
  image: "image";
645
646
  notes: "notes";
646
- body: "body";
647
647
  }>>;
648
648
  interpretation: z.ZodOptional<z.ZodObject<{
649
649
  transcript: z.ZodOptional<z.ZodObject<{
package/dist/package.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { d as MathMlNode } from "./mathml-Czqc1mdZ.js";
2
2
  import { p as MathExpression } from "./math-BScHxedi.js";
3
- import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-CoWOKxt7.js";
3
+ import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-B8XofZJU.js";
4
4
  import { z } from "zod";
5
5
  //#region src/package.d.ts
6
6
  declare const TreeEmbeddedFontSchema: z.ZodObject<{
@@ -639,11 +639,11 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
639
639
  children: z.ZodArray<z.ZodObject<{
640
640
  origin: z.ZodOptional<z.ZodEnum<{
641
641
  chart: "chart";
642
+ body: "body";
642
643
  diagram: "diagram";
643
644
  table: "table";
644
645
  image: "image";
645
646
  notes: "notes";
646
- body: "body";
647
647
  }>>;
648
648
  interpretation: z.ZodOptional<z.ZodObject<{
649
649
  transcript: z.ZodOptional<z.ZodObject<{
@@ -7,7 +7,7 @@ const SCHEMA_FILE_NAMES = {
7
7
  ContentDocument: "content-document.schema.json"
8
8
  };
9
9
  function schemaUriFor(kind) {
10
- return `https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/${SCHEMA_FILE_NAMES[kind]}`;
10
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/${SCHEMA_FILE_NAMES[kind]}`;
11
11
  }
12
12
  const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
13
13
  function parseSchemaUri(uri) {
@@ -105,7 +105,7 @@ function documentFromJson(value) {
105
105
  if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
106
106
  const kind = kindForFileStem(parts.stem);
107
107
  if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
108
- if (majorVersionOf(parts.version) !== majorVersionOf("7.16.4")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.16.4");
108
+ if (majorVersionOf(parts.version) !== majorVersionOf("7.16.6")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.16.6");
109
109
  switch (kind) {
110
110
  case "DocumentTree": return {
111
111
  kind,
@@ -1,4 +1,4 @@
1
- import { u as ContentDocument } from "./content-UFAqR2zQ.cjs";
1
+ import { u as ContentDocument } from "./content-aajLBYmM.cjs";
2
2
  import { DocumentTree } from "./package.cjs";
3
3
  //#region src/schema-io.d.ts
4
4
  type DocumentSchemaKind = "DocumentTree" | "ContentDocument";
@@ -1,4 +1,4 @@
1
- import { u as ContentDocument } from "./content-C8oVg7U_.js";
1
+ import { u as ContentDocument } from "./content-f8QS1OOK.js";
2
2
  import { DocumentTree } from "./package.js";
3
3
  //#region src/schema-io.d.ts
4
4
  type DocumentSchemaKind = "DocumentTree" | "ContentDocument";
package/dist/schema-io.js CHANGED
@@ -6,7 +6,7 @@ const SCHEMA_FILE_NAMES = {
6
6
  ContentDocument: "content-document.schema.json"
7
7
  };
8
8
  function schemaUriFor(kind) {
9
- return `https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/${SCHEMA_FILE_NAMES[kind]}`;
9
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/${SCHEMA_FILE_NAMES[kind]}`;
10
10
  }
11
11
  const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
12
12
  function parseSchemaUri(uri) {
@@ -104,7 +104,7 @@ function documentFromJson(value) {
104
104
  if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
105
105
  const kind = kindForFileStem(parts.stem);
106
106
  if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
107
- if (majorVersionOf(parts.version) !== majorVersionOf("7.16.4")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.16.4");
107
+ if (majorVersionOf(parts.version) !== majorVersionOf("7.16.6")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.16.6");
108
108
  switch (kind) {
109
109
  case "DocumentTree": return {
110
110
  kind,
@@ -1,5 +1,5 @@
1
1
  import { o as TextDirection } from "./style-D06NwxAJ.cjs";
2
- import { A as ContentTableCell, P as ContentTableRow, k as ContentTable } from "./content-UFAqR2zQ.cjs";
2
+ import { A as ContentTableCell, P as ContentTableRow, k as ContentTable } from "./content-aajLBYmM.cjs";
3
3
  //#region src/table-grid.d.ts
4
4
  /** The number of grid columns a cell occupies; an absent `colSpan` means the cell occupies its own column only. */
5
5
  declare function tableCellColumnSpan(cell: ContentTableCell): number;
@@ -1,5 +1,5 @@
1
1
  import { o as TextDirection } from "./style-D06NwxAJ.js";
2
- import { A as ContentTableCell, P as ContentTableRow, k as ContentTable } from "./content-C8oVg7U_.js";
2
+ import { A as ContentTableCell, P as ContentTableRow, k as ContentTable } from "./content-f8QS1OOK.js";
3
3
  //#region src/table-grid.d.ts
4
4
  /** The number of grid columns a cell occupies; an absent `colSpan` means the cell occupies its own column only. */
5
5
  declare function tableCellColumnSpan(cell: ContentTableCell): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-content-model",
3
- "version": "7.16.4",
3
+ "version": "7.16.6",
4
4
  "description": "The canonical, format-agnostic content and document-tree schemas shared by ooxml.js, odf.js, documents.js, pdf-codec, and markdown-codec, plus the structural transform between them — no format-specific or I/O behaviour.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -61,7 +61,7 @@
61
61
  ],
62
62
  "license": "MIT",
63
63
  "dependencies": {
64
- "zod": "4.4.3"
64
+ "zod": "4.6.6"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@arethetypeswrong/cli": "0.18.5",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/content-document.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/content-document.schema.json",
4
4
  "oneOf": [
5
5
  {
6
6
  "type": "object",
@@ -133,7 +133,7 @@
133
133
  "blocks": {
134
134
  "type": "array",
135
135
  "items": {
136
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/undefined#/$defs/schema2"
136
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/undefined#/$defs/schema2"
137
137
  }
138
138
  },
139
139
  "breakType": {
@@ -151,19 +151,19 @@
151
151
  "default": {
152
152
  "type": "array",
153
153
  "items": {
154
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/undefined#/$defs/schema2"
154
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/undefined#/$defs/schema2"
155
155
  }
156
156
  },
157
157
  "even": {
158
158
  "type": "array",
159
159
  "items": {
160
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/undefined#/$defs/schema2"
160
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/undefined#/$defs/schema2"
161
161
  }
162
162
  },
163
163
  "first": {
164
164
  "type": "array",
165
165
  "items": {
166
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/undefined#/$defs/schema2"
166
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/undefined#/$defs/schema2"
167
167
  }
168
168
  }
169
169
  },
@@ -175,19 +175,19 @@
175
175
  "default": {
176
176
  "type": "array",
177
177
  "items": {
178
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/undefined#/$defs/schema2"
178
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/undefined#/$defs/schema2"
179
179
  }
180
180
  },
181
181
  "even": {
182
182
  "type": "array",
183
183
  "items": {
184
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/undefined#/$defs/schema2"
184
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/undefined#/$defs/schema2"
185
185
  }
186
186
  },
187
187
  "first": {
188
188
  "type": "array",
189
189
  "items": {
190
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/undefined#/$defs/schema2"
190
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/undefined#/$defs/schema2"
191
191
  }
192
192
  }
193
193
  },
@@ -199,19 +199,19 @@
199
199
  "default": {
200
200
  "type": "array",
201
201
  "items": {
202
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/undefined#/$defs/schema2"
202
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/undefined#/$defs/schema2"
203
203
  }
204
204
  },
205
205
  "even": {
206
206
  "type": "array",
207
207
  "items": {
208
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/undefined#/$defs/schema2"
208
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/undefined#/$defs/schema2"
209
209
  }
210
210
  },
211
211
  "first": {
212
212
  "type": "array",
213
213
  "items": {
214
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/undefined#/$defs/schema2"
214
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/undefined#/$defs/schema2"
215
215
  }
216
216
  }
217
217
  },
@@ -638,7 +638,7 @@
638
638
  "blocks": {
639
639
  "type": "array",
640
640
  "items": {
641
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/undefined#/$defs/schema2"
641
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/undefined#/$defs/schema2"
642
642
  }
643
643
  }
644
644
  },
@@ -2659,7 +2659,7 @@
2659
2659
  ]
2660
2660
  },
2661
2661
  "document": {
2662
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/content-document.schema.json"
2662
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/content-document.schema.json"
2663
2663
  },
2664
2664
  "frame": {
2665
2665
  "type": "object",
@@ -5021,7 +5021,7 @@
5021
5021
  "blocks": {
5022
5022
  "type": "array",
5023
5023
  "items": {
5024
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/undefined#/$defs/schema2"
5024
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/undefined#/$defs/schema2"
5025
5025
  }
5026
5026
  }
5027
5027
  },
@@ -8045,7 +8045,7 @@
8045
8045
  ]
8046
8046
  },
8047
8047
  "document": {
8048
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/content-document.schema.json"
8048
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/content-document.schema.json"
8049
8049
  },
8050
8050
  "frame": {
8051
8051
  "$ref": "#/$defs/Box"
@@ -10371,7 +10371,7 @@
10371
10371
  ]
10372
10372
  },
10373
10373
  "document": {
10374
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.4/schemas/content-document.schema.json"
10374
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.16.6/schemas/content-document.schema.json"
10375
10375
  },
10376
10376
  "frame": {
10377
10377
  "$ref": "#/$defs/Box"