document-model.js 2.7.17 → 3.0.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;
@@ -568,6 +653,13 @@ declare const ContentSheetCellSchema: z.ZodObject<{
568
653
  }, z.core.$strip>>;
569
654
  hyperlink: z.ZodOptional<z.ZodString>;
570
655
  sourcePath: z.ZodOptional<z.ZodString>;
656
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
657
+ pageIndex: z.ZodNumber;
658
+ xPt: z.ZodNumber;
659
+ yPt: z.ZodNumber;
660
+ widthPt: z.ZodNumber;
661
+ heightPt: z.ZodNumber;
662
+ }, z.core.$strip>>>;
571
663
  }, z.core.$strip>>>;
572
664
  colSpan: z.ZodOptional<z.ZodNumber>;
573
665
  rowSpan: z.ZodOptional<z.ZodNumber>;
@@ -646,6 +738,13 @@ declare const ContentSheetCellSchema: z.ZodObject<{
646
738
  middle: "middle";
647
739
  }>>;
648
740
  sourcePath: z.ZodOptional<z.ZodString>;
741
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
742
+ pageIndex: z.ZodNumber;
743
+ xPt: z.ZodNumber;
744
+ yPt: z.ZodNumber;
745
+ widthPt: z.ZodNumber;
746
+ heightPt: z.ZodNumber;
747
+ }, z.core.$strip>>>;
649
748
  }, z.core.$strip>;
650
749
  type ContentSheetCell = z.infer<typeof ContentSheetCellSchema>;
651
750
  declare const ContentSheetColumnSchema: z.ZodObject<{
@@ -725,6 +824,13 @@ declare const ContentSheetImageSchema: z.ZodObject<{
725
824
  heightPt: z.ZodNumber;
726
825
  altText: z.ZodOptional<z.ZodString>;
727
826
  sourcePath: z.ZodOptional<z.ZodString>;
827
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
828
+ pageIndex: z.ZodNumber;
829
+ xPt: z.ZodNumber;
830
+ yPt: z.ZodNumber;
831
+ widthPt: z.ZodNumber;
832
+ heightPt: z.ZodNumber;
833
+ }, z.core.$strip>>>;
728
834
  anchorRow: z.ZodNumber;
729
835
  anchorColumn: z.ZodNumber;
730
836
  offsetXPt: z.ZodNumber;
@@ -787,6 +893,13 @@ declare const ContentSheetSchema: z.ZodObject<{
787
893
  }, z.core.$strip>>;
788
894
  hyperlink: z.ZodOptional<z.ZodString>;
789
895
  sourcePath: z.ZodOptional<z.ZodString>;
896
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
897
+ pageIndex: z.ZodNumber;
898
+ xPt: z.ZodNumber;
899
+ yPt: z.ZodNumber;
900
+ widthPt: z.ZodNumber;
901
+ heightPt: z.ZodNumber;
902
+ }, z.core.$strip>>>;
790
903
  }, z.core.$strip>>>;
791
904
  colSpan: z.ZodOptional<z.ZodNumber>;
792
905
  rowSpan: z.ZodOptional<z.ZodNumber>;
@@ -865,6 +978,13 @@ declare const ContentSheetSchema: z.ZodObject<{
865
978
  middle: "middle";
866
979
  }>>;
867
980
  sourcePath: z.ZodOptional<z.ZodString>;
981
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
982
+ pageIndex: z.ZodNumber;
983
+ xPt: z.ZodNumber;
984
+ yPt: z.ZodNumber;
985
+ widthPt: z.ZodNumber;
986
+ heightPt: z.ZodNumber;
987
+ }, z.core.$strip>>>;
868
988
  }, z.core.$strip>>;
869
989
  columns: z.ZodArray<z.ZodObject<{
870
990
  index: z.ZodNumber;
@@ -887,6 +1007,13 @@ declare const ContentSheetSchema: z.ZodObject<{
887
1007
  heightPt: z.ZodNumber;
888
1008
  altText: z.ZodOptional<z.ZodString>;
889
1009
  sourcePath: z.ZodOptional<z.ZodString>;
1010
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1011
+ pageIndex: z.ZodNumber;
1012
+ xPt: z.ZodNumber;
1013
+ yPt: z.ZodNumber;
1014
+ widthPt: z.ZodNumber;
1015
+ heightPt: z.ZodNumber;
1016
+ }, z.core.$strip>>>;
890
1017
  anchorRow: z.ZodNumber;
891
1018
  anchorColumn: z.ZodNumber;
892
1019
  offsetXPt: z.ZodNumber;
@@ -1037,6 +1164,13 @@ declare const ContentVectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1037
1164
  }, z.core.$strip>>;
