@atlaskit/adf-schema 45.2.0 → 46.0.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 (34) hide show
  1. package/CHANGELOG.md +11 -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 +4 -10
  7. package/dist/cjs/schema/nodes/expand.js +1 -1
  8. package/dist/cjs/validator-schema/generated/validatorSpec.js +4 -19
  9. package/dist/es2019/next-schema/full-schema.adf.js +1 -1
  10. package/dist/es2019/next-schema/generated/nodeTypes.js +4 -3
  11. package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -3
  12. package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
  13. package/dist/es2019/next-schema/nodes/expand.js +4 -10
  14. package/dist/es2019/schema/nodes/expand.js +1 -1
  15. package/dist/es2019/validator-schema/generated/validatorSpec.js +3 -18
  16. package/dist/esm/next-schema/full-schema.adf.js +1 -1
  17. package/dist/esm/next-schema/generated/nodeTypes.js +4 -3
  18. package/dist/esm/next-schema/groups/blockContentGroup.js +1 -3
  19. package/dist/esm/next-schema/groups/blockGroup.js +1 -1
  20. package/dist/esm/next-schema/nodes/expand.js +4 -10
  21. package/dist/esm/schema/nodes/expand.js +1 -1
  22. package/dist/esm/validator-schema/generated/validatorSpec.js +3 -18
  23. package/dist/json-schema/v1/full.json +37 -33
  24. package/dist/json-schema/v1/stage-0.json +37 -33
  25. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
  26. package/dist/types/next-schema/generated/nodeTypes.d.ts +6 -6
  27. package/dist/types/next-schema/groups/blockContentGroup.d.ts +0 -2
  28. package/dist/types/next-schema/nodes/expand.d.ts +3 -8
  29. package/dist/types/schema/nodes/doc.d.ts +2 -2
  30. package/dist/types/schema/nodes/expand.d.ts +2 -3
  31. package/dist/types/validator-schema/generated/validatorSpec.d.ts +1 -16
  32. package/json-schema/v1/full.json +37 -33
  33. package/json-schema/v1/stage-0.json +37 -33
  34. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 46.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - a0f224a: Remove `expand_with_with_no_mark` and replace `expand_with_breakout_mark` with `expand_root_only`
8
+
9
+ Upgrade instructions
10
+
11
+ - Replace `expand_with_breakout_mark` with `expand_root_only`
12
+ - Replace `expand_no_mark` with `expand`
13
+
3
14
  ## 45.2.0
4
15
 
5
16
  ### 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',
@@ -39,13 +38,8 @@ var expand = exports.expand = (0, _adfSchemaGenerator.adfNode)('expand').define(
39
38
  }).variant('without_nested_expand', {
40
39
  content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup))],
41
40
  ignore: ['json-schema', 'validator-spec']
42
- }).variant('with_breakout_mark', {
41
+ }).variant('root_only', {
43
42
  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: []
43
+ noMarks: false,
44
+ noExtend: true
51
45
  });
@@ -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) {
@@ -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
  }
@@ -512,15 +512,10 @@ var expand = exports.expand = {
512
512
  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
513
  minItems: 1,
514
514
  allowUnsupportedBlock: true
515
- },
516
- marks: {
517
- type: 'array',
518
- items: [],
519
- optional: true
520
515
  }
521
516
  }
522
517
  };
