document-content-model 7.15.3 → 7.16.1

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 (99) hide show
  1. package/dist/bijection-constructs-3By08A5K.cjs +14695 -0
  2. package/dist/bijection-constructs-DlP29TpB.js +14624 -0
  3. package/dist/bijection-constructs.cjs +4 -0
  4. package/dist/bijection-constructs.d.cts +6 -0
  5. package/dist/bijection-constructs.d.ts +6 -0
  6. package/dist/bijection-constructs.js +2 -0
  7. package/dist/bijection-corpus.cjs +12 -0
  8. package/dist/bijection-corpus.d.cts +46 -0
  9. package/dist/bijection-corpus.d.ts +46 -0
  10. package/dist/bijection-corpus.js +2 -0
  11. package/dist/codec.d.cts +1 -1
  12. package/dist/codec.d.ts +1 -1
  13. package/dist/{content-1yGdeaVT.d.ts → content-C8oVg7U_.d.ts} +7873 -9463
  14. package/dist/{content-CSf8z9NW.d.cts → content-UFAqR2zQ.d.cts} +7873 -9463
  15. package/dist/content-drawing-3yNJVteg.d.cts +1606 -0
  16. package/dist/content-drawing-cjm6n33_.d.ts +1606 -0
  17. package/dist/content-drawing.cjs +186 -0
  18. package/dist/content-drawing.d.cts +2 -0
  19. package/dist/content-drawing.d.ts +2 -0
  20. package/dist/content-drawing.js +171 -0
  21. package/dist/content-json-schema-defs.cjs +27 -3033
  22. package/dist/content-json-schema-defs.d.cts +2 -6
  23. package/dist/content-json-schema-defs.d.ts +2 -6
  24. package/dist/content-json-schema-defs.js +28 -3031
  25. package/dist/content-sheet.cjs +408 -0
  26. package/dist/content-sheet.d.cts +2 -0
  27. package/dist/content-sheet.d.ts +2 -0
  28. package/dist/content-sheet.js +385 -0
  29. package/dist/content-vocabulary.cjs +190 -0
  30. package/dist/content-vocabulary.d.cts +2 -0
  31. package/dist/content-vocabulary.d.ts +2 -0
  32. package/dist/content-vocabulary.js +168 -0
  33. package/dist/content.cjs +29 -781
  34. package/dist/content.d.cts +2 -2
  35. package/dist/content.d.ts +2 -2
  36. package/dist/content.js +6 -701
  37. package/dist/decompose.d.cts +3 -2
  38. package/dist/decompose.d.ts +3 -2
  39. package/dist/definitions.cjs +2 -1
  40. package/dist/definitions.d.cts +4 -4
  41. package/dist/definitions.d.ts +4 -4
  42. package/dist/definitions.js +2 -1
  43. package/dist/factor-styles.d.cts +1 -1
  44. package/dist/factor-styles.d.ts +1 -1
  45. package/dist/flatten.d.cts +1 -1
  46. package/dist/flatten.d.ts +1 -1
  47. package/dist/index.cjs +69 -63
  48. package/dist/index.d.cts +9 -7
  49. package/dist/index.d.ts +9 -7
  50. package/dist/index.js +10 -6
  51. package/dist/json-schema-defs-blocks.cjs +1036 -0
  52. package/dist/json-schema-defs-blocks.d.cts +5 -0
  53. package/dist/json-schema-defs-blocks.d.ts +5 -0
  54. package/dist/json-schema-defs-blocks.js +1035 -0
  55. package/dist/json-schema-defs-math.cjs +291 -0
  56. package/dist/json-schema-defs-math.d.cts +5 -0
  57. package/dist/json-schema-defs-math.d.ts +5 -0
  58. package/dist/json-schema-defs-math.js +290 -0
  59. package/dist/json-schema-defs-shared.cjs +42 -0
  60. package/dist/json-schema-defs-shared.d.cts +9 -0
  61. package/dist/json-schema-defs-shared.d.ts +9 -0
  62. package/dist/json-schema-defs-shared.js +38 -0
  63. package/dist/json-schema-defs-sheet.cjs +944 -0
  64. package/dist/json-schema-defs-sheet.d.cts +5 -0
  65. package/dist/json-schema-defs-sheet.d.ts +5 -0
  66. package/dist/json-schema-defs-sheet.js +943 -0
  67. package/dist/json-schema-defs-tree.cjs +237 -0
  68. package/dist/json-schema-defs-tree.d.cts +5 -0
  69. package/dist/json-schema-defs-tree.d.ts +5 -0
  70. package/dist/json-schema-defs-tree.js +237 -0
  71. package/dist/json-schema-defs-vector.cjs +513 -0
  72. package/dist/json-schema-defs-vector.d.cts +5 -0
  73. package/dist/json-schema-defs-vector.d.ts +5 -0
  74. package/dist/json-schema-defs-vector.js +512 -0
  75. package/dist/magic-string.es-CB2hOw9v.js +1012 -0
  76. package/dist/magic-string.es-MEBc20Ce.cjs +1012 -0
  77. package/dist/{package-node-CpE1BAqK.d.ts → package-node-CoWOKxt7.d.ts} +20 -19
  78. package/dist/{package-node-ng7Yimj9.d.cts → package-node-H2Calta4.d.cts} +20 -19
  79. package/dist/package-node.cjs +12 -9
  80. package/dist/package-node.d.cts +1 -1
  81. package/dist/package-node.d.ts +1 -1
  82. package/dist/package-node.js +4 -1
  83. package/dist/package.d.cts +6 -6
  84. package/dist/package.d.ts +6 -6
  85. package/dist/schema-io.cjs +2 -2
  86. package/dist/schema-io.d.cts +1 -1
  87. package/dist/schema-io.d.ts +1 -1
  88. package/dist/schema-io.js +2 -2
  89. package/dist/{style-BGMcYrD2.d.cts → style-D06NwxAJ.d.cts} +1 -1
  90. package/dist/{style-BGMcYrD2.d.ts → style-D06NwxAJ.d.ts} +1 -1
  91. package/dist/style.d.cts +1 -1
  92. package/dist/style.d.ts +1 -1
  93. package/dist/table-grid.d.cts +2 -2
  94. package/dist/table-grid.d.ts +2 -2
  95. package/dist/text-layout.d.cts +1 -1
  96. package/dist/text-layout.d.ts +1 -1
  97. package/package.json +1 -1
  98. package/schemas/content-document.schema.json +16 -16
  99. package/schemas/document-tree.schema.json +3 -3
