@atlaskit/adf-schema 40.4.0 → 40.6.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 (53) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/index.js +4 -4
  3. package/dist/cjs/next-schema/generated/nodeTypes.js +9 -9
  4. package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
  5. package/dist/cjs/next-schema/nodes/blockquote.js +4 -5
  6. package/dist/cjs/next-schema/nodes/expand.js +4 -5
  7. package/dist/cjs/schema/create-schema.js +2 -2
  8. package/dist/cjs/schema/default-schema.js +2 -2
  9. package/dist/cjs/schema/index.js +4 -4
  10. package/dist/cjs/schema/nodes/blockquote.js +3 -3
  11. package/dist/cjs/schema/nodes/expand.js +3 -3
  12. package/dist/cjs/schema/nodes/index.js +4 -4
  13. package/dist/cjs/validator-schema/generated/validatorSpec.js +19 -19
  14. package/dist/es2019/index.js +2 -2
  15. package/dist/es2019/next-schema/generated/nodeTypes.js +8 -8
  16. package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
  17. package/dist/es2019/next-schema/nodes/blockquote.js +4 -5
  18. package/dist/es2019/next-schema/nodes/expand.js +4 -5
  19. package/dist/es2019/schema/create-schema.js +3 -3
  20. package/dist/es2019/schema/default-schema.js +3 -3
  21. package/dist/es2019/schema/index.js +1 -1
  22. package/dist/es2019/schema/nodes/blockquote.js +3 -3
  23. package/dist/es2019/schema/nodes/expand.js +3 -3
  24. package/dist/es2019/schema/nodes/index.js +2 -2
  25. package/dist/es2019/validator-schema/generated/validatorSpec.js +18 -18
  26. package/dist/esm/index.js +2 -2
  27. package/dist/esm/next-schema/generated/nodeTypes.js +8 -8
  28. package/dist/esm/next-schema/groups/blockGroup.js +1 -1
  29. package/dist/esm/next-schema/nodes/blockquote.js +4 -5
  30. package/dist/esm/next-schema/nodes/expand.js +4 -5
  31. package/dist/esm/schema/create-schema.js +3 -3
  32. package/dist/esm/schema/default-schema.js +3 -3
  33. package/dist/esm/schema/index.js +1 -1
  34. package/dist/esm/schema/nodes/blockquote.js +3 -3
  35. package/dist/esm/schema/nodes/expand.js +3 -3
  36. package/dist/esm/schema/nodes/index.js +2 -2
  37. package/dist/esm/validator-schema/generated/validatorSpec.js +18 -18
  38. package/dist/json-schema/v1/full.json +36 -17
  39. package/dist/json-schema/v1/stage-0.json +9 -74
  40. package/dist/types/index.d.ts +2 -2
  41. package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
  42. package/dist/types/next-schema/generated/nodeTypes.d.ts +14 -14
  43. package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +7 -3
  44. package/dist/types/next-schema/nodes/blockquote.d.ts +2 -3
  45. package/dist/types/next-schema/nodes/expand.d.ts +2 -3
  46. package/dist/types/schema/index.d.ts +1 -1
  47. package/dist/types/schema/nodes/blockquote.d.ts +1 -1
  48. package/dist/types/schema/nodes/expand.d.ts +1 -1
  49. package/dist/types/schema/nodes/index.d.ts +2 -2
  50. package/dist/types/validator-schema/generated/validatorSpec.d.ts +15 -15
  51. package/json-schema/v1/full.json +36 -17
  52. package/json-schema/v1/stage-0.json +9 -74
  53. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 40.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - cc19189: [ED-24187 promoting to full schema - Nested Expands in Expands
8
+
9
+ ## 40.5.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 401d96d: [ED-24188] Promoting to full schema - Codeblock & Media in Quotes
14
+
3
15
  ## 40.4.0
4
16
 
5
17
  ### Minor Changes
package/dist/cjs/index.js CHANGED
@@ -351,10 +351,10 @@ Object.defineProperty(exports, "blockquoteWithList", {
351
351
  return _schema.blockquoteWithList;
352
352
  }
353
353
  });
