document-schema 2.7.17 → 3.1.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.
@@ -1,8 +1,11 @@
1
1
  import { d as MathMlNode } from "./mathml-B1oTCtzc.cjs";
2
2
  import { n as Color } from "./color-AELCDH_b.cjs";
3
- import { t as Box } from "./geometry-rj_ACBLD.cjs";
3
+ import { r as LayoutFrame, t as Box } from "./geometry-CvcjSwnA.cjs";
4
4
  import { z } from "zod";
5
5
  //#region src/content.d.ts
6
+ type FusedNode<T> = T & {
7
+ frames?: LayoutFrame[];
8
+ };
6
9
  declare const ContentRunSchema: z.ZodObject<{
7
10
  text: z.ZodString;
8
11
  bold: z.ZodOptional<z.ZodBoolean>;
@@ -18,6 +21,13 @@ declare const ContentRunSchema: z.ZodObject<{
18
21
  }, z.core.$strip>>;
19
22
  hyperlink: z.ZodOptional<z.ZodString>;
20
23
  sourcePath: z.ZodOptional<z.ZodString>;
24
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
25
+ pageIndex: z.ZodNumber;
26
+ xPt: z.ZodNumber;
27
+ yPt: z.ZodNumber;
28
+ widthPt: z.ZodNumber;
29
+ heightPt: z.ZodNumber;
30
+ }, z.core.$strip>>>;
21
31
  }, z.core.$strip>;
22
32
  type ContentRun = z.infer<typeof ContentRunSchema>;
23
33
  declare const ContentListMembershipSchema: z.ZodObject<{
@@ -42,8 +52,16 @@ declare const ContentParagraphSchema: z.ZodObject<{
42
52
  }, z.core.$strip>>;
43
53
  hyperlink: z.ZodOptional<z.ZodString>;
44
54
  sourcePath: z.ZodOptional<z.ZodString>;
55
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
56
+ pageIndex: z.ZodNumber;
57
+ xPt: z.ZodNumber;
58
+ yPt: z.ZodNumber;
59
+ widthPt: z.ZodNumber;
60
+ heightPt: z.ZodNumber;
61
+ }, z.core.$strip>>>;
45
62
  }, z.core.$strip>>;
46
63
  styleId: z.ZodOptional<z.ZodString>;
64
+ headingLevel: z.ZodOptional<z.ZodNumber>;
47
65
  alignment: z.ZodOptional<z.ZodEnum<{
48
66
  left: "left";
49
67
  center: "center";
@@ -60,8 +78,16 @@ declare const ContentParagraphSchema: z.ZodObject<{
60
78
  indentLeftPt: z.ZodOptional<z.ZodNumber>;
61
79
  indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
62
80
  sourcePath: z.ZodOptional<z.ZodString>;
81
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
82
+ pageIndex: z.ZodNumber;
83
+ xPt: z.ZodNumber;
84
+ yPt: z.ZodNumber;
85
+ widthPt: z.ZodNumber;
86
+ heightPt: z.ZodNumber;
87
+ }, z.core.$strip>>>;
63
88
  }, z.core.$strip>;
64
89
  type ContentParagraph = z.infer<typeof ContentParagraphSchema>;
90
+ declare function clampHeadingLevel(level: number): number;
65
91
  declare const ContentImageBlockSchema: z.ZodObject<{
66
92
  kind: z.ZodLiteral<"image">;
67
93
  format: z.ZodEnum<{
@@ -73,11 +99,25 @@ declare const ContentImageBlockSchema: z.ZodObject<{
73
99
  heightPt: z.ZodNumber;
74
100
  altText: z.ZodOptional<z.ZodString>;
75
101
  sourcePath: z.ZodOptional<z.ZodString>;
102
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
103
+ pageIndex: z.ZodNumber;
104
+ xPt: z.ZodNumber;
105
+ yPt: z.ZodNumber;
106
+ widthPt: z.ZodNumber;
107
+ heightPt: z.ZodNumber;
108
+ }, z.core.$strip>>>;
76
109
  }, z.core.$strip>;
77
110
  type ContentImageBlock = z.infer<typeof ContentImageBlockSchema>;
78
111
  declare const ContentPageBreakSchema: z.ZodObject<{
79
112
  kind: z.ZodLiteral<"pageBreak">;
80
113
  sourcePath: z.ZodOptional<z.ZodString>;
114
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
115
+ pageIndex: z.ZodNumber;
116
+ xPt: z.ZodNumber;
117
+ yPt: z.ZodNumber;
118
+ widthPt: z.ZodNumber;
119
+ heightPt: z.ZodNumber;
120
+ }, z.core.$strip>>>;
81
121
  }, z.core.$strip>;
