doc-schema.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/content-document.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json",
4
4
  "oneOf": [
5
5
  {
6
6
  "type": "object",
@@ -2857,7 +2857,7 @@
2857
2857
  ]
2858
2858
  },
2859
2859
  "document": {
2860
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.0.0/schemas/content-document.schema.json"
2860
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json"
2861
2861
  },
2862
2862
  "frame": {
2863
2863
  "$ref": "#/$defs/Box"
@@ -4077,7 +4077,7 @@
4077
4077
  ]
4078
4078
  },
4079
4079
  "document": {
4080
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.0.0/schemas/content-document.schema.json"
4080
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.1.0/schemas/content-document.schema.json"
4081
4081
  },
4082
4082
  "frame": {
4083
4083
  "$ref": "#/$defs/Box"
@@ -4125,6 +4125,9 @@
4125
4125
  {
4126
4126
  "$ref": "#/$defs/ListGroup"
4127
4127
  },
4128
+ {
4129
+ "$ref": "#/$defs/SectionConstructGroup"
4130
+ },
4128
4131
  {
4129
4132
  "$ref": "#/$defs/ContentBlock"
4130
4133
  }
@@ -4157,6 +4160,9 @@
4157
4160
  {
4158
4161
  "$ref": "#/$defs/ListGroup"
4159
4162
  },
4163
+ {
4164
+ "$ref": "#/$defs/SectionConstructGroup"
4165
+ },
4160
4166
  {
4161
4167
  "$ref": "#/$defs/ContentBlock"
4162
4168
  }
@@ -4186,6 +4192,9 @@
4186
4192
  {
4187
4193
  "$ref": "#/$defs/ListGroup"
4188
4194
  },
4195
+ {
4196
+ "$ref": "#/$defs/ShapeConstructGroup"
4197
+ },
4189
4198
  {
4190
4199
  "$ref": "#/$defs/ContentBlock"
4191
4200
  }
@@ -4237,6 +4246,9 @@
4237
4246
  {
4238
4247
  "$ref": "#/$defs/ListGroup"
4239
4248
  },
4249
+ {
4250
+ "$ref": "#/$defs/ShapeConstructGroup"
4251
+ },
4240
4252
  {
4241
4253
  "$ref": "#/$defs/ContentBlock"
4242
4254
  }
@@ -4308,6 +4320,331 @@
4308
4320
  ],
4309
4321
  "additionalProperties": false
4310
4322
  },