@@ -0,0 +1,1036 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_json_schema_defs_shared = require("./json-schema-defs-shared.cjs");
3
+ //#region src/json-schema-defs-blocks.ts
4
+ const DEFS_BLOCKS = {
5
+ Color: {
6
+ type: "object",
7
+ properties: {
8
+ r: {
9
+ type: "number",
10
+ minimum: 0,
11
+ maximum: 1
12
+ },
13
+ g: {
14
+ type: "number",
15
+ minimum: 0,
16
+ maximum: 1
17
+ },
18
+ b: {
19
+ type: "number",
20
+ minimum: 0,
21
+ maximum: 1
22
+ }
23
+ },
24
+ required: [
25
+ "r",
26
+ "g",
27
+ "b"
28
+ ],
29
+ additionalProperties: false
30
+ },
31
+ Box: {
32
+ type: "object",
33
+ properties: {
34
+ xPt: { type: "number" },
35
+ yPt: { type: "number" },
36
+ widthPt: {
37
+ type: "number",
38
+ minimum: 0
39
+ },
40
+ heightPt: {
41
+ type: "number",
42
+ minimum: 0
43
+ }
44
+ },
45
+ required: [
46
+ "xPt",
47
+ "yPt",
48
+ "widthPt",
49
+ "heightPt"
50
+ ],
51
+ additionalProperties: false
52
+ },
53
+ LayoutFrame: {
54
+ type: "object",
55
+ properties: {
56
+ pageIndex: {
57
+ type: "integer",
58
+ minimum: 0,
59
+ maximum: require_json_schema_defs_shared.MAX_SAFE_INTEGER
60
+ },
61
+ xPt: { type: "number" },
62
+ yPt: { type: "number" },
63
+ widthPt: {
64
+ type: "number",
65
+ minimum: 0
66
+ },
67
+ heightPt: {
68
+ type: "number",
69
+ minimum: 0
70
+ }
71
+ },
72
+ required: [
73
+ "pageIndex",
74
+ "xPt",
75
+ "yPt",
76
+ "widthPt",
77
+ "heightPt"
78
+ ],
79
+ additionalProperties: false
80
+ },
81
+ Alignment: {
82
+ type: "string",
83
+ enum: [
84
+ "left",
85
+ "center",
86
+ "right",
87
+ "justify"
88
+ ]
89
+ },
90
+ SourceResidue: {
91
+ type: "object",
92
+ properties: {
93
+ format: {
94
+ type: "string",
95
+ enum: [
96
+ "docx",
97
+ "pptx",
98
+ "xlsx",
99
+ "odt",
100
+ "ods",
101
+ "odp",
102
+ "odg",
103
+ "odm",
104
+ "odb",
105
+ "odf",
106
+ "markdown",
107
+ "pdf",
108
+ "epub",
109
+ "rtf",
110
+ "wpd"
111
+ ]
112
+ },
113
+ xml: { type: "string" }
114
+ },
115
+ required: ["format", "xml"],
116
+ additionalProperties: false
117
+ },
118
+ ContentStrokeStyle: {
119
+ type: "string",
120
+ enum: [
121
+ "solid",
122
+ "dashed",
123
+ "dotted",
124
+ "double"
125
+ ]
126
+ },
127
+ ContentBorder: {
128
+ type: "object",
129
+ properties: {
130
+ color: { $ref: "#/$defs/Color" },
131
+ widthPt: {
132
+ type: "number",
133
+ exclusiveMinimum: 0
134
+ },
135
+ style: { $ref: "#/$defs/ContentStrokeStyle" }
136
+ },
137
+ required: ["color", "widthPt"],
138
+ additionalProperties: false
139
+ },
140
+ ContentCellBorders: {
141
+ type: "object",
142
+ properties: {
143
+ left: { $ref: "#/$defs/ContentBorder" },
144
+ right: { $ref: "#/$defs/ContentBorder" },
145
+ top: { $ref: "#/$defs/ContentBorder" },
146
+ bottom: { $ref: "#/$defs/ContentBorder" },
147
+ diagonalUp: { $ref: "#/$defs/ContentBorder" },
148
+ diagonalDown: { $ref: "#/$defs/ContentBorder" }
149
+ },
150
+ additionalProperties: false
151
+ },
152
+ ContentParagraphBorders: {
153
+ type: "object",
154
+ properties: {
155
+ left: { $ref: "#/$defs/ContentBorder" },
156
+ right: { $ref: "#/$defs/ContentBorder" },
157
+ top: { $ref: "#/$defs/ContentBorder" },
158
+ bottom: { $ref: "#/$defs/ContentBorder" }
159
+ },
160
+ additionalProperties: false
161
+ },
162
+ ContentCellPatternType: {
163
+ type: "string",
164
+ enum: [
165
+ "percent5",
166
+ "percent10",
167
+ "percent12",
168
+ "percent15",
169
+ "percent20",
170
+ "percent25",
171
+ "percent30",
172
+ "percent35",
173
+ "percent37",
174
+ "percent40",
175
+ "percent45",
176
+ "percent50",
177
+ "percent55",
178
+ "percent60",
179
+ "percent62",
180
+ "percent65",
181
+ "percent70",
182
+ "percent75",
183
+ "percent80",
184
+ "percent85",
185
+ "percent87",
186
+ "percent90",
187
+ "percent95",
188
+ "horizontalStripe",
189
+ "verticalStripe",
190
+ "diagonalStripe",
191
+ "reverseDiagonalStripe",
192
+ "horizontalCross",
193
+ "diagonalCross",
194
+ "thinHorizontalStripe",
195
+ "thinVerticalStripe",
196
+ "thinDiagonalStripe",
197
+ "thinReverseDiagonalStripe",
198
+ "thinHorizontalCross",
199
+ "thinDiagonalCross",
200
+ "mediumGray",
201
+ "darkGray",
202
+ "lightGray",
203
+ "darkHorizontal",
204
+ "darkVertical",
205
+ "darkDown",
206
+ "darkUp",
207
+ "darkGrid",
208
+ "darkTrellis",
209
+ "lightHorizontal",
210
+ "lightVertical",
211
+ "lightDown",
212
+ "lightUp",
213
+ "lightGrid",
214
+ "lightTrellis",
215
+ "gray125",
216
+ "gray0625"
217
+ ]
218
+ },
219
+ ContentCellFill: { oneOf: [{
220
+ type: "object",
221
+ properties: {
222
+ kind: {
223
+ type: "string",
224
+ const: "solid"
225
+ },
226
+ color: { $ref: "#/$defs/Color" }
227
+ },
228
+ required: ["kind", "color"],
229
+ additionalProperties: false
230
+ }, {
231
+ type: "object",
232
+ properties: {
233
+ kind: {
234
+ type: "string",
235
+ const: "pattern"
236
+ },
237
+ patternType: { $ref: "#/$defs/ContentCellPatternType" },
238
+ foregroundColor: { $ref: "#/$defs/Color" },
239
+ backgroundColor: { $ref: "#/$defs/Color" }
240
+ },
241
+ required: ["kind", "patternType"],
242
+ additionalProperties: false
243
+ }] },
244
+ ContentListMembership: {
245
+ type: "object",
246
+ properties: {
247
+ numId: { type: "string" },
248
+ level: {
249
+ type: "integer",
250
+ minimum: 0,
251
+ maximum: require_json_schema_defs_shared.MAX_SAFE_INTEGER
252
+ },
253
+ checked: { type: "boolean" },
254
+ itemId: { type: "string" },
255
+ format: {
256
+ type: "string",
257
+ enum: [
258
+ "bullet",
259
+ "decimal",
260
+ "lowerLetter",
261
+ "upperLetter",
262
+ "lowerRoman",
263
+ "upperRoman"
264
+ ]
265
+ }
266
+ },
267
+ required: ["level"],
268
+ additionalProperties: false
269
+ },
270
+ ContentRun: {
271
+ type: "object",
272
+ properties: {
273
+ text: { type: "string" },
274
+ bold: { type: "boolean" },
275
+ italic: { type: "boolean" },
276
+ underline: { type: "boolean" },
277
+ strike: { type: "boolean" },
278
+ fontFamily: { type: "string" },
279
+ sizePt: {
280
+ type: "number",
281
+ exclusiveMinimum: 0
282
+ },
283
+ color: { $ref: "#/$defs/Color" },
284
+ hyperlink: { type: "string" },
285
+ verticalAlign: {
286
+ type: "string",
287
+ enum: ["superscript", "subscript"]
288
+ },
289
+ direction: {
290
+ type: "string",
291
+ enum: ["ltr", "rtl"]
292
+ },
293
+ sourcePath: { type: "string" },
294
+ source: { $ref: "#/$defs/SourceResidue" },
295
+ frames: {
296
+ type: "array",
297
+ items: { $ref: "#/$defs/LayoutFrame" }
298
+ },
299
+ origin: { $ref: "#/$defs/ContentOrigin" },
300
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
301
+ },
302
+ required: ["text"],
303
+ additionalProperties: false
304
+ },
305
+ RunConstructExtent: {
306
+ type: "object",
307
+ properties: {
308
+ descriptor: { $ref: "#/$defs/ConstructDescriptor" },
309
+ startRun: {
310
+ type: "integer",
311
+ minimum: 0,
312
+ maximum: require_json_schema_defs_shared.MAX_SAFE_INTEGER
313
+ },
314
+ endRun: {
315
+ type: "integer",
316
+ minimum: 0,
317
+ maximum: require_json_schema_defs_shared.MAX_SAFE_INTEGER
318
+ }
319
+ },
320
+ required: [
321
+ "descriptor",
322
+ "startRun",
323
+ "endRun"
324
+ ],
325
+ additionalProperties: false
326
+ },
327
+ ContentParagraph: {
328
+ type: "object",
329
+ properties: {
330
+ kind: {
331
+ type: "string",
332
+ const: "paragraph"
333
+ },
334
+ runs: {
335
+ type: "array",
336
+ items: { $ref: "#/$defs/ContentRun" }
337
+ },
338
+ constructs: {
339
+ type: "array",
340
+ items: { $ref: "#/$defs/RunConstructExtent" }
341
+ },
342
+ styleId: { type: "string" },
343
+ codeLanguage: { type: "string" },
344
+ preformatted: { type: "boolean" },
345
+ headingLevel: {
346
+ type: "integer",
347
+ exclusiveMinimum: 0,
348
+ maximum: require_json_schema_defs_shared.MAX_SAFE_INTEGER
349
+ },
350
+ alignment: { $ref: "#/$defs/Alignment" },
351
+ list: { $ref: "#/$defs/ContentListMembership" },
352
+ spacingBeforePt: { type: "number" },
353
+ spacingAfterPt: { type: "number" },
354
+ lineSpacing: {
355
+ type: "number",
356
+ exclusiveMinimum: 0
357
+ },
358
+ indentLeftPt: { type: "number" },
359
+ indentRightPt: { type: "number" },
360
+ indentFirstLinePt: { type: "number" },
361
+ direction: {
362
+ type: "string",
363
+ enum: ["ltr", "rtl"]
364
+ },
365
+ pageBreakBefore: { type: "boolean" },
366
+ pageBreakAfter: { type: "boolean" },
367
+ borders: { $ref: "#/$defs/ContentParagraphBorders" },
368
+ sourcePath: { type: "string" },
369
+ source: { $ref: "#/$defs/SourceResidue" },
370
+ frames: {
371
+ type: "array",
372
+ items: { $ref: "#/$defs/LayoutFrame" }
373
+ },
374
+ origin: { $ref: "#/$defs/ContentOrigin" },
375
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
376
+ },
377
+ required: ["kind", "runs"],
378
+ additionalProperties: false
379
+ },
380
+ ContentFloatOrigin: {
381
+ type: "string",
382
+ enum: [
383
+ "page",
384
+ "margin",
385
+ "leftMargin",
386
+ "rightMargin",
387
+ "topMargin",
388
+ "bottomMargin",
389
+ "insideMargin",
390
+ "outsideMargin",
391
+ "column",
392
+ "character",
393
+ "paragraph",
394
+ "line",
395
+ "frame"
396
+ ]
397
+ },
398
+ ContentFloatAlign: {
399
+ type: "string",
400
+ enum: [
401
+ "left",
402
+ "right",
403
+ "top",
404
+ "bottom",
405
+ "center",
406
+ "inside",
407
+ "outside"
408
+ ]
409
+ },
410
+ ContentFloatAxis: { anyOf: [{
411
+ type: "object",
412
+ properties: {
413
+ relativeTo: { $ref: "#/$defs/ContentFloatOrigin" },
414
+ offsetPt: { type: "number" }
415
+ },
416
+ required: ["relativeTo", "offsetPt"],
417
+ additionalProperties: false
418
+ }, {
419
+ type: "object",
420
+ properties: {
421
+ relativeTo: { $ref: "#/$defs/ContentFloatOrigin" },
422
+ align: { $ref: "#/$defs/ContentFloatAlign" }
423
+ },
424
+ required: ["relativeTo", "align"],
425
+ additionalProperties: false
426
+ }] },
427
+ ContentFloatPosition: {
428
+ type: "object",
429
+ properties: {
430
+ horizontal: { $ref: "#/$defs/ContentFloatAxis" },
431
+ vertical: { $ref: "#/$defs/ContentFloatAxis" }
432
+ },
433
+ required: ["horizontal", "vertical"],
434
+ additionalProperties: false
435
+ },
436
+ ContentOrigin: {
437
+ type: "string",
438
+ enum: [
439
+ "chart",
440
+ "diagram",
441
+ "table",
442
+ "image",
443
+ "notes",
444
+ "body"
445
+ ]
446
+ },
447
+ ContentInterpretation: {
448
+ type: "object",
449
+ properties: {
450
+ transcript: {
451
+ type: "object",
452
+ properties: {
453
+ text: { type: "string" },
454
+ confidence: {
455
+ type: "string",
456
+ enum: [
457
+ "high",
458
+ "medium",
459
+ "low"
460
+ ]
461
+ },
462
+ mechanism: {
463
+ type: "string",
464
+ enum: ["deterministic", "model"]
465
+ }
466
+ },
467
+ required: [
468
+ "text",
469
+ "confidence",
470
+ "mechanism"
471
+ ],
472
+ additionalProperties: false
473
+ },
474
+ description: { type: "string" },
475
+ by: {
476
+ type: "object",
477
+ properties: {
478
+ model: { type: "string" },
479
+ at: { type: "string" }
480
+ },
481
+ required: ["model", "at"],
482
+ additionalProperties: false
483
+ }
484
+ },
485
+ additionalProperties: false
486
+ },
487
+ ContentImageOriginal: {
488
+ type: "object",
489
+ properties: {
490
+ filter: {
491
+ type: "string",
492
+ enum: ["jbig2", "jpeg2000"]
493
+ },
494
+ base64: { type: "string" },
495
+ jbig2GlobalsBase64: { type: "string" }
496
+ },
497
+ required: ["filter", "base64"],
498
+ additionalProperties: false
499
+ },
500
+ ContentImageBlock: {
501
+ type: "object",
502
+ properties: {
503
+ kind: {
504
+ type: "string",
505
+ const: "image"
506
+ },
507
+ format: {
508
+ type: "string",
509
+ enum: [
510
+ "png",
511
+ "jpeg",
512
+ "svg",
513
+ "gif"
514
+ ]
515
+ },
516
+ base64: { type: "string" },
517
+ widthPt: {
518
+ type: "number",
519
+ exclusiveMinimum: 0
520
+ },
521
+ heightPt: {
522
+ type: "number",
523
+ exclusiveMinimum: 0
524
+ },
525
+ altText: { type: "string" },
526
+ original: { $ref: "#/$defs/ContentImageOriginal" },
527
+ anchorRunIndex: {
528
+ type: "integer",
529
+ minimum: 0,
530
+ maximum: require_json_schema_defs_shared.MAX_SAFE_INTEGER
531
+ },
532
+ anchorOffset: {
533
+ type: "integer",
534
+ minimum: 0,
535
+ maximum: require_json_schema_defs_shared.MAX_SAFE_INTEGER
536
+ },
537
+ caption: { type: "string" },
538
+ floatPosition: { $ref: "#/$defs/ContentFloatPosition" },
539
+ sourcePath: { type: "string" },
540
+ source: { $ref: "#/$defs/SourceResidue" },
541
+ frames: {
542
+ type: "array",
543
+ items: { $ref: "#/$defs/LayoutFrame" }
544
+ },
545
+ origin: { $ref: "#/$defs/ContentOrigin" },
546
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
547
+ },
548
+ required: [
549
+ "kind",
550
+ "format",
551
+ "base64",
552
+ "widthPt",
553
+ "heightPt"
554
+ ],
555
+ additionalProperties: false
556
+ },
557
+ ContentPageBreak: {
558
+ type: "object",
559
+ properties: {
560
+ kind: {
561
+ type: "string",
562
+ const: "pageBreak"
563
+ },
564
+ sourcePath: { type: "string" },
565
+ source: { $ref: "#/$defs/SourceResidue" },
566
+ frames: {
567
+ type: "array",
568
+ items: { $ref: "#/$defs/LayoutFrame" }
569
+ },
570
+ origin: { $ref: "#/$defs/ContentOrigin" },
571
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
572
+ },
573
+ required: ["kind"],
574
+ additionalProperties: false
575
+ },
576
+ ContentTableCell: {
577
+ type: "object",
578
+ properties: {
579
+ blocks: {
580
+ type: "array",
581
+ items: { $ref: "#/$defs/ContentBlock" }
582
+ },
583
+ colSpan: {
584
+ type: "integer",
585
+ exclusiveMinimum: 0,
586
+ maximum: require_json_schema_defs_shared.MAX_SAFE_INTEGER
587
+ },
588
+ rowSpan: {
589
+ type: "integer",
590
+ exclusiveMinimum: 0,
591
+ maximum: require_json_schema_defs_shared.MAX_SAFE_INTEGER
592
+ },
593
+ background: { $ref: "#/$defs/ContentCellFill" },
594
+ borders: { $ref: "#/$defs/ContentCellBorders" },
595
+ verticalAlign: {
596
+ type: "string",
597
+ enum: [
598
+ "top",
599
+ "center",
600
+ "bottom"
601
+ ]
602
+ },
603
+ formula: { type: "string" },
604
+ sourcePath: { type: "string" },
605
+ source: { $ref: "#/$defs/SourceResidue" },
606
+ frames: {
607
+ type: "array",
608
+ items: { $ref: "#/$defs/LayoutFrame" }
609
+ },
610
+ origin: { $ref: "#/$defs/ContentOrigin" },
611
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
612
+ },
613
+ required: ["blocks"],
614
+ additionalProperties: false
615
+ },
616
+ ContentTableRow: {
617
+ type: "object",
618
+ properties: {
619
+ cells: {
620
+ type: "array",
621
+ items: { $ref: "#/$defs/ContentTableCell" }
622
+ },
623
+ heightPt: {
624
+ type: "number",
625
+ exclusiveMinimum: 0
626
+ },
627
+ direction: {
628
+ type: "string",
629
+ enum: ["ltr", "rtl"]
630
+ },
631
+ isHeader: { type: "boolean" }
632
+ },
633
+ required: ["cells"],
634
+ additionalProperties: false
635
+ },
636
+ ContentTableColumn: {
637
+ type: "object",
638
+ properties: {
639
+ widthPt: {
640
+ type: "number",
641
+ minimum: 0
642
+ },
643
+ isHeader: { type: "boolean" }
644
+ },
645
+ required: ["widthPt"],
646
+ additionalProperties: false
647
+ },
648
+ ContentTable: {
649
+ type: "object",
650
+ properties: {
651
+ kind: {
652
+ type: "string",
653
+ const: "table"
654
+ },
655
+ rows: {
656
+ type: "array",
657
+ items: { $ref: "#/$defs/ContentTableRow" }
658
+ },
659
+ columns: {
660
+ type: "array",
661
+ items: { $ref: "#/$defs/ContentTableColumn" }
662
+ },
663
+ sourcePath: { type: "string" },
664
+ source: { $ref: "#/$defs/SourceResidue" },
665
+ frames: {
666
+ type: "array",
667
+ items: { $ref: "#/$defs/LayoutFrame" }
668
+ },
669
+ origin: { $ref: "#/$defs/ContentOrigin" },
670
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
671
+ },
672
+ required: [
673
+ "kind",
674
+ "rows",
675
+ "columns"
676
+ ],
677
+ additionalProperties: false
678
+ },
679
+ ContentEmbeddedObjectBlock: {
680
+ type: "object",
681
+ properties: {
682
+ kind: {
683
+ type: "string",
684
+ const: "embeddedObject"
685
+ },
686
+ objectKind: {
687
+ type: "string",
688
+ enum: require_json_schema_defs_shared.EMBEDDED_OBJECT_KINDS
689
+ },
690
+ document: { $ref: require_json_schema_defs_shared.CONTENT_DOCUMENT_URI },
691
+ frame: { $ref: "#/$defs/Box" },
692
+ sourcePath: { type: "string" },
693
+ source: { $ref: "#/$defs/SourceResidue" },
694
+ frames: {
695
+ type: "array",
696
+ items: { $ref: "#/$defs/LayoutFrame" }
697
+ },
698
+ anchorRow: {
699
+ type: "integer",
700
+ minimum: 0,
701
+ maximum: require_json_schema_defs_shared.MAX_SAFE_INTEGER
702
+ },
703
+ anchorColumn: {
704
+ type: "integer",
705
+ minimum: 0,
706
+ maximum: require_json_schema_defs_shared.MAX_SAFE_INTEGER
707
+ },
708
+ offsetXPt: { type: "number" },
709
+ offsetYPt: { type: "number" }
710
+ },
711
+ required: [
712
+ "kind",
713
+ "objectKind",
714
+ "document",
715
+ "frame"
716
+ ],
717
+ additionalProperties: false
718
+ },
719
+ ContentConstructStart: {
720
+ type: "object",
721
+ properties: {
722
+ kind: {
723
+ type: "string",
724
+ const: "constructStart"
725
+ },
726
+ descriptor: { $ref: "#/$defs/ConstructDescriptor" }
727
+ },
728
+ required: ["kind", "descriptor"],
729
+ additionalProperties: false
730
+ },
731
+ ContentConstructEnd: {
732
+ type: "object",
733
+ properties: { kind: {
734
+ type: "string",
735
+ const: "constructEnd"
736
+ } },
737
+ required: ["kind"],
738
+ additionalProperties: false
739
+ },
740
+ ContentBlock: { oneOf: [
741
+ { $ref: "#/$defs/ContentParagraph" },
742
+ { $ref: "#/$defs/ContentTable" },
743
+ { $ref: "#/$defs/ContentImageBlock" },
744
+ { $ref: "#/$defs/ContentPageBreak" },
745
+ { $ref: "#/$defs/ContentEmbeddedObjectBlock" },
746
+ { $ref: "#/$defs/ContentConstructStart" },
747
+ { $ref: "#/$defs/ContentConstructEnd" }
748
+ ] },
749
+ TreeBlockLeaf: { oneOf: [
750
+ { $ref: "#/$defs/ContentParagraph" },
751
+ { $ref: "#/$defs/ContentTable" },
752
+ { $ref: "#/$defs/ContentImageBlock" },
753
+ { $ref: "#/$defs/ContentPageBreak" },
754
+ { $ref: "#/$defs/ContentEmbeddedObjectBlock" }
755
+ ] },
756
+ PageSize: {
757
+ type: "object",
758
+ properties: {
759
+ widthPt: {
760
+ type: "number",
761
+ exclusiveMinimum: 0
762
+ },
763
+ heightPt: {
764
+ type: "number",
765
+ exclusiveMinimum: 0
766
+ }
767
+ },
768
+ required: ["widthPt", "heightPt"],
769
+ additionalProperties: false
770
+ },
771
+ Margins: {
772
+ type: "object",
773
+ properties: {
774
+ topPt: {
775
+ type: "number",
776
+ minimum: 0
777
+ },
778
+ rightPt: {
779
+ type: "number",
780
+ minimum: 0
781
+ },
782
+ bottomPt: {
783
+ type: "number",
784
+ minimum: 0
785
+ },
786
+ leftPt: {
787
+ type: "number",
788
+ minimum: 0
789
+ }
790
+ },
791
+ required: [
792
+ "topPt",
793
+ "rightPt",
794
+ "bottomPt",
795
+ "leftPt"
796
+ ],
797
+ additionalProperties: false
798
+ },
799
+ SectionDescriptor: {
800
+ type: "object",
801
+ properties: {
802
+ pageSize: { $ref: "#/$defs/PageSize" },
803
+ margins: { $ref: "#/$defs/Margins" },
804
+ breakType: {
805
+ type: "string",
806
+ enum: [
807
+ "nextPage",
808
+ "continuous",
809
+ "evenPage",
810
+ "oddPage"
811
+ ]
812
+ },
813
+ headers: { $ref: "#/$defs/ContentPageFurniture" },
814
+ footers: { $ref: "#/$defs/ContentPageFurniture" },
815
+ watermarks: { $ref: "#/$defs/ContentPageFurniture" },
816
+ source: { $ref: "#/$defs/SourceResidue" },
817
+ origin: { $ref: "#/$defs/ContentOrigin" },
818
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
819
+ kind: {
820
+ type: "string",
821
+ const: "section"
822
+ }
823
+ },
824
+ required: [
825
+ "pageSize",
826
+ "margins",
827
+ "kind"
828
+ ],
829
+ additionalProperties: false
830
+ },
831
+ ContentPageFurniture: {
832
+ type: "object",
833
+ properties: {
834
+ default: {
835
+ type: "array",
836
+ items: { $ref: "#/$defs/ContentBlock" }
837
+ },
838
+ even: {
839
+ type: "array",
840
+ items: { $ref: "#/$defs/ContentBlock" }
841
+ },
842
+ first: {
843
+ type: "array",
844
+ items: { $ref: "#/$defs/ContentBlock" }
845
+ }
846
+ },
847
+ additionalProperties: false
848
+ },
849
+ SlideDescriptor: {
850
+ type: "object",
851
+ properties: {
852
+ size: { $ref: "#/$defs/PageSize" },
853
+ notes: { type: "string" },
854
+ source: { $ref: "#/$defs/SourceResidue" },
855
+ origin: { $ref: "#/$defs/ContentOrigin" },
856
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
857
+ kind: {
858
+ type: "string",
859
+ const: "slide"
860
+ }
861
+ },
862
+ required: [
863
+ "size",
864
+ "notes",
865
+ "kind"
866
+ ],
867
+ additionalProperties: false
868
+ },
869
+ SheetDescriptor: {
870
+ type: "object",
871
+ properties: {
872
+ name: { type: "string" },
873
+ cells: {
874
+ type: "array",
875
+ items: { $ref: "#/$defs/ContentSheetCell" }
876
+ },
877
+ columns: {
878
+ type: "array",
879
+ items: { $ref: "#/$defs/ContentSheetColumn" }
880
+ },
881
+ rows: {
882
+ type: "array",
883
+ items: { $ref: "#/$defs/ContentSheetRow" }
884
+ },
885
+ printSettings: { $ref: "#/$defs/ContentSheetPrintSettings" },
886
+ dataValidations: {
887
+ type: "array",
888
+ items: { $ref: "#/$defs/ContentSheetDataValidation" }
889
+ },
890
+ conditionalFormats: {
891
+ type: "array",
892
+ items: { $ref: "#/$defs/ContentSheetConditionalFormat" }
893
+ },
894
+ source: { $ref: "#/$defs/SourceResidue" },
895
+ origin: { $ref: "#/$defs/ContentOrigin" },
896
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
897
+ kind: {
898
+ type: "string",
899
+ const: "sheet"
900
+ }
901
+ },
902
+ required: [
903
+ "name",
904
+ "cells",
905
+ "columns",
906
+ "rows",
907
+ "printSettings",
908
+ "kind"
909
+ ],
910
+ additionalProperties: false
911
+ },
912
+ DrawPageDescriptor: {
913
+ type: "object",
914
+ properties: {
915
+ size: { $ref: "#/$defs/PageSize" },
916
+ source: { $ref: "#/$defs/SourceResidue" },
917
+ origin: { $ref: "#/$defs/ContentOrigin" },
918
+ interpretation: { $ref: "#/$defs/ContentInterpretation" },
919
+ kind: {
920
+ type: "string",
921
+ const: "drawPage"
922
+ }
923
+ },
924
+ required: ["size", "kind"],
925
+ additionalProperties: false
926
+ },
927
+ ShapeDescriptor: {
928
+ type: "object",
929
+ properties: {
930
+ name: { type: "string" },
931
+ frame: { $ref: "#/$defs/Box" },
932
+ rotationDeg: { type: "number" },
933
+ insetLeftPt: {
934
+ type: "number",
935
+ minimum: 0
936
+ },
937
+ insetTopPt: {
938
+ type: "number",
939
+ minimum: 0
940
+ },
941
+ insetRightPt: {
942
+ type: "number",
943
+ minimum: 0
944
+ },
945
+ insetBottomPt: {
946
+ type: "number",
947
+ minimum: 0
948
+ },
949
+ fontScale: {
950
+ type: "number",
951
+ exclusiveMinimum: 0
952
+ },
953
+ lineSpacingReduction: {
954
+ type: "number",
955
+ minimum: 0
956
+ },
957
+ paintOrder: { type: "number" },
958
+ readingOrder: { type: "number" },
959
+ sourcePath: { type: "string" },
960
+ source: { $ref: "#/$defs/SourceResidue" },
961
+ frames: {
962
+ type: "array",
963
+ items: { $ref: "#/$defs/LayoutFrame" }
964
+ },
965
+ origin: { $ref: "#/$defs/ContentOrigin" },
966
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
967
+ },
968
+ required: [
969
+ "frame",
970
+ "insetLeftPt",
971
+ "insetTopPt",
972
+ "insetRightPt",
973
+ "insetBottomPt"
974
+ ],
975
+ additionalProperties: false
976
+ },
977
+ HeadingParagraph: {
978
+ type: "object",
979
+ properties: {
980
+ kind: {
981
+ type: "string",
982
+ const: "paragraph"
983
+ },
984
+ runs: {
985
+ type: "array",
986
+ items: { $ref: "#/$defs/ContentRun" }
987
+ },
988
+ constructs: {
989
+ type: "array",
990
+ items: { $ref: "#/$defs/RunConstructExtent" }
991
+ },
992
+ styleId: { type: "string" },
993
+ codeLanguage: { type: "string" },
994
+ preformatted: { type: "boolean" },
995
+ headingLevel: {
996
+ type: "integer",
997
+ exclusiveMinimum: 0,
998
+ maximum: require_json_schema_defs_shared.MAX_SAFE_INTEGER
999
+ },
1000
+ alignment: { $ref: "#/$defs/Alignment" },
1001
+ list: { $ref: "#/$defs/ContentListMembership" },
1002
+ spacingBeforePt: { type: "number" },
1003
+ spacingAfterPt: { type: "number" },
1004
+ lineSpacing: {
1005
+ type: "number",
1006
+ exclusiveMinimum: 0
1007
+ },
1008
+ indentLeftPt: { type: "number" },
1009
+ indentRightPt: { type: "number" },
1010
+ indentFirstLinePt: { type: "number" },
1011
+ direction: {
1012
+ type: "string",
1013
+ enum: ["ltr", "rtl"]
1014
+ },
1015
+ pageBreakBefore: { type: "boolean" },
1016
+ pageBreakAfter: { type: "boolean" },
1017
+ borders: { $ref: "#/$defs/ContentParagraphBorders" },
1018
+ sourcePath: { type: "string" },
1019
+ source: { $ref: "#/$defs/SourceResidue" },
1020
+ frames: {
1021
+ type: "array",
1022
+ items: { $ref: "#/$defs/LayoutFrame" }
1023
+ },
1024
+ origin: { $ref: "#/$defs/ContentOrigin" },
1025
+ interpretation: { $ref: "#/$defs/ContentInterpretation" }
1026
+ },
1027
+ required: [
1028
+ "kind",
1029
+ "runs",
1030
+ "headingLevel"
1031
+ ],
1032
+ additionalProperties: false
1033
+ }
1034
+ };
1035
+ //#endregion
1036
+ exports.DEFS_BLOCKS = DEFS_BLOCKS;