@atlaskit/adf-schema 45.2.0 → 46.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 (37) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/next-schema/full-schema.adf.js +1 -1
  3. package/dist/cjs/next-schema/generated/nodeTypes.js +5 -4
  4. package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -3
  5. package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
  6. package/dist/cjs/next-schema/nodes/expand.js +5 -19
  7. package/dist/cjs/schema/nodes/expand.js +1 -1
  8. package/dist/cjs/schema/nodes/tableNodes.js +1 -1
  9. package/dist/cjs/validator-schema/generated/validatorSpec.js +6 -20
  10. package/dist/es2019/next-schema/full-schema.adf.js +1 -1
  11. package/dist/es2019/next-schema/generated/nodeTypes.js +4 -3
  12. package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -3
  13. package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
  14. package/dist/es2019/next-schema/nodes/expand.js +5 -19
  15. package/dist/es2019/schema/nodes/expand.js +1 -1
  16. package/dist/es2019/schema/nodes/tableNodes.js +1 -1
  17. package/dist/es2019/validator-schema/generated/validatorSpec.js +5 -19
  18. package/dist/esm/next-schema/full-schema.adf.js +1 -1
  19. package/dist/esm/next-schema/generated/nodeTypes.js +4 -3
  20. package/dist/esm/next-schema/groups/blockContentGroup.js +1 -3
  21. package/dist/esm/next-schema/groups/blockGroup.js +1 -1
  22. package/dist/esm/next-schema/nodes/expand.js +5 -19
  23. package/dist/esm/schema/nodes/expand.js +1 -1
  24. package/dist/esm/schema/nodes/tableNodes.js +1 -1
  25. package/dist/esm/validator-schema/generated/validatorSpec.js +5 -19
  26. package/dist/json-schema/v1/full.json +40 -39
  27. package/dist/json-schema/v1/stage-0.json +40 -39
  28. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
  29. package/dist/types/next-schema/generated/nodeTypes.d.ts +6 -6
  30. package/dist/types/next-schema/groups/blockContentGroup.d.ts +0 -2
  31. package/dist/types/next-schema/nodes/expand.d.ts +3 -8
  32. package/dist/types/schema/nodes/doc.d.ts +2 -2
  33. package/dist/types/schema/nodes/expand.d.ts +2 -3
  34. package/dist/types/validator-schema/generated/validatorSpec.d.ts +2 -16
  35. package/json-schema/v1/full.json +40 -39
  36. package/json-schema/v1/stage-0.json +40 -39
  37. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 46.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 2eee4d8: Make attrs optional for expand, remove type from layoutSectionFull
8
+
9
+ ## 46.0.0
10
+
11
+ ### Major Changes
12
+
13
+ - a0f224a: Remove `expand_with_with_no_mark` and replace `expand_with_breakout_mark` with `expand_root_only`
14
+
15
+ Upgrade instructions
16
+
17
+ - Replace `expand_with_breakout_mark` with `expand_root_only`
18
+ - Replace `expand_no_mark` with `expand`
19
+
3
20
  ## 45.2.0
4
21
 
5
22
  ### Minor Changes