1038
1165
  paintOrder: z.ZodOptional<z.ZodNumber>;
1039
1166
  sourcePath: z.ZodOptional<z.ZodString>;
1167
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1168
+ pageIndex: z.ZodNumber;
1169
+ xPt: z.ZodNumber;
1170
+ yPt: z.ZodNumber;
1171
+ widthPt: z.ZodNumber;
1172
+ heightPt: z.ZodNumber;
1173
+ }, z.core.$strip>>>;
1040
1174
  }, z.core.$strip>, z.ZodObject<{
1041
1175
  kind: z.ZodLiteral<"ellipse">;
1042
1176
  frame: z.ZodObject<{
@@ -1067,6 +1201,13 @@ declare const ContentVectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1067
1201
  }, z.core.$strip>>;
1068
1202
  paintOrder: z.ZodOptional<z.ZodNumber>;
1069
1203
  sourcePath: z.ZodOptional<z.ZodString>;
1204
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1205
+ pageIndex: z.ZodNumber;
1206
+ xPt: z.ZodNumber;
1207
+ yPt: z.ZodNumber;
1208
+ widthPt: z.ZodNumber;
1209
+ heightPt: z.ZodNumber;
1210
+ }, z.core.$strip>>>;
1070
1211
  }, z.core.$strip>, z.ZodObject<{
1071
1212
  kind: z.ZodLiteral<"line">;
1072
1213
  from: z.ZodObject<{
@@ -1093,6 +1234,13 @@ declare const ContentVectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1093
1234
  }, z.core.$strip>;
1094
1235
  paintOrder: z.ZodOptional<z.ZodNumber>;
1095
1236
  sourcePath: z.ZodOptional<z.ZodString>;
1237
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1238
+ pageIndex: z.ZodNumber;
1239
+ xPt: z.ZodNumber;
1240
+ yPt: z.ZodNumber;
1241
+ widthPt: z.ZodNumber;
1242
+ heightPt: z.ZodNumber;
1243
+ }, z.core.$strip>>>;
1096
1244
  }, z.core.$strip>, z.ZodObject<{
1097
1245
  kind: z.ZodLiteral<"path">;
1098
1246
  frame: z.ZodObject<{
@@ -1155,6 +1303,13 @@ declare const ContentVectorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1155
1303
  }, z.core.$strip>>;
1156
1304
  paintOrder: z.ZodOptional<z.ZodNumber>;
1157
1305
  sourcePath: z.ZodOptional<z.ZodString>;
1306
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1307
+ pageIndex: z.ZodNumber;
1308
+ xPt: z.ZodNumber;
1309
+ yPt: z.ZodNumber;
1310
+ widthPt: z.ZodNumber;
1311
+ heightPt: z.ZodNumber;
1312
+ }, z.core.$strip>>>;
1158
1313
  }, z.core.$strip>], "kind">;
1159
1314
  type ContentVector = z.infer<typeof ContentVectorSchema>;
1160
1315
  declare const ContentDrawPageSchema: z.ZodObject<{
@@ -1179,6 +1334,13 @@ declare const ContentDrawPageSchema: z.ZodObject<{
1179
1334
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
1180
1335
  paintOrder: z.ZodOptional<z.ZodNumber>;
1181
1336
  sourcePath: z.ZodOptional<z.ZodString>;
1337
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1338
+ pageIndex: z.ZodNumber;
1339
+ xPt: z.ZodNumber;
1340
+ yPt: z.ZodNumber;
1341
+ widthPt: z.ZodNumber;
1342
+ heightPt: z.ZodNumber;
1343
+ }, z.core.$strip>>>;
1182
1344
  blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
1183
1345
  }, z.core.$strip>>;
