document-content-model 7.14.0 → 7.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{construct-C9cYkjnd.d.cts → construct-GVdTKrE7.d.cts} +3 -3
- package/dist/{construct-C9cYkjnd.d.ts → construct-GVdTKrE7.d.ts} +3 -3
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/{content-Cc9oMKMd.d.ts → content-BzGOsekw.d.ts} +51 -40
- package/dist/content-json-schema-defs.cjs +15 -6
- package/dist/content-json-schema-defs.js +15 -6
- package/dist/{content-Db6wh_6v.d.cts → content-lXpPw1nC.d.cts} +51 -40
- package/dist/content.cjs +10 -2
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +10 -3
- package/dist/decompose.d.cts +2 -2
- package/dist/decompose.d.ts +2 -2
- package/dist/definitions.d.cts +4 -4
- package/dist/definitions.d.ts +4 -4
- package/dist/factor-styles.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/flatten.d.cts +1 -1
- package/dist/flatten.d.ts +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/{package-node-D42YxKm6.d.cts → package-node-CWW0Evpn.d.cts} +9 -9
- package/dist/{package-node-D-1yiCmi.d.ts → package-node-DosdPQ6x.d.ts} +9 -9
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package.d.cts +6 -6
- package/dist/package.d.ts +6 -6
- package/dist/schema-io.cjs +2 -2
- package/dist/schema-io.d.cts +1 -1
- package/dist/schema-io.d.ts +1 -1
- package/dist/schema-io.js +2 -2
- package/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
- package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
- package/dist/style.d.cts +1 -1
- package/dist/style.d.ts +1 -1
- package/dist/table-grid.cjs +4 -4
- package/dist/table-grid.d.cts +5 -5
- package/dist/table-grid.d.ts +5 -5
- package/dist/table-grid.js +4 -4
- package/dist/text-layout.d.cts +1 -1
- package/dist/text-layout.d.ts +1 -1
- package/package.json +2 -2
- package/schemas/content-document.schema.json +35 -20
- package/schemas/document-tree.schema.json +22 -7
|
@@ -3,7 +3,7 @@ import { p as MathExpression } from "./math-BScHxedi.cjs";
|
|
|
3
3
|
import { n as Color } from "./color-AELCDH_b.cjs";
|
|
4
4
|
import { r as LayoutFrame, t as Box } from "./geometry-CvcjSwnA.cjs";
|
|
5
5
|
import { r as SourceResidue } from "./source-Bas5ol6f.cjs";
|
|
6
|
-
import { o as TextDirection } from "./style-
|
|
6
|
+
import { o as TextDirection } from "./style-D06NwxAJ.cjs";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region src/content.d.ts
|
|
9
9
|
type FusedNode<T> = T & {
|
|
@@ -205,12 +205,12 @@ declare const RunConstructExtentSchema: z.ZodObject<{
|
|
|
205
205
|
descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
206
206
|
kind: z.ZodLiteral<"contentControl">;
|
|
207
207
|
controlType: z.ZodEnum<{
|
|
208
|
+
date: "date";
|
|
208
209
|
richText: "richText";
|
|
209
210
|
plainText: "plainText";
|
|
210
211
|
checkbox: "checkbox";
|
|
211
212
|
dropDown: "dropDown";
|
|
212
213
|
comboBox: "comboBox";
|
|
213
|
-
date: "date";
|
|
214
214
|
picture: "picture";
|
|
215
215
|
repeatingSection: "repeatingSection";
|
|
216
216
|
button: "button";
|
|
@@ -588,12 +588,12 @@ declare const ContentParagraphSchema: z.ZodObject<{
|
|
|
588
588
|
descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
589
589
|
kind: z.ZodLiteral<"contentControl">;
|
|
590
590
|
controlType: z.ZodEnum<{
|
|
591
|
+
date: "date";
|
|
591
592
|
richText: "richText";
|
|
592
593
|
plainText: "plainText";
|
|
593
594
|
checkbox: "checkbox";
|
|
594
595
|
dropDown: "dropDown";
|
|
595
596
|
comboBox: "comboBox";
|
|
596
|
-
date: "date";
|
|
597
597
|
picture: "picture";
|
|
598
598
|
repeatingSection: "repeatingSection";
|
|
599
599
|
button: "button";
|
|
@@ -784,8 +784,8 @@ declare const ContentParagraphSchema: z.ZodObject<{
|
|
|
784
784
|
headingLevel: z.ZodOptional<z.ZodNumber>;
|
|
785
785
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
786
786
|
left: "left";
|
|
787
|
-
right: "right";
|
|
788
787
|
center: "center";
|
|
788
|
+
right: "right";
|
|
789
789
|
justify: "justify";
|
|
790
790
|
}>>;
|
|
791
791
|
list: z.ZodOptional<z.ZodObject<{
|
|
@@ -921,10 +921,10 @@ declare const ContentFloatOriginSchema: z.ZodEnum<{
|
|
|
921
921
|
type ContentFloatOrigin = z.infer<typeof ContentFloatOriginSchema>;
|
|
922
922
|
declare const ContentFloatAlignSchema: z.ZodEnum<{
|
|
923
923
|
left: "left";
|
|
924
|
+
center: "center";
|
|
924
925
|
right: "right";
|
|
925
926
|
top: "top";
|
|
926
927
|
bottom: "bottom";
|
|
927
|
-
center: "center";
|
|
928
928
|
inside: "inside";
|
|
929
929
|
outside: "outside";
|
|
930
930
|
}>;
|
|
@@ -964,10 +964,10 @@ declare const ContentFloatAxisSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
964
964
|
}>;
|
|
965
965
|
align: z.ZodEnum<{
|
|
966
966
|
left: "left";
|
|
967
|
+
center: "center";
|
|
967
968
|
right: "right";
|
|
968
969
|
top: "top";
|
|
969
970
|
bottom: "bottom";
|
|
970
|
-
center: "center";
|
|
971
971
|
inside: "inside";
|
|
972
972
|
outside: "outside";
|
|
973
973
|
}>;
|
|
@@ -1009,10 +1009,10 @@ declare const ContentFloatPositionSchema: z.ZodObject<{
|
|
|
1009
1009
|
}>;
|
|
1010
1010
|
align: z.ZodEnum<{
|
|
1011
1011
|
left: "left";
|
|
1012
|
+
center: "center";
|
|
1012
1013
|
right: "right";
|
|
1013
1014
|
top: "top";
|
|
1014
1015
|
bottom: "bottom";
|
|
1015
|
-
center: "center";
|
|
1016
1016
|
inside: "inside";
|
|
1017
1017
|
outside: "outside";
|
|
1018
1018
|
}>;
|
|
@@ -1052,10 +1052,10 @@ declare const ContentFloatPositionSchema: z.ZodObject<{
|
|
|
1052
1052
|
}>;
|
|
1053
1053
|
align: z.ZodEnum<{
|
|
1054
1054
|
left: "left";
|
|
1055
|
+
center: "center";
|
|
1055
1056
|
right: "right";
|
|
1056
1057
|
top: "top";
|
|
1057
1058
|
bottom: "bottom";
|
|
1058
|
-
center: "center";
|
|
1059
1059
|
inside: "inside";
|
|
1060
1060
|
outside: "outside";
|
|
1061
1061
|
}>;
|
|
@@ -1159,10 +1159,10 @@ declare const ContentImageBlockSchema: z.ZodObject<{
|
|
|
1159
1159
|
}>;
|
|
1160
1160
|
align: z.ZodEnum<{
|
|
1161
1161
|
left: "left";
|
|
1162
|
+
center: "center";
|
|
1162
1163
|
right: "right";
|
|
1163
1164
|
top: "top";
|
|
1164
1165
|
bottom: "bottom";
|
|
1165
|
-
center: "center";
|
|
1166
1166
|
inside: "inside";
|
|
1167
1167
|
outside: "outside";
|
|
1168
1168
|
}>;
|
|
@@ -1202,10 +1202,10 @@ declare const ContentImageBlockSchema: z.ZodObject<{
|
|
|
1202
1202
|
}>;
|
|
1203
1203
|
align: z.ZodEnum<{
|
|
1204
1204
|
left: "left";
|
|
1205
|
+
center: "center";
|
|
1205
1206
|
right: "right";
|
|
1206
1207
|
top: "top";
|
|
1207
1208
|
bottom: "bottom";
|
|
1208
|
-
center: "center";
|
|
1209
1209
|
inside: "inside";
|
|
1210
1210
|
outside: "outside";
|
|
1211
1211
|
}>;
|
|
@@ -1305,12 +1305,12 @@ declare const ContentConstructStartSchema: z.ZodObject<{
|
|
|
1305
1305
|
descriptor: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1306
1306
|
kind: z.ZodLiteral<"contentControl">;
|
|
1307
1307
|
controlType: z.ZodEnum<{
|
|
1308
|
+
date: "date";
|
|
1308
1309
|
richText: "richText";
|
|
1309
1310
|
plainText: "plainText";
|
|
1310
1311
|
checkbox: "checkbox";
|
|
1311
1312
|
dropDown: "dropDown";
|
|
1312
1313
|
comboBox: "comboBox";
|
|
1313
|
-
date: "date";
|
|
1314
1314
|
picture: "picture";
|
|
1315
1315
|
repeatingSection: "repeatingSection";
|
|
1316
1316
|
button: "button";
|
|
@@ -1518,10 +1518,14 @@ interface ContentTableRow {
|
|
|
1518
1518
|
direction?: TextDirection;
|
|
1519
1519
|
isHeader?: boolean;
|
|
1520
1520
|
}
|
|
1521
|
+
interface ContentTableColumn {
|
|
1522
|
+
widthPt: number;
|
|
1523
|
+
isHeader?: boolean;
|
|
1524
|
+
}
|
|
1521
1525
|
interface ContentTable {
|
|
1522
1526
|
kind: "table";
|
|
1523
1527
|
rows: ContentTableRow[];
|
|
1524
|
-
|
|
1528
|
+
columns: ContentTableColumn[];
|
|
1525
1529
|
sourcePath?: string;
|
|
1526
1530
|
source?: SourceResidue;
|
|
1527
1531
|
frames?: LayoutFrame[];
|
|
@@ -1589,12 +1593,12 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
1589
1593
|
}, z.core.$strip>>;
|
|
1590
1594
|
}, z.core.$strip>>;
|
|
1591
1595
|
objectKind: z.ZodEnum<{
|
|
1596
|
+
chart: "chart";
|
|
1592
1597
|
formula: "formula";
|
|
1593
1598
|
wordprocessing: "wordprocessing";
|
|
1594
1599
|
presentation: "presentation";
|
|
1595
1600
|
spreadsheet: "spreadsheet";
|
|
1596
1601
|
drawing: "drawing";
|
|
1597
|
-
chart: "chart";
|
|
1598
1602
|
}>;
|
|
1599
1603
|
document: z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1600
1604
|
sections: z.ZodArray<z.ZodObject<{
|
|
@@ -2293,8 +2297,8 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
2293
2297
|
}, z.core.$strip>>;
|
|
2294
2298
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
2295
2299
|
left: "left";
|
|
2296
|
-
right: "right";
|
|
2297
2300
|
center: "center";
|
|
2301
|
+
right: "right";
|
|
2298
2302
|
justify: "justify";
|
|
2299
2303
|
}>>;
|
|
2300
2304
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -2436,10 +2440,10 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
2436
2440
|
}>;
|
|
2437
2441
|
align: z.ZodEnum<{
|
|
2438
2442
|
left: "left";
|
|
2443
|
+
center: "center";
|
|
2439
2444
|
right: "right";
|
|
2440
2445
|
top: "top";
|
|
2441
2446
|
bottom: "bottom";
|
|
2442
|
-
center: "center";
|
|
2443
2447
|
inside: "inside";
|
|
2444
2448
|
outside: "outside";
|
|
2445
2449
|
}>;
|
|
@@ -2479,10 +2483,10 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
2479
2483
|
}>;
|
|
2480
2484
|
align: z.ZodEnum<{
|
|
2481
2485
|
left: "left";
|
|
2486
|
+
center: "center";
|
|
2482
2487
|
right: "right";
|
|
2483
2488
|
top: "top";
|
|
2484
2489
|
bottom: "bottom";
|
|
2485
|
-
center: "center";
|
|
2486
2490
|
inside: "inside";
|
|
2487
2491
|
outside: "outside";
|
|
2488
2492
|
}>;
|
|
@@ -2571,10 +2575,10 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
2571
2575
|
endColumn: z.ZodNumber;
|
|
2572
2576
|
}, z.core.$strip>>;
|
|
2573
2577
|
type: z.ZodEnum<{
|
|
2574
|
-
date: "date";
|
|
2575
|
-
custom: "custom";
|
|
2576
2578
|
decimal: "decimal";
|
|
2577
2579
|
list: "list";
|
|
2580
|
+
date: "date";
|
|
2581
|
+
custom: "custom";
|
|
2578
2582
|
time: "time";
|
|
2579
2583
|
whole: "whole";
|
|
2580
2584
|
textLength: "textLength";
|
|
@@ -4606,9 +4610,9 @@ declare const ContentTableCellSchema: z.ZodObject<{
|
|
|
4606
4610
|
}, z.core.$strip>>;
|
|
4607
4611
|
}, z.core.$strip>>;
|
|
4608
4612
|
verticalAlign: z.ZodOptional<z.ZodEnum<{
|
|
4613
|
+
center: "center";
|
|
4609
4614
|
top: "top";
|
|
4610
4615
|
bottom: "bottom";
|
|
4611
|
-
center: "center";
|
|
4612
4616
|
}>>;
|
|
4613
4617
|
formula: z.ZodOptional<z.ZodString>;
|
|
4614
4618
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
@@ -4833,9 +4837,9 @@ declare const ContentTableRowSchema: z.ZodObject<{
|
|
|
4833
4837
|
}, z.core.$strip>>;
|
|
4834
4838
|
}, z.core.$strip>>;
|
|
4835
4839
|
verticalAlign: z.ZodOptional<z.ZodEnum<{
|
|
4840
|
+
center: "center";
|
|
4836
4841
|
top: "top";
|
|
4837
4842
|
bottom: "bottom";
|
|
4838
|
-
center: "center";
|
|
4839
4843
|
}>>;
|
|
4840
4844
|
formula: z.ZodOptional<z.ZodString>;
|
|
4841
4845
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
@@ -4874,6 +4878,10 @@ declare const ContentTableRowSchema: z.ZodObject<{
|
|
|
4874
4878
|
}>>;
|
|
4875
4879
|
isHeader: z.ZodOptional<z.ZodBoolean>;
|
|
4876
4880
|
}, z.core.$strip>;
|
|
4881
|
+
declare const ContentTableColumnSchema: z.ZodObject<{
|
|
4882
|
+
widthPt: z.ZodNumber;
|
|
4883
|
+
isHeader: z.ZodOptional<z.ZodBoolean>;
|
|
4884
|
+
}, z.core.$strip>;
|
|
4877
4885
|
declare const ContentTableSchema: z.ZodObject<{
|
|
4878
4886
|
origin: z.ZodOptional<z.ZodEnum<{
|
|
4879
4887
|
chart: "chart";
|
|
@@ -5096,9 +5104,9 @@ declare const ContentTableSchema: z.ZodObject<{
|
|
|
5096
5104
|
}, z.core.$strip>>;
|
|
5097
5105
|
}, z.core.$strip>>;
|
|
5098
5106
|
verticalAlign: z.ZodOptional<z.ZodEnum<{
|
|
5107
|
+
center: "center";
|
|
5099
5108
|
top: "top";
|
|
5100
5109
|
bottom: "bottom";
|
|
5101
|
-
center: "center";
|
|
5102
5110
|
}>>;
|
|
5103
5111
|
formula: z.ZodOptional<z.ZodString>;
|
|
5104
5112
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
@@ -5137,7 +5145,10 @@ declare const ContentTableSchema: z.ZodObject<{
|
|
|
5137
5145
|
}>>;
|
|
5138
5146
|
isHeader: z.ZodOptional<z.ZodBoolean>;
|
|
5139
5147
|
}, z.core.$strip>>;
|
|
5140
|
-
|
|
5148
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
5149
|
+
widthPt: z.ZodNumber;
|
|
5150
|
+
isHeader: z.ZodOptional<z.ZodBoolean>;
|
|
5151
|
+
}, z.core.$strip>>;
|
|
5141
5152
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
5142
5153
|
source: z.ZodOptional<z.ZodObject<{
|
|
5143
5154
|
format: z.ZodEnum<{
|
|
@@ -5829,8 +5840,8 @@ declare const ContentSheetCellSchema: z.ZodObject<{
|
|
|
5829
5840
|
}, z.core.$strip>>;
|
|
5830
5841
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
5831
5842
|
left: "left";
|
|
5832
|
-
right: "right";
|
|
5833
5843
|
center: "center";
|
|
5844
|
+
right: "right";
|
|
5834
5845
|
justify: "justify";
|
|
5835
5846
|
}>>;
|
|
5836
5847
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -5962,10 +5973,10 @@ declare const SheetRuleOperatorSchema: z.ZodEnum<{
|
|
|
5962
5973
|
}>;
|
|
5963
5974
|
type SheetRuleOperator = z.infer<typeof SheetRuleOperatorSchema>;
|
|
5964
5975
|
declare const ContentSheetDataValidationTypeSchema: z.ZodEnum<{
|
|
5965
|
-
date: "date";
|
|
5966
|
-
custom: "custom";
|
|
5967
5976
|
decimal: "decimal";
|
|
5968
5977
|
list: "list";
|
|
5978
|
+
date: "date";
|
|
5979
|
+
custom: "custom";
|
|
5969
5980
|
time: "time";
|
|
5970
5981
|
whole: "whole";
|
|
5971
5982
|
textLength: "textLength";
|
|
@@ -5979,10 +5990,10 @@ declare const ContentSheetDataValidationSchema: z.ZodObject<{
|
|
|
5979
5990
|
endColumn: z.ZodNumber;
|
|
5980
5991
|
}, z.core.$strip>>;
|
|
5981
5992
|
type: z.ZodEnum<{
|
|
5982
|
-
date: "date";
|
|
5983
|
-
custom: "custom";
|
|
5984
5993
|
decimal: "decimal";
|
|
5985
5994
|
list: "list";
|
|
5995
|
+
date: "date";
|
|
5996
|
+
custom: "custom";
|
|
5986
5997
|
time: "time";
|
|
5987
5998
|
whole: "whole";
|
|
5988
5999
|
textLength: "textLength";
|
|
@@ -6734,10 +6745,10 @@ declare const ContentSheetImageSchema: z.ZodObject<{
|
|
|
6734
6745
|
}>;
|
|
6735
6746
|
align: z.ZodEnum<{
|
|
6736
6747
|
left: "left";
|
|
6748
|
+
center: "center";
|
|
6737
6749
|
right: "right";
|
|
6738
6750
|
top: "top";
|
|
6739
6751
|
bottom: "bottom";
|
|
6740
|
-
center: "center";
|
|
6741
6752
|
inside: "inside";
|
|
6742
6753
|
outside: "outside";
|
|
6743
6754
|
}>;
|
|
@@ -6777,10 +6788,10 @@ declare const ContentSheetImageSchema: z.ZodObject<{
|
|
|
6777
6788
|
}>;
|
|
6778
6789
|
align: z.ZodEnum<{
|
|
6779
6790
|
left: "left";
|
|
6791
|
+
center: "center";
|
|
6780
6792
|
right: "right";
|
|
6781
6793
|
top: "top";
|
|
6782
6794
|
bottom: "bottom";
|
|
6783
|
-
center: "center";
|
|
6784
6795
|
inside: "inside";
|
|
6785
6796
|
outside: "outside";
|
|
6786
6797
|
}>;
|
|
@@ -7171,8 +7182,8 @@ declare const ContentSheetSchema: z.ZodObject<{
|
|
|
7171
7182
|
}, z.core.$strip>>;
|
|
7172
7183
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
7173
7184
|
left: "left";
|
|
7174
|
-
right: "right";
|
|
7175
7185
|
center: "center";
|
|
7186
|
+
right: "right";
|
|
7176
7187
|
justify: "justify";
|
|
7177
7188
|
}>>;
|
|
7178
7189
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -7314,10 +7325,10 @@ declare const ContentSheetSchema: z.ZodObject<{
|
|
|
7314
7325
|
}>;
|
|
7315
7326
|
align: z.ZodEnum<{
|
|
7316
7327
|
left: "left";
|
|
7328
|
+
center: "center";
|
|
7317
7329
|
right: "right";
|
|
7318
7330
|
top: "top";
|
|
7319
7331
|
bottom: "bottom";
|
|
7320
|
-
center: "center";
|
|
7321
7332
|
inside: "inside";
|
|
7322
7333
|
outside: "outside";
|
|
7323
7334
|
}>;
|
|
@@ -7357,10 +7368,10 @@ declare const ContentSheetSchema: z.ZodObject<{
|
|
|
7357
7368
|
}>;
|
|
7358
7369
|
align: z.ZodEnum<{
|
|
7359
7370
|
left: "left";
|
|
7371
|
+
center: "center";
|
|
7360
7372
|
right: "right";
|
|
7361
7373
|
top: "top";
|
|
7362
7374
|
bottom: "bottom";
|
|
7363
|
-
center: "center";
|
|
7364
7375
|
inside: "inside";
|
|
7365
7376
|
outside: "outside";
|
|
7366
7377
|
}>;
|
|
@@ -7449,10 +7460,10 @@ declare const ContentSheetSchema: z.ZodObject<{
|
|
|
7449
7460
|
endColumn: z.ZodNumber;
|
|
7450
7461
|
}, z.core.$strip>>;
|
|
7451
7462
|
type: z.ZodEnum<{
|
|
7452
|
-
date: "date";
|
|
7453
|
-
custom: "custom";
|
|
7454
7463
|
decimal: "decimal";
|
|
7455
7464
|
list: "list";
|
|
7465
|
+
date: "date";
|
|
7466
|
+
custom: "custom";
|
|
7456
7467
|
time: "time";
|
|
7457
7468
|
whole: "whole";
|
|
7458
7469
|
textLength: "textLength";
|
|
@@ -10299,8 +10310,8 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
10299
10310
|
}, z.core.$strip>>;
|
|
10300
10311
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
10301
10312
|
left: "left";
|
|
10302
|
-
right: "right";
|
|
10303
10313
|
center: "center";
|
|
10314
|
+
right: "right";
|
|
10304
10315
|
justify: "justify";
|
|
10305
10316
|
}>>;
|
|
10306
10317
|
verticalAlignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -10442,10 +10453,10 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
10442
10453
|
}>;
|
|
10443
10454
|
align: z.ZodEnum<{
|
|
10444
10455
|
left: "left";
|
|
10456
|
+
center: "center";
|
|
10445
10457
|
right: "right";
|
|
10446
10458
|
top: "top";
|
|
10447
10459
|
bottom: "bottom";
|
|
10448
|
-
center: "center";
|
|
10449
10460
|
inside: "inside";
|
|
10450
10461
|
outside: "outside";
|
|
10451
10462
|
}>;
|
|
@@ -10485,10 +10496,10 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
10485
10496
|
}>;
|
|
10486
10497
|
align: z.ZodEnum<{
|
|
10487
10498
|
left: "left";
|
|
10499
|
+
center: "center";
|
|
10488
10500
|
right: "right";
|
|
10489
10501
|
top: "top";
|
|
10490
10502
|
bottom: "bottom";
|
|
10491
|
-
center: "center";
|
|
10492
10503
|
inside: "inside";
|
|
10493
10504
|
outside: "outside";
|
|
10494
10505
|
}>;
|
|
@@ -10577,10 +10588,10 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
10577
10588
|
endColumn: z.ZodNumber;
|
|
10578
10589
|
}, z.core.$strip>>;
|
|
10579
10590
|
type: z.ZodEnum<{
|
|
10580
|
-
date: "date";
|
|
10581
|
-
custom: "custom";
|
|
10582
10591
|
decimal: "decimal";
|
|
10583
10592
|
list: "list";
|
|
10593
|
+
date: "date";
|
|
10594
|
+
custom: "custom";
|
|
10584
10595
|
time: "time";
|
|
10585
10596
|
whole: "whole";
|
|
10586
10597
|
textLength: "textLength";
|
|
@@ -12153,4 +12164,4 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
12153
12164
|
}, z.core.$strip>], "kind">;
|
|
12154
12165
|
type ContentDocument = z.infer<typeof ContentDocumentSchema>;
|
|
12155
12166
|
//#endregion
|
|
12156
|
-
export { ContentHatchStyleSchema as $, ContentSheetRepeatRange as $t, ContentEmbeddedObjectKind as A,
|
|
12167
|
+
export { ContentHatchStyleSchema as $, ContentSheetRepeatRange as $t, ContentEmbeddedObjectKind as A, ImageFormat as An, ContentSheetCellComment as At, ContentFloatPosition as B, findRunConstructFault as Bn, ContentSheetConditionalFormatValueSchema as Bt, ContentDocument as C, ContentTranscriptSchema as Cn, ContentRunSchema as Ct, ContentEmbeddedObject as D, DecimalStringSchema as Dn, ContentShapeSchema as Dt, ContentDrawPageSchema as E, DecimalString as En, ContentShape as Et, ContentFloatAlignSchema as F, SheetRuleOperator as Fn, ContentSheetConditionalFormat as Ft, ContentFormulaSchema as G, resolveCellFillColor as Gn, ContentSheetImage as Gt, ContentFont as H, isContentConstructEnd as Hn, ContentSheetDataValidationSchema as Ht, ContentFloatAxis as I, SheetRuleOperatorSchema as In, ContentSheetConditionalFormatSchema as It, ContentGradientStyle as J, ContentSheetPrintRangeSchema as Jt, ContentGradientFill as K, unrecognizedFillKind as Kn, ContentSheetImageSchema as Kt, ContentFloatAxisSchema as L, clampHeadingLevel as Ln, ContentSheetConditionalFormatStyle as Lt, ContentFillPattern as M, RunConstructExtent as Mn, ContentSheetCellSchema as Mt, ContentFillPatternSchema as N, RunConstructExtentSchema as Nn, ContentSheetColumn as Nt, ContentEmbeddedObjectBlock as O, FusedNode as On, ContentSheet as Ot, ContentFloatAlign as P, RunConstructFault as Pn, ContentSheetColumnSchema as Pt, ContentHatchStyle as Q, ContentSheetRangeSchema as Qt, ContentFloatOrigin as R, contentDocumentSharedFields as Rn, ContentSheetConditionalFormatStyleSchema as Rt, ContentDefinedNameSchema as S, ContentTranscript as Sn, ContentRun as St, ContentDrawPage as T, ContentVectorSchema as Tn, ContentSectionSchema as Tt, ContentFontSchema as U, isContentConstructStart as Un, ContentSheetDataValidationType as Ut, ContentFloatPositionSchema as V, isContentBlock as Vn, ContentSheetDataValidation as Vt, ContentFormula as W, isRunConstructExtent as Wn, ContentSheetDataValidationTypeSchema as Wt, ContentHatchFill as X, ContentSheetPrintSettingsSchema as Xt, ContentGradientStyleSchema as Y, ContentSheetPrintSettings as Yt, ContentHatchFillSchema as Z, ContentSheetRange as Zt, ContentConstructEnd as _, ContentTableColumn as _n, ContentParagraphSchema as _t, ContentBlock as a, ContentSlideSchema as an, ContentInterpretationSchema as at, ContentConstructStartSchema as b, ContentTableRowSchema as bn, ContentPathSegment as bt, ContentBorderSchema as c, ContentStrokeDashSchema as cn, ContentOrigin as ct, ContentCellFill as d, ContentStrokeStyleSchema as dn, ContentPageBreakSchema as dt, ContentSheetRepeatRangeSchema as en, ContentImageBlock as et, ContentCellFillSchema as f, ContentSubpath as fn, ContentPageFurniture as ft, ContentCellValueSchema as g, ContentTableCellSchema as gn, ContentParagraphBordersSchema as gt, ContentCellValue as h, ContentTableCell as hn, ContentParagraphBorders as ht, ContentBitmapFillSchema as i, ContentSlide as in, ContentInterpretation as it, ContentEmbeddedObjectSchema as j, RUN_FONT_PROPERTY_SHAPE as jn, ContentSheetCellCommentSchema as jt, ContentEmbeddedObjectBlockSchema as k, IMAGE_FORMATS as kn, ContentSheetCell as kt, ContentCellBorders as l, ContentStrokeSchema as ln, ContentOriginSchema as lt, ContentCellPatternTypeSchema as m, ContentTable as mn, ContentParagraph as mt, ConstructMarkerImbalance as n, ContentSheetRowSchema as nn, ContentImageOriginal as nt, ContentBlockSchema as o, ContentStroke as on, ContentListMembership as ot, ContentCellPatternType as p, ContentSubpathSchema as pn, ContentPageFurnitureSchema as pt, ContentGradientFillSchema as q, ContentSheetPrintRange as qt, ContentBitmapFill as r, ContentSheetSchema as rn, ContentImageOriginalSchema as rt, ContentBorder as s, ContentStrokeDash as sn, ContentListMembershipSchema as st, CONTENT_ANNOTATION_FIELDS as t, ContentSheetRow as tn, ContentImageBlockSchema as tt, ContentCellBordersSchema as u, ContentStrokeStyle as un, ContentPageBreak as ut, ContentConstructEndSchema as v, ContentTableColumnSchema as vn, ContentPathPoint as vt, ContentDocumentSchema as w, ContentVector as wn, ContentSection as wt, ContentDefinedName as x, ContentTableSchema as xn, ContentPathSegmentSchema as xt, ContentConstructStart as y, ContentTableRow as yn, ContentPathPointSchema as yt, ContentFloatOriginSchema as z, findConstructMarkerImbalance as zn, ContentSheetConditionalFormatValue as zt };
|
package/dist/content.cjs
CHANGED
|
@@ -213,6 +213,9 @@ function isContentTableCell(value) {
|
|
|
213
213
|
function isContentTableRow(value) {
|
|
214
214
|
return isRecord(value) && Array.isArray(value.cells) && value.cells.every(isContentTableCell) && (value.heightPt === void 0 || typeof value.heightPt === "number") && (value.isHeader === void 0 || typeof value.isHeader === "boolean");
|
|
215
215
|
}
|
|
216
|
+
function isContentTableColumn(value) {
|
|
217
|
+
return isRecord(value) && typeof value.widthPt === "number" && (value.isHeader === void 0 || typeof value.isHeader === "boolean");
|
|
218
|
+
}
|
|
216
219
|
function isContentEmbeddedObjectKind(value) {
|
|
217
220
|
return value === "formula" || value === "wordprocessing" || value === "presentation" || value === "spreadsheet" || value === "drawing" || value === "chart";
|
|
218
221
|
}
|
|
@@ -239,7 +242,7 @@ function isContentBlock(value) {
|
|
|
239
242
|
if (kind === "paragraph") return Array.isArray(value.runs) && value.runs.every(isContentRun) && (value.constructs === void 0 || Array.isArray(value.constructs) && value.constructs.every(isRunConstructExtent));
|
|
240
243
|
if (kind === "image") return isImageFormat(value.format) && typeof value.base64 === "string" && typeof value.widthPt === "number" && typeof value.heightPt === "number";
|
|
241
244
|
if (kind === "pageBreak") return true;
|
|
242
|
-
if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.
|
|
245
|
+
if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.columns) && value.columns.every(isContentTableColumn);
|
|
243
246
|
if (kind === "embeddedObject") return isContentEmbeddedObject(value);
|
|
244
247
|
if (kind === "constructStart") return isContentConstructStart(value);
|
|
245
248
|
if (kind === "constructEnd") return true;
|
|
@@ -397,10 +400,14 @@ const ContentTableRowSchema = zod.z.object({
|
|
|
397
400
|
direction: require_style.TextDirectionSchema.optional(),
|
|
398
401
|
isHeader: zod.z.boolean().optional()
|
|
399
402
|
});
|
|
403
|
+
const ContentTableColumnSchema = zod.z.object({
|
|
404
|
+
widthPt: zod.z.number().nonnegative(),
|
|
405
|
+
isHeader: zod.z.boolean().optional()
|
|
406
|
+
});
|
|
400
407
|
const ContentTableSchema = zod.z.object({
|
|
401
408
|
kind: zod.z.literal("table"),
|
|
402
409
|
rows: zod.z.array(ContentTableRowSchema),
|
|
403
|
-
|
|
410
|
+
columns: zod.z.array(ContentTableColumnSchema),
|
|
404
411
|
sourcePath: zod.z.string().optional(),
|
|
405
412
|
source: require_source.SourceResidueSchema.optional(),
|
|
406
413
|
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
|
@@ -1006,6 +1013,7 @@ exports.ContentStrokeSchema = ContentStrokeSchema;
|
|
|
1006
1013
|
exports.ContentStrokeStyleSchema = ContentStrokeStyleSchema;
|
|
1007
1014
|
exports.ContentSubpathSchema = ContentSubpathSchema;
|
|
1008
1015
|
exports.ContentTableCellSchema = ContentTableCellSchema;
|
|
1016
|
+
exports.ContentTableColumnSchema = ContentTableColumnSchema;
|
|
1009
1017
|
exports.ContentTableRowSchema = ContentTableRowSchema;
|
|
1010
1018
|
exports.ContentTableSchema = ContentTableSchema;
|
|
1011
1019
|
exports.ContentTranscriptSchema = ContentTranscriptSchema;
|
package/dist/content.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as
|
|
2
|
-
export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
|
1
|
+
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as ImageFormat, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as findRunConstructFault, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentTranscriptSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as DecimalStringSchema, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as DecimalString, Et as ContentShape, F as ContentFloatAlignSchema, Fn as SheetRuleOperator, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gn as resolveCellFillColor, Gt as ContentSheetImage, H as ContentFont, Hn as isContentConstructEnd, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as SheetRuleOperatorSchema, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kn as unrecognizedFillKind, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as clampHeadingLevel, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructExtent, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as RunConstructExtentSchema, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as FusedNode, Ot as ContentSheet, P as ContentFloatAlign, Pn as RunConstructFault, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as contentDocumentSharedFields, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentTranscript, St as ContentRun, T as ContentDrawPage, Tn as ContentVectorSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as isContentConstructStart, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentBlock, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as isRunConstructExtent, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableColumn, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTableRowSchema, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RUN_FONT_PROPERTY_SHAPE, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as IMAGE_FORMATS, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableColumnSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as ContentVector, wt as ContentSection, x as ContentDefinedName, xn as ContentTableSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableRow, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as findConstructMarkerImbalance, zt as ContentSheetConditionalFormatValue } from "./content-lXpPw1nC.cjs";
|
|
2
|
+
export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableColumn, ContentTableColumnSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
package/dist/content.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as
|
|
2
|
-
export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
|
1
|
+
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as ImageFormat, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as findRunConstructFault, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentTranscriptSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as DecimalStringSchema, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as DecimalString, Et as ContentShape, F as ContentFloatAlignSchema, Fn as SheetRuleOperator, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gn as resolveCellFillColor, Gt as ContentSheetImage, H as ContentFont, Hn as isContentConstructEnd, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as SheetRuleOperatorSchema, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kn as unrecognizedFillKind, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as clampHeadingLevel, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructExtent, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as RunConstructExtentSchema, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as FusedNode, Ot as ContentSheet, P as ContentFloatAlign, Pn as RunConstructFault, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as contentDocumentSharedFields, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentTranscript, St as ContentRun, T as ContentDrawPage, Tn as ContentVectorSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as isContentConstructStart, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentBlock, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as isRunConstructExtent, Wt as ContentSheetDataValidationTypeSchema, X as ContentHatchFill, Xt as ContentSheetPrintSettingsSchema, Y as ContentGradientStyleSchema, Yt as ContentSheetPrintSettings, Z as ContentHatchFillSchema, Zt as ContentSheetRange, _ as ContentConstructEnd, _n as ContentTableColumn, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTableRowSchema, bt as ContentPathSegment, c as ContentBorderSchema, cn as ContentStrokeDashSchema, ct as ContentOrigin, d as ContentCellFill, dn as ContentStrokeStyleSchema, dt as ContentPageBreakSchema, en as ContentSheetRepeatRangeSchema, et as ContentImageBlock, f as ContentCellFillSchema, fn as ContentSubpath, ft as ContentPageFurniture, g as ContentCellValueSchema, gn as ContentTableCellSchema, gt as ContentParagraphBordersSchema, h as ContentCellValue, hn as ContentTableCell, ht as ContentParagraphBorders, i as ContentBitmapFillSchema, in as ContentSlide, it as ContentInterpretation, j as ContentEmbeddedObjectSchema, jn as RUN_FONT_PROPERTY_SHAPE, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as IMAGE_FORMATS, kt as ContentSheetCell, l as ContentCellBorders, ln as ContentStrokeSchema, lt as ContentOriginSchema, m as ContentCellPatternTypeSchema, mn as ContentTable, mt as ContentParagraph, n as ConstructMarkerImbalance, nn as ContentSheetRowSchema, nt as ContentImageOriginal, o as ContentBlockSchema, on as ContentStroke, ot as ContentListMembership, p as ContentCellPatternType, pn as ContentSubpathSchema, pt as ContentPageFurnitureSchema, q as ContentGradientFillSchema, qt as ContentSheetPrintRange, r as ContentBitmapFill, rn as ContentSheetSchema, rt as ContentImageOriginalSchema, s as ContentBorder, sn as ContentStrokeDash, st as ContentListMembershipSchema, t as CONTENT_ANNOTATION_FIELDS, tn as ContentSheetRow, tt as ContentImageBlockSchema, u as ContentCellBordersSchema, un as ContentStrokeStyle, ut as ContentPageBreak, v as ContentConstructEndSchema, vn as ContentTableColumnSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as ContentVector, wt as ContentSection, x as ContentDefinedName, xn as ContentTableSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableRow, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as findConstructMarkerImbalance, zt as ContentSheetConditionalFormatValue } from "./content-BzGOsekw.js";
|
|
2
|
+
export { CONTENT_ANNOTATION_FIELDS, ConstructMarkerImbalance, ContentBitmapFill, ContentBitmapFillSchema, ContentBlock, ContentBlockSchema, ContentBorder, ContentBorderSchema, ContentCellBorders, ContentCellBordersSchema, ContentCellFill, ContentCellFillSchema, ContentCellPatternType, ContentCellPatternTypeSchema, ContentCellValue, ContentCellValueSchema, ContentConstructEnd, ContentConstructEndSchema, ContentConstructStart, ContentConstructStartSchema, ContentDefinedName, ContentDefinedNameSchema, ContentDocument, ContentDocumentSchema, ContentDrawPage, ContentDrawPageSchema, ContentEmbeddedObject, ContentEmbeddedObjectBlock, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectKind, ContentEmbeddedObjectSchema, ContentFillPattern, ContentFillPatternSchema, ContentFloatAlign, ContentFloatAlignSchema, ContentFloatAxis, ContentFloatAxisSchema, ContentFloatOrigin, ContentFloatOriginSchema, ContentFloatPosition, ContentFloatPositionSchema, ContentFont, ContentFontSchema, ContentFormula, ContentFormulaSchema, ContentGradientFill, ContentGradientFillSchema, ContentGradientStyle, ContentGradientStyleSchema, ContentHatchFill, ContentHatchFillSchema, ContentHatchStyle, ContentHatchStyleSchema, ContentImageBlock, ContentImageBlockSchema, ContentImageOriginal, ContentImageOriginalSchema, ContentInterpretation, ContentInterpretationSchema, ContentListMembership, ContentListMembershipSchema, ContentOrigin, ContentOriginSchema, ContentPageBreak, ContentPageBreakSchema, ContentPageFurniture, ContentPageFurnitureSchema, ContentParagraph, ContentParagraphBorders, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPoint, ContentPathPointSchema, ContentPathSegment, ContentPathSegmentSchema, ContentRun, ContentRunSchema, ContentSection, ContentSectionSchema, ContentShape, ContentShapeSchema, ContentSheet, ContentSheetCell, ContentSheetCellComment, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumn, ContentSheetColumnSchema, ContentSheetConditionalFormat, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyle, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValue, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidation, ContentSheetDataValidationSchema, ContentSheetDataValidationType, ContentSheetDataValidationTypeSchema, ContentSheetImage, ContentSheetImageSchema, ContentSheetPrintRange, ContentSheetPrintRangeSchema, ContentSheetPrintSettings, ContentSheetPrintSettingsSchema, ContentSheetRange, ContentSheetRangeSchema, ContentSheetRepeatRange, ContentSheetRepeatRangeSchema, ContentSheetRow, ContentSheetRowSchema, ContentSheetSchema, ContentSlide, ContentSlideSchema, ContentStroke, ContentStrokeDash, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyle, ContentStrokeStyleSchema, ContentSubpath, ContentSubpathSchema, ContentTable, ContentTableCell, ContentTableCellSchema, ContentTableColumn, ContentTableColumnSchema, ContentTableRow, ContentTableRowSchema, ContentTableSchema, ContentTranscript, ContentTranscriptSchema, ContentVector, ContentVectorSchema, DecimalString, DecimalStringSchema, FusedNode, IMAGE_FORMATS, ImageFormat, RUN_FONT_PROPERTY_SHAPE, RunConstructExtent, RunConstructExtentSchema, RunConstructFault, SheetRuleOperator, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
package/dist/content.js
CHANGED
|
@@ -212,6 +212,9 @@ function isContentTableCell(value) {
|
|
|
212
212
|
function isContentTableRow(value) {
|
|
213
213
|
return isRecord(value) && Array.isArray(value.cells) && value.cells.every(isContentTableCell) && (value.heightPt === void 0 || typeof value.heightPt === "number") && (value.isHeader === void 0 || typeof value.isHeader === "boolean");
|
|
214
214
|
}
|
|
215
|
+
function isContentTableColumn(value) {
|
|
216
|
+
return isRecord(value) && typeof value.widthPt === "number" && (value.isHeader === void 0 || typeof value.isHeader === "boolean");
|
|
217
|
+
}
|
|
215
218
|
function isContentEmbeddedObjectKind(value) {
|
|
216
219
|
return value === "formula" || value === "wordprocessing" || value === "presentation" || value === "spreadsheet" || value === "drawing" || value === "chart";
|
|
217
220
|
}
|
|
@@ -238,7 +241,7 @@ function isContentBlock(value) {
|
|
|
238
241
|
if (kind === "paragraph") return Array.isArray(value.runs) && value.runs.every(isContentRun) && (value.constructs === void 0 || Array.isArray(value.constructs) && value.constructs.every(isRunConstructExtent));
|
|
239
242
|
if (kind === "image") return isImageFormat(value.format) && typeof value.base64 === "string" && typeof value.widthPt === "number" && typeof value.heightPt === "number";
|
|
240
243
|
if (kind === "pageBreak") return true;
|
|
241
|
-
if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.
|
|
244
|
+
if (kind === "table") return Array.isArray(value.rows) && value.rows.every(isContentTableRow) && Array.isArray(value.columns) && value.columns.every(isContentTableColumn);
|
|
242
245
|
if (kind === "embeddedObject") return isContentEmbeddedObject(value);
|
|
243
246
|
if (kind === "constructStart") return isContentConstructStart(value);
|
|
244
247
|
if (kind === "constructEnd") return true;
|
|
@@ -396,10 +399,14 @@ const ContentTableRowSchema = z.object({
|
|
|
396
399
|
direction: TextDirectionSchema.optional(),
|
|
397
400
|
isHeader: z.boolean().optional()
|
|
398
401
|
});
|
|
402
|
+
const ContentTableColumnSchema = z.object({
|
|
403
|
+
widthPt: z.number().nonnegative(),
|
|
404
|
+
isHeader: z.boolean().optional()
|
|
405
|
+
});
|
|
399
406
|
const ContentTableSchema = z.object({
|
|
400
407
|
kind: z.literal("table"),
|
|
401
408
|
rows: z.array(ContentTableRowSchema),
|
|
402
|
-
|
|
409
|
+
columns: z.array(ContentTableColumnSchema),
|
|
403
410
|
sourcePath: z.string().optional(),
|
|
404
411
|
source: SourceResidueSchema.optional(),
|
|
405
412
|
frames: z.array(LayoutFrameSchema).optional(),
|
|
@@ -944,4 +951,4 @@ const ContentDocumentSchema = z.discriminatedUnion("kind", [
|
|
|
944
951
|
})
|
|
945
952
|
]);
|
|
946
953
|
//#endregion
|
|
947
|
-
export { CONTENT_ANNOTATION_FIELDS, ContentBitmapFillSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellFillSchema, ContentCellPatternTypeSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentDefinedNameSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFillPatternSchema, ContentFloatAlignSchema, ContentFloatAxisSchema, ContentFloatOriginSchema, ContentFloatPositionSchema, ContentFontSchema, ContentFormulaSchema, ContentGradientFillSchema, ContentGradientStyleSchema, ContentHatchFillSchema, ContentHatchStyleSchema, ContentImageBlockSchema, ContentImageOriginalSchema, ContentInterpretationSchema, ContentListMembershipSchema, ContentOriginSchema, ContentPageBreakSchema, ContentPageFurnitureSchema, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidationSchema, ContentSheetDataValidationTypeSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRangeSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableRowSchema, ContentTableSchema, ContentTranscriptSchema, ContentVectorSchema, DecimalStringSchema, IMAGE_FORMATS, RUN_FONT_PROPERTY_SHAPE, RunConstructExtentSchema, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
|
954
|
+
export { CONTENT_ANNOTATION_FIELDS, ContentBitmapFillSchema, ContentBlockSchema, ContentBorderSchema, ContentCellBordersSchema, ContentCellFillSchema, ContentCellPatternTypeSchema, ContentCellValueSchema, ContentConstructEndSchema, ContentConstructStartSchema, ContentDefinedNameSchema, ContentDocumentSchema, ContentDrawPageSchema, ContentEmbeddedObjectBlockSchema, ContentEmbeddedObjectSchema, ContentFillPatternSchema, ContentFloatAlignSchema, ContentFloatAxisSchema, ContentFloatOriginSchema, ContentFloatPositionSchema, ContentFontSchema, ContentFormulaSchema, ContentGradientFillSchema, ContentGradientStyleSchema, ContentHatchFillSchema, ContentHatchStyleSchema, ContentImageBlockSchema, ContentImageOriginalSchema, ContentInterpretationSchema, ContentListMembershipSchema, ContentOriginSchema, ContentPageBreakSchema, ContentPageFurnitureSchema, ContentParagraphBordersSchema, ContentParagraphSchema, ContentPathPointSchema, ContentPathSegmentSchema, ContentRunSchema, ContentSectionSchema, ContentShapeSchema, ContentSheetCellCommentSchema, ContentSheetCellSchema, ContentSheetColumnSchema, ContentSheetConditionalFormatSchema, ContentSheetConditionalFormatStyleSchema, ContentSheetConditionalFormatValueSchema, ContentSheetDataValidationSchema, ContentSheetDataValidationTypeSchema, ContentSheetImageSchema, ContentSheetPrintRangeSchema, ContentSheetPrintSettingsSchema, ContentSheetRangeSchema, ContentSheetRepeatRangeSchema, ContentSheetRowSchema, ContentSheetSchema, ContentSlideSchema, ContentStrokeDashSchema, ContentStrokeSchema, ContentStrokeStyleSchema, ContentSubpathSchema, ContentTableCellSchema, ContentTableColumnSchema, ContentTableRowSchema, ContentTableSchema, ContentTranscriptSchema, ContentVectorSchema, DecimalStringSchema, IMAGE_FORMATS, RUN_FONT_PROPERTY_SHAPE, RunConstructExtentSchema, SheetRuleOperatorSchema, clampHeadingLevel, contentDocumentSharedFields, findConstructMarkerImbalance, findRunConstructFault, isContentBlock, isContentConstructEnd, isContentConstructStart, isRunConstructExtent, resolveCellFillColor, unrecognizedFillKind };
|
package/dist/decompose.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-
|
|
2
|
-
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-
|
|
1
|
+
import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-lXpPw1nC.cjs";
|
|
2
|
+
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-CWW0Evpn.cjs";
|
|
3
3
|
//#region src/decompose.d.ts
|
|
4
4
|
declare function isHeadingParagraph(paragraph: ContentParagraph): paragraph is HeadingParagraph;
|
|
5
5
|
declare function isListParagraph(paragraph: ContentParagraph): paragraph is ListParagraph;
|
package/dist/decompose.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-
|
|
2
|
-
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-
|
|
1
|
+
import { C as ContentDocument, Et as ContentShape, Ot as ContentSheet, T as ContentDrawPage, W as ContentFormula, in as ContentSlide, mt as ContentParagraph, n as ConstructMarkerImbalance, wt as ContentSection } from "./content-BzGOsekw.js";
|
|
2
|
+
import { D as ShapeGroupNode, I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, c as HeadingParagraph, i as DrawPageGroupNode, p as ListParagraph } from "./package-node-DosdPQ6x.js";
|
|
3
3
|
//#region src/decompose.d.ts
|
|
4
4
|
declare function isHeadingParagraph(paragraph: ContentParagraph): paragraph is HeadingParagraph;
|
|
5
5
|
declare function isListParagraph(paragraph: ContentParagraph): paragraph is ListParagraph;
|