82
122
  type ContentPageBreak = z.infer<typeof ContentPageBreakSchema>;
83
123
  interface ContentTableCell {
@@ -87,6 +127,7 @@ interface ContentTableCell {
87
127
  background?: Color;
88
128
  borders?: ContentCellBorders;
89
129
  sourcePath?: string;
130
+ frames?: LayoutFrame[];
90
131
  }
91
132
  interface ContentTableRow {
92
133
  cells: ContentTableCell[];
@@ -97,6 +138,7 @@ interface ContentTable {
97
138
  rows: ContentTableRow[];
98
139
  columnWidthsPt: number[];
99
140
  sourcePath?: string;
141
+ frames?: LayoutFrame[];
100
142
  }
101
143
  type ContentEmbeddedObjectKind = 'formula' | 'wordprocessing' | 'presentation' | 'spreadsheet' | 'drawing';
102
144
  interface ContentEmbeddedObject {
@@ -111,6 +153,7 @@ interface ContentEmbeddedObject {
111
153
  interface ContentEmbeddedObjectBlock extends ContentEmbeddedObject {
112
154
  kind: 'embeddedObject';
113
155
  sourcePath?: string;
156
+ frames?: LayoutFrame[];
114
157
  }
115
158
  type ContentBlock = ContentParagraph | ContentTable | ContentImageBlock | ContentPageBreak | ContentEmbeddedObjectBlock;
116
159
  declare function isContentBlock(value: unknown): value is ContentBlock;
@@ -266,6 +309,13 @@ declare const ContentTableCellSchema: z.ZodObject<{
266
309
  }, z.core.$strip>>;
267
310
  }, z.core.$strip>>;
268
311
  sourcePath: z.ZodOptional<z.ZodString>;
312
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
313
+ pageIndex: z.ZodNumber;
314
+ xPt: z.ZodNumber;
315
+ yPt: z.ZodNumber;
316
+ widthPt: z.ZodNumber;
317
+ heightPt: z.ZodNumber;
318
+ }, z.core.$strip>>>;
269
319
  }, z.core.$strip>;
270
320
  declare const ContentTableRowSchema: z.ZodObject<{
271
321
  cells: z.ZodArray<z.ZodObject<{
@@ -336,6 +386,13 @@ declare const ContentTableRowSchema: z.ZodObject<{
336
386
  }, z.core.$strip>>;
337
387
  }, z.core.$strip>>;
338
388
  sourcePath: z.ZodOptional<z.ZodString>;
389
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
390
+ pageIndex: z.ZodNumber;
391
+ xPt: z.ZodNumber;
392
+ yPt: z.ZodNumber;
393
+ widthPt: z.ZodNumber;
394
+ heightPt: z.ZodNumber;
395
+ }, z.core.$strip>>>;
339
396
  }, z.core.$strip>>;
340
397
  heightPt: z.ZodOptional<z.ZodNumber>;
341
398
  }, z.core.$strip>;
@@ -410,11 +467,25 @@ declare const ContentTableSchema: z.ZodObject<{
410
467
  }, z.core.$strip>>;
411
468
  }, z.core.$strip>>;
412
469
  sourcePath: z.ZodOptional<z.ZodString>;
470
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
471
+ pageIndex: z.ZodNumber;
472
+ xPt: z.ZodNumber;
473
+ yPt: z.ZodNumber;
474
+ widthPt: z.ZodNumber;
475
+ heightPt: z.ZodNumber;
476
+ }, z.core.$strip>>>;
413
477
  }, z.core.$strip>>;
414
478
  heightPt: z.ZodOptional<z.ZodNumber>;
415
479
  }, z.core.$strip>>;
416
480
  columnWidthsPt: z.ZodArray<z.ZodNumber>;
417
481
  sourcePath: z.ZodOptional<z.ZodString>;