@@ -14,7 +14,7 @@ var _codeBlock = require("./nodes/codeBlock");
14
14
  var doc = (0, _adfSchemaGenerator.adfNode)('doc').define({
15
15
  root: true,
16
16
  version: 1,
17
- content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _blockContentGroup.blockContentGroup, _codeBlock.codeBlock.use('root_only'), _layoutSection.layoutSection, _layoutSection.layoutSection.use('with_single_column'), _layoutSection.layoutSection.use('full'), _blockRootOnlyGroup.blockRootOnlyGroup, _expand.expand.use('with_breakout_mark')))],
17
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _blockContentGroup.blockContentGroup, _codeBlock.codeBlock.use('root_only'), _layoutSection.layoutSection, _layoutSection.layoutSection.use('with_single_column'), _layoutSection.layoutSection.use('full'), _blockRootOnlyGroup.blockRootOnlyGroup, _expand.expand.use('root_only')))],
18
18
  DANGEROUS_MANUAL_OVERRIDE: {
19
19
  'validator-spec': {
20
20
  'props.content.minItems': {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTable = exports.tableHeader = exports.tableCellWithNestedTable = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panelWithNestedBlockquoteStage0 = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemWithNestedDecisionStage0 = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandWithoutNestedExpand = exports.expandWithNoMark = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockRootOnly = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteWithoutNestedCodeblockOrMedia = exports.blockquoteLegacy = exports.blockquote = exports.blockCard = void 0;
6
+ exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTable = exports.tableHeader = exports.tableCellWithNestedTable = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panelWithNestedBlockquoteStage0 = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemWithNestedDecisionStage0 = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandWithoutNestedExpand = exports.expandRootOnly = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockRootOnly = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteWithoutNestedCodeblockOrMedia = exports.blockquoteLegacy = exports.blockquote = exports.blockCard = void 0;
7
7
  var _createPMSpecFactory = require("../../schema/createPMSpecFactory");
8
8
  /**
9
9
  * This file was automatically generated by @atlaskit/adf-schema-generator
@@ -236,7 +236,7 @@ var decisionList = exports.decisionList = (0, _createPMSpecFactory.createPMNodeS
236
236
  defining: true
237
237
  });
238
238
  var doc = exports.doc = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
239
- content: '(block | codeBlock | layoutSection | blockRootOnly)+',
239
+ content: '(block | codeBlock | layoutSection | blockRootOnly | expand)+',
240
240
  marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation dataConsumer fragment breakout'
241
241
  });
242
242
  var embedCard = exports.embedCard = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
@@ -307,8 +307,9 @@ var expand = exports.expand = (0, _createPMSpecFactory.createPMNodeSpecFactory)(
307
307
  selectable: true,
308
308
  isolating: true
309
309
  });
310
- var expandWithNoMark = exports.expandWithNoMark = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
311
- group: 'block',
310
+ var expandRootOnly = exports.expandRootOnly = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
311
+ content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
312
+ marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
312
313
  attrs: {
313
314
  title: {
314
315
  default: ''
@@ -31,14 +31,12 @@ var _unsupportedBlock = require("../nodes/unsupportedBlock");
31
31
  *
32
32
  * Has slight differences from the original blockGroup:
33
33
  * - no base paragraph
34
- * - no base codeBlock
35
34
  * - no base extension
36
35
  * - no base mediaSingle
37
36
  * - no base heading
38
- * - no base expand
39
37
  */
40
38
  var blockContentGroup = exports.blockContentGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block_content', [_blockCard.blockCard, _paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _panel.panel.use('with_nested_blockquote'), _blockquote.blockquote, _blockquote.blockquote.use('without_nested_codeblock_or_media'), _extension.extension.use('with_marks'), _embedCard.embedCard, _tableNodes.table,
41
39
  // @ts-expect-error - types don't deal well with circular references for the variant
42
- _tableNodes.table.use('with_nested_table'), _expand.expand.use('without_nested_expand'), _expand.expand.use('with_no_mark'), _bodiedExtension.bodiedExtension.use('with_marks'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
40
+ _tableNodes.table.use('with_nested_table'), _expand.expand, _expand.expand.use('without_nested_expand'), _bodiedExtension.bodiedExtension.use('with_marks'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
43
41
  ignore: ['pm-spec']
44
42
  });
@@ -26,7 +26,7 @@ var _task = require("../nodes/task");
26
26
  var _unsupportedBlock = require("../nodes/unsupportedBlock");
27
27
  var blockGroup = exports.blockGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block', [_blockCard.blockCard, _codeBlock.codeBlock, _mediaSingle.mediaSingle, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _mediaSingle.mediaSingle.use('width_type'), _paragraph.paragraph, _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _paragraph.paragraph.use('with_no_marks'), _task.taskList, _list.orderedList, _list.bulletList, _blockquote.blockquote, _blockquote.blockquote.use('legacy'), _blockquote.blockquote.use('without_nested_codeblock_or_media'), _decisionList.decisionList, _embedCard.embedCard, _extension.extension, _extension.extension.use('with_marks'), _heading.heading, _heading.heading.use('with_indentation'), _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _mediaGroup.mediaGroup, _rule.rule, _panel.panel, _panel.panel.use('with_nested_blockquote'), _tableNodes.table,
28
28
  // @ts-expect-error - types don't deal well with circular references for the variant
29
- _tableNodes.table.use('with_nested_table'), _bodiedExtension.bodiedExtension, _bodiedExtension.bodiedExtension.use('with_marks'), _expand.expand, _expand.expand.use('with_no_mark'), _expand.expand.use('with_breakout_mark'), _expand.expand.use('without_nested_expand'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
29
+ _tableNodes.table.use('with_nested_table'), _bodiedExtension.bodiedExtension, _bodiedExtension.bodiedExtension.use('with_marks'), _expand.expand, _expand.expand.use('without_nested_expand'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
30
30
  // @DSLCompatibilityException
31
31
  // Block group in PM doesn't match ADF
32
32
  ignore: ['validator-spec', 'json-schema']
@@ -13,8 +13,7 @@ var _nonNestableBlockContentGroup = require("../groups/nonNestableBlockContentGr
13
13
  var expand = exports.expand = (0, _adfSchemaGenerator.adfNode)('expand').define({
14
14
  isolating: true,
15
15
  selectable: true,
16
- marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
17
- hasEmptyMarks: true,
16
+ noMarks: true,
18
17
  attrs: {
19
18
  title: {
20
19
  type: 'string',
@@ -27,25 +26,12 @@ var expand = exports.expand = (0, _adfSchemaGenerator.adfNode)('expand').define(
27
26
  optional: true
28
27
  }
29
28
  },
30
- content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup, _nestedExpand.nestedExpand.use('with_no_marks')))],
31
- DANGEROUS_MANUAL_OVERRIDE: {
32
- 'validator-spec': {
33
- 'props.attrs.optional': {
34
- reason: '@DSLCompatibilityException - required for expand validator spec',
35
- remove: true
36
- }
37
- }
38
- }
29
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup, _nestedExpand.nestedExpand.use('with_no_marks')))]
39
30
  }).variant('without_nested_expand', {
40
31
  content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup))],
