document-schema 7.9.1 → 7.11.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/dist/codec.d.cts +1 -1
- package/dist/codec.d.ts +1 -1
- package/dist/{construct-C9cYkjnd.d.ts → construct-GVdTKrE7.d.ts} +3 -3
- package/dist/construct.d.ts +1 -1
- package/dist/{content-B6SPQuuq.d.ts → content-Ck4LdLBJ.d.ts} +25 -3
- package/dist/{content-VhC4WCbj.d.cts → content-JJrcHjkR.d.cts} +25 -3
- package/dist/content-json-schema-defs.cjs +18 -0
- package/dist/content-json-schema-defs.js +18 -0
- package/dist/content.cjs +2 -0
- package/dist/content.d.cts +1 -1
- package/dist/content.d.ts +1 -1
- package/dist/content.js +2 -0
- package/dist/decompose.d.cts +2 -2
- package/dist/decompose.d.ts +2 -2
- package/dist/definitions.d.cts +1 -1
- package/dist/definitions.d.ts +1 -1
- package/dist/factor-styles.cjs +2 -1
- package/dist/factor-styles.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/factor-styles.js +2 -1
- package/dist/flatten.d.cts +1 -1
- package/dist/flatten.d.ts +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/{package-node-mRax-XfS.d.ts → package-node-BGyYUU-O.d.ts} +14 -8
- package/dist/{package-node-ChC2_Itm.d.cts → package-node-CzUJ6jKN.d.cts} +13 -7
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package.cjs +8 -0
- package/dist/package.d.cts +39 -2
- package/dist/package.d.ts +39 -2
- package/dist/package.js +8 -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 +73 -13
- package/schemas/document-tree.schema.json +63 -3
package/dist/package.d.ts
CHANGED
|
@@ -1,14 +1,27 @@
|
|
|
1
1
|
import { d as MathMlNode } from "./mathml-Czqc1mdZ.js";
|
|
2
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-
|
|
3
|
+
import { I as SlideGroupNode, M as SheetGroupNode, b as SectionGroupNode, i as DrawPageGroupNode } from "./package-node-BGyYUU-O.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/package.d.ts
|
|
6
|
+
declare const TreeEmbeddedFontSchema: z.ZodObject<{
|
|
7
|
+
family: z.ZodString;
|
|
8
|
+
bold: z.ZodBoolean;
|
|
9
|
+
italic: z.ZodBoolean;
|
|
10
|
+
base64: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
type TreeEmbeddedFont = z.infer<typeof TreeEmbeddedFontSchema>;
|
|
6
13
|
declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7
14
|
children: z.ZodArray<z.ZodCustom<SectionGroupNode, SectionGroupNode>>;
|
|
8
15
|
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
16
|
widthPt: z.ZodNumber;
|
|
10
17
|
heightPt: z.ZodNumber;
|
|
11
18
|
}, z.core.$strip>>>;
|
|
19
|
+
fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
|
+
family: z.ZodString;
|
|
21
|
+
bold: z.ZodBoolean;
|
|
22
|
+
italic: z.ZodBoolean;
|
|
23
|
+
base64: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
12
25
|
styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
13
26
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
14
27
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -158,6 +171,12 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
158
171
|
widthPt: z.ZodNumber;
|
|
159
172
|
heightPt: z.ZodNumber;
|
|
160
173
|
}, z.core.$strip>>>;
|
|
174
|
+
fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
175
|
+
family: z.ZodString;
|
|
176
|
+
bold: z.ZodBoolean;
|
|
177
|
+
italic: z.ZodBoolean;
|
|
178
|
+
base64: z.ZodString;
|
|
179
|
+
}, z.core.$strip>>>;
|
|
161
180
|
styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
162
181
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
163
182
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -312,6 +331,12 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
312
331
|
widthPt: z.ZodNumber;
|
|
313
332
|
heightPt: z.ZodNumber;
|
|
314
333
|
}, z.core.$strip>>>;
|
|
334
|
+
fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
335
|
+
family: z.ZodString;
|
|
336
|
+
bold: z.ZodBoolean;
|
|
337
|
+
italic: z.ZodBoolean;
|
|
338
|
+
base64: z.ZodString;
|
|
339
|
+
}, z.core.$strip>>>;
|
|
315
340
|
styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
316
341
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
317
342
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -461,6 +486,12 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
461
486
|
widthPt: z.ZodNumber;
|
|
462
487
|
heightPt: z.ZodNumber;
|
|
463
488
|
}, z.core.$strip>>>;
|
|
489
|
+
fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
490
|
+
family: z.ZodString;
|
|
491
|
+
bold: z.ZodBoolean;
|
|
492
|
+
italic: z.ZodBoolean;
|
|
493
|
+
base64: z.ZodString;
|
|
494
|
+
}, z.core.$strip>>>;
|
|
464
495
|
styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
465
496
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
466
497
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -669,6 +700,12 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
669
700
|
widthPt: z.ZodNumber;
|
|
670
701
|
heightPt: z.ZodNumber;
|
|
671
702
|
}, z.core.$strip>>>;
|
|
703
|
+
fonts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
704
|
+
family: z.ZodString;
|
|
705
|
+
bold: z.ZodBoolean;
|
|
706
|
+
italic: z.ZodBoolean;
|
|
707
|
+
base64: z.ZodString;
|
|
708
|
+
}, z.core.$strip>>>;
|
|
672
709
|
styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
673
710
|
paragraph: z.ZodOptional<z.ZodObject<{
|
|
674
711
|
alignment: z.ZodOptional<z.ZodEnum<{
|
|
@@ -815,4 +852,4 @@ declare const DocumentTreeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
815
852
|
}, z.core.$strip>], "kind">;
|
|
816
853
|
type DocumentTree = z.infer<typeof DocumentTreeSchema>;
|
|
817
854
|
//#endregion
|
|
818
|
-
export { DocumentTree, DocumentTreeSchema };
|
|
855
|
+
export { DocumentTree, DocumentTreeSchema, TreeEmbeddedFont, TreeEmbeddedFontSchema };
|
package/dist/package.js
CHANGED
|
@@ -6,10 +6,17 @@ import { DefinitionsTableSchema, StylesTableSchema } from "./definitions.js";
|
|
|
6
6
|
import { DrawPageGroupSchema, SectionGroupSchema, SheetGroupSchema, SlideGroupSchema } from "./package-node.js";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
//#region src/package.ts
|
|
9
|
+
const TreeEmbeddedFontSchema = z.object({
|
|
10
|
+
family: z.string(),
|
|
11
|
+
bold: z.boolean(),
|
|
12
|
+
italic: z.boolean(),
|
|
13
|
+
base64: z.string()
|
|
14
|
+
});
|
|
9
15
|
const packageEnvelopeFields = {
|
|
10
16
|
metadata: LayoutMetadataSchema,
|
|
11
17
|
...contentDocumentSharedFields,
|
|
12
18
|
pages: z.array(PageSizeSchema).optional(),
|
|
19
|
+
fonts: z.array(TreeEmbeddedFontSchema).optional(),
|
|
13
20
|
styles: StylesTableSchema.optional(),
|
|
14
21
|
definitions: DefinitionsTableSchema.optional(),
|
|
15
22
|
layers: DefinitionsTableSchema.optional(),
|
|
@@ -46,4 +53,4 @@ const DocumentTreeSchema = z.discriminatedUnion("kind", [
|
|
|
46
53
|
})
|
|
47
54
|
]);
|
|
48
55
|
//#endregion
|
|
49
|
-
export { DocumentTreeSchema };
|
|
56
|
+
export { DocumentTreeSchema, TreeEmbeddedFontSchema };
|
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@7.
|
|
10
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
11
11
|
}
|
|
12
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) {
|
|
@@ -102,7 +102,7 @@ function documentFromJson(value) {
|
|
|
102
102
|
if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
|
|
103
103
|
const kind = kindForFileStem(parts.stem);
|
|
104
104
|
if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
105
|
-
if (majorVersionOf(parts.version) !== majorVersionOf("7.
|
|
105
|
+
if (majorVersionOf(parts.version) !== majorVersionOf("7.11.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.11.0");
|
|
106
106
|
switch (kind) {
|
|
107
107
|
case "DocumentTree": return {
|
|
108
108
|
kind,
|
package/dist/schema-io.d.cts
CHANGED
package/dist/schema-io.d.ts
CHANGED
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@7.
|
|
9
|
+
return `https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
|
|
10
10
|
}
|
|
11
11
|
const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-tree|document-package|content-document|layout-document)\.schema\.json$/;
|
|
12
12
|
function parseSchemaUri(uri) {
|
|
@@ -101,7 +101,7 @@ function documentFromJson(value) {
|
|
|
101
101
|
if (parts.stem === "document-package") throw new DocumentPackageRenamedError(value.$schema);
|
|
102
102
|
const kind = kindForFileStem(parts.stem);
|
|
103
103
|
if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
|
|
104
|
-
if (majorVersionOf(parts.version) !== majorVersionOf("7.
|
|
104
|
+
if (majorVersionOf(parts.version) !== majorVersionOf("7.11.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "7.11.0");
|
|
105
105
|
switch (kind) {
|
|
106
106
|
case "DocumentTree": return {
|
|
107
107
|
kind,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-schema",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.11.0",
|
|
4
4
|
"description": "The canonical, format-agnostic content and document-tree schemas shared by ooxml.js, odf.js, documents.js, pdf-codec, and markdown-codec, plus the structural transform between them -- no format-specific or I/O behaviour.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/content-document.schema.json",
|
|
4
4
|
"oneOf": [
|
|
5
5
|
{
|
|
6
6
|
"type": "object",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"blocks": {
|
|
134
134
|
"type": "array",
|
|
135
135
|
"items": {
|
|
136
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
136
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
"breakType": {
|
|
@@ -151,19 +151,19 @@
|
|
|
151
151
|
"default": {
|
|
152
152
|
"type": "array",
|
|
153
153
|
"items": {
|
|
154
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
154
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
157
|
"even": {
|
|
158
158
|
"type": "array",
|
|
159
159
|
"items": {
|
|
160
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
160
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
163
|
"first": {
|
|
164
164
|
"type": "array",
|
|
165
165
|
"items": {
|
|
166
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
166
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
},
|
|
@@ -175,19 +175,43 @@
|
|
|
175
175
|
"default": {
|
|
176
176
|
"type": "array",
|
|
177
177
|
"items": {
|
|
178
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
178
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
181
|
"even": {
|
|
182
182
|
"type": "array",
|
|
183
183
|
"items": {
|
|
184
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
184
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
|
|
185
185
|
}
|
|
186
186
|
},
|
|
187
187
|
"first": {
|
|
188
188
|
"type": "array",
|
|
189
189
|
"items": {
|
|
190
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
190
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
"additionalProperties": false
|
|
195
|
+
},
|
|
196
|
+
"watermarks": {
|
|
197
|
+
"type": "object",
|
|
198
|
+
"properties": {
|
|
199
|
+
"default": {
|
|
200
|
+
"type": "array",
|
|
201
|
+
"items": {
|
|
202
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
"even": {
|
|
206
|
+
"type": "array",
|
|
207
|
+
"items": {
|
|
208
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"first": {
|
|
212
|
+
"type": "array",
|
|
213
|
+
"items": {
|
|
214
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
|
|
191
215
|
}
|
|
192
216
|
}
|
|
193
217
|
},
|
|
@@ -472,6 +496,9 @@
|
|
|
472
496
|
"paintOrder": {
|
|
473
497
|
"type": "number"
|
|
474
498
|
},
|
|
499
|
+
"readingOrder": {
|
|
500
|
+
"type": "number"
|
|
501
|
+
},
|
|
475
502
|
"sourcePath": {
|
|
476
503
|
"type": "string"
|
|
477
504
|
},
|
|
@@ -611,7 +638,7 @@
|
|
|
611
638
|
"blocks": {
|
|
612
639
|
"type": "array",
|
|
613
640
|
"items": {
|
|
614
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
641
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
|
|
615
642
|
}
|
|
616
643
|
}
|
|
617
644
|
},
|
|
@@ -2632,7 +2659,7 @@
|
|
|
2632
2659
|
]
|
|
2633
2660
|
},
|
|
2634
2661
|
"document": {
|
|
2635
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
2662
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/content-document.schema.json"
|
|
2636
2663
|
},
|
|
2637
2664
|
"frame": {
|
|
2638
2665
|
"type": "object",
|
|
@@ -4852,6 +4879,9 @@
|
|
|
4852
4879
|
"paintOrder": {
|
|
4853
4880
|
"type": "number"
|
|
4854
4881
|
},
|
|
4882
|
+
"readingOrder": {
|
|
4883
|
+
"type": "number"
|
|
4884
|
+
},
|
|
4855
4885
|
"sourcePath": {
|
|
4856
4886
|
"type": "string"
|
|
4857
4887
|
},
|
|
@@ -4991,7 +5021,7 @@
|
|
|
4991
5021
|
"blocks": {
|
|
4992
5022
|
"type": "array",
|
|
4993
5023
|
"items": {
|
|
4994
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
5024
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/undefined#/$defs/schema2"
|
|
4995
5025
|
}
|
|
4996
5026
|
}
|
|
4997
5027
|
},
|
|
@@ -7997,7 +8027,7 @@
|
|
|
7997
8027
|
]
|
|
7998
8028
|
},
|
|
7999
8029
|
"document": {
|
|
8000
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
8030
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/content-document.schema.json"
|
|
8001
8031
|
},
|
|
8002
8032
|
"frame": {
|
|
8003
8033
|
"$ref": "#/$defs/Box"
|
|
@@ -8183,6 +8213,9 @@
|
|
|
8183
8213
|
"footers": {
|
|
8184
8214
|
"$ref": "#/$defs/ContentPageFurniture"
|
|
8185
8215
|
},
|
|
8216
|
+
"watermarks": {
|
|
8217
|
+
"$ref": "#/$defs/ContentPageFurniture"
|
|
8218
|
+
},
|
|
8186
8219
|
"source": {
|
|
8187
8220
|
"$ref": "#/$defs/SourceResidue"
|
|
8188
8221
|
},
|
|
@@ -8386,6 +8419,9 @@
|
|
|
8386
8419
|
"paintOrder": {
|
|
8387
8420
|
"type": "number"
|
|
8388
8421
|
},
|
|
8422
|
+
"readingOrder": {
|
|
8423
|
+
"type": "number"
|
|
8424
|
+
},
|
|
8389
8425
|
"sourcePath": {
|
|
8390
8426
|
"type": "string"
|
|
8391
8427
|
},
|
|
@@ -10317,7 +10353,7 @@
|
|
|
10317
10353
|
]
|
|
10318
10354
|
},
|
|
10319
10355
|
"document": {
|
|
10320
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
10356
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/content-document.schema.json"
|
|
10321
10357
|
},
|
|
10322
10358
|
"frame": {
|
|
10323
10359
|
"$ref": "#/$defs/Box"
|
|
@@ -11359,6 +11395,30 @@
|
|
|
11359
11395
|
],
|
|
11360
11396
|
"additionalProperties": false
|
|
11361
11397
|
},
|
|
11398
|
+
"TreeEmbeddedFont": {
|
|
11399
|
+
"type": "object",
|
|
11400
|
+
"properties": {
|
|
11401
|
+
"family": {
|
|
11402
|
+
"type": "string"
|
|
11403
|
+
},
|
|
11404
|
+
"bold": {
|
|
11405
|
+
"type": "boolean"
|
|
11406
|
+
},
|
|
11407
|
+
"italic": {
|
|
11408
|
+
"type": "boolean"
|
|
11409
|
+
},
|
|
11410
|
+
"base64": {
|
|
11411
|
+
"type": "string"
|
|
11412
|
+
}
|
|
11413
|
+
},
|
|
11414
|
+
"required": [
|
|
11415
|
+
"family",
|
|
11416
|
+
"bold",
|
|
11417
|
+
"italic",
|
|
11418
|
+
"base64"
|
|
11419
|
+
],
|
|
11420
|
+
"additionalProperties": false
|
|
11421
|
+
},
|
|
11362
11422
|
"SymbolTable": {
|
|
11363
11423
|
"type": "object",
|
|
11364
11424
|
"properties": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
-
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/document-tree.schema.json",
|
|
4
4
|
"oneOf": [
|
|
5
5
|
{
|
|
6
6
|
"type": "object",
|
|
@@ -100,6 +100,12 @@
|
|
|
100
100
|
"additionalProperties": false
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
|
+
"fonts": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": {
|
|
106
|
+
"$ref": "#/$defs/TreeEmbeddedFont"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
103
109
|
"styles": {
|
|
104
110
|
"type": "object",
|
|
105
111
|
"propertyNames": {
|
|
@@ -296,6 +302,12 @@
|
|
|
296
302
|
"additionalProperties": false
|
|
297
303
|
}
|
|
298
304
|
},
|
|
305
|
+
"fonts": {
|
|
306
|
+
"type": "array",
|
|
307
|
+
"items": {
|
|
308
|
+
"$ref": "#/$defs/TreeEmbeddedFont"
|
|
309
|
+
}
|
|
310
|
+
},
|
|
299
311
|
"styles": {
|
|
300
312
|
"type": "object",
|
|
301
313
|
"propertyNames": {
|
|
@@ -492,6 +504,12 @@
|
|
|
492
504
|
"additionalProperties": false
|
|
493
505
|
}
|
|
494
506
|
},
|
|
507
|
+
"fonts": {
|
|
508
|
+
"type": "array",
|
|
509
|
+
"items": {
|
|
510
|
+
"$ref": "#/$defs/TreeEmbeddedFont"
|
|
511
|
+
}
|
|
512
|
+
},
|
|
495
513
|
"styles": {
|
|
496
514
|
"type": "object",
|
|
497
515
|
"propertyNames": {
|
|
@@ -712,6 +730,12 @@
|
|
|
712
730
|
"additionalProperties": false
|
|
713
731
|
}
|
|
714
732
|
},
|
|
733
|
+
"fonts": {
|
|
734
|
+
"type": "array",
|
|
735
|
+
"items": {
|
|
736
|
+
"$ref": "#/$defs/TreeEmbeddedFont"
|
|
737
|
+
}
|
|
738
|
+
},
|
|
715
739
|
"styles": {
|
|
716
740
|
"type": "object",
|
|
717
741
|
"propertyNames": {
|
|
@@ -908,6 +932,12 @@
|
|
|
908
932
|
"additionalProperties": false
|
|
909
933
|
}
|
|
910
934
|
},
|
|
935
|
+
"fonts": {
|
|
936
|
+
"type": "array",
|
|
937
|
+
"items": {
|
|
938
|
+
"$ref": "#/$defs/TreeEmbeddedFont"
|
|
939
|
+
}
|
|
940
|
+
},
|
|
911
941
|
"styles": {
|
|
912
942
|
"type": "object",
|
|
913
943
|
"propertyNames": {
|
|
@@ -1963,7 +1993,7 @@
|
|
|
1963
1993
|
]
|
|
1964
1994
|
},
|
|
1965
1995
|
"document": {
|
|
1966
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
1996
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/content-document.schema.json"
|
|
1967
1997
|
},
|
|
1968
1998
|
"frame": {
|
|
1969
1999
|
"$ref": "#/$defs/Box"
|
|
@@ -2149,6 +2179,9 @@
|
|
|
2149
2179
|
"footers": {
|
|
2150
2180
|
"$ref": "#/$defs/ContentPageFurniture"
|
|
2151
2181
|
},
|
|
2182
|
+
"watermarks": {
|
|
2183
|
+
"$ref": "#/$defs/ContentPageFurniture"
|
|
2184
|
+
},
|
|
2152
2185
|
"source": {
|
|
2153
2186
|
"$ref": "#/$defs/SourceResidue"
|
|
2154
2187
|
},
|
|
@@ -2352,6 +2385,9 @@
|
|
|
2352
2385
|
"paintOrder": {
|
|
2353
2386
|
"type": "number"
|
|
2354
2387
|
},
|
|
2388
|
+
"readingOrder": {
|
|
2389
|
+
"type": "number"
|
|
2390
|
+
},
|
|
2355
2391
|
"sourcePath": {
|
|
2356
2392
|
"type": "string"
|
|
2357
2393
|
},
|
|
@@ -4283,7 +4319,7 @@
|
|
|
4283
4319
|
]
|
|
4284
4320
|
},
|
|
4285
4321
|
"document": {
|
|
4286
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
4322
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.11.0/schemas/content-document.schema.json"
|
|
4287
4323
|
},
|
|
4288
4324
|
"frame": {
|
|
4289
4325
|
"$ref": "#/$defs/Box"
|
|
@@ -5325,6 +5361,30 @@
|
|
|
5325
5361
|
],
|
|
5326
5362
|
"additionalProperties": false
|
|
5327
5363
|
},
|
|
5364
|
+
"TreeEmbeddedFont": {
|
|
5365
|
+
"type": "object",
|
|
5366
|
+
"properties": {
|
|
5367
|
+
"family": {
|
|
5368
|
+
"type": "string"
|
|
5369
|
+
},
|
|
5370
|
+
"bold": {
|
|
5371
|
+
"type": "boolean"
|
|
5372
|
+
},
|
|
5373
|
+
"italic": {
|
|
5374
|
+
"type": "boolean"
|
|
5375
|
+
},
|
|
5376
|
+
"base64": {
|
|
5377
|
+
"type": "string"
|
|
5378
|
+
}
|
|
5379
|
+
},
|
|
5380
|
+
"required": [
|
|
5381
|
+
"family",
|
|
5382
|
+
"bold",
|
|
5383
|
+
"italic",
|
|
5384
|
+
"base64"
|
|
5385
|
+
],
|
|
5386
|
+
"additionalProperties": false
|
|
5387
|
+
},
|
|
5328
5388
|
"SymbolTable": {
|
|
5329
5389
|
"type": "object",
|
|
5330
5390
|
"properties": {
|