document-content-model 7.9.0 → 7.10.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-C4XiF8OW.d.cts → construct-C9cYkjnd.d.cts} +6 -6
  4. package/dist/{construct-C4XiF8OW.d.ts → construct-C9cYkjnd.d.ts} +6 -6
  5. package/dist/construct.d.cts +1 -1
  6. package/dist/construct.d.ts +1 -1
  7. package/dist/{content-C1hJ6olW.d.ts → content-Uiq081CA.d.ts} +53 -40
  8. package/dist/{content-DN5CqH6Y.d.cts → content-VC9cnoCv.d.cts} +53 -40
  9. package/dist/content-json-schema-defs.cjs +17 -0
  10. package/dist/content-json-schema-defs.js +17 -0
  11. package/dist/content.cjs +1 -0
  12. package/dist/content.d.cts +1 -1
  13. package/dist/content.d.ts +1 -1
  14. package/dist/content.js +1 -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-DktLHAKG.d.cts → package-node-B0czXNHl.d.cts} +14 -13
  30. package/dist/{package-node-B9aFWtrZ.d.ts → package-node-CnUkCuRc.d.ts} +14 -13
  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-D06NwxAJ.d.cts → style-BGMcYrD2.d.cts} +1 -1
  42. package/dist/{style-D06NwxAJ.d.ts → style-BGMcYrD2.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 +46 -13
  49. package/schemas/document-tree.schema.json +60 -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.0/schemas/content-document.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.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.9.0/schemas/undefined#/$defs/schema2"
136
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.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.9.0/schemas/undefined#/$defs/schema2"
154
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.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.9.0/schemas/undefined#/$defs/schema2"
160
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.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.9.0/schemas/undefined#/$defs/schema2"
166
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.0/schemas/undefined#/$defs/schema2"
167
167
  }
168
168
  }
169
169
  },
@@ -175,19 +175,19 @@
175
175
  "default": {
176
176
  "type": "array",
177
177
  "items": {
178
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.0/schemas/undefined#/$defs/schema2"
178
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.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.9.0/schemas/undefined#/$defs/schema2"
184
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.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.9.0/schemas/undefined#/$defs/schema2"
190
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.0/schemas/undefined#/$defs/schema2"
191
191
  }
192
192
  }
193
193
  },
@@ -472,6 +472,9 @@
472
472
  "paintOrder": {
473
473
  "type": "number"
474
474
  },
475
+ "readingOrder": {
476
+ "type": "number"
477
+ },
475
478
  "sourcePath": {
476
479
  "type": "string"
477
480
  },
@@ -611,7 +614,7 @@
611
614
  "blocks": {
612
615
  "type": "array",
613
616
  "items": {
614
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.0/schemas/undefined#/$defs/schema2"
617
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.0/schemas/undefined#/$defs/schema2"
615
618
  }
616
619
  }
617
620
  },
@@ -2632,7 +2635,7 @@
2632
2635
  ]
2633
2636
  },
2634
2637
  "document": {
2635
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.0/schemas/content-document.schema.json"
2638
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.0/schemas/content-document.schema.json"
2636
2639
  },
2637
2640
  "frame": {
2638
2641
  "type": "object",
@@ -4852,6 +4855,9 @@
4852
4855
  "paintOrder": {
4853
4856
  "type": "number"
4854
4857
  },
4858
+ "readingOrder": {
4859
+ "type": "number"
4860
+ },
4855
4861
  "sourcePath": {
4856
4862
  "type": "string"
4857
4863
  },
@@ -4991,7 +4997,7 @@
4991
4997
  "blocks": {
4992
4998
  "type": "array",
4993
4999
  "items": {
4994
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.0/schemas/undefined#/$defs/schema2"
5000
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.0/schemas/undefined#/$defs/schema2"
4995
5001
  }
4996
5002
  }
4997
5003
  },
@@ -7997,7 +8003,7 @@
7997
8003
  ]
7998
8004
  },
7999
8005
  "document": {
8000
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.0/schemas/content-document.schema.json"
8006
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.0/schemas/content-document.schema.json"
8001
8007
  },
8002
8008
  "frame": {
8003
8009
  "$ref": "#/$defs/Box"
@@ -8386,6 +8392,9 @@
8386
8392
  "paintOrder": {
8387
8393
  "type": "number"
8388
8394
  },
8395
+ "readingOrder": {
8396
+ "type": "number"
8397
+ },
8389
8398
  "sourcePath": {
8390
8399
  "type": "string"
8391
8400
  },
@@ -10317,7 +10326,7 @@
10317
10326
  ]
10318
10327
  },
10319
10328
  "document": {
10320
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.0/schemas/content-document.schema.json"
10329
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.0/schemas/content-document.schema.json"
10321
10330
  },
10322
10331
  "frame": {
10323
10332
  "$ref": "#/$defs/Box"
@@ -11359,6 +11368,30 @@
11359
11368
  ],
11360
11369
  "additionalProperties": false
11361
11370
  },
11371
+ "TreeEmbeddedFont": {
11372
+ "type": "object",
11373
+ "properties": {
11374
+ "family": {
11375
+ "type": "string"
11376
+ },
11377
+ "bold": {
11378
+ "type": "boolean"
11379
+ },
11380
+ "italic": {
11381
+ "type": "boolean"
11382
+ },
11383
+ "base64": {
11384
+ "type": "string"
11385
+ }
11386
+ },
11387
+ "required": [
11388
+ "family",
11389
+ "bold",
11390
+ "italic",
11391
+ "base64"
11392
+ ],
11393
+ "additionalProperties": false
11394
+ },
11362
11395
  "SymbolTable": {
11363
11396
  "type": "object",
11364
11397
  "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.9.0/schemas/document-tree.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.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.0/schemas/content-document.schema.json"
1996
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.0/schemas/content-document.schema.json"
1967
1997
  },
1968
1998
  "frame": {
1969
1999
  "$ref": "#/$defs/Box"
@@ -2352,6 +2382,9 @@
2352
2382
  "paintOrder": {
2353
2383
  "type": "number"
2354
2384
  },
2385
+ "readingOrder": {
2386
+ "type": "number"
2387
+ },
2355
2388
  "sourcePath": {
2356
2389
  "type": "string"
2357
2390
  },
@@ -4283,7 +4316,7 @@
4283
4316
  ]
4284
4317
  },
4285
4318
  "document": {
4286
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.0/schemas/content-document.schema.json"
4319
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.10.0/schemas/content-document.schema.json"
4287
4320
  },
4288
4321
  "frame": {
4289
4322
  "$ref": "#/$defs/Box"
@@ -5325,6 +5358,30 @@
5325
5358
  ],
5326
5359
  "additionalProperties": false
5327
5360
  },
5361
+ "TreeEmbeddedFont": {
5362
+ "type": "object",
5363
+ "properties": {
5364
+ "family": {
5365
+ "type": "string"
5366
+ },
5367
+ "bold": {
5368
+ "type": "boolean"
5369
+ },
5370
+ "italic": {
5371
+ "type": "boolean"
5372
+ },
5373
+ "base64": {
5374
+ "type": "string"
5375
+ }
5376
+ },
5377
+ "required": [
5378
+ "family",
5379
+ "bold",
5380
+ "italic",
5381
+ "base64"
5382
+ ],
5383
+ "additionalProperties": false
5384
+ },
5328
5385
  "SymbolTable": {
5329
5386
  "type": "object",
5330
5387
  "properties": {