41
32
  ignore: ['json-schema', 'validator-spec']
42
- }).variant('with_breakout_mark', {
33
+ }).variant('root_only', {
43
34
  marks: [_breakout.breakout, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
44
- content: [],
45
- ignore: ['pm-spec']
46
- }).variant('with_no_mark', {
47
- content: [],
48
- marks: [],
49
- noMarks: true,
50
- ignore: []
35
+ noMarks: false,
36
+ noExtend: true
51
37
  });
@@ -18,7 +18,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
18
18
  */
19
19
 
20
20
  /**
21
- * @name expand_with_breakout_mark_node
21
+ * @name expand_root_only_node
22
22
  */
23
23
 
24
24
  function getExpandAttrs(domNode) {
@@ -224,7 +224,7 @@ var tableNodeSpecOptions = {
224
224
  isNumberColumnEnabled: dom.getAttribute('data-number-column') === 'true',
225
225
  layout:
226
226
  // copying from editor
227
- dom.getAttribute('data-layout') || ( // copying from renderer
227
+ dom.getAttribute('data-layout') || (// copying from renderer
228
228
  breakoutWrapper === null || breakoutWrapper === void 0 ? void 0 : breakoutWrapper.getAttribute('data-layout')) || 'default',
229
229
  __autoSize: dom.getAttribute('data-autosize') === 'true',
230
230
  localId: dom.getAttribute('data-table-local-id') || _uuid.uuid.generate(),
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.underline = exports.text_with_no_marks = exports.text_link_inline = exports.text_formatted = exports.text_code_inline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell = exports.table = exports.subsup = exports.strong = exports.strike = exports.status = exports.rule = exports.placeholder = exports.paragraph_with_no_marks = exports.paragraph_with_indentation = exports.paragraph_with_alignment = exports.paragraph = exports.panel_with_nested_blockquote = exports.panel = exports.orderedList = exports.non_nestable_block_content = exports.nestedExpand_with_no_marks = exports.nestedExpand_content = exports.nestedExpand = exports.multiBodiedExtension = exports.mention = exports.mediaSingle_width_type = exports.mediaSingle_full = exports.mediaSingle_caption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem_with_nested_decision = exports.listItem = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_content = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.indentation = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = exports.extension_with_marks = exports.extensionFrame = exports.extension = exports.expand_with_no_mark = exports.expand_with_breakout_mark = exports.expand = exports.emoji = exports.embedCard = exports.em = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.dataConsumer = exports.confluenceInlineComment = exports.codeBlock_root_only = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote = exports.block_content = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.annotation = exports.alignment = void 0;
6
+ exports.underline = exports.text_with_no_marks = exports.text_link_inline = exports.text_formatted = exports.text_code_inline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell = exports.table = exports.subsup = exports.strong = exports.strike = exports.status = exports.rule = exports.placeholder = exports.paragraph_with_no_marks = exports.paragraph_with_indentation = exports.paragraph_with_alignment = exports.paragraph = exports.panel_with_nested_blockquote = exports.panel = exports.orderedList = exports.non_nestable_block_content = exports.nestedExpand_with_no_marks = exports.nestedExpand_content = exports.nestedExpand = exports.multiBodiedExtension = exports.mention = exports.mediaSingle_width_type = exports.mediaSingle_full = exports.mediaSingle_caption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem_with_nested_decision = exports.listItem = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_content = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.indentation = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = exports.extension_with_marks = exports.extensionFrame = exports.extension = exports.expand_root_only = exports.expand = exports.emoji = exports.embedCard = exports.em = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.dataConsumer = exports.confluenceInlineComment = exports.codeBlock_root_only = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote = exports.block_content = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.annotation = exports.alignment = void 0;
7
7
  var alignment = exports.alignment = {
8
8
  props: {
9
9
  type: {
@@ -55,7 +55,7 @@ var backgroundColor = exports.backgroundColor = {
55
55
  }
56
56
  }
57
57
  };
58
- var block_content = exports.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'];
58
+ var block_content = exports.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', 'bodiedExtension_with_marks'];
59
59
  var blockCard = exports.blockCard = {
60
60
  props: {
61
61
  type: {
@@ -418,7 +418,7 @@ var doc = exports.doc = {
418
418
  },
419
419
  content: {
420
420
  type: 'array',
421
- 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']],
421
+ 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', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only']],
422
422
  allowUnsupportedBlock: true
423
423
  }
424
424
  }
@@ -505,22 +505,18 @@ var expand = exports.expand = {
505
505
  type: 'string',
506
506
  optional: true
507
507
  }
508
- }
508
+ },
509
+ optional: true
509
510
  },
510
511
  content: {
511
512
  type: 'array',
512
513
  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']],
513
514
  minItems: 1,
514
515
  allowUnsupportedBlock: true
515
- },
516
- marks: {
517
- type: 'array',
518
- items: [],
519
- optional: true
520
516
  }
521
517
  }
522
518
  };