354
- Object.defineProperty(exports, "blockquoteWithNestedCodeblockOrMediaStage0", {
354
+ Object.defineProperty(exports, "blockquoteWithNestedCodeblockOrMedia", {
355
355
  enumerable: true,
356
356
  get: function get() {
357
- return _schema.blockquoteWithNestedCodeblockOrMediaStage0;
357
+ return _schema.blockquoteWithNestedCodeblockOrMedia;
358
358
  }
359
359
  });
360
360
  Object.defineProperty(exports, "bodiedExtension", {
@@ -561,10 +561,10 @@ Object.defineProperty(exports, "expandToJSON", {
561
561
  return _schema.expandToJSON;
562
562
  }
563
563
  });
564
- Object.defineProperty(exports, "expandWithNestedExpandStage0", {
564
+ Object.defineProperty(exports, "expandWithNestedExpand", {
565
565
  enumerable: true,
566
566
  get: function get() {
567
- return _schema.expandWithNestedExpandStage0;
567
+ return _schema.expandWithNestedExpand;
568
568
  }
569
569
  });
570
570
  Object.defineProperty(exports, "extendedPanel", {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.unsupportedInline = exports.unsupportedBlock = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panelLegacy = 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.listItemLegacy = 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.expandWithNoMark = exports.expandWithNestedExpandStage0 = 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.codeBlockWithNoMarks = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteWithNestedCodeblockOrMediaStage0 = exports.blockquoteLegacy = exports.blockquote = exports.blockCard = void 0;
6
+ exports.unsupportedInline = exports.unsupportedBlock = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panelLegacy = 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.listItemLegacy = 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.codeBlockWithNoMarks = 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
@@ -34,7 +34,7 @@ var blockCard = exports.blockCard = (0, _createPMSpecFactory.createPMNodeSpecFac
34
34
  draggable: true
35
35
  });
36
36
  var blockquote = exports.blockquote = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
37
- content: '(paragraph | orderedList | bulletList | unsupportedBlock)+',
37
+ content: '(paragraph | orderedList | bulletList | unsupportedBlock | codeBlock | mediaGroup | mediaSingle)+',
38
38
  group: 'block',
39
39
  selectable: false,
40
40
  defining: true
@@ -45,8 +45,8 @@ var blockquoteLegacy = exports.blockquoteLegacy = (0, _createPMSpecFactory.creat
45
45
  selectable: false,
46
46
  defining: true
47
47
  });
48
- var blockquoteWithNestedCodeblockOrMediaStage0 = exports.blockquoteWithNestedCodeblockOrMediaStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
49
- content: '(paragraph | orderedList | bulletList | unsupportedBlock | codeBlock | mediaGroup | mediaSingle)+',
48
+ var blockquoteWithoutNestedCodeblockOrMedia = exports.blockquoteWithoutNestedCodeblockOrMedia = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
49
+ content: '(paragraph | orderedList | bulletList | unsupportedBlock)+',
50
50
  group: 'block',
51
51
  selectable: false,
52
52
  defining: true
@@ -290,7 +290,7 @@ var emojiStage0 = exports.emojiStage0 = (0, _createPMSpecFactory.createPMNodeSpe
290
290
  selectable: true
291
291
  });
292
292
  var expand = exports.expand = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
293
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
293
+ content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
294
294
  marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
295
295
  group: 'block',
296
296
  attrs: {
@@ -304,9 +304,7 @@ var expand = exports.expand = (0, _createPMSpecFactory.createPMNodeSpecFactory)(
304
304
  selectable: true,
305
305
  isolating: true
306
306
  });
307
- var expandWithNestedExpandStage0 = exports.expandWithNestedExpandStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
308
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
309
- marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
307
+ var expandWithNoMark = exports.expandWithNoMark = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
310
308
  group: 'block',
311
309
  attrs: {
312
310
  title: {
@@ -319,7 +317,9 @@ var expandWithNestedExpandStage0 = exports.expandWithNestedExpandStage0 = (0, _c
319
317
  selectable: true,
320
318
  isolating: true
321
319
  });
322
- var expandWithNoMark = exports.expandWithNoMark = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
320
+ var expandWithoutNestedExpand = exports.expandWithoutNestedExpand = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
321
+ content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
322
+ marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
323
323
  group: 'block',
324
324
  attrs: {
325
325
  title: {
@@ -24,7 +24,7 @@ var _rule = require("../nodes/rule");
24
24
  var _table = require("../nodes/table");
25
25
  var _task = require("../nodes/task");
26
26
  var _unsupportedBlock = require("../nodes/unsupportedBlock");
27
- var blockGroup = exports.blockGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block', [_blockCard.blockCard, _codeBlock.codeBlock, _codeBlock.codeBlock.use('with_marks'), _codeBlock.codeBlock.use('with_no_marks'), _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('with_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('legacy'), _table.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('with_nested_expand'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
27
+ var blockGroup = exports.blockGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block', [_blockCard.blockCard, _codeBlock.codeBlock, _codeBlock.codeBlock.use('with_marks'), _codeBlock.codeBlock.use('with_no_marks'), _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('legacy'), _table.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], {
28
28
  // @DSLCompatibilityException
29
29
  // Block group in PM doesn't match ADF
30
30
  ignore: ['validator-spec']
@@ -17,12 +17,11 @@ var blockquote = exports.blockquote = (0, _adfSchemaGenerator.adfNode)('blockquo
17
17
  defining: true,
18
18
  selectable: false,
19
19
  marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
20
- content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _list.orderedList, _list.bulletList, _unsupportedBlock.unsupportedBlock))]
20
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _list.orderedList, _list.bulletList, _unsupportedBlock.unsupportedBlock, _codeBlock.codeBlock.use('with_no_marks'), _mediaGroup.mediaGroup, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full')))]
21
21
  }).variant('legacy', {
22
22
  ignore: ['json-schema', 'validator-spec'],
23
23
  content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph, _unsupportedBlock.unsupportedBlock))]
24
- }).variant('with_nested_codeblock_or_media', {
25
- content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _list.orderedList, _list.bulletList, _unsupportedBlock.unsupportedBlock, _codeBlock.codeBlock.use('with_no_marks'), _mediaGroup.mediaGroup, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full')))],
26
- noExtend: true,
27
- stage0: true
24
+ }).variant('without_nested_codeblock_or_media', {
25
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _list.orderedList, _list.bulletList, _unsupportedBlock.unsupportedBlock))],
26
+ ignore: ['json-schema', 'validator-spec']
28
27
  });