482
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
483
+ pageIndex: z.ZodNumber;
484
+ xPt: z.ZodNumber;
485
+ yPt: z.ZodNumber;
486
+ widthPt: z.ZodNumber;
487
+ heightPt: z.ZodNumber;
488
+ }, z.core.$strip>>>;
418
489
  }, z.core.$strip>;
419
490
  declare const ContentSectionSchema: z.ZodObject<{
420
491
  pageSize: z.ZodObject<{
@@ -447,6 +518,13 @@ declare const ContentShapeSchema: z.ZodObject<{
447
518
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
448
519
  paintOrder: z.ZodOptional<z.ZodNumber>;
449
520
  sourcePath: z.ZodOptional<z.ZodString>;
521
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
522
+ pageIndex: z.ZodNumber;
523
+ xPt: z.ZodNumber;
524
+ yPt: z.ZodNumber;
525
+ widthPt: z.ZodNumber;
526
+ heightPt: z.ZodNumber;
527
+ }, z.core.$strip>>>;
450
528
  blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
451
529
  }, z.core.$strip>;
452
530
  type ContentShape = z.infer<typeof ContentShapeSchema>;
@@ -472,6 +550,13 @@ declare const ContentSlideSchema: z.ZodObject<{
472
550
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
473
551
  paintOrder: z.ZodOptional<z.ZodNumber>;
474
552
  sourcePath: z.ZodOptional<z.ZodString>;
553
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
554
+ pageIndex: z.ZodNumber;
555
+ xPt: z.ZodNumber;
556
+ yPt: z.ZodNumber;
557
+ widthPt: z.ZodNumber;
558
+ heightPt: z.ZodNumber;
559
+ }, z.core.$strip>>>;
475
560
  blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
476
561
  }, z.core.$strip>>;
477
562
  notes: z.ZodString;
@@ -514,6 +599,16 @@ declare const ContentCellValueSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
514
599
  kind: z.ZodLiteral<"empty">;
515
600
  }, z.core.$strip>], "kind">;
516
601
  type ContentCellValue = z.infer<typeof ContentCellValueSchema>;
602
+ declare const ContentSheetCellCommentSchema: z.ZodObject<{
603
+ text: z.ZodString;
604
+ author: z.ZodOptional<z.ZodString>;
605
+ createdAt: z.ZodOptional<z.ZodString>;
606
+ replies: z.ZodOptional<z.ZodArray<z.ZodObject<{
607
+ text: z.ZodString;
608
+ author: z.ZodOptional<z.ZodString>;
609
+ }, z.core.$strip>>>;
610
+ }, z.core.$strip>;
611
+ type ContentSheetCellComment = z.infer<typeof ContentSheetCellCommentSchema>;
517
612
  declare const ContentSheetCellSchema: z.ZodObject<{
518
613
  row: z.ZodNumber;
519
614
  column: z.ZodNumber;
@@ -568,6 +663,13 @@ declare const ContentSheetCellSchema: z.ZodObject<{
568
663
  }, z.core.$strip>>;
569
664
  hyperlink: z.ZodOptional<z.ZodString>;
570
665
  sourcePath: z.ZodOptional<z.ZodString>;
666
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
667
+ pageIndex: z.ZodNumber;
668
+ xPt: z.ZodNumber;
669
+ yPt: z.ZodNumber;
670
+ widthPt: z.ZodNumber;
671
+ heightPt: z.ZodNumber;
672
+ }, z.core.$strip>>>;
571
673
  }, z.core.$strip>>>;
572
674
  colSpan: z.ZodOptional<z.ZodNumber>;
573
675
  rowSpan: z.ZodOptional<z.ZodNumber>;
@@ -645,7 +747,23 @@ declare const ContentSheetCellSchema: z.ZodObject<{
645
747
  bottom: "bottom";
646
748
  middle: "middle";
647
749
  }>>;
750
+ comment: z.ZodOptional<z.ZodObject<{
751
+ text: z.ZodString;
752
+ author: z.ZodOptional<z.ZodString>;
753
+ createdAt: z.ZodOptional<z.ZodString>;
754
+ replies: z.ZodOptional<z.ZodArray<z.ZodObject<{
755
+ text: z.ZodString;
756
+ author: z.ZodOptional<z.ZodString>;
757
+ }, z.core.$strip>>>;
758
+ }, z.core.$strip>>;
648
759
  sourcePath: z.ZodOptional<z.ZodString>;