1184
1346
  vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1211,6 +1373,13 @@ declare const ContentDrawPageSchema: z.ZodObject<{
1211
1373
  }, z.core.$strip>>;
1212
1374
  paintOrder: z.ZodOptional<z.ZodNumber>;
1213
1375
  sourcePath: z.ZodOptional<z.ZodString>;
1376
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1377
+ pageIndex: z.ZodNumber;
1378
+ xPt: z.ZodNumber;
1379
+ yPt: z.ZodNumber;
1380
+ widthPt: z.ZodNumber;
1381
+ heightPt: z.ZodNumber;
1382
+ }, z.core.$strip>>>;
1214
1383
  }, z.core.$strip>, z.ZodObject<{
1215
1384
  kind: z.ZodLiteral<"ellipse">;
1216
1385
  frame: z.ZodObject<{
@@ -1241,6 +1410,13 @@ declare const ContentDrawPageSchema: z.ZodObject<{
1241
1410
  }, z.core.$strip>>;
1242
1411
  paintOrder: z.ZodOptional<z.ZodNumber>;
1243
1412
  sourcePath: z.ZodOptional<z.ZodString>;
1413
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1414
+ pageIndex: z.ZodNumber;
1415
+ xPt: z.ZodNumber;
1416
+ yPt: z.ZodNumber;
1417
+ widthPt: z.ZodNumber;
1418
+ heightPt: z.ZodNumber;
1419
+ }, z.core.$strip>>>;
1244
1420
  }, z.core.$strip>, z.ZodObject<{
1245
1421
  kind: z.ZodLiteral<"line">;
1246
1422
  from: z.ZodObject<{
@@ -1267,6 +1443,13 @@ declare const ContentDrawPageSchema: z.ZodObject<{
1267
1443
  }, z.core.$strip>;
1268
1444
  paintOrder: z.ZodOptional<z.ZodNumber>;
1269
1445
  sourcePath: z.ZodOptional<z.ZodString>;
1446
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1447
+ pageIndex: z.ZodNumber;
1448
+ xPt: z.ZodNumber;
1449
+ yPt: z.ZodNumber;
1450
+ widthPt: z.ZodNumber;
1451
+ heightPt: z.ZodNumber;
1452
+ }, z.core.$strip>>>;
1270
1453
  }, z.core.$strip>, z.ZodObject<{
1271
1454
  kind: z.ZodLiteral<"path">;
1272
1455
  frame: z.ZodObject<{
@@ -1329,6 +1512,13 @@ declare const ContentDrawPageSchema: z.ZodObject<{
1329
1512
  }, z.core.$strip>>;
1330
1513
  paintOrder: z.ZodOptional<z.ZodNumber>;
1331
1514
  sourcePath: z.ZodOptional<z.ZodString>;
1515
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1516
+ pageIndex: z.ZodNumber;
1517
+ xPt: z.ZodNumber;
1518
+ yPt: z.ZodNumber;
1519
+ widthPt: z.ZodNumber;
1520
+ heightPt: z.ZodNumber;
1521
+ }, z.core.$strip>>>;
1332
1522
  }, z.core.$strip>], "kind">>;
1333
1523
  }, z.core.$strip>;
1334
1524
  type ContentDrawPage = z.infer<typeof ContentDrawPageSchema>;
@@ -1337,10 +1527,10 @@ declare const ContentFormulaSchema: z.ZodObject<{
1337
1527
  starMath: z.ZodOptional<z.ZodString>;
1338
1528
  }, z.core.$strip>;
1339
1529
  type ContentFormula = z.infer<typeof ContentFormulaSchema>;
1340
- declare const CONTENT_FORMAT_VERSION = 2;
1530
+ declare const CONTENT_FORMAT_VERSION = 3;
1341
1531
  declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1342
1532
  kind: z.ZodLiteral<"wordprocessing">;
1343
- formatVersion: z.ZodLiteral<2>;
1533
+ formatVersion: z.ZodLiteral<3>;
1344
1534
  metadata: z.ZodObject<{
1345
1535
  title: z.ZodOptional<z.ZodString>;
1346
1536
  author: z.ZodOptional<z.ZodString>;
@@ -1366,7 +1556,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1366
1556
  }, z.core.$strip>>;
