document-content-model 4.0.0 → 4.2.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 +95 -6
- package/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/construct-ETSlnMle.d.cts +204 -0
- package/dist/construct-ETSlnMle.d.ts +204 -0
- package/dist/construct.cjs +106 -0
- package/dist/construct.d.cts +2 -0
- package/dist/construct.d.ts +2 -0
- package/dist/construct.js +93 -0
- package/dist/{content-BN0PWqpt.d.cts → content-BLwxI5ba.d.cts} +97 -9
- package/dist/{content-CiZf6Fqn.d.ts → content-BdzcBsxm.d.ts} +97 -9
- package/dist/content-json-schema-defs.cjs +256 -4
- package/dist/content-json-schema-defs.js +256 -4
- package/dist/content.cjs +32 -0
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +28 -1
- package/dist/definitions.d.cts +1 -1
- package/dist/definitions.d.ts +1 -1
- package/dist/index.cjs +25 -0
- package/dist/index.d.cts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -3
- package/dist/{math-B7gZJeND.d.cts → math-BlG8Tjk-.d.cts} +3 -3
- package/dist/{math-B7gZJeND.d.ts → math-BlG8Tjk-.d.ts} +3 -3
- package/dist/math.d.cts +1 -1
- package/dist/math.d.ts +1 -1
- package/dist/{package-node-Bt4_XS3d.d.ts → package-node-CmNXOetG.d.ts} +72 -54
- package/dist/{package-node-Bz55gXHd.d.cts → package-node-CtvgL_ON.d.cts} +72 -54
- package/dist/package-node.cjs +32 -12
- package/dist/package-node.d.cts +2 -2
- package/dist/package-node.d.ts +2 -2
- package/dist/package-node.js +28 -14
- package/dist/package.cjs +4 -1
- package/dist/package.d.cts +52 -7
- package/dist/package.d.ts +52 -7
- package/dist/package.js +4 -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 +399 -7
- package/schemas/document-package.schema.json +534 -7
package/dist/package.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-B1oTCtzc.cjs";
|
|
2
|
-
import { s as MathExpression } from "./math-
|
|
3
|
-
import {
|
|
2
|
+
import { s as MathExpression } from "./math-BlG8Tjk-.cjs";
|
|
3
|
+
import { B as SheetGroupNode, O as SectionGroupNode, W as SlideGroupNode, i as DrawPageGroupNode } from "./package-node-CtvgL_ON.cjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/package.d.ts
|
|
6
6
|
declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -44,6 +44,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
44
44
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
45
45
|
kind: z.ZodString;
|
|
46
46
|
}, z.core.$loose>>>;
|
|
47
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
48
|
+
kind: z.ZodString;
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
51
|
+
kind: z.ZodString;
|
|
52
|
+
}, z.core.$loose>>>;
|
|
53
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
54
|
+
kind: z.ZodString;
|
|
55
|
+
}, z.core.$loose>>>;
|
|
47
56
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
48
57
|
symbols: z.ZodArray<z.ZodObject<{
|
|
49
58
|
glyph: z.ZodString;
|
|
@@ -58,9 +67,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
58
67
|
symbol: z.ZodString;
|
|
59
68
|
name: z.ZodOptional<z.ZodString>;
|
|
60
69
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
61
|
-
time: "time";
|
|
62
70
|
length: "length";
|
|
63
71
|
mass: "mass";
|
|
72
|
+
time: "time";
|
|
64
73
|
electricCurrent: "electricCurrent";
|
|
65
74
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
66
75
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -139,6 +148,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
139
148
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
140
149
|
kind: z.ZodString;
|
|
141
150
|
}, z.core.$loose>>>;
|
|
151
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
152
|
+
kind: z.ZodString;
|
|
153
|
+
}, z.core.$loose>>>;
|
|
154
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
155
|
+
kind: z.ZodString;
|
|
156
|
+
}, z.core.$loose>>>;
|
|
157
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
158
|
+
kind: z.ZodString;
|
|
159
|
+
}, z.core.$loose>>>;
|
|
142
160
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
143
161
|
symbols: z.ZodArray<z.ZodObject<{
|
|
144
162
|
glyph: z.ZodString;
|
|
@@ -153,9 +171,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
153
171
|
symbol: z.ZodString;
|
|
154
172
|
name: z.ZodOptional<z.ZodString>;
|
|
155
173
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
156
|
-
time: "time";
|
|
157
174
|
length: "length";
|
|
158
175
|
mass: "mass";
|
|
176
|
+
time: "time";
|
|
159
177
|
electricCurrent: "electricCurrent";
|
|
160
178
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
161
179
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -234,6 +252,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
234
252
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
235
253
|
kind: z.ZodString;
|
|
236
254
|
}, z.core.$loose>>>;
|
|
255
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
256
|
+
kind: z.ZodString;
|
|
257
|
+
}, z.core.$loose>>>;
|
|
258
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
259
|
+
kind: z.ZodString;
|
|
260
|
+
}, z.core.$loose>>>;
|
|
261
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
262
|
+
kind: z.ZodString;
|
|
263
|
+
}, z.core.$loose>>>;
|
|
237
264
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
238
265
|
symbols: z.ZodArray<z.ZodObject<{
|
|
239
266
|
glyph: z.ZodString;
|
|
@@ -248,9 +275,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
248
275
|
symbol: z.ZodString;
|
|
249
276
|
name: z.ZodOptional<z.ZodString>;
|
|
250
277
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
251
|
-
time: "time";
|
|
252
278
|
length: "length";
|
|
253
279
|
mass: "mass";
|
|
280
|
+
time: "time";
|
|
254
281
|
electricCurrent: "electricCurrent";
|
|
255
282
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
256
283
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -329,6 +356,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
329
356
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
330
357
|
kind: z.ZodString;
|
|
331
358
|
}, z.core.$loose>>>;
|
|
359
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
360
|
+
kind: z.ZodString;
|
|
361
|
+
}, z.core.$loose>>>;
|
|
362
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
363
|
+
kind: z.ZodString;
|
|
364
|
+
}, z.core.$loose>>>;
|
|
365
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
366
|
+
kind: z.ZodString;
|
|
367
|
+
}, z.core.$loose>>>;
|
|
332
368
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
333
369
|
symbols: z.ZodArray<z.ZodObject<{
|
|
334
370
|
glyph: z.ZodString;
|
|
@@ -343,9 +379,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
343
379
|
symbol: z.ZodString;
|
|
344
380
|
name: z.ZodOptional<z.ZodString>;
|
|
345
381
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
346
|
-
time: "time";
|
|
347
382
|
length: "length";
|
|
348
383
|
mass: "mass";
|
|
384
|
+
time: "time";
|
|
349
385
|
electricCurrent: "electricCurrent";
|
|
350
386
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
351
387
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -436,6 +472,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
436
472
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
437
473
|
kind: z.ZodString;
|
|
438
474
|
}, z.core.$loose>>>;
|
|
475
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
476
|
+
kind: z.ZodString;
|
|
477
|
+
}, z.core.$loose>>>;
|
|
478
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
479
|
+
kind: z.ZodString;
|
|
480
|
+
}, z.core.$loose>>>;
|
|
481
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
482
|
+
kind: z.ZodString;
|
|
483
|
+
}, z.core.$loose>>>;
|
|
439
484
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
440
485
|
symbols: z.ZodArray<z.ZodObject<{
|
|
441
486
|
glyph: z.ZodString;
|
|
@@ -450,9 +495,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
450
495
|
symbol: z.ZodString;
|
|
451
496
|
name: z.ZodOptional<z.ZodString>;
|
|
452
497
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
453
|
-
time: "time";
|
|
454
498
|
length: "length";
|
|
455
499
|
mass: "mass";
|
|
500
|
+
time: "time";
|
|
456
501
|
electricCurrent: "electricCurrent";
|
|
457
502
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
458
503
|
amountOfSubstance: "amountOfSubstance";
|
package/dist/package.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-B1oTCtzc.js";
|
|
2
|
-
import { s as MathExpression } from "./math-
|
|
3
|
-
import {
|
|
2
|
+
import { s as MathExpression } from "./math-BlG8Tjk-.js";
|
|
3
|
+
import { B as SheetGroupNode, O as SectionGroupNode, W as SlideGroupNode, i as DrawPageGroupNode } from "./package-node-CmNXOetG.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/package.d.ts
|
|
6
6
|
declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -44,6 +44,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
44
44
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
45
45
|
kind: z.ZodString;
|
|
46
46
|
}, z.core.$loose>>>;
|
|
47
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
48
|
+
kind: z.ZodString;
|
|
49
|
+
}, z.core.$loose>>>;
|
|
50
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
51
|
+
kind: z.ZodString;
|
|
52
|
+
}, z.core.$loose>>>;
|
|
53
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
54
|
+
kind: z.ZodString;
|
|
55
|
+
}, z.core.$loose>>>;
|
|
47
56
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
48
57
|
symbols: z.ZodArray<z.ZodObject<{
|
|
49
58
|
glyph: z.ZodString;
|
|
@@ -58,9 +67,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
58
67
|
symbol: z.ZodString;
|
|
59
68
|
name: z.ZodOptional<z.ZodString>;
|
|
60
69
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
61
|
-
time: "time";
|
|
62
70
|
length: "length";
|
|
63
71
|
mass: "mass";
|
|
72
|
+
time: "time";
|
|
64
73
|
electricCurrent: "electricCurrent";
|
|
65
74
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
66
75
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -139,6 +148,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
139
148
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
140
149
|
kind: z.ZodString;
|
|
141
150
|
}, z.core.$loose>>>;
|
|
151
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
152
|
+
kind: z.ZodString;
|
|
153
|
+
}, z.core.$loose>>>;
|
|
154
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
155
|
+
kind: z.ZodString;
|
|
156
|
+
}, z.core.$loose>>>;
|
|
157
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
158
|
+
kind: z.ZodString;
|
|
159
|
+
}, z.core.$loose>>>;
|
|
142
160
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
143
161
|
symbols: z.ZodArray<z.ZodObject<{
|
|
144
162
|
glyph: z.ZodString;
|
|
@@ -153,9 +171,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
153
171
|
symbol: z.ZodString;
|
|
154
172
|
name: z.ZodOptional<z.ZodString>;
|
|
155
173
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
156
|
-
time: "time";
|
|
157
174
|
length: "length";
|
|
158
175
|
mass: "mass";
|
|
176
|
+
time: "time";
|
|
159
177
|
electricCurrent: "electricCurrent";
|
|
160
178
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
161
179
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -234,6 +252,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
234
252
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
235
253
|
kind: z.ZodString;
|
|
236
254
|
}, z.core.$loose>>>;
|
|
255
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
256
|
+
kind: z.ZodString;
|
|
257
|
+
}, z.core.$loose>>>;
|
|
258
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
259
|
+
kind: z.ZodString;
|
|
260
|
+
}, z.core.$loose>>>;
|
|
261
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
262
|
+
kind: z.ZodString;
|
|
263
|
+
}, z.core.$loose>>>;
|
|
237
264
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
238
265
|
symbols: z.ZodArray<z.ZodObject<{
|
|
239
266
|
glyph: z.ZodString;
|
|
@@ -248,9 +275,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
248
275
|
symbol: z.ZodString;
|
|
249
276
|
name: z.ZodOptional<z.ZodString>;
|
|
250
277
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
251
|
-
time: "time";
|
|
252
278
|
length: "length";
|
|
253
279
|
mass: "mass";
|
|
280
|
+
time: "time";
|
|
254
281
|
electricCurrent: "electricCurrent";
|
|
255
282
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
256
283
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -329,6 +356,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
329
356
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
330
357
|
kind: z.ZodString;
|
|
331
358
|
}, z.core.$loose>>>;
|
|
359
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
360
|
+
kind: z.ZodString;
|
|
361
|
+
}, z.core.$loose>>>;
|
|
362
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
363
|
+
kind: z.ZodString;
|
|
364
|
+
}, z.core.$loose>>>;
|
|
365
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
366
|
+
kind: z.ZodString;
|
|
367
|
+
}, z.core.$loose>>>;
|
|
332
368
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
333
369
|
symbols: z.ZodArray<z.ZodObject<{
|
|
334
370
|
glyph: z.ZodString;
|
|
@@ -343,9 +379,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
343
379
|
symbol: z.ZodString;
|
|
344
380
|
name: z.ZodOptional<z.ZodString>;
|
|
345
381
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
346
|
-
time: "time";
|
|
347
382
|
length: "length";
|
|
348
383
|
mass: "mass";
|
|
384
|
+
time: "time";
|
|
349
385
|
electricCurrent: "electricCurrent";
|
|
350
386
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
351
387
|
amountOfSubstance: "amountOfSubstance";
|
|
@@ -436,6 +472,15 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
436
472
|
definitions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
437
473
|
kind: z.ZodString;
|
|
438
474
|
}, z.core.$loose>>>;
|
|
475
|
+
layers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
476
|
+
kind: z.ZodString;
|
|
477
|
+
}, z.core.$loose>>>;
|
|
478
|
+
attachments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
479
|
+
kind: z.ZodString;
|
|
480
|
+
}, z.core.$loose>>>;
|
|
481
|
+
destinations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
482
|
+
kind: z.ZodString;
|
|
483
|
+
}, z.core.$loose>>>;
|
|
439
484
|
symbolTable: z.ZodOptional<z.ZodObject<{
|
|
440
485
|
symbols: z.ZodArray<z.ZodObject<{
|
|
441
486
|
glyph: z.ZodString;
|
|
@@ -450,9 +495,9 @@ declare const DocumentPackageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
450
495
|
symbol: z.ZodString;
|
|
451
496
|
name: z.ZodOptional<z.ZodString>;
|
|
452
497
|
dimension: z.ZodRecord<z.ZodEnum<{
|
|
453
|
-
time: "time";
|
|
454
498
|
length: "length";
|
|
455
499
|
mass: "mass";
|
|
500
|
+
time: "time";
|
|
456
501
|
electricCurrent: "electricCurrent";
|
|
457
502
|
thermodynamicTemperature: "thermodynamicTemperature";
|
|
458
503
|
amountOfSubstance: "amountOfSubstance";
|
package/dist/package.js
CHANGED
|
@@ -10,7 +10,10 @@ const packageEnvelopeFields = {
|
|
|
10
10
|
...contentDocumentSharedFields,
|
|
11
11
|
pages: z.array(PageSizeSchema).optional(),
|
|
12
12
|
styles: StylesTableSchema.optional(),
|
|
13
|
-
definitions: DefinitionsTableSchema.optional()
|
|
13
|
+
definitions: DefinitionsTableSchema.optional(),
|
|
14
|
+
layers: DefinitionsTableSchema.optional(),
|
|
15
|
+
attachments: DefinitionsTableSchema.optional(),
|
|
16
|
+
destinations: DefinitionsTableSchema.optional()
|
|
14
17
|
};
|
|
15
18
|
const DocumentPackageSchema = z.discriminatedUnion("kind", [
|
|
16
19
|
z.object({
|
package/dist/schema-io.cjs
CHANGED
|
@@ -7,7 +7,7 @@ const SCHEMA_FILE_NAMES = {
|
|
|
7
7
|
ContentDocument: "content-document.schema.json"
|
|
8
8
|
};
|
|
9
9
|
function schemaUriFor(kind) {
|
|
10
|
-
return `https://cdn.jsdelivr.net/npm/document-schema.js@4.
|
|
10
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@4.2.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
11
11
|
}
|
|
12
12
|
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-package|content-document|layout-document)\.schema\.json$/;
|
|
13
13
|
function parseSchemaUri(uri) {
|
|
@@ -93,7 +93,7 @@ function documentFromJson(value) {
|
|
|
93
93
|
if (parts.stem === "layout-document") throw new LayoutSchemaDemotedError(value.$schema);
|
|
94
94
|
const kind = kindForFileStem(parts.stem);
|
|
95
95
|
if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
96
|
-
if (majorVersionOf(parts.version) !== majorVersionOf("4.
|
|
96
|
+
if (majorVersionOf(parts.version) !== majorVersionOf("4.2.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "4.2.0");
|
|
97
97
|
switch (kind) {
|
|
98
98
|
case "DocumentPackage": return {
|
|
99
99
|
kind,
|
package/dist/schema-io.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as ContentDocument } from "./content-BLwxI5ba.cjs";
|
|
2
2
|
import { DocumentPackage } from "./package.cjs";
|
|
3
3
|
//#region src/schema-io.d.ts
|
|
4
4
|
type DocumentSchemaKind = 'DocumentPackage' | 'ContentDocument';
|
package/dist/schema-io.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as ContentDocument } from "./content-BdzcBsxm.js";
|
|
2
2
|
import { DocumentPackage } from "./package.js";
|
|
3
3
|
//#region src/schema-io.d.ts
|
|
4
4
|
type DocumentSchemaKind = 'DocumentPackage' | 'ContentDocument';
|
package/dist/schema-io.js
CHANGED
|
@@ -6,7 +6,7 @@ const SCHEMA_FILE_NAMES = {
|
|
|
6
6
|
ContentDocument: "content-document.schema.json"
|
|
7
7
|
};
|
|
8
8
|
function schemaUriFor(kind) {
|
|
9
|
-
return `https://cdn.jsdelivr.net/npm/document-schema.js@4.
|
|
9
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@4.2.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
10
10
|
}
|
|
11
11
|
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-package|content-document|layout-document)\.schema\.json$/;
|
|
12
12
|
function parseSchemaUri(uri) {
|
|
@@ -92,7 +92,7 @@ function documentFromJson(value) {
|
|
|
92
92
|
if (parts.stem === "layout-document") throw new LayoutSchemaDemotedError(value.$schema);
|
|
93
93
|
const kind = kindForFileStem(parts.stem);
|
|
94
94
|
if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
95
|
-
if (majorVersionOf(parts.version) !== majorVersionOf("4.
|
|
95
|
+
if (majorVersionOf(parts.version) !== majorVersionOf("4.2.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "4.2.0");
|
|
96
96
|
switch (kind) {
|
|
97
97
|
case "DocumentPackage": return {
|
|
98
98
|
kind,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-content-model",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "The canonical, format-agnostic content and document-package schemas shared by ooxml.js, odf.js, documents.js, pdf-codec, and markdown-codec -- pure Zod schemas, no behaviour.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|