@atlaskit/adf-schema 57.5.4 → 57.6.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 (56) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/next-schema/full-schema.adf.js +1 -1
  3. package/dist/cjs/next-schema/generated/nodeTypes.js +66 -17
  4. package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
  5. package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
  6. package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  7. package/dist/cjs/next-schema/nodes/blockquote.js +1 -1
  8. package/dist/cjs/next-schema/nodes/expand.js +2 -1
  9. package/dist/cjs/next-schema/nodes/extension.js +8 -0
  10. package/dist/cjs/next-schema/nodes/list.js +1 -1
  11. package/dist/cjs/next-schema/nodes/nestedExpand.js +1 -1
  12. package/dist/cjs/next-schema/nodes/panel.js +3 -3
  13. package/dist/cjs/next-schema/nodes/task.js +1 -1
  14. package/dist/cjs/schema/default-schema.js +3 -1
  15. package/dist/cjs/schema/nodes/extension.js +15 -1
  16. package/dist/cjs/validator-schema/generated/validatorSpec.js +39 -15
  17. package/dist/es2019/next-schema/full-schema.adf.js +1 -1
  18. package/dist/es2019/next-schema/generated/nodeTypes.js +65 -16
  19. package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
  20. package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
  21. package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  22. package/dist/es2019/next-schema/nodes/blockquote.js +1 -1
  23. package/dist/es2019/next-schema/nodes/expand.js +2 -1
  24. package/dist/es2019/next-schema/nodes/extension.js +8 -0
  25. package/dist/es2019/next-schema/nodes/list.js +1 -1
  26. package/dist/es2019/next-schema/nodes/nestedExpand.js +1 -1
  27. package/dist/es2019/next-schema/nodes/panel.js +3 -3
  28. package/dist/es2019/next-schema/nodes/task.js +1 -1
  29. package/dist/es2019/schema/default-schema.js +3 -1
  30. package/dist/es2019/schema/nodes/extension.js +16 -0
  31. package/dist/es2019/validator-schema/generated/validatorSpec.js +37 -13
  32. package/dist/esm/next-schema/full-schema.adf.js +1 -1
  33. package/dist/esm/next-schema/generated/nodeTypes.js +65 -16
  34. package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
  35. package/dist/esm/next-schema/groups/blockGroup.js +1 -1
  36. package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  37. package/dist/esm/next-schema/nodes/blockquote.js +1 -1
  38. package/dist/esm/next-schema/nodes/expand.js +2 -1
  39. package/dist/esm/next-schema/nodes/extension.js +8 -0
  40. package/dist/esm/next-schema/nodes/list.js +1 -1
  41. package/dist/esm/next-schema/nodes/nestedExpand.js +1 -1
  42. package/dist/esm/next-schema/nodes/panel.js +3 -3
  43. package/dist/esm/next-schema/nodes/task.js +1 -1
  44. package/dist/esm/schema/default-schema.js +3 -1
  45. package/dist/esm/schema/nodes/extension.js +14 -0
  46. package/dist/esm/validator-schema/generated/validatorSpec.js +37 -13
  47. package/dist/json-schema/v1/stage-0.json +106 -0
  48. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
  49. package/dist/types/next-schema/generated/nodeTypes.d.ts +43 -15
  50. package/dist/types/next-schema/nodes/extension.d.ts +3 -1
  51. package/dist/types/schema/nodes/doc.d.ts +2 -2
  52. package/dist/types/schema/nodes/extension.d.ts +11 -0
  53. package/dist/types/validator-schema/generated/validatorSpec.d.ts +24 -0
  54. package/json-schema/v1/stage-0.json +106 -0
  55. package/package.json +6 -2
  56. package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -0
@@ -49,7 +49,7 @@ export var backgroundColor = {
49
49
  }
50
50
  }
51
51
  };
52
- export var block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'rule_with_attrs', 'bodiedRule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
52
+ export var block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'rule_with_attrs', 'bodiedRule', 'panel', 'blockquote', 'extension_with_marks', 'extension_with_annotation', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
53
53
  export var blockCard = {
54
54
  props: {
55
55
  attrs: [{
@@ -140,7 +140,7 @@ export var blockquote = {
140
140
  },
141
141
  content: {
142
142
  allowUnsupportedBlock: true,
143
- items: [['paragraph_with_no_marks', 'orderedList', 'bulletList', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'extension_with_marks']],
143
+ items: [['paragraph_with_no_marks', 'orderedList', 'bulletList', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'extension_with_marks', 'extension_with_annotation']],
144
144
  minItems: 1,
145
145
  type: 'array'
146
146
  },
@@ -166,7 +166,7 @@ export var blockTaskItem = {
166
166
  },
167
167
  content: {
168
168
  isTupleLike: true,
169
- items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'extension_with_marks'], ['paragraph_with_no_marks', 'paragraph_with_font_size', 'extension_with_marks']],
169
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'extension_with_marks', 'extension_with_annotation'], ['paragraph_with_no_marks', 'paragraph_with_font_size', 'extension_with_marks', 'extension_with_annotation']],
170
170
  minItems: 1,
171
171
  type: 'array'
172
172
  },
