@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.
@@ -42,7 +42,7 @@ export const blockCard = {
42
42
  },
43
43
  layout: {
44
44
  type: 'enum',
45
- values: ['align-end', 'align-start', 'center', 'full-width', 'wide', 'wrap-left', 'wrap-right'],
45
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start'],
46
46
  optional: true
47
47
  }
48
48
  }
@@ -167,7 +167,7 @@ export const mediaSingle = {
167
167
  },
168
168
  layout: {
169
169
  type: 'enum',
170
- values: ['align-end', 'align-start', 'center', 'full-width', 'wide', 'wrap-left', 'wrap-right']
170
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
171
171
  },
172
172
  widthType: {
173
173
  type: 'enum',
@@ -187,7 +187,7 @@ export const mediaSingle = {
187
187
  },
188
188
  layout: {
189
189
  type: 'enum',
190
- values: ['align-end', 'align-start', 'center', 'full-width', 'wide', 'wrap-left', 'wrap-right']
190
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
191
191
  }
192
192
  }
193
193
  }],
@@ -208,7 +208,7 @@ export const media = {
208
208
  props: {
209
209
  type: {
210
210
  type: 'enum',
211
- values: ['file', 'link']
211
+ values: ['link', 'file']
212
212
  },
213
213
  id: {
214
214
  minLength: 1,
@@ -261,7 +261,7 @@ export const media = {
261
261
  marks: {
262
262
  type: 'array',
263
263
  optional: true,
264
- items: [['annotation', 'border', 'link']]
264
+ items: [['link', 'annotation', 'border']]
265
265
  }
266
266
  },
267
267
  required: ['attrs']
@@ -396,7 +396,7 @@ export const mention = {
396
396
  },
397
397
  userType: {
398
398
  type: 'enum',
399
- values: ['APP', 'DEFAULT', 'SPECIAL'],
399
+ values: ['DEFAULT', 'SPECIAL', 'APP'],
400
400
  optional: true
401
401
  }
402
402
  }
@@ -514,7 +514,7 @@ export const status = {
514
514
  },
515
515
  color: {
516
516
  type: 'enum',
517
- values: ['blue', 'green', 'neutral', 'purple', 'red', 'yellow']
517
+ values: ['neutral', 'purple', 'blue', 'red', 'yellow', 'green']
518
518
  },
519
519
  localId: {
520
520
  type: 'string',
@@ -538,7 +538,7 @@ export const formatted_text_inline = ['text', {
538
538
  marks: {
539
539
  type: 'array',
540
540
  optional: true,
541
- items: [['annotation', 'backgroundColor', 'em', 'link', 'strike', 'strong', 'subsup', 'textColor', 'underline', null]]
541
+ items: [['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'textColor', 'annotation', 'backgroundColor', null]]
542
542
  }
543
543
  }
544
544
  }];
@@ -547,7 +547,7 @@ export const code_inline = ['text', {
547
547
  marks: {
548
548
  type: 'array',
549
549
  optional: true,
550
- items: [['annotation', 'code', 'link']]
550
+ items: [['code', 'link', 'annotation']]
551
551
  }
552
552
  }
553
553
  }];
@@ -662,7 +662,7 @@ export const caption = {
662
662
  },
663
663
  content: {
664
664
  type: 'array',
665
- items: [['code_inline', 'date', 'emoji', 'formatted_text_inline', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status']],
665
+ items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', 'formatted_text_inline', 'code_inline']],
666
666
  allowUnsupportedInline: true,
667
667
  minItems: 0
668
668
  }
@@ -673,7 +673,7 @@ export const mediaSingle_caption = ['mediaSingle', {
673
673
  content: {
674
674
  type: 'array',
675
675
  isTupleLike: true,
676
- items: ['caption', 'media'],
676
+ items: ['media', 'caption'],
677
677
  minItems: 1,
678
678
  maxItems: 2,
679
679
  allowUnsupportedBlock: true
@@ -768,7 +768,7 @@ export const mediaInline = {
768
768
  props: {
769
769
  type: {
770
770
  type: 'enum',
771
- values: ['file', 'image', 'link'],
771
+ values: ['link', 'file', 'image'],
772
772
  optional: true
773
773
  },
774
774
  id: {
@@ -804,7 +804,7 @@ export const mediaInline = {
804
804
  marks: {
805
805
  type: 'array',
806
806
  optional: true,
807
- items: [['annotation', 'border', 'link']]
807
+ items: [['link', 'annotation', 'border']]
808
808
  }
809
809
  }
810
810
  };
@@ -877,8 +877,8 @@ export const confluenceUnsupportedInline = {
877
877
  }
878
878
  }
879
879
  };
880
- export const atomic_inline = ['date', 'emoji', 'hardBreak', 'inlineCard', 'inlineExtension_with_marks', 'mediaInline', 'mention', 'placeholder', 'status'];
881
- export const inline = ['code_inline', 'date', 'emoji', 'formatted_text_inline', 'hardBreak', 'inlineCard', 'inlineExtension_with_marks', 'mediaInline', 'mention', 'placeholder', 'status'];
880
+ export const atomic_inline = ['hardBreak', 'mention', 'emoji', 'inlineExtension_with_marks', 'date', 'placeholder', 'inlineCard', 'status', 'mediaInline'];
881
+ export const inline = ['formatted_text_inline', 'code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
882
882
  export const paragraph = {
883
883
  props: {
884
884
  type: {
@@ -948,7 +948,7 @@ export const taskItem = {
948
948
  },
949
949
  state: {
950
950
  type: 'enum',
951
- values: ['DONE', 'TODO']
951
+ values: ['TODO', 'DONE']
952
952
  }
953
953
  }
954
954
  },
@@ -987,7 +987,7 @@ export const listItem_legacy = ['listItem', {
987
987
  content: {
988
988
  type: 'array',
989
989
  isTupleLike: true,
990
- 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']],
990
+ 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']],
991
991
  minItems: 1,
992
992
  allowUnsupportedBlock: true
993
993
  }
@@ -1015,7 +1015,7 @@ export const listItem = {
1015
1015
  content: {
1016
1016
  type: 'array',
1017
1017
  isTupleLike: true,
1018
- 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']],
1018
+ 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']],
1019
1019
  minItems: 1,
1020
1020
  allowUnsupportedBlock: true
1021
1021
  }
@@ -1052,7 +1052,7 @@ export const blockquote = {
1052
1052
  },
1053
1053
  content: {
1054
1054
  type: 'array',
1055
- items: [['bulletList', 'orderedList', 'paragraph_with_no_marks']],
1055
+ items: [['paragraph_with_no_marks', 'orderedList', 'bulletList']],
1056
1056
  minItems: 1,
1057
1057
  allowUnsupportedBlock: true
1058
1058
  }
@@ -1127,7 +1127,7 @@ export const embedCard = {
1127
1127
  },
1128
1128
  layout: {
1129
1129
  type: 'enum',
1130
- values: ['align-end', 'align-start', 'center', 'full-width', 'wide', 'wrap-left', 'wrap-right']
1130
+ values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
1131
1131
  },
1132
1132
  width: {
1133
1133
  type: 'number',
@@ -1173,7 +1173,7 @@ export const extension = {
1173
1173
  },
1174
1174
  layout: {
1175
1175
  type: 'enum',
1176
- values: ['default', 'full-width', 'wide'],
1176
+ values: ['wide', 'full-width', 'default'],
1177
1177
  optional: true
1178
1178
  },
1179
1179
  localId: {
@@ -1291,7 +1291,7 @@ export const panel = {
1291
1291
  props: {
1292
1292
  panelType: {
1293
1293
  type: 'enum',
1294
- values: ['custom', 'error', 'info', 'note', 'success', 'tip', 'warning']
1294
+ values: ['info', 'note', 'tip', 'warning', 'error', 'success', 'custom']
1295
1295
  },
1296
1296
  panelIcon: {
1297
1297
  type: 'string',
@@ -1313,7 +1313,7 @@ export const panel = {
1313
1313
  },
1314
1314
  content: {
1315
1315
  type: 'array',
1316
- items: [['blockCard', 'bulletList', 'codeBlock_with_no_marks', 'decisionList', 'heading_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'orderedList', 'paragraph_with_no_marks', 'rule', 'taskList']],
1316
+ items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'taskList', 'rule', 'decisionList']],
1317
1317
  minItems: 1,
1318
1318
  allowUnsupportedBlock: true
1319
1319
  }
@@ -1323,7 +1323,7 @@ export const panel_legacy = ['panel', {
1323
1323
  props: {
1324
1324
  content: {
1325
1325
  type: 'array',
1326
- items: [['blockCard', 'bulletList', 'heading_with_no_marks', 'orderedList', 'paragraph_with_no_marks']],
1326
+ items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard']],
1327
1327
  minItems: 1,
1328
1328
  allowUnsupportedBlock: true
1329
1329
  }
@@ -1331,7 +1331,7 @@ export const panel_legacy = ['panel', {
1331
1331
  }];
1332
1332
  export const nestedExpand_content = {
1333
1333
  type: 'array',
1334
- 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']],
1334
+ 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']],
1335
1335
  minItems: 1,
1336
1336
  allowUnsupportedBlock: true
1337
1337
  };
@@ -1505,7 +1505,7 @@ export const tableHeader = {
1505
1505
  };
1506
1506
  export const tableCell_content = {
1507
1507
  type: 'array',
1508
- 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']],
1508
+ 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']],
1509
1509
  minItems: 1,
1510
1510
  allowUnsupportedBlock: true
1511
1511
  };
@@ -1540,7 +1540,7 @@ export const table = {
1540
1540
  },
1541
1541
  layout: {
1542
1542
  type: 'enum',
1543
- values: ['align-end', 'align-start', 'center', 'default', 'full-width', 'wide'],
1543
+ values: ['wide', 'full-width', 'center', 'align-end', 'align-start', 'default'],
1544
1544
  optional: true
1545
1545
  },
1546
1546
  localId: {
@@ -1567,7 +1567,7 @@ export const table = {
1567
1567
  }
1568
1568
  }
1569
1569
  };
1570
- export const 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'];
1570
+ export const 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'];
1571
1571
  export const bodiedExtension = {
1572
1572
  props: {
1573
1573
  type: {
@@ -1594,7 +1594,7 @@ export const bodiedExtension = {
1594
1594
  },
1595
1595
  layout: {
1596
1596
  type: 'enum',
1597
- values: ['default', 'full-width', 'wide'],
1597
+ values: ['wide', 'full-width', 'default'],
1598
1598
  optional: true
1599
1599
  },
1600
1600
  localId: {
@@ -1687,7 +1687,7 @@ export const confluenceUnsupportedBlock = {
1687
1687
  }
1688
1688
  }
1689
1689
  };
1690
- export const 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'];
1690
+ export const 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'];
1691
1691
  export const layoutColumn = {
1692
1692
  props: {
1693
1693
  type: {
@@ -1776,7 +1776,7 @@ export const extensionFrame = {
1776
1776
  },
1777
1777
  content: {
1778
1778
  type: 'array',
1779
- 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']],
1779
+ 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']],
1780
1780
  minItems: 1
1781
1781
  },
1782
1782
  marks: {
@@ -1812,7 +1812,7 @@ export const multiBodiedExtension = {
1812
1812
  },
1813
1813
  layout: {
1814
1814
  type: 'enum',
1815
- values: ['default', 'full-width', 'wide'],
1815
+ values: ['default', 'wide', 'full-width'],
1816
1816
  optional: true
1817
1817
  },
1818
1818
  localId: {
@@ -1844,7 +1844,7 @@ export const breakout = {
1844
1844
  props: {
1845
1845
  mode: {
1846
1846
  type: 'enum',
1847
- values: ['full-width', 'wide']
1847
+ values: ['wide', 'full-width']
1848
1848
  }
1849
1849
  }
1850
1850
  }
@@ -1862,7 +1862,7 @@ export const doc = {
1862
1862
  },
1863
1863
  content: {
1864
1864
  type: 'array',
1865
- 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']],
1865
+ 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']],
1866
1866
  allowUnsupportedBlock: true
1867
1867
  }
1868
1868
  }
package/dist/esm/index.js CHANGED
@@ -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 var 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 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.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,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  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; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
- import { panel as panelFactory, panelLegacy as panelLegacyFactory } from '../../next-schema/generated/nodeTypes';
4
+ import { panel as panelFactory } from '../../next-schema/generated/nodeTypes';
5
5
  export var PanelType = /*#__PURE__*/function (PanelType) {
6
6
  PanelType["INFO"] = "info";
7
7
  PanelType["NOTE"] = "note";
@@ -44,29 +44,6 @@ var getParseDOMAttrs = function getParseDOMAttrs(allowCustomPanel, dom) {
44
44
  return parseDOMAttrs;
45
45
  };
46
46
 
47
- /**
48
- * @name panel
49
- * @deprecated [ED-23275] The panel node is deprecated. Use `extendedPanel` instead.
50
- */
51
- export var panel = function panel(allowCustomPanel) {
52
- var panelNodeSpec = panelLegacyFactory({
53
- parseDOM: [{
54
- tag: 'div[data-panel-type]',
55
- getAttrs: function getAttrs(dom) {
56
- return getParseDOMAttrs(allowCustomPanel, dom);
57
- }
58
- }],
59
- toDOM: function toDOM(node) {
60
- var attrs = getDomAttrs(node.attrs);
61
- var contentAttrs = {
62
- 'data-panel-content': 'true'
63
- };
64
- return ['div', attrs, ['div', contentAttrs, 0]];
65
- }
66
- });
67
- return panelNodeSpec;
68
- };
69
-
70
47
  /**
71
48
  * @name extended_panel
72
49
  * @description it allows more content to be nested as compared to panel node.