document-content-model 4.3.3 → 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-CdQuI9f5.d.cts → construct-GVdTKrE7.d.cts} +245 -5
- package/dist/{construct-CdQuI9f5.d.ts → construct-GVdTKrE7.d.ts} +245 -5
- 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-B7b_P3FC.d.cts +0 -2481
- package/dist/content-Dn7uoJFG.d.ts +0 -2481
- package/dist/package-node-CC-FE2zS.d.cts +0 -459
- package/dist/package-node-DxdparRh.d.ts +0 -459
package/dist/package.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { d as MathMlNode } from "./mathml-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { d as MathMlNode } from "./mathml-Czqc1mdZ.js";
|
|
2
|
+
import { p as MathExpression } from "./math-BScHxedi.js";
|
|
3
|
+
import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-C4mh1hLY.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/package.d.ts
|
|
6
|
-
declare const
|
|
6
|
+
declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
7
|
children: z.ZodArray<z.ZodCustom<SectionGroupNode, SectionGroupNode>>;
|
|
8
8
|
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
9
|
widthPt: z.ZodNumber;
|
|
@@ -20,12 +20,24 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
20
20
|
list: z.ZodOptional<z.ZodObject<{
|
|
21
21
|
numId: z.ZodOptional<z.ZodString>;
|
|
22
22
|
level: z.ZodNumber;
|
|
23
|
+
checked: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
26
|
+
bullet: "bullet";
|
|
27
|
+
decimal: "decimal";
|
|
28
|
+
lowerLetter: "lowerLetter";
|
|
29
|
+
upperLetter: "upperLetter";
|
|
30
|
+
lowerRoman: "lowerRoman";
|
|
31
|
+
upperRoman: "upperRoman";
|
|
32
|
+
}>>;
|
|
23
33
|
}, z.core.$strip>>;
|
|
24
34
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
25
35
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
26
36
|
lineSpacing: z.ZodOptional<z.ZodNumber>;
|
|
27
37
|
indentLeftPt: z.ZodOptional<z.ZodNumber>;
|
|
28
38
|
indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
pageBreakBefore: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
pageBreakAfter: z.ZodOptional<z.ZodBoolean>;
|
|
29
41
|
}, z.core.$strict>>;
|
|
30
42
|
run: z.ZodOptional<z.ZodObject<{
|
|
31
43
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -53,6 +65,26 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
53
65
|
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
54
66
|
kind: z.ZodString;
|
|
55
67
|
}, z.core.$loose>>>;
|
|
68
|
+
source: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
69
|
+
format: z.ZodEnum<{
|
|
70
|
+
docx: "docx";
|
|
71
|
+
pptx: "pptx";
|
|
72
|
+
xlsx: "xlsx";
|
|
73
|
+
odt: "odt";
|
|
74
|
+
ods: "ods";
|
|
75
|
+
odp: "odp";
|
|
76
|
+
odg: "odg";
|
|
77
|
+
odm: "odm";
|
|
78
|
+
odb: "odb";
|
|
79
|
+
odf: "odf";
|
|
80
|
+
markdown: "markdown";
|
|
81
|
+
pdf: "pdf";
|
|
82
|
+
epub: "epub";
|
|
83
|
+
rtf: "rtf";
|
|
84
|
+
wpd: "wpd";
|
|
85
|
+
}>;
|
|
86
|
+
xml: z.ZodString;
|
|
87
|
+
}, z.core.$strict>>>;
|
|
56
88
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
57
89
|
symbols: z.ZodArray<z.ZodObject<{
|
|
58
90
|
glyph: z.ZodString;
|
|
@@ -105,6 +137,19 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
105
137
|
producer: z.ZodOptional<z.ZodString>;
|
|
106
138
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
107
139
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
140
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
141
|
+
language: z.ZodOptional<z.ZodString>;
|
|
142
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
143
|
+
ltr: "ltr";
|
|
144
|
+
rtl: "rtl";
|
|
145
|
+
}>>;
|
|
146
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
147
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
148
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
149
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
150
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
151
|
+
company: z.ZodOptional<z.ZodString>;
|
|
152
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
108
153
|
}, z.core.$strip>;
|
|
109
154
|
kind: z.ZodLiteral<"wordprocessing">;
|
|
110
155
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -124,12 +169,24 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
124
169
|
list: z.ZodOptional<z.ZodObject<{
|
|
125
170
|
numId: z.ZodOptional<z.ZodString>;
|
|
126
171
|
level: z.ZodNumber;
|
|
172
|
+
checked: z.ZodOptional<z.ZodBoolean>;
|
|
173
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
174
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
175
|
+
bullet: "bullet";
|
|
176
|
+
decimal: "decimal";
|
|
177
|
+
lowerLetter: "lowerLetter";
|
|
178
|
+
upperLetter: "upperLetter";
|
|
179
|
+
lowerRoman: "lowerRoman";
|
|
180
|
+
upperRoman: "upperRoman";
|
|
181
|
+
}>>;
|
|
127
182
|
}, z.core.$strip>>;
|
|
128
183
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
129
184
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
130
185
|
lineSpacing: z.ZodOptional<z.ZodNumber>;
|
|
131
186
|
indentLeftPt: z.ZodOptional<z.ZodNumber>;
|
|
132
187
|
indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
|
|
188
|
+
pageBreakBefore: z.ZodOptional<z.ZodBoolean>;
|
|
189
|
+
pageBreakAfter: z.ZodOptional<z.ZodBoolean>;
|
|
133
190
|
}, z.core.$strict>>;
|
|
134
191
|
run: z.ZodOptional<z.ZodObject<{
|
|
135
192
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -157,6 +214,26 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
157
214
|
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
158
215
|
kind: z.ZodString;
|
|
159
216
|
}, z.core.$loose>>>;
|
|
217
|
+
source: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
218
|
+
format: z.ZodEnum<{
|
|
219
|
+
docx: "docx";
|
|
220
|
+
pptx: "pptx";
|
|
221
|
+
xlsx: "xlsx";
|
|
222
|
+
odt: "odt";
|
|
223
|
+
ods: "ods";
|
|
224
|
+
odp: "odp";
|
|
225
|
+
odg: "odg";
|
|
226
|
+
odm: "odm";
|
|
227
|
+
odb: "odb";
|
|
228
|
+
odf: "odf";
|
|
229
|
+
markdown: "markdown";
|
|
230
|
+
pdf: "pdf";
|
|
231
|
+
epub: "epub";
|
|
232
|
+
rtf: "rtf";
|
|
233
|
+
wpd: "wpd";
|
|
234
|
+
}>;
|
|
235
|
+
xml: z.ZodString;
|
|
236
|
+
}, z.core.$strict>>>;
|
|
160
237
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
161
238
|
symbols: z.ZodArray<z.ZodObject<{
|
|
162
239
|
glyph: z.ZodString;
|
|
@@ -209,6 +286,19 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
209
286
|
producer: z.ZodOptional<z.ZodString>;
|
|
210
287
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
211
288
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
289
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
290
|
+
language: z.ZodOptional<z.ZodString>;
|
|
291
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
292
|
+
ltr: "ltr";
|
|
293
|
+
rtl: "rtl";
|
|
294
|
+
}>>;
|
|
295
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
296
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
297
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
298
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
299
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
300
|
+
company: z.ZodOptional<z.ZodString>;
|
|
301
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
212
302
|
}, z.core.$strip>;
|
|
213
303
|
kind: z.ZodLiteral<"presentation">;
|
|
214
304
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -228,12 +318,24 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
228
318
|
list: z.ZodOptional<z.ZodObject<{
|
|
229
319
|
numId: z.ZodOptional<z.ZodString>;
|
|
230
320
|
level: z.ZodNumber;
|
|
321
|
+
checked: z.ZodOptional<z.ZodBoolean>;
|
|
322
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
323
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
324
|
+
bullet: "bullet";
|
|
325
|
+
decimal: "decimal";
|
|
326
|
+
lowerLetter: "lowerLetter";
|
|
327
|
+
upperLetter: "upperLetter";
|
|
328
|
+
lowerRoman: "lowerRoman";
|
|
329
|
+
upperRoman: "upperRoman";
|
|
330
|
+
}>>;
|
|
231
331
|
}, z.core.$strip>>;
|
|
232
332
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
233
333
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
234
334
|
lineSpacing: z.ZodOptional<z.ZodNumber>;
|
|
235
335
|
indentLeftPt: z.ZodOptional<z.ZodNumber>;
|
|
236
336
|
indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
|
|
337
|
+
pageBreakBefore: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
pageBreakAfter: z.ZodOptional<z.ZodBoolean>;
|
|
237
339
|
}, z.core.$strict>>;
|
|
238
340
|
run: z.ZodOptional<z.ZodObject<{
|
|
239
341
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -261,6 +363,26 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
261
363
|
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
262
364
|
kind: z.ZodString;
|
|
263
365
|
}, z.core.$loose>>>;
|
|
366
|
+
source: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
367
|
+
format: z.ZodEnum<{
|
|
368
|
+
docx: "docx";
|
|
369
|
+
pptx: "pptx";
|
|
370
|
+
xlsx: "xlsx";
|
|
371
|
+
odt: "odt";
|
|
372
|
+
ods: "ods";
|
|
373
|
+
odp: "odp";
|
|
374
|
+
odg: "odg";
|
|
375
|
+
odm: "odm";
|
|
376
|
+
odb: "odb";
|
|
377
|
+
odf: "odf";
|
|
378
|
+
markdown: "markdown";
|
|
379
|
+
pdf: "pdf";
|
|
380
|
+
epub: "epub";
|
|
381
|
+
rtf: "rtf";
|
|
382
|
+
wpd: "wpd";
|
|
383
|
+
}>;
|
|
384
|
+
xml: z.ZodString;
|
|
385
|
+
}, z.core.$strict>>>;
|
|
264
386
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
265
387
|
symbols: z.ZodArray<z.ZodObject<{
|
|
266
388
|
glyph: z.ZodString;
|
|
@@ -313,6 +435,19 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
313
435
|
producer: z.ZodOptional<z.ZodString>;
|
|
314
436
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
315
437
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
438
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
439
|
+
language: z.ZodOptional<z.ZodString>;
|
|
440
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
441
|
+
ltr: "ltr";
|
|
442
|
+
rtl: "rtl";
|
|
443
|
+
}>>;
|
|
444
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
445
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
446
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
447
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
448
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
449
|
+
company: z.ZodOptional<z.ZodString>;
|
|
450
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
316
451
|
}, z.core.$strip>;
|
|
317
452
|
kind: z.ZodLiteral<"spreadsheet">;
|
|
318
453
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -332,12 +467,24 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
332
467
|
list: z.ZodOptional<z.ZodObject<{
|
|
333
468
|
numId: z.ZodOptional<z.ZodString>;
|
|
334
469
|
level: z.ZodNumber;
|
|
470
|
+
checked: z.ZodOptional<z.ZodBoolean>;
|
|
471
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
472
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
473
|
+
bullet: "bullet";
|
|
474
|
+
decimal: "decimal";
|
|
475
|
+
lowerLetter: "lowerLetter";
|
|
476
|
+
upperLetter: "upperLetter";
|
|
477
|
+
lowerRoman: "lowerRoman";
|
|
478
|
+
upperRoman: "upperRoman";
|
|
479
|
+
}>>;
|
|
335
480
|
}, z.core.$strip>>;
|
|
336
481
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
337
482
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
338
483
|
lineSpacing: z.ZodOptional<z.ZodNumber>;
|
|
339
484
|
indentLeftPt: z.ZodOptional<z.ZodNumber>;
|
|
340
485
|
indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
|
|
486
|
+
pageBreakBefore: z.ZodOptional<z.ZodBoolean>;
|
|
487
|
+
pageBreakAfter: z.ZodOptional<z.ZodBoolean>;
|
|
341
488
|
}, z.core.$strict>>;
|
|
342
489
|
run: z.ZodOptional<z.ZodObject<{
|
|
343
490
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -365,6 +512,26 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
365
512
|
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
366
513
|
kind: z.ZodString;
|
|
367
514
|
}, z.core.$loose>>>;
|
|
515
|
+
source: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
516
|
+
format: z.ZodEnum<{
|
|
517
|
+
docx: "docx";
|
|
518
|
+
pptx: "pptx";
|
|
519
|
+
xlsx: "xlsx";
|
|
520
|
+
odt: "odt";
|
|
521
|
+
ods: "ods";
|
|
522
|
+
odp: "odp";
|
|
523
|
+
odg: "odg";
|
|
524
|
+
odm: "odm";
|
|
525
|
+
odb: "odb";
|
|
526
|
+
odf: "odf";
|
|
527
|
+
markdown: "markdown";
|
|
528
|
+
pdf: "pdf";
|
|
529
|
+
epub: "epub";
|
|
530
|
+
rtf: "rtf";
|
|
531
|
+
wpd: "wpd";
|
|
532
|
+
}>;
|
|
533
|
+
xml: z.ZodString;
|
|
534
|
+
}, z.core.$strict>>>;
|
|
368
535
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
369
536
|
symbols: z.ZodArray<z.ZodObject<{
|
|
370
537
|
glyph: z.ZodString;
|
|
@@ -417,21 +584,54 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
417
584
|
producer: z.ZodOptional<z.ZodString>;
|
|
418
585
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
419
586
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
587
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
588
|
+
language: z.ZodOptional<z.ZodString>;
|
|
589
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
590
|
+
ltr: "ltr";
|
|
591
|
+
rtl: "rtl";
|
|
592
|
+
}>>;
|
|
593
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
594
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
595
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
596
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
597
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
598
|
+
company: z.ZodOptional<z.ZodString>;
|
|
599
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
420
600
|
}, z.core.$strip>;
|
|
421
601
|
kind: z.ZodLiteral<"drawing">;
|
|
422
602
|
}, z.core.$strip>, z.ZodObject<{
|
|
423
603
|
children: z.ZodArray<z.ZodObject<{
|
|
424
|
-
mathml: z.ZodArray<z.
|
|
604
|
+
mathml: z.ZodArray<z.ZodType<MathMlNode, MathMlNode, z.core.$ZodTypeInternals<MathMlNode, MathMlNode>>>;
|
|
425
605
|
starMath: z.ZodOptional<z.ZodString>;
|
|
426
606
|
presentation: z.ZodOptional<z.ZodObject<{
|
|
427
607
|
latex: z.ZodString;
|
|
428
608
|
}, z.core.$strip>>;
|
|
429
|
-
content: z.ZodOptional<z.
|
|
609
|
+
content: z.ZodOptional<z.ZodType<MathExpression, MathExpression, z.core.$ZodTypeInternals<MathExpression, MathExpression>>>;
|
|
430
610
|
provenance: z.ZodOptional<z.ZodObject<{
|
|
431
611
|
source: z.ZodString;
|
|
432
612
|
pageRef: z.ZodOptional<z.ZodString>;
|
|
433
613
|
editTrail: z.ZodArray<z.ZodString>;
|
|
434
614
|
}, z.core.$strip>>;
|
|
615
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
616
|
+
format: z.ZodEnum<{
|
|
617
|
+
docx: "docx";
|
|
618
|
+
pptx: "pptx";
|
|
619
|
+
xlsx: "xlsx";
|
|
620
|
+
odt: "odt";
|
|
621
|
+
ods: "ods";
|
|
622
|
+
odp: "odp";
|
|
623
|
+
odg: "odg";
|
|
624
|
+
odm: "odm";
|
|
625
|
+
odb: "odb";
|
|
626
|
+
odf: "odf";
|
|
627
|
+
markdown: "markdown";
|
|
628
|
+
pdf: "pdf";
|
|
629
|
+
epub: "epub";
|
|
630
|
+
rtf: "rtf";
|
|
631
|
+
wpd: "wpd";
|
|
632
|
+
}>;
|
|
633
|
+
xml: z.ZodString;
|
|
634
|
+
}, z.core.$strict>>;
|
|
435
635
|
}, z.core.$strip>>;
|
|
436
636
|
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
437
637
|
widthPt: z.ZodNumber;
|
|
@@ -448,12 +648,24 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
448
648
|
list: z.ZodOptional<z.ZodObject<{
|
|
449
649
|
numId: z.ZodOptional<z.ZodString>;
|
|
450
650
|
level: z.ZodNumber;
|
|
651
|
+
checked: z.ZodOptional<z.ZodBoolean>;
|
|
652
|
+
itemId: z.ZodOptional<z.ZodString>;
|
|
653
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
654
|
+
bullet: "bullet";
|
|
655
|
+
decimal: "decimal";
|
|
656
|
+
lowerLetter: "lowerLetter";
|
|
657
|
+
upperLetter: "upperLetter";
|
|
658
|
+
lowerRoman: "lowerRoman";
|
|
659
|
+
upperRoman: "upperRoman";
|
|
660
|
+
}>>;
|
|
451
661
|
}, z.core.$strip>>;
|
|
452
662
|
spacingBeforePt: z.ZodOptional<z.ZodNumber>;
|
|
453
663
|
spacingAfterPt: z.ZodOptional<z.ZodNumber>;
|
|
454
664
|
lineSpacing: z.ZodOptional<z.ZodNumber>;
|
|
455
665
|
indentLeftPt: z.ZodOptional<z.ZodNumber>;
|
|
456
666
|
indentFirstLinePt: z.ZodOptional<z.ZodNumber>;
|
|
667
|
+
pageBreakBefore: z.ZodOptional<z.ZodBoolean>;
|
|
668
|
+
pageBreakAfter: z.ZodOptional<z.ZodBoolean>;
|
|
457
669
|
}, z.core.$strict>>;
|
|
458
670
|
run: z.ZodOptional<z.ZodObject<{
|
|
459
671
|
bold: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -481,6 +693,26 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
481
693
|
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
482
694
|
kind: z.ZodString;
|
|
483
695
|
}, z.core.$loose>>>;
|
|
696
|
+
source: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
697
|
+
format: z.ZodEnum<{
|
|
698
|
+
docx: "docx";
|
|
699
|
+
pptx: "pptx";
|
|
700
|
+
xlsx: "xlsx";
|
|
701
|
+
odt: "odt";
|
|
702
|
+
ods: "ods";
|
|
703
|
+
odp: "odp";
|
|
704
|
+
odg: "odg";
|
|
705
|
+
odm: "odm";
|
|
706
|
+
odb: "odb";
|
|
707
|
+
odf: "odf";
|
|
708
|
+
markdown: "markdown";
|
|
709
|
+
pdf: "pdf";
|
|
710
|
+
epub: "epub";
|
|
711
|
+
rtf: "rtf";
|
|
712
|
+
wpd: "wpd";
|
|
713
|
+
}>;
|
|
714
|
+
xml: z.ZodString;
|
|
715
|
+
}, z.core.$strict>>>;
|
|
484
716
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
485
717
|
symbols: z.ZodArray<z.ZodObject<{
|
|
486
718
|
glyph: z.ZodString;
|
|
@@ -533,9 +765,22 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
533
765
|
producer: z.ZodOptional<z.ZodString>;
|
|
534
766
|
createdIso: z.ZodOptional<z.ZodString>;
|
|
535
767
|
modifiedIso: z.ZodOptional<z.ZodString>;
|
|
768
|
+
lastPrintedIso: z.ZodOptional<z.ZodString>;
|
|
769
|
+
language: z.ZodOptional<z.ZodString>;
|
|
770
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
771
|
+
ltr: "ltr";
|
|
772
|
+
rtl: "rtl";
|
|
773
|
+
}>>;
|
|
774
|
+
publisher: z.ZodOptional<z.ZodString>;
|
|
775
|
+
contributor: z.ZodOptional<z.ZodString>;
|
|
776
|
+
rights: z.ZodOptional<z.ZodString>;
|
|
777
|
+
identifier: z.ZodOptional<z.ZodString>;
|
|
778
|
+
comments: z.ZodOptional<z.ZodString>;
|
|
779
|
+
company: z.ZodOptional<z.ZodString>;
|
|
780
|
+
manager: z.ZodOptional<z.ZodString>;
|
|
536
781
|
}, z.core.$strip>;
|
|
537
782
|
kind: z.ZodLiteral<"formula">;
|
|
538
783
|
}, z.core.$strip>], "kind">;
|
|
539
|
-
type
|
|
784
|
+
type DocumentTree = z.infer<typeof DocumentTreeSchema>;
|
|
540
785
|
//#endregion
|
|
541
|
-
export {
|
|
786
|
+
export { DocumentTree, DocumentTreeSchema };
|
package/dist/package.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SourceResidueSchema } from "./source.js";
|
|
1
2
|
import { PageSizeSchema } from "./geometry.js";
|
|
2
3
|
import { LayoutMetadataSchema } from "./metadata.js";
|
|
3
4
|
import { ContentFormulaSchema, contentDocumentSharedFields } from "./content.js";
|
|
@@ -13,9 +14,10 @@ const packageEnvelopeFields = {
|
|
|
13
14
|
definitions: DefinitionsTableSchema.optional(),
|
|
14
15
|
layers: DefinitionsTableSchema.optional(),
|
|
15
16
|
attachments: DefinitionsTableSchema.optional(),
|
|
16
|
-
destinations: DefinitionsTableSchema.optional()
|
|
17
|
+
destinations: DefinitionsTableSchema.optional(),
|
|
18
|
+
source: z.record(z.string(), SourceResidueSchema).optional()
|
|
17
19
|
};
|
|
18
|
-
const
|
|
20
|
+
const DocumentTreeSchema = z.discriminatedUnion("kind", [
|
|
19
21
|
z.object({
|
|
20
22
|
kind: z.literal("wordprocessing"),
|
|
21
23
|
...packageEnvelopeFields,
|
|
@@ -43,4 +45,4 @@ const DocumentPackageSchema = z.discriminatedUnion("kind", [
|
|
|
43
45
|
})
|
|
44
46
|
]);
|
|
45
47
|
//#endregion
|
|
46
|
-
export {
|
|
48
|
+
export { DocumentTreeSchema };
|
package/dist/schema-io.cjs
CHANGED
|
@@ -3,13 +3,13 @@ const require_content = require("./content.cjs");
|
|
|
3
3
|
const require_package = require("./package.cjs");
|
|
4
4
|
//#region src/schema-io.ts
|
|
5
5
|
const SCHEMA_FILE_NAMES = {
|
|
6
|
-
|
|
6
|
+
DocumentTree: "document-tree.schema.json",
|
|
7
7
|
ContentDocument: "content-document.schema.json"
|
|
8
8
|
};
|
|
9
9
|
function schemaUriFor(kind) {
|
|
10
|
-
return `https://cdn.jsdelivr.net/npm/document-schema.js@
|
|
10
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.6.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
11
11
|
}
|
|
12
|
-
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-package|content-document|layout-document)\.schema\.json$/;
|
|
12
|
+
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
|
|
13
13
|
function parseSchemaUri(uri) {
|
|
14
14
|
const match = SCHEMA_URI_PATTERN.exec(uri);
|
|
15
15
|
if (match === null) return void 0;
|
|
@@ -23,7 +23,7 @@ function parseSchemaUri(uri) {
|
|
|
23
23
|
}
|
|
24
24
|
function kindForFileStem(stem) {
|
|
25
25
|
switch (stem) {
|
|
26
|
-
case "document-
|
|
26
|
+
case "document-tree": return "DocumentTree";
|
|
27
27
|
case "content-document": return "ContentDocument";
|
|
28
28
|
default: return;
|
|
29
29
|
}
|
|
@@ -43,9 +43,9 @@ function documentSchemaKindOf(value) {
|
|
|
43
43
|
if (parts === void 0) return void 0;
|
|
44
44
|
return kindForFileStem(parts.stem);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function documentTreeWithSchema(value) {
|
|
47
47
|
return {
|
|
48
|
-
$schema: schemaUriFor("
|
|
48
|
+
$schema: schemaUriFor("DocumentTree"),
|
|
49
49
|
...value
|
|
50
50
|
};
|
|
51
51
|
}
|
|
@@ -71,6 +71,14 @@ var LayoutSchemaDemotedError = class extends Error {
|
|
|
71
71
|
this.schema = schema;
|
|
72
72
|
}
|
|
73
73
|
};
|
|
74
|
+
var DocumentPackageRenamedError = class extends Error {
|
|
75
|
+
schema;
|
|
76
|
+
constructor(schema) {
|
|
77
|
+
super(`documentFromJson: this value is a document-package dump (${schema}), and DocumentPackage was renamed to DocumentTree in document-schema.js 5.0.0 (ExaDev/documents.js#661). Read it with a document-schema.js 4.x release, or re-dump it with a 5.x release.`);
|
|
78
|
+
this.name = "DocumentPackageRenamedError";
|
|
79
|
+
this.schema = schema;
|
|
80
|
+
}
|
|
81
|
+
};
|
|
74
82
|
var SchemaVersionMismatchError = class extends Error {
|
|
75
83
|
schema;
|
|
76
84
|
dumpVersion;
|
|
@@ -79,7 +87,7 @@ var SchemaVersionMismatchError = class extends Error {
|
|
|
79
87
|
const dumpMajor = majorVersionOf(dumpVersion);
|
|
80
88
|
const installedMajor = majorVersionOf(installedVersion);
|
|
81
89
|
const isOlder = dumpMajor !== void 0 && installedMajor !== void 0 && dumpMajor < installedMajor;
|
|
82
|
-
super(`documentFromJson: this dump's $schema pins document-schema.js@${dumpVersion}, but the installed release is @${installedVersion}, and a dump only parses under the major that wrote it.` + (isOlder ? ` Dumps from before 4.0.0 carry the retired formatVersion field and (for packages) the flat { formatVersion, content, pages } shape, replaced in 4.0.0 by the tree-form
|
|
90
|
+
super(`documentFromJson: this dump's $schema pins document-schema.js@${dumpVersion}, but the installed release is @${installedVersion}, and a dump only parses under the major that wrote it.` + (isOlder ? ` Dumps from before 4.0.0 carry the retired formatVersion field and (for packages) the flat { formatVersion, content, pages } shape, replaced in 4.0.0 by the tree-form DocumentTree (ExaDev/document-schema.js#20, named DocumentPackage before ExaDev/documents.js#661's 5.0.0 rename). Re-dump the value with a release matching its own major, or parse it with the release that produced it.` : ` Upgrade document-schema.js to read it.`));
|
|
83
91
|
this.name = "SchemaVersionMismatchError";
|
|
84
92
|
this.schema = schema;
|
|
85
93
|
this.dumpVersion = dumpVersion;
|
|
@@ -91,13 +99,14 @@ function documentFromJson(value) {
|
|
|
91
99
|
const parts = parseSchemaUri(value.$schema);
|
|
92
100
|
if (parts === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
93
101
|
if (parts.stem === "layout-document") throw new LayoutSchemaDemotedError(value.$schema);
|
|
102
|
+
if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
|
|
94
103
|
const kind = kindForFileStem(parts.stem);
|
|
95
104
|
if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
96
|
-
if (majorVersionOf(parts.version) !== majorVersionOf("
|
|
105
|
+
if (majorVersionOf(parts.version) !== majorVersionOf("7.6.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.6.0");
|
|
97
106
|
switch (kind) {
|
|
98
|
-
case "
|
|
107
|
+
case "DocumentTree": return {
|
|
99
108
|
kind,
|
|
100
|
-
value: require_package.
|
|
109
|
+
value: require_package.DocumentTreeSchema.parse(value)
|
|
101
110
|
};
|
|
102
111
|
case "ContentDocument": return {
|
|
103
112
|
kind,
|
|
@@ -106,12 +115,13 @@ function documentFromJson(value) {
|
|
|
106
115
|
}
|
|
107
116
|
}
|
|
108
117
|
//#endregion
|
|
118
|
+
exports.DocumentPackageRenamedError = DocumentPackageRenamedError;
|
|
109
119
|
exports.LayoutSchemaDemotedError = LayoutSchemaDemotedError;
|
|
110
120
|
exports.SCHEMA_FILE_NAMES = SCHEMA_FILE_NAMES;
|
|
111
121
|
exports.SchemaVersionMismatchError = SchemaVersionMismatchError;
|
|
112
122
|
exports.UnrecognizedDocumentSchemaError = UnrecognizedDocumentSchemaError;
|
|
113
123
|
exports.contentDocumentWithSchema = contentDocumentWithSchema;
|
|
114
124
|
exports.documentFromJson = documentFromJson;
|
|
115
|
-
exports.documentPackageWithSchema = documentPackageWithSchema;
|
|
116
125
|
exports.documentSchemaKindOf = documentSchemaKindOf;
|
|
126
|
+
exports.documentTreeWithSchema = documentTreeWithSchema;
|
|
117
127
|
exports.schemaUriFor = schemaUriFor;
|
package/dist/schema-io.d.cts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { b as ContentDocument } from "./content-BzkhrS6P.cjs";
|
|
2
|
+
import { DocumentTree } from "./package.cjs";
|
|
3
3
|
//#region src/schema-io.d.ts
|
|
4
|
-
type DocumentSchemaKind =
|
|
4
|
+
type DocumentSchemaKind = "DocumentTree" | "ContentDocument";
|
|
5
5
|
declare const SCHEMA_FILE_NAMES: Record<DocumentSchemaKind, string>;
|
|
6
6
|
declare function schemaUriFor(kind: DocumentSchemaKind): string;
|
|
7
7
|
declare function documentSchemaKindOf(value: unknown): DocumentSchemaKind | undefined;
|
|
8
|
-
type
|
|
8
|
+
type DocumentTreeJson = DocumentTree & {
|
|
9
9
|
readonly $schema: string;
|
|
10
10
|
};
|
|
11
11
|
type ContentDocumentJson = ContentDocument & {
|
|
12
12
|
readonly $schema: string;
|
|
13
13
|
};
|
|
14
|
-
declare function
|
|
14
|
+
declare function documentTreeWithSchema(value: DocumentTree): DocumentTreeJson;
|
|
15
15
|
declare function contentDocumentWithSchema(value: ContentDocument): ContentDocumentJson;
|
|
16
16
|
declare class UnrecognizedDocumentSchemaError extends Error {
|
|
17
17
|
readonly schema: unknown;
|
|
@@ -21,6 +21,10 @@ declare class LayoutSchemaDemotedError extends Error {
|
|
|
21
21
|
readonly schema: string;
|
|
22
22
|
constructor(schema: string);
|
|
23
23
|
}
|
|
24
|
+
declare class DocumentPackageRenamedError extends Error {
|
|
25
|
+
readonly schema: string;
|
|
26
|
+
constructor(schema: string);
|
|
27
|
+
}
|
|
24
28
|
declare class SchemaVersionMismatchError extends Error {
|
|
25
29
|
readonly schema: string;
|
|
26
30
|
readonly dumpVersion: string;
|
|
@@ -28,12 +32,12 @@ declare class SchemaVersionMismatchError extends Error {
|
|
|
28
32
|
constructor(schema: string, dumpVersion: string, installedVersion: string);
|
|
29
33
|
}
|
|
30
34
|
type DocumentJsonResult = {
|
|
31
|
-
kind:
|
|
32
|
-
value:
|
|
35
|
+
kind: "DocumentTree";
|
|
36
|
+
value: DocumentTree;
|
|
33
37
|
} | {
|
|
34
|
-
kind:
|
|
38
|
+
kind: "ContentDocument";
|
|
35
39
|
value: ContentDocument;
|
|
36
40
|
};
|
|
37
41
|
declare function documentFromJson(value: unknown): DocumentJsonResult;
|
|
38
42
|
//#endregion
|
|
39
|
-
export { ContentDocumentJson, DocumentJsonResult,
|
|
43
|
+
export { ContentDocumentJson, DocumentJsonResult, DocumentPackageRenamedError, DocumentSchemaKind, DocumentTreeJson, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, schemaUriFor };
|
package/dist/schema-io.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { b as ContentDocument } from "./content-BCOxY0Eb.js";
|
|
2
|
+
import { DocumentTree } from "./package.js";
|
|
3
3
|
//#region src/schema-io.d.ts
|
|
4
|
-
type DocumentSchemaKind =
|
|
4
|
+
type DocumentSchemaKind = "DocumentTree" | "ContentDocument";
|
|
5
5
|
declare const SCHEMA_FILE_NAMES: Record<DocumentSchemaKind, string>;
|
|
6
6
|
declare function schemaUriFor(kind: DocumentSchemaKind): string;
|
|
7
7
|
declare function documentSchemaKindOf(value: unknown): DocumentSchemaKind | undefined;
|
|
8
|
-
type
|
|
8
|
+
type DocumentTreeJson = DocumentTree & {
|
|
9
9
|
readonly $schema: string;
|
|
10
10
|
};
|
|
11
11
|
type ContentDocumentJson = ContentDocument & {
|
|
12
12
|
readonly $schema: string;
|
|
13
13
|
};
|
|
14
|
-
declare function
|
|
14
|
+
declare function documentTreeWithSchema(value: DocumentTree): DocumentTreeJson;
|
|
15
15
|
declare function contentDocumentWithSchema(value: ContentDocument): ContentDocumentJson;
|
|
16
16
|
declare class UnrecognizedDocumentSchemaError extends Error {
|
|
17
17
|
readonly schema: unknown;
|
|
@@ -21,6 +21,10 @@ declare class LayoutSchemaDemotedError extends Error {
|
|
|
21
21
|
readonly schema: string;
|
|
22
22
|
constructor(schema: string);
|
|
23
23
|
}
|
|
24
|
+
declare class DocumentPackageRenamedError extends Error {
|
|
25
|
+
readonly schema: string;
|
|
26
|
+
constructor(schema: string);
|
|
27
|
+
}
|
|
24
28
|
declare class SchemaVersionMismatchError extends Error {
|
|
25
29
|
readonly schema: string;
|
|
26
30
|
readonly dumpVersion: string;
|
|
@@ -28,12 +32,12 @@ declare class SchemaVersionMismatchError extends Error {
|
|
|
28
32
|
constructor(schema: string, dumpVersion: string, installedVersion: string);
|
|
29
33
|
}
|
|
30
34
|
type DocumentJsonResult = {
|
|
31
|
-
kind:
|
|
32
|
-
value:
|
|
35
|
+
kind: "DocumentTree";
|
|
36
|
+
value: DocumentTree;
|
|
33
37
|
} | {
|
|
34
|
-
kind:
|
|
38
|
+
kind: "ContentDocument";
|
|
35
39
|
value: ContentDocument;
|
|
36
40
|
};
|
|
37
41
|
declare function documentFromJson(value: unknown): DocumentJsonResult;
|
|
38
42
|
//#endregion
|
|
39
|
-
export { ContentDocumentJson, DocumentJsonResult,
|
|
43
|
+
export { ContentDocumentJson, DocumentJsonResult, DocumentPackageRenamedError, DocumentSchemaKind, DocumentTreeJson, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, schemaUriFor };
|