@@ -589,7 +589,7 @@ export var doc = {
589
589
  props: {
590
590
  content: {
591
591
  allowUnsupportedBlock: true,
592
- items: [['panel_c1', 'blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'rule_with_attrs', 'bodiedRule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'panel_root_only', 'panel_c1_root_only', 'rule_root_only', 'rule_with_attrs_root_only', 'bodiedRule_root_only', 'extension_root_only', 'bodiedExtension_root_only', 'multiBodiedExtension_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only', 'syncBlock', 'bodiedSyncBlock']],
592
+ items: [['panel_c1', 'blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'rule_with_attrs', 'bodiedRule', 'panel', 'blockquote', 'extension_with_marks', 'extension_with_annotation', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'panel_root_only', 'panel_c1_root_only', 'rule_root_only', 'rule_with_attrs_root_only', 'bodiedRule_root_only', 'extension_root_only', 'extension_root_only_with_annotation', 'bodiedExtension_root_only', 'multiBodiedExtension_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only', 'syncBlock', 'bodiedSyncBlock']],
593
593
  type: 'array'
594
594
  },
595
595
  type: {
@@ -697,7 +697,7 @@ export var expand = {
697
697
  },
698
698
  content: {
699
699
  allowUnsupportedBlock: true,
700
- items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'rule_with_attrs', 'bodiedRule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
700
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'rule_with_attrs', 'bodiedRule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'extension_with_annotation', 'nestedExpand_with_no_marks']],
701
701
  minItems: 1,
702
702
  type: 'array'
703
703
  },
@@ -777,6 +777,30 @@ export var extension_root_only = ['extension', {
777
777
  }
778
778
  }
779
779
  }];
780
+ export var extension_root_only_with_annotation = ['extension', {
781
+ meta: {
782
+ stage0: true
783
+ },
784
+ props: {
785
+ marks: {
786
+ items: [['annotation', 'breakout', 'dataConsumer', 'fragment']],
787
+ optional: true,
788
+ type: 'array'
789
+ }
790
+ }
791
+ }];
792
+ export var extension_with_annotation = ['extension', {
793
+ meta: {
794
+ stage0: true
795
+ },
796
+ props: {
797
+ marks: {
798
+ items: [['annotation', 'dataConsumer', 'fragment']],
799
+ optional: true,
800
+ type: 'array'
801
+ }
802
+ }
803
+ }];
780
804
  export var extension_with_marks = ['extension', {
781
805
  props: {
782
806
  marks: {
@@ -1048,7 +1072,7 @@ export var layoutColumn = {
1048
1072
  },
1049
1073
  content: {
1050
1074
  allowUnsupportedBlock: true,
1051
- items: [['panel_c1', 'blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'rule_with_attrs', 'bodiedRule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks']],
1075
+ items: [['panel_c1', 'blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'rule_with_attrs', 'bodiedRule', 'panel', 'blockquote', 'extension_with_marks', 'extension_with_annotation', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks']],
1052
1076
  minItems: 1,
1053
1077
  type: 'array'
1054
1078
  },
@@ -1181,7 +1205,7 @@ export var listItem = {
1181
1205
  },
1182
1206
  content: {
1183
1207
  allowUnsupportedBlock: true,
1184
- items: [['paragraph_with_font_size', 'paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'extension_with_marks']],
1208
+ items: [['paragraph_with_font_size', 'paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'extension_with_marks', 'extension_with_annotation']],
1185
1209
  minItems: 1,
1186
1210
  type: 'array'
1187
1211
  },
@@ -1551,7 +1575,7 @@ export var nestedExpand = {
1551
1575
  };
1552
1576
  export var nestedExpand_content = {
1553
1577
  allowUnsupportedBlock: true,
1554
- items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'rule_with_attrs', 'bodiedRule', 'panel', 'blockquote', 'extension_with_marks']],
1578
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'rule_with_attrs', 'bodiedRule', 'panel', 'blockquote', 'extension_with_marks', 'extension_with_annotation']],
1555
1579
  minItems: 1,
1556
1580
  type: 'array'
1557
1581
  };
@@ -1625,7 +1649,7 @@ export var panel = {
1625
1649
  },
1626
1650
  content: {
1627
1651
  allowUnsupportedBlock: true,
1628
- items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'rule_with_attrs', 'bodiedRule', 'decisionList', 'extension_with_marks']],
1652
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'rule_with_attrs', 'bodiedRule', 'decisionList', 'extension_with_marks', 'extension_with_annotation']],
1629
1653
  minItems: 1,
1630
1654
  type: 'array'
1631
1655
  },
@@ -1642,7 +1666,7 @@ export var panel_c1 = ['panel', {
1642
1666
  props: {
1643
1667
  content: {
1644
1668
  allowUnsupportedBlock: true,
1645
- items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'rule_with_attrs', 'bodiedRule', 'decisionList', 'extension_with_marks', 'table']],
1669
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'rule_with_attrs', 'bodiedRule', 'decisionList', 'extension_with_marks', 'extension_with_annotation', 'table']],
1646
1670
  minItems: 1,
1647
1671
  type: 'array'
1648
1672
  }
@@ -1655,7 +1679,7 @@ export var panel_c1_root_only = ['panel', {
1655
1679
  props: {
1656
1680
  content: {
1657
1681
  allowUnsupportedBlock: true,
1658
- items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'rule_with_attrs', 'bodiedRule', 'decisionList', 'extension_with_marks', 'table']],
1682
+ items: [['paragraph_with_no_marks', 'paragraph_with_font_size', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'rule_with_attrs', 'bodiedRule', 'decisionList', 'extension_with_marks', 'extension_with_annotation', 'table']],
1659
1683
  minItems: 1,
1660
1684
  type: 'array'
1661
1685
  },
@@ -2031,7 +2055,7 @@ export var tableCell = {
2031
2055
  },
2032
2056
  content: {
2033
2057
  allowUnsupportedBlock: true,
2034
- items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'rule_with_attrs', 'bodiedRule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
2058
+ items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'rule_with_attrs', 'bodiedRule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'extension_with_annotation', 'nestedExpand_with_no_marks']],
2035
2059
  minItems: 1,
2036
2060
  type: 'array'
2037
2061
  },
@@ -2078,7 +2102,7 @@ export var tableHeader = {
2078
2102
  }
2079
2103
  },
2080
2104
  content: {
2081
- items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'rule_with_attrs', 'bodiedRule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
2105
+ items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'rule_with_attrs', 'bodiedRule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'extension_with_annotation', 'nestedExpand_with_no_marks', 'nestedExpand']],
2082
2106
  minItems: 1,
2083
2107
  type: 'array'
2084
2108
  },
@@ -132,6 +132,9 @@
132
132
  {
133
133
  "$ref": "#/definitions/extension_with_marks_node"
134
134
  },
135
+ {
136
+ "$ref": "#/definitions/extension_with_annotation_node"
137
+ },
135
138
  {
136
139
  "$ref": "#/definitions/embedCard_node"
137
140
  },
@@ -279,6 +282,9 @@
279
282
  },
280
283
  {
281
284
  "$ref": "#/definitions/extension_with_marks_node"
285
+ },
286
+ {
287
+ "$ref": "#/definitions/extension_with_annotation_node"
282
288
  }
283
289
  ]
284
290
  },
@@ -320,6 +326,9 @@
320
326
  },
