@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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var confluenceUnsupportedInline = {
|
|
877
877
|
}
|
878
878
|
}
|
879
879
|
};
|
880
|
-
export var atomic_inline = ['
|
881
|
-
export var inline = ['
|
880
|
+
export var atomic_inline = ['hardBreak', 'mention', 'emoji', 'inlineExtension_with_marks', 'date', 'placeholder', 'inlineCard', 'status', 'mediaInline'];
|
881
|
+
export var inline = ['formatted_text_inline', 'code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
|
882
882
|
export var paragraph = {
|
883
883
|
props: {
|
884
884
|
type: {
|
@@ -948,7 +948,7 @@ export var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var 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 var panel_legacy = ['panel', {
|
|
1331
1331
|
}];
|
1332
1332
|
export var 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 var tableHeader = {
|
|
1505
1505
|
};
|
1506
1506
|
export var 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 var 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 var table = {
|
|
1567
1567
|
}
|
1568
1568
|
}
|
1569
1569
|
};
|
1570
|
-
export var non_nestable_block_content = ['
|
1570
|
+
export var 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 var bodiedExtension = {
|
1572
1572
|
props: {
|
1573
1573
|
type: {
|
@@ -1594,7 +1594,7 @@ export var 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 var confluenceUnsupportedBlock = {
|
|
1687
1687
|
}
|
1688
1688
|
}
|
1689
1689
|
};
|
1690
|
-
export var block_content = ['blockCard', '
|
1690
|
+
export var 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 var layoutColumn = {
|
1692
1692
|
props: {
|
1693
1693
|
type: {
|
@@ -1776,7 +1776,7 @@ export var 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 var 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 var 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 var 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/types/index.d.ts
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
|
2
2
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
|
-
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,
|
4
|
-
/** @deprecated [ED-23275] The panel node is deprecated. Use `extendedPanel` instead. */
|
5
|
-
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';
|
3
|
+
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';
|
6
4
|
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, BorderMarkAttributes, BorderMarkDefinition, MultiBodiedExtensionDefinition, ExtensionFrameDefinition, BackgroundColorDefinition, } from './schema';
|
7
5
|
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';
|
8
6
|
export type { Match, NameToEmoji } from './utils';
|
@@ -1,6 +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
|
-
/** @deprecated [ED-23275] The panel node is deprecated. Use `extendedPanel` instead. */
|
3
|
-
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';
|
4
2
|
export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, } from './nodes';
|
5
3
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
6
4
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
@@ -29,7 +29,7 @@ export { mention, toJSON as mentionToJSON } from './mention';
|
|
29
29
|
export type { MentionAttributes, UserType as MentionUserType, MentionDefinition, } from './mention';
|
30
30
|
export { listItem, listItemWithTask } from './list-item';
|
31
31
|
export type { ListItemArray, ListItemDefinition } from './types/list';
|
32
|
-
export {
|
32
|
+
export { extendedPanel, PanelType } from './panel';
|
33
33
|
export type { PanelAttributes, PanelDefinition } from './panel';
|
34
34
|
export { text } from './text';
|
35
35
|
export type { TextDefinition } from './text';
|
@@ -40,11 +40,6 @@ export interface PanelDefinition {
|
|
40
40
|
export interface DOMAttributes {
|
41
41
|
[propName: string]: string;
|
42
42
|
}
|
43
|
-
/**
|
44
|
-
* @name panel
|
45
|
-
* @deprecated [ED-23275] The panel node is deprecated. Use `extendedPanel` instead.
|
46
|
-
*/
|
47
|
-
export declare const panel: (allowCustomPanel: boolean) => import("prosemirror-model").NodeSpec;
|
48
43
|
/**
|
49
44
|
* @name extended_panel
|
50
45
|
* @description it allows more content to be nested as compared to panel node.
|
package/package.json
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
import path from 'path';
|
2
2
|
import { adfToValidatorSpec } from '@atlaskit/adf-schema-generator';
|
3
3
|
import adfNode from 'src/next-schema/full-schema.adf';
|
4
|
-
import { sortNestedArrays } from 'src/validator-schema/utils/sortNestedArrays';
|
5
4
|
import { writeToFile } from './helpers/writeToFile';
|
6
5
|
|
7
6
|
const outputPath = path.join('src', 'validator-schema', 'generated');
|
8
7
|
|
9
8
|
function generateValidatorSpec() {
|
10
|
-
const output =
|
9
|
+
const output = adfToValidatorSpec(adfNode);
|
11
10
|
return Object.entries(output)
|
12
11
|
.map(
|
13
12
|
([key, value]) => `export const ${key} = ${JSON.stringify(value.json)};`,
|