@atlaskit/adf-schema 39.0.2 → 40.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 40.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 763da58: [ED-23275] Removing legacy panel node with extendedPanel as a replacement.
8
+
9
+ ## 39.0.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 3f37dcf: Sorting of validator spec is breaking for isTupleLike content
14
+
3
15
  ## 39.0.2
4
16
 
5
17
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -855,12 +855,6 @@ Object.defineProperty(exports, "orderedListWithOrder", {
855
855
  return _schema.orderedListWithOrder;
856
856
  }
857
857
  });
858
- Object.defineProperty(exports, "panel", {
859
- enumerable: true,
860
- get: function get() {
861
- return _schema.panel;
862
- }
863
- });
864
858
  Object.defineProperty(exports, "paragraph", {
865
859
  enumerable: true,
866
860
  get: function get() {
@@ -37,6 +37,6 @@ var _unsupportedBlock = require("../nodes/unsupportedBlock");
37
37
  * - no base heading
38
38
  * - no base expand
39
39
  */
40
- var blockContentGroup = exports.blockContentGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block_content', [_blockCard.blockCard, _blockquote.blockquote, _bodiedExtension.bodiedExtension.use('with_marks'), _list.bulletList, _codeBlock.codeBlock.use('with_no_marks'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _decisionList.decisionList, _embedCard.embedCard, _expand.expand.use('with_no_mark'), _extension.extension.use('with_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _heading.heading.use('with_no_marks'), _mediaGroup.mediaGroup, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _list.orderedList, _panel.panel, _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _paragraph.paragraph.use('with_no_marks'), _rule.rule, _table.table, _task.taskList, _unsupportedBlock.unsupportedBlock], {
40
+ 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.use('with_no_marks'), _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, _blockquote.blockquote, _extension.extension.use('with_marks'), _embedCard.embedCard, _table.table, _expand.expand.use('with_no_mark'), _bodiedExtension.bodiedExtension.use('with_marks'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
41
41
  ignore: ['pm-spec', 'json-schema']
42
42
  });
@@ -495,12 +495,6 @@ Object.defineProperty(exports, "orderedListWithOrder", {
495
495
  return _nodes.orderedListWithOrder;
496
496
  }
497
497
  });
498
- Object.defineProperty(exports, "panel", {
499
- enumerable: true,
500
- get: function get() {
501
- return _nodes.panel;
502
- }
503
- });
504
498
  Object.defineProperty(exports, "paragraph", {
505
499
  enumerable: true,
506
500
  get: function get() {
@@ -334,12 +334,6 @@ Object.defineProperty(exports, "orderedListWithOrder", {
334
334
  return _orderedList.orderedListWithOrder;
335
335
  }
336
336
  });
337
- Object.defineProperty(exports, "panel", {
338
- enumerable: true,
339
- get: function get() {
340
- return _panel.panel;
341
- }
342
- });
343
337
  Object.defineProperty(exports, "paragraph", {
344
338
  enumerable: true,
345
339
  get: function get() {
@@ -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.panel = exports.extendedPanel = exports.PanelType = void 0;
7
+ exports.extendedPanel = exports.PanelType = 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; }
@@ -49,29 +49,6 @@ var getParseDOMAttrs = function getParseDOMAttrs(allowCustomPanel, dom) {
49
49
  return parseDOMAttrs;
50
50
  };
51
51
 
52
- /**
53
- * @name panel
54
- * @deprecated [ED-23275] The panel node is deprecated. Use `extendedPanel` instead.
55
- */
56
- var panel = exports.panel = function panel(allowCustomPanel) {
57
- var panelNodeSpec = (0, _nodeTypes.panelLegacy)({
58
- parseDOM: [{
59
- tag: 'div[data-panel-type]',
60
- getAttrs: function getAttrs(dom) {
61
- return getParseDOMAttrs(allowCustomPanel, dom);
62
- }
63
- }],
64
- toDOM: function toDOM(node) {
65
- var attrs = getDomAttrs(node.attrs);
66
- var contentAttrs = {
67
- 'data-panel-content': 'true'
68
- };
69
- return ['div', attrs, ['div', contentAttrs, 0]];
70
- }
71
- });
72
- return panelNodeSpec;
73
- };
74
-
75
52
  /**
76
53
  * @name extended_panel
77
54
  * @description it allows more content to be nested as compared to panel node.
@@ -48,7 +48,7 @@ var blockCard = exports.blockCard = {
48
48
  },
49
49
  layout: {
50
50
  type: 'enum',
51
- values: ['align-end', 'align-start', 'center', 'full-width', 'wide', 'wrap-left', 'wrap-right'],
51
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start'],
52
52
  optional: true
53
53
  }
54
54
  }
@@ -173,7 +173,7 @@ var mediaSingle = exports.mediaSingle = {
173
173
  },
174
174
  layout: {
175
175
  type: 'enum',
176
- values: ['align-end', 'align-start', 'center', 'full-width', 'wide', 'wrap-left', 'wrap-right']
176
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
177
177
  },
178
178
  widthType: {
179
179
  type: 'enum',
@@ -193,7 +193,7 @@ var mediaSingle = exports.mediaSingle = {
193
193
  },
194
194
  layout: {
195
195
  type: 'enum',
196
- values: ['align-end', 'align-start', 'center', 'full-width', 'wide', 'wrap-left', 'wrap-right']
196
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
197
197
  }
198
198
  }
199
199
  }],
@@ -214,7 +214,7 @@ var media = exports.media = {
214
214
  props: {
215
215
  type: {
216
216
  type: 'enum',
217
- values: ['file', 'link']
217
+ values: ['link', 'file']
218
218
  },
219
219
  id: {
220
220
  minLength: 1,
@@ -267,7 +267,7 @@ var media = exports.media = {
267
267
  marks: {
268
268
  type: 'array',
269
269
  optional: true,
270
- items: [['annotation', 'border', 'link']]
270
+ items: [['link', 'annotation', 'border']]
271
271
  }
272
272
  },
273
273
  required: ['attrs']
@@ -402,7 +402,7 @@ var mention = exports.mention = {
402
402
  },
403
403
  userType: {
404
404
  type: 'enum',
405
- values: ['APP', 'DEFAULT', 'SPECIAL'],
405
+ values: ['DEFAULT', 'SPECIAL', 'APP'],
406
406
  optional: true
407
407
  }
408
408
  }
@@ -520,7 +520,7 @@ var status = exports.status = {
520
520
  },
521
521
  color: {
522
522
  type: 'enum',
523
- values: ['blue', 'green', 'neutral', 'purple', 'red', 'yellow']
523
+ values: ['neutral', 'purple', 'blue', 'red', 'yellow', 'green']
524
524
  },
525
525
  localId: {
526
526
  type: 'string',
@@ -544,7 +544,7 @@ var formatted_text_inline = exports.formatted_text_inline = ['text', {
544
544
  marks: {
545
545
  type: 'array',
546
546
  optional: true,
547
- items: [['annotation', 'backgroundColor', 'em', 'link', 'strike', 'strong', 'subsup', 'textColor', 'underline', null]]
547
+ items: [['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'textColor', 'annotation', 'backgroundColor', null]]
548
548
  }
549
549
  }
550
550
  }];
@@ -553,7 +553,7 @@ var code_inline = exports.code_inline = ['text', {
553
553
  marks: {
554
554
  type: 'array',
555
555
  optional: true,
556
- items: [['annotation', 'code', 'link']]
556
+ items: [['code', 'link', 'annotation']]
557
557
  }
558
558
  }
559
559
  }];
@@ -668,7 +668,7 @@ var caption = exports.caption = {
668
668
  },
669
669
  content: {
670
670
  type: 'array',
671
- items: [['code_inline', 'date', 'emoji', 'formatted_text_inline', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status']],
671
+ items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', 'formatted_text_inline', 'code_inline']],
672
672
  allowUnsupportedInline: true,
673
673
  minItems: 0
674
674
  }
@@ -679,7 +679,7 @@ var mediaSingle_caption = exports.mediaSingle_caption = ['mediaSingle', {
679
679
  content: {
680
680
  type: 'array',
681
681
  isTupleLike: true,
682
- items: ['caption', 'media'],
682
+ items: ['media', 'caption'],
683
683
  minItems: 1,
684
684
  maxItems: 2,
685
685
  allowUnsupportedBlock: true
@@ -774,7 +774,7 @@ var mediaInline = exports.mediaInline = {
774
774
  props: {
775
775
  type: {
776
776
  type: 'enum',
777
- values: ['file', 'image', 'link'],
777
+ values: ['link', 'file', 'image'],
778
778
  optional: true
779
779
  },
780
780
  id: {
@@ -810,7 +810,7 @@ var mediaInline = exports.mediaInline = {
810
810
  marks: {
811
811
  type: 'array',
812
812
  optional: true,
813
- items: [['annotation', 'border', 'link']]
813
+ items: [['link', 'annotation', 'border']]
814
814
  }
815
815
  }
816
816
  };
@@ -883,8 +883,8 @@ var confluenceUnsupportedInline = exports.confluenceUnsupportedInline = {
883
883
  }
884
884
  }
885
885
  };
886
- var atomic_inline = exports.atomic_inline = ['date', 'emoji', 'hardBreak', 'inlineCard', 'inlineExtension_with_marks', 'mediaInline', 'mention', 'placeholder', 'status'];
887
- var inline = exports.inline = ['code_inline', 'date', 'emoji', 'formatted_text_inline', 'hardBreak', 'inlineCard', 'inlineExtension_with_marks', 'mediaInline', 'mention', 'placeholder', 'status'];
886
+ var atomic_inline = exports.atomic_inline = ['hardBreak', 'mention', 'emoji', 'inlineExtension_with_marks', 'date', 'placeholder', 'inlineCard', 'status', 'mediaInline'];
887
+ var inline = exports.inline = ['formatted_text_inline', 'code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
888
888
  var paragraph = exports.paragraph = {
889
889
  props: {
890
890
  type: {
@@ -954,7 +954,7 @@ var taskItem = exports.taskItem = {
954
954
  },
955
955
  state: {
956
956
  type: 'enum',
957
- values: ['DONE', 'TODO']
957
+ values: ['TODO', 'DONE']
958
958
  }
959
959
  }
960
960
  },
@@ -993,7 +993,7 @@ var listItem_legacy = exports.listItem_legacy = ['listItem', {
993
993
  content: {
994
994
  type: 'array',
995
995
  isTupleLike: true,
996
- items: [['codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'paragraph_with_no_marks'], ['bulletList', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'orderedList', 'paragraph_with_no_marks']],
996
+ items: [['paragraph_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks'], ['paragraph_with_no_marks', 'bulletList', 'orderedList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks']],
997
997
  minItems: 1,
998
998
  allowUnsupportedBlock: true
999
999
  }
@@ -1021,7 +1021,7 @@ var listItem = exports.listItem = {
1021
1021
  content: {
1022
1022
  type: 'array',
1023
1023
  isTupleLike: true,
1024
- items: [['codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'paragraph_with_no_marks'], ['bulletList', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'orderedList', 'paragraph_with_no_marks', 'taskList']],
1024
+ items: [['paragraph_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks'], ['paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks']],
1025
1025
  minItems: 1,
1026
1026
  allowUnsupportedBlock: true
1027
1027
  }
@@ -1058,7 +1058,7 @@ var blockquote = exports.blockquote = {
1058
1058
  },
1059
1059
  content: {
1060
1060
  type: 'array',
1061
- items: [['bulletList', 'orderedList', 'paragraph_with_no_marks']],
1061
+ items: [['paragraph_with_no_marks', 'orderedList', 'bulletList']],
1062
1062
  minItems: 1,
1063
1063
  allowUnsupportedBlock: true
1064
1064
  }
@@ -1133,7 +1133,7 @@ var embedCard = exports.embedCard = {
1133
1133
  },
1134
1134
  layout: {
1135
1135
  type: 'enum',
1136
- values: ['align-end', 'align-start', 'center', 'full-width', 'wide', 'wrap-left', 'wrap-right']
1136
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
1137
1137
  },
1138
1138
  width: {
1139
1139
  type: 'number',
@@ -1179,7 +1179,7 @@ var extension = exports.extension = {
1179
1179
  },
1180
1180
  layout: {
1181
1181
  type: 'enum',
1182
- values: ['default', 'full-width', 'wide'],
1182
+ values: ['wide', 'full-width', 'default'],
1183
1183
  optional: true
1184
1184
  },
1185
1185
  localId: {
@@ -1297,7 +1297,7 @@ var panel = exports.panel = {
1297
1297
  props: {
1298
1298
  panelType: {
1299
1299
  type: 'enum',
1300
- values: ['custom', 'error', 'info', 'note', 'success', 'tip', 'warning']
1300
+ values: ['info', 'note', 'tip', 'warning', 'error', 'success', 'custom']
1301
1301
  },
1302
1302
  panelIcon: {
1303
1303
  type: 'string',
@@ -1319,7 +1319,7 @@ var panel = exports.panel = {
1319
1319
  },
1320
1320
  content: {
1321
1321
  type: 'array',
1322
- items: [['blockCard', 'bulletList', 'codeBlock_with_no_marks', 'decisionList', 'heading_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'orderedList', 'paragraph_with_no_marks', 'rule', 'taskList']],
1322
+ items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'taskList', 'rule', 'decisionList']],
1323
1323
  minItems: 1,
1324
1324
  allowUnsupportedBlock: true
1325
1325
  }
@@ -1329,7 +1329,7 @@ var panel_legacy = exports.panel_legacy = ['panel', {
1329
1329
  props: {
1330
1330
  content: {
1331
1331
  type: 'array',
1332
- items: [['blockCard', 'bulletList', 'heading_with_no_marks', 'orderedList', 'paragraph_with_no_marks']],
1332
+ items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard']],
1333
1333
  minItems: 1,
1334
1334
  allowUnsupportedBlock: true
1335
1335
  }
@@ -1337,7 +1337,7 @@ var panel_legacy = exports.panel_legacy = ['panel', {
1337
1337
  }];
1338
1338
  var nestedExpand_content = exports.nestedExpand_content = {
1339
1339
  type: 'array',
1340
- items: [['blockquote', 'bulletList', 'codeBlock_with_no_marks', 'decisionList', 'heading_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'orderedList', 'panel', 'paragraph_with_no_marks', 'rule', 'taskList']],
1340
+ items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote']],
1341
1341
  minItems: 1,
1342
1342
  allowUnsupportedBlock: true
1343
1343
  };
@@ -1511,7 +1511,7 @@ var tableHeader = exports.tableHeader = {
1511
1511
  };
1512
1512
  var tableCell_content = exports.tableCell_content = {
1513
1513
  type: 'array',
1514
- items: [['blockCard', 'blockquote', 'bulletList', 'codeBlock_with_no_marks', 'decisionList', 'embedCard', 'extension_with_marks', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'nestedExpand_with_no_marks', 'orderedList', 'panel', 'paragraph_with_alignment', 'paragraph_with_no_marks', 'rule', 'taskList']],
1514
+ items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
1515
1515
  minItems: 1,
1516
1516
  allowUnsupportedBlock: true
1517
1517
  };
@@ -1546,7 +1546,7 @@ var table = exports.table = {
1546
1546
  },
1547
1547
  layout: {
1548
1548
  type: 'enum',
1549
- values: ['align-end', 'align-start', 'center', 'default', 'full-width', 'wide'],
1549
+ values: ['wide', 'full-width', 'center', 'align-end', 'align-start', 'default'],
1550
1550
  optional: true
1551
1551
  },
1552
1552
  localId: {
@@ -1573,7 +1573,7 @@ var table = exports.table = {
1573
1573
  }
1574
1574
  }
1575
1575
  };
1576
- var non_nestable_block_content = exports.non_nestable_block_content = ['blockCard', 'blockquote', 'bulletList', 'codeBlock_with_no_marks', 'decisionList', 'embedCard', 'extension_with_marks', 'heading_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'orderedList', 'panel', 'paragraph_with_no_marks', 'rule', 'table', 'taskList'];
1576
+ var non_nestable_block_content = exports.non_nestable_block_content = ['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks'];
1577
1577
  var bodiedExtension = exports.bodiedExtension = {
1578
1578
  props: {
1579
1579
  type: {
@@ -1600,7 +1600,7 @@ var bodiedExtension = exports.bodiedExtension = {
1600
1600
  },
1601
1601
  layout: {
1602
1602
  type: 'enum',
1603
- values: ['default', 'full-width', 'wide'],
1603
+ values: ['wide', 'full-width', 'default'],
1604
1604
  optional: true
1605
1605
  },
1606
1606
  localId: {
@@ -1693,7 +1693,7 @@ var confluenceUnsupportedBlock = exports.confluenceUnsupportedBlock = {
1693
1693
  }
1694
1694
  }
1695
1695
  };
1696
- var block_content = exports.block_content = ['blockCard', 'blockquote', 'bodiedExtension_with_marks', 'bulletList', 'codeBlock_with_no_marks', 'decisionList', 'embedCard', 'expand_with_no_mark', 'extension_with_marks', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'orderedList', 'panel', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_no_marks', 'rule', 'table', 'taskList'];
1696
+ var block_content = exports.block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks'];
1697
1697
  var layoutColumn = exports.layoutColumn = {
1698
1698
  props: {
1699
1699
  type: {
@@ -1782,7 +1782,7 @@ var extensionFrame = exports.extensionFrame = {
1782
1782
  },
1783
1783
  content: {
1784
1784
  type: 'array',
1785
- items: [['blockCard', 'blockquote', 'bodiedExtension_with_marks', 'bulletList', 'codeBlock_with_no_marks', 'decisionList', 'embedCard', 'extension_with_marks', 'heading_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'orderedList', 'panel', 'paragraph_with_no_marks', 'rule', 'table', 'taskList']],
1785
+ items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_full', 'mediaSingle_caption', 'decisionList', 'taskList', 'table', 'extension_with_marks', 'bodiedExtension_with_marks', 'blockCard', 'embedCard']],
1786
1786
  minItems: 1
1787
1787
  },
1788
1788
  marks: {
@@ -1818,7 +1818,7 @@ var multiBodiedExtension = exports.multiBodiedExtension = {
1818
1818
  },
1819
1819
  layout: {
1820
1820
  type: 'enum',
1821
- values: ['default', 'full-width', 'wide'],
1821
+ values: ['default', 'wide', 'full-width'],
1822
1822
  optional: true
1823
1823
  },
1824
1824
  localId: {
@@ -1850,7 +1850,7 @@ var breakout = exports.breakout = {
1850
1850
  props: {
1851
1851
  mode: {
1852
1852
  type: 'enum',
1853
- values: ['full-width', 'wide']
1853
+ values: ['wide', 'full-width']
1854
1854
  }
1855
1855
  }
1856
1856
  }
@@ -1868,7 +1868,7 @@ var doc = exports.doc = {
1868
1868
  },
1869
1869
  content: {
1870
1870
  type: 'array',
1871
- items: [['blockCard', 'blockquote', 'bodiedExtension_with_marks', 'bulletList', 'codeBlock_with_marks', 'codeBlock_with_no_marks', 'decisionList', 'embedCard', 'expand_with_breakout_mark', 'expand_with_no_mark', 'extension_with_marks', 'heading_with_alignment', 'heading_with_indentation', 'heading_with_no_marks', 'layoutSection_full', 'layoutSection_with_single_column', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'multiBodiedExtension', 'orderedList', 'panel', 'paragraph_with_alignment', 'paragraph_with_indentation', 'paragraph_with_no_marks', 'rule', 'table', 'taskList']],
1871
+ items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks', 'codeBlock_with_marks', 'layoutSection_full', 'layoutSection_with_single_column', 'multiBodiedExtension', 'expand_with_breakout_mark']],
1872
1872
  allowUnsupportedBlock: true
1873
1873
  }
1874
1874
  }
@@ -1,6 +1,5 @@
1
1
  export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, 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, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, /** @deprecated [ED-23275] The panel node is deprecated. Use `extendedPanel` instead. */
3
- panel, 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';
2
+ colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, 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';
4
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';
5
4
 
6
5
  // ADF createPMSpecFactory
@@ -32,6 +32,6 @@ import { unsupportedBlock } from '../nodes/unsupportedBlock';
32
32
  * - no base heading
33
33
  * - no base expand
34
34
  */
35
- export const blockContentGroup = adfNodeGroup('block_content', [blockCard, blockquote, bodiedExtension.use('with_marks'), bulletList, codeBlock.use('with_no_marks'), confluenceUnsupportedBlock, decisionList, embedCard, expand.use('with_no_mark'), extension.use('with_marks'), heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full'), orderedList, panel, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), rule, table, taskList, unsupportedBlock], {
35
+ 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.use('with_no_marks'), taskList, bulletList, orderedList, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), mediaGroup, decisionList, rule, panel, blockquote, extension.use('with_marks'), embedCard, table, expand.use('with_no_mark'), bodiedExtension.use('with_marks'), confluenceUnsupportedBlock, unsupportedBlock], {
36
36
  ignore: ['pm-spec', 'json-schema']
37
37
  });
@@ -1,5 +1,4 @@
1
- export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, /** @deprecated [ED-23275] The panel node is deprecated. Use `extendedPanel` instead. */
2
- panel, 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, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, 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';
3
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. */
4
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';
5
4
  export { unsupportedNodeTypesForMediaCards } from './unsupported';
@@ -16,7 +16,7 @@ export { emoji } from './emoji';
16
16
  export { image } from './image';
17
17
  export { mention, toJSON as mentionToJSON } from './mention';
18
18
  export { listItem, listItemWithTask } from './list-item';
19
- export { panel, extendedPanel, PanelType } from './panel';
19
+ export { extendedPanel, PanelType } from './panel';
20
20
  export { text } from './text';
21
21
  export { default as unknownBlock } from './unknown-block';
22
22
  export { caption } from './caption';
@@ -1,4 +1,4 @@
1
- import { panel as panelFactory, panelLegacy as panelLegacyFactory } from '../../next-schema/generated/nodeTypes';
1
+ import { panel as panelFactory } from '../../next-schema/generated/nodeTypes';
2
2
  export let PanelType = /*#__PURE__*/function (PanelType) {
3
3
  PanelType["INFO"] = "info";
4
4
  PanelType["NOTE"] = "note";
@@ -42,27 +42,6 @@ const getParseDOMAttrs = (allowCustomPanel, dom) => {
42
42
  return parseDOMAttrs;
43
43
  };
44
44
 
45
- /**
46
- * @name panel
47
- * @deprecated [ED-23275] The panel node is deprecated. Use `extendedPanel` instead.
48
- */
49
- export const panel = allowCustomPanel => {
50
- const panelNodeSpec = panelLegacyFactory({
51
- parseDOM: [{
52
- tag: 'div[data-panel-type]',
53
- getAttrs: dom => getParseDOMAttrs(allowCustomPanel, dom)
54
- }],
55
- toDOM(node) {
56
- const attrs = getDomAttrs(node.attrs);
57
- const contentAttrs = {
58
- 'data-panel-content': 'true'
59
- };
60
- return ['div', attrs, ['div', contentAttrs, 0]];
61
- }
62
- });
63
- return panelNodeSpec;
64
- };
65
-
66
45
  /**
67
46
  * @name extended_panel
68
47
  * @description it allows more content to be nested as compared to panel node.