document-model.js 4.0.0 → 4.1.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.
@@ -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@4.0.0/schemas/document-package.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/document-package.schema.json",
4
4
  "oneOf": [
5
5
  {
6
6
  "type": "object",
@@ -84,6 +84,33 @@
84
84
  "$ref": "#/$defs/DefinitionEntry"
85
85
  }
86
86
  },
87
+ "layers": {
88
+ "type": "object",
89
+ "propertyNames": {
90
+ "type": "string"
91
+ },
92
+ "additionalProperties": {
93
+ "$ref": "#/$defs/DefinitionEntry"
94
+ }
95
+ },
96
+ "attachments": {
97
+ "type": "object",
98
+ "propertyNames": {
99
+ "type": "string"
100
+ },
101
+ "additionalProperties": {
102
+ "$ref": "#/$defs/DefinitionEntry"
103
+ }
104
+ },
105
+ "destinations": {
106
+ "type": "object",
107
+ "propertyNames": {
108
+ "type": "string"
109
+ },
110
+ "additionalProperties": {
111
+ "$ref": "#/$defs/DefinitionEntry"
112
+ }
113
+ },
87
114
  "children": {
88
115
  "type": "array",
89
116
  "items": {
@@ -180,6 +207,33 @@
180
207
  "$ref": "#/$defs/DefinitionEntry"
181
208
  }
182
209
  },
210
+ "layers": {
211
+ "type": "object",
212
+ "propertyNames": {
213
+ "type": "string"
214
+ },
215
+ "additionalProperties": {
216
+ "$ref": "#/$defs/DefinitionEntry"
217
+ }
218
+ },
219
+ "attachments": {
220
+ "type": "object",
221
+ "propertyNames": {
222
+ "type": "string"
223
+ },
224
+ "additionalProperties": {
225
+ "$ref": "#/$defs/DefinitionEntry"
226
+ }
227
+ },
228
+ "destinations": {
229
+ "type": "object",
230
+ "propertyNames": {
231
+ "type": "string"
232
+ },
233
+ "additionalProperties": {
234
+ "$ref": "#/$defs/DefinitionEntry"
235
+ }
236
+ },
183
237
  "children": {
184
238
  "type": "array",
185
239
  "items": {
@@ -276,6 +330,33 @@
276
330
  "$ref": "#/$defs/DefinitionEntry"
277
331
  }
278
332
  },
333
+ "layers": {
334
+ "type": "object",
335
+ "propertyNames": {
336
+ "type": "string"
337
+ },
338
+ "additionalProperties": {
339
+ "$ref": "#/$defs/DefinitionEntry"
340
+ }
341
+ },
342
+ "attachments": {
343
+ "type": "object",
344
+ "propertyNames": {
345
+ "type": "string"
346
+ },
347
+ "additionalProperties": {
348
+ "$ref": "#/$defs/DefinitionEntry"
349
+ }
350
+ },
351
+ "destinations": {
352
+ "type": "object",
353
+ "propertyNames": {
354
+ "type": "string"
355
+ },
356
+ "additionalProperties": {
357
+ "$ref": "#/$defs/DefinitionEntry"
358
+ }
359
+ },
279
360
  "children": {
280
361
  "type": "array",
281
362
  "items": {
@@ -372,6 +453,33 @@
372
453
  "$ref": "#/$defs/DefinitionEntry"
373
454
  }
374
455
  },
456
+ "layers": {
457
+ "type": "object",
458
+ "propertyNames": {
459
+ "type": "string"
460
+ },
461
+ "additionalProperties": {
462
+ "$ref": "#/$defs/DefinitionEntry"
463
+ }
464
+ },
465
+ "attachments": {
466
+ "type": "object",
467
+ "propertyNames": {
468
+ "type": "string"
469
+ },
470
+ "additionalProperties": {
471
+ "$ref": "#/$defs/DefinitionEntry"
472
+ }
473
+ },
474
+ "destinations": {
475
+ "type": "object",
476
+ "propertyNames": {
477
+ "type": "string"
478
+ },
479
+ "additionalProperties": {
480
+ "$ref": "#/$defs/DefinitionEntry"
481
+ }
482
+ },
375
483
  "children": {
376
484
  "type": "array",
377
485
  "items": {
@@ -468,6 +576,33 @@
468
576
  "$ref": "#/$defs/DefinitionEntry"
469
577
  }
470
578
  },