760
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
761
+ pageIndex: z.ZodNumber;
762
+ xPt: z.ZodNumber;
763
+ yPt: z.ZodNumber;
764
+ widthPt: z.ZodNumber;
765
+ heightPt: z.ZodNumber;
766
+ }, z.core.$strip>>>;
649
767
  }, z.core.$strip>;
650
768
  type ContentSheetCell = z.infer<typeof ContentSheetCellSchema>;
651
769
  declare const ContentSheetColumnSchema: z.ZodObject<{
@@ -725,6 +843,13 @@ declare const ContentSheetImageSchema: z.ZodObject<{
725
843
  heightPt: z.ZodNumber;
726
844
  altText: z.ZodOptional<z.ZodString>;
727
845
  sourcePath: z.ZodOptional<z.ZodString>;
846
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
847
+ pageIndex: z.ZodNumber;
848
+ xPt: z.ZodNumber;
849
+ yPt: z.ZodNumber;
850
+ widthPt: z.ZodNumber;
851
+ heightPt: z.ZodNumber;
852
+ }, z.core.$strip>>>;
728
853
  anchorRow: z.ZodNumber;
729
854
  anchorColumn: z.ZodNumber;
730
855
  offsetXPt: z.ZodNumber;
@@ -787,6 +912,13 @@ declare const ContentSheetSchema: z.ZodObject<{
787
912
  }, z.core.$strip>>;
788
913
  hyperlink: z.ZodOptional<z.ZodString>;
789
914
  sourcePath: z.ZodOptional<z.ZodString>;
915
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
916
+ pageIndex: z.ZodNumber;
917
+ xPt: z.ZodNumber;
918
+ yPt: z.ZodNumber;
919
+ widthPt: z.ZodNumber;
920
+ heightPt: z.ZodNumber;
921
+ }, z.core.$strip>>>;
790
922
  }, z.core.$strip>>>;
791
923
  colSpan: z.ZodOptional<z.ZodNumber>;
792
924
  rowSpan: z.ZodOptional<z.ZodNumber>;
@@ -864,7 +996,23 @@ declare const ContentSheetSchema: z.ZodObject<{
864
996
  bottom: "bottom";
865
997
  middle: "middle";
866
998
  }>>;
999
+ comment: z.ZodOptional<z.ZodObject<{
1000
+ text: z.ZodString;
1001
+ author: z.ZodOptional<z.ZodString>;
1002
+ createdAt: z.ZodOptional<z.ZodString>;
1003
+ replies: z.ZodOptional<z.ZodArray<z.ZodObject<{
1004
+ text: z.ZodString;
1005
+ author: z.ZodOptional<z.ZodString>;
1006
+ }, z.core.$strip>>>;
1007
+ }, z.core.$strip>>;
867
1008
  sourcePath: z.ZodOptional<z.ZodString>;
1009
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1010
+ pageIndex: z.ZodNumber;
1011
+ xPt: z.ZodNumber;
1012
+ yPt: z.ZodNumber;
1013
+ widthPt: z.ZodNumber;
1014
+ heightPt: z.ZodNumber;
1015
+ }, z.core.$strip>>>;
868
1016
  }, z.core.$strip>>;
869
1017
  columns: z.ZodArray<z.ZodObject<{
870
1018
  index: z.ZodNumber;
@@ -887,6 +1035,13 @@ declare const ContentSheetSchema: z.ZodObject<{
887
1035
  heightPt: z.ZodNumber;
888
1036
  altText: z.ZodOptional<z.ZodString>;
889
1037
  sourcePath: z.ZodOptional<z.ZodString>;
1038
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1039
+ pageIndex: z.ZodNumber;
1040
+ xPt: z.ZodNumber;
1041
+ yPt: z.ZodNumber;
1042
+ widthPt: z.ZodNumber;
1043
+ heightPt: z.ZodNumber;
1044
+ }, z.core.$strip>>>;
890
1045
  anchorRow: z.ZodNumber;
891
1046
  anchorColumn: z.ZodNumber;
892
1047
  offsetXPt: z.ZodNumber;
@@ -1037,6 +1192,13 @@ declare const ContentVectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1037
1192
  }, z.core.$strip>>;
1038
1193
  paintOrder: z.ZodOptional<z.ZodNumber>;
1039
1194
  sourcePath: z.ZodOptional<z.ZodString>;
