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
|
@@ -361,7 +361,9 @@ const CONTENT_DEFS = {
|
|
|
361
361
|
frames: {
|
|
362
362
|
type: "array",
|
|
363
363
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
364
|
-
}
|
|
364
|
+
},
|
|
365
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
366
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
365
367
|
},
|
|
366
368
|
required: ["text"],
|
|
367
369
|
additionalProperties: false
|
|
@@ -434,7 +436,9 @@ const CONTENT_DEFS = {
|
|
|
434
436
|
frames: {
|
|
435
437
|
type: "array",
|
|
436
438
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
437
|
-
}
|
|
439
|
+
},
|
|
440
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
441
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
438
442
|
},
|
|
439
443
|
required: ["kind", "runs"],
|
|
440
444
|
additionalProperties: false
|
|
@@ -495,6 +499,57 @@ const CONTENT_DEFS = {
|
|
|
495
499
|
required: ["horizontal", "vertical"],
|
|
496
500
|
additionalProperties: false
|
|
497
501
|
},
|
|
502
|
+
ContentOrigin: {
|
|
503
|
+
type: "string",
|
|
504
|
+
enum: [
|
|
505
|
+
"chart",
|
|
506
|
+
"diagram",
|
|
507
|
+
"table",
|
|
508
|
+
"image",
|
|
509
|
+
"notes",
|
|
510
|
+
"body"
|
|
511
|
+
]
|
|
512
|
+
},
|
|
513
|
+
ContentInterpretation: {
|
|
514
|
+
type: "object",
|
|
515
|
+
properties: {
|
|
516
|
+
transcript: {
|
|
517
|
+
type: "object",
|
|
518
|
+
properties: {
|
|
519
|
+
text: { type: "string" },
|
|
520
|
+
confidence: {
|
|
521
|
+
type: "string",
|
|
522
|
+
enum: [
|
|
523
|
+
"high",
|
|
524
|
+
"medium",
|
|
525
|
+
"low"
|
|
526
|
+
]
|
|
527
|
+
},
|
|
528
|
+
mechanism: {
|
|
529
|
+
type: "string",
|
|
530
|
+
enum: ["deterministic", "model"]
|
|
531
|
+
}
|
|
532
|
+
},
|
|
533
|
+
required: [
|
|
534
|
+
"text",
|
|
535
|
+
"confidence",
|
|
536
|
+
"mechanism"
|
|
537
|
+
],
|
|
538
|
+
additionalProperties: false
|
|
539
|
+
},
|
|
540
|
+
description: { type: "string" },
|
|
541
|
+
by: {
|
|
542
|
+
type: "object",
|
|
543
|
+
properties: {
|
|
544
|
+
model: { type: "string" },
|
|
545
|
+
at: { type: "string" }
|
|
546
|
+
},
|
|
547
|
+
required: ["model", "at"],
|
|
548
|
+
additionalProperties: false
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
additionalProperties: false
|
|
552
|
+
},
|
|
498
553
|
ContentImageOriginal: {
|
|
499
554
|
type: "object",
|
|
500
555
|
properties: {
|
|
@@ -535,13 +590,25 @@ const CONTENT_DEFS = {
|
|
|
535
590
|
},
|
|
536
591
|
altText: { type: "string" },
|
|
537
592
|
original: { $ref: "#/$defs/ContentImageOriginal" },
|
|
593
|
+
anchorRunIndex: {
|
|
594
|
+
type: "integer",
|
|
595
|
+
minimum: 0,
|
|
596
|
+
maximum: MAX_SAFE_INTEGER
|
|
597
|
+
},
|
|
598
|
+
anchorOffset: {
|
|
599
|
+
type: "integer",
|
|
600
|
+
minimum: 0,
|
|
601
|
+
maximum: MAX_SAFE_INTEGER
|
|
602
|
+
},
|
|
538
603
|
floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
|
|
539
604
|
sourcePath: { type: "string" },
|
|
540
605
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
541
606
|
frames: {
|
|
542
607
|
type: "array",
|
|
543
608
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
544
|
-
}
|
|
609
|
+
},
|
|
610
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
611
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
545
612
|
},
|
|
546
613
|
required: [
|
|
547
614
|
"kind",
|
|
@@ -564,7 +631,9 @@ const CONTENT_DEFS = {
|
|
|
564
631
|
frames: {
|
|
565
632
|
type: "array",
|
|
566
633
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
567
|
-
}
|
|
634
|
+
},
|
|
635
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
636
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
568
637
|
},
|
|
569
638
|
required: ["kind"],
|
|
570
639
|
additionalProperties: false
|
|
@@ -602,7 +671,9 @@ const CONTENT_DEFS = {
|
|
|
602
671
|
frames: {
|
|
603
672
|
type: "array",
|
|
604
673
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
605
|
-
}
|
|
674
|
+
},
|
|
675
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
676
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
606
677
|
},
|
|
607
678
|
required: ["blocks"],
|
|
608
679
|
additionalProperties: false
|
|
@@ -649,7 +720,9 @@ const CONTENT_DEFS = {
|
|
|
649
720
|
frames: {
|
|
650
721
|
type: "array",
|
|
651
722
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
652
|
-
}
|
|
723
|
+
},
|
|
724
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
725
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
653
726
|
},
|
|
654
727
|
required: [
|
|
655
728
|
"kind",
|
|
@@ -795,6 +868,8 @@ const CONTENT_DEFS = {
|
|
|
795
868
|
headers: { $ref: "#/$defs/ContentPageFurniture" },
|
|
796
869
|
footers: { $ref: "#/$defs/ContentPageFurniture" },
|
|
797
870
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
871
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
872
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
798
873
|
kind: {
|
|
799
874
|
type: "string",
|
|
800
875
|
const: "section"
|
|
@@ -831,6 +906,8 @@ const CONTENT_DEFS = {
|
|
|
831
906
|
size: { $ref: "#/$defs/PageSize" },
|
|
832
907
|
notes: { type: "string" },
|
|
833
908
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
909
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
910
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
834
911
|
kind: {
|
|
835
912
|
type: "string",
|
|
836
913
|
const: "slide"
|
|
@@ -869,6 +946,8 @@ const CONTENT_DEFS = {
|
|
|
869
946
|
items: { $ref: "#/$defs/ContentSheetConditionalFormat" }
|
|
870
947
|
},
|
|
871
948
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
949
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
950
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
872
951
|
kind: {
|
|
873
952
|
type: "string",
|
|
874
953
|
const: "sheet"
|
|
@@ -889,6 +968,8 @@ const CONTENT_DEFS = {
|
|
|
889
968
|
properties: {
|
|
890
969
|
size: { $ref: "#/$defs/PageSize" },
|
|
891
970
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
971
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
972
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
892
973
|
kind: {
|
|
893
974
|
type: "string",
|
|
894
975
|
const: "drawPage"
|
|
@@ -933,7 +1014,9 @@ const CONTENT_DEFS = {
|
|
|
933
1014
|
frames: {
|
|
934
1015
|
type: "array",
|
|
935
1016
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
936
|
-
}
|
|
1017
|
+
},
|
|
1018
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1019
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
937
1020
|
},
|
|
938
1021
|
required: [
|
|
939
1022
|
"frame",
|
|
@@ -990,7 +1073,9 @@ const CONTENT_DEFS = {
|
|
|
990
1073
|
frames: {
|
|
991
1074
|
type: "array",
|
|
992
1075
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
993
|
-
}
|
|
1076
|
+
},
|
|
1077
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1078
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
994
1079
|
},
|
|
995
1080
|
required: [
|
|
996
1081
|
"kind",
|
|
@@ -1045,7 +1130,9 @@ const CONTENT_DEFS = {
|
|
|
1045
1130
|
frames: {
|
|
1046
1131
|
type: "array",
|
|
1047
1132
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
1048
|
-
}
|
|
1133
|
+
},
|
|
1134
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1135
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
1049
1136
|
},
|
|
1050
1137
|
required: [
|
|
1051
1138
|
"kind",
|
|
@@ -1119,7 +1206,9 @@ const CONTENT_DEFS = {
|
|
|
1119
1206
|
frames: {
|
|
1120
1207
|
type: "array",
|
|
1121
1208
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
1122
|
-
}
|
|
1209
|
+
},
|
|
1210
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1211
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
1123
1212
|
},
|
|
1124
1213
|
required: [
|
|
1125
1214
|
"row",
|
|
@@ -1886,6 +1975,16 @@ const CONTENT_DEFS = {
|
|
|
1886
1975
|
},
|
|
1887
1976
|
altText: { type: "string" },
|
|
1888
1977
|
original: { $ref: "#/$defs/ContentImageOriginal" },
|
|
1978
|
+
anchorRunIndex: {
|
|
1979
|
+
type: "integer",
|
|
1980
|
+
minimum: 0,
|
|
1981
|
+
maximum: MAX_SAFE_INTEGER
|
|
1982
|
+
},
|
|
1983
|
+
anchorOffset: {
|
|
1984
|
+
type: "integer",
|
|
1985
|
+
minimum: 0,
|
|
1986
|
+
maximum: MAX_SAFE_INTEGER
|
|
1987
|
+
},
|
|
1889
1988
|
floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
|
|
1890
1989
|
sourcePath: { type: "string" },
|
|
1891
1990
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
@@ -1893,6 +1992,8 @@ const CONTENT_DEFS = {
|
|
|
1893
1992
|
type: "array",
|
|
1894
1993
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
1895
1994
|
},
|
|
1995
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1996
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
1896
1997
|
anchorRow: {
|
|
1897
1998
|
type: "integer",
|
|
1898
1999
|
minimum: 0,
|
|
@@ -2143,7 +2244,9 @@ const CONTENT_DEFS = {
|
|
|
2143
2244
|
frames: {
|
|
2144
2245
|
type: "array",
|
|
2145
2246
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
2146
|
-
}
|
|
2247
|
+
},
|
|
2248
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2249
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2147
2250
|
},
|
|
2148
2251
|
required: ["kind", "frame"],
|
|
2149
2252
|
additionalProperties: false
|
|
@@ -2171,7 +2274,9 @@ const CONTENT_DEFS = {
|
|
|
2171
2274
|
frames: {
|
|
2172
2275
|
type: "array",
|
|
2173
2276
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
2174
|
-
}
|
|
2277
|
+
},
|
|
2278
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2279
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2175
2280
|
},
|
|
2176
2281
|
required: ["kind", "frame"],
|
|
2177
2282
|
additionalProperties: false
|
|
@@ -2192,7 +2297,9 @@ const CONTENT_DEFS = {
|
|
|
2192
2297
|
frames: {
|
|
2193
2298
|
type: "array",
|
|
2194
2299
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
2195
|
-
}
|
|
2300
|
+
},
|
|
2301
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2302
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2196
2303
|
},
|
|
2197
2304
|
required: [
|
|
2198
2305
|
"kind",
|
|
@@ -2233,7 +2340,9 @@ const CONTENT_DEFS = {
|
|
|
2233
2340
|
frames: {
|
|
2234
2341
|
type: "array",
|
|
2235
2342
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
2236
|
-
}
|
|
2343
|
+
},
|
|
2344
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2345
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2237
2346
|
},
|
|
2238
2347
|
required: [
|
|
2239
2348
|
"kind",
|
|
@@ -2668,7 +2777,9 @@ const CONTENT_DEFS = {
|
|
|
2668
2777
|
presentation: { $ref: "#/$defs/MathPresentation" },
|
|
2669
2778
|
content: { $ref: "#/$defs/MathExpression" },
|
|
2670
2779
|
provenance: { $ref: "#/$defs/MathProvenance" },
|
|
2671
|
-
source: { $ref: "#/$defs/SourceResidue" }
|
|
2780
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
2781
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2782
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2672
2783
|
},
|
|
2673
2784
|
required: ["mathml"],
|
|
2674
2785
|
additionalProperties: false
|
|
@@ -360,7 +360,9 @@ const CONTENT_DEFS = {
|
|
|
360
360
|
frames: {
|
|
361
361
|
type: "array",
|
|
362
362
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
363
|
-
}
|
|
363
|
+
},
|
|
364
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
365
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
364
366
|
},
|
|
365
367
|
required: ["text"],
|
|
366
368
|
additionalProperties: false
|
|
@@ -433,7 +435,9 @@ const CONTENT_DEFS = {
|
|
|
433
435
|
frames: {
|
|
434
436
|
type: "array",
|
|
435
437
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
436
|
-
}
|
|
438
|
+
},
|
|
439
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
440
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
437
441
|
},
|
|
438
442
|
required: ["kind", "runs"],
|
|
439
443
|
additionalProperties: false
|
|
@@ -494,6 +498,57 @@ const CONTENT_DEFS = {
|
|
|
494
498
|
required: ["horizontal", "vertical"],
|
|
495
499
|
additionalProperties: false
|
|
496
500
|
},
|
|
501
|
+
ContentOrigin: {
|
|
502
|
+
type: "string",
|
|
503
|
+
enum: [
|
|
504
|
+
"chart",
|
|
505
|
+
"diagram",
|
|
506
|
+
"table",
|
|
507
|
+
"image",
|
|
508
|
+
"notes",
|
|
509
|
+
"body"
|
|
510
|
+
]
|
|
511
|
+
},
|
|
512
|
+
ContentInterpretation: {
|
|
513
|
+
type: "object",
|
|
514
|
+
properties: {
|
|
515
|
+
transcript: {
|
|
516
|
+
type: "object",
|
|
517
|
+
properties: {
|
|
518
|
+
text: { type: "string" },
|
|
519
|
+
confidence: {
|
|
520
|
+
type: "string",
|
|
521
|
+
enum: [
|
|
522
|
+
"high",
|
|
523
|
+
"medium",
|
|
524
|
+
"low"
|
|
525
|
+
]
|
|
526
|
+
},
|
|
527
|
+
mechanism: {
|
|
528
|
+
type: "string",
|
|
529
|
+
enum: ["deterministic", "model"]
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
required: [
|
|
533
|
+
"text",
|
|
534
|
+
"confidence",
|
|
535
|
+
"mechanism"
|
|
536
|
+
],
|
|
537
|
+
additionalProperties: false
|
|
538
|
+
},
|
|
539
|
+
description: { type: "string" },
|
|
540
|
+
by: {
|
|
541
|
+
type: "object",
|
|
542
|
+
properties: {
|
|
543
|
+
model: { type: "string" },
|
|
544
|
+
at: { type: "string" }
|
|
545
|
+
},
|
|
546
|
+
required: ["model", "at"],
|
|
547
|
+
additionalProperties: false
|
|
548
|
+
}
|
|
549
|
+
},
|
|
550
|
+
additionalProperties: false
|
|
551
|
+
},
|
|
497
552
|
ContentImageOriginal: {
|
|
498
553
|
type: "object",
|
|
499
554
|
properties: {
|
|
@@ -534,13 +589,25 @@ const CONTENT_DEFS = {
|
|
|
534
589
|
},
|
|
535
590
|
altText: { type: "string" },
|
|
536
591
|
original: { $ref: "#/$defs/ContentImageOriginal" },
|
|
592
|
+
anchorRunIndex: {
|
|
593
|
+
type: "integer",
|
|
594
|
+
minimum: 0,
|
|
595
|
+
maximum: MAX_SAFE_INTEGER
|
|
596
|
+
},
|
|
597
|
+
anchorOffset: {
|
|
598
|
+
type: "integer",
|
|
599
|
+
minimum: 0,
|
|
600
|
+
maximum: MAX_SAFE_INTEGER
|
|
601
|
+
},
|
|
537
602
|
floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
|
|
538
603
|
sourcePath: { type: "string" },
|
|
539
604
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
540
605
|
frames: {
|
|
541
606
|
type: "array",
|
|
542
607
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
543
|
-
}
|
|
608
|
+
},
|
|
609
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
610
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
544
611
|
},
|
|
545
612
|
required: [
|
|
546
613
|
"kind",
|
|
@@ -563,7 +630,9 @@ const CONTENT_DEFS = {
|
|
|
563
630
|
frames: {
|
|
564
631
|
type: "array",
|
|
565
632
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
566
|
-
}
|
|
633
|
+
},
|
|
634
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
635
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
567
636
|
},
|
|
568
637
|
required: ["kind"],
|
|
569
638
|
additionalProperties: false
|
|
@@ -601,7 +670,9 @@ const CONTENT_DEFS = {
|
|
|
601
670
|
frames: {
|
|
602
671
|
type: "array",
|
|
603
672
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
604
|
-
}
|
|
673
|
+
},
|
|
674
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
675
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
605
676
|
},
|
|
606
677
|
required: ["blocks"],
|
|
607
678
|
additionalProperties: false
|
|
@@ -648,7 +719,9 @@ const CONTENT_DEFS = {
|
|
|
648
719
|
frames: {
|
|
649
720
|
type: "array",
|
|
650
721
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
651
|
-
}
|
|
722
|
+
},
|
|
723
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
724
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
652
725
|
},
|
|
653
726
|
required: [
|
|
654
727
|
"kind",
|
|
@@ -794,6 +867,8 @@ const CONTENT_DEFS = {
|
|
|
794
867
|
headers: { $ref: "#/$defs/ContentPageFurniture" },
|
|
795
868
|
footers: { $ref: "#/$defs/ContentPageFurniture" },
|
|
796
869
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
870
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
871
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
797
872
|
kind: {
|
|
798
873
|
type: "string",
|
|
799
874
|
const: "section"
|
|
@@ -830,6 +905,8 @@ const CONTENT_DEFS = {
|
|
|
830
905
|
size: { $ref: "#/$defs/PageSize" },
|
|
831
906
|
notes: { type: "string" },
|
|
832
907
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
908
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
909
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
833
910
|
kind: {
|
|
834
911
|
type: "string",
|
|
835
912
|
const: "slide"
|
|
@@ -868,6 +945,8 @@ const CONTENT_DEFS = {
|
|
|
868
945
|
items: { $ref: "#/$defs/ContentSheetConditionalFormat" }
|
|
869
946
|
},
|
|
870
947
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
948
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
949
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
871
950
|
kind: {
|
|
872
951
|
type: "string",
|
|
873
952
|
const: "sheet"
|
|
@@ -888,6 +967,8 @@ const CONTENT_DEFS = {
|
|
|
888
967
|
properties: {
|
|
889
968
|
size: { $ref: "#/$defs/PageSize" },
|
|
890
969
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
970
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
971
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
891
972
|
kind: {
|
|
892
973
|
type: "string",
|
|
893
974
|
const: "drawPage"
|
|
@@ -932,7 +1013,9 @@ const CONTENT_DEFS = {
|
|
|
932
1013
|
frames: {
|
|
933
1014
|
type: "array",
|
|
934
1015
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
935
|
-
}
|
|
1016
|
+
},
|
|
1017
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1018
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
936
1019
|
},
|
|
937
1020
|
required: [
|
|
938
1021
|
"frame",
|
|
@@ -989,7 +1072,9 @@ const CONTENT_DEFS = {
|
|
|
989
1072
|
frames: {
|
|
990
1073
|
type: "array",
|
|
991
1074
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
992
|
-
}
|
|
1075
|
+
},
|
|
1076
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1077
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
993
1078
|
},
|
|
994
1079
|
required: [
|
|
995
1080
|
"kind",
|
|
@@ -1044,7 +1129,9 @@ const CONTENT_DEFS = {
|
|
|
1044
1129
|
frames: {
|
|
1045
1130
|
type: "array",
|
|
1046
1131
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
1047
|
-
}
|
|
1132
|
+
},
|
|
1133
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1134
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
1048
1135
|
},
|
|
1049
1136
|
required: [
|
|
1050
1137
|
"kind",
|
|
@@ -1118,7 +1205,9 @@ const CONTENT_DEFS = {
|
|
|
1118
1205
|
frames: {
|
|
1119
1206
|
type: "array",
|
|
1120
1207
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
1121
|
-
}
|
|
1208
|
+
},
|
|
1209
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1210
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
1122
1211
|
},
|
|
1123
1212
|
required: [
|
|
1124
1213
|
"row",
|
|
@@ -1885,6 +1974,16 @@ const CONTENT_DEFS = {
|
|
|
1885
1974
|
},
|
|
1886
1975
|
altText: { type: "string" },
|
|
1887
1976
|
original: { $ref: "#/$defs/ContentImageOriginal" },
|
|
1977
|
+
anchorRunIndex: {
|
|
1978
|
+
type: "integer",
|
|
1979
|
+
minimum: 0,
|
|
1980
|
+
maximum: MAX_SAFE_INTEGER
|
|
1981
|
+
},
|
|
1982
|
+
anchorOffset: {
|
|
1983
|
+
type: "integer",
|
|
1984
|
+
minimum: 0,
|
|
1985
|
+
maximum: MAX_SAFE_INTEGER
|
|
1986
|
+
},
|
|
1888
1987
|
floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
|
|
1889
1988
|
sourcePath: { type: "string" },
|
|
1890
1989
|
source: { $ref: "#/$defs/SourceResidue" },
|
|
@@ -1892,6 +1991,8 @@ const CONTENT_DEFS = {
|
|
|
1892
1991
|
type: "array",
|
|
1893
1992
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
1894
1993
|
},
|
|
1994
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
1995
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" },
|
|
1895
1996
|
anchorRow: {
|
|
1896
1997
|
type: "integer",
|
|
1897
1998
|
minimum: 0,
|
|
@@ -2142,7 +2243,9 @@ const CONTENT_DEFS = {
|
|
|
2142
2243
|
frames: {
|
|
2143
2244
|
type: "array",
|
|
2144
2245
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
2145
|
-
}
|
|
2246
|
+
},
|
|
2247
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2248
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2146
2249
|
},
|
|
2147
2250
|
required: ["kind", "frame"],
|
|
2148
2251
|
additionalProperties: false
|
|
@@ -2170,7 +2273,9 @@ const CONTENT_DEFS = {
|
|
|
2170
2273
|
frames: {
|
|
2171
2274
|
type: "array",
|
|
2172
2275
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
2173
|
-
}
|
|
2276
|
+
},
|
|
2277
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2278
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2174
2279
|
},
|
|
2175
2280
|
required: ["kind", "frame"],
|
|
2176
2281
|
additionalProperties: false
|
|
@@ -2191,7 +2296,9 @@ const CONTENT_DEFS = {
|
|
|
2191
2296
|
frames: {
|
|
2192
2297
|
type: "array",
|
|
2193
2298
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
2194
|
-
}
|
|
2299
|
+
},
|
|
2300
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2301
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2195
2302
|
},
|
|
2196
2303
|
required: [
|
|
2197
2304
|
"kind",
|
|
@@ -2232,7 +2339,9 @@ const CONTENT_DEFS = {
|
|
|
2232
2339
|
frames: {
|
|
2233
2340
|
type: "array",
|
|
2234
2341
|
items: { $ref: "#/$defs/LayoutFrame" }
|
|
2235
|
-
}
|
|
2342
|
+
},
|
|
2343
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2344
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2236
2345
|
},
|
|
2237
2346
|
required: [
|
|
2238
2347
|
"kind",
|
|
@@ -2667,7 +2776,9 @@ const CONTENT_DEFS = {
|
|
|
2667
2776
|
presentation: { $ref: "#/$defs/MathPresentation" },
|
|
2668
2777
|
content: { $ref: "#/$defs/MathExpression" },
|
|
2669
2778
|
provenance: { $ref: "#/$defs/MathProvenance" },
|
|
2670
|
-
source: { $ref: "#/$defs/SourceResidue" }
|
|
2779
|
+
source: { $ref: "#/$defs/SourceResidue" },
|
|
2780
|
+
origin: { $ref: "#/$defs/ContentOrigin" },
|
|
2781
|
+
interpretation: { $ref: "#/$defs/ContentInterpretation" }
|
|
2671
2782
|
},
|
|
2672
2783
|
required: ["mathml"],
|
|
2673
2784
|
additionalProperties: false
|