document-schema 7.9.1 → 7.11.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/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{construct-C9cYkjnd.d.ts → construct-GVdTKrE7.d.ts} +3 -3
- package/dist/construct.d.ts +1 -1
- package/dist/{content-B6SPQuuq.d.ts → content-Ck4LdLBJ.d.ts} +25 -3
- package/dist/{content-VhC4WCbj.d.cts → content-JJrcHjkR.d.cts} +25 -3
- package/dist/content-json-schema-defs.cjs +18 -0
- package/dist/content-json-schema-defs.js +18 -0
- package/dist/content.cjs +2 -0
- package/dist/content.d.cts +1 -1
- package/dist/content.d.ts +1 -1
- package/dist/content.js +2 -0
- 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 +2 -1
- package/dist/factor-styles.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/factor-styles.js +2 -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 +4 -4
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/{package-node-mRax-XfS.d.ts → package-node-BGyYUU-O.d.ts} +14 -8
- package/dist/{package-node-ChC2_Itm.d.cts → package-node-CzUJ6jKN.d.cts} +13 -7
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package.cjs +8 -0
- package/dist/package.d.cts +39 -2
- package/dist/package.d.ts +39 -2
- package/dist/package.js +8 -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 +1 -1
- package/schemas/content-document.schema.json +73 -13
- package/schemas/document-tree.schema.json +63 -3
package/dist/codec.d.cts
CHANGED
package/dist/codec.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
//#region src/construct.d.ts
|
|
3
3
|
declare const ContentControlTypeSchema: z.ZodEnum<{
|
|
4
|
+
date: "date";
|
|
4
5
|
richText: "richText";
|
|
5
6
|
plainText: "plainText";
|
|
6
7
|
checkbox: "checkbox";
|
|
7
8
|
dropDown: "dropDown";
|
|
8
9
|
comboBox: "comboBox";
|
|
9
|
-
date: "date";
|
|
10
10
|
picture: "picture";
|
|
11
11
|
repeatingSection: "repeatingSection";
|
|
12
12
|
button: "button";
|
|
@@ -23,12 +23,12 @@ type ContentControlLock = z.infer<typeof ContentControlLockSchema>;
|
|
|
23
23
|
declare const ContentControlDescriptorSchema: z.ZodObject<{
|
|
24
24
|
kind: z.ZodLiteral<"contentControl">;
|
|
25
25
|
controlType: z.ZodEnum<{
|
|
26
|
+
date: "date";
|
|
26
27
|
richText: "richText";
|
|
27
28
|
plainText: "plainText";
|
|
28
29
|
checkbox: "checkbox";
|
|
29
30
|
dropDown: "dropDown";
|
|
30
31
|
comboBox: "comboBox";
|
|
31
|
-
date: "date";
|
|
32
32
|
picture: "picture";
|
|
33
33
|
repeatingSection: "repeatingSection";
|
|
34
34
|
button: "button";
|
|
@@ -252,12 +252,12 @@ type DivisionDescriptor = z.infer<typeof DivisionDescriptorSchema>;
|
|
|
252
252
|
declare const ConstructDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
253
253
|
kind: z.ZodLiteral<"contentControl">;
|
|
254
254
|
controlType: z.ZodEnum<{
|
|
255
|
+
date: "date";
|
|
255
256
|
richText: "richText";
|
|
256
257
|
plainText: "plainText";
|
|
257
258
|
checkbox: "checkbox";
|
|
258
259
|
dropDown: "dropDown";
|
|
259
260
|
comboBox: "comboBox";
|
|
260
|
-
date: "date";
|
|
261
261
|
picture: "picture";
|
|
262
262
|
repeatingSection: "repeatingSection";
|
|
263
263
|
button: "button";
|
package/dist/construct.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-
|
|
1
|
+
import { C as ProvenanceChange, E as ProvenanceDescriptorSchema, S as LinkTargetSchema, T as ProvenanceDescriptor, _ as FieldDescriptor, a as ConstructDescriptor, b as LinkDescriptorSchema, c as ContentControlDescriptorSchema, d as ContentControlType, f as ContentControlTypeSchema, g as DivisionSourceSchema, h as DivisionSource, i as AnchorTypeSchema, l as ContentControlLock, m as DivisionDescriptorSchema, n as AnchorDescriptorSchema, o as ConstructDescriptorSchema, p as DivisionDescriptor, r as AnchorType, s as ContentControlDescriptor, t as AnchorDescriptor, u as ContentControlLockSchema, v as FieldDescriptorSchema, w as ProvenanceChangeSchema, x as LinkTarget, y as LinkDescriptor } from "./construct-GVdTKrE7.js";
|
|
2
2
|
export { AnchorDescriptor, AnchorDescriptorSchema, AnchorType, AnchorTypeSchema, ConstructDescriptor, ConstructDescriptorSchema, ContentControlDescriptor, ContentControlDescriptorSchema, ContentControlLock, ContentControlLockSchema, ContentControlType, ContentControlTypeSchema, DivisionDescriptor, DivisionDescriptorSchema, DivisionSource, DivisionSourceSchema, FieldDescriptor, FieldDescriptorSchema, LinkDescriptor, LinkDescriptorSchema, LinkTarget, LinkTargetSchema, ProvenanceChange, ProvenanceChangeSchema, ProvenanceDescriptor, ProvenanceDescriptorSchema };
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -1651,6 +1651,11 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
1651
1651
|
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
1652
1652
|
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
1653
1653
|
}, z.core.$strip>>;
|
|
1654
|
+
watermarks: z.ZodOptional<z.ZodObject<{
|
|
1655
|
+
default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
1656
|
+
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
1657
|
+
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
1658
|
+
}, z.core.$strip>>;
|
|
1654
1659
|
source: z.ZodOptional<z.ZodObject<{
|
|
1655
1660
|
format: z.ZodEnum<{
|
|
1656
1661
|
docx: "docx";
|
|
@@ -1816,6 +1821,7 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
1816
1821
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
1817
1822
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
1818
1823
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
1824
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
1819
1825
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1820
1826
|
source: z.ZodOptional<z.ZodObject<{
|
|
1821
1827
|
format: z.ZodEnum<{
|
|
@@ -3356,6 +3362,7 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
3356
3362
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
3357
3363
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
3358
3364
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
3365
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
3359
3366
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
3360
3367
|
source: z.ZodOptional<z.ZodObject<{
|
|
3361
3368
|
format: z.ZodEnum<{
|
|
@@ -5219,6 +5226,11 @@ declare const ContentSectionSchema: z.ZodObject<{
|
|
|
5219
5226
|
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
5220
5227
|
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
5221
5228
|
}, z.core.$strip>>;
|
|
5229
|
+
watermarks: z.ZodOptional<z.ZodObject<{
|
|
5230
|
+
default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
5231
|
+
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
5232
|
+
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
5233
|
+
}, z.core.$strip>>;
|
|
5222
5234
|
source: z.ZodOptional<z.ZodObject<{
|
|
5223
5235
|
format: z.ZodEnum<{
|
|
5224
5236
|
docx: "docx";
|
|
@@ -5285,6 +5297,7 @@ declare const ContentShapeSchema: z.ZodObject<{
|
|
|
5285
5297
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
5286
5298
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
5287
5299
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
5300
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
5288
5301
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
5289
5302
|
source: z.ZodOptional<z.ZodObject<{
|
|
5290
5303
|
format: z.ZodEnum<{
|
|
@@ -5391,6 +5404,7 @@ declare const ContentSlideSchema: z.ZodObject<{
|
|
|
5391
5404
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
5392
5405
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
5393
5406
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
5407
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
5394
5408
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
5395
5409
|
source: z.ZodOptional<z.ZodObject<{
|
|
5396
5410
|
format: z.ZodEnum<{
|
|
@@ -8886,6 +8900,7 @@ declare const ContentDrawPageSchema: z.ZodObject<{
|
|
|
8886
8900
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
8887
8901
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
8888
8902
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
8903
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
8889
8904
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
8890
8905
|
source: z.ZodOptional<z.ZodObject<{
|
|
8891
8906
|
format: z.ZodEnum<{
|
|
@@ -9640,6 +9655,11 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
9640
9655
|
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
9641
9656
|
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
9642
9657
|
}, z.core.$strip>>;
|
|
9658
|
+
watermarks: z.ZodOptional<z.ZodObject<{
|
|
9659
|
+
default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
9660
|
+
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
9661
|
+
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
9662
|
+
}, z.core.$strip>>;
|
|
9643
9663
|
source: z.ZodOptional<z.ZodObject<{
|
|
9644
9664
|
format: z.ZodEnum<{
|
|
9645
9665
|
docx: "docx";
|
|
@@ -9805,6 +9825,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
9805
9825
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
9806
9826
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
9807
9827
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
9828
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
9808
9829
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
9809
9830
|
source: z.ZodOptional<z.ZodObject<{
|
|
9810
9831
|
format: z.ZodEnum<{
|
|
@@ -11345,6 +11366,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
11345
11366
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
11346
11367
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
11347
11368
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
11369
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
11348
11370
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
11349
11371
|
source: z.ZodOptional<z.ZodObject<{
|
|
11350
11372
|
format: z.ZodEnum<{
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -1651,6 +1651,11 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
1651
1651
|
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
1652
1652
|
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
1653
1653
|
}, z.core.$strip>>;
|
|
1654
|
+
watermarks: z.ZodOptional<z.ZodObject<{
|
|
1655
|
+
default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
1656
|
+
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
1657
|
+
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
1658
|
+
}, z.core.$strip>>;
|
|
1654
1659
|
source: z.ZodOptional<z.ZodObject<{
|
|
1655
1660
|
format: z.ZodEnum<{
|
|
1656
1661
|
docx: "docx";
|
|
@@ -1816,6 +1821,7 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
1816
1821
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
1817
1822
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
1818
1823
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
1824
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
1819
1825
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
1820
1826
|
source: z.ZodOptional<z.ZodObject<{
|
|
1821
1827
|
format: z.ZodEnum<{
|
|
@@ -3356,6 +3362,7 @@ declare const ContentEmbeddedObjectBlockSchema: z.ZodObject<{
|
|
|
3356
3362
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
3357
3363
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
3358
3364
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
3365
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
3359
3366
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
3360
3367
|
source: z.ZodOptional<z.ZodObject<{
|
|
3361
3368
|
format: z.ZodEnum<{
|
|
@@ -5219,6 +5226,11 @@ declare const ContentSectionSchema: z.ZodObject<{
|
|
|
5219
5226
|
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
5220
5227
|
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
5221
5228
|
}, z.core.$strip>>;
|
|
5229
|
+
watermarks: z.ZodOptional<z.ZodObject<{
|
|
5230
|
+
default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
5231
|
+
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
5232
|
+
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
5233
|
+
}, z.core.$strip>>;
|
|
5222
5234
|
source: z.ZodOptional<z.ZodObject<{
|
|
5223
5235
|
format: z.ZodEnum<{
|
|
5224
5236
|
docx: "docx";
|
|
@@ -5285,6 +5297,7 @@ declare const ContentShapeSchema: z.ZodObject<{
|
|
|
5285
5297
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
5286
5298
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
5287
5299
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
5300
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
5288
5301
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
5289
5302
|
source: z.ZodOptional<z.ZodObject<{
|
|
5290
5303
|
format: z.ZodEnum<{
|
|
@@ -5391,6 +5404,7 @@ declare const ContentSlideSchema: z.ZodObject<{
|
|
|
5391
5404
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
5392
5405
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
5393
5406
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
5407
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
5394
5408
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
5395
5409
|
source: z.ZodOptional<z.ZodObject<{
|
|
5396
5410
|
format: z.ZodEnum<{
|
|
@@ -8886,6 +8900,7 @@ declare const ContentDrawPageSchema: z.ZodObject<{
|
|
|
8886
8900
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
8887
8901
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
8888
8902
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
8903
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
8889
8904
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
8890
8905
|
source: z.ZodOptional<z.ZodObject<{
|
|
8891
8906
|
format: z.ZodEnum<{
|
|
@@ -9640,6 +9655,11 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
9640
9655
|
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
9641
9656
|
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
9642
9657
|
}, z.core.$strip>>;
|
|
9658
|
+
watermarks: z.ZodOptional<z.ZodObject<{
|
|
9659
|
+
default: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
9660
|
+
even: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
9661
|
+
first: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodType<ContentBlock, ContentBlock, z.core.$ZodTypeInternals<ContentBlock, ContentBlock>>>>>;
|
|
9662
|
+
}, z.core.$strip>>;
|
|
9643
9663
|
source: z.ZodOptional<z.ZodObject<{
|
|
9644
9664
|
format: z.ZodEnum<{
|
|
9645
9665
|
docx: "docx";
|
|
@@ -9805,6 +9825,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
9805
9825
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
9806
9826
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
9807
9827
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
9828
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
9808
9829
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
9809
9830
|
source: z.ZodOptional<z.ZodObject<{
|
|
9810
9831
|
format: z.ZodEnum<{
|
|
@@ -11345,6 +11366,7 @@ declare const ContentDocumentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
11345
11366
|
fontScale: z.ZodOptional<z.ZodNumber>;
|
|
11346
11367
|
lineSpacingReduction: z.ZodOptional<z.ZodNumber>;
|
|
11347
11368
|
paintOrder: z.ZodOptional<z.ZodNumber>;
|
|
11369
|
+
readingOrder: z.ZodOptional<z.ZodNumber>;
|
|
11348
11370
|
sourcePath: z.ZodOptional<z.ZodString>;
|
|
11349
11371
|
source: z.ZodOptional<z.ZodObject<{
|
|
11350
11372
|
format: z.ZodEnum<{
|
|
@@ -868,6 +868,7 @@ const CONTENT_DEFS = {
|
|
|
868
868
|
},
|
|
869
869
|
headers: { $ref: "#/$defs/ContentPageFurniture" },
|
|
870
870
|
footers: { $ref: "#/$defs/ContentPageFurniture" },
|
|
871
|
+
watermarks: { $ref: "#/$defs/ContentPageFurniture" },
|
|
871
872
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
872
873
|
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
873
874
|
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
@@ -1010,6 +1011,7 @@ const CONTENT_DEFS = {
|
|
|
1010
1011
|
minimum: 0
|
|
1011
1012
|
},
|
|
1012
1013
|
paintOrder: { type: "number" },
|
|
1014
|
+
readingOrder: { type: "number" },
|
|
1013
1015
|
sourcePath: { type: "string" },
|
|
1014
1016
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
1015
1017
|
frames: {
|
|
@@ -2901,6 +2903,22 @@ const CONTENT_DEFS = {
|
|
|
2901
2903
|
required: ["id", "bases"],
|
|
2902
2904
|
additionalProperties: false
|
|
2903
2905
|
},
|
|
2906
|
+
TreeEmbeddedFont: {
|
|
2907
|
+
type: "object",
|
|
2908
|
+
properties: {
|
|
2909
|
+
family: { type: "string" },
|
|
2910
|
+
bold: { type: "boolean" },
|
|
2911
|
+
italic: { type: "boolean" },
|
|
2912
|
+
base64: { type: "string" }
|
|
2913
|
+
},
|
|
2914
|
+
required: [
|
|
2915
|
+
"family",
|
|
2916
|
+
"bold",
|
|
2917
|
+
"italic",
|
|
2918
|
+
"base64"
|
|
2919
|
+
],
|
|
2920
|
+
additionalProperties: false
|
|
2921
|
+
},
|
|
2904
2922
|
SymbolTable: {
|
|
2905
2923
|
type: "object",
|
|
2906
2924
|
properties: {
|
|
@@ -867,6 +867,7 @@ const CONTENT_DEFS = {
|
|
|
867
867
|
},
|
|
868
868
|
headers: { $ref: "#/$defs/ContentPageFurniture" },
|
|
869
869
|
footers: { $ref: "#/$defs/ContentPageFurniture" },
|
|
870
|
+
watermarks: { $ref: "#/$defs/ContentPageFurniture" },
|
|
870
871
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
871
872
|
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
872
873
|
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
@@ -1009,6 +1010,7 @@ const CONTENT_DEFS = {
|
|
|
1009
1010
|
minimum: 0
|
|
1010
1011
|
},
|
|
1011
1012
|
paintOrder: { type: "number" },
|
|
1013
|
+
readingOrder: { type: "number" },
|
|
1012
1014
|
sourcePath: { type: "string" },
|
|
1013
1015
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
1014
1016
|
frames: {
|
|
@@ -2900,6 +2902,22 @@ const CONTENT_DEFS = {
|
|
|
2900
2902
|
required: ["id", "bases"],
|
|
2901
2903
|
additionalProperties: false
|
|
2902
2904
|
},
|
|
2905
|
+
TreeEmbeddedFont: {
|
|
2906
|
+
type: "object",
|
|
2907
|
+
properties: {
|
|
2908
|
+
family: { type: "string" },
|
|
2909
|
+
bold: { type: "boolean" },
|
|
2910
|
+
italic: { type: "boolean" },
|
|
2911
|
+
base64: { type: "string" }
|
|
2912
|
+
},
|
|
2913
|
+
required: [
|
|
2914
|
+
"family",
|
|
2915
|
+
"bold",
|
|
2916
|
+
"italic",
|
|
2917
|
+
"base64"
|
|
2918
|
+
],
|
|
2919
|
+
additionalProperties: false
|
|
2920
|
+
},
|
|
2903
2921
|
SymbolTable: {
|
|
2904
2922
|
type: "object",
|
|
2905
2923
|
properties: {
|
package/dist/content.cjs
CHANGED
|
@@ -431,6 +431,7 @@ const ContentSectionSchema = zod.z.object({
|
|
|
431
431
|
]).optional(),
|
|
432
432
|
headers: ContentPageFurnitureSchema.optional(),
|
|
433
433
|
footers: ContentPageFurnitureSchema.optional(),
|
|
434
|
+
watermarks: ContentPageFurnitureSchema.optional(),
|
|
434
435
|
source: require_source.SourceResidueSchema.optional(),
|
|
435
436
|
...CONTENT_ANNOTATION_FIELDS
|
|
436
437
|
});
|
|
@@ -445,6 +446,7 @@ const ContentShapeSchema = zod.z.object({
|
|
|
445
446
|
fontScale: zod.z.number().positive().optional(),
|
|
446
447
|
lineSpacingReduction: zod.z.number().nonnegative().optional(),
|
|
447
448
|
paintOrder: zod.z.number().optional(),
|
|
449
|
+
readingOrder: zod.z.number().optional(),
|
|
448
450
|
sourcePath: zod.z.string().optional(),
|
|
449
451
|
source: require_source.SourceResidueSchema.optional(),
|
|
450
452
|
frames: zod.z.array(require_geometry.LayoutFrameSchema).optional(),
|
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-JJrcHjkR.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-Ck4LdLBJ.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
|
@@ -430,6 +430,7 @@ const ContentSectionSchema = z.object({
|
|
|
430
430
|
]).optional(),
|
|
431
431
|
headers: ContentPageFurnitureSchema.optional(),
|
|
432
432
|
footers: ContentPageFurnitureSchema.optional(),
|
|
433
|
+
watermarks: ContentPageFurnitureSchema.optional(),
|
|
433
434
|
source: SourceResidueSchema.optional(),
|
|
434
435
|
...CONTENT_ANNOTATION_FIELDS
|
|
435
436
|
});
|
|
@@ -444,6 +445,7 @@ const ContentShapeSchema = z.object({
|
|
|
444
445
|
fontScale: z.number().positive().optional(),
|
|
445
446
|
lineSpacingReduction: z.number().nonnegative().optional(),
|
|
446
447
|
paintOrder: z.number().optional(),
|
|
448
|
+
readingOrder: z.number().optional(),
|
|
447
449
|
sourcePath: z.string().optional(),
|
|
448
450
|
source: SourceResidueSchema.optional(),
|
|
449
451
|
frames: z.array(LayoutFrameSchema).optional(),
|
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-JJrcHjkR.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-CzUJ6jKN.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-Ck4LdLBJ.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-BGyYUU-O.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-JJrcHjkR.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-Ck4LdLBJ.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
|
@@ -79,9 +79,10 @@ function factorStyles(pkg) {
|
|
|
79
79
|
const reassembled = assembleTree(require_flatten.flattenTree(pkg), pkg.pages);
|
|
80
80
|
const carried = {
|
|
81
81
|
...pkg.definitions !== void 0 ? { definitions: pkg.definitions } : {},
|
|
82
|
+
...pkg.fonts !== void 0 ? { fonts: pkg.fonts } : {},
|
|
82
83
|
...pkg.source !== void 0 ? { source: pkg.source } : {}
|
|
83
84
|
};
|
|
84
|
-
if (pkg.definitions === void 0 && pkg.source === void 0) return reassembled;
|
|
85
|
+
if (pkg.definitions === void 0 && pkg.fonts === void 0 && pkg.source === void 0) return reassembled;
|
|
85
86
|
return {
|
|
86
87
|
...reassembled,
|
|
87
88
|
...carried
|
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-JJrcHjkR.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;
|
package/dist/factor-styles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { l as PageSize } from "./geometry-CvcjSwnA.js";
|
|
2
|
-
import { C as ContentDocument } from "./content-
|
|
2
|
+
import { C as ContentDocument } from "./content-Ck4LdLBJ.js";
|
|
3
3
|
import { DocumentTree } from "./package.js";
|
|
4
4
|
//#region src/factor-styles.d.ts
|
|
5
5
|
declare function assembleTree(content: ContentDocument, pages?: readonly PageSize[]): DocumentTree;
|
package/dist/factor-styles.js
CHANGED
|
@@ -78,9 +78,10 @@ function factorStyles(pkg) {
|
|
|
78
78
|
const reassembled = assembleTree(flattenTree(pkg), pkg.pages);
|
|
79
79
|
const carried = {
|
|
80
80
|
...pkg.definitions !== void 0 ? { definitions: pkg.definitions } : {},
|
|
81
|
+
...pkg.fonts !== void 0 ? { fonts: pkg.fonts } : {},
|
|
81
82
|
...pkg.source !== void 0 ? { source: pkg.source } : {}
|
|
82
83
|
};
|
|
83
|
-
if (pkg.definitions === void 0 && pkg.source === void 0) return reassembled;
|
|
84
|
+
if (pkg.definitions === void 0 && pkg.fonts === void 0 && pkg.source === void 0) return reassembled;
|
|
84
85
|
return {
|
|
85
86
|
...reassembled,
|
|
86
87
|
...carried
|
package/dist/flatten.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ContentDocument } from "./content-
|
|
1
|
+
import { C as ContentDocument } from "./content-JJrcHjkR.cjs";
|
|
2
2
|
import { DocumentTree } from "./package.cjs";
|
|
3
3
|
//#region src/flatten.d.ts
|
|
4
4
|
declare function flattenTree(pkg: DocumentTree): ContentDocument;
|
package/dist/flatten.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -187,6 +187,7 @@ exports.StylesTableSchema = require_definitions.StylesTableSchema;
|
|
|
187
187
|
exports.SymbolTableSchema = require_math.SymbolTableSchema;
|
|
188
188
|
exports.TextDirectionSchema = require_style.TextDirectionSchema;
|
|
189
189
|
exports.TreeBlockLeafSchema = require_package_node.TreeBlockLeafSchema;
|
|
190
|
+
exports.TreeEmbeddedFontSchema = require_package.TreeEmbeddedFontSchema;
|
|
190
191
|
exports.TreeGroupSchema = require_package_node.TreeGroupSchema;
|
|
191
192
|
exports.TreeLeafSchema = require_package_node.TreeLeafSchema;
|
|
192
193
|
exports.TreeNodeSchema = require_package_node.TreeNodeSchema;
|