document-content-model 4.3.2 → 7.6.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 +274 -95
- package/dist/border-weight.cjs +26 -0
- package/dist/border-weight.d.cts +12 -0
- package/dist/border-weight.d.ts +12 -0
- package/dist/border-weight.js +23 -0
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{construct-ETSlnMle.d.cts → construct-GVdTKrE7.d.cts} +242 -2
- package/dist/{construct-ETSlnMle.d.ts → construct-GVdTKrE7.d.ts} +242 -2
- package/dist/construct.cjs +13 -6
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/construct.js +13 -6
- package/dist/content-BCOxY0Eb.d.ts +10273 -0
- package/dist/content-BzkhrS6P.d.cts +10273 -0
- package/dist/content-json-schema-defs.cjs +1056 -189
- package/dist/content-json-schema-defs.js +1056 -189
- package/dist/content.cjs +514 -36
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +488 -37
- package/dist/decompose.cjs +7 -17
- package/dist/decompose.d.cts +5 -5
- package/dist/decompose.d.ts +5 -5
- package/dist/decompose.js +7 -17
- package/dist/definitions.cjs +5 -1
- package/dist/definitions.d.cts +37 -1
- package/dist/definitions.d.ts +37 -1
- package/dist/definitions.js +5 -1
- package/dist/factor-styles.cjs +14 -8
- package/dist/factor-styles.d.cts +6 -6
- package/dist/factor-styles.d.ts +6 -6
- package/dist/factor-styles.js +15 -9
- package/dist/flatten.cjs +5 -5
- package/dist/flatten.d.cts +4 -4
- package/dist/flatten.d.ts +4 -4
- package/dist/flatten.js +5 -5
- package/dist/font-port.d.cts +2 -2
- package/dist/font-port.d.ts +2 -2
- package/dist/index.cjs +54 -14
- package/dist/index.d.cts +14 -12
- package/dist/index.d.ts +14 -12
- package/dist/index.js +12 -10
- package/dist/{math-BlG8Tjk-.d.cts → math-BScHxedi.d.cts} +97 -14
- package/dist/{math-BlG8Tjk-.d.ts → math-BScHxedi.d.ts} +97 -14
- package/dist/math-layout.d.cts +6 -6
- package/dist/math-layout.d.ts +6 -6
- package/dist/math.cjs +32 -6
- package/dist/math.d.cts +2 -2
- package/dist/math.d.ts +2 -2
- package/dist/math.js +29 -7
- package/dist/{mathml-B1oTCtzc.d.cts → mathml-Czqc1mdZ.d.cts} +3 -3
- package/dist/{mathml-B1oTCtzc.d.ts → mathml-Czqc1mdZ.d.ts} +3 -3
- package/dist/mathml.cjs +9 -2
- package/dist/mathml.d.cts +1 -1
- package/dist/mathml.d.ts +1 -1
- package/dist/mathml.js +9 -2
- package/dist/metadata.cjs +12 -1
- package/dist/metadata.d.cts +13 -0
- package/dist/metadata.d.ts +13 -0
- package/dist/metadata.js +12 -1
- package/dist/package-node-C4mh1hLY.d.ts +1989 -0
- package/dist/package-node-RQMDBzwd.d.cts +1989 -0
- package/dist/package-node.cjs +21 -21
- package/dist/package-node.d.cts +2 -2
- package/dist/package-node.d.ts +2 -2
- package/dist/package-node.js +14 -14
- package/dist/package.cjs +5 -3
- package/dist/package.d.cts +253 -8
- package/dist/package.d.ts +253 -8
- package/dist/package.js +5 -3
- package/dist/schema-io.cjs +21 -11
- package/dist/schema-io.d.cts +13 -9
- package/dist/schema-io.d.ts +13 -9
- package/dist/schema-io.js +21 -12
- package/dist/source-Bas5ol6f.d.cts +43 -0
- package/dist/source-Bas5ol6f.d.ts +43 -0
- package/dist/source.cjs +27 -0
- package/dist/source.d.cts +2 -0
- package/dist/source.d.ts +2 -0
- package/dist/source.js +25 -0
- package/dist/style-D06NwxAJ.d.cts +29 -0
- package/dist/style-D06NwxAJ.d.ts +29 -0
- package/dist/style.cjs +2 -0
- package/dist/style.d.cts +2 -24
- package/dist/style.d.ts +2 -24
- package/dist/style.js +2 -1
- package/dist/text-layout.d.cts +1 -1
- package/dist/text-layout.d.ts +1 -1
- package/package.json +28 -29
- package/schemas/content-document.schema.json +6623 -1694
- package/schemas/{document-package.schema.json → document-tree.schema.json} +1826 -143
- package/dist/content-BLwxI5ba.d.cts +0 -2481
- package/dist/content-BdzcBsxm.d.ts +0 -2481
- package/dist/package-node-C-ewnL0v.d.cts +0 -459
- package/dist/package-node-D3scv-Cl.d.ts +0 -459
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region src/border-weight.ts
|
|
3
|
+
const BORDER_WIDTH_PT = {
|
|
4
|
+
hair: .5,
|
|
5
|
+
thin: .75,
|
|
6
|
+
medium: 1.5,
|
|
7
|
+
thick: 2.25
|
|
8
|
+
};
|
|
9
|
+
const BORDER_WEIGHT_UPPER_PT = {
|
|
10
|
+
hair: .625,
|
|
11
|
+
thin: 1.125,
|
|
12
|
+
medium: 1.875
|
|
13
|
+
};
|
|
14
|
+
function borderWeightForWidthPt(widthPt) {
|
|
15
|
+
if (widthPt < BORDER_WEIGHT_UPPER_PT.hair) return "hair";
|
|
16
|
+
if (widthPt < BORDER_WEIGHT_UPPER_PT.thin) return "thin";
|
|
17
|
+
if (widthPt < BORDER_WEIGHT_UPPER_PT.medium) return "medium";
|
|
18
|
+
return "thick";
|
|
19
|
+
}
|
|
20
|
+
function dashedBorderWeightForWidthPt(widthPt) {
|
|
21
|
+
return widthPt >= BORDER_WEIGHT_UPPER_PT.thin ? "medium" : "thin";
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
exports.BORDER_WIDTH_PT = BORDER_WIDTH_PT;
|
|
25
|
+
exports.borderWeightForWidthPt = borderWeightForWidthPt;
|
|
26
|
+
exports.dashedBorderWeightForWidthPt = dashedBorderWeightForWidthPt;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/border-weight.d.ts
|
|
2
|
+
declare const BORDER_WIDTH_PT: {
|
|
3
|
+
readonly hair: 0.5;
|
|
4
|
+
readonly thin: 0.75;
|
|
5
|
+
readonly medium: 1.5;
|
|
6
|
+
readonly thick: 2.25;
|
|
7
|
+
};
|
|
8
|
+
type BorderWeight = keyof typeof BORDER_WIDTH_PT;
|
|
9
|
+
declare function borderWeightForWidthPt(widthPt: number): BorderWeight;
|
|
10
|
+
declare function dashedBorderWeightForWidthPt(widthPt: number): Extract<BorderWeight, "thin" | "medium">;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { BORDER_WIDTH_PT, BorderWeight, borderWeightForWidthPt, dashedBorderWeightForWidthPt };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/border-weight.d.ts
|
|
2
|
+
declare const BORDER_WIDTH_PT: {
|
|
3
|
+
readonly hair: 0.5;
|
|
4
|
+
readonly thin: 0.75;
|
|
5
|
+
readonly medium: 1.5;
|
|
6
|
+
readonly thick: 2.25;
|
|
7
|
+
};
|
|
8
|
+
type BorderWeight = keyof typeof BORDER_WIDTH_PT;
|
|
9
|
+
declare function borderWeightForWidthPt(widthPt: number): BorderWeight;
|
|
10
|
+
declare function dashedBorderWeightForWidthPt(widthPt: number): Extract<BorderWeight, "thin" | "medium">;
|
|
11
|
+
//#endregion
|
|
12
|
+
export { BORDER_WIDTH_PT, BorderWeight, borderWeightForWidthPt, dashedBorderWeightForWidthPt };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//#region src/border-weight.ts
|
|
2
|
+
const BORDER_WIDTH_PT = {
|
|
3
|
+
hair: .5,
|
|
4
|
+
thin: .75,
|
|
5
|
+
medium: 1.5,
|
|
6
|
+
thick: 2.25
|
|
7
|
+
};
|
|
8
|
+
const BORDER_WEIGHT_UPPER_PT = {
|
|
9
|
+
hair: .625,
|
|
10
|
+
thin: 1.125,
|
|
11
|
+
medium: 1.875
|
|
12
|
+
};
|
|
13
|
+
function borderWeightForWidthPt(widthPt) {
|
|
14
|
+
if (widthPt < BORDER_WEIGHT_UPPER_PT.hair) return "hair";
|
|
15
|
+
if (widthPt < BORDER_WEIGHT_UPPER_PT.thin) return "thin";
|
|
16
|
+
if (widthPt < BORDER_WEIGHT_UPPER_PT.medium) return "medium";
|
|
17
|
+
return "thick";
|
|
18
|
+
}
|
|
19
|
+
function dashedBorderWeightForWidthPt(widthPt) {
|
|
20
|
+
return widthPt >= BORDER_WEIGHT_UPPER_PT.thin ? "medium" : "thin";
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { BORDER_WIDTH_PT, borderWeightForWidthPt, dashedBorderWeightForWidthPt };
|
package/dist/codec.d.cts
CHANGED
package/dist/codec.d.ts
CHANGED
|
@@ -45,12 +45,52 @@ declare const ContentControlDescriptorSchema: z.ZodObject<{
|
|
|
45
45
|
value: z.ZodOptional<z.ZodString>;
|
|
46
46
|
checked: z.ZodOptional<z.ZodBoolean>;
|
|
47
47
|
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
48
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
49
|
+
format: z.ZodEnum<{
|
|
50
|
+
docx: "docx";
|
|
51
|
+
pptx: "pptx";
|
|
52
|
+
xlsx: "xlsx";
|
|
53
|
+
odt: "odt";
|
|
54
|
+
ods: "ods";
|
|
55
|
+
odp: "odp";
|
|
56
|
+
odg: "odg";
|
|
57
|
+
odm: "odm";
|
|
58
|
+
odb: "odb";
|
|
59
|
+
odf: "odf";
|
|
60
|
+
markdown: "markdown";
|
|
61
|
+
pdf: "pdf";
|
|
62
|
+
epub: "epub";
|
|
63
|
+
rtf: "rtf";
|
|
64
|
+
wpd: "wpd";
|
|
65
|
+
}>;
|
|
66
|
+
xml: z.ZodString;
|
|
67
|
+
}, z.core.$strict>>;
|
|
48
68
|
}, z.core.$strict>;
|
|
49
69
|
type ContentControlDescriptor = z.infer<typeof ContentControlDescriptorSchema>;
|
|
50
70
|
declare const FieldDescriptorSchema: z.ZodObject<{
|
|
51
71
|
kind: z.ZodLiteral<"field">;
|
|
52
72
|
instruction: z.ZodString;
|
|
53
73
|
cachedResult: z.ZodOptional<z.ZodString>;
|
|
74
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
75
|
+
format: z.ZodEnum<{
|
|
76
|
+
docx: "docx";
|
|
77
|
+
pptx: "pptx";
|
|
78
|
+
xlsx: "xlsx";
|
|
79
|
+
odt: "odt";
|
|
80
|
+
ods: "ods";
|
|
81
|
+
odp: "odp";
|
|
82
|
+
odg: "odg";
|
|
83
|
+
odm: "odm";
|
|
84
|
+
odb: "odb";
|
|
85
|
+
odf: "odf";
|
|
86
|
+
markdown: "markdown";
|
|
87
|
+
pdf: "pdf";
|
|
88
|
+
epub: "epub";
|
|
89
|
+
rtf: "rtf";
|
|
90
|
+
wpd: "wpd";
|
|
91
|
+
}>;
|
|
92
|
+
xml: z.ZodString;
|
|
93
|
+
}, z.core.$strict>>;
|
|
54
94
|
}, z.core.$strict>;
|
|
55
95
|
type FieldDescriptor = z.infer<typeof FieldDescriptorSchema>;
|
|
56
96
|
declare const AnchorTypeSchema: z.ZodEnum<{
|
|
@@ -70,6 +110,26 @@ declare const AnchorDescriptorSchema: z.ZodObject<{
|
|
|
70
110
|
}>;
|
|
71
111
|
name: z.ZodString;
|
|
72
112
|
definition: z.ZodOptional<z.ZodString>;
|
|
113
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
format: z.ZodEnum<{
|
|
115
|
+
docx: "docx";
|
|
116
|
+
pptx: "pptx";
|
|
117
|
+
xlsx: "xlsx";
|
|
118
|
+
odt: "odt";
|
|
119
|
+
ods: "ods";
|
|
120
|
+
odp: "odp";
|
|
121
|
+
odg: "odg";
|
|
122
|
+
odm: "odm";
|
|
123
|
+
odb: "odb";
|
|
124
|
+
odf: "odf";
|
|
125
|
+
markdown: "markdown";
|
|
126
|
+
pdf: "pdf";
|
|
127
|
+
epub: "epub";
|
|
128
|
+
rtf: "rtf";
|
|
129
|
+
wpd: "wpd";
|
|
130
|
+
}>;
|
|
131
|
+
xml: z.ZodString;
|
|
132
|
+
}, z.core.$strict>>;
|
|
73
133
|
}, z.core.$strict>;
|
|
74
134
|
type AnchorDescriptor = z.infer<typeof AnchorDescriptorSchema>;
|
|
75
135
|
declare const LinkTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -90,6 +150,26 @@ declare const LinkDescriptorSchema: z.ZodObject<{
|
|
|
90
150
|
anchor: z.ZodString;
|
|
91
151
|
}, z.core.$strict>], "kind">;
|
|
92
152
|
title: z.ZodOptional<z.ZodString>;
|
|
153
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
154
|
+
format: z.ZodEnum<{
|
|
155
|
+
docx: "docx";
|
|
156
|
+
pptx: "pptx";
|
|
157
|
+
xlsx: "xlsx";
|
|
158
|
+
odt: "odt";
|
|
159
|
+
ods: "ods";
|
|
160
|
+
odp: "odp";
|
|
161
|
+
odg: "odg";
|
|
162
|
+
odm: "odm";
|
|
163
|
+
odb: "odb";
|
|
164
|
+
odf: "odf";
|
|
165
|
+
markdown: "markdown";
|
|
166
|
+
pdf: "pdf";
|
|
167
|
+
epub: "epub";
|
|
168
|
+
rtf: "rtf";
|
|
169
|
+
wpd: "wpd";
|
|
170
|
+
}>;
|
|
171
|
+
xml: z.ZodString;
|
|
172
|
+
}, z.core.$strict>>;
|
|
93
173
|
}, z.core.$strict>;
|
|
94
174
|
type LinkDescriptor = z.infer<typeof LinkDescriptorSchema>;
|
|
95
175
|
declare const ProvenanceChangeSchema: z.ZodEnum<{
|
|
@@ -111,6 +191,26 @@ declare const ProvenanceDescriptorSchema: z.ZodObject<{
|
|
|
111
191
|
}>;
|
|
112
192
|
author: z.ZodOptional<z.ZodString>;
|
|
113
193
|
dateIso: z.ZodOptional<z.ZodString>;
|
|
194
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
format: z.ZodEnum<{
|
|
196
|
+
docx: "docx";
|
|
197
|
+
pptx: "pptx";
|
|
198
|
+
xlsx: "xlsx";
|
|
199
|
+
odt: "odt";
|
|
200
|
+
ods: "ods";
|
|
201
|
+
odp: "odp";
|
|
202
|
+
odg: "odg";
|
|
203
|
+
odm: "odm";
|
|
204
|
+
odb: "odb";
|
|
205
|
+
odf: "odf";
|
|
206
|
+
markdown: "markdown";
|
|
207
|
+
pdf: "pdf";
|
|
208
|
+
epub: "epub";
|
|
209
|
+
rtf: "rtf";
|
|
210
|
+
wpd: "wpd";
|
|
211
|
+
}>;
|
|
212
|
+
xml: z.ZodString;
|
|
213
|
+
}, z.core.$strict>>;
|
|
114
214
|
}, z.core.$strict>;
|
|
115
215
|
type ProvenanceDescriptor = z.infer<typeof ProvenanceDescriptorSchema>;
|
|
116
216
|
declare const DivisionSourceSchema: z.ZodObject<{
|
|
@@ -123,10 +223,30 @@ declare const DivisionDescriptorSchema: z.ZodObject<{
|
|
|
123
223
|
name: z.ZodOptional<z.ZodString>;
|
|
124
224
|
columnCount: z.ZodOptional<z.ZodNumber>;
|
|
125
225
|
protected: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
-
|
|
226
|
+
linked: z.ZodOptional<z.ZodObject<{
|
|
127
227
|
href: z.ZodString;
|
|
128
228
|
sectionName: z.ZodOptional<z.ZodString>;
|
|
129
229
|
}, z.core.$strict>>;
|
|
230
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
format: z.ZodEnum<{
|
|
232
|
+
docx: "docx";
|
|
233
|
+
pptx: "pptx";
|
|
234
|
+
xlsx: "xlsx";
|
|
235
|
+
odt: "odt";
|
|
236
|
+
ods: "ods";
|
|
237
|
+
odp: "odp";
|
|
238
|
+
odg: "odg";
|
|
239
|
+
odm: "odm";
|
|
240
|
+
odb: "odb";
|
|
241
|
+
odf: "odf";
|
|
242
|
+
markdown: "markdown";
|
|
243
|
+
pdf: "pdf";
|
|
244
|
+
epub: "epub";
|
|
245
|
+
rtf: "rtf";
|
|
246
|
+
wpd: "wpd";
|
|
247
|
+
}>;
|
|
248
|
+
xml: z.ZodString;
|
|
249
|
+
}, z.core.$strict>>;
|
|
130
250
|
}, z.core.$strict>;
|
|
131
251
|
type DivisionDescriptor = z.infer<typeof DivisionDescriptorSchema>;
|
|
132
252
|
declare const ConstructDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -154,10 +274,50 @@ declare const ConstructDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
154
274
|
value: z.ZodOptional<z.ZodString>;
|
|
155
275
|
checked: z.ZodOptional<z.ZodBoolean>;
|
|
156
276
|
options: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
277
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
278
|
+
format: z.ZodEnum<{
|
|
279
|
+
docx: "docx";
|
|
280
|
+
pptx: "pptx";
|
|
281
|
+
xlsx: "xlsx";
|
|
282
|
+
odt: "odt";
|
|
283
|
+
ods: "ods";
|
|
284
|
+
odp: "odp";
|
|
285
|
+
odg: "odg";
|
|
286
|
+
odm: "odm";
|
|
287
|
+
odb: "odb";
|
|
288
|
+
odf: "odf";
|
|
289
|
+
markdown: "markdown";
|
|
290
|
+
pdf: "pdf";
|
|
291
|
+
epub: "epub";
|
|
292
|
+
rtf: "rtf";
|
|
293
|
+
wpd: "wpd";
|
|
294
|
+
}>;
|
|
295
|
+
xml: z.ZodString;
|
|
296
|
+
}, z.core.$strict>>;
|
|
157
297
|
}, z.core.$strict>, z.ZodObject<{
|
|
158
298
|
kind: z.ZodLiteral<"field">;
|
|
159
299
|
instruction: z.ZodString;
|
|
160
300
|
cachedResult: z.ZodOptional<z.ZodString>;
|
|
301
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
302
|
+
format: z.ZodEnum<{
|
|
303
|
+
docx: "docx";
|
|
304
|
+
pptx: "pptx";
|
|
305
|
+
xlsx: "xlsx";
|
|
306
|
+
odt: "odt";
|
|
307
|
+
ods: "ods";
|
|
308
|
+
odp: "odp";
|
|
309
|
+
odg: "odg";
|
|
310
|
+
odm: "odm";
|
|
311
|
+
odb: "odb";
|
|
312
|
+
odf: "odf";
|
|
313
|
+
markdown: "markdown";
|
|
314
|
+
pdf: "pdf";
|
|
315
|
+
epub: "epub";
|
|
316
|
+
rtf: "rtf";
|
|
317
|
+
wpd: "wpd";
|
|
318
|
+
}>;
|
|
319
|
+
xml: z.ZodString;
|
|
320
|
+
}, z.core.$strict>>;
|
|
161
321
|
}, z.core.$strict>, z.ZodObject<{
|
|
162
322
|
kind: z.ZodLiteral<"anchor">;
|
|
163
323
|
anchorType: z.ZodEnum<{
|
|
@@ -168,6 +328,26 @@ declare const ConstructDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
168
328
|
}>;
|
|
169
329
|
name: z.ZodString;
|
|
170
330
|
definition: z.ZodOptional<z.ZodString>;
|
|
331
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
332
|
+
format: z.ZodEnum<{
|
|
333
|
+
docx: "docx";
|
|
334
|
+
pptx: "pptx";
|
|
335
|
+
xlsx: "xlsx";
|
|
336
|
+
odt: "odt";
|
|
337
|
+
ods: "ods";
|
|
338
|
+
odp: "odp";
|
|
339
|
+
odg: "odg";
|
|
340
|
+
odm: "odm";
|
|
341
|
+
odb: "odb";
|
|
342
|
+
odf: "odf";
|
|
343
|
+
markdown: "markdown";
|
|
344
|
+
pdf: "pdf";
|
|
345
|
+
epub: "epub";
|
|
346
|
+
rtf: "rtf";
|
|
347
|
+
wpd: "wpd";
|
|
348
|
+
}>;
|
|
349
|
+
xml: z.ZodString;
|
|
350
|
+
}, z.core.$strict>>;
|
|
171
351
|
}, z.core.$strict>, z.ZodObject<{
|
|
172
352
|
kind: z.ZodLiteral<"link">;
|
|
173
353
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -178,6 +358,26 @@ declare const ConstructDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
178
358
|
anchor: z.ZodString;
|
|
179
359
|
}, z.core.$strict>], "kind">;
|
|
180
360
|
title: z.ZodOptional<z.ZodString>;
|
|
361
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
362
|
+
format: z.ZodEnum<{
|
|
363
|
+
docx: "docx";
|
|
364
|
+
pptx: "pptx";
|
|
365
|
+
xlsx: "xlsx";
|
|
366
|
+
odt: "odt";
|
|
367
|
+
ods: "ods";
|
|
368
|
+
odp: "odp";
|
|
369
|
+
odg: "odg";
|
|
370
|
+
odm: "odm";
|
|
371
|
+
odb: "odb";
|
|
372
|
+
odf: "odf";
|
|
373
|
+
markdown: "markdown";
|
|
374
|
+
pdf: "pdf";
|
|
375
|
+
epub: "epub";
|
|
376
|
+
rtf: "rtf";
|
|
377
|
+
wpd: "wpd";
|
|
378
|
+
}>;
|
|
379
|
+
xml: z.ZodString;
|
|
380
|
+
}, z.core.$strict>>;
|
|
181
381
|
}, z.core.$strict>, z.ZodObject<{
|
|
182
382
|
kind: z.ZodLiteral<"provenance">;
|
|
183
383
|
change: z.ZodEnum<{
|
|
@@ -189,15 +389,55 @@ declare const ConstructDescriptorSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
189
389
|
}>;
|
|
190
390
|
author: z.ZodOptional<z.ZodString>;
|
|
191
391
|
dateIso: z.ZodOptional<z.ZodString>;
|
|
392
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
393
|
+
format: z.ZodEnum<{
|
|
394
|
+
docx: "docx";
|
|
395
|
+
pptx: "pptx";
|
|
396
|
+
xlsx: "xlsx";
|
|
397
|
+
odt: "odt";
|
|
398
|
+
ods: "ods";
|
|
399
|
+
odp: "odp";
|
|
400
|
+
odg: "odg";
|
|
401
|
+
odm: "odm";
|
|
402
|
+
odb: "odb";
|
|
403
|
+
odf: "odf";
|
|
404
|
+
markdown: "markdown";
|
|
405
|
+
pdf: "pdf";
|
|
406
|
+
epub: "epub";
|
|
407
|
+
rtf: "rtf";
|
|
408
|
+
wpd: "wpd";
|
|
409
|
+
}>;
|
|
410
|
+
xml: z.ZodString;
|
|
411
|
+
}, z.core.$strict>>;
|
|
192
412
|
}, z.core.$strict>, z.ZodObject<{
|
|
193
413
|
kind: z.ZodLiteral<"division">;
|
|
194
414
|
name: z.ZodOptional<z.ZodString>;
|
|
195
415
|
columnCount: z.ZodOptional<z.ZodNumber>;
|
|
196
416
|
protected: z.ZodOptional<z.ZodBoolean>;
|
|
197
|
-
|
|
417
|
+
linked: z.ZodOptional<z.ZodObject<{
|
|
198
418
|
href: z.ZodString;
|
|
199
419
|
sectionName: z.ZodOptional<z.ZodString>;
|
|
200
420
|
}, z.core.$strict>>;
|
|
421
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
422
|
+
format: z.ZodEnum<{
|
|
423
|
+
docx: "docx";
|
|
424
|
+
pptx: "pptx";
|
|
425
|
+
xlsx: "xlsx";
|
|
426
|
+
odt: "odt";
|
|
427
|
+
ods: "ods";
|
|
428
|
+
odp: "odp";
|
|
429
|
+
odg: "odg";
|
|
430
|
+
odm: "odm";
|
|
431
|
+
odb: "odb";
|
|
432
|
+
odf: "odf";
|
|
433
|
+
markdown: "markdown";
|
|
434
|
+
pdf: "pdf";
|
|
435
|
+
epub: "epub";
|
|
436
|
+
rtf: "rtf";
|
|
437
|
+
wpd: "wpd";
|
|
438
|
+
}>;
|
|
439
|
+
xml: z.ZodString;
|
|
440
|
+
}, z.core.$strict>>;
|
|
201
441
|
}, z.core.$strict>], "kind">;
|
|
202
442
|
type ConstructDescriptor = z.infer<typeof ConstructDescriptorSchema>;
|
|
203
443
|
//#endregion
|