321
327
  {
322
328
  "$ref": "#/definitions/extension_with_marks_node"
329
+ },
330
+ {
331
+ "$ref": "#/definitions/extension_with_annotation_node"
323
332
  }
324
333
  ]
325
334
  },
@@ -333,6 +342,9 @@
333
342
  },
334
343
  {
335
344
  "$ref": "#/definitions/extension_with_marks_node"
345
+ },
346
+ {
347
+ "$ref": "#/definitions/extension_with_annotation_node"
336
348
  }
337
349
  ]
338
350
  }
@@ -1100,6 +1112,9 @@
1100
1112
  {
1101
1113
  "$ref": "#/definitions/extension_with_marks_node"
1102
1114
  },
1115
+ {
1116
+ "$ref": "#/definitions/extension_with_annotation_node"
1117
+ },
1103
1118
  {
1104
1119
  "$ref": "#/definitions/heading_with_indentation_node"
1105
1120
  },
@@ -1157,6 +1172,9 @@
1157
1172
  {
1158
1173
  "$ref": "#/definitions/extension_root_only_node"
1159
1174
  },
1175
+ {
1176
+ "$ref": "#/definitions/extension_root_only_with_annotation_node"
1177
+ },
1160
1178
  {
1161
1179
  "$ref": "#/definitions/bodiedExtension_root_only_node"
1162
1180
  },
@@ -1310,6 +1328,9 @@
1310
1328
  {
1311
1329
  "$ref": "#/definitions/non_nestable_block_content"
1312
1330
  },
1331
+ {
1332
+ "$ref": "#/definitions/extension_with_annotation_node"
1333
+ },
1313
1334
  {
1314
1335
  "$ref": "#/definitions/nestedExpand_with_no_marks_node"
1315
1336
  }
@@ -1352,6 +1373,9 @@
1352
1373
  {
1353
1374
  "$ref": "#/definitions/non_nestable_block_content"
1354
1375
  },
