@atlaskit/adf-schema 44.7.0 → 45.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.
Files changed (59) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/cjs/next-schema/full-schema.adf.js +2 -2
  3. package/dist/cjs/next-schema/generated/nodeTypes.js +4 -4
  4. package/dist/cjs/next-schema/groups/blockContentGroup.js +2 -2
  5. package/dist/cjs/next-schema/groups/blockGroup.js +2 -2
  6. package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  7. package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  8. package/dist/cjs/next-schema/nodes/blockquote.js +1 -1
  9. package/dist/cjs/next-schema/nodes/codeBlock.js +8 -18
  10. package/dist/cjs/next-schema/nodes/extensionFrame.js +1 -1
  11. package/dist/cjs/next-schema/nodes/list.js +2 -2
  12. package/dist/cjs/next-schema/nodes/mediaInline.js +0 -8
  13. package/dist/cjs/next-schema/nodes/nestedExpand.js +1 -1
  14. package/dist/cjs/next-schema/nodes/panel.js +2 -2
  15. package/dist/cjs/schema/nodes/code-block.js +1 -5
  16. package/dist/cjs/validator-schema/generated/validatorSpec.js +23 -30
  17. package/dist/es2019/next-schema/full-schema.adf.js +2 -2
  18. package/dist/es2019/next-schema/generated/nodeTypes.js +3 -3
  19. package/dist/es2019/next-schema/groups/blockContentGroup.js +2 -2
  20. package/dist/es2019/next-schema/groups/blockGroup.js +2 -2
  21. package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  22. package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  23. package/dist/es2019/next-schema/nodes/blockquote.js +1 -1
  24. package/dist/es2019/next-schema/nodes/codeBlock.js +7 -17
  25. package/dist/es2019/next-schema/nodes/extensionFrame.js +1 -1
  26. package/dist/es2019/next-schema/nodes/list.js +2 -2
  27. package/dist/es2019/next-schema/nodes/mediaInline.js +0 -8
  28. package/dist/es2019/next-schema/nodes/nestedExpand.js +1 -1
  29. package/dist/es2019/next-schema/nodes/panel.js +2 -2
  30. package/dist/es2019/schema/nodes/code-block.js +1 -5
  31. package/dist/es2019/validator-schema/generated/validatorSpec.js +22 -29
  32. package/dist/esm/next-schema/full-schema.adf.js +2 -2
  33. package/dist/esm/next-schema/generated/nodeTypes.js +3 -3
  34. package/dist/esm/next-schema/groups/blockContentGroup.js +2 -2
  35. package/dist/esm/next-schema/groups/blockGroup.js +2 -2
  36. package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
  37. package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  38. package/dist/esm/next-schema/nodes/blockquote.js +1 -1
  39. package/dist/esm/next-schema/nodes/codeBlock.js +7 -17
  40. package/dist/esm/next-schema/nodes/extensionFrame.js +1 -1
  41. package/dist/esm/next-schema/nodes/list.js +2 -2
  42. package/dist/esm/next-schema/nodes/mediaInline.js +0 -8
  43. package/dist/esm/next-schema/nodes/nestedExpand.js +1 -1
  44. package/dist/esm/next-schema/nodes/panel.js +2 -2
  45. package/dist/esm/schema/nodes/code-block.js +1 -5
  46. package/dist/esm/validator-schema/generated/validatorSpec.js +22 -29
  47. package/dist/json-schema/v1/full.json +76 -60
  48. package/dist/json-schema/v1/stage-0.json +81 -65
  49. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +3 -3
  50. package/dist/types/next-schema/generated/nodeTypes.d.ts +20 -19
  51. package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +5 -1
  52. package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +5 -1
  53. package/dist/types/next-schema/nodes/codeBlock.d.ts +3 -16
  54. package/dist/types/schema/nodes/code-block.d.ts +1 -4
  55. package/dist/types/validator-schema/generated/validatorSpec.d.ts +9 -16
  56. package/json-schema/v1/full.json +76 -60
  57. package/json-schema/v1/stage-0.json +81 -65
  58. package/package.json +2 -2
  59. package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -1