1367
1557
  }, z.core.$strip>, z.ZodObject<{
1368
1558
  kind: z.ZodLiteral<"presentation">;
1369
- formatVersion: z.ZodLiteral<2>;
1559
+ formatVersion: z.ZodLiteral<3>;
1370
1560
  metadata: z.ZodObject<{
1371
1561
  title: z.ZodOptional<z.ZodString>;
1372
1562
  author: z.ZodOptional<z.ZodString>;
@@ -1399,13 +1589,20 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1399
1589
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
1400
1590
  paintOrder: z.ZodOptional<z.ZodNumber>;
1401
1591
  sourcePath: z.ZodOptional<z.ZodString>;
1592
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1593
+ pageIndex: z.ZodNumber;
1594
+ xPt: z.ZodNumber;
1595
+ yPt: z.ZodNumber;
1596
+ widthPt: z.ZodNumber;
1597
+ heightPt: z.ZodNumber;
1598
+ }, z.core.$strip>>>;
1402
1599
  blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
1403
1600
  }, z.core.$strip>>;
1404
1601
  notes: z.ZodString;
1405
1602
  }, z.core.$strip>>;
1406
1603
  }, z.core.$strip>, z.ZodObject<{
1407
1604
  kind: z.ZodLiteral<"spreadsheet">;
1408
- formatVersion: z.ZodLiteral<2>;
1605
+ formatVersion: z.ZodLiteral<3>;
1409
1606
  metadata: z.ZodObject<{
1410
1607
  title: z.ZodOptional<z.ZodString>;
1411
1608
  author: z.ZodOptional<z.ZodString>;
@@ -1472,6 +1669,13 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1472
1669
  }, z.core.$strip>>;
1473
1670
  hyperlink: z.ZodOptional<z.ZodString>;
1474
1671
  sourcePath: z.ZodOptional<z.ZodString>;
1672
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1673
+ pageIndex: z.ZodNumber;
1674
+ xPt: z.ZodNumber;
1675
+ yPt: z.ZodNumber;
1676
+ widthPt: z.ZodNumber;
1677
+ heightPt: z.ZodNumber;
1678
+ }, z.core.$strip>>>;
1475
1679
  }, z.core.$strip>>>;
1476
1680
  colSpan: z.ZodOptional<z.ZodNumber>;
1477
1681
  rowSpan: z.ZodOptional<z.ZodNumber>;
@@ -1550,6 +1754,13 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1550
1754
  middle: "middle";
1551
1755
  }>>;
1552
1756
  sourcePath: z.ZodOptional<z.ZodString>;
1757
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1758
+ pageIndex: z.ZodNumber;
1759
+ xPt: z.ZodNumber;
1760
+ yPt: z.ZodNumber;
1761
+ widthPt: z.ZodNumber;
1762
+ heightPt: z.ZodNumber;
1763
+ }, z.core.$strip>>>;
1553
1764
  }, z.core.$strip>>;
1554
1765
  columns: z.ZodArray<z.ZodObject<{
1555
1766
  index: z.ZodNumber;
@@ -1572,6 +1783,13 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1572
1783
  heightPt: z.ZodNumber;
1573
1784
  altText: z.ZodOptional<z.ZodString>;
1574
1785
  sourcePath: z.ZodOptional<z.ZodString>;
1786
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1787
+ pageIndex: z.ZodNumber;
1788
+ xPt: z.ZodNumber;
1789
+ yPt: z.ZodNumber;
1790
+ widthPt: z.ZodNumber;
1791
+ heightPt: z.ZodNumber;
1792
+ }, z.core.$strip>>>;
1575
1793
  anchorRow: z.ZodNumber;
1576
1794
  anchorColumn: z.ZodNumber;
1577
1795
  offsetXPt: z.ZodNumber;
@@ -1622,7 +1840,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1622
1840
  }, z.core.$strip>>;