1195
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1196
+ pageIndex: z.ZodNumber;
1197
+ xPt: z.ZodNumber;
1198
+ yPt: z.ZodNumber;
1199
+ widthPt: z.ZodNumber;
1200
+ heightPt: z.ZodNumber;
1201
+ }, z.core.$strip>>>;
1040
1202
  }, z.core.$strip>, z.ZodObject<{
1041
1203
  kind: z.ZodLiteral<"ellipse">;
1042
1204
  frame: z.ZodObject<{
@@ -1067,6 +1229,13 @@ declare const ContentVectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1067
1229
  }, z.core.$strip>>;
1068
1230
  paintOrder: z.ZodOptional<z.ZodNumber>;
1069
1231
  sourcePath: z.ZodOptional<z.ZodString>;
1232
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1233
+ pageIndex: z.ZodNumber;
1234
+ xPt: z.ZodNumber;
1235
+ yPt: z.ZodNumber;
1236
+ widthPt: z.ZodNumber;
1237
+ heightPt: z.ZodNumber;
1238
+ }, z.core.$strip>>>;
1070
1239
  }, z.core.$strip>, z.ZodObject<{
1071
1240
  kind: z.ZodLiteral<"line">;
1072
1241
  from: z.ZodObject<{
@@ -1093,6 +1262,13 @@ declare const ContentVectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1093
1262
  }, z.core.$strip>;
1094
1263
  paintOrder: z.ZodOptional<z.ZodNumber>;
1095
1264
  sourcePath: z.ZodOptional<z.ZodString>;
1265
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1266
+ pageIndex: z.ZodNumber;
1267
+ xPt: z.ZodNumber;
1268
+ yPt: z.ZodNumber;
1269
+ widthPt: z.ZodNumber;
1270
+ heightPt: z.ZodNumber;
1271
+ }, z.core.$strip>>>;
1096
1272
  }, z.core.$strip>, z.ZodObject<{
1097
1273
  kind: z.ZodLiteral<"path">;
1098
1274
  frame: z.ZodObject<{
@@ -1155,6 +1331,13 @@ declare const ContentVectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1155
1331
  }, z.core.$strip>>;
1156
1332
  paintOrder: z.ZodOptional<z.ZodNumber>;
1157
1333
  sourcePath: z.ZodOptional<z.ZodString>;
1334
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1335
+ pageIndex: z.ZodNumber;
1336
+ xPt: z.ZodNumber;
1337
+ yPt: z.ZodNumber;
1338
+ widthPt: z.ZodNumber;
1339
+ heightPt: z.ZodNumber;
1340
+ }, z.core.$strip>>>;
1158
1341
  }, z.core.$strip>], "kind">;
1159
1342
  type ContentVector = z.infer<typeof ContentVectorSchema>;
1160
1343
  declare const ContentDrawPageSchema: z.ZodObject<{
@@ -1179,6 +1362,13 @@ declare const ContentDrawPageSchema: z.ZodObject<{
1179
1362
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
1180
1363
  paintOrder: z.ZodOptional<z.ZodNumber>;
1181
1364
  sourcePath: z.ZodOptional<z.ZodString>;
1365
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1366
+ pageIndex: z.ZodNumber;
1367
+ xPt: z.ZodNumber;
1368
+ yPt: z.ZodNumber;
1369
+ widthPt: z.ZodNumber;
1370
+ heightPt: z.ZodNumber;
1371
+ }, z.core.$strip>>>;
1182
1372
  blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
1183
1373
  }, z.core.$strip>>;
1184
1374
  vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1211,6 +1401,13 @@ declare const ContentDrawPageSchema: z.ZodObject<{
1211
1401
  }, z.core.$strip>>;
1212
1402
  paintOrder: z.ZodOptional<z.ZodNumber>;
1213
1403
  sourcePath: z.ZodOptional<z.ZodString>;
