ooxml.js 4.2.0 → 4.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/{codec-DNjHjEDm.d.cts → codec-CoqS3uGe.d.cts} +2 -2
- package/dist/{codec-BrTMlL0a.d.ts → codec-CzqiAWdz.d.ts} +4 -4
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{content-UlQ-Nhgi.d.cts → content-C79O3esU.d.cts} +6 -1
- package/dist/{content-t6ZfmfQM.d.ts → content-MEmp_Rlx.d.ts} +6 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/{read-C3AaxcT9.cjs → read-D-L3dItC.cjs} +318 -45
- package/dist/{read-CxMli3Om.d.ts → read-D30xHgEp.d.ts} +58 -1
- package/dist/{read-fuJpC4BH.js → read-DGknK1YY.js} +309 -48
- package/dist/{read-CDX1WbiF.d.cts → read-LTgVJIPU.d.cts} +58 -1
- package/dist/typed/document-package.cjs +8 -2
- package/dist/typed/document-package.js +8 -2
- package/dist/typed/docx/constructs.cjs +81 -0
- package/dist/typed/docx/constructs.d.cts +13 -2
- package/dist/typed/docx/constructs.d.ts +13 -2
- package/dist/typed/docx/constructs.js +80 -1
- package/dist/typed/docx/read.cjs +3 -1
- package/dist/typed/docx/read.d.cts +2 -2
- package/dist/typed/docx/read.d.ts +2 -2
- package/dist/typed/docx/read.js +2 -2
- package/dist/typed/docx/write.cjs +117 -10
- package/dist/typed/docx/write.js +118 -11
- package/dist/typed/embedded.cjs +1 -1
- package/dist/typed/embedded.js +1 -1
- package/dist/typed/pptx/read.cjs +1 -1
- package/dist/typed/pptx/read.js +1 -1
- package/dist/typed/xlsx/build.cjs +1 -1
- package/dist/typed/xlsx/build.js +1 -1
- package/dist/typed/xlsx/content.cjs +42 -1
- package/dist/typed/xlsx/content.d.cts +2 -2
- package/dist/typed/xlsx/content.d.ts +2 -2
- package/dist/typed/xlsx/content.js +42 -2
- package/dist/typed/xlsx/definitions.cjs +54 -0
- package/dist/typed/xlsx/definitions.d.cts +6 -0
- package/dist/typed/xlsx/definitions.d.ts +6 -0
- package/dist/typed/xlsx/definitions.js +53 -0
- package/dist/typed/xlsx/drawings.cjs +170 -0
- package/dist/typed/xlsx/drawings.d.cts +7 -0
- package/dist/typed/xlsx/drawings.d.ts +7 -0
- package/dist/typed/xlsx/drawings.js +169 -0
- package/dist/typed/xlsx/units.cjs +2 -0
- package/dist/typed/xlsx/units.d.cts +2 -1
- package/dist/typed/xlsx/units.d.ts +2 -1
- package/dist/typed/xlsx/units.js +2 -1
- package/package.json +2 -2
|
@@ -3,15 +3,39 @@ import { z } from "zod";
|
|
|
3
3
|
import { ContentBlock } from "document-schema.js";
|
|
4
4
|
//#region src/typed/docx/read.d.ts
|
|
5
5
|
declare const CommentSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodOptional<z.ZodString>;
|
|
6
7
|
author: z.ZodOptional<z.ZodString>;
|
|
7
8
|
text: z.ZodString;
|
|
8
9
|
}, z.core.$strip>;
|
|
9
10
|
type Comment = z.infer<typeof CommentSchema>;
|
|
10
11
|
declare const FootnoteSchema: z.ZodObject<{
|
|
12
|
+
id: z.ZodOptional<z.ZodString>;
|
|
11
13
|
type: z.ZodOptional<z.ZodString>;
|
|
12
14
|
text: z.ZodString;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
type Footnote = z.infer<typeof FootnoteSchema>;
|
|
17
|
+
declare const HeaderFooterPartSchema: z.ZodObject<{
|
|
18
|
+
path: z.ZodString;
|
|
19
|
+
kind: z.ZodEnum<{
|
|
20
|
+
header: "header";
|
|
21
|
+
footer: "footer";
|
|
22
|
+
}>;
|
|
23
|
+
blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
type HeaderFooterPart = z.infer<typeof HeaderFooterPartSchema>;
|
|
26
|
+
declare const SectionHeaderFooterReferencesSchema: z.ZodObject<{
|
|
27
|
+
header: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
28
|
+
default: "default";
|
|
29
|
+
first: "first";
|
|
30
|
+
even: "even";
|
|
31
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
32
|
+
footer: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
33
|
+
default: "default";
|
|
34
|
+
first: "first";
|
|
35
|
+
even: "even";
|
|
36
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
type SectionHeaderFooterReferences = z.infer<typeof SectionHeaderFooterReferencesSchema>;
|
|
15
39
|
declare const DocxDocumentSchema: z.ZodObject<{
|
|
16
40
|
metadata: z.ZodObject<{
|
|
17
41
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -34,6 +58,12 @@ declare const DocxDocumentSchema: z.ZodObject<{
|
|
|
34
58
|
leftPt: z.ZodNumber;
|
|
35
59
|
}, z.core.$strip>;
|
|
36
60
|
blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
|
|
61
|
+
breakType: z.ZodOptional<z.ZodEnum<{
|
|
62
|
+
nextPage: "nextPage";
|
|
63
|
+
continuous: "continuous";
|
|
64
|
+
evenPage: "evenPage";
|
|
65
|
+
oddPage: "oddPage";
|
|
66
|
+
}>>;
|
|
37
67
|
source: z.ZodOptional<z.ZodObject<{
|
|
38
68
|
format: z.ZodEnum<{
|
|
39
69
|
docx: "docx";
|
|
@@ -53,15 +83,42 @@ declare const DocxDocumentSchema: z.ZodObject<{
|
|
|
53
83
|
}, z.core.$strict>>;
|
|
54
84
|
}, z.core.$strip>>;
|
|
55
85
|
comments: z.ZodArray<z.ZodObject<{
|
|
86
|
+
id: z.ZodOptional<z.ZodString>;
|
|
56
87
|
author: z.ZodOptional<z.ZodString>;
|
|
57
88
|
text: z.ZodString;
|
|
58
89
|
}, z.core.$strip>>;
|
|
59
90
|
footnotes: z.ZodArray<z.ZodObject<{
|
|
91
|
+
id: z.ZodOptional<z.ZodString>;
|
|
92
|
+
type: z.ZodOptional<z.ZodString>;
|
|
93
|
+
text: z.ZodString;
|
|
94
|
+
}, z.core.$strip>>;
|
|
95
|
+
endnotes: z.ZodArray<z.ZodObject<{
|
|
96
|
+
id: z.ZodOptional<z.ZodString>;
|
|
60
97
|
type: z.ZodOptional<z.ZodString>;
|
|
61
98
|
text: z.ZodString;
|
|
62
99
|
}, z.core.$strip>>;
|
|
63
100
|
headers: z.ZodArray<z.ZodString>;
|
|
64
101
|
footers: z.ZodArray<z.ZodString>;
|
|
102
|
+
headerFooterParts: z.ZodArray<z.ZodObject<{
|
|
103
|
+
path: z.ZodString;
|
|
104
|
+
kind: z.ZodEnum<{
|
|
105
|
+
header: "header";
|
|
106
|
+
footer: "footer";
|
|
107
|
+
}>;
|
|
108
|
+
blocks: z.ZodArray<z.ZodCustom<ContentBlock, ContentBlock>>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
110
|
+
sectionHeaderFooters: z.ZodArray<z.ZodObject<{
|
|
111
|
+
header: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
112
|
+
default: "default";
|
|
113
|
+
first: "first";
|
|
114
|
+
even: "even";
|
|
115
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
116
|
+
footer: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
117
|
+
default: "default";
|
|
118
|
+
first: "first";
|
|
119
|
+
even: "even";
|
|
120
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
65
122
|
numbering: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
66
123
|
levels: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
67
124
|
format: z.ZodString;
|
|
@@ -74,4 +131,4 @@ declare const DocxDocumentSchema: z.ZodObject<{
|
|
|
74
131
|
type DocxDocument = z.infer<typeof DocxDocumentSchema>;
|
|
75
132
|
declare function readDocxContent(pkg: Package): DocxDocument;
|
|
76
133
|
//#endregion
|
|
77
|
-
export { Footnote as a, DocxDocumentSchema as i, CommentSchema as n, FootnoteSchema as o, DocxDocument as r,
|
|
134
|
+
export { Footnote as a, HeaderFooterPartSchema as c, readDocxContent as d, DocxDocumentSchema as i, SectionHeaderFooterReferences as l, CommentSchema as n, FootnoteSchema as o, DocxDocument as r, HeaderFooterPart as s, Comment as t, SectionHeaderFooterReferencesSchema as u };
|