@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 +12 -0
- package/dist/cjs/index.js +0 -6
- package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/cjs/schema/index.js +0 -6
- package/dist/cjs/schema/nodes/index.js +0 -6
- package/dist/cjs/schema/nodes/panel.js +1 -24
- package/dist/cjs/validator-schema/generated/validatorSpec.js +34 -34
- package/dist/es2019/index.js +1 -2
- package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/es2019/schema/index.js +1 -2
- package/dist/es2019/schema/nodes/index.js +1 -1
- package/dist/es2019/schema/nodes/panel.js +1 -22
- package/dist/es2019/validator-schema/generated/validatorSpec.js +34 -34
- package/dist/esm/index.js +1 -2
- package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/esm/schema/index.js +1 -2
- package/dist/esm/schema/nodes/index.js +1 -1
- package/dist/esm/schema/nodes/panel.js +1 -24
- package/dist/esm/validator-schema/generated/validatorSpec.js +34 -34
- package/dist/types/index.d.ts +1 -3
- package/dist/types/schema/index.d.ts +1 -3
- package/dist/types/schema/nodes/index.d.ts +1 -1
- package/dist/types/schema/nodes/panel.d.ts +0 -5
- package/package.json +1 -1
- package/schema-generators/validator-full-schema.ts +1 -2
@@ -42,7 +42,7 @@ export const blockCard = {
|
|
42
42
|
},
|
43
43
|
layout: {
|
44
44
|
type: 'enum',
|
45
|
-
values: ['
|
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: ['
|
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: ['
|
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: ['
|
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: [['
|
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: ['
|
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: ['
|
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: [['
|
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: [['
|
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: [['
|
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: ['
|
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: ['
|
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: [['
|
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 = ['
|
881
|
-
export const inline = ['
|
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: ['
|
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: [['
|
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: [['
|
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: [['
|
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: ['
|
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: ['
|
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: ['
|
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: [['
|
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: [['
|
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: [['
|
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: [['
|
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: ['
|
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 = ['
|
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: ['
|
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', '
|
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: [['
|
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', '
|
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: ['
|
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', '
|
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,
|
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,
|
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
|
});
|
package/dist/esm/schema/index.js
CHANGED
@@ -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,
|
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 {
|
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
|
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.
|