document-content-model 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.
Files changed (49) hide show
  1. package/dist/codec.d.cts +1 -1
  2. package/dist/codec.d.ts +1 -1
  3. package/dist/{construct-C9cYkjnd.d.cts → construct-GVdTKrE7.d.cts} +3 -3
  4. package/dist/{construct-C9cYkjnd.d.ts → construct-GVdTKrE7.d.ts} +3 -3
  5. package/dist/construct.d.cts +1 -1
  6. package/dist/construct.d.ts +1 -1
  7. package/dist/{content-B6SPQuuq.d.ts → content-C5CsxSt1.d.ts} +58 -36
  8. package/dist/{content-VhC4WCbj.d.cts → content-DWSflkUJ.d.cts} +58 -36
  9. package/dist/content-json-schema-defs.cjs +18 -0
  10. package/dist/content-json-schema-defs.js +18 -0
  11. package/dist/content.cjs +2 -0
  12. package/dist/content.d.cts +1 -1
  13. package/dist/content.d.ts +1 -1
  14. package/dist/content.js +2 -0
  15. package/dist/decompose.d.cts +2 -2
  16. package/dist/decompose.d.ts +2 -2
  17. package/dist/definitions.d.cts +4 -4
  18. package/dist/definitions.d.ts +4 -4
  19. package/dist/factor-styles.cjs +2 -1
  20. package/dist/factor-styles.d.cts +1 -1
  21. package/dist/factor-styles.d.ts +1 -1
  22. package/dist/factor-styles.js +2 -1
  23. package/dist/flatten.d.cts +1 -1
  24. package/dist/flatten.d.ts +1 -1
  25. package/dist/index.cjs +1 -0
  26. package/dist/index.d.cts +6 -6
  27. package/dist/index.d.ts +6 -6
  28. package/dist/index.js +2 -2
  29. package/dist/{package-node-mRax-XfS.d.ts → package-node-5OqgGCtu.d.ts} +15 -9
  30. package/dist/{package-node-ChC2_Itm.d.cts → package-node-DK-b0h6V.d.cts} +15 -9
  31. package/dist/package-node.d.cts +1 -1
  32. package/dist/package-node.d.ts +1 -1
  33. package/dist/package.cjs +8 -0
  34. package/dist/package.d.cts +44 -7
  35. package/dist/package.d.ts +44 -7
  36. package/dist/package.js +8 -1
  37. package/dist/schema-io.cjs +2 -2
  38. package/dist/schema-io.d.cts +1 -1
  39. package/dist/schema-io.d.ts +1 -1
  40. package/dist/schema-io.js +2 -2
  41. package/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
  42. package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
  43. package/dist/style.d.cts +1 -1
  44. package/dist/style.d.ts +1 -1
  45. package/dist/text-layout.d.cts +1 -1
  46. package/dist/text-layout.d.ts +1 -1
  47. package/package.json +1 -1
  48. package/schemas/content-document.schema.json +73 -13
  49. package/schemas/document-tree.schema.json +63 -3
@@ -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.9.1/schemas/document-tree.schema.json",
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.9.1/schemas/content-document.schema.json"
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.9.1/schemas/content-document.schema.json"
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": {