4323
+ "SectionConstructGroup": {
4324
+ "type": "object",
4325
+ "properties": {
4326
+ "node": {
4327
+ "$ref": "#/$defs/ConstructDescriptor"
4328
+ },
4329
+ "style": {
4330
+ "type": "string"
4331
+ },
4332
+ "children": {
4333
+ "type": "array",
4334
+ "items": {
4335
+ "oneOf": [
4336
+ {
4337
+ "$ref": "#/$defs/HeadingGroup"
4338
+ },
4339
+ {
4340
+ "$ref": "#/$defs/ListGroup"
4341
+ },
4342
+ {
4343
+ "$ref": "#/$defs/SectionConstructGroup"
4344
+ },
4345
+ {
4346
+ "$ref": "#/$defs/ContentBlock"
4347
+ }
4348
+ ]
4349
+ }
4350
+ }
4351
+ },
4352
+ "required": [
4353
+ "node",
4354
+ "children"
4355
+ ],
4356
+ "additionalProperties": false
4357
+ },
4358
+ "ShapeConstructGroup": {
4359
+ "type": "object",
4360
+ "properties": {
4361
+ "node": {
4362
+ "$ref": "#/$defs/ConstructDescriptor"
4363
+ },
4364
+ "style": {
4365
+ "type": "string"
4366
+ },
4367
+ "children": {
4368
+ "type": "array",
4369
+ "items": {
4370
+ "oneOf": [
4371
+ {
4372
+ "$ref": "#/$defs/ListGroup"
4373
+ },
4374
+ {
4375
+ "$ref": "#/$defs/ShapeConstructGroup"
4376
+ },
4377
+ {
4378
+ "$ref": "#/$defs/ContentBlock"
4379
+ }
4380
+ ]
4381
+ }
4382
+ }
4383
+ },
4384
+ "required": [
4385
+ "node",
4386
+ "children"
4387
+ ],
4388
+ "additionalProperties": false
4389
+ },
4390
+ "ContentControlDescriptor": {
4391
+ "type": "object",
4392
+ "properties": {
4393
+ "kind": {
4394
+ "type": "string",
4395
+ "const": "contentControl"
4396
+ },
4397
+ "controlType": {
4398
+ "type": "string",
4399
+ "enum": [
4400
+ "richText",
4401
+ "plainText",
4402
+ "checkbox",
4403
+ "dropDown",
4404
+ "comboBox",
4405
+ "date",
4406
+ "picture",
4407
+ "repeatingSection",
4408
+ "button",
4409
+ "index",
4410
+ "group"
4411
+ ]
4412
+ },
4413
+ "tag": {
4414
+ "type": "string"
4415
+ },
4416
+ "alias": {
4417
+ "type": "string"
4418
+ },
4419
+ "lock": {
4420
+ "type": "string",
4421
+ "enum": [
4422
+ "content",
4423
+ "container",
4424
+ "both"
4425
+ ]
4426
+ },
4427
+ "value": {
4428
+ "type": "string"
4429
+ },
4430
+ "checked": {
4431
+ "type": "boolean"
4432
+ },
4433
+ "options": {
4434
+ "type": "array",
4435
+ "items": {
4436
+ "type": "string"
4437
+ }
4438
+ }
4439
+ },
4440
+ "required": [
4441
+ "kind",
4442
+ "controlType"
4443
+ ],
4444
+ "additionalProperties": false
4445
+ },
4446
+ "FieldDescriptor": {
4447
+ "type": "object",
4448
+ "properties": {
4449
+ "kind": {
4450
+ "type": "string",
4451
+ "const": "field"
4452
+ },
4453
+ "instruction": {
4454
+ "type": "string"
4455
+ },
4456
+ "cachedResult": {
4457
+ "type": "string"
4458
+ }
4459
+ },
4460
+ "required": [
4461
+ "kind",
4462
+ "instruction"
4463
+ ],
4464
+ "additionalProperties": false
4465
+ },
4466
+ "AnchorDescriptor": {
4467
+ "type": "object",
4468
+ "properties": {
4469
+ "kind": {
4470
+ "type": "string",
4471
+ "const": "anchor"
4472
+ },
4473
+ "anchorType": {
4474
+ "type": "string",
4475
+ "enum": [
4476
+ "bookmark",
4477
+ "footnote",
4478
+ "endnote",
4479
+ "comment"
4480
+ ]
4481
+ },
4482
+ "name": {
4483
+ "type": "string"
4484
+ },
4485
+ "definition": {
4486
+ "type": "string"
4487
+ }
4488
+ },
4489
+ "required": [
4490
+ "kind",
4491
+ "anchorType",
4492
+ "name"
4493
+ ],
4494
+ "additionalProperties": false
4495
+ },
4496
+ "LinkTarget": {
4497
+ "oneOf": [
4498
+ {
4499
+ "type": "object",
4500
+ "properties": {
4501
+ "kind": {
4502
+ "type": "string",
4503
+ "const": "external"
4504
+ },
4505
+ "uri": {
4506
+ "type": "string"
4507
+ }
4508
+ },
4509
+ "required": [
4510
+ "kind",
4511
+ "uri"
4512
+ ],
4513
+ "additionalProperties": false
4514
+ },
4515
+ {
4516
+ "type": "object",
4517
+ "properties": {
4518
+ "kind": {
4519
+ "type": "string",
4520
+ "const": "internal"
4521
+ },
4522
+ "anchor": {
4523
+ "type": "string"
4524
+ }
4525
+ },
4526
+ "required": [
4527
+ "kind",
4528
+ "anchor"
4529
+ ],
4530
+ "additionalProperties": false
4531
+ }
4532
+ ]
4533
+ },
4534
+ "LinkDescriptor": {
4535
+ "type": "object",
4536
+ "properties": {
4537
+ "kind": {
4538
+ "type": "string",
4539
+ "const": "link"
4540
+ },
4541
+ "target": {
4542
+ "$ref": "#/$defs/LinkTarget"
4543
+ },
4544
+ "title": {
4545
+ "type": "string"
4546
+ }
4547
+ },
4548
+ "required": [
4549
+ "kind",
4550
+ "target"
4551
+ ],
4552
+ "additionalProperties": false
4553
+ },
4554
+ "ProvenanceDescriptor": {
4555
+ "type": "object",
4556
+ "properties": {
4557
+ "kind": {
4558
+ "type": "string",
4559
+ "const": "provenance"
4560
+ },
4561
+ "change": {
4562
+ "type": "string",
4563
+ "enum": [
4564
+ "insertion",
4565
+ "deletion",
4566
+ "moveFrom",
4567
+ "moveTo",
4568
+ "formatChange"
4569
+ ]
4570
+ },
4571
+ "author": {
4572
+ "type": "string"
4573
+ },
4574
+ "dateIso": {
4575
+ "type": "string"
4576
+ }
4577
+ },
4578
+ "required": [
4579
+ "kind",
4580
+ "change"
4581
+ ],
4582
+ "additionalProperties": false
4583
+ },
4584
+ "DivisionSource": {
4585
+ "type": "object",
4586
+ "properties": {
4587
+ "href": {
4588
+ "type": "string"
4589
+ },
4590
+ "sectionName": {
4591
+ "type": "string"
4592
+ }
4593
+ },
4594
+ "required": [
4595
+ "href"
4596
+ ],
4597
+ "additionalProperties": false
4598
+ },
4599
+ "DivisionDescriptor": {
4600
+ "type": "object",
4601
+ "properties": {
4602
+ "kind": {
4603
+ "type": "string",
4604
+ "const": "division"
4605
+ },
4606
+ "name": {
4607
+ "type": "string"
4608
+ },
4609
+ "columnCount": {
4610
+ "type": "integer",
4611
+ "exclusiveMinimum": 0,
4612
+ "maximum": 9007199254740991
4613
+ },
4614
+ "protected": {
4615
+ "type": "boolean"
4616
+ },
4617
+ "source": {
4618
+ "$ref": "#/$defs/DivisionSource"
4619
+ }
4620
+ },
4621
+ "required": [
4622
+ "kind"
4623
+ ],
4624
+ "additionalProperties": false
4625
+ },
4626
+ "ConstructDescriptor": {
4627
+ "oneOf": [
4628
+ {
4629
+ "$ref": "#/$defs/ContentControlDescriptor"
4630
+ },
4631
+ {
4632
+ "$ref": "#/$defs/FieldDescriptor"
4633
+ },
4634
+ {
4635
+ "$ref": "#/$defs/AnchorDescriptor"
4636
+ },
4637
+ {
4638
+ "$ref": "#/$defs/LinkDescriptor"
4639
+ },
4640
+ {
4641
+ "$ref": "#/$defs/ProvenanceDescriptor"
4642
+ },
4643
+ {
4644
+ "$ref": "#/$defs/DivisionDescriptor"
4645
+ }
4646
+ ]
4647
+ },
4311
4648
  "StyleParagraphProperties": {
4312
4649
  "type": "object",
4313
4650
  "properties": {