1376
+ {
1377
+ "$ref": "#/definitions/extension_with_annotation_node"
1378
+ },
1355
1379
  {
1356
1380
  "$ref": "#/definitions/nestedExpand_with_no_marks_node"
1357
1381
  }
@@ -1431,6 +1455,67 @@
1431
1455
  }
1432
1456
  ]
1433
1457
  },
1458
+ "extension_root_only_with_annotation_node": {
1459
+ "allOf": [
1460
+ {
1461
+ "$ref": "#/definitions/extension_node"
1462
+ },
1463
+ {
1464
+ "type": "object",
1465
+ "properties": {
1466
+ "marks": {
1467
+ "type": "array",
1468
+ "items": {
1469
+ "anyOf": [
1470
+ {
1471
+ "$ref": "#/definitions/annotation_mark"
1472
+ },
1473
+ {
1474
+ "$ref": "#/definitions/breakout_mark"
1475
+ },
1476
+ {
1477
+ "$ref": "#/definitions/dataConsumer_mark"
1478
+ },
1479
+ {
1480
+ "$ref": "#/definitions/fragment_mark"
1481
+ }
1482
+ ]
1483
+ }
1484
+ }
1485
+ },
1486
+ "additionalProperties": true
1487
+ }
1488
+ ]
1489
+ },
1490
+ "extension_with_annotation_node": {
1491
+ "allOf": [
1492
+ {
1493
+ "$ref": "#/definitions/extension_node"
1494
+ },
1495
+ {
1496
+ "type": "object",
1497
+ "properties": {
1498
+ "marks": {
1499
+ "type": "array",
1500
+ "items": {
1501
+ "anyOf": [
1502
+ {
1503
+ "$ref": "#/definitions/annotation_mark"
1504
+ },
1505
+ {
1506
+ "$ref": "#/definitions/dataConsumer_mark"
1507
+ },
1508
+ {
1509
+ "$ref": "#/definitions/fragment_mark"
1510
+ }
1511
+ ]
1512
+ }
1513
+ }
1514
+ },
1515
+ "additionalProperties": true
1516
+ }
1517
+ ]
1518
+ },
1434
1519
  "extension_with_marks_node": {
1435
1520
  "allOf": [
1436
1521
  {
@@ -2132,6 +2217,9 @@
2132
2217
  },
2133
2218
  {
2134
2219
  "$ref": "#/definitions/extension_with_marks_node"
2220
+ },
2221
+ {
2222
+ "$ref": "#/definitions/extension_with_annotation_node"
2135
2223
  }
2136
2224
  ]
2137
2225
  },
@@ -2625,6 +2713,9 @@
2625
2713
  },
2626
2714
  {
2627
2715
  "$ref": "#/definitions/extension_with_marks_node"
2716
+ },
2717
+ {
2718
+ "$ref": "#/definitions/extension_with_annotation_node"
2628
2719
  }
2629
2720
  ]
2630
2721
  },
@@ -2857,6 +2948,9 @@
2857
2948
  {
2858
2949
  "$ref": "#/definitions/extension_with_marks_node"
2859
2950
  },
2951
+ {
2952
+ "$ref": "#/definitions/extension_with_annotation_node"
2953
+ },
2860
2954
  {
2861
2955
  "$ref": "#/definitions/table_node"
2862
2956
  }
@@ -2965,6 +3059,9 @@
2965
3059
  {
2966
3060
  "$ref": "#/definitions/extension_with_marks_node"
2967
3061
  },
3062
+ {
3063
+ "$ref": "#/definitions/extension_with_annotation_node"
3064
+ },
2968
3065
  {
2969
3066
  "$ref": "#/definitions/table_node"
2970
3067
  }
@@ -3066,6 +3163,9 @@
3066
3163
  },
3067
3164
  {
3068
3165
  "$ref": "#/definitions/extension_with_marks_node"
3166
+ },
3167
+ {
3168
+ "$ref": "#/definitions/extension_with_annotation_node"
3069
3169
  }
3070
3170
  ]
3071
3171
  },
@@ -3140,6 +3240,9 @@
3140
3240
  },
3141
3241
  {
3142
3242
  "$ref": "#/definitions/extension_with_marks_node"
3243
+ },
3244
+ {
3245
+ "$ref": "#/definitions/extension_with_annotation_node"
3143
3246
  }
3144
3247
  ]
3145
3248
  },
@@ -3569,6 +3672,9 @@
3569
3672
  {
3570
3673
  "$ref": "#/definitions/extension_with_marks_node"
3571
3674
  },
3675
+ {
3676
+ "$ref": "#/definitions/extension_with_annotation_node"
3677
+ },
3572
3678
  {
3573
3679
  "$ref": "#/definitions/nestedExpand_with_no_marks_node"
3574
3680
  }