1404
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1405
+ pageIndex: z.ZodNumber;
1406
+ xPt: z.ZodNumber;
1407
+ yPt: z.ZodNumber;
1408
+ widthPt: z.ZodNumber;
1409
+ heightPt: z.ZodNumber;
1410
+ }, z.core.$strip>>>;
1214
1411
  }, z.core.$strip>, z.ZodObject<{
1215
1412
  kind: z.ZodLiteral<"ellipse">;
1216
1413
  frame: z.ZodObject<{
@@ -1241,6 +1438,13 @@ declare const ContentDrawPageSchema: z.ZodObject<{
1241
1438
  }, z.core.$strip>>;
1242
1439
  paintOrder: z.ZodOptional<z.ZodNumber>;
1243
1440
  sourcePath: z.ZodOptional<z.ZodString>;
1441
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1442
+ pageIndex: z.ZodNumber;
1443
+ xPt: z.ZodNumber;
1444
+ yPt: z.ZodNumber;
1445
+ widthPt: z.ZodNumber;
1446
+ heightPt: z.ZodNumber;
1447
+ }, z.core.$strip>>>;
1244
1448
  }, z.core.$strip>, z.ZodObject<{
1245
1449
  kind: z.ZodLiteral<"line">;
1246
1450
  from: z.ZodObject<{
@@ -1267,6 +1471,13 @@ declare const ContentDrawPageSchema: z.ZodObject<{
1267
1471
  }, z.core.$strip>;
1268
1472
  paintOrder: z.ZodOptional<z.ZodNumber>;
1269
1473
  sourcePath: z.ZodOptional<z.ZodString>;
1474
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1475
+ pageIndex: z.ZodNumber;
1476
+ xPt: z.ZodNumber;
1477
+ yPt: z.ZodNumber;
1478
+ widthPt: z.ZodNumber;
1479
+ heightPt: z.ZodNumber;
1480
+ }, z.core.$strip>>>;
1270
1481
  }, z.core.$strip>, z.ZodObject<{
1271
1482
  kind: z.ZodLiteral<"path">;
1272
1483
  frame: z.ZodObject<{
@@ -1329,6 +1540,13 @@ declare const ContentDrawPageSchema: z.ZodObject<{
1329
1540
  }, z.core.$strip>>;
1330
1541
  paintOrder: z.ZodOptional<z.ZodNumber>;
1331
1542
  sourcePath: z.ZodOptional<z.ZodString>;
1543
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1544
+ pageIndex: z.ZodNumber;
1545
+ xPt: z.ZodNumber;
1546
+ yPt: z.ZodNumber;
1547
+ widthPt: z.ZodNumber;
1548
+ heightPt: z.ZodNumber;
1549
+ }, z.core.$strip>>>;
1332
1550
  }, z.core.$strip>], "kind">>;
1333
1551
  }, z.core.$strip>;
1334
1552
  type ContentDrawPage = z.infer<typeof ContentDrawPageSchema>;
@@ -1337,10 +1555,10 @@ declare const ContentFormulaSchema: z.ZodObject<{
1337
1555
  starMath: z.ZodOptional<z.ZodString>;
1338
1556
  }, z.core.$strip>;
1339
1557
  type ContentFormula = z.infer<typeof ContentFormulaSchema>;
1340
- declare const CONTENT_FORMAT_VERSION = 2;
1558
+ declare const CONTENT_FORMAT_VERSION = 3;
1341
1559
  declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1342
1560
  kind: z.ZodLiteral<"wordprocessing">;
1343
- formatVersion: z.ZodLiteral<2>;
1561
+ formatVersion: z.ZodLiteral<3>;
1344
1562
  metadata: z.ZodObject<{
1345
1563
  title: z.ZodOptional<z.ZodString>;
1346
1564
  author: z.ZodOptional<z.ZodString>;
@@ -1366,7 +1584,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1366
1584
  }, z.core.$strip>>;
1367
1585
  }, z.core.$strip>, z.ZodObject<{
1368
1586
  kind: z.ZodLiteral<"presentation">;
1369
- formatVersion: z.ZodLiteral<2>;
1587
+ formatVersion: z.ZodLiteral<3>;
1370
1588
  metadata: z.ZodObject<{
1371
1589
  title: z.ZodOptional<z.ZodString>;
1372
1590
  author: z.ZodOptional<z.ZodString>;
@@ -1399,13 +1617,20 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1399
1617
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
1400
1618
  paintOrder: z.ZodOptional<z.ZodNumber>;
1401
1619
  sourcePath: z.ZodOptional<z.ZodString>;
1620
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1621
+ pageIndex: z.ZodNumber;
1622
+ xPt: z.ZodNumber;
1623
+ yPt: z.ZodNumber;
1624
+ widthPt: z.ZodNumber;
1625
+ heightPt: z.ZodNumber;
1626
+ }, z.core.$strip>>>;
1402
1627
  blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
1403
1628
  }, z.core.$strip>>;