523
- var expand_with_breakout_mark = exports.expand_with_breakout_mark = ['expand', {
518
+ var expand_root_only = exports.expand_root_only = ['expand', {
524
519
  props: {
525
520
  marks: {
526
521
  type: 'array',
@@ -529,16 +524,6 @@ var expand_with_breakout_mark = exports.expand_with_breakout_mark = ['expand', {
529
524
  }
530
525
  }
531
526
  }];
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
527
  var extension = exports.extension = {
543
528
  props: {
544
529
  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',
@@ -33,13 +32,8 @@ export const expand = adfNode('expand').define({
33
32
  }).variant('without_nested_expand', {
34
33
  content: [$onePlus($or(nonNestableBlockContentGroup))],
35
34
  ignore: ['json-schema', 'validator-spec']
36
- }).variant('with_breakout_mark', {
35
+ }).variant('root_only', {
37
36
  marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
38
- content: [],
39
- ignore: ['pm-spec']
40
- }).variant('with_no_mark', {
41
- content: [],
42
- marks: [],
43
- noMarks: true,
44
- ignore: []
37
+ noMarks: false,
38
+ noExtend: true
45
39
  });
@@ -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) {
@@ -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
  }
@@ -506,15 +506,10 @@ export const expand = {
506
506
  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
507
  minItems: 1,
508
508
  allowUnsupportedBlock: true
509
- },
510
- marks: {
511
- type: 'array',
512
- items: [],
513
- optional: true
514
509
  }
515
510
  }
516
511
  };
517
- export const expand_with_breakout_mark = ['expand', {
512
+ export const expand_root_only = ['expand', {
518
513
  props: {
519
514
  marks: {
520
515
  type: 'array',
@@ -523,16 +518,6 @@ export const expand_with_breakout_mark = ['expand', {
523
518
  }
524
519
  }
525
520
  }];
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
521
  export const extension = {
537
522
  props: {
538
523
  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',
@@ -33,13 +32,8 @@ export var expand = adfNode('expand').define({
33
32
  }).variant('without_nested_expand', {
34
33
  content: [$onePlus($or(nonNestableBlockContentGroup))],
35
34
  ignore: ['json-schema', 'validator-spec']
36
- }).variant('with_breakout_mark', {
35
+ }).variant('root_only', {
37
36
  marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
38
- content: [],
39
- ignore: ['pm-spec']
40
- }).variant('with_no_mark', {
41
- content: [],
42
- marks: [],
43
- noMarks: true,
44
- ignore: []
37
+ noMarks: false,
38
+ noExtend: true
45
39
  });
@@ -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) {
@@ -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
  }
@@ -506,15 +506,10 @@ export var expand = {
506
506
  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
507
  minItems: 1,
508
508
  allowUnsupportedBlock: true
509
- },
510
- marks: {
511
- type: 'array',
512
- items: [],
513
- optional: true
514
509
  }
515
510
  }
516
511
  };
517
- export var expand_with_breakout_mark = ['expand', {
512
+ export var expand_root_only = ['expand', {
518
513
  props: {
519
514
  marks: {
520
515
  type: 'array',
@@ -523,16 +518,6 @@ export var expand_with_breakout_mark = ['expand', {
523
518
  }
524
519
  }
525
520
  }];
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
521
  export var extension = {
537
522
  props: {
538
523
  type: {
@@ -133,7 +133,7 @@
133
133
  "$ref": "#/definitions/table_node"
134
134
  },
135
135
  {
136
- "$ref": "#/definitions/expand_with_no_mark_node"
136
+ "$ref": "#/definitions/expand_node"
137
137
  },
138
138
  {
139
139
  "$ref": "#/definitions/bodiedExtension_with_marks_node"
@@ -726,16 +726,16 @@
726
726
  "$ref": "#/definitions/bodiedExtension_with_marks_node"
727
727
  },
728
728
  {
729
- "$ref": "#/definitions/expand_with_no_mark_node"
730
- },
731
- {
732
- "$ref": "#/definitions/expand_with_breakout_mark_node"
729
+ "$ref": "#/definitions/expand_node"
733
730
  },
734
731
  {
735
732
  "$ref": "#/definitions/codeBlock_root_only_node"
736
733
  },
737
734
  {
738
735
  "$ref": "#/definitions/layoutSection_full_node"
736
+ },
737
+ {
738
+ "$ref": "#/definitions/expand_root_only_node"
739
739
  }
740
740
  ]
741
741
  }
@@ -832,7 +832,8 @@
832
832
  "enum": ["expand"]
833
833
  },
834
834
  "marks": {
835
- "type": "array"
835
+ "type": "array",
836
+ "maxItems": 0
836
837
  },
837
838
  "attrs": {
838
839
  "type": "object",
@@ -861,41 +862,44 @@
861
862
  "additionalProperties": false,
862
863
  "required": ["type", "content", "attrs"]
863
864
  },
864
- "expand_with_breakout_mark_node": {
865
- "allOf": [
866
- {
867
- "$ref": "#/definitions/expand_node"
865
+ "expand_root_only_node": {
866
+ "type": "object",
867
+ "properties": {
868
+ "type": {
869
+ "enum": ["expand"]
868
870
  },
869
- {
871
+ "marks": {
872
+ "type": "array",
873
+ "items": {
874
+ "$ref": "#/definitions/breakout_mark"
875
+ }
876
+ },
877
+ "attrs": {
870
878
  "type": "object",
871
879
  "properties": {
872
- "marks": {
873
- "type": "array",
874
- "items": {
875
- "$ref": "#/definitions/breakout_mark"
876
- }
880
+ "title": {
881
+ "type": "string"
877
882
  }
878
883
  },
879
- "additionalProperties": true
880
- }
881
- ]
882
- },
883
- "expand_with_no_mark_node": {
884
- "allOf": [
885
- {
886
- "$ref": "#/definitions/expand_node"
884
+ "additionalProperties": false
887
885
  },
888
- {
889
- "type": "object",
890
- "properties": {
891
- "marks": {
892
- "type": "array",
893
- "maxItems": 0
894
- }
886
+ "content": {
887
+ "type": "array",
888
+ "items": {
889
+ "anyOf": [
890
+ {
891
+ "$ref": "#/definitions/non_nestable_block_content"
892
+ },
893
+ {
894
+ "$ref": "#/definitions/nestedExpand_with_no_marks_node"
895
+ }
896
+ ]
895
897
  },
896
- "additionalProperties": true
898
+ "minItems": 1
897
899
  }
898
- ]
900
+ },
901
+ "additionalProperties": false,
902
+ "required": ["type", "content"]
899
903
  },
900
904
  "extension_node": {
901
905
  "type": "object",
@@ -136,7 +136,7 @@
136
136
  "$ref": "#/definitions/table_node"
137
137
  },
138
138
  {
139
- "$ref": "#/definitions/expand_with_no_mark_node"
139
+ "$ref": "#/definitions/expand_node"
140
140
  },
141
141
  {
142
142
  "$ref": "#/definitions/bodiedExtension_with_marks_node"
@@ -745,10 +745,7 @@
745
745
  "$ref": "#/definitions/bodiedExtension_with_marks_node"
746
746
  },
747
747
  {
748
- "$ref": "#/definitions/expand_with_no_mark_node"
749
- },
750
- {
751
- "$ref": "#/definitions/expand_with_breakout_mark_node"
748
+ "$ref": "#/definitions/expand_node"
752
749
  },
753
750
  {
754
751
  "$ref": "#/definitions/codeBlock_root_only_node"
@@ -761,6 +758,9 @@
761
758
  },
762
759
  {
763
760
  "$ref": "#/definitions/multiBodiedExtension_node"
761
+ },
762
+ {
763
+ "$ref": "#/definitions/expand_root_only_node"
764
764
  }
765
765
  ]
766
766
  }
@@ -863,7 +863,8 @@
863
863
  "enum": ["expand"]
864
864
  },
865
865
  "marks": {
866
- "type": "array"
866
+ "type": "array",
867
+ "maxItems": 0
867
868
  },
868
869
  "attrs": {
869
870
  "type": "object",
@@ -892,41 +893,44 @@
892
893
  "additionalProperties": false,
893
894
  "required": ["type", "content", "attrs"]
894
895
  },
895
- "expand_with_breakout_mark_node": {
896
- "allOf": [
897
- {
898
- "$ref": "#/definitions/expand_node"
896
+ "expand_root_only_node": {
897
+ "type": "object",
898
+ "properties": {
899
+ "type": {
900
+ "enum": ["expand"]
899
901
  },
900
- {
902
+ "marks": {
903
+ "type": "array",
904
+ "items": {
905
+ "$ref": "#/definitions/breakout_mark"
906
+ }
907
+ },
908
+ "attrs": {
901
909
  "type": "object",
902
910
  "properties": {
903
- "marks": {
904
- "type": "array",
905
- "items": {
906
- "$ref": "#/definitions/breakout_mark"
907
- }
911
+ "title": {
912
+ "type": "string"
908
913
  }
909
914
  },
910
- "additionalProperties": true
911
- }
912
- ]
913
- },
914
- "expand_with_no_mark_node": {
915
- "allOf": [
916
- {
917
- "$ref": "#/definitions/expand_node"
915
+ "additionalProperties": false
918
916
  },
919
- {
920
- "type": "object",
921
- "properties": {
922
- "marks": {
923
- "type": "array",
924
- "maxItems": 0
925
- }
917
+ "content": {
918
+ "type": "array",
919
+ "items": {
920
+ "anyOf": [
921
+ {
922
+ "$ref": "#/definitions/non_nestable_block_content"
923
+ },
924
+ {
925
+ "$ref": "#/definitions/nestedExpand_with_no_marks_node"
926
+ }
927
+ ]
926
928
  },
927
- "additionalProperties": true
929
+ "minItems": 1
928
930
  }
929
- ]
931
+ },
932
+ "additionalProperties": false,
933
+ "required": ["type", "content"]
930
934
  },
931
935
  "extension_node": {
932
936
  "type": "object",
@@ -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, BlockquoteWithoutNestedCodeblockOrMediaDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExpandWithNoMarkDefinition, ExpandWithoutNestedExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelDefinition, PanelWithNestedBlockquoteStage0Definition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, 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 | BlockquoteWithoutNestedCodeblockOrMediaDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | PanelWithNestedBlockquoteStage0Definition | TableDefinition | TableWithNestedTableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ExpandWithNoMarkDefinition | ExpandWithoutNestedExpandDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
6
+ import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BlockquoteWithoutNestedCodeblockOrMediaDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExpandWithoutNestedExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelDefinition, PanelWithNestedBlockquoteStage0Definition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, 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 | BlockquoteWithoutNestedCodeblockOrMediaDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | PanelWithNestedBlockquoteStage0Definition | TableDefinition | TableWithNestedTableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ExpandWithoutNestedExpandDefinition | 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 | PanelDefinition | BlockquoteDefinition | OrderedListDefinition | BulletListDefinition | RuleDefinition | HeadingWithNoMarksDefinition | CodeBlockDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | DecisionListDefinition | TaskListDefinition | TableDefinition | TableWithNestedTableDefinition | BlockCardDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | UnsupportedBlockDefinition>;
@@ -179,7 +179,7 @@ export type DecisionListNode = PMNode & DecisionListDefinition;
179
179
  export declare const decisionList: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<DecisionListNode>) => import("prosemirror-model").NodeSpec;
180
180
  export interface DocDefinition {
181
181
  type: 'doc';
182
- content: Array<BlockDefinition | BlockRootOnlyDefinition | CodeBlockRootOnlyDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition>;
182
+ content: Array<BlockDefinition | BlockRootOnlyDefinition | CodeBlockRootOnlyDefinition | ExpandRootOnlyDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition>;
183
183
  }
184
184
  export type DocNode = PMNode & DocDefinition;
185
185
  export declare const doc: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<DocNode>) => import("prosemirror-model").NodeSpec;
@@ -221,7 +221,6 @@ export declare const emojiStage0: ({ parseDOM, toDOM, toDebugString }: import(".
221
221
  export interface ExpandDefinition {
222
222
  type: 'expand';
223
223
  content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
224
- marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
225
224
  attrs: {
226
225
  title?: string;
227
226
  __expanded?: boolean;
@@ -229,19 +228,20 @@ export interface ExpandDefinition {
229
228
  }
230
229
  export type ExpandNode = PMNode & ExpandDefinition;
231
230
  export declare const expand: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ExpandNode>) => import("prosemirror-model").NodeSpec;
232
- export interface ExpandWithNoMarkDefinition {
231
+ export interface ExpandRootOnlyDefinition {
233
232
  type: 'expand';
233
+ content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
234
+ marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
234
235
  attrs: {
235
236
  title?: string;
236
237
  __expanded?: boolean;
237
238
  };
238
239
  }
239
- export type ExpandWithNoMarkNode = PMNode & ExpandWithNoMarkDefinition;
240
- export declare const expandWithNoMark: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ExpandWithNoMarkNode>) => import("prosemirror-model").NodeSpec;
240
+ export type ExpandRootOnlyNode = PMNode & ExpandRootOnlyDefinition;
241
+ export declare const expandRootOnly: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ExpandRootOnlyNode>) => import("prosemirror-model").NodeSpec;
241
242
  export interface ExpandWithoutNestedExpandDefinition {
242
243
  type: 'expand';
243
244
  content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
244
- marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
245
245
  attrs: {
246
246
  title?: string;
247
247
  __expanded?: boolean;
@@ -5,10 +5,8 @@
5
5
  *
6
6
  * Has slight differences from the original blockGroup:
7
7
  * - no base paragraph
8
- * - no base codeBlock
9
8
  * - no base extension
10
9
  * - no base mediaSingle
11
10
  * - no base heading
12
- * - no base expand
13
11
  */
14
12
  export declare const blockContentGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
@@ -1,13 +1,8 @@
1
- export declare const expand: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "without_nested_expand", "with_breakout_mark", "with_no_mark"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
1
+ export declare const expand: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "without_nested_expand", "root_only"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
2
2
  content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
3
3
  ignore: ("json-schema" | "validator-spec")[];
4
4
  } & {
5
5
  marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
6
- content: any[];
7
- ignore: "pm-spec"[];
8
- } & {
9
- content: any[];
10
- marks: any[];
11
- noMarks: true;
12
- ignore: any[];
6
+ noMarks: false;
7
+ noExtend: true;
13
8
  }>;
@@ -1,5 +1,5 @@
1
1
  import { CodeBlockWithMarksDefinition as CodeBlockWithMarks } from './code-block';
2
- import { ExpandWithBreakoutDefinition as ExpandWithBreakout } from './expand';
2
+ import { ExpandRootOnlyDefinition as ExpandRootOnly } from './expand';
3
3
  import { LayoutSectionDefinition as LayoutSection } from './layout-section';
4
4
  import { ParagraphWithIndentationDefinition } from './paragraph';
5
5
  import { BlockContent } from './types/block-content';
@@ -13,6 +13,6 @@ export interface DocNode {
13
13
  /**
14
14
  * @allowUnsupportedBlock true
15
15
  */
16
- content: Array<BlockContent | LayoutSection | CodeBlockWithMarks | ExpandWithBreakout | ParagraphWithIndentationDefinition | MultiBodiedExtension>;
16
+ content: Array<BlockContent | LayoutSection | CodeBlockWithMarks | ExpandRootOnly | ParagraphWithIndentationDefinition | MultiBodiedExtension>;
17
17
  }
18
18
  export declare const doc: import("prosemirror-model").NodeSpec;
@@ -17,16 +17,15 @@ export interface ExpandBaseDefinition {
17
17
  * @allowUnsupportedBlock true
18
18
  */
19
19
  content: Array<NonNestableBlockContent | NestedExpandDefinition>;
20
- marks?: Array<any>;
21
20
  }
22
21
  /**
23
22
  * @name expand_with_no_mark_node
24
23
  */
25
24
  export type ExpandDefinition = ExpandBaseDefinition & NoMark;
26
25
  /**
27
- * @name expand_with_breakout_mark_node
26
+ * @name expand_root_only_node
28
27
  */
29
- export type ExpandWithBreakoutDefinition = ExpandBaseDefinition & MarksObject<BreakoutMarkDefinition>;
28
+ export type ExpandRootOnlyDefinition = ExpandBaseDefinition & MarksObject<BreakoutMarkDefinition>;
30
29
  export declare const expand: import("prosemirror-model").NodeSpec;
31
30
  export declare const expandWithNestedExpand: import("prosemirror-model").NodeSpec;
32
31
  export declare const toJSON: (node: PMNode) => {
@@ -517,14 +517,9 @@ export declare const expand: {
517
517
  minItems: number;
518
518
  allowUnsupportedBlock: boolean;
519
519
  };
520
- marks: {
521
- type: string;
522
- items: any[];
523
- optional: boolean;
524
- };
525
520
  };
526
521
  };
527
- export declare const expand_with_breakout_mark: (string | {
522
+ export declare const expand_root_only: (string | {
528
523
  props: {
529
524
  marks: {
530
525
  type: string;
@@ -533,16 +528,6 @@ export declare const expand_with_breakout_mark: (string | {
533
528
  };
534
529
  };
535
530
  })[];
536
- export declare const expand_with_no_mark: (string | {
537
- props: {
538
- marks: {
539
- type: string;
540
- maxItems: number;
541
- items: any[];
542
- optional: boolean;
543
- };
544
- };
545
- })[];
546
531
  export declare const extension: {
547
532
  props: {
548
533
  type: {
@@ -133,7 +133,7 @@
133
133
  "$ref": "#/definitions/table_node"
134
134
  },
135
135
  {
136
- "$ref": "#/definitions/expand_with_no_mark_node"
136
+ "$ref": "#/definitions/expand_node"
137
137
  },
138
138
  {
139
139
  "$ref": "#/definitions/bodiedExtension_with_marks_node"
@@ -726,16 +726,16 @@
726
726
  "$ref": "#/definitions/bodiedExtension_with_marks_node"
727
727
  },
728
728
  {
729
- "$ref": "#/definitions/expand_with_no_mark_node"
730
- },
731
- {
732
- "$ref": "#/definitions/expand_with_breakout_mark_node"
729
+ "$ref": "#/definitions/expand_node"
733
730
  },
734
731
  {
735
732
  "$ref": "#/definitions/codeBlock_root_only_node"
736
733
  },
737
734
  {
738
735
  "$ref": "#/definitions/layoutSection_full_node"
736
+ },
737
+ {
738
+ "$ref": "#/definitions/expand_root_only_node"
739
739
  }
740
740
  ]
741
741
  }
@@ -832,7 +832,8 @@
832
832
  "enum": ["expand"]
833
833
  },
834
834
  "marks": {
835
- "type": "array"
835
+ "type": "array",
836
+ "maxItems": 0
836
837
  },
837
838
  "attrs": {
838
839
  "type": "object",
@@ -861,41 +862,44 @@
861
862
  "additionalProperties": false,
862
863
  "required": ["type", "content", "attrs"]
863
864
  },
864
- "expand_with_breakout_mark_node": {
865
- "allOf": [
866
- {
867
- "$ref": "#/definitions/expand_node"
865
+ "expand_root_only_node": {
866
+ "type": "object",
867
+ "properties": {
868
+ "type": {
869
+ "enum": ["expand"]
868
870
  },
869
- {
871
+ "marks": {
872
+ "type": "array",
873
+ "items": {
874
+ "$ref": "#/definitions/breakout_mark"
875
+ }
876
+ },
877
+ "attrs": {
870
878
  "type": "object",
871
879
  "properties": {
872
- "marks": {
873
- "type": "array",
874
- "items": {
875
- "$ref": "#/definitions/breakout_mark"
876
- }
880
+ "title": {
881
+ "type": "string"
877
882
  }
878
883
  },
879
- "additionalProperties": true
880
- }
881
- ]
882
- },
883
- "expand_with_no_mark_node": {
884
- "allOf": [
885
- {
886
- "$ref": "#/definitions/expand_node"
884
+ "additionalProperties": false
887
885
  },
888
- {
889
- "type": "object",
890
- "properties": {
891
- "marks": {
892
- "type": "array",
893
- "maxItems": 0
894
- }
886
+ "content": {
887
+ "type": "array",
888
+ "items": {
889
+ "anyOf": [
890
+ {
891
+ "$ref": "#/definitions/non_nestable_block_content"
892
+ },
893
+ {
894
+ "$ref": "#/definitions/nestedExpand_with_no_marks_node"
895
+ }
896
+ ]
895
897
  },
896
- "additionalProperties": true
898
+ "minItems": 1
897
899
  }
898
- ]
900
+ },
901
+ "additionalProperties": false,
902
+ "required": ["type", "content"]
899
903
  },
900
904
  "extension_node": {
901
905
  "type": "object",
@@ -136,7 +136,7 @@
136
136
  "$ref": "#/definitions/table_node"
137
137
  },
138
138
  {
139
- "$ref": "#/definitions/expand_with_no_mark_node"
139
+ "$ref": "#/definitions/expand_node"
140
140
  },
141
141
  {
142
142
  "$ref": "#/definitions/bodiedExtension_with_marks_node"
@@ -745,10 +745,7 @@
745
745
  "$ref": "#/definitions/bodiedExtension_with_marks_node"
746
746
  },
747
747
  {
748
- "$ref": "#/definitions/expand_with_no_mark_node"
749
- },
750
- {
751
- "$ref": "#/definitions/expand_with_breakout_mark_node"
748
+ "$ref": "#/definitions/expand_node"
752
749
  },
753
750
  {
754
751
  "$ref": "#/definitions/codeBlock_root_only_node"
@@ -761,6 +758,9 @@
761
758
  },
762
759
  {
763
760
  "$ref": "#/definitions/multiBodiedExtension_node"
761
+ },
762
+ {
763
+ "$ref": "#/definitions/expand_root_only_node"
764
764
  }
765
765
  ]
766
766
  }
@@ -863,7 +863,8 @@
863
863
  "enum": ["expand"]
864
864
  },
865
865
  "marks": {
866
- "type": "array"
866
+ "type": "array",
867
+ "maxItems": 0
867
868
  },
868
869
  "attrs": {
869
870
  "type": "object",
@@ -892,41 +893,44 @@
892
893
  "additionalProperties": false,
893
894
  "required": ["type", "content", "attrs"]
894
895
  },
895
- "expand_with_breakout_mark_node": {
896
- "allOf": [
897
- {
898
- "$ref": "#/definitions/expand_node"
896
+ "expand_root_only_node": {
897
+ "type": "object",
898
+ "properties": {
899
+ "type": {
900
+ "enum": ["expand"]
899
901
  },
900
- {
902
+ "marks": {
903
+ "type": "array",
904
+ "items": {
905
+ "$ref": "#/definitions/breakout_mark"
906
+ }
907
+ },
908
+ "attrs": {
901
909
  "type": "object",
902
910
  "properties": {
903
- "marks": {
904
- "type": "array",
905
- "items": {
906
- "$ref": "#/definitions/breakout_mark"
907
- }
911
+ "title": {
912
+ "type": "string"
908
913
  }
909
914
  },
910
- "additionalProperties": true
911
- }
912
- ]
913
- },
914
- "expand_with_no_mark_node": {
915
- "allOf": [
916
- {
917
- "$ref": "#/definitions/expand_node"
915
+ "additionalProperties": false
918
916
  },
919
- {
920
- "type": "object",
921
- "properties": {
922
- "marks": {
923
- "type": "array",
924
- "maxItems": 0
925
- }
917
+ "content": {
918
+ "type": "array",
919
+ "items": {
920
+ "anyOf": [
921
+ {
922
+ "$ref": "#/definitions/non_nestable_block_content"
923
+ },
924
+ {
925
+ "$ref": "#/definitions/nestedExpand_with_no_marks_node"
926
+ }
927
+ ]
926
928
  },
927
- "additionalProperties": true
929
+ "minItems": 1
928
930
  }
929
- ]
931
+ },
932
+ "additionalProperties": false,
933
+ "required": ["type", "content"]
930
934
  },
931
935
  "extension_node": {
932
936
  "type": "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "45.2.0",
3
+ "version": "46.0.0",
4
4
  "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@atlassian/adf-schema-json": "^1.24.0",
49
- "@atlaskit/adf-schema-generator": "^1.38.4",
49
+ "@atlaskit/adf-schema-generator": "^2.0.0",
50
50
  "@atlaskit/codemod-utils": "^4.2.4",
51
51
  "@babel/cli": "^7.22.9",
52
52
  "@babel/core": "^7.22.9",