document-content-model 7.7.0 → 7.8.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.cts → construct-GVdTKrE7.d.cts} +3 -3
- package/dist/{construct-C9cYkjnd.d.ts → construct-GVdTKrE7.d.ts} +3 -3
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/{content-BIM8bWWt.d.ts → content-DAc4O272.d.ts} +1772 -71
- package/dist/{content-DpsxyPMw.d.cts → content-SgKmas45.d.cts} +1772 -71
- package/dist/content-json-schema-defs.cjs +126 -15
- package/dist/content-json-schema-defs.js +126 -15
- package/dist/content.cjs +70 -17
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +67 -18
- 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.d.cts +1 -1
- package/dist/factor-styles.d.ts +1 -1
- package/dist/flatten.d.cts +1 -1
- package/dist/flatten.d.ts +1 -1
- package/dist/index.cjs +4 -0
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/{package-node-B8LBrCCD.d.ts → package-node-BnFUnaa0.d.ts} +322 -25
- package/dist/{package-node-CENJl5PH.d.cts → package-node-DnUyGT61.d.cts} +322 -25
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package.d.cts +28 -1
- package/dist/package.d.ts +28 -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 +1138 -13
- package/schemas/document-tree.schema.json +208 -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.
|
|
3
|
+
"$id": "https://cdn.jsdelivr.net/npm/document-schema.js@7.8.0/schemas/document-tree.schema.json",
|
|
4
4
|
"oneOf": [
|
|
5
5
|
{
|
|
6
6
|
"type": "object",
|
|
@@ -1398,6 +1398,12 @@
|
|
|
1398
1398
|
"items": {
|
|
1399
1399
|
"$ref": "#/$defs/LayoutFrame"
|
|
1400
1400
|
}
|
|
1401
|
+
},
|
|
1402
|
+
"origin": {
|
|
1403
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
1404
|
+
},
|
|
1405
|
+
"interpretation": {
|
|
1406
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
1401
1407
|
}
|
|
1402
1408
|
},
|
|
1403
1409
|
"required": [
|
|
@@ -1514,6 +1520,12 @@
|
|
|
1514
1520
|
"items": {
|
|
1515
1521
|
"$ref": "#/$defs/LayoutFrame"
|
|
1516
1522
|
}
|
|
1523
|
+
},
|
|
1524
|
+
"origin": {
|
|
1525
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
1526
|
+
},
|
|
1527
|
+
"interpretation": {
|
|
1528
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
1517
1529
|
}
|
|
1518
1530
|
},
|
|
1519
1531
|
"required": [
|
|
@@ -1604,6 +1616,71 @@
|
|
|
1604
1616
|
],
|
|
1605
1617
|
"additionalProperties": false
|
|
1606
1618
|
},
|
|
1619
|
+
"ContentOrigin": {
|
|
1620
|
+
"type": "string",
|
|
1621
|
+
"enum": [
|
|
1622
|
+
"chart",
|
|
1623
|
+
"diagram",
|
|
1624
|
+
"table",
|
|
1625
|
+
"image",
|
|
1626
|
+
"notes",
|
|
1627
|
+
"body"
|
|
1628
|
+
]
|
|
1629
|
+
},
|
|
1630
|
+
"ContentInterpretation": {
|
|
1631
|
+
"type": "object",
|
|
1632
|
+
"properties": {
|
|
1633
|
+
"transcript": {
|
|
1634
|
+
"type": "object",
|
|
1635
|
+
"properties": {
|
|
1636
|
+
"text": {
|
|
1637
|
+
"type": "string"
|
|
1638
|
+
},
|
|
1639
|
+
"confidence": {
|
|
1640
|
+
"type": "string",
|
|
1641
|
+
"enum": [
|
|
1642
|
+
"high",
|
|
1643
|
+
"medium",
|
|
1644
|
+
"low"
|
|
1645
|
+
]
|
|
1646
|
+
},
|
|
1647
|
+
"mechanism": {
|
|
1648
|
+
"type": "string",
|
|
1649
|
+
"enum": [
|
|
1650
|
+
"deterministic",
|
|
1651
|
+
"model"
|
|
1652
|
+
]
|
|
1653
|
+
}
|
|
1654
|
+
},
|
|
1655
|
+
"required": [
|
|
1656
|
+
"text",
|
|
1657
|
+
"confidence",
|
|
1658
|
+
"mechanism"
|
|
1659
|
+
],
|
|
1660
|
+
"additionalProperties": false
|
|
1661
|
+
},
|
|
1662
|
+
"description": {
|
|
1663
|
+
"type": "string"
|
|
1664
|
+
},
|
|
1665
|
+
"by": {
|
|
1666
|
+
"type": "object",
|
|
1667
|
+
"properties": {
|
|
1668
|
+
"model": {
|
|
1669
|
+
"type": "string"
|
|
1670
|
+
},
|
|
1671
|
+
"at": {
|
|
1672
|
+
"type": "string"
|
|
1673
|
+
}
|
|
1674
|
+
},
|
|
1675
|
+
"required": [
|
|
1676
|
+
"model",
|
|
1677
|
+
"at"
|
|
1678
|
+
],
|
|
1679
|
+
"additionalProperties": false
|
|
1680
|
+
}
|
|
1681
|
+
},
|
|
1682
|
+
"additionalProperties": false
|
|
1683
|
+
},
|
|
1607
1684
|
"ContentImageOriginal": {
|
|
1608
1685
|
"type": "object",
|
|
1609
1686
|
"properties": {
|
|
@@ -1660,6 +1737,16 @@
|
|
|
1660
1737
|
"original": {
|
|
1661
1738
|
"$ref": "#/$defs/ContentImageOriginal"
|
|
1662
1739
|
},
|
|
1740
|
+
"anchorRunIndex": {
|
|
1741
|
+
"type": "integer",
|
|
1742
|
+
"minimum": 0,
|
|
1743
|
+
"maximum": 9007199254740991
|
|
1744
|
+
},
|
|
1745
|
+
"anchorOffset": {
|
|
1746
|
+
"type": "integer",
|
|
1747
|
+
"minimum": 0,
|
|
1748
|
+
"maximum": 9007199254740991
|
|
1749
|
+
},
|
|
1663
1750
|
"floatPosition": {
|
|
1664
1751
|
"$ref": "#/$defs/ContentFloatPosition"
|
|
1665
1752
|
},
|
|
@@ -1674,6 +1761,12 @@
|
|
|
1674
1761
|
"items": {
|
|
1675
1762
|
"$ref": "#/$defs/LayoutFrame"
|
|
1676
1763
|
}
|
|
1764
|
+
},
|
|
1765
|
+
"origin": {
|
|
1766
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
1767
|
+
},
|
|
1768
|
+
"interpretation": {
|
|
1769
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
1677
1770
|
}
|
|
1678
1771
|
},
|
|
1679
1772
|
"required": [
|
|
@@ -1703,6 +1796,12 @@
|
|
|
1703
1796
|
"items": {
|
|
1704
1797
|
"$ref": "#/$defs/LayoutFrame"
|
|
1705
1798
|
}
|
|
1799
|
+
},
|
|
1800
|
+
"origin": {
|
|
1801
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
1802
|
+
},
|
|
1803
|
+
"interpretation": {
|
|
1804
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
1706
1805
|
}
|
|
1707
1806
|
},
|
|
1708
1807
|
"required": [
|
|
@@ -1757,6 +1856,12 @@
|
|
|
1757
1856
|
"items": {
|
|
1758
1857
|
"$ref": "#/$defs/LayoutFrame"
|
|
1759
1858
|
}
|
|
1859
|
+
},
|
|
1860
|
+
"origin": {
|
|
1861
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
1862
|
+
},
|
|
1863
|
+
"interpretation": {
|
|
1864
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
1760
1865
|
}
|
|
1761
1866
|
},
|
|
1762
1867
|
"required": [
|
|
@@ -1821,6 +1926,12 @@
|
|
|
1821
1926
|
"items": {
|
|
1822
1927
|
"$ref": "#/$defs/LayoutFrame"
|
|
1823
1928
|
}
|
|
1929
|
+
},
|
|
1930
|
+
"origin": {
|
|
1931
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
1932
|
+
},
|
|
1933
|
+
"interpretation": {
|
|
1934
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
1824
1935
|
}
|
|
1825
1936
|
},
|
|
1826
1937
|
"required": [
|
|
@@ -1849,7 +1960,7 @@
|
|
|
1849
1960
|
]
|
|
1850
1961
|
},
|
|
1851
1962
|
"document": {
|
|
1852
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
1963
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.8.0/schemas/content-document.schema.json"
|
|
1853
1964
|
},
|
|
1854
1965
|
"frame": {
|
|
1855
1966
|
"$ref": "#/$defs/Box"
|
|
@@ -2038,6 +2149,12 @@
|
|
|
2038
2149
|
"source": {
|
|
2039
2150
|
"$ref": "#/$defs/SourceResidue"
|
|
2040
2151
|
},
|
|
2152
|
+
"origin": {
|
|
2153
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2154
|
+
},
|
|
2155
|
+
"interpretation": {
|
|
2156
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2157
|
+
},
|
|
2041
2158
|
"kind": {
|
|
2042
2159
|
"type": "string",
|
|
2043
2160
|
"const": "section"
|
|
@@ -2086,6 +2203,12 @@
|
|
|
2086
2203
|
"source": {
|
|
2087
2204
|
"$ref": "#/$defs/SourceResidue"
|
|
2088
2205
|
},
|
|
2206
|
+
"origin": {
|
|
2207
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2208
|
+
},
|
|
2209
|
+
"interpretation": {
|
|
2210
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2211
|
+
},
|
|
2089
2212
|
"kind": {
|
|
2090
2213
|
"type": "string",
|
|
2091
2214
|
"const": "slide"
|
|
@@ -2140,6 +2263,12 @@
|
|
|
2140
2263
|
"source": {
|
|
2141
2264
|
"$ref": "#/$defs/SourceResidue"
|
|
2142
2265
|
},
|
|
2266
|
+
"origin": {
|
|
2267
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2268
|
+
},
|
|
2269
|
+
"interpretation": {
|
|
2270
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2271
|
+
},
|
|
2143
2272
|
"kind": {
|
|
2144
2273
|
"type": "string",
|
|
2145
2274
|
"const": "sheet"
|
|
@@ -2164,6 +2293,12 @@
|
|
|
2164
2293
|
"source": {
|
|
2165
2294
|
"$ref": "#/$defs/SourceResidue"
|
|
2166
2295
|
},
|
|
2296
|
+
"origin": {
|
|
2297
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2298
|
+
},
|
|
2299
|
+
"interpretation": {
|
|
2300
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2301
|
+
},
|
|
2167
2302
|
"kind": {
|
|
2168
2303
|
"type": "string",
|
|
2169
2304
|
"const": "drawPage"
|
|
@@ -2225,6 +2360,12 @@
|
|
|
2225
2360
|
"items": {
|
|
2226
2361
|
"$ref": "#/$defs/LayoutFrame"
|
|
2227
2362
|
}
|
|
2363
|
+
},
|
|
2364
|
+
"origin": {
|
|
2365
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2366
|
+
},
|
|
2367
|
+
"interpretation": {
|
|
2368
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2228
2369
|
}
|
|
2229
2370
|
},
|
|
2230
2371
|
"required": [
|
|
@@ -2321,6 +2462,12 @@
|
|
|
2321
2462
|
"items": {
|
|
2322
2463
|
"$ref": "#/$defs/LayoutFrame"
|
|
2323
2464
|
}
|
|
2465
|
+
},
|
|
2466
|
+
"origin": {
|
|
2467
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2468
|
+
},
|
|
2469
|
+
"interpretation": {
|
|
2470
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2324
2471
|
}
|
|
2325
2472
|
},
|
|
2326
2473
|
"required": [
|
|
@@ -2415,6 +2562,12 @@
|
|
|
2415
2562
|
"items": {
|
|
2416
2563
|
"$ref": "#/$defs/LayoutFrame"
|
|
2417
2564
|
}
|
|
2565
|
+
},
|
|
2566
|
+
"origin": {
|
|
2567
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2568
|
+
},
|
|
2569
|
+
"interpretation": {
|
|
2570
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2418
2571
|
}
|
|
2419
2572
|
},
|
|
2420
2573
|
"required": [
|
|
@@ -2527,6 +2680,12 @@
|
|
|
2527
2680
|
"items": {
|
|
2528
2681
|
"$ref": "#/$defs/LayoutFrame"
|
|
2529
2682
|
}
|
|
2683
|
+
},
|
|
2684
|
+
"origin": {
|
|
2685
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2686
|
+
},
|
|
2687
|
+
"interpretation": {
|
|
2688
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2530
2689
|
}
|
|
2531
2690
|
},
|
|
2532
2691
|
"required": [
|
|
@@ -3551,6 +3710,16 @@
|
|
|
3551
3710
|
"original": {
|
|
3552
3711
|
"$ref": "#/$defs/ContentImageOriginal"
|
|
3553
3712
|
},
|
|
3713
|
+
"anchorRunIndex": {
|
|
3714
|
+
"type": "integer",
|
|
3715
|
+
"minimum": 0,
|
|
3716
|
+
"maximum": 9007199254740991
|
|
3717
|
+
},
|
|
3718
|
+
"anchorOffset": {
|
|
3719
|
+
"type": "integer",
|
|
3720
|
+
"minimum": 0,
|
|
3721
|
+
"maximum": 9007199254740991
|
|
3722
|
+
},
|
|
3554
3723
|
"floatPosition": {
|
|
3555
3724
|
"$ref": "#/$defs/ContentFloatPosition"
|
|
3556
3725
|
},
|
|
@@ -3566,6 +3735,12 @@
|
|
|
3566
3735
|
"$ref": "#/$defs/LayoutFrame"
|
|
3567
3736
|
}
|
|
3568
3737
|
},
|
|
3738
|
+
"origin": {
|
|
3739
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
3740
|
+
},
|
|
3741
|
+
"interpretation": {
|
|
3742
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
3743
|
+
},
|
|
3569
3744
|
"anchorRow": {
|
|
3570
3745
|
"type": "integer",
|
|
3571
3746
|
"minimum": 0,
|
|
@@ -3901,6 +4076,12 @@
|
|
|
3901
4076
|
"items": {
|
|
3902
4077
|
"$ref": "#/$defs/LayoutFrame"
|
|
3903
4078
|
}
|
|
4079
|
+
},
|
|
4080
|
+
"origin": {
|
|
4081
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
4082
|
+
},
|
|
4083
|
+
"interpretation": {
|
|
4084
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
3904
4085
|
}
|
|
3905
4086
|
},
|
|
3906
4087
|
"required": [
|
|
@@ -3950,6 +4131,12 @@
|
|
|
3950
4131
|
"items": {
|
|
3951
4132
|
"$ref": "#/$defs/LayoutFrame"
|
|
3952
4133
|
}
|
|
4134
|
+
},
|
|
4135
|
+
"origin": {
|
|
4136
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
4137
|
+
},
|
|
4138
|
+
"interpretation": {
|
|
4139
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
3953
4140
|
}
|
|
3954
4141
|
},
|
|
3955
4142
|
"required": [
|
|
@@ -3988,6 +4175,12 @@
|
|
|
3988
4175
|
"items": {
|
|
3989
4176
|
"$ref": "#/$defs/LayoutFrame"
|
|
3990
4177
|
}
|
|
4178
|
+
},
|
|
4179
|
+
"origin": {
|
|
4180
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
4181
|
+
},
|
|
4182
|
+
"interpretation": {
|
|
4183
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
3991
4184
|
}
|
|
3992
4185
|
},
|
|
3993
4186
|
"required": [
|
|
@@ -4052,6 +4245,12 @@
|
|
|
4052
4245
|
"items": {
|
|
4053
4246
|
"$ref": "#/$defs/LayoutFrame"
|
|
4054
4247
|
}
|
|
4248
|
+
},
|
|
4249
|
+
"origin": {
|
|
4250
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
4251
|
+
},
|
|
4252
|
+
"interpretation": {
|
|
4253
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
4055
4254
|
}
|
|
4056
4255
|
},
|
|
4057
4256
|
"required": [
|
|
@@ -4078,7 +4277,7 @@
|
|
|
4078
4277
|
]
|
|
4079
4278
|
},
|
|
4080
4279
|
"document": {
|
|
4081
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
4280
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.8.0/schemas/content-document.schema.json"
|
|
4082
4281
|
},
|
|
4083
4282
|
"frame": {
|
|
4084
4283
|
"$ref": "#/$defs/Box"
|
|
@@ -4922,6 +5121,12 @@
|
|
|
4922
5121
|
},
|
|
4923
5122
|
"source": {
|
|
4924
5123
|
"$ref": "#/$defs/SourceResidue"
|
|
5124
|
+
},
|
|
5125
|
+
"origin": {
|
|
5126
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
5127
|
+
},
|
|
5128
|
+
"interpretation": {
|
|
5129
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
4925
5130
|
}
|
|
4926
5131
|
},
|
|
4927
5132
|
"required": [
|