document-content-model 7.11.0 → 7.11.2
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/dist/a1.cjs +1 -1
- package/dist/a1.js +1 -1
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/color.cjs +3 -5
- package/dist/color.js +3 -5
- package/dist/{construct-GVdTKrE7.d.cts → construct-C4XiF8OW.d.cts} +3 -3
- package/dist/{construct-GVdTKrE7.d.ts → construct-C4XiF8OW.d.ts} +3 -3
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/{content-DWSflkUJ.d.cts → content-BrxGwe8j.d.cts} +31 -31
- package/dist/{content-C5CsxSt1.d.ts → content-D-j5QBCq.d.ts} +31 -31
- package/dist/content-json-schema-defs.cjs +1 -3
- package/dist/content-json-schema-defs.js +1 -3
- package/dist/content.cjs +1 -1
- package/dist/content.d.cts +1 -1
- package/dist/content.d.ts +1 -1
- package/dist/content.js +1 -1
- package/dist/decompose.d.cts +2 -2
- package/dist/decompose.d.ts +2 -2
- package/dist/definitions.d.cts +1 -1
- package/dist/definitions.d.ts +1 -1
- package/dist/factor-styles.cjs +17 -61
- package/dist/factor-styles.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/factor-styles.js +17 -61
- package/dist/flatten.d.cts +1 -1
- package/dist/flatten.d.ts +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/{package-node-5OqgGCtu.d.ts → package-node-CHX4Z0RM.d.ts} +20 -20
- package/dist/{package-node-DK-b0h6V.d.cts → package-node-DH0p0dyl.d.cts} +20 -20
- package/dist/package-node.cjs +0 -1
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package-node.js +0 -1
- package/dist/package.d.cts +1 -1
- package/dist/package.d.ts +1 -1
- 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/package.json +2 -2
- package/schemas/content-document.schema.json +16 -16
- package/schemas/document-tree.schema.json +3 -3
|
@@ -274,10 +274,10 @@ declare const RunConstructExtentSchema: z.ZodObject<{
|
|
|
274
274
|
}, z.core.$strict>, z.ZodObject<{
|
|
275
275
|
kind: z.ZodLiteral<"anchor">;
|
|
276
276
|
anchorType: z.ZodEnum<{
|
|
277
|
+
comment: "comment";
|
|
277
278
|
bookmark: "bookmark";
|
|
278
279
|
footnote: "footnote";
|
|
279
280
|
endnote: "endnote";
|
|
280
|
-
comment: "comment";
|
|
281
281
|
}>;
|
|
282
282
|
name: z.ZodString;
|
|
283
283
|
definition: z.ZodOptional<z.ZodString>;
|
|
@@ -657,10 +657,10 @@ declare const ContentParagraphSchema: z.ZodObject<{
|
|
|
657
657
|
}, z.core.$strict>, z.ZodObject<{
|
|
658
658
|
kind: z.ZodLiteral<"anchor">;
|
|
659
659
|
anchorType: z.ZodEnum<{
|
|
660
|
+
comment: "comment";
|
|
660
661
|
bookmark: "bookmark";
|
|
661
662
|
footnote: "footnote";
|
|
662
663
|
endnote: "endnote";
|
|
663
|
-
comment: "comment";
|
|
664
664
|
}>;
|
|
665
665
|
name: z.ZodString;
|
|
666
666
|
definition: z.ZodOptional<z.ZodString>;
|
|
@@ -1374,10 +1374,10 @@ declare const ContentConstructStartSchema: z.ZodObject<{
|
|
|
1374
1374
|
}, z.core.$strict>, z.ZodObject<{
|
|
1375
1375
|
kind: z.ZodLiteral<"anchor">;
|
|
1376
1376
|
anchorType: z.ZodEnum<{
|
|
1377
|
+
comment: "comment";
|
|
1377
1378
|
bookmark: "bookmark";
|
|
1378
1379
|
footnote: "footnote";
|
|
1379
1380
|
endnote: "endnote";
|
|
1380
|
-
comment: "comment";
|
|
1381
1381
|
}>;
|
|
1382
1382
|
name: z.ZodString;
|
|
1383
1383
|
definition: z.ZodOptional<z.ZodString>;
|
|
@@ -1588,11 +1588,11 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
1588
1588
|
}, z.core.$strip>>;
|
|
1589
1589
|
}, z.core.$strip>>;
|
|
1590
1590
|
objectKind: z.ZodEnum<{
|
|
1591
|
-
formula: "formula";
|
|
1592
1591
|
wordprocessing: "wordprocessing";
|
|
1593
1592
|
presentation: "presentation";
|
|
1594
1593
|
spreadsheet: "spreadsheet";
|
|
1595
1594
|
drawing: "drawing";
|
|
1595
|
+
formula: "formula";
|
|
1596
1596
|
chart: "chart";
|
|
1597
1597
|
}>;
|
|
1598
1598
|
document: z.ZodLazy<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -2570,11 +2570,11 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
2570
2570
|
endColumn: z.ZodNumber;
|
|
2571
2571
|
}, z.core.$strip>>;
|
|
2572
2572
|
type: z.ZodEnum<{
|
|
2573
|
-
decimal: "decimal";
|
|
2574
|
-
list: "list";
|
|
2575
2573
|
date: "date";
|
|
2576
2574
|
custom: "custom";
|
|
2577
2575
|
time: "time";
|
|
2576
|
+
decimal: "decimal";
|
|
2577
|
+
list: "list";
|
|
2578
2578
|
whole: "whole";
|
|
2579
2579
|
textLength: "textLength";
|
|
2580
2580
|
}>;
|
|
@@ -3046,8 +3046,8 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
3046
3046
|
value: z.ZodObject<{
|
|
3047
3047
|
type: z.ZodEnum<{
|
|
3048
3048
|
formula: "formula";
|
|
3049
|
-
percent: "percent";
|
|
3050
3049
|
num: "num";
|
|
3050
|
+
percent: "percent";
|
|
3051
3051
|
max: "max";
|
|
3052
3052
|
min: "min";
|
|
3053
3053
|
percentile: "percentile";
|
|
@@ -3093,8 +3093,8 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
3093
3093
|
min: z.ZodObject<{
|
|
3094
3094
|
type: z.ZodEnum<{
|
|
3095
3095
|
formula: "formula";
|
|
3096
|
-
percent: "percent";
|
|
3097
3096
|
num: "num";
|
|
3097
|
+
percent: "percent";
|
|
3098
3098
|
max: "max";
|
|
3099
3099
|
min: "min";
|
|
3100
3100
|
percentile: "percentile";
|
|
@@ -3104,8 +3104,8 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
3104
3104
|
max: z.ZodObject<{
|
|
3105
3105
|
type: z.ZodEnum<{
|
|
3106
3106
|
formula: "formula";
|
|
3107
|
-
percent: "percent";
|
|
3108
3107
|
num: "num";
|
|
3108
|
+
percent: "percent";
|
|
3109
3109
|
max: "max";
|
|
3110
3110
|
min: "min";
|
|
3111
3111
|
percentile: "percentile";
|
|
@@ -3152,8 +3152,8 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
3152
3152
|
thresholds: z.ZodArray<z.ZodObject<{
|
|
3153
3153
|
type: z.ZodEnum<{
|
|
3154
3154
|
formula: "formula";
|
|
3155
|
-
percent: "percent";
|
|
3156
3155
|
num: "num";
|
|
3156
|
+
percent: "percent";
|
|
3157
3157
|
max: "max";
|
|
3158
3158
|
min: "min";
|
|
3159
3159
|
percentile: "percentile";
|
|
@@ -5959,11 +5959,11 @@ declare const SheetRuleOperatorSchema: z.ZodEnum<{
|
|
|
5959
5959
|
}>;
|
|
5960
5960
|
type SheetRuleOperator = z.infer<typeof SheetRuleOperatorSchema>;
|
|
5961
5961
|
declare const ContentSheetDataValidationTypeSchema: z.ZodEnum<{
|
|
5962
|
-
decimal: "decimal";
|
|
5963
|
-
list: "list";
|
|
5964
5962
|
date: "date";
|
|
5965
5963
|
custom: "custom";
|
|
5966
5964
|
time: "time";
|
|
5965
|
+
decimal: "decimal";
|
|
5966
|
+
list: "list";
|
|
5967
5967
|
whole: "whole";
|
|
5968
5968
|
textLength: "textLength";
|
|
5969
5969
|
}>;
|
|
@@ -5976,11 +5976,11 @@ declare const ContentSheetDataValidationSchema: z.ZodObject<{
|
|
|
5976
5976
|
endColumn: z.ZodNumber;
|
|
5977
5977
|
}, z.core.$strip>>;
|
|
5978
5978
|
type: z.ZodEnum<{
|
|
5979
|
-
decimal: "decimal";
|
|
5980
|
-
list: "list";
|
|
5981
5979
|
date: "date";
|
|
5982
5980
|
custom: "custom";
|
|
5983
5981
|
time: "time";
|
|
5982
|
+
decimal: "decimal";
|
|
5983
|
+
list: "list";
|
|
5984
5984
|
whole: "whole";
|
|
5985
5985
|
textLength: "textLength";
|
|
5986
5986
|
}>;
|
|
@@ -6066,8 +6066,8 @@ type ContentSheetConditionalFormatStyle = z.infer<typeof ContentSheetConditional
|
|
|
6066
6066
|
declare const ContentSheetConditionalFormatValueSchema: z.ZodObject<{
|
|
6067
6067
|
type: z.ZodEnum<{
|
|
6068
6068
|
formula: "formula";
|
|
6069
|
-
percent: "percent";
|
|
6070
6069
|
num: "num";
|
|
6070
|
+
percent: "percent";
|
|
6071
6071
|
max: "max";
|
|
6072
6072
|
min: "min";
|
|
6073
6073
|
percentile: "percentile";
|
|
@@ -6498,8 +6498,8 @@ declare const ContentSheetConditionalFormatSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
6498
6498
|
value: z.ZodObject<{
|
|
6499
6499
|
type: z.ZodEnum<{
|
|
6500
6500
|
formula: "formula";
|
|
6501
|
-
percent: "percent";
|
|
6502
6501
|
num: "num";
|
|
6502
|
+
percent: "percent";
|
|
6503
6503
|
max: "max";
|
|
6504
6504
|
min: "min";
|
|
6505
6505
|
percentile: "percentile";
|
|
@@ -6545,8 +6545,8 @@ declare const ContentSheetConditionalFormatSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
6545
6545
|
min: z.ZodObject<{
|
|
6546
6546
|
type: z.ZodEnum<{
|
|
6547
6547
|
formula: "formula";
|
|
6548
|
-
percent: "percent";
|
|
6549
6548
|
num: "num";
|
|
6549
|
+
percent: "percent";
|
|
6550
6550
|
max: "max";
|
|
6551
6551
|
min: "min";
|
|
6552
6552
|
percentile: "percentile";
|
|
@@ -6556,8 +6556,8 @@ declare const ContentSheetConditionalFormatSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
6556
6556
|
max: z.ZodObject<{
|
|
6557
6557
|
type: z.ZodEnum<{
|
|
6558
6558
|
formula: "formula";
|
|
6559
|
-
percent: "percent";
|
|
6560
6559
|
num: "num";
|
|
6560
|
+
percent: "percent";
|
|
6561
6561
|
max: "max";
|
|
6562
6562
|
min: "min";
|
|
6563
6563
|
percentile: "percentile";
|
|
@@ -6604,8 +6604,8 @@ declare const ContentSheetConditionalFormatSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
6604
6604
|
thresholds: z.ZodArray<z.ZodObject<{
|
|
6605
6605
|
type: z.ZodEnum<{
|
|
6606
6606
|
formula: "formula";
|
|
6607
|
-
percent: "percent";
|
|
6608
6607
|
num: "num";
|
|
6608
|
+
percent: "percent";
|
|
6609
6609
|
max: "max";
|
|
6610
6610
|
min: "min";
|
|
6611
6611
|
percentile: "percentile";
|
|
@@ -7446,11 +7446,11 @@ declare const ContentSheetSchema: z.ZodObject<{
|
|
|
7446
7446
|
endColumn: z.ZodNumber;
|
|
7447
7447
|
}, z.core.$strip>>;
|
|
7448
7448
|
type: z.ZodEnum<{
|
|
7449
|
-
decimal: "decimal";
|
|
7450
|
-
list: "list";
|
|
7451
7449
|
date: "date";
|
|
7452
7450
|
custom: "custom";
|
|
7453
7451
|
time: "time";
|
|
7452
|
+
decimal: "decimal";
|
|
7453
|
+
list: "list";
|
|
7454
7454
|
whole: "whole";
|
|
7455
7455
|
textLength: "textLength";
|
|
7456
7456
|
}>;
|
|
@@ -7922,8 +7922,8 @@ declare const ContentSheetSchema: z.ZodObject<{
|
|
|
7922
7922
|
value: z.ZodObject<{
|
|
7923
7923
|
type: z.ZodEnum<{
|
|
7924
7924
|
formula: "formula";
|
|
7925
|
-
percent: "percent";
|
|
7926
7925
|
num: "num";
|
|
7926
|
+
percent: "percent";
|
|
7927
7927
|
max: "max";
|
|
7928
7928
|
min: "min";
|
|
7929
7929
|
percentile: "percentile";
|
|
@@ -7969,8 +7969,8 @@ declare const ContentSheetSchema: z.ZodObject<{
|
|
|
7969
7969
|
min: z.ZodObject<{
|
|
7970
7970
|
type: z.ZodEnum<{
|
|
7971
7971
|
formula: "formula";
|
|
7972
|
-
percent: "percent";
|
|
7973
7972
|
num: "num";
|
|
7973
|
+
percent: "percent";
|
|
7974
7974
|
max: "max";
|
|
7975
7975
|
min: "min";
|
|
7976
7976
|
percentile: "percentile";
|
|
@@ -7980,8 +7980,8 @@ declare const ContentSheetSchema: z.ZodObject<{
|
|
|
7980
7980
|
max: z.ZodObject<{
|
|
7981
7981
|
type: z.ZodEnum<{
|
|
7982
7982
|
formula: "formula";
|
|
7983
|
-
percent: "percent";
|
|
7984
7983
|
num: "num";
|
|
7984
|
+
percent: "percent";
|
|
7985
7985
|
max: "max";
|
|
7986
7986
|
min: "min";
|
|
7987
7987
|
percentile: "percentile";
|
|
@@ -8028,8 +8028,8 @@ declare const ContentSheetSchema: z.ZodObject<{
|
|
|
8028
8028
|
thresholds: z.ZodArray<z.ZodObject<{
|
|
8029
8029
|
type: z.ZodEnum<{
|
|
8030
8030
|
formula: "formula";
|
|
8031
|
-
percent: "percent";
|
|
8032
8031
|
num: "num";
|
|
8032
|
+
percent: "percent";
|
|
8033
8033
|
max: "max";
|
|
8034
8034
|
min: "min";
|
|
8035
8035
|
percentile: "percentile";
|
|
@@ -10574,11 +10574,11 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
10574
10574
|
endColumn: z.ZodNumber;
|
|
10575
10575
|
}, z.core.$strip>>;
|
|
10576
10576
|
type: z.ZodEnum<{
|
|
10577
|
-
decimal: "decimal";
|
|
10578
|
-
list: "list";
|
|
10579
10577
|
date: "date";
|
|
10580
10578
|
custom: "custom";
|
|
10581
10579
|
time: "time";
|
|
10580
|
+
decimal: "decimal";
|
|
10581
|
+
list: "list";
|
|
10582
10582
|
whole: "whole";
|
|
10583
10583
|
textLength: "textLength";
|
|
10584
10584
|
}>;
|
|
@@ -11050,8 +11050,8 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
11050
11050
|
value: z.ZodObject<{
|
|
11051
11051
|
type: z.ZodEnum<{
|
|
11052
11052
|
formula: "formula";
|
|
11053
|
-
percent: "percent";
|
|
11054
11053
|
num: "num";
|
|
11054
|
+
percent: "percent";
|
|
11055
11055
|
max: "max";
|
|
11056
11056
|
min: "min";
|
|
11057
11057
|
percentile: "percentile";
|
|
@@ -11097,8 +11097,8 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
11097
11097
|
min: z.ZodObject<{
|
|
11098
11098
|
type: z.ZodEnum<{
|
|
11099
11099
|
formula: "formula";
|
|
11100
|
-
percent: "percent";
|
|
11101
11100
|
num: "num";
|
|
11101
|
+
percent: "percent";
|
|
11102
11102
|
max: "max";
|
|
11103
11103
|
min: "min";
|
|
11104
11104
|
percentile: "percentile";
|
|
@@ -11108,8 +11108,8 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
11108
11108
|
max: z.ZodObject<{
|
|
11109
11109
|
type: z.ZodEnum<{
|
|
11110
11110
|
formula: "formula";
|
|
11111
|
-
percent: "percent";
|
|
11112
11111
|
num: "num";
|
|
11112
|
+
percent: "percent";
|
|
11113
11113
|
max: "max";
|
|
11114
11114
|
min: "min";
|
|
11115
11115
|
percentile: "percentile";
|
|
@@ -11156,8 +11156,8 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
11156
11156
|
thresholds: z.ZodArray<z.ZodObject<{
|
|
11157
11157
|
type: z.ZodEnum<{
|
|
11158
11158
|
formula: "formula";
|
|
11159
|
-
percent: "percent";
|
|
11160
11159
|
num: "num";
|
|
11160
|
+
percent: "percent";
|
|
11161
11161
|
max: "max";
|
|
11162
11162
|
min: "min";
|
|
11163
11163
|
percentile: "percentile";
|
|
@@ -27,9 +27,7 @@ function getMathMlJsonSchemas() {
|
|
|
27
27
|
return cachedMathMlJsonSchemas;
|
|
28
28
|
}
|
|
29
29
|
function mathMlDef(id) {
|
|
30
|
-
const
|
|
31
|
-
if (generated === void 0) throw new Error(`z.toJSONSchema() produced no schema for registered id "${id}"`);
|
|
32
|
-
const stripped = { ...generated };
|
|
30
|
+
const stripped = { ...getMathMlJsonSchemas()[id] };
|
|
33
31
|
delete stripped.$schema;
|
|
34
32
|
delete stripped.$id;
|
|
35
33
|
return stripped;
|
|
@@ -26,9 +26,7 @@ function getMathMlJsonSchemas() {
|
|
|
26
26
|
return cachedMathMlJsonSchemas;
|
|
27
27
|
}
|
|
28
28
|
function mathMlDef(id) {
|
|
29
|
-
const
|
|
30
|
-
if (generated === void 0) throw new Error(`z.toJSONSchema() produced no schema for registered id "${id}"`);
|
|
31
|
-
const stripped = { ...generated };
|
|
29
|
+
const stripped = { ...getMathMlJsonSchemas()[id] };
|
|
32
30
|
delete stripped.$schema;
|
|
33
31
|
delete stripped.$id;
|
|
34
32
|
return stripped;
|
package/dist/content.cjs
CHANGED
|
@@ -165,7 +165,7 @@ const IMAGE_FORMATS = [
|
|
|
165
165
|
"gif"
|
|
166
166
|
];
|
|
167
167
|
function isImageFormat(value) {
|
|
168
|
-
return
|
|
168
|
+
return IMAGE_FORMATS.includes(value);
|
|
169
169
|
}
|
|
170
170
|
const ContentImageOriginalSchema = zod.z.object({
|
|
171
171
|
filter: zod.z.enum(["jbig2", "jpeg2000"]),
|
package/dist/content.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, 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 ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, 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 RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, 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 ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-
|
|
1
|
+
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, 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 ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, 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 RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, 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 ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-BrxGwe8j.cjs";
|
|
2
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 };
|
package/dist/content.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, 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 ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, 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 RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, 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 ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-
|
|
1
|
+
import { $ as ContentHatchStyleSchema, $t as ContentSheetRepeatRange, A as ContentEmbeddedObjectKind, An as RunConstructExtent, At as ContentSheetCellComment, B as ContentFloatPosition, Bn as isContentConstructEnd, Bt as ContentSheetConditionalFormatValueSchema, C as ContentDocument, Cn as ContentVectorSchema, Ct as ContentRunSchema, D as ContentEmbeddedObject, Dn as IMAGE_FORMATS, Dt as ContentShapeSchema, E as ContentDrawPageSchema, En as FusedNode, Et as ContentShape, F as ContentFloatAlignSchema, Fn as clampHeadingLevel, Ft as ContentSheetConditionalFormat, G as ContentFormulaSchema, Gt as ContentSheetImage, H as ContentFont, Hn as isRunConstructExtent, Ht as ContentSheetDataValidationSchema, I as ContentFloatAxis, In as contentDocumentSharedFields, It as ContentSheetConditionalFormatSchema, J as ContentGradientStyle, Jt as ContentSheetPrintRangeSchema, K as ContentGradientFill, Kt as ContentSheetImageSchema, L as ContentFloatAxisSchema, Ln as findConstructMarkerImbalance, Lt as ContentSheetConditionalFormatStyle, M as ContentFillPattern, Mn as RunConstructFault, Mt as ContentSheetCellSchema, N as ContentFillPatternSchema, Nn as SheetRuleOperator, Nt as ContentSheetColumn, O as ContentEmbeddedObjectBlock, On as ImageFormat, Ot as ContentSheet, P as ContentFloatAlign, Pn as SheetRuleOperatorSchema, Pt as ContentSheetColumnSchema, Q as ContentHatchStyle, Qt as ContentSheetRangeSchema, R as ContentFloatOrigin, Rn as findRunConstructFault, Rt as ContentSheetConditionalFormatStyleSchema, S as ContentDefinedNameSchema, Sn as ContentVector, St as ContentRun, T as ContentDrawPage, Tn as DecimalStringSchema, Tt as ContentSectionSchema, U as ContentFontSchema, Un as resolveCellFillColor, Ut as ContentSheetDataValidationType, V as ContentFloatPositionSchema, Vn as isContentConstructStart, Vt as ContentSheetDataValidation, W as ContentFormula, Wn as unrecognizedFillKind, 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 ContentTableRow, _t as ContentParagraphSchema, a as ContentBlock, an as ContentSlideSchema, at as ContentInterpretationSchema, b as ContentConstructStartSchema, bn as ContentTranscript, 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 RunConstructExtentSchema, jt as ContentSheetCellCommentSchema, k as ContentEmbeddedObjectBlockSchema, kn as RUN_FONT_PROPERTY_SHAPE, 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 ContentTableRowSchema, vt as ContentPathPoint, w as ContentDocumentSchema, wn as DecimalString, wt as ContentSection, x as ContentDefinedName, xn as ContentTranscriptSchema, xt as ContentPathSegmentSchema, y as ContentConstructStart, yn as ContentTableSchema, yt as ContentPathPointSchema, z as ContentFloatOriginSchema, zn as isContentBlock, zt as ContentSheetConditionalFormatValue } from "./content-D-j5QBCq.js";
|
|
2
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 };
|
package/dist/content.js
CHANGED
|
@@ -164,7 +164,7 @@ const IMAGE_FORMATS = [
|
|
|
164
164
|
"gif"
|
|
165
165
|
];
|
|
166
166
|
function isImageFormat(value) {
|
|
167
|
-
return
|
|
167
|
+
return IMAGE_FORMATS.includes(value);
|
|
168
168
|
}
|
|
169
169
|
const ContentImageOriginalSchema = z.object({
|
|
170
170
|
filter: z.enum(["jbig2", "jpeg2000"]),
|
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-BrxGwe8j.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-DH0p0dyl.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-D-j5QBCq.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-CHX4Z0RM.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;
|
package/dist/definitions.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { St as ContentRun, mt as ContentParagraph } from "./content-
|
|
1
|
+
import { St as ContentRun, mt as ContentParagraph } from "./content-BrxGwe8j.cjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/definitions.d.ts
|
|
4
4
|
declare const StyleParagraphPropertiesSchema: z.ZodObject<{
|
package/dist/definitions.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { St as ContentRun, mt as ContentParagraph } from "./content-
|
|
1
|
+
import { St as ContentRun, mt as ContentParagraph } from "./content-D-j5QBCq.js";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/definitions.d.ts
|
|
4
4
|
declare const StyleParagraphPropertiesSchema: z.ZodObject<{
|
package/dist/factor-styles.cjs
CHANGED
|
@@ -22,18 +22,9 @@ const RUN_STYLE_KEYS = [
|
|
|
22
22
|
"sizePt",
|
|
23
23
|
"color"
|
|
24
24
|
];
|
|
25
|
-
function isShapeGroupWrapper(wrapper) {
|
|
26
|
-
return !("kind" in wrapper.node);
|
|
27
|
-
}
|
|
28
25
|
function isAnchorGroupWrapper(wrapper) {
|
|
29
26
|
return "kind" in wrapper.node && wrapper.node.kind === "paragraph";
|
|
30
27
|
}
|
|
31
|
-
function isSlideGroupWrapper(wrapper) {
|
|
32
|
-
return "kind" in wrapper.node && wrapper.node.kind === "slide";
|
|
33
|
-
}
|
|
34
|
-
function isDrawPageGroupWrapper(wrapper) {
|
|
35
|
-
return "kind" in wrapper.node && wrapper.node.kind === "drawPage";
|
|
36
|
-
}
|
|
37
28
|
function isHeadingGroup(group) {
|
|
38
29
|
return group.node.headingLevel !== void 0;
|
|
39
30
|
}
|
|
@@ -82,21 +73,13 @@ function factorStyles(pkg) {
|
|
|
82
73
|
...pkg.fonts !== void 0 ? { fonts: pkg.fonts } : {},
|
|
83
74
|
...pkg.source !== void 0 ? { source: pkg.source } : {}
|
|
84
75
|
};
|
|
85
|
-
if (pkg.definitions === void 0 && pkg.fonts === void 0 && pkg.source === void 0) return reassembled;
|
|
86
76
|
return {
|
|
87
77
|
...reassembled,
|
|
88
78
|
...carried
|
|
89
79
|
};
|
|
90
80
|
}
|
|
91
81
|
function extentOf(wrapper) {
|
|
92
|
-
if (isShapeGroupWrapper(wrapper)) return flowExtent(wrapper.children);
|
|
93
82
|
if (isAnchorGroupWrapper(wrapper)) return [wrapper.node, ...flowExtent(wrapper.children)];
|
|
94
|
-
if (isSlideGroupWrapper(wrapper)) return wrapper.children.flatMap(extentOf);
|
|
95
|
-
if (isDrawPageGroupWrapper(wrapper)) {
|
|
96
|
-
const paragraphs = [];
|
|
97
|
-
for (const child of wrapper.children) if ("node" in child) paragraphs.push(...extentOf(child));
|
|
98
|
-
return paragraphs;
|
|
99
|
-
}
|
|
100
83
|
return flowExtent(wrapper.children);
|
|
101
84
|
}
|
|
102
85
|
function flowExtent(children) {
|
|
@@ -107,12 +90,12 @@ function flowExtent(children) {
|
|
|
107
90
|
}
|
|
108
91
|
function paragraphTuple(paragraph, keys) {
|
|
109
92
|
const tuple = {};
|
|
110
|
-
for (const key of keys)
|
|
93
|
+
for (const key of keys) tuple[key] = paragraph[key];
|
|
111
94
|
return tuple;
|
|
112
95
|
}
|
|
113
96
|
function runTuple(run, keys) {
|
|
114
97
|
const tuple = {};
|
|
115
|
-
for (const key of keys)
|
|
98
|
+
for (const key of keys) tuple[key] = run[key];
|
|
116
99
|
return tuple;
|
|
117
100
|
}
|
|
118
101
|
function commonParagraphKeys(extent, frozen) {
|
|
@@ -120,7 +103,6 @@ function commonParagraphKeys(extent, frozen) {
|
|
|
120
103
|
}
|
|
121
104
|
function commonRunKeys(extent, frozen) {
|
|
122
105
|
const runs = extent.flatMap((paragraph) => paragraph.runs);
|
|
123
|
-
if (runs.length === 0) return [];
|
|
124
106
|
return RUN_STYLE_KEYS.filter((key) => !frozen.has(key) && runs.every((run) => run[key] !== void 0));
|
|
125
107
|
}
|
|
126
108
|
function bestParagraphCandidate(extent, keys, factored) {
|
|
@@ -165,10 +147,10 @@ function bestGroup(groups) {
|
|
|
165
147
|
}
|
|
166
148
|
return best;
|
|
167
149
|
}
|
|
168
|
-
function plan(wrapper,
|
|
150
|
+
function plan(wrapper, branch, state, entries) {
|
|
169
151
|
const extent = extentOf(wrapper);
|
|
170
|
-
const paragraphCandidate =
|
|
171
|
-
const runCandidate =
|
|
152
|
+
const paragraphCandidate = bestParagraphCandidate(extent, commonParagraphKeys(extent, branch.frozenParagraphs), branch.factoredParagraphs);
|
|
153
|
+
const runCandidate = bestRunCandidate(extent, commonRunKeys(extent, branch.frozenRuns), branch.factoredRuns);
|
|
172
154
|
const nextFrozenParagraphs = new Set(branch.frozenParagraphs);
|
|
173
155
|
const nextFrozenRuns = new Set(branch.frozenRuns);
|
|
174
156
|
const nextFactoredParagraphs = new Set(branch.factoredParagraphs);
|
|
@@ -183,8 +165,7 @@ function plan(wrapper, visit, branch, state, entries) {
|
|
|
183
165
|
if (existing === void 0) entries.set(contentKey, {
|
|
184
166
|
content,
|
|
185
167
|
wrappers: [wrapper],
|
|
186
|
-
frequency: (paragraphCandidate?.positions.length ?? 0) + (runCandidate?.positions.length ?? 0)
|
|
187
|
-
firstVisit: visit.index
|
|
168
|
+
frequency: (paragraphCandidate?.positions.length ?? 0) + (runCandidate?.positions.length ?? 0)
|
|
188
169
|
});
|
|
189
170
|
else {
|
|
190
171
|
existing.wrappers.push(wrapper);
|
|
@@ -210,27 +191,15 @@ function plan(wrapper, visit, branch, state, entries) {
|
|
|
210
191
|
}
|
|
211
192
|
state.wrapperStrips.set(wrapper, strips);
|
|
212
193
|
}
|
|
213
|
-
visit.index += 1;
|
|
214
194
|
const next = {
|
|
215
195
|
frozenParagraphs: nextFrozenParagraphs,
|
|
216
196
|
frozenRuns: nextFrozenRuns,
|
|
217
197
|
factoredParagraphs: nextFactoredParagraphs,
|
|
218
198
|
factoredRuns: nextFactoredRuns
|
|
219
199
|
};
|
|
220
|
-
for (const child of childWrappers(wrapper)) plan(child,
|
|
200
|
+
for (const child of childWrappers(wrapper)) plan(child, next, state, entries);
|
|
221
201
|
}
|
|
222
202
|
function childWrappers(wrapper) {
|
|
223
|
-
if (isShapeGroupWrapper(wrapper) || isAnchorGroupWrapper(wrapper)) {
|
|
224
|
-
const wrappers = [];
|
|
225
|
-
for (const child of wrapper.children) if ("node" in child && "children" in child) wrappers.push(child);
|
|
226
|
-
return wrappers;
|
|
227
|
-
}
|
|
228
|
-
if (isSlideGroupWrapper(wrapper)) return [...wrapper.children];
|
|
229
|
-
if (isDrawPageGroupWrapper(wrapper)) {
|
|
230
|
-
const shapes = [];
|
|
231
|
-
for (const child of wrapper.children) if ("node" in child) shapes.push(child);
|
|
232
|
-
return shapes;
|
|
233
|
-
}
|
|
234
203
|
const wrappers = [];
|
|
235
204
|
for (const child of wrapper.children) if ("node" in child && "children" in child) wrappers.push(child);
|
|
236
205
|
return wrappers;
|
|
@@ -241,7 +210,6 @@ function mint(pkg) {
|
|
|
241
210
|
wrapperStrips: /* @__PURE__ */ new Map()
|
|
242
211
|
};
|
|
243
212
|
const entries = /* @__PURE__ */ new Map();
|
|
244
|
-
const visit = { index: 0 };
|
|
245
213
|
const rootBranch = {
|
|
246
214
|
frozenParagraphs: /* @__PURE__ */ new Set(),
|
|
247
215
|
frozenRuns: /* @__PURE__ */ new Set(),
|
|
@@ -250,15 +218,11 @@ function mint(pkg) {
|
|
|
250
218
|
};
|
|
251
219
|
switch (pkg.kind) {
|
|
252
220
|
case "wordprocessing":
|
|
253
|
-
for (const root of pkg.children) plan(root, visit, rootBranch, state, entries);
|
|
254
|
-
break;
|
|
255
221
|
case "presentation":
|
|
256
|
-
|
|
257
|
-
break;
|
|
258
|
-
case "drawing": for (const root of pkg.children) plan(root, visit, rootBranch, state, entries);
|
|
222
|
+
case "drawing": for (const root of pkg.children) plan(root, rootBranch, state, entries);
|
|
259
223
|
}
|
|
260
224
|
if (entries.size === 0) return pkg;
|
|
261
|
-
const ordered = [...entries.values()].sort((a, b) => b.frequency - a.frequency
|
|
225
|
+
const ordered = [...entries.values()].sort((a, b) => b.frequency - a.frequency);
|
|
262
226
|
const styles = {};
|
|
263
227
|
ordered.forEach((entry, index) => {
|
|
264
228
|
const id = `s${index + 1}`;
|
|
@@ -312,7 +276,7 @@ function rebuildSlideGroup(group, chain, state) {
|
|
|
312
276
|
const inner = innerChain(group, chain, state);
|
|
313
277
|
const children = group.children.map((shape) => rebuildShapeGroup(shape, inner, state));
|
|
314
278
|
const ref = state.wrapperRefs.get(group);
|
|
315
|
-
return
|
|
279
|
+
return children.every((child, index) => child === group.children[index]) ? group : {
|
|
316
280
|
node: group.node,
|
|
317
281
|
...ref !== void 0 ? { style: ref } : {},
|
|
318
282
|
children
|
|
@@ -322,7 +286,7 @@ function rebuildDrawPageGroup(group, chain, state) {
|
|
|
322
286
|
const inner = innerChain(group, chain, state);
|
|
323
287
|
const children = group.children.map((child) => "node" in child ? rebuildShapeGroup(child, inner, state) : child);
|
|
324
288
|
const ref = state.wrapperRefs.get(group);
|
|
325
|
-
return
|
|
289
|
+
return children.every((child, index) => child === group.children[index]) ? group : {
|
|
326
290
|
node: group.node,
|
|
327
291
|
...ref !== void 0 ? { style: ref } : {},
|
|
328
292
|
children
|
|
@@ -332,7 +296,7 @@ function rebuildSectionGroup(group, chain, state) {
|
|
|
332
296
|
const inner = innerChain(group, chain, state);
|
|
333
297
|
const children = group.children.map((child) => rebuildSectionChild(child, inner, state));
|
|
334
298
|
const ref = state.wrapperRefs.get(group);
|
|
335
|
-
return
|
|
299
|
+
return children.every((child, index) => child === group.children[index]) ? group : {
|
|
336
300
|
node: group.node,
|
|
337
301
|
...ref !== void 0 ? { style: ref } : {},
|
|
338
302
|
children
|
|
@@ -354,7 +318,7 @@ function rebuildShapeGroup(group, chain, state) {
|
|
|
354
318
|
const inner = innerChain(group, chain, state);
|
|
355
319
|
const children = group.children.map((child) => rebuildListChild(child, inner, state));
|
|
356
320
|
const ref = state.wrapperRefs.get(group);
|
|
357
|
-
return
|
|
321
|
+
return children.every((child, index) => child === group.children[index]) ? group : {
|
|
358
322
|
node: group.node,
|
|
359
323
|
...ref !== void 0 ? { style: ref } : {},
|
|
360
324
|
children
|
|
@@ -364,7 +328,7 @@ function rebuildSectionConstructGroup(group, chain, state) {
|
|
|
364
328
|
const inner = innerChain(group, chain, state);
|
|
365
329
|
const children = group.children.map((child) => rebuildSectionChild(child, inner, state));
|
|
366
330
|
const ref = state.wrapperRefs.get(group);
|
|
367
|
-
return
|
|
331
|
+
return children.every((child, index) => child === group.children[index]) ? group : {
|
|
368
332
|
node: group.node,
|
|
369
333
|
...ref !== void 0 ? { style: ref } : {},
|
|
370
334
|
children
|
|
@@ -374,7 +338,7 @@ function rebuildShapeConstructGroup(group, chain, state) {
|
|
|
374
338
|
const inner = innerChain(group, chain, state);
|
|
375
339
|
const children = group.children.map((child) => rebuildListChild(child, inner, state));
|
|
376
340
|
const ref = state.wrapperRefs.get(group);
|
|
377
|
-
return
|
|
341
|
+
return children.every((child, index) => child === group.children[index]) ? group : {
|
|
378
342
|
node: group.node,
|
|
379
343
|
...ref !== void 0 ? { style: ref } : {},
|
|
380
344
|
children
|
|
@@ -383,10 +347,9 @@ function rebuildShapeConstructGroup(group, chain, state) {
|
|
|
383
347
|
function rebuildHeadingGroup(group, chain, state, rebuildChild) {
|
|
384
348
|
const inner = innerChain(group, chain, state);
|
|
385
349
|
const anchor = rebuildParagraph(group.node, inner);
|
|
386
|
-
assertHeadingAnchor(anchor);
|
|
387
350
|
const children = group.children.map((child) => rebuildChild(child, inner, state));
|
|
388
351
|
const ref = state.wrapperRefs.get(group);
|
|
389
|
-
return
|
|
352
|
+
return anchor === group.node && children.every((child, index) => child === group.children[index]) ? group : {
|
|
390
353
|
node: anchor,
|
|
391
354
|
...ref !== void 0 ? { style: ref } : {},
|
|
392
355
|
children
|
|
@@ -395,21 +358,14 @@ function rebuildHeadingGroup(group, chain, state, rebuildChild) {
|
|
|
395
358
|
function rebuildListGroup(group, chain, state, rebuildChild) {
|
|
396
359
|
const inner = innerChain(group, chain, state);
|
|
397
360
|
const anchor = rebuildParagraph(group.node, inner);
|
|
398
|
-
assertListAnchor(anchor);
|
|
399
361
|
const children = group.children.map((child) => rebuildChild(child, inner, state));
|
|
400
362
|
const ref = state.wrapperRefs.get(group);
|
|
401
|
-
return
|
|
363
|
+
return anchor === group.node && children.every((child, index) => child === group.children[index]) ? group : {
|
|
402
364
|
node: anchor,
|
|
403
365
|
...ref !== void 0 ? { style: ref } : {},
|
|
404
366
|
children
|
|
405
367
|
};
|
|
406
368
|
}
|
|
407
|
-
function assertHeadingAnchor(paragraph) {
|
|
408
|
-
if (paragraph.headingLevel === void 0) throw new Error("factorStyles: stripping dropped a heading anchor's headingLevel");
|
|
409
|
-
}
|
|
410
|
-
function assertListAnchor(paragraph) {
|
|
411
|
-
if (paragraph.list === void 0) throw new Error("factorStyles: stripping dropped a list anchor's list membership");
|
|
412
|
-
}
|
|
413
369
|
function rebuildParagraph(paragraph, chain) {
|
|
414
370
|
const strips = paragraphStripsOf(chain, paragraph);
|
|
415
371
|
const base = strips === void 0 ? paragraph : stripParagraphKeys(paragraph, strips);
|
package/dist/factor-styles.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as PageSize } from "./geometry-CvcjSwnA.cjs";
|
|
2
|
-
import { C as ContentDocument } from "./content-
|
|
2
|
+
import { C as ContentDocument } from "./content-BrxGwe8j.cjs";
|
|
3
3
|
import { DocumentTree } from "./package.cjs";
|
|
4
4
|
//#region src/factor-styles.d.ts
|
|
5
5
|
declare function assembleTree(content: ContentDocument, pages?: readonly PageSize[]): DocumentTree;
|