1404
1629
  notes: z.ZodString;
1405
1630
  }, z.core.$strip>>;
1406
1631
  }, z.core.$strip>, z.ZodObject<{
1407
1632
  kind: z.ZodLiteral<"spreadsheet">;
1408
- formatVersion: z.ZodLiteral<2>;
1633
+ formatVersion: z.ZodLiteral<3>;
1409
1634
  metadata: z.ZodObject<{
1410
1635
  title: z.ZodOptional<z.ZodString>;
1411
1636
  author: z.ZodOptional<z.ZodString>;
@@ -1472,6 +1697,13 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1472
1697
  }, z.core.$strip>>;
1473
1698
  hyperlink: z.ZodOptional<z.ZodString>;
1474
1699
  sourcePath: z.ZodOptional<z.ZodString>;
1700
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1701
+ pageIndex: z.ZodNumber;
1702
+ xPt: z.ZodNumber;
1703
+ yPt: z.ZodNumber;
1704
+ widthPt: z.ZodNumber;
1705
+ heightPt: z.ZodNumber;
1706
+ }, z.core.$strip>>>;
1475
1707
  }, z.core.$strip>>>;
1476
1708
  colSpan: z.ZodOptional<z.ZodNumber>;
1477
1709
  rowSpan: z.ZodOptional<z.ZodNumber>;
@@ -1549,7 +1781,23 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1549
1781
  bottom: "bottom";
1550
1782
  middle: "middle";
1551
1783
  }>>;
1784
+ comment: z.ZodOptional<z.ZodObject<{
1785
+ text: z.ZodString;
1786
+ author: z.ZodOptional<z.ZodString>;
1787
+ createdAt: z.ZodOptional<z.ZodString>;
1788
+ replies: z.ZodOptional<z.ZodArray<z.ZodObject<{
1789
+ text: z.ZodString;
1790
+ author: z.ZodOptional<z.ZodString>;
1791
+ }, z.core.$strip>>>;
1792
+ }, z.core.$strip>>;
1552
1793
  sourcePath: z.ZodOptional<z.ZodString>;
1794
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1795
+ pageIndex: z.ZodNumber;
1796
+ xPt: z.ZodNumber;
1797
+ yPt: z.ZodNumber;
1798
+ widthPt: z.ZodNumber;
1799
+ heightPt: z.ZodNumber;
1800
+ }, z.core.$strip>>>;
1553
1801
  }, z.core.$strip>>;
1554
1802
  columns: z.ZodArray<z.ZodObject<{
1555
1803
  index: z.ZodNumber;
@@ -1572,6 +1820,13 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1572
1820
  heightPt: z.ZodNumber;
1573
1821
  altText: z.ZodOptional<z.ZodString>;
1574
1822
  sourcePath: z.ZodOptional<z.ZodString>;
1823
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1824
+ pageIndex: z.ZodNumber;
1825
+ xPt: z.ZodNumber;
1826
+ yPt: z.ZodNumber;
1827
+ widthPt: z.ZodNumber;
1828
+ heightPt: z.ZodNumber;
1829
+ }, z.core.$strip>>>;
1575
1830
  anchorRow: z.ZodNumber;
1576
1831
  anchorColumn: z.ZodNumber;
1577
1832
  offsetXPt: z.ZodNumber;
@@ -1622,7 +1877,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1622
1877
  }, z.core.$strip>>;
1623
1878
  }, z.core.$strip>, z.ZodObject<{
1624
1879
  kind: z.ZodLiteral<"drawing">;
1625
- formatVersion: z.ZodLiteral<2>;
1880
+ formatVersion: z.ZodLiteral<3>;
1626
1881
  metadata: z.ZodObject<{
1627
1882
  title: z.ZodOptional<z.ZodString>;
1628
1883
  author: z.ZodOptional<z.ZodString>;
@@ -1655,6 +1910,13 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1655
1910
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
1656
1911
  paintOrder: z.ZodOptional<z.ZodNumber>;
1657
1912
  sourcePath: z.ZodOptional<z.ZodString>;
1913
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1914
+ pageIndex: z.ZodNumber;
1915
+ xPt: z.ZodNumber;
1916
+ yPt: z.ZodNumber;
1917
+ widthPt: z.ZodNumber;
1918
+ heightPt: z.ZodNumber;
1919
+ }, z.core.$strip>>>;
1658
1920
  blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
1659
1921
  }, z.core.$strip>>;