@@ -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_with_no_marks', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', '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', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks'];
53
53
  export var blockCard = {
54
54
  props: {
55
55
  type: {
@@ -123,7 +123,7 @@ export var blockquote = {
123
123
  },
124
124
  content: {
125
125
  type: 'array',
126
- items: [['paragraph_with_no_marks', 'orderedList', 'bulletList', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup']],
126
+ items: [['paragraph_with_no_marks', 'orderedList', 'bulletList', 'codeBlock', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup']],
127
127
  minItems: 1,
128
128
  allowUnsupportedBlock: true
129
129
  }
@@ -275,6 +275,10 @@ export var codeBlock = {
275
275
  language: {
276
276
  type: 'string',
277
277
  optional: true
278
+ },
279
+ uniqueId: {
280
+ type: 'string',
281
+ optional: true
278
282
  }
279
283
  },
280
284
  optional: true
@@ -293,15 +297,10 @@ export var codeBlock = {
293
297
  }]],
294
298
  optional: true,
295
299
  allowUnsupportedInline: true
296
- },
297
- marks: {
298
- type: 'array',
299
- items: [],
300
- optional: true
301
300
  }
302
301
  }
303
302
  };
304
- export var codeBlock_with_marks = ['codeBlock', {
303
+ export var codeBlock_root_only = ['codeBlock', {
305
304
  props: {
306
305
  marks: {
307
306
  type: 'array',
@@ -310,16 +309,6 @@ export var codeBlock_with_marks = ['codeBlock', {
310
309
  }
311
310
  }
312
311
  }];
313
- export var codeBlock_with_no_marks = ['codeBlock', {
314
- props: {
315
- marks: {
316
- type: 'array',
317
- maxItems: 0,
318
- items: [],
319
- optional: true
320
- }
321
- }
322
- }];
323
312
  export var confluenceInlineComment = {
324
313
  props: {
325
314
  type: {
@@ -432,7 +421,7 @@ export var doc = {
432
421
  },
433
422
  content: {
434
423
  type: 'array',
435
- items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks', 'codeBlock_with_marks', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_with_breakout_mark']],
424
+ items: [['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', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_with_breakout_mark']],
436
425
  allowUnsupportedBlock: true
437
426
  }
438
427
  }
@@ -523,7 +512,7 @@ export var expand = {
523
512
  },
524
513
  content: {
525
514
  type: 'array',
526
- items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
515
+ items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
527
516
  minItems: 1,
528
517
  allowUnsupportedBlock: true
529
518
  },
@@ -613,7 +602,7 @@ export var extensionFrame = {
613
602
  },
614
603
  content: {
615
604
  type: 'array',
616
- items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_full', 'mediaSingle_caption', 'decisionList', 'taskList', 'table', 'extension_with_marks', 'bodiedExtension_with_marks', 'blockCard', 'embedCard']],
605
+ items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_full', 'mediaSingle_caption', 'decisionList', 'taskList', 'table', 'extension_with_marks', 'bodiedExtension_with_marks', 'blockCard', 'embedCard']],
617
606
  minItems: 1
618
607
  },
619
608
  marks: {
@@ -940,7 +929,7 @@ export var listItem = {
940
929
  content: {
941
930
  type: 'array',
942
931
  isTupleLike: true,
943
- items: [['paragraph_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks'], ['paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks']],
932
+ items: [['paragraph_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock'], ['paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock']],
944
933
  minItems: 1,
945
934
  allowUnsupportedBlock: true
946
935
  }
@@ -951,7 +940,7 @@ export var listItem_with_nested_decision = ['listItem', {
951
940
  content: {
952
941
  type: 'array',
953
942
  isTupleLike: true,
954
- items: [['paragraph_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'decisionList'], ['paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'decisionList']],
943
+ items: [['paragraph_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'decisionList'], ['paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'decisionList']],
955
944
  minItems: 1,
956
945
  allowUnsupportedBlock: true
957
946
  }
@@ -1052,6 +1041,10 @@ export var mediaInline = {
1052
1041
  values: ['link', 'file', 'image'],
1053
1042
  optional: true
1054
1043
  },
1044
+ url: {
1045
+ type: 'string',
1046
+ optional: true
1047
+ },
1055
1048
  id: {
1056
1049
  minLength: 1,
1057
1050
  type: 'string'
@@ -1274,7 +1267,7 @@ export var nestedExpand = {
1274
1267
  };
1275
1268
  export var nestedExpand_content = {
1276
1269
  type: 'array',
1277
- items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote']],
1270
+ items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote']],
1278
1271
  minItems: 1,
1279
1272
  allowUnsupportedBlock: true
1280
1273
  };
@@ -1288,7 +1281,7 @@ export var nestedExpand_with_no_marks = ['nestedExpand', {
1288
1281
  }
1289
1282
  }
1290
1283
  }];
1291
- export var non_nestable_block_content = ['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks'];
1284
+ export var non_nestable_block_content = ['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks'];
1292
1285
  export var orderedList = {
1293
1286
  props: {
1294
1287
  type: {
@@ -1344,7 +1337,7 @@ export var panel = {
1344
1337
  },
1345
1338
  content: {
1346
1339
  type: 'array',
1347
- items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'taskList', 'rule', 'decisionList']],
1340
+ items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList']],
1348
1341
  minItems: 1,
1349
1342
  allowUnsupportedBlock: true
1350
1343
  }
@@ -1354,7 +1347,7 @@ export var panel_with_nested_blockquote = ['panel', {
1354
1347
  props: {
1355
1348
  content: {
1356
1349
  type: 'array',
1357
- items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'taskList', 'rule', 'decisionList', 'blockquote']],
1350
+ items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'rule', 'decisionList', 'blockquote']],
1358
1351
  minItems: 1,
1359
1352
  allowUnsupportedBlock: true
1360
1353
  }
@@ -1582,7 +1575,7 @@ export var tableCell = {
1582
1575
  },
1583
1576
  content: {
1584
1577
  type: 'array',
1585
- items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
1578
+ items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', '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']],
1586
1579
  minItems: 1,
1587
1580
  allowUnsupportedBlock: true
1588
1581
  }
@@ -1621,7 +1614,7 @@ export var tableHeader = {
1621
1614
  },
1622
1615
  content: {
1623
1616
  type: 'array',
1624
- items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
1617
+ items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', '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']],
1625
1618
  minItems: 1
1626
1619
  }
1627
1620
  },
@@ -73,70 +73,70 @@
73
73
  "$ref": "#/definitions/blockCard_node"
74
74
  },
75
75
  {
76
- "$ref": "#/definitions/codeBlock_with_no_marks_node"
76
+ "$ref": "#/definitions/paragraph_with_no_marks_node"
77
77
  },
78
78
  {
79
- "$ref": "#/definitions/mediaSingle_caption_node"
79
+ "$ref": "#/definitions/paragraph_with_alignment_node"
80
80
  },
81
81
  {
82
- "$ref": "#/definitions/mediaSingle_full_node"
82
+ "$ref": "#/definitions/paragraph_with_indentation_node"
83
83
  },
84
84
  {
85
- "$ref": "#/definitions/paragraph_with_alignment_node"
85
+ "$ref": "#/definitions/mediaSingle_caption_node"
86
86
  },
87
87
  {
88
- "$ref": "#/definitions/paragraph_with_indentation_node"
88
+ "$ref": "#/definitions/mediaSingle_full_node"
89
89
  },
90
90
  {
91
- "$ref": "#/definitions/paragraph_with_no_marks_node"
91
+ "$ref": "#/definitions/codeBlock_node"
92
92
  },
93
93
  {
94
94
  "$ref": "#/definitions/taskList_node"
95
95
  },
96
96
  {
97
- "$ref": "#/definitions/orderedList_node"
97
+ "$ref": "#/definitions/bulletList_node"
98
98
  },
99
99
  {
100
- "$ref": "#/definitions/bulletList_node"
100
+ "$ref": "#/definitions/orderedList_node"
101
101
  },
102
102
  {
103
- "$ref": "#/definitions/blockquote_node"
103
+ "$ref": "#/definitions/heading_with_no_marks_node"
104
104
  },
105
105
  {
106
- "$ref": "#/definitions/decisionList_node"
106
+ "$ref": "#/definitions/heading_with_alignment_node"
107
107
  },
108
108
  {
109
- "$ref": "#/definitions/embedCard_node"
109
+ "$ref": "#/definitions/heading_with_indentation_node"
110
110
  },
111
111
  {
112
- "$ref": "#/definitions/extension_with_marks_node"
112
+ "$ref": "#/definitions/mediaGroup_node"
113
113
  },
114
114
  {
115
- "$ref": "#/definitions/heading_with_indentation_node"
115
+ "$ref": "#/definitions/decisionList_node"
116
116
  },
117
117
  {
118
- "$ref": "#/definitions/heading_with_no_marks_node"
118
+ "$ref": "#/definitions/rule_node"
119
119
  },
120
120
  {
121
- "$ref": "#/definitions/heading_with_alignment_node"
121
+ "$ref": "#/definitions/panel_node"
122
122
  },
123
123
  {
124
- "$ref": "#/definitions/mediaGroup_node"
124
+ "$ref": "#/definitions/blockquote_node"
125
125
  },
126
126
  {
127
- "$ref": "#/definitions/rule_node"
127
+ "$ref": "#/definitions/extension_with_marks_node"
128
128
  },
129
129
  {
130
- "$ref": "#/definitions/panel_node"
130
+ "$ref": "#/definitions/embedCard_node"
131
131
  },
132
132
  {
133
133
  "$ref": "#/definitions/table_node"
134
134
  },
135
135
  {
136
- "$ref": "#/definitions/bodiedExtension_with_marks_node"
136
+ "$ref": "#/definitions/expand_with_no_mark_node"
137
137
  },
138
138
  {
139
- "$ref": "#/definitions/expand_with_no_mark_node"
139
+ "$ref": "#/definitions/bodiedExtension_with_marks_node"
140
140
  }
141
141
  ]
142
142
  },
@@ -242,7 +242,7 @@
242
242
  "$ref": "#/definitions/bulletList_node"
243
243
  },
244
244
  {
245
- "$ref": "#/definitions/codeBlock_with_no_marks_node"
245
+ "$ref": "#/definitions/codeBlock_node"
246
246
  },
247
247
  {
248
248
  "$ref": "#/definitions/mediaSingle_caption_node"
@@ -489,13 +489,17 @@
489
489
  "enum": ["codeBlock"]
490
490
  },
491
491
  "marks": {
492
- "type": "array"
492
+ "type": "array",
493
+ "maxItems": 0
493
494
  },
494
495
  "attrs": {
495
496
  "type": "object",
496
497
  "properties": {
497
498
  "language": {
498
499
  "type": "string"
500
+ },
501
+ "uniqueId": {
502
+ "type": "string"
499
503
  }
500
504
  },
501
505
  "additionalProperties": false
@@ -524,41 +528,53 @@
524
528
  "additionalProperties": false,
525
529
  "required": ["type"]
526
530
  },
527
- "codeBlock_with_marks_node": {
528
- "allOf": [
529
- {
530
- "$ref": "#/definitions/codeBlock_node"
531
+ "codeBlock_root_only_node": {
532
+ "type": "object",
533
+ "properties": {
534
+ "type": {
535
+ "enum": ["codeBlock"]
531
536
  },
532
- {
533
- "type": "object",
534
- "properties": {
535
- "marks": {
536
- "type": "array",
537
- "items": {
538
- "$ref": "#/definitions/breakout_mark"
539
- }
540
- }
541
- },
542
- "additionalProperties": true
543
- }
544
- ]
545
- },
546
- "codeBlock_with_no_marks_node": {
547
- "allOf": [
548
- {
549
- "$ref": "#/definitions/codeBlock_node"
537
+ "marks": {
538
+ "type": "array",
539
+ "items": {
540
+ "$ref": "#/definitions/breakout_mark"
541
+ }
550
542
  },
551
- {
543
+ "attrs": {
552
544
  "type": "object",
553
545
  "properties": {
554
- "marks": {
555
- "type": "array",
556
- "maxItems": 0
546
+ "language": {
547
+ "type": "string"
548
+ },
549
+ "uniqueId": {
550
+ "type": "string"
557
551
  }
558
552
  },
559
- "additionalProperties": true
553
+ "additionalProperties": false
554
+ },
555
+ "content": {
556
+ "type": "array",
557
+ "items": {
558
+ "allOf": [
559
+ {
560
+ "$ref": "#/definitions/text_node"
561
+ },
562
+ {
563
+ "type": "object",
564
+ "properties": {
565
+ "marks": {
566
+ "type": "array",
567
+ "maxItems": 0
568
+ }
569
+ },
570
+ "additionalProperties": true
571
+ }
572
+ ]
573
+ }
560
574
  }
561
- ]
575
+ },
576
+ "additionalProperties": false,
577
+ "required": ["type"]
562
578
  },
563
579
  "dataConsumer_mark": {
564
580
  "type": "object",
@@ -675,10 +691,7 @@
675
691
  "$ref": "#/definitions/blockCard_node"
676
692
  },
677
693
  {
678
- "$ref": "#/definitions/codeBlock_with_marks_node"
679
- },
680
- {
681
- "$ref": "#/definitions/codeBlock_with_no_marks_node"
694
+ "$ref": "#/definitions/codeBlock_node"
682
695
  },
683
696
  {
684
697
  "$ref": "#/definitions/mediaSingle_caption_node"
@@ -746,6 +759,9 @@
746
759
  {
747
760
  "$ref": "#/definitions/expand_with_breakout_mark_node"
748
761
  },
762
+ {
763
+ "$ref": "#/definitions/codeBlock_root_only_node"
764
+ },
749
765
  {
750
766
  "$ref": "#/definitions/layoutSection_full_node"
751
767
  }
@@ -1441,7 +1457,7 @@
1441
1457
  "$ref": "#/definitions/mediaSingle_full_node"
1442
1458
  },
1443
1459
  {
1444
- "$ref": "#/definitions/codeBlock_with_no_marks_node"
1460
+ "$ref": "#/definitions/codeBlock_node"
1445
1461
  }
1446
1462
  ]
1447
1463
  },
@@ -1466,7 +1482,7 @@
1466
1482
  "$ref": "#/definitions/mediaSingle_full_node"
1467
1483
  },
1468
1484
  {
1469
- "$ref": "#/definitions/codeBlock_with_no_marks_node"
1485
+ "$ref": "#/definitions/codeBlock_node"
1470
1486
  }
1471
1487
  ]
1472
1488
  }
@@ -1805,7 +1821,7 @@
1805
1821
  "$ref": "#/definitions/mediaGroup_node"
1806
1822
  },
1807
1823
  {
1808
- "$ref": "#/definitions/codeBlock_with_no_marks_node"
1824
+ "$ref": "#/definitions/codeBlock_node"
1809
1825
  },
1810
1826
  {
1811
1827
  "$ref": "#/definitions/bulletList_node"
@@ -1895,7 +1911,7 @@
1895
1911
  "$ref": "#/definitions/heading_with_no_marks_node"
1896
1912
  },
1897
1913
  {
1898
- "$ref": "#/definitions/codeBlock_with_no_marks_node"
1914
+ "$ref": "#/definitions/codeBlock_node"
1899
1915
  },
1900
1916
  {
1901
1917
  "$ref": "#/definitions/mediaGroup_node"
@@ -2018,7 +2034,7 @@
2018
2034
  "$ref": "#/definitions/mediaSingle_full_node"
2019
2035
  },
2020
2036
  {
2021
- "$ref": "#/definitions/codeBlock_with_no_marks_node"
2037
+ "$ref": "#/definitions/codeBlock_node"
2022
2038
  },
2023
2039
  {
2024
2040
  "$ref": "#/definitions/taskList_node"
@@ -2255,7 +2271,7 @@
2255
2271
  "$ref": "#/definitions/heading_with_indentation_node"
2256
2272
  },
2257
2273
  {
2258
- "$ref": "#/definitions/codeBlock_with_no_marks_node"
2274
+ "$ref": "#/definitions/codeBlock_node"
2259
2275
  },
2260
2276
  {
2261
2277
  "$ref": "#/definitions/mediaSingle_caption_node"