579
+ "layers": {
580
+ "type": "object",
581
+ "propertyNames": {
582
+ "type": "string"
583
+ },
584
+ "additionalProperties": {
585
+ "$ref": "#/$defs/DefinitionEntry"
586
+ }
587
+ },
588
+ "attachments": {
589
+ "type": "object",
590
+ "propertyNames": {
591
+ "type": "string"
592
+ },
593
+ "additionalProperties": {
594
+ "$ref": "#/$defs/DefinitionEntry"
595
+ }
596
+ },
597
+ "destinations": {
598
+ "type": "object",
599
+ "propertyNames": {
600
+ "type": "string"
601
+ },
602
+ "additionalProperties": {
603
+ "$ref": "#/$defs/DefinitionEntry"
604
+ }
605
+ },
471
606
  "children": {
472
607
  "minItems": 1,
473
608
  "maxItems": 1,
@@ -931,7 +1066,7 @@
931
1066
  ]
932
1067
  },
933
1068
  "document": {
934
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.0.0/schemas/content-document.schema.json"
1069
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json"
935
1070
  },
936
1071
  "frame": {
937
1072
  "$ref": "#/$defs/Box"
@@ -2151,7 +2286,7 @@
2151
2286
  ]
2152
2287
  },
2153
2288
  "document": {
2154
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.0.0/schemas/content-document.schema.json"
2289
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json"
2155
2290
  },
2156
2291
  "frame": {
2157
2292
  "$ref": "#/$defs/Box"
@@ -2199,6 +2334,9 @@
2199
2334
  {
2200
2335
  "$ref": "#/$defs/ListGroup"
2201
2336
  },
2337
+ {
2338
+ "$ref": "#/$defs/SectionConstructGroup"
2339
+ },
2202
2340
  {
2203
2341
  "$ref": "#/$defs/ContentBlock"
2204
2342
  }
@@ -2231,6 +2369,9 @@
2231
2369
  {
2232
2370
  "$ref": "#/$defs/ListGroup"
2233
2371
  },
2372
+ {
2373
+ "$ref": "#/$defs/SectionConstructGroup"
2374
+ },
2234
2375
  {
2235
2376
  "$ref": "#/$defs/ContentBlock"
2236
2377
  }
@@ -2260,6 +2401,9 @@
2260
2401
  {
2261
2402
  "$ref": "#/$defs/ListGroup"
2262
2403
  },
2404
+ {
2405
+ "$ref": "#/$defs/ShapeConstructGroup"
2406
+ },
2263
2407
  {
2264
2408
  "$ref": "#/$defs/ContentBlock"
2265
2409
  }
@@ -2311,6 +2455,9 @@
2311
2455
  {
2312
2456
  "$ref": "#/$defs/ListGroup"
2313
2457
  },
2458
+ {
2459
+ "$ref": "#/$defs/ShapeConstructGroup"
2460
+ },
2314
2461
  {
2315
2462
  "$ref": "#/$defs/ContentBlock"
2316
2463
  }
@@ -2382,6 +2529,331 @@
2382
2529
  ],
2383
2530
  "additionalProperties": false
2384
2531
  },