1660
1922
  vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1687,6 +1949,13 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1687
1949
  }, z.core.$strip>>;
1688
1950
  paintOrder: z.ZodOptional<z.ZodNumber>;
1689
1951
  sourcePath: z.ZodOptional<z.ZodString>;
1952
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1953
+ pageIndex: z.ZodNumber;
1954
+ xPt: z.ZodNumber;
1955
+ yPt: z.ZodNumber;
1956
+ widthPt: z.ZodNumber;
1957
+ heightPt: z.ZodNumber;
1958
+ }, z.core.$strip>>>;
1690
1959
  }, z.core.$strip>, z.ZodObject<{
1691
1960
  kind: z.ZodLiteral<"ellipse">;
1692
1961
  frame: z.ZodObject<{
@@ -1717,6 +1986,13 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1717
1986
  }, z.core.$strip>>;
1718
1987
  paintOrder: z.ZodOptional<z.ZodNumber>;
1719
1988
  sourcePath: z.ZodOptional<z.ZodString>;
1989
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1990
+ pageIndex: z.ZodNumber;
1991
+ xPt: z.ZodNumber;
1992
+ yPt: z.ZodNumber;
1993
+ widthPt: z.ZodNumber;
1994
+ heightPt: z.ZodNumber;
1995
+ }, z.core.$strip>>>;
1720
1996
  }, z.core.$strip>, z.ZodObject<{
1721
1997
  kind: z.ZodLiteral<"line">;
1722
1998
  from: z.ZodObject<{
@@ -1743,6 +2019,13 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1743
2019
  }, z.core.$strip>;
1744
2020
  paintOrder: z.ZodOptional<z.ZodNumber>;
1745
2021
  sourcePath: z.ZodOptional<z.ZodString>;
2022
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
2023
+ pageIndex: z.ZodNumber;
2024
+ xPt: z.ZodNumber;
2025
+ yPt: z.ZodNumber;
2026
+ widthPt: z.ZodNumber;
2027
+ heightPt: z.ZodNumber;
2028
+ }, z.core.$strip>>>;
1746
2029
  }, z.core.$strip>, z.ZodObject<{
1747
2030
  kind: z.ZodLiteral<"path">;
1748
2031
  frame: z.ZodObject<{
@@ -1805,11 +2088,18 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1805
2088
  }, z.core.$strip>>;
1806
2089
  paintOrder: z.ZodOptional<z.ZodNumber>;
1807
2090
  sourcePath: z.ZodOptional<z.ZodString>;
2091
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
2092
+ pageIndex: z.ZodNumber;
2093
+ xPt: z.ZodNumber;
2094
+ yPt: z.ZodNumber;
2095
+ widthPt: z.ZodNumber;
2096
+ heightPt: z.ZodNumber;
2097
+ }, z.core.$strip>>>;
1808
2098
  }, z.core.$strip>], "kind">>;
1809
2099
  }, z.core.$strip>>;
1810
2100
  }, z.core.$strip>, z.ZodObject<{
1811
2101
  kind: z.ZodLiteral<"formula">;
1812
- formatVersion: z.ZodLiteral<2>;
2102
+ formatVersion: z.ZodLiteral<3>;
1813
2103
  metadata: z.ZodObject<{
1814
2104
  title: z.ZodOptional<z.ZodString>;
1815
2105
  author: z.ZodOptional<z.ZodString>;
@@ -1827,4 +2117,4 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1827
2117
  }, z.core.$strip>], "kind">;
1828
2118
  type ContentDocument = z.infer<typeof ContentDocumentSchema>;
1829
2119
  //#endregion
1830
- export { CONTENT_FORMAT_VERSION, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, isContentBlock };
2120
+ export { CONTENT_FORMAT_VERSION, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellValue, ContentCellValueSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFormula, ContentFormulaSchema, ContentImageBlock, ContentImageBlockSchema, ContentListMembership, ContentListMembershipSchema, ContentPageBreak, ContentPageBreakSchema, ContentParagraph, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, clampHeadingLevel, isContentBlock };