@@ -3,8 +3,8 @@
3
3
  * DO NOT MODIFY IT BY HAND. Instead, modify the source files in "packages/adf-schema/src/next-schema" ,
4
4
  * and run "yarn workspace @atlaskit/adf-schema build:schema:all" to regenerate this file.
5
5
  */
6
- import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BodiedRuleStage0Definition, BulletListDefinition, CodeBlockDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelC1Stage0Definition, PanelDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithFontSizeDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, RuleWithAttrsStage0Definition, StatusDefinition, StatusStage0Definition, TableDefinition, TableWithNestedTableDefinition, TaskListDefinition, TextCodeInlineDefinition, TextDefinition, TextFormattedDefinition, UnsupportedBlockDefinition, UnsupportedInlineDefinition } from './nodeTypes';
7
- export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | RuleWithAttrsStage0Definition | BodiedRuleStage0Definition | PanelDefinition | PanelC1Stage0Definition | TableDefinition | TableWithNestedTableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
6
+ import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BodiedRuleStage0Definition, BulletListDefinition, CodeBlockDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExtensionDefinition, ExtensionWithAnnotationStage0Definition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelC1Stage0Definition, PanelDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithFontSizeDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, RuleWithAttrsStage0Definition, StatusDefinition, StatusStage0Definition, TableDefinition, TableWithNestedTableDefinition, TaskListDefinition, TextCodeInlineDefinition, TextDefinition, TextFormattedDefinition, UnsupportedBlockDefinition, UnsupportedInlineDefinition } from './nodeTypes';
7
+ export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | ExtensionWithAnnotationStage0Definition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | RuleWithAttrsStage0Definition | BodiedRuleStage0Definition | PanelDefinition | PanelC1Stage0Definition | TableDefinition | TableWithNestedTableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
8
8
  export type BlockRootOnlyDefinition = Array<MultiBodiedExtensionStage0Definition>;
9
9
  export type InlineDefinition = Array<TextDefinition | TextFormattedDefinition | TextCodeInlineDefinition | DateDefinition | DateStage0Definition | EmojiDefinition | EmojiStage0Definition | HardBreakDefinition | InlineCardDefinition | InlineCardStage0Definition | MentionDefinition | MentionStage0Definition | PlaceholderDefinition | StatusDefinition | StatusStage0Definition | InlineExtensionDefinition | InlineExtensionWithMarksDefinition | MediaInlineDefinition | ImageDefinition | ConfluenceJiraIssueDefinition | ConfluenceUnsupportedInlineDefinition | UnsupportedInlineDefinition>;
10
10
  export type NonNestableBlockContentDefinition = Array<ParagraphWithNoMarksDefinition | ParagraphWithFontSizeDefinition | PanelDefinition | BlockquoteDefinition | OrderedListDefinition | BulletListDefinition | RuleDefinition | RuleWithAttrsStage0Definition | BodiedRuleStage0Definition | HeadingWithNoMarksDefinition | CodeBlockDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | DecisionListDefinition | TaskListDefinition | TableDefinition | TableWithNestedTableDefinition | BlockCardDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | UnsupportedBlockDefinition>;
@@ -31,7 +31,7 @@ export type BlockCardNode = PMNode & BlockCardDefinition;
31
31
  export declare const blockCard: PMNodeSpecFactoryInstance<BlockCardNode>;