1623
1841
  }, z.core.$strip>, z.ZodObject<{
1624
1842
  kind: z.ZodLiteral<"drawing">;
1625
- formatVersion: z.ZodLiteral<2>;
1843
+ formatVersion: z.ZodLiteral<3>;
1626
1844
  metadata: z.ZodObject<{
1627
1845
  title: z.ZodOptional<z.ZodString>;
1628
1846
  author: z.ZodOptional<z.ZodString>;
@@ -1655,6 +1873,13 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1655
1873
  lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
1656
1874
  paintOrder: z.ZodOptional<z.ZodNumber>;
1657
1875
  sourcePath: z.ZodOptional<z.ZodString>;
1876
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1877
+ pageIndex: z.ZodNumber;
1878
+ xPt: z.ZodNumber;
1879
+ yPt: z.ZodNumber;
1880
+ widthPt: z.ZodNumber;
1881
+ heightPt: z.ZodNumber;
1882
+ }, z.core.$strip>>>;
1658
1883
  blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
1659
1884
  }, z.core.$strip>>;
1660
1885
  vectors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1687,6 +1912,13 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1687
1912
  }, z.core.$strip>>;
1688
1913
  paintOrder: z.ZodOptional<z.ZodNumber>;
1689
1914
  sourcePath: z.ZodOptional<z.ZodString>;
1915
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1916
+ pageIndex: z.ZodNumber;
1917
+ xPt: z.ZodNumber;
1918
+ yPt: z.ZodNumber;
1919
+ widthPt: z.ZodNumber;
1920
+ heightPt: z.ZodNumber;
1921
+ }, z.core.$strip>>>;
1690
1922
  }, z.core.$strip>, z.ZodObject<{
1691
1923
  kind: z.ZodLiteral<"ellipse">;
1692
1924
  frame: z.ZodObject<{
@@ -1717,6 +1949,13 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1717
1949
  }, z.core.$strip>>;
1718
1950
  paintOrder: z.ZodOptional<z.ZodNumber>;
1719
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>>>;
1720
1959
  }, z.core.$strip>, z.ZodObject<{
1721
1960
  kind: z.ZodLiteral<"line">;
1722
1961
  from: z.ZodObject<{
@@ -1743,6 +1982,13 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1743
1982
  }, z.core.$strip>;
1744
1983
  paintOrder: z.ZodOptional<z.ZodNumber>;
1745
1984
  sourcePath: z.ZodOptional<z.ZodString>;
1985
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
1986
+ pageIndex: z.ZodNumber;
1987
+ xPt: z.ZodNumber;
1988
+ yPt: z.ZodNumber;
1989
+ widthPt: z.ZodNumber;
1990
+ heightPt: z.ZodNumber;
1991
+ }, z.core.$strip>>>;
1746
1992
  }, z.core.$strip>, z.ZodObject<{
1747
1993
  kind: z.ZodLiteral<"path">;
1748
1994
  frame: z.ZodObject<{
@@ -1805,11 +2051,18 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1805
2051
  }, z.core.$strip>>;
1806
2052
  paintOrder: z.ZodOptional<z.ZodNumber>;
1807
2053
  sourcePath: z.ZodOptional<z.ZodString>;
2054
+ frames: z.ZodOptional<z.ZodArray<z.ZodObject<{
2055
+ pageIndex: z.ZodNumber;
2056
+ xPt: z.ZodNumber;
2057
+ yPt: z.ZodNumber;
2058
+ widthPt: z.ZodNumber;
2059
+ heightPt: z.ZodNumber;
2060
+ }, z.core.$strip>>>;
1808
2061
  }, z.core.$strip>], "kind">>;
1809
2062
  }, z.core.$strip>>;
1810
2063
  }, z.core.$strip>, z.ZodObject<{
1811
2064
  kind: z.ZodLiteral<"formula">;
1812
- formatVersion: z.ZodLiteral<2>;
2065
+ formatVersion: z.ZodLiteral<3>;
1813
2066
  metadata: z.ZodObject<{
1814
2067
  title: z.ZodOptional<z.ZodString>;
1815
2068
  author: z.ZodOptional<z.ZodString>;
@@ -1827,4 +2080,4 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1827
2080
  }, z.core.$strip>], "kind">;
1828
2081
  type ContentDocument = z.infer<typeof ContentDocumentSchema>;
1829
2082
  //#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 };
2083
+ 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, FusedNode, clampHeadingLevel, isContentBlock };