document-content-model 7.7.0 → 7.9.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-C4XiF8OW.d.cts} +6 -6
- package/dist/{construct-C9cYkjnd.d.ts → construct-C4XiF8OW.d.ts} +6 -6
- package/dist/construct.d.cts +1 -1
- package/dist/construct.d.ts +1 -1
- package/dist/{content-BIM8bWWt.d.ts → content-C1hJ6olW.d.ts} +1753 -47
- package/dist/{content-DpsxyPMw.d.cts → content-DN5CqH6Y.d.cts} +1753 -47
- package/dist/content-json-schema-defs.cjs +128 -15
- package/dist/content-json-schema-defs.js +128 -15
- package/dist/content.cjs +71 -17
- package/dist/content.d.cts +2 -2
- package/dist/content.d.ts +2 -2
- package/dist/content.js +68 -18
- package/dist/decompose.d.cts +2 -2
- package/dist/decompose.d.ts +2 -2
- package/dist/definitions.d.cts +4 -4
- package/dist/definitions.d.ts +4 -4
- 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 +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +2 -2
- package/dist/{package-node-B8LBrCCD.d.ts → package-node-B9aFWtrZ.d.ts} +311 -14
- package/dist/{package-node-CENJl5PH.d.cts → package-node-DktLHAKG.d.cts} +311 -14
- package/dist/package-node.d.cts +1 -1
- package/dist/package-node.d.ts +1 -1
- package/dist/package.d.cts +33 -6
- package/dist/package.d.ts +33 -6
- 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/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
- package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
- package/dist/style.d.cts +1 -1
- package/dist/style.d.ts +1 -1
- package/dist/text-layout.d.cts +1 -1
- package/dist/text-layout.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/content-document.schema.json +1147 -13
- package/schemas/document-tree.schema.json +214 -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.9.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,19 @@
|
|
|
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
|
+
},
|
|
1750
|
+
"caption": {
|
|
1751
|
+
"type": "string"
|
|
1752
|
+
},
|
|
1663
1753
|
"floatPosition": {
|
|
1664
1754
|
"$ref": "#/$defs/ContentFloatPosition"
|
|
1665
1755
|
},
|
|
@@ -1674,6 +1764,12 @@
|
|
|
1674
1764
|
"items": {
|
|
1675
1765
|
"$ref": "#/$defs/LayoutFrame"
|
|
1676
1766
|
}
|
|
1767
|
+
},
|
|
1768
|
+
"origin": {
|
|
1769
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
1770
|
+
},
|
|
1771
|
+
"interpretation": {
|
|
1772
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
1677
1773
|
}
|
|
1678
1774
|
},
|
|
1679
1775
|
"required": [
|
|
@@ -1703,6 +1799,12 @@
|
|
|
1703
1799
|
"items": {
|
|
1704
1800
|
"$ref": "#/$defs/LayoutFrame"
|
|
1705
1801
|
}
|
|
1802
|
+
},
|
|
1803
|
+
"origin": {
|
|
1804
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
1805
|
+
},
|
|
1806
|
+
"interpretation": {
|
|
1807
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
1706
1808
|
}
|
|
1707
1809
|
},
|
|
1708
1810
|
"required": [
|
|
@@ -1757,6 +1859,12 @@
|
|
|
1757
1859
|
"items": {
|
|
1758
1860
|
"$ref": "#/$defs/LayoutFrame"
|
|
1759
1861
|
}
|
|
1862
|
+
},
|
|
1863
|
+
"origin": {
|
|
1864
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
1865
|
+
},
|
|
1866
|
+
"interpretation": {
|
|
1867
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
1760
1868
|
}
|
|
1761
1869
|
},
|
|
1762
1870
|
"required": [
|
|
@@ -1821,6 +1929,12 @@
|
|
|
1821
1929
|
"items": {
|
|
1822
1930
|
"$ref": "#/$defs/LayoutFrame"
|
|
1823
1931
|
}
|
|
1932
|
+
},
|
|
1933
|
+
"origin": {
|
|
1934
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
1935
|
+
},
|
|
1936
|
+
"interpretation": {
|
|
1937
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
1824
1938
|
}
|
|
1825
1939
|
},
|
|
1826
1940
|
"required": [
|
|
@@ -1849,7 +1963,7 @@
|
|
|
1849
1963
|
]
|
|
1850
1964
|
},
|
|
1851
1965
|
"document": {
|
|
1852
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
1966
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.0/schemas/content-document.schema.json"
|
|
1853
1967
|
},
|
|
1854
1968
|
"frame": {
|
|
1855
1969
|
"$ref": "#/$defs/Box"
|
|
@@ -2038,6 +2152,12 @@
|
|
|
2038
2152
|
"source": {
|
|
2039
2153
|
"$ref": "#/$defs/SourceResidue"
|
|
2040
2154
|
},
|
|
2155
|
+
"origin": {
|
|
2156
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2157
|
+
},
|
|
2158
|
+
"interpretation": {
|
|
2159
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2160
|
+
},
|
|
2041
2161
|
"kind": {
|
|
2042
2162
|
"type": "string",
|
|
2043
2163
|
"const": "section"
|
|
@@ -2086,6 +2206,12 @@
|
|
|
2086
2206
|
"source": {
|
|
2087
2207
|
"$ref": "#/$defs/SourceResidue"
|
|
2088
2208
|
},
|
|
2209
|
+
"origin": {
|
|
2210
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2211
|
+
},
|
|
2212
|
+
"interpretation": {
|
|
2213
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2214
|
+
},
|
|
2089
2215
|
"kind": {
|
|
2090
2216
|
"type": "string",
|
|
2091
2217
|
"const": "slide"
|
|
@@ -2140,6 +2266,12 @@
|
|
|
2140
2266
|
"source": {
|
|
2141
2267
|
"$ref": "#/$defs/SourceResidue"
|
|
2142
2268
|
},
|
|
2269
|
+
"origin": {
|
|
2270
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2271
|
+
},
|
|
2272
|
+
"interpretation": {
|
|
2273
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2274
|
+
},
|
|
2143
2275
|
"kind": {
|
|
2144
2276
|
"type": "string",
|
|
2145
2277
|
"const": "sheet"
|
|
@@ -2164,6 +2296,12 @@
|
|
|
2164
2296
|
"source": {
|
|
2165
2297
|
"$ref": "#/$defs/SourceResidue"
|
|
2166
2298
|
},
|
|
2299
|
+
"origin": {
|
|
2300
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2301
|
+
},
|
|
2302
|
+
"interpretation": {
|
|
2303
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2304
|
+
},
|
|
2167
2305
|
"kind": {
|
|
2168
2306
|
"type": "string",
|
|
2169
2307
|
"const": "drawPage"
|
|
@@ -2225,6 +2363,12 @@
|
|
|
2225
2363
|
"items": {
|
|
2226
2364
|
"$ref": "#/$defs/LayoutFrame"
|
|
2227
2365
|
}
|
|
2366
|
+
},
|
|
2367
|
+
"origin": {
|
|
2368
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2369
|
+
},
|
|
2370
|
+
"interpretation": {
|
|
2371
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2228
2372
|
}
|
|
2229
2373
|
},
|
|
2230
2374
|
"required": [
|
|
@@ -2321,6 +2465,12 @@
|
|
|
2321
2465
|
"items": {
|
|
2322
2466
|
"$ref": "#/$defs/LayoutFrame"
|
|
2323
2467
|
}
|
|
2468
|
+
},
|
|
2469
|
+
"origin": {
|
|
2470
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2471
|
+
},
|
|
2472
|
+
"interpretation": {
|
|
2473
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2324
2474
|
}
|
|
2325
2475
|
},
|
|
2326
2476
|
"required": [
|
|
@@ -2415,6 +2565,12 @@
|
|
|
2415
2565
|
"items": {
|
|
2416
2566
|
"$ref": "#/$defs/LayoutFrame"
|
|
2417
2567
|
}
|
|
2568
|
+
},
|
|
2569
|
+
"origin": {
|
|
2570
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2571
|
+
},
|
|
2572
|
+
"interpretation": {
|
|
2573
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2418
2574
|
}
|
|
2419
2575
|
},
|
|
2420
2576
|
"required": [
|
|
@@ -2527,6 +2683,12 @@
|
|
|
2527
2683
|
"items": {
|
|
2528
2684
|
"$ref": "#/$defs/LayoutFrame"
|
|
2529
2685
|
}
|
|
2686
|
+
},
|
|
2687
|
+
"origin": {
|
|
2688
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
2689
|
+
},
|
|
2690
|
+
"interpretation": {
|
|
2691
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
2530
2692
|
}
|
|
2531
2693
|
},
|
|
2532
2694
|
"required": [
|
|
@@ -3551,6 +3713,19 @@
|
|
|
3551
3713
|
"original": {
|
|
3552
3714
|
"$ref": "#/$defs/ContentImageOriginal"
|
|
3553
3715
|
},
|
|
3716
|
+
"anchorRunIndex": {
|
|
3717
|
+
"type": "integer",
|
|
3718
|
+
"minimum": 0,
|
|
3719
|
+
"maximum": 9007199254740991
|
|
3720
|
+
},
|
|
3721
|
+
"anchorOffset": {
|
|
3722
|
+
"type": "integer",
|
|
3723
|
+
"minimum": 0,
|
|
3724
|
+
"maximum": 9007199254740991
|
|
3725
|
+
},
|
|
3726
|
+
"caption": {
|
|
3727
|
+
"type": "string"
|
|
3728
|
+
},
|
|
3554
3729
|
"floatPosition": {
|
|
3555
3730
|
"$ref": "#/$defs/ContentFloatPosition"
|
|
3556
3731
|
},
|
|
@@ -3566,6 +3741,12 @@
|
|
|
3566
3741
|
"$ref": "#/$defs/LayoutFrame"
|
|
3567
3742
|
}
|
|
3568
3743
|
},
|
|
3744
|
+
"origin": {
|
|
3745
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
3746
|
+
},
|
|
3747
|
+
"interpretation": {
|
|
3748
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
3749
|
+
},
|
|
3569
3750
|
"anchorRow": {
|
|
3570
3751
|
"type": "integer",
|
|
3571
3752
|
"minimum": 0,
|
|
@@ -3901,6 +4082,12 @@
|
|
|
3901
4082
|
"items": {
|
|
3902
4083
|
"$ref": "#/$defs/LayoutFrame"
|
|
3903
4084
|
}
|
|
4085
|
+
},
|
|
4086
|
+
"origin": {
|
|
4087
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
4088
|
+
},
|
|
4089
|
+
"interpretation": {
|
|
4090
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
3904
4091
|
}
|
|
3905
4092
|
},
|
|
3906
4093
|
"required": [
|
|
@@ -3950,6 +4137,12 @@
|
|
|
3950
4137
|
"items": {
|
|
3951
4138
|
"$ref": "#/$defs/LayoutFrame"
|
|
3952
4139
|
}
|
|
4140
|
+
},
|
|
4141
|
+
"origin": {
|
|
4142
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
4143
|
+
},
|
|
4144
|
+
"interpretation": {
|
|
4145
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
3953
4146
|
}
|
|
3954
4147
|
},
|
|
3955
4148
|
"required": [
|
|
@@ -3988,6 +4181,12 @@
|
|
|
3988
4181
|
"items": {
|
|
3989
4182
|
"$ref": "#/$defs/LayoutFrame"
|
|
3990
4183
|
}
|
|
4184
|
+
},
|
|
4185
|
+
"origin": {
|
|
4186
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
4187
|
+
},
|
|
4188
|
+
"interpretation": {
|
|
4189
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
3991
4190
|
}
|
|
3992
4191
|
},
|
|
3993
4192
|
"required": [
|
|
@@ -4052,6 +4251,12 @@
|
|
|
4052
4251
|
"items": {
|
|
4053
4252
|
"$ref": "#/$defs/LayoutFrame"
|
|
4054
4253
|
}
|
|
4254
|
+
},
|
|
4255
|
+
"origin": {
|
|
4256
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
4257
|
+
},
|
|
4258
|
+
"interpretation": {
|
|
4259
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
4055
4260
|
}
|
|
4056
4261
|
},
|
|
4057
4262
|
"required": [
|
|
@@ -4078,7 +4283,7 @@
|
|
|
4078
4283
|
]
|
|
4079
4284
|
},
|
|
4080
4285
|
"document": {
|
|
4081
|
-
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.
|
|
4286
|
+
"$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@7.9.0/schemas/content-document.schema.json"
|
|
4082
4287
|
},
|
|
4083
4288
|
"frame": {
|
|
4084
4289
|
"$ref": "#/$defs/Box"
|
|
@@ -4922,6 +5127,12 @@
|
|
|
4922
5127
|
},
|
|
4923
5128
|
"source": {
|
|
4924
5129
|
"$ref": "#/$defs/SourceResidue"
|
|
5130
|
+
},
|
|
5131
|
+
"origin": {
|
|
5132
|
+
"$ref": "#/$defs/ContentOrigin"
|
|
5133
|
+
},
|
|
5134
|
+
"interpretation": {
|
|
5135
|
+
"$ref": "#/$defs/ContentInterpretation"
|
|
4925
5136
|
}
|
|
4926
5137
|
},
|
|
4927
5138
|
"required": [
|