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
|
@@ -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
|
package/dist/construct.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_source = require("./source.cjs");
|
|
2
3
|
let zod = require("zod");
|
|
3
4
|
//#region src/construct.ts
|
|
4
5
|
const ContentControlTypeSchema = zod.z.enum([
|
|
@@ -27,12 +28,14 @@ const ContentControlDescriptorSchema = zod.z.strictObject({
|
|
|
27
28
|
lock: ContentControlLockSchema.optional(),
|
|
28
29
|
value: zod.z.string().optional(),
|
|
29
30
|
checked: zod.z.boolean().optional(),
|
|
30
|
-
options: zod.z.array(zod.z.string()).optional()
|
|
31
|
+
options: zod.z.array(zod.z.string()).optional(),
|
|
32
|
+
source: require_source.SourceResidueSchema.optional()
|
|
31
33
|
});
|
|
32
34
|
const FieldDescriptorSchema = zod.z.strictObject({
|
|
33
35
|
kind: zod.z.literal("field"),
|
|
34
36
|
instruction: zod.z.string(),
|
|
35
|
-
cachedResult: zod.z.string().optional()
|
|
37
|
+
cachedResult: zod.z.string().optional(),
|
|
38
|
+
source: require_source.SourceResidueSchema.optional()
|
|
36
39
|
});
|
|
37
40
|
const AnchorTypeSchema = zod.z.enum([
|
|
38
41
|
"bookmark",
|
|
@@ -44,7 +47,8 @@ const AnchorDescriptorSchema = zod.z.strictObject({
|
|
|
44
47
|
kind: zod.z.literal("anchor"),
|
|
45
48
|
anchorType: AnchorTypeSchema,
|
|
46
49
|
name: zod.z.string(),
|
|
47
|
-
definition: zod.z.string().optional()
|
|
50
|
+
definition: zod.z.string().optional(),
|
|
51
|
+
source: require_source.SourceResidueSchema.optional()
|
|
48
52
|
});
|
|
49
53
|
const LinkTargetSchema = zod.z.discriminatedUnion("kind", [zod.z.strictObject({
|
|
50
54
|
kind: zod.z.literal("external"),
|
|
@@ -56,7 +60,8 @@ const LinkTargetSchema = zod.z.discriminatedUnion("kind", [zod.z.strictObject({
|
|
|
56
60
|
const LinkDescriptorSchema = zod.z.strictObject({
|
|
57
61
|
kind: zod.z.literal("link"),
|
|
58
62
|
target: LinkTargetSchema,
|
|
59
|
-
title: zod.z.string().optional()
|
|
63
|
+
title: zod.z.string().optional(),
|
|
64
|
+
source: require_source.SourceResidueSchema.optional()
|
|
60
65
|
});
|
|
61
66
|
const ProvenanceChangeSchema = zod.z.enum([
|
|
62
67
|
"insertion",
|
|
@@ -69,7 +74,8 @@ const ProvenanceDescriptorSchema = zod.z.strictObject({
|
|
|
69
74
|
kind: zod.z.literal("provenance"),
|
|
70
75
|
change: ProvenanceChangeSchema,
|
|
71
76
|
author: zod.z.string().optional(),
|
|
72
|
-
dateIso: zod.z.string().optional()
|
|
77
|
+
dateIso: zod.z.string().optional(),
|
|
78
|
+
source: require_source.SourceResidueSchema.optional()
|
|
73
79
|
});
|
|
74
80
|
const DivisionSourceSchema = zod.z.strictObject({
|
|
75
81
|
href: zod.z.string(),
|
|
@@ -80,7 +86,8 @@ const DivisionDescriptorSchema = zod.z.strictObject({
|
|
|
80
86
|
name: zod.z.string().optional(),
|
|
81
87
|
columnCount: zod.z.number().int().positive().optional(),
|
|
82
88
|
protected: zod.z.boolean().optional(),
|
|
83
|
-
|
|
89
|
+
linked: DivisionSourceSchema.optional(),
|
|
90
|
+
source: require_source.SourceResidueSchema.optional()
|
|
84
91
|
});
|
|
85
92
|
const ConstructDescriptorSchema = zod.z.discriminatedUnion("kind", [
|
|
86
93
|
ContentControlDescriptorSchema,
|
package/dist/construct.d.cts
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.cjs";
|
|
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 };
|
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 };
|
package/dist/construct.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SourceResidueSchema } from "./source.js";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
//#region src/construct.ts
|
|
3
4
|
const ContentControlTypeSchema = z.enum([
|
|
@@ -26,12 +27,14 @@ const ContentControlDescriptorSchema = z.strictObject({
|
|
|
26
27
|
lock: ContentControlLockSchema.optional(),
|
|
27
28
|
value: z.string().optional(),
|
|
28
29
|
checked: z.boolean().optional(),
|
|
29
|
-
options: z.array(z.string()).optional()
|
|
30
|
+
options: z.array(z.string()).optional(),
|
|
31
|
+
source: SourceResidueSchema.optional()
|
|
30
32
|
});
|
|
31
33
|
const FieldDescriptorSchema = z.strictObject({
|
|
32
34
|
kind: z.literal("field"),
|
|
33
35
|
instruction: z.string(),
|
|
34
|
-
cachedResult: z.string().optional()
|
|
36
|
+
cachedResult: z.string().optional(),
|
|
37
|
+
source: SourceResidueSchema.optional()
|
|
35
38
|
});
|
|
36
39
|
const AnchorTypeSchema = z.enum([
|
|
37
40
|
"bookmark",
|
|
@@ -43,7 +46,8 @@ const AnchorDescriptorSchema = z.strictObject({
|
|
|
43
46
|
kind: z.literal("anchor"),
|
|
44
47
|
anchorType: AnchorTypeSchema,
|
|
45
48
|
name: z.string(),
|
|
46
|
-
definition: z.string().optional()
|
|
49
|
+
definition: z.string().optional(),
|
|
50
|
+
source: SourceResidueSchema.optional()
|
|
47
51
|
});
|
|
48
52
|
const LinkTargetSchema = z.discriminatedUnion("kind", [z.strictObject({
|
|
49
53
|
kind: z.literal("external"),
|
|
@@ -55,7 +59,8 @@ const LinkTargetSchema = z.discriminatedUnion("kind", [z.strictObject({
|
|
|
55
59
|
const LinkDescriptorSchema = z.strictObject({
|
|
56
60
|
kind: z.literal("link"),
|
|
57
61
|
target: LinkTargetSchema,
|
|
58
|
-
title: z.string().optional()
|
|
62
|
+
title: z.string().optional(),
|
|
63
|
+
source: SourceResidueSchema.optional()
|
|
59
64
|
});
|
|
60
65
|
const ProvenanceChangeSchema = z.enum([
|
|
61
66
|
"insertion",
|
|
@@ -68,7 +73,8 @@ const ProvenanceDescriptorSchema = z.strictObject({
|
|
|
68
73
|
kind: z.literal("provenance"),
|
|
69
74
|
change: ProvenanceChangeSchema,
|
|
70
75
|
author: z.string().optional(),
|
|
71
|
-
dateIso: z.string().optional()
|
|
76
|
+
dateIso: z.string().optional(),
|
|
77
|
+
source: SourceResidueSchema.optional()
|
|
72
78
|
});
|
|
73
79
|
const DivisionSourceSchema = z.strictObject({
|
|
74
80
|
href: z.string(),
|
|
@@ -79,7 +85,8 @@ const DivisionDescriptorSchema = z.strictObject({
|
|
|
79
85
|
name: z.string().optional(),
|
|
80
86
|
columnCount: z.number().int().positive().optional(),
|
|
81
87
|
protected: z.boolean().optional(),
|
|
82
|
-
|
|
88
|
+
linked: DivisionSourceSchema.optional(),
|
|
89
|
+
source: SourceResidueSchema.optional()
|
|
83
90
|
});
|
|
84
91
|
const ConstructDescriptorSchema = z.discriminatedUnion("kind", [
|
|
85
92
|
ContentControlDescriptorSchema,
|