@@ -27,7 +27,7 @@ var expand = exports.expand = (0, _adfSchemaGenerator.adfNode)('expand').define(
27
27
  optional: true
28
28
  }
29
29
  },
30
- content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup))],
30
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup, _nestedExpand.nestedExpand.use('with_no_marks')))],
31
31
  DANGEROUS_MANUAL_OVERRIDE: {
32
32
  'validator-spec': {
33
33
  'props.attrs.optional': {
@@ -36,10 +36,9 @@ var expand = exports.expand = (0, _adfSchemaGenerator.adfNode)('expand').define(
36
36
  }
37
37
  }
38
38
  }
39
- }).variant('with_nested_expand', {
40
- content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup, _nestedExpand.nestedExpand.use('with_no_marks')))],
41
- noExtend: true,
42
- stage0: true
39
+ }).variant('without_nested_expand', {
40
+ content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup))],
41
+ ignore: ['json-schema', 'validator-spec']
43
42
  }).variant('with_breakout_mark', {
44
43
  marks: [_breakout.breakout, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
45
44
  content: [],
@@ -88,7 +88,7 @@ var nodesInOrder = [{
88
88
  spec: _nodes.heading
89
89
  }, {
90
90
  name: 'blockquote',
91
- spec: _nodes.blockquoteWithList
91
+ spec: _nodes.blockquoteWithNestedCodeblockOrMedia
92
92
  }, {
93
93
  name: 'codeBlock',
94
94
  spec: _nodes.codeBlock
@@ -175,7 +175,7 @@ var nodesInOrder = [{
175
175
  spec: _nodes.status
176
176
  }, {
177
177
  name: 'expand',
178
- spec: _nodes.expand
178
+ spec: _nodes.expandWithNestedExpand
179
179
  }, {
180
180
  name: 'nestedExpand',
181
181
  spec: _nodes.nestedExpand
@@ -26,8 +26,8 @@ var getSchemaBasedOnStage = exports.getSchemaBasedOnStage = (0, _memoizeOne.defa
26
26
  layoutSection: _nodes.layoutSectionWithSingleColumn,
27
27
  multiBodiedExtension: _nodes.multiBodiedExtension,
28
28
  extensionFrame: _nodes.extensionFrame,
29
- expand: _nodes.expandWithNestedExpandStage0,
30
- blockquote: _nodes.blockquoteWithNestedCodeblockOrMediaStage0,
29
+ expand: _nodes.expandWithNestedExpand,
30
+ blockquote: _nodes.blockquoteWithNestedCodeblockOrMedia,
31
31
  listItem: _nodes.listItemWithDecisionStage0
32
32
  };
33
33
  }
@@ -69,10 +69,10 @@ Object.defineProperty(exports, "blockquoteWithList", {
69
69
  return _nodes.blockquoteWithList;
70
70
  }
71
71
  });
72
- Object.defineProperty(exports, "blockquoteWithNestedCodeblockOrMediaStage0", {
72
+ Object.defineProperty(exports, "blockquoteWithNestedCodeblockOrMedia", {
73
73
  enumerable: true,
74
74
  get: function get() {
75
- return _nodes.blockquoteWithNestedCodeblockOrMediaStage0;
75
+ return _nodes.blockquoteWithNestedCodeblockOrMedia;
76
76
  }
77
77
  });
78
78
  Object.defineProperty(exports, "bodiedExtension", {
@@ -273,10 +273,10 @@ Object.defineProperty(exports, "expandToJSON", {
273
273
  return _nodes.expandToJSON;
274
274
  }
275
275
  });
276
- Object.defineProperty(exports, "expandWithNestedExpandStage0", {
276
+ Object.defineProperty(exports, "expandWithNestedExpand", {
277
277
  enumerable: true,
278
278
  get: function get() {
279
- return _nodes.expandWithNestedExpandStage0;
279
+ return _nodes.expandWithNestedExpand;
280
280
  }
281
281
  });
282
282
  Object.defineProperty(exports, "extendedPanel", {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.blockquoteWithNestedCodeblockOrMediaStage0 = exports.blockquoteWithList = exports.blockquote = void 0;
6
+ exports.blockquoteWithNestedCodeblockOrMedia = exports.blockquoteWithList = exports.blockquote = void 0;
7
7
  var _nodeTypes = require("../../next-schema/generated/nodeTypes");
8
8
  /**
9
9
  * @name blockquote_node
@@ -18,12 +18,12 @@ var nodeSpecOptions = {
18
18
  }
19
19
  };
20
20
  var blockquote = exports.blockquote = (0, _nodeTypes.blockquoteLegacy)(nodeSpecOptions);
21
- var blockquoteWithNestedCodeblockOrMediaStage0 = exports.blockquoteWithNestedCodeblockOrMediaStage0 = (0, _nodeTypes.blockquoteWithNestedCodeblockOrMediaStage0)(nodeSpecOptions);
21
+ var blockquoteWithNestedCodeblockOrMedia = exports.blockquoteWithNestedCodeblockOrMedia = (0, _nodeTypes.blockquote)(nodeSpecOptions);
22
22
 
23
23
  /**
24
24
  * @name blockquote_with_list_node
25
25
  */
26
- var blockquoteWithList = exports.blockquoteWithList = (0, _nodeTypes.blockquote)({
26
+ var blockquoteWithList = exports.blockquoteWithList = (0, _nodeTypes.blockquoteWithoutNestedCodeblockOrMedia)({
27
27
  parseDOM: [{
28
28
  tag: 'blockquote'
29
29
  }],
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.toJSON = exports.expandWithNestedExpandStage0 = exports.expand = void 0;
7
+ exports.toJSON = exports.expandWithNestedExpand = exports.expand = void 0;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _nodeTypes = require("../../next-schema/generated/nodeTypes");
10
10
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
@@ -60,8 +60,8 @@ var nodeSpecOptions = {
60
60
  return ['div', attrs, 0];
61
61
  }
62
62
  };
63
- var expand = exports.expand = (0, _nodeTypes.expand)(nodeSpecOptions);
64
- var expandWithNestedExpandStage0 = exports.expandWithNestedExpandStage0 = (0, _nodeTypes.expandWithNestedExpandStage0)(nodeSpecOptions);
63
+ var expand = exports.expand = (0, _nodeTypes.expandWithoutNestedExpand)(nodeSpecOptions);
64
+ var expandWithNestedExpand = exports.expandWithNestedExpand = (0, _nodeTypes.expand)(nodeSpecOptions);
65
65
  var toJSON = exports.toJSON = function toJSON(node) {
66
66
  return {
67
67
  attrs: Object.keys(node.attrs).filter(function (key) {
@@ -28,10 +28,10 @@ Object.defineProperty(exports, "blockquoteWithList", {
28
28
  return _blockquote.blockquoteWithList;
29
29
  }
30
30
  });
31
- Object.defineProperty(exports, "blockquoteWithNestedCodeblockOrMediaStage0", {
31
+ Object.defineProperty(exports, "blockquoteWithNestedCodeblockOrMedia", {
32
32
  enumerable: true,
33
33
  get: function get() {
34
- return _blockquote.blockquoteWithNestedCodeblockOrMediaStage0;
34
+ return _blockquote.blockquoteWithNestedCodeblockOrMedia;
35
35
  }
36
36
  });
37
37
  Object.defineProperty(exports, "bodiedExtension", {
@@ -148,10 +148,10 @@ Object.defineProperty(exports, "expandToJSON", {
148
148
  return _expand.toJSON;
149
149
  }
150
150
  });
151
- Object.defineProperty(exports, "expandWithNestedExpandStage0", {
151
+ Object.defineProperty(exports, "expandWithNestedExpand", {
152
152
  enumerable: true,
153
153
  get: function get() {
154
- return _expand.expandWithNestedExpandStage0;
154
+ return _expand.expandWithNestedExpand;
155
155
  }
156
156
  });
157
157
  Object.defineProperty(exports, "extendedPanel", {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.unsupportedInline = exports.unsupportedBlock = exports.underline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell_content = 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_legacy = 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_legacy = exports.listItem = exports.link_text_inline = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_comment_marker = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.inline = exports.indentation = exports.image = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = exports.formatted_text_inline = exports.extension_with_marks = exports.extensionFrame = exports.extension = exports.expand_with_no_mark = exports.expand_with_nested_expand = exports.expand_with_breakout_mark = exports.expand = exports.emoji = exports.embedCard = exports.em = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.dataConsumer = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.code_inline = exports.codeBlock_with_no_marks = exports.codeBlock_with_marks = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote_with_nested_codeblock_or_media = exports.blockquote_legacy = exports.blockquote = exports.block_content = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.atomic_inline = exports.annotation = exports.alignment = void 0;
6
+ exports.unsupportedInline = exports.unsupportedBlock = exports.underline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell_content = 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_legacy = 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_legacy = exports.listItem = exports.link_text_inline = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_comment_marker = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.inline = exports.indentation = exports.image = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = exports.formatted_text_inline = exports.extension_with_marks = exports.extensionFrame = exports.extension = exports.expand_without_nested_expand = 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.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.code_inline = exports.codeBlock_with_no_marks = exports.codeBlock_with_marks = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote_without_nested_codeblock_or_media = exports.blockquote_legacy = exports.blockquote = exports.block_content = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.atomic_inline = exports.annotation = exports.alignment = void 0;
7
7
  var blockCard = exports.blockCard = {
8
8
  props: {
9
9
  type: {
@@ -1106,49 +1106,49 @@ var orderedList = exports.orderedList = {
1106
1106
  }
1107
1107
  }
1108
1108
  };
1109
- var blockquote = exports.blockquote = {
1109
+ var mediaGroup = exports.mediaGroup = {
1110
1110
  props: {
1111
1111
  type: {
1112
1112
  type: 'enum',
1113
- values: ['blockquote']
1113
+ values: ['mediaGroup']
1114
1114
  },
1115
1115
  content: {
1116
1116
  type: 'array',
1117
- items: [['paragraph_with_no_marks', 'orderedList', 'bulletList']],
1117
+ items: ['media'],
1118
1118
  minItems: 1,
1119
1119
  allowUnsupportedBlock: true
1120
1120
  }
1121
1121
  }
1122
1122
  };
1123
- var blockquote_legacy = exports.blockquote_legacy = ['blockquote', {
1123
+ var blockquote = exports.blockquote = {
1124
1124
  props: {
1125
+ type: {
1126
+ type: 'enum',
1127
+ values: ['blockquote']
1128
+ },
1125
1129
  content: {
1126
1130
  type: 'array',
1127
- items: ['paragraph'],
1131
+ items: [['paragraph_with_no_marks', 'orderedList', 'bulletList', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full']],
1128
1132
  minItems: 1,
1129
1133
  allowUnsupportedBlock: true
1130
1134
  }
1131
1135
  }
1132
- }];
1133
- var mediaGroup = exports.mediaGroup = {
1136
+ };
1137
+ var blockquote_legacy = exports.blockquote_legacy = ['blockquote', {
1134
1138
  props: {
1135
- type: {
1136
- type: 'enum',
1137
- values: ['mediaGroup']
1138
- },
1139
1139
  content: {
1140
1140
  type: 'array',
1141
- items: ['media'],
1141
+ items: ['paragraph'],
1142
1142
  minItems: 1,
1143
1143
  allowUnsupportedBlock: true
1144
1144
  }
1145
1145
  }
1146
- };
1147
- var blockquote_with_nested_codeblock_or_media = exports.blockquote_with_nested_codeblock_or_media = ['blockquote', {
1146
+ }];
1147
+ var blockquote_without_nested_codeblock_or_media = exports.blockquote_without_nested_codeblock_or_media = ['blockquote', {
1148
1148
  props: {
1149
1149
  content: {
1150
1150
  type: 'array',
1151
- items: [['paragraph_with_no_marks', 'orderedList', 'bulletList', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full']],
1151
+ items: [['paragraph_with_no_marks', 'orderedList', 'bulletList']],
1152
1152
  minItems: 1,
1153
1153
  allowUnsupportedBlock: true
1154
1154
  }
@@ -1669,7 +1669,7 @@ var expand = exports.expand = {
1669
1669
  },
1670
1670
  content: {
1671
1671
  type: 'array',
1672
- items: ['non_nestable_block_content'],
1672
+ items: [['non_nestable_block_content', 'nestedExpand_with_no_marks']],
1673
1673
  minItems: 1,
1674
1674
  allowUnsupportedBlock: true
1675
1675
  },
@@ -1699,11 +1699,11 @@ var expand_with_breakout_mark = exports.expand_with_breakout_mark = ['expand', {
1699
1699
  }
1700
1700
  }
1701
1701
  }];
1702
- var expand_with_nested_expand = exports.expand_with_nested_expand = ['expand', {
1702
+ var expand_without_nested_expand = exports.expand_without_nested_expand = ['expand', {
1703
1703
  props: {
1704
1704
  content: {
1705
1705
  type: 'array',
1706
- items: [['non_nestable_block_content', 'nestedExpand_with_no_marks']],
1706
+ items: ['non_nestable_block_content'],
1707
1707
  minItems: 1,
1708
1708
  allowUnsupportedBlock: true
1709
1709
  }
@@ -1,5 +1,5 @@
1
- export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMediaStage0, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
2
- colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandWithNestedExpandStage0, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette } from './schema';
1
+ export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
2
+ colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandWithNestedExpand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette } from './schema';
3
3
  export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, getDarkModeLCHColor } from './utils';
4
4
 
5
5
  // ADF createPMSpecFactory
@@ -28,7 +28,7 @@ export const blockCard = createPMNodeSpecFactory({
28
28
  draggable: true
29
29
  });
30
30
  export const blockquote = createPMNodeSpecFactory({
31
- content: '(paragraph | orderedList | bulletList | unsupportedBlock)+',
31
+ content: '(paragraph | orderedList | bulletList | unsupportedBlock | codeBlock | mediaGroup | mediaSingle)+',
32
32
  group: 'block',
33
33
  selectable: false,
34
34
  defining: true
@@ -39,8 +39,8 @@ export const blockquoteLegacy = createPMNodeSpecFactory({
39
39
  selectable: false,
40
40
  defining: true
41
41
  });
42
- export const blockquoteWithNestedCodeblockOrMediaStage0 = createPMNodeSpecFactory({
43
- content: '(paragraph | orderedList | bulletList | unsupportedBlock | codeBlock | mediaGroup | mediaSingle)+',
42
+ export const blockquoteWithoutNestedCodeblockOrMedia = createPMNodeSpecFactory({
43
+ content: '(paragraph | orderedList | bulletList | unsupportedBlock)+',
44
44
  group: 'block',
45
45
  selectable: false,
46
46
  defining: true
@@ -284,7 +284,7 @@ export const emojiStage0 = createPMNodeSpecFactory({
284
284
  selectable: true
285
285
  });
286
286
  export const expand = createPMNodeSpecFactory({
287
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
287
+ content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
288
288
  marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
289
289
  group: 'block',
290
290
  attrs: {
@@ -298,9 +298,7 @@ export const expand = createPMNodeSpecFactory({
298
298
  selectable: true,
299
299
  isolating: true
300
300
  });
301
- export const expandWithNestedExpandStage0 = createPMNodeSpecFactory({
302
- content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
303
- marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
301
+ export const expandWithNoMark = createPMNodeSpecFactory({
304
302
  group: 'block',
305
303
  attrs: {
306
304
  title: {
@@ -313,7 +311,9 @@ export const expandWithNestedExpandStage0 = createPMNodeSpecFactory({
313
311
  selectable: true,
314
312
  isolating: true
315
313
  });
316
- export const expandWithNoMark = createPMNodeSpecFactory({
314
+ export const expandWithoutNestedExpand = createPMNodeSpecFactory({
315
+ content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
316
+ marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
317
317
  group: 'block',
318
318
  attrs: {
319
319
  title: {
@@ -18,7 +18,7 @@ import { rule } from '../nodes/rule';
18
18
  import { table } from '../nodes/table';
19
19
  import { taskList } from '../nodes/task';
20
20
  import { unsupportedBlock } from '../nodes/unsupportedBlock';
21
- export const blockGroup = adfNodeGroup('block', [blockCard, codeBlock, codeBlock.use('with_marks'), codeBlock.use('with_no_marks'), 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('with_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('legacy'), table, bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('with_no_mark'), expand.use('with_breakout_mark'), expand.use('with_nested_expand'), confluenceUnsupportedBlock, unsupportedBlock], {
21
+ export const blockGroup = adfNodeGroup('block', [blockCard, codeBlock, codeBlock.use('with_marks'), codeBlock.use('with_no_marks'), 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('legacy'), table, bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('with_no_mark'), expand.use('with_breakout_mark'), expand.use('without_nested_expand'), confluenceUnsupportedBlock, unsupportedBlock], {
22
22
  // @DSLCompatibilityException
23
23
  // Block group in PM doesn't match ADF
24
24
  ignore: ['validator-spec']
@@ -11,12 +11,11 @@ export const blockquote = adfNode('blockquote').define({
11
11
  defining: true,
12
12
  selectable: false,
13
13
  marks: [unsupportedMark, unsupportedNodeAttribute],
14
- content: [$onePlus($or(paragraph.use('with_no_marks'), orderedList, bulletList, unsupportedBlock))]
14
+ content: [$onePlus($or(paragraph.use('with_no_marks'), orderedList, bulletList, unsupportedBlock, codeBlock.use('with_no_marks'), mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full')))]
15
15
  }).variant('legacy', {
16
16
  ignore: ['json-schema', 'validator-spec'],
17
17
  content: [$onePlus($or(paragraph, unsupportedBlock))]
18
- }).variant('with_nested_codeblock_or_media', {
19
- content: [$onePlus($or(paragraph.use('with_no_marks'), orderedList, bulletList, unsupportedBlock, codeBlock.use('with_no_marks'), mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full')))],
20
- noExtend: true,
21
- stage0: true
18
+ }).variant('without_nested_codeblock_or_media', {
19
+ content: [$onePlus($or(paragraph.use('with_no_marks'), orderedList, bulletList, unsupportedBlock))],
20
+ ignore: ['json-schema', 'validator-spec']
22
21
  });
@@ -21,7 +21,7 @@ export const expand = adfNode('expand').define({
21
21
  optional: true
22
22
  }
23
23
  },
24
- content: [$onePlus($or(nonNestableBlockContentGroup))],
24
+ content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks')))],
25
25
  DANGEROUS_MANUAL_OVERRIDE: {
26
26
  'validator-spec': {
27
27
  'props.attrs.optional': {
@@ -30,10 +30,9 @@ export const expand = adfNode('expand').define({
30
30
  }
31
31
  }
32
32
  }
33
- }).variant('with_nested_expand', {
34
- content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks')))],
35
- noExtend: true,
36
- stage0: true
33
+ }).variant('without_nested_expand', {
34
+ content: [$onePlus($or(nonNestableBlockContentGroup))],
35
+ ignore: ['json-schema', 'validator-spec']
37
36
  }).variant('with_breakout_mark', {
38
37
  marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
39
38
  content: [],
@@ -1,7 +1,7 @@
1
1
  import { Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import { COLOR, FONT_STYLE, SEARCH_QUERY, LINK } from './groups';
3
3
  import { link, em, strong, textColor, strike, subsup, underline, code, typeAheadQuery, confluenceInlineComment, breakout, alignment, indentation, annotation, unsupportedMark, unsupportedNodeAttribute, dataConsumer, fragment, border, backgroundColor } from './marks';
4
- import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItemWithTask, heading, blockquoteWithList, codeBlock, extendedPanel, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expand, nestedExpand, embedCard, caption } from './nodes';
4
+ import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItemWithTask, heading, blockquoteWithNestedCodeblockOrMedia, codeBlock, extendedPanel, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expandWithNestedExpand, nestedExpand, embedCard, caption } from './nodes';
5
5
  function addItems(builtInItems, config, customSpecs = {}) {
6
6
  if (!config) {
7
7
  return {};
@@ -72,7 +72,7 @@ const nodesInOrder = [{
72
72
  spec: heading
73
73
  }, {
74
74
  name: 'blockquote',
75
- spec: blockquoteWithList
75
+ spec: blockquoteWithNestedCodeblockOrMedia
76
76
  }, {
77
77
  name: 'codeBlock',
78
78
  spec: codeBlock
@@ -159,7 +159,7 @@ const nodesInOrder = [{
159
159
  spec: status
160
160
  }, {
161
161
  name: 'expand',
162
- spec: expand
162
+ spec: expandWithNestedExpand
163
163
  }, {
164
164
  name: 'nestedExpand',
165
165
  spec: nestedExpand
@@ -1,5 +1,5 @@
1
1
  import memoizeOne from 'memoize-one';
2
- import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpandStage0, blockquoteWithNestedCodeblockOrMediaStage0, listItemWithDecisionStage0 } from './nodes';
2
+ import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, blockquoteWithNestedCodeblockOrMedia, listItemWithDecisionStage0 } from './nodes';
3
3
  import { createSchema } from './create-schema';
4
4
  const getDefaultSchemaConfig = () => {
5
5
  const defaultSchemaConfig = {
@@ -18,8 +18,8 @@ export const getSchemaBasedOnStage = memoizeOne((stage = 'final') => {
18
18
  layoutSection: layoutSectionWithSingleColumn,
19
19
  multiBodiedExtension: multiBodiedExtension,
20
20
  extensionFrame: extensionFrame,
21
- expand: expandWithNestedExpandStage0,
22
- blockquote: blockquoteWithNestedCodeblockOrMediaStage0,
21
+ expand: expandWithNestedExpand,
22
+ blockquote: blockquoteWithNestedCodeblockOrMedia,
23
23
  listItem: listItemWithDecisionStage0
24
24
  };
25
25
  }
@@ -1,4 +1,4 @@
1
- export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMediaStage0, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandWithNestedExpandStage0, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension } from './nodes';
1
+ export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandWithNestedExpand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension } from './nodes';
2
2
  export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
3
3
  colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, backgroundColor, backgroundColorPalette } from './marks';
4
4
  export { unsupportedNodeTypesForMediaCards } from './unsupported';
@@ -1,5 +1,5 @@
1
1
  import { blockquote as blockquoteFactory } from '../../next-schema/generated/nodeTypes';
2
- import { blockquoteLegacy as blockquoteLegacyFactory, blockquoteWithNestedCodeblockOrMediaStage0 as blockquoteWithNestedCodeblockOrMediaStage0Factory } from '../../next-schema/generated/nodeTypes';
2
+ import { blockquoteLegacy as blockquoteLegacyFactory, blockquoteWithoutNestedCodeblockOrMedia as blockquoteWithoutNestedCodeblockOrMediaFactory } from '../../next-schema/generated/nodeTypes';
3
3
 
4
4
  /**
5
5
  * @name blockquote_node
@@ -14,12 +14,12 @@ const nodeSpecOptions = {
14
14
  }
15
15
  };
16
16
  export const blockquote = blockquoteLegacyFactory(nodeSpecOptions);
17
- export const blockquoteWithNestedCodeblockOrMediaStage0 = blockquoteWithNestedCodeblockOrMediaStage0Factory(nodeSpecOptions);
17
+ export const blockquoteWithNestedCodeblockOrMedia = blockquoteFactory(nodeSpecOptions);
18
18
 
19
19
  /**
20
20
  * @name blockquote_with_list_node
21
21
  */
22
- export const blockquoteWithList = blockquoteFactory({
22
+ export const blockquoteWithList = blockquoteWithoutNestedCodeblockOrMediaFactory({
23
23
  parseDOM: [{
24
24
  tag: 'blockquote'
25
25
  }],
@@ -1,4 +1,4 @@
1
- import { expand as expandFactory, expandWithNestedExpandStage0 as expandWithNestedExpandStage0Factory } from '../../next-schema/generated/nodeTypes';
1
+ import { expandWithoutNestedExpand as expandWithoutNestedExpandFactory, expand as expandFactory } from '../../next-schema/generated/nodeTypes';
2
2
 
3
3
  /**
4
4
  * @name expand_node
@@ -51,8 +51,8 @@ const nodeSpecOptions = {
51
51
  return ['div', attrs, 0];
52
52
  }
53
53
  };
54
- export const expand = expandFactory(nodeSpecOptions);
55
- export const expandWithNestedExpandStage0 = expandWithNestedExpandStage0Factory(nodeSpecOptions);
54
+ export const expand = expandWithoutNestedExpandFactory(nodeSpecOptions);
55
+ export const expandWithNestedExpand = expandFactory(nodeSpecOptions);
56
56
  export const toJSON = node => ({
57
57
  attrs: Object.keys(node.attrs).filter(key => !key.startsWith('__')).reduce((obj, key) => {
58
58
  return {