2532
+ "SectionConstructGroup": {
2533
+ "type": "object",
2534
+ "properties": {
2535
+ "node": {
2536
+ "$ref": "#/$defs/ConstructDescriptor"
2537
+ },
2538
+ "style": {
2539
+ "type": "string"
2540
+ },
2541
+ "children": {
2542
+ "type": "array",
2543
+ "items": {
2544
+ "oneOf": [
2545
+ {
2546
+ "$ref": "#/$defs/HeadingGroup"
2547
+ },
2548
+ {
2549
+ "$ref": "#/$defs/ListGroup"
2550
+ },
2551
+ {
2552
+ "$ref": "#/$defs/SectionConstructGroup"
2553
+ },
2554
+ {
2555
+ "$ref": "#/$defs/ContentBlock"
2556
+ }
2557
+ ]
2558
+ }
2559
+ }
2560
+ },
2561
+ "required": [
2562
+ "node",
2563
+ "children"
2564
+ ],
2565
+ "additionalProperties": false
2566
+ },
2567
+ "ShapeConstructGroup": {
2568
+ "type": "object",
2569
+ "properties": {
2570
+ "node": {
2571
+ "$ref": "#/$defs/ConstructDescriptor"
2572
+ },
2573
+ "style": {
2574
+ "type": "string"
2575
+ },
2576
+ "children": {
2577
+ "type": "array",
2578
+ "items": {
2579
+ "oneOf": [
2580
+ {
2581
+ "$ref": "#/$defs/ListGroup"
2582
+ },
2583
+ {
2584
+ "$ref": "#/$defs/ShapeConstructGroup"
2585
+ },
2586
+ {
2587
+ "$ref": "#/$defs/ContentBlock"
2588
+ }
2589
+ ]
2590
+ }
2591
+ }
2592
+ },
2593
+ "required": [
2594
+ "node",
2595
+ "children"
2596
+ ],
2597
+ "additionalProperties": false
2598
+ },
2599
+ "ContentControlDescriptor": {
2600
+ "type": "object",
2601
+ "properties": {
2602
+ "kind": {
2603
+ "type": "string",
2604
+ "const": "contentControl"
2605
+ },
2606
+ "controlType": {
2607
+ "type": "string",
2608
+ "enum": [
2609
+ "richText",
2610
+ "plainText",
2611
+ "checkbox",
2612
+ "dropDown",
2613
+ "comboBox",
2614
+ "date",
2615
+ "picture",
2616
+ "repeatingSection",
2617
+ "button",
2618
+ "index",
2619
+ "group"
2620
+ ]
2621
+ },
2622
+ "tag": {
2623
+ "type": "string"
2624
+ },
2625
+ "alias": {
2626
+ "type": "string"
2627
+ },
2628
+ "lock": {
2629
+ "type": "string",
2630
+ "enum": [
2631
+ "content",
2632
+ "container",
2633
+ "both"
2634
+ ]
2635
+ },
2636
+ "value": {
2637
+ "type": "string"
2638
+ },
2639
+ "checked": {
2640
+ "type": "boolean"
2641
+ },
2642
+ "options": {
2643
+ "type": "array",
2644
+ "items": {
2645
+ "type": "string"
2646
+ }
2647
+ }
2648
+ },
2649
+ "required": [
2650
+ "kind",
2651
+ "controlType"
2652
+ ],
2653
+ "additionalProperties": false
2654
+ },
2655
+ "FieldDescriptor": {
2656
+ "type": "object",
2657
+ "properties": {
2658
+ "kind": {
2659
+ "type": "string",
2660
+ "const": "field"
2661
+ },
2662
+ "instruction": {
2663
+ "type": "string"
2664
+ },
2665
+ "cachedResult": {
2666
+ "type": "string"
2667
+ }
2668
+ },
2669
+ "required": [
2670
+ "kind",
2671
+ "instruction"
2672
+ ],
2673
+ "additionalProperties": false
2674
+ },
2675
+ "AnchorDescriptor": {
2676
+ "type": "object",
2677
+ "properties": {
2678
+ "kind": {
2679
+ "type": "string",
2680
+ "const": "anchor"
2681
+ },
2682
+ "anchorType": {
2683
+ "type": "string",
2684
+ "enum": [
2685
+ "bookmark",
2686
+ "footnote",
2687
+ "endnote",
2688
+ "comment"
2689
+ ]
2690
+ },
2691
+ "name": {
2692
+ "type": "string"
2693
+ },
2694
+ "definition": {
2695
+ "type": "string"
2696
+ }
2697
+ },
2698
+ "required": [
2699
+ "kind",
2700
+ "anchorType",
2701
+ "name"
2702
+ ],
2703
+ "additionalProperties": false
2704
+ },
2705
+ "LinkTarget": {
2706
+ "oneOf": [
2707
+ {
2708
+ "type": "object",
2709
+ "properties": {
2710
+ "kind": {
2711
+ "type": "string",
2712
+ "const": "external"
2713
+ },
2714
+ "uri": {
2715
+ "type": "string"
2716
+ }
2717
+ },
2718
+ "required": [
2719
+ "kind",
2720
+ "uri"
2721
+ ],
2722
+ "additionalProperties": false
2723
+ },
2724
+ {
2725
+ "type": "object",
2726
+ "properties": {
2727
+ "kind": {
2728
+ "type": "string",
2729
+ "const": "internal"
2730
+ },
2731
+ "anchor": {
2732
+ "type": "string"
2733
+ }
2734
+ },
2735
+ "required": [
2736
+ "kind",
2737
+ "anchor"
2738
+ ],
2739
+ "additionalProperties": false
2740
+ }
2741
+ ]
2742
+ },
2743
+ "LinkDescriptor": {
2744
+ "type": "object",
2745
+ "properties": {
2746
+ "kind": {
2747
+ "type": "string",
2748
+ "const": "link"
2749
+ },
2750
+ "target": {
2751
+ "$ref": "#/$defs/LinkTarget"
2752
+ },
2753
+ "title": {
2754
+ "type": "string"
2755
+ }
2756
+ },
2757
+ "required": [
2758
+ "kind",
2759
+ "target"
2760
+ ],
2761
+ "additionalProperties": false
2762
+ },
2763
+ "ProvenanceDescriptor": {
2764
+ "type": "object",
2765
+ "properties": {
2766
+ "kind": {
2767
+ "type": "string",
2768
+ "const": "provenance"
2769
+ },
2770
+ "change": {
2771
+ "type": "string",
2772
+ "enum": [
2773
+ "insertion",
2774
+ "deletion",
2775
+ "moveFrom",
2776
+ "moveTo",
2777
+ "formatChange"
2778
+ ]
2779
+ },
2780
+ "author": {
2781
+ "type": "string"
2782
+ },
2783
+ "dateIso": {
2784
+ "type": "string"
2785
+ }
2786
+ },
2787
+ "required": [
2788
+ "kind",
2789
+ "change"
2790
+ ],
2791
+ "additionalProperties": false
2792
+ },
2793
+ "DivisionSource": {
2794
+ "type": "object",
2795
+ "properties": {
2796
+ "href": {
2797
+ "type": "string"
2798
+ },
2799
+ "sectionName": {
2800
+ "type": "string"
2801
+ }
2802
+ },
2803
+ "required": [
2804
+ "href"
2805
+ ],
2806
+ "additionalProperties": false
2807
+ },
2808
+ "DivisionDescriptor": {
2809
+ "type": "object",
2810
+ "properties": {
2811
+ "kind": {
2812
+ "type": "string",
2813
+ "const": "division"
2814
+ },
2815
+ "name": {
2816
+ "type": "string"
2817
+ },
2818
+ "columnCount": {
2819
+ "type": "integer",
2820
+ "exclusiveMinimum": 0,
2821
+ "maximum": 9007199254740991
2822
+ },
2823
+ "protected": {
2824
+ "type": "boolean"
2825
+ },
2826
+ "source": {
2827
+ "$ref": "#/$defs/DivisionSource"
2828
+ }
2829
+ },
2830
+ "required": [
2831
+ "kind"
2832
+ ],
2833
+ "additionalProperties": false
2834
+ },
2835
+ "ConstructDescriptor": {
2836
+ "oneOf": [
2837
+ {
2838
+ "$ref": "#/$defs/ContentControlDescriptor"
2839
+ },
2840
+ {
2841
+ "$ref": "#/$defs/FieldDescriptor"
2842
+ },
2843
+ {
2844
+ "$ref": "#/$defs/AnchorDescriptor"
2845
+ },
2846
+ {
2847
+ "$ref": "#/$defs/LinkDescriptor"
2848
+ },
2849
+ {
2850
+ "$ref": "#/$defs/ProvenanceDescriptor"
2851
+ },
2852
+ {
2853
+ "$ref": "#/$defs/DivisionDescriptor"
2854
+ }
2855
+ ]
2856
+ },
2385
2857
  "StyleParagraphProperties": {
2386
2858
  "type": "object",
2387
2859
  "properties": {