32
32
  export interface BlockquoteDefinition {
33
33
  type: 'blockquote';
34
- content: Array<BulletListDefinition | CodeBlockDefinition | ExtensionWithMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | UnsupportedBlockDefinition>;
34
+ content: Array<BulletListDefinition | CodeBlockDefinition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | UnsupportedBlockDefinition>;
35
35
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
36
36
  attrs: {
37
37
  localId?: string;
@@ -51,7 +51,7 @@ export type BlockquoteLegacyNode = PMNode & BlockquoteLegacyDefinition;
51
51
  export declare const blockquoteLegacy: PMNodeSpecFactoryInstance<BlockquoteLegacyNode>;
52
52
  export interface BlockTaskItemDefinition {
53
53
  type: 'blockTaskItem';
54
- content: Array<ExtensionWithMarksDefinition | ExtensionWithMarksDefinition | ParagraphWithFontSizeDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | ParagraphWithNoMarksDefinition>;
54
+ content: Array<ExtensionWithAnnotationStage0Definition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | ExtensionWithMarksDefinition | ParagraphWithFontSizeDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | ParagraphWithNoMarksDefinition>;
55
55
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
56
56
  attrs: {
57
57
  localId: string;
@@ -261,7 +261,7 @@ export type DecisionListNode = PMNode & DecisionListDefinition;
261
261
  export declare const decisionList: PMNodeSpecFactoryInstance<DecisionListNode>;
262
262
  export interface DocDefinition {
263
263
  type: 'doc';
264
- content: Array<BlockDefinition | BlockRootOnlyDefinition | BodiedExtensionRootOnlyStage0Definition | BodiedRuleRootOnlyStage0Definition | BodiedSyncBlockDefinition | CodeBlockRootOnlyDefinition | ExpandRootOnlyDefinition | ExtensionRootOnlyStage0Definition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MultiBodiedExtensionRootOnlyStage0Definition | PanelC1RootOnlyStage0Definition | PanelC1Stage0Definition | PanelRootOnlyStage0Definition | RuleRootOnlyStage0Definition | RuleWithAttrsRootOnlyStage0Definition | SyncBlockDefinition>;
264
+ content: Array<BlockDefinition | BlockRootOnlyDefinition | BodiedExtensionRootOnlyStage0Definition | BodiedRuleRootOnlyStage0Definition | BodiedSyncBlockDefinition | CodeBlockRootOnlyDefinition | ExpandRootOnlyDefinition | ExtensionRootOnlyStage0Definition | ExtensionRootOnlyWithAnnotationStage0Definition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition | MultiBodiedExtensionRootOnlyStage0Definition | PanelC1RootOnlyStage0Definition | PanelC1Stage0Definition | PanelRootOnlyStage0Definition | RuleRootOnlyStage0Definition | RuleWithAttrsRootOnlyStage0Definition | SyncBlockDefinition>;
265
265
  }
266
266
  export type DocNode = PMNode & DocDefinition;
267
267
  export declare const doc: PMNodeSpecFactoryInstance<DocNode>;
@@ -305,7 +305,7 @@ export type EmojiStage0Node = PMNode & EmojiStage0Definition;
305
305
  export declare const emojiStage0: PMNodeSpecFactoryInstance<EmojiStage0Node>;
306
306
  export interface ExpandDefinition {
307
307
  type: 'expand';
308
- content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
308
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
309
309
  attrs: {
310
310
  title?: string;
311
311
  __expanded?: boolean;
@@ -316,7 +316,7 @@ export type ExpandNode = PMNode & ExpandDefinition;
316
316
  export declare const expand: PMNodeSpecFactoryInstance<ExpandNode>;
317
317
  export interface ExpandRootOnlyDefinition {
318
318
  type: 'expand';
319
- content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
319
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
320
320
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
321
321
  attrs: {
322
322
  title?: string;
@@ -354,6 +354,34 @@ export interface ExtensionRootOnlyStage0Definition {
354
354
  }
355
355
  export type ExtensionRootOnlyStage0Node = PMNode & ExtensionRootOnlyStage0Definition;
356
356
  export declare const extensionRootOnlyStage0: PMNodeSpecFactoryInstance<ExtensionRootOnlyStage0Node>;
357
+ export interface ExtensionRootOnlyWithAnnotationStage0Definition {
358
+ type: 'extension';
359
+ marks: Array<AnnotationMark | BreakoutMark | DataConsumerMark | FragmentMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
360
+ attrs: {
361
+ extensionKey: string;
362
+ extensionType: string;
363
+ parameters?: Record<string, unknown>;
364
+ text?: string;
365
+ layout?: 'wide' | 'full-width' | 'default';
366
+ localId?: string;
367
+ };
368
+ }
369
+ export type ExtensionRootOnlyWithAnnotationStage0Node = PMNode & ExtensionRootOnlyWithAnnotationStage0Definition;
370
+ export declare const extensionRootOnlyWithAnnotationStage0: PMNodeSpecFactoryInstance<ExtensionRootOnlyWithAnnotationStage0Node>;
371
+ export interface ExtensionWithAnnotationStage0Definition {
372
+ type: 'extension';
373
+ marks: Array<AnnotationMark | DataConsumerMark | FragmentMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
374
+ attrs: {
375
+ extensionKey: string;
376
+ extensionType: string;
377
+ parameters?: Record<string, unknown>;
378
+ text?: string;
379
+ layout?: 'wide' | 'full-width' | 'default';
380
+ localId?: string;
381
+ };
382
+ }
383
+ export type ExtensionWithAnnotationStage0Node = PMNode & ExtensionWithAnnotationStage0Definition;
384
+ export declare const extensionWithAnnotationStage0: PMNodeSpecFactoryInstance<ExtensionWithAnnotationStage0Node>;
357
385
  export interface ExtensionWithMarksDefinition {
358
386
  type: 'extension';
359
387
  marks: Array<DataConsumerMark | FragmentMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
@@ -536,7 +564,7 @@ export type LayoutSectionWithSingleColumnStage0Node = PMNode & LayoutSectionWith
536
564
  export declare const layoutSectionWithSingleColumnStage0: PMNodeSpecFactoryInstance<LayoutSectionWithSingleColumnStage0Node>;
537
565
  export interface ListItemDefinition {
538
566
  type: 'listItem';
539
- content: Array<BulletListDefinition | CodeBlockDefinition | ExtensionWithMarksDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
567
+ content: Array<BulletListDefinition | CodeBlockDefinition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
540
568
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
541
569
  attrs: {
542
570
  localId?: string;
@@ -743,7 +771,7 @@ export type MultiBodiedExtensionStage0Node = PMNode & MultiBodiedExtensionStage0
743
771
  export declare const multiBodiedExtensionStage0: PMNodeSpecFactoryInstance<MultiBodiedExtensionStage0Node>;
744
772
  export interface NestedExpandDefinition {
745
773
  type: 'nestedExpand';
746
- content: Array<BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition | UnsupportedBlockDefinition>;
774
+ content: Array<BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition | UnsupportedBlockDefinition>;
747
775
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
748
776
  attrs: {
749
777
  title?: string;
@@ -776,7 +804,7 @@ export type OrderedListNode = PMNode & OrderedListDefinition;
776
804
  export declare const orderedList: PMNodeSpecFactoryInstance<OrderedListNode>;
777
805
  export interface PanelDefinition {
778
806
  type: 'panel';
779
- content: Array<BlockCardDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition | UnsupportedBlockDefinition>;
807
+ content: Array<BlockCardDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition | UnsupportedBlockDefinition>;
780
808
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
781
809
  attrs: {
782
810
  panelType: 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success' | 'custom';
@@ -791,7 +819,7 @@ export type PanelNode = PMNode & PanelDefinition;
791
819
  export declare const panel: PMNodeSpecFactoryInstance<PanelNode>;
792
820
  export interface PanelC1RootOnlyStage0Definition {
793
821
  type: 'panel';
794
- content: Array<BlockCardDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
822
+ content: Array<BlockCardDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
795
823
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
796
824
  attrs: {
797
825
  panelType: 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success' | 'custom';
@@ -806,7 +834,7 @@ export type PanelC1RootOnlyStage0Node = PMNode & PanelC1RootOnlyStage0Definition
806
834
  export declare const panelC1RootOnlyStage0: PMNodeSpecFactoryInstance<PanelC1RootOnlyStage0Node>;
807
835
  export interface PanelC1Stage0Definition {
808
836
  type: 'panel';
809
- content: Array<BlockCardDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
837
+ content: Array<BlockCardDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
810
838
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
811
839
  attrs: {
812
840
  panelType: 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success' | 'custom';
@@ -821,7 +849,7 @@ export type PanelC1Stage0Node = PMNode & PanelC1Stage0Definition;
821
849
  export declare const panelC1Stage0: PMNodeSpecFactoryInstance<PanelC1Stage0Node>;
822
850
  export interface PanelRootOnlyStage0Definition {
823
851
  type: 'panel';
824
- content: Array<BlockCardDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition | UnsupportedBlockDefinition>;
852
+ content: Array<BlockCardDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithFontSizeDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition | UnsupportedBlockDefinition>;
825
853
  marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
826
854
  attrs: {
827
855
  panelType: 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success' | 'custom';
@@ -995,7 +1023,7 @@ export type TableWithNestedTableNode = PMNode & TableWithNestedTableDefinition;
995
1023
  export declare const tableWithNestedTable: PMNodeSpecFactoryInstance<TableWithNestedTableNode>;
996
1024
  export interface TableCellDefinition {
997
1025
  type: 'tableCell';
998
- content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition | UnsupportedBlockDefinition>;
1026
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition | UnsupportedBlockDefinition>;
999
1027
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
1000
1028
  attrs: {
1001
1029
  colspan?: number;
@@ -1010,7 +1038,7 @@ export type TableCellNode = PMNode & TableCellDefinition;
1010
1038
  export declare const tableCell: PMNodeSpecFactoryInstance<TableCellNode>;
1011
1039
  export interface TableCellWithNestedTableDefinition {
1012
1040
  type: 'tableCell';
1013
- content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
1041
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
1014
1042
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
1015
1043
  attrs: {
1016
1044
  colspan?: number;
@@ -1025,7 +1053,7 @@ export type TableCellWithNestedTableNode = PMNode & TableCellWithNestedTableDefi
1025
1053
  export declare const tableCellWithNestedTable: PMNodeSpecFactoryInstance<TableCellWithNestedTableNode>;
1026
1054
  export interface TableHeaderDefinition {
1027
1055
  type: 'tableHeader';
1028
- content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition>;
1056
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TaskListDefinition>;
1029
1057
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
1030
1058
  attrs: {
1031
1059
  colspan?: number;
@@ -1040,7 +1068,7 @@ export type TableHeaderNode = PMNode & TableHeaderDefinition;
1040
1068
  export declare const tableHeader: PMNodeSpecFactoryInstance<TableHeaderNode>;
1041
1069
  export interface TableHeaderWithNestedTableDefinition {
1042
1070
  type: 'tableHeader';
1043
- content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TaskListDefinition>;
1071
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BodiedRuleStage0Definition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithAnnotationStage0Definition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | RuleWithAttrsStage0Definition | TableDefinition | TaskListDefinition>;
1044
1072
  marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
1045
1073
  attrs: {
1046
1074
  colspan?: number;
@@ -2,7 +2,9 @@ import type { ADFCommonNodeSpec, ADFNode } from '@atlaskit/adf-schema-generator'
2
2
  export declare const extension: ADFNode<[
3
3
  string,
4
4
  'with_marks',
5
- 'root_only'
5
+ 'with_annotation',
6
+ 'root_only',
7
+ 'root_only_with_annotation'
6
8
  ], ADFCommonNodeSpec & {
7
9
  ignore: never[];
8
10
  marks: any[];
@@ -4,7 +4,7 @@ import type { BodiedRuleRootOnlyDefinition as BodiedRuleRootOnly } from './bodie
4
4
  import type { BodiedSyncBlockDefinition as BodiedSyncBlock } from './bodied-sync-block';
5
5
  import type { CodeBlockWithMarksDefinition as CodeBlockWithMarks } from './code-block';
6
6
  import type { ExpandRootOnlyDefinition as ExpandRootOnly } from './expand';
7
- import type { ExtensionRootOnlyDefinition as ExtensionRootOnly } from './extension';
7
+ import type { ExtensionRootOnlyDefinition as ExtensionRootOnly, ExtensionRootOnlyWithAnnotationDefinition as ExtensionRootOnlyWithAnnotation } from './extension';
8
8
  import type { LayoutSectionDefinition as LayoutSection } from './layout-section';
9
9
  import type { MultiBodiedExtensionRootOnlyDefinition as MultiBodiedExtensionRootOnly } from './multi-bodied-extension';
10
10
  import type { PanelRootOnlyDefinition as PanelRootOnly } from './panel';
@@ -20,7 +20,7 @@ export interface DocNode {
20
20
  // eslint-disable-next-line eslint-plugin-jsdoc/check-tag-names
21
21
  * @allowUnsupportedBlock true
22
22
  */
23
- content: Array<BlockContent | LayoutSection | CodeBlockWithMarks | ExpandRootOnly | PanelRootOnly | RuleRootOnly | BodiedRuleRootOnly | ExtensionRootOnly | BodiedExtensionRootOnly | ParagraphWithIndentationDefinition | MultiBodiedExtensionRootOnly | BodiedSyncBlock | SyncBlock>;
23
+ content: Array<BlockContent | LayoutSection | CodeBlockWithMarks | ExpandRootOnly | PanelRootOnly | RuleRootOnly | BodiedRuleRootOnly | ExtensionRootOnly | ExtensionRootOnlyWithAnnotation | BodiedExtensionRootOnly | ParagraphWithIndentationDefinition | MultiBodiedExtensionRootOnly | BodiedSyncBlock | SyncBlock>;
24
24
  type: 'doc';
25
25
  version: 1;
26
26
  }
@@ -1,4 +1,5 @@
1
1
  import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
+ import type { AnnotationMarkDefinition } from '../marks/annotation';
2
3
  import type { BreakoutMarkDefinition } from '../marks/breakout';
3
4
  import type { DataConsumerDefinition } from '../marks/data-consumer';
4
5
  import type { FragmentDefinition } from '../marks/fragment';
@@ -20,5 +21,15 @@ export type ExtensionDefinition = ExtensionBaseDefinition & MarksObject<DataCons
20
21
  * @name extension_root_only_node
21
22
  */
22
23
  export type ExtensionRootOnlyDefinition = ExtensionBaseDefinition & MarksObject<BreakoutMarkDefinition | DataConsumerDefinition | FragmentDefinition>;
24
+ /**
25
+ * @name extension_with_annotation_node
26
+ */
27
+ export type ExtensionWithAnnotationDefinition = ExtensionBaseDefinition & MarksObject<AnnotationMarkDefinition | DataConsumerDefinition | FragmentDefinition>;
28
+ /**
29
+ * @name extension_root_only_with_annotation_node
30
+ */
31
+ export type ExtensionRootOnlyWithAnnotationDefinition = ExtensionBaseDefinition & MarksObject<AnnotationMarkDefinition | BreakoutMarkDefinition | DataConsumerDefinition | FragmentDefinition>;
23
32
  export declare const extension: NodeSpec;
24
33
  export declare const extensionRootOnlyStage0: NodeSpec;
34
+ export declare const extensionWithAnnotationStage0: NodeSpec;
35
+ export declare const extensionRootOnlyWithAnnotationStage0: NodeSpec;