523
- var expand_with_breakout_mark = exports.expand_with_breakout_mark = ['expand', {
519
+ var expand_root_only = exports.expand_root_only = ['expand', {
524
520
  props: {
525
521
  marks: {
526
522
  type: 'array',
@@ -529,16 +525,6 @@ var expand_with_breakout_mark = exports.expand_with_breakout_mark = ['expand', {
529
525
  }
530
526
  }
531
527
  }];
532
- var expand_with_no_mark = exports.expand_with_no_mark = ['expand', {
533
- props: {
534
- marks: {
535
- type: 'array',
536
- maxItems: 0,
537
- items: [],
538
- optional: true
539
- }
540
- }
541
- }];
542
528
  var extension = exports.extension = {
543
529
  props: {
544
530
  type: {
@@ -8,7 +8,7 @@ import { codeBlock } from './nodes/codeBlock';
8
8
  const doc = adfNode('doc').define({
9
9
  root: true,
10
10
  version: 1,
11
- content: [$onePlus($or(blockGroup, blockContentGroup, codeBlock.use('root_only'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), blockRootOnlyGroup, expand.use('with_breakout_mark')))],
11
+ content: [$onePlus($or(blockGroup, blockContentGroup, codeBlock.use('root_only'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), blockRootOnlyGroup, expand.use('root_only')))],
12
12
  DANGEROUS_MANUAL_OVERRIDE: {
13
13
  'validator-spec': {
14
14
  'props.content.minItems': {
@@ -230,7 +230,7 @@ export const decisionList = createPMNodeSpecFactory({
230
230
  defining: true
231
231
  });
232
232
  export const doc = createPMNodeSpecFactory({
233
- content: '(block | codeBlock | layoutSection | blockRootOnly)+',
233
+ content: '(block | codeBlock | layoutSection | blockRootOnly | expand)+',
234
234
  marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation dataConsumer fragment breakout'
235
235
  });
236
236
  export const embedCard = createPMNodeSpecFactory({
@@ -301,8 +301,9 @@ export const expand = createPMNodeSpecFactory({
301
301
  selectable: true,
302
302
  isolating: true
303
303
  });
304
- export const expandWithNoMark = createPMNodeSpecFactory({
305
- group: 'block',
304
+ export const expandRootOnly = createPMNodeSpecFactory({
305
+ content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
306
+ marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
306
307
  attrs: {
307
308
  title: {
308
309
  default: ''
@@ -26,14 +26,12 @@ import { unsupportedBlock } from '../nodes/unsupportedBlock';
26
26
  *
27
27
  * Has slight differences from the original blockGroup:
28
28
  * - no base paragraph
29
- * - no base codeBlock
30
29
  * - no base extension
31
30
  * - no base mediaSingle
32
31
  * - no base heading
33
- * - no base expand
34
32
  */
35
33
  export const blockContentGroup = adfNodeGroup('block_content', [blockCard, paragraph.use('with_no_marks'), paragraph.use('with_alignment'), paragraph.use('with_indentation'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, taskList, bulletList, orderedList, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), mediaGroup, decisionList, rule, panel, panel.use('with_nested_blockquote'), blockquote, blockquote.use('without_nested_codeblock_or_media'), extension.use('with_marks'), embedCard, table,
36
34
  // @ts-expect-error - types don't deal well with circular references for the variant
37
- table.use('with_nested_table'), expand.use('without_nested_expand'), expand.use('with_no_mark'), bodiedExtension.use('with_marks'), confluenceUnsupportedBlock, unsupportedBlock], {
35
+ table.use('with_nested_table'), expand, expand.use('without_nested_expand'), bodiedExtension.use('with_marks'), confluenceUnsupportedBlock, unsupportedBlock], {
38
36
  ignore: ['pm-spec']
39
37
  });
@@ -20,7 +20,7 @@ import { taskList } from '../nodes/task';
20
20
  import { unsupportedBlock } from '../nodes/unsupportedBlock';
21
21
  export const blockGroup = adfNodeGroup('block', [blockCard, codeBlock, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), taskList, orderedList, bulletList, blockquote, blockquote.use('legacy'), blockquote.use('without_nested_codeblock_or_media'), decisionList, embedCard, extension, extension.use('with_marks'), heading, heading.use('with_indentation'), heading.use('with_no_marks'), heading.use('with_alignment'), mediaGroup, rule, panel, panel.use('with_nested_blockquote'), table,
22
22
  // @ts-expect-error - types don't deal well with circular references for the variant
23
- table.use('with_nested_table'), bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('with_no_mark'), expand.use('with_breakout_mark'), expand.use('without_nested_expand'), confluenceUnsupportedBlock, unsupportedBlock], {
23
+ table.use('with_nested_table'), bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('without_nested_expand'), confluenceUnsupportedBlock, unsupportedBlock], {
24
24
  // @DSLCompatibilityException
25
25
  // Block group in PM doesn't match ADF
26
26
  ignore: ['validator-spec', 'json-schema']
@@ -7,8 +7,7 @@ import { nonNestableBlockContentGroup } from '../groups/nonNestableBlockContentG
7
7
  export const expand = adfNode('expand').define({
8
8
  isolating: true,
9
9
  selectable: true,
10
- marks: [unsupportedMark, unsupportedNodeAttribute],
11
- hasEmptyMarks: true,
10
+ noMarks: true,
12
11
  attrs: {
13
12
  title: {
14
13
  type: 'string',
@@ -21,25 +20,12 @@ export const expand = adfNode('expand').define({
21
20
  optional: true
22
21
  }
23
22
  },
24
- content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks')))],
25
- DANGEROUS_MANUAL_OVERRIDE: {
26
- 'validator-spec': {
27
- 'props.attrs.optional': {
28
- reason: '@DSLCompatibilityException - required for expand validator spec',
29
- remove: true
30
- }
31
- }
32
- }
23
+ content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks')))]
33
24
  }).variant('without_nested_expand', {
34
25
  content: [$onePlus($or(nonNestableBlockContentGroup))],
35
26
  ignore: ['json-schema', 'validator-spec']
36
- }).variant('with_breakout_mark', {
27
+ }).variant('root_only', {
37
28
  marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
38
- content: [],
39
- ignore: ['pm-spec']
40
- }).variant('with_no_mark', {
41
- content: [],
42
- marks: [],
43
- noMarks: true,
44
- ignore: []
29
+ noMarks: false,
30
+ noExtend: true
45
31
  });
@@ -9,7 +9,7 @@ import { expandWithoutNestedExpand as expandWithoutNestedExpandFactory, expand a
9
9
  */
10
10
 
11
11
  /**
12
- * @name expand_with_breakout_mark_node
12
+ * @name expand_root_only_node
13
13
  */
14
14
 
15
15
  function getExpandAttrs(domNode) {
@@ -211,7 +211,7 @@ const tableNodeSpecOptions = {
211
211
  isNumberColumnEnabled: dom.getAttribute('data-number-column') === 'true',
212
212
  layout:
213
213
  // copying from editor
214
- dom.getAttribute('data-layout') || ( // copying from renderer
214
+ dom.getAttribute('data-layout') || (// copying from renderer
215
215
  breakoutWrapper === null || breakoutWrapper === void 0 ? void 0 : breakoutWrapper.getAttribute('data-layout')) || 'default',
216
216
  __autoSize: dom.getAttribute('data-autosize') === 'true',
217
217
  localId: dom.getAttribute('data-table-local-id') || uuid.generate(),
@@ -49,7 +49,7 @@ export const backgroundColor = {
49
49
  }
50
50
  }
51
51
  };
52
- export const 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'];
52
+ export const 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', 'bodiedExtension_with_marks'];
53
53
  export const blockCard = {
54
54
  props: {
55
55
  type: {
@@ -412,7 +412,7 @@ export const doc = {
412
412
  },
413
413
  content: {
414
414
  type: 'array',
415
- 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']],
415
+ 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', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only']],
416
416
  allowUnsupportedBlock: true
417
417
  }
418
418
  }
@@ -499,22 +499,18 @@ export const expand = {
499
499
  type: 'string',
500
500
  optional: true
501
501
  }
502
- }
502
+ },
503
+ optional: true
503
504
  },
504
505
  content: {
505
506
  type: 'array',
506
507
  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']],
507
508
  minItems: 1,
508
509
  allowUnsupportedBlock: true
509
- },
510
- marks: {
511
- type: 'array',
512
- items: [],
513
- optional: true
514
510
  }
515
511
  }
516
512
  };
517
- export const expand_with_breakout_mark = ['expand', {
513
+ export const expand_root_only = ['expand', {
518
514
  props: {
519
515
  marks: {
520
516
  type: 'array',
@@ -523,16 +519,6 @@ export const expand_with_breakout_mark = ['expand', {
523
519
  }
524
520
  }
525
521
  }];
526
- export const expand_with_no_mark = ['expand', {
527
- props: {
528
- marks: {
529
- type: 'array',
530
- maxItems: 0,
531
- items: [],
532
- optional: true
533
- }
534
- }
535
- }];
536
522
  export const extension = {
537
523
  props: {
538
524
  type: {
@@ -8,7 +8,7 @@ import { codeBlock } from './nodes/codeBlock';
8
8
  var doc = adfNode('doc').define({
9
9
  root: true,
10
10
  version: 1,
11
- content: [$onePlus($or(blockGroup, blockContentGroup, codeBlock.use('root_only'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), blockRootOnlyGroup, expand.use('with_breakout_mark')))],
11
+ content: [$onePlus($or(blockGroup, blockContentGroup, codeBlock.use('root_only'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), blockRootOnlyGroup, expand.use('root_only')))],
12
12
  DANGEROUS_MANUAL_OVERRIDE: {
13
13
  'validator-spec': {
14
14
  'props.content.minItems': {
@@ -230,7 +230,7 @@ export var decisionList = createPMNodeSpecFactory({
230
230
  defining: true
231
231
  });
232
232
  export var doc = createPMNodeSpecFactory({
233
- content: '(block | codeBlock | layoutSection | blockRootOnly)+',
233
+ content: '(block | codeBlock | layoutSection | blockRootOnly | expand)+',
234
234
  marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation dataConsumer fragment breakout'
235
235
  });
236
236
  export var embedCard = createPMNodeSpecFactory({
@@ -301,8 +301,9 @@ export var expand = createPMNodeSpecFactory({
301
301
  selectable: true,
302
302
  isolating: true
303
303
  });
304
- export var expandWithNoMark = createPMNodeSpecFactory({
305
- group: 'block',
304
+ export var expandRootOnly = createPMNodeSpecFactory({
305
+ content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
306
+ marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
306
307
  attrs: {
307
308
  title: {
308
309
  default: ''
@@ -26,14 +26,12 @@ import { unsupportedBlock } from '../nodes/unsupportedBlock';
26
26
  *
27
27
  * Has slight differences from the original blockGroup:
28
28
  * - no base paragraph
29
- * - no base codeBlock
30
29
  * - no base extension
31
30
  * - no base mediaSingle
32
31
  * - no base heading
33
- * - no base expand
34
32
  */
35
33
  export var blockContentGroup = adfNodeGroup('block_content', [blockCard, paragraph.use('with_no_marks'), paragraph.use('with_alignment'), paragraph.use('with_indentation'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, taskList, bulletList, orderedList, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), mediaGroup, decisionList, rule, panel, panel.use('with_nested_blockquote'), blockquote, blockquote.use('without_nested_codeblock_or_media'), extension.use('with_marks'), embedCard, table,
36
34
  // @ts-expect-error - types don't deal well with circular references for the variant
37
- table.use('with_nested_table'), expand.use('without_nested_expand'), expand.use('with_no_mark'), bodiedExtension.use('with_marks'), confluenceUnsupportedBlock, unsupportedBlock], {
35
+ table.use('with_nested_table'), expand, expand.use('without_nested_expand'), bodiedExtension.use('with_marks'), confluenceUnsupportedBlock, unsupportedBlock], {
38
36
  ignore: ['pm-spec']
39
37
  });
@@ -20,7 +20,7 @@ import { taskList } from '../nodes/task';
20
20
  import { unsupportedBlock } from '../nodes/unsupportedBlock';
21
21
  export var blockGroup = adfNodeGroup('block', [blockCard, codeBlock, mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), taskList, orderedList, bulletList, blockquote, blockquote.use('legacy'), blockquote.use('without_nested_codeblock_or_media'), decisionList, embedCard, extension, extension.use('with_marks'), heading, heading.use('with_indentation'), heading.use('with_no_marks'), heading.use('with_alignment'), mediaGroup, rule, panel, panel.use('with_nested_blockquote'), table,
22
22
  // @ts-expect-error - types don't deal well with circular references for the variant
23
- table.use('with_nested_table'), bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('with_no_mark'), expand.use('with_breakout_mark'), expand.use('without_nested_expand'), confluenceUnsupportedBlock, unsupportedBlock], {
23
+ table.use('with_nested_table'), bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('without_nested_expand'), confluenceUnsupportedBlock, unsupportedBlock], {
24
24
  // @DSLCompatibilityException
25
25
  // Block group in PM doesn't match ADF
26
26
  ignore: ['validator-spec', 'json-schema']
@@ -7,8 +7,7 @@ import { nonNestableBlockContentGroup } from '../groups/nonNestableBlockContentG
7
7
  export var expand = adfNode('expand').define({
8
8
  isolating: true,
9
9
  selectable: true,
10
- marks: [unsupportedMark, unsupportedNodeAttribute],
11
- hasEmptyMarks: true,
10
+ noMarks: true,
12
11
  attrs: {
13
12
  title: {
14
13
  type: 'string',
@@ -21,25 +20,12 @@ export var expand = adfNode('expand').define({
21
20
  optional: true
22
21
  }
23
22
  },
24
- content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks')))],
25
- DANGEROUS_MANUAL_OVERRIDE: {
26
- 'validator-spec': {
27
- 'props.attrs.optional': {
28
- reason: '@DSLCompatibilityException - required for expand validator spec',
29
- remove: true
30
- }
31
- }
32
- }
23
+ content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks')))]
33
24
  }).variant('without_nested_expand', {
34
25
  content: [$onePlus($or(nonNestableBlockContentGroup))],
35
26
  ignore: ['json-schema', 'validator-spec']
36
- }).variant('with_breakout_mark', {
27
+ }).variant('root_only', {
37
28
  marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
38
- content: [],
39
- ignore: ['pm-spec']
40
- }).variant('with_no_mark', {
41
- content: [],
42
- marks: [],
43
- noMarks: true,
44
- ignore: []
29
+ noMarks: false,
30
+ noExtend: true
45
31
  });
@@ -12,7 +12,7 @@ import { expandWithoutNestedExpand as expandWithoutNestedExpandFactory, expand a
12
12
  */
13
13
 
14
14
  /**
15
- * @name expand_with_breakout_mark_node
15
+ * @name expand_root_only_node
16
16
  */
17
17
 
18
18
  function getExpandAttrs(domNode) {
@@ -217,7 +217,7 @@ var tableNodeSpecOptions = {
217
217
  isNumberColumnEnabled: dom.getAttribute('data-number-column') === 'true',
218
218
  layout:
219
219
  // copying from editor
220
- dom.getAttribute('data-layout') || ( // copying from renderer
220
+ dom.getAttribute('data-layout') || (// copying from renderer
221
221
  breakoutWrapper === null || breakoutWrapper === void 0 ? void 0 : breakoutWrapper.getAttribute('data-layout')) || 'default',
222
222
  __autoSize: dom.getAttribute('data-autosize') === 'true',
223
223
  localId: dom.getAttribute('data-table-local-id') || uuid.generate(),
@@ -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', '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', 'bodiedExtension_with_marks'];
53
53
  export var blockCard = {
54
54
  props: {
55
55
  type: {
@@ -412,7 +412,7 @@ export var doc = {
412
412
  },
413
413
  content: {
414
414
  type: 'array',
415
- 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']],
415
+ 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', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only']],
416
416
  allowUnsupportedBlock: true
417
417
  }
418
418
  }
@@ -499,22 +499,18 @@ export var expand = {
499
499
  type: 'string',
500
500
  optional: true
501
501
  }
502
- }
502
+ },
503
+ optional: true
503
504
  },
504
505
  content: {
505
506
  type: 'array',
506
507
  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']],
507
508
  minItems: 1,
508
509
  allowUnsupportedBlock: true
509
- },
510
- marks: {
511
- type: 'array',
512
- items: [],
513
- optional: true
514
510
  }
515
511
  }
516
512
  };
517
- export var expand_with_breakout_mark = ['expand', {
513
+ export var expand_root_only = ['expand', {
518
514
  props: {
519
515
  marks: {
520
516
  type: 'array',
@@ -523,16 +519,6 @@ export var expand_with_breakout_mark = ['expand', {
523
519
  }
524
520
  }
525
521
  }];
526
- export var expand_with_no_mark = ['expand', {
527
- props: {
528
- marks: {
529
- type: 'array',
530
- maxItems: 0,
531
- items: [],
532
- optional: true
533
- }
534
- }
535
- }];
536
522
  export var extension = {
537
523
  props: {
538
524
  type: {