@atlaskit/adf-schema 40.5.0 → 40.7.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 +8 -2
- package/dist/cjs/next-schema/generated/nodeTypes.js +29 -6
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/expand.js +4 -5
- package/dist/cjs/next-schema/nodes/panel.js +5 -0
- package/dist/cjs/schema/create-schema.js +1 -1
- package/dist/cjs/schema/default-schema.js +3 -2
- package/dist/cjs/schema/index.js +8 -2
- package/dist/cjs/schema/nodes/expand.js +3 -3
- package/dist/cjs/schema/nodes/index.js +8 -2
- package/dist/cjs/schema/nodes/panel.js +19 -1
- package/dist/cjs/validator-schema/generated/validatorSpec.js +15 -4
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +28 -5
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/expand.js +4 -5
- package/dist/es2019/next-schema/nodes/panel.js +5 -0
- package/dist/es2019/schema/create-schema.js +2 -2
- package/dist/es2019/schema/default-schema.js +4 -3
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/expand.js +3 -3
- package/dist/es2019/schema/nodes/index.js +2 -2
- package/dist/es2019/schema/nodes/panel.js +17 -1
- package/dist/es2019/validator-schema/generated/validatorSpec.js +13 -3
- package/dist/esm/index.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +28 -5
- package/dist/esm/next-schema/groups/blockGroup.js +1 -1
- package/dist/esm/next-schema/nodes/expand.js +4 -5
- package/dist/esm/next-schema/nodes/panel.js +5 -0
- package/dist/esm/schema/create-schema.js +2 -2
- package/dist/esm/schema/default-schema.js +4 -3
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/expand.js +3 -3
- package/dist/esm/schema/nodes/index.js +2 -2
- package/dist/esm/schema/nodes/panel.js +19 -1
- package/dist/esm/validator-schema/generated/validatorSpec.js +13 -3
- package/dist/json-schema/v1/full.json +8 -1
- package/dist/json-schema/v1/stage-0.json +101 -40
- package/dist/types/index.d.ts +1 -1
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +23 -9
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +5 -1
- package/dist/types/next-schema/nodes/expand.d.ts +2 -3
- package/dist/types/next-schema/nodes/panel.d.ts +5 -1
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/expand.d.ts +1 -1
- package/dist/types/schema/nodes/index.d.ts +2 -2
- package/dist/types/schema/nodes/panel.d.ts +1 -0
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +13 -3
- package/json-schema/v1/full.json +8 -1
- package/json-schema/v1/stage-0.json +101 -40
- package/package.json +2 -2
@@ -1350,6 +1350,16 @@ export const panel_legacy = ['panel', {
|
|
1350
1350
|
}
|
1351
1351
|
}
|
1352
1352
|
}];
|
1353
|
+
export const panel_with_nested_blockquote = ['panel', {
|
1354
|
+
props: {
|
1355
|
+
content: {
|
1356
|
+
type: 'array',
|
1357
|
+
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'taskList', 'rule', 'decisionList', 'blockquote']],
|
1358
|
+
minItems: 1,
|
1359
|
+
allowUnsupportedBlock: true
|
1360
|
+
}
|
1361
|
+
}
|
1362
|
+
}];
|
1353
1363
|
export const nestedExpand_content = {
|
1354
1364
|
type: 'array',
|
1355
1365
|
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']],
|
@@ -1663,7 +1673,7 @@ export const expand = {
|
|
1663
1673
|
},
|
1664
1674
|
content: {
|
1665
1675
|
type: 'array',
|
1666
|
-
items: ['non_nestable_block_content'],
|
1676
|
+
items: [['non_nestable_block_content', 'nestedExpand_with_no_marks']],
|
1667
1677
|
minItems: 1,
|
1668
1678
|
allowUnsupportedBlock: true
|
1669
1679
|
},
|
@@ -1693,11 +1703,11 @@ export const expand_with_breakout_mark = ['expand', {
|
|
1693
1703
|
}
|
1694
1704
|
}
|
1695
1705
|
}];
|
1696
|
-
export const
|
1706
|
+
export const expand_without_nested_expand = ['expand', {
|
1697
1707
|
props: {
|
1698
1708
|
content: {
|
1699
1709
|
type: 'array',
|
1700
|
-
items: [
|
1710
|
+
items: ['non_nestable_block_content'],
|
1701
1711
|
minItems: 1,
|
1702
1712
|
allowUnsupportedBlock: true
|
1703
1713
|
}
|
package/dist/esm/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
2
|
-
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand,
|
2
|
+
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandWithNestedExpand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithBlockquoteStage0, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette } from './schema';
|
3
3
|
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, getDarkModeLCHColor } from './utils';
|
4
4
|
|
5
5
|
// ADF createPMSpecFactory
|
@@ -284,7 +284,7 @@ export var emojiStage0 = createPMNodeSpecFactory({
|
|
284
284
|
selectable: true
|
285
285
|
});
|
286
286
|
export var expand = createPMNodeSpecFactory({
|
287
|
-
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
|
287
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
|
288
288
|
marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
|
289
289
|
group: 'block',
|
290
290
|
attrs: {
|
@@ -298,9 +298,7 @@ export var expand = createPMNodeSpecFactory({
|
|
298
298
|
selectable: true,
|
299
299
|
isolating: true
|
300
300
|
});
|
301
|
-
export var
|
302
|
-
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
|
303
|
-
marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
|
301
|
+
export var expandWithNoMark = createPMNodeSpecFactory({
|
304
302
|
group: 'block',
|
305
303
|
attrs: {
|
306
304
|
title: {
|
@@ -313,7 +311,9 @@ export var expandWithNestedExpandStage0 = createPMNodeSpecFactory({
|
|
313
311
|
selectable: true,
|
314
312
|
isolating: true
|
315
313
|
});
|
316
|
-
export var
|
314
|
+
export var expandWithoutNestedExpand = createPMNodeSpecFactory({
|
315
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock)+',
|
316
|
+
marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
|
317
317
|
group: 'block',
|
318
318
|
attrs: {
|
319
319
|
title: {
|
@@ -903,6 +903,29 @@ export var panelLegacy = createPMNodeSpecFactory({
|
|
903
903
|
},
|
904
904
|
selectable: true
|
905
905
|
});
|
906
|
+
export var panelWithNestedBlockquoteStage0 = createPMNodeSpecFactory({
|
907
|
+
content: '(paragraph | heading | bulletList | orderedList | blockCard | mediaGroup | mediaSingle | codeBlock | taskList | rule | decisionList | unsupportedBlock | blockquote)+',
|
908
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
909
|
+
group: 'block',
|
910
|
+
attrs: {
|
911
|
+
panelType: {
|
912
|
+
default: 'info'
|
913
|
+
},
|
914
|
+
panelIcon: {
|
915
|
+
default: null
|
916
|
+
},
|
917
|
+
panelIconId: {
|
918
|
+
default: null
|
919
|
+
},
|
920
|
+
panelIconText: {
|
921
|
+
default: null
|
922
|
+
},
|
923
|
+
panelColor: {
|
924
|
+
default: null
|
925
|
+
}
|
926
|
+
},
|
927
|
+
selectable: true
|
928
|
+
});
|
906
929
|
export var paragraph = createPMNodeSpecFactory({
|
907
930
|
content: 'inline*',
|
908
931
|
marks: 'link em strong strike subsup underline textColor annotation backgroundColor typeAheadQuery confluenceInlineComment unsupportedNodeAttribute unsupportedMark code dataConsumer fragment border',
|
@@ -18,7 +18,7 @@ import { rule } from '../nodes/rule';
|
|
18
18
|
import { table } from '../nodes/table';
|
19
19
|
import { taskList } from '../nodes/task';
|
20
20
|
import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
21
|
-
export var blockGroup = adfNodeGroup('block', [blockCard, codeBlock, codeBlock.use('with_marks'), codeBlock.use('with_no_marks'), mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), taskList, orderedList, bulletList, blockquote, blockquote.use('legacy'), blockquote.use('without_nested_codeblock_or_media'), decisionList, embedCard, extension, extension.use('with_marks'), heading, heading.use('with_indentation'), heading.use('with_no_marks'), heading.use('with_alignment'), mediaGroup, rule, panel, panel.use('legacy'), table, bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('with_no_mark'), expand.use('with_breakout_mark'), expand.use('
|
21
|
+
export var blockGroup = adfNodeGroup('block', [blockCard, codeBlock, codeBlock.use('with_marks'), codeBlock.use('with_no_marks'), mediaSingle, mediaSingle.use('caption'), mediaSingle.use('full'), mediaSingle.use('width_type'), paragraph, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), taskList, orderedList, bulletList, blockquote, blockquote.use('legacy'), blockquote.use('without_nested_codeblock_or_media'), decisionList, embedCard, extension, extension.use('with_marks'), heading, heading.use('with_indentation'), heading.use('with_no_marks'), heading.use('with_alignment'), mediaGroup, rule, panel, panel.use('legacy'), panel.use('with_nested_blockquote'), table, bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('with_no_mark'), expand.use('with_breakout_mark'), expand.use('without_nested_expand'), confluenceUnsupportedBlock, unsupportedBlock], {
|
22
22
|
// @DSLCompatibilityException
|
23
23
|
// Block group in PM doesn't match ADF
|
24
24
|
ignore: ['validator-spec']
|
@@ -21,7 +21,7 @@ export var expand = adfNode('expand').define({
|
|
21
21
|
optional: true
|
22
22
|
}
|
23
23
|
},
|
24
|
-
content: [$onePlus($or(nonNestableBlockContentGroup))],
|
24
|
+
content: [$onePlus($or(nonNestableBlockContentGroup, nestedExpand.use('with_no_marks')))],
|
25
25
|
DANGEROUS_MANUAL_OVERRIDE: {
|
26
26
|
'validator-spec': {
|
27
27
|
'props.attrs.optional': {
|
@@ -30,10 +30,9 @@ export var expand = adfNode('expand').define({
|
|
30
30
|
}
|
31
31
|
}
|
32
32
|
}
|
33
|
-
}).variant('
|
34
|
-
content: [$onePlus($or(nonNestableBlockContentGroup
|
35
|
-
|
36
|
-
stage0: true
|
33
|
+
}).variant('without_nested_expand', {
|
34
|
+
content: [$onePlus($or(nonNestableBlockContentGroup))],
|
35
|
+
ignore: ['json-schema', 'validator-spec']
|
37
36
|
}).variant('with_breakout_mark', {
|
38
37
|
marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
|
39
38
|
content: [],
|
@@ -12,6 +12,7 @@ import { paragraph } from './paragraph';
|
|
12
12
|
import { rule } from './rule';
|
13
13
|
import { taskList } from './task';
|
14
14
|
import { unsupportedBlock } from './unsupportedBlock';
|
15
|
+
import { blockquote } from './blockquote';
|
15
16
|
export var panel = adfNode('panel').define({
|
16
17
|
selectable: true,
|
17
18
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
@@ -46,4 +47,8 @@ export var panel = adfNode('panel').define({
|
|
46
47
|
}).variant('legacy', {
|
47
48
|
content: [$onePlus($or(paragraph.use('with_no_marks'), heading.use('with_no_marks'), bulletList, orderedList, blockCard, unsupportedBlock))],
|
48
49
|
ignore: ['json-schema', 'validator-spec']
|
50
|
+
}).variant('with_nested_blockquote', {
|
51
|
+
content: [$onePlus($or(paragraph.use('with_no_marks'), heading.use('with_no_marks'), bulletList, orderedList, blockCard, mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), taskList, rule, decisionList, unsupportedBlock, blockquote))],
|
52
|
+
noExtend: true,
|
53
|
+
stage0: true
|
49
54
|
});
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
4
4
|
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
5
5
|
import { COLOR, FONT_STYLE, SEARCH_QUERY, LINK } from './groups';
|
6
6
|
import { link, em, strong, textColor, strike, subsup, underline, code, typeAheadQuery, confluenceInlineComment, breakout, alignment, indentation, annotation, unsupportedMark, unsupportedNodeAttribute, dataConsumer, fragment, border, backgroundColor } from './marks';
|
7
|
-
import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItemWithTask, heading, blockquoteWithNestedCodeblockOrMedia, codeBlock, extendedPanel, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status,
|
7
|
+
import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItemWithTask, heading, blockquoteWithNestedCodeblockOrMedia, codeBlock, extendedPanel, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expandWithNestedExpand, nestedExpand, embedCard, caption } from './nodes';
|
8
8
|
function addItems(builtInItems, config) {
|
9
9
|
var customSpecs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
10
10
|
if (!config) {
|
@@ -164,7 +164,7 @@ var nodesInOrder = [{
|
|
164
164
|
spec: status
|
165
165
|
}, {
|
166
166
|
name: 'expand',
|
167
|
-
spec:
|
167
|
+
spec: expandWithNestedExpand
|
168
168
|
}, {
|
169
169
|
name: 'nestedExpand',
|
170
170
|
spec: nestedExpand
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
2
|
-
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension,
|
2
|
+
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpand, blockquoteWithNestedCodeblockOrMedia, listItemWithDecisionStage0, panelWithBlockquoteStage0 } from './nodes';
|
3
3
|
import { createSchema } from './create-schema';
|
4
4
|
var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
|
5
5
|
var defaultSchemaConfig = {
|
@@ -19,9 +19,10 @@ export var getSchemaBasedOnStage = memoizeOne(function () {
|
|
19
19
|
layoutSection: layoutSectionWithSingleColumn,
|
20
20
|
multiBodiedExtension: multiBodiedExtension,
|
21
21
|
extensionFrame: extensionFrame,
|
22
|
-
expand:
|
22
|
+
expand: expandWithNestedExpand,
|
23
23
|
blockquote: blockquoteWithNestedCodeblockOrMedia,
|
24
|
-
listItem: listItemWithDecisionStage0
|
24
|
+
listItem: listItemWithDecisionStage0,
|
25
|
+
panel: panelWithBlockquoteStage0(true)
|
25
26
|
};
|
26
27
|
}
|
27
28
|
return createSchema(defaultSchemaConfig);
|
package/dist/esm/schema/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand,
|
1
|
+
export { PanelType, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandWithNestedExpand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithBlockquoteStage0, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension } from './nodes';
|
2
2
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
3
|
colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, backgroundColor, backgroundColorPalette } from './marks';
|
4
4
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
@@ -1,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 {
|
4
|
+
import { expandWithoutNestedExpand as expandWithoutNestedExpandFactory, expand as expandFactory } from '../../next-schema/generated/nodeTypes';
|
5
5
|
|
6
6
|
/**
|
7
7
|
* @name expand_node
|
@@ -54,8 +54,8 @@ var nodeSpecOptions = {
|
|
54
54
|
return ['div', attrs, 0];
|
55
55
|
}
|
56
56
|
};
|
57
|
-
export var expand =
|
58
|
-
export var
|
57
|
+
export var expand = expandWithoutNestedExpandFactory(nodeSpecOptions);
|
58
|
+
export var expandWithNestedExpand = expandFactory(nodeSpecOptions);
|
59
59
|
export var toJSON = function toJSON(node) {
|
60
60
|
return {
|
61
61
|
attrs: Object.keys(node.attrs).filter(function (key) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { expand,
|
1
|
+
export { expand, expandWithNestedExpand, toJSON as expandToJSON } from './expand';
|
2
2
|
export { confluenceJiraIssue } from './confluence-jira-issue';
|
3
3
|
export { confluenceUnsupportedBlock } from './confluence-unsupported-block';
|
4
4
|
export { confluenceUnsupportedInline } from './confluence-unsupported-inline';
|
@@ -15,7 +15,7 @@ export { emoji } from './emoji';
|
|
15
15
|
export { image } from './image';
|
16
16
|
export { mention, toJSON as mentionToJSON } from './mention';
|
17
17
|
export { listItem, listItemWithTask, listItemWithDecisionStage0 } from './list-item';
|
18
|
-
export { extendedPanel, PanelType } from './panel';
|
18
|
+
export { extendedPanel, PanelType, panelWithBlockquoteStage0 } from './panel';
|
19
19
|
export { text } from './text';
|
20
20
|
export { default as unknownBlock } from './unknown-block';
|
21
21
|
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 } from '../../next-schema/generated/nodeTypes';
|
4
|
+
import { panel as panelFactory, panelWithNestedBlockquoteStage0 as panelWithNestedBlockquoteStage0Factory } from '../../next-schema/generated/nodeTypes';
|
5
5
|
export var PanelType = /*#__PURE__*/function (PanelType) {
|
6
6
|
PanelType["INFO"] = "info";
|
7
7
|
PanelType["NOTE"] = "note";
|
@@ -67,4 +67,22 @@ export var extendedPanel = function extendedPanel(allowCustomPanel) {
|
|
67
67
|
}
|
68
68
|
});
|
69
69
|
return panelNodeSpec;
|
70
|
+
};
|
71
|
+
export var panelWithBlockquoteStage0 = function panelWithBlockquoteStage0(allowCustomPanel) {
|
72
|
+
var panelNodeSpec = panelWithNestedBlockquoteStage0Factory({
|
73
|
+
parseDOM: [{
|
74
|
+
tag: 'div[data-panel-type]',
|
75
|
+
getAttrs: function getAttrs(dom) {
|
76
|
+
return getParseDOMAttrs(allowCustomPanel, dom);
|
77
|
+
}
|
78
|
+
}],
|
79
|
+
toDOM: function toDOM(node) {
|
80
|
+
var attrs = getDomAttrs(node.attrs);
|
81
|
+
var contentAttrs = {
|
82
|
+
'data-panel-content': 'true'
|
83
|
+
};
|
84
|
+
return ['div', attrs, ['div', contentAttrs, 0]];
|
85
|
+
}
|
86
|
+
});
|
87
|
+
return panelNodeSpec;
|
70
88
|
};
|
@@ -1350,6 +1350,16 @@ export var panel_legacy = ['panel', {
|
|
1350
1350
|
}
|
1351
1351
|
}
|
1352
1352
|
}];
|
1353
|
+
export var panel_with_nested_blockquote = ['panel', {
|
1354
|
+
props: {
|
1355
|
+
content: {
|
1356
|
+
type: 'array',
|
1357
|
+
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'bulletList', 'orderedList', 'blockCard', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'taskList', 'rule', 'decisionList', 'blockquote']],
|
1358
|
+
minItems: 1,
|
1359
|
+
allowUnsupportedBlock: true
|
1360
|
+
}
|
1361
|
+
}
|
1362
|
+
}];
|
1353
1363
|
export var nestedExpand_content = {
|
1354
1364
|
type: 'array',
|
1355
1365
|
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']],
|
@@ -1663,7 +1673,7 @@ export var expand = {
|
|
1663
1673
|
},
|
1664
1674
|
content: {
|
1665
1675
|
type: 'array',
|
1666
|
-
items: ['non_nestable_block_content'],
|
1676
|
+
items: [['non_nestable_block_content', 'nestedExpand_with_no_marks']],
|
1667
1677
|
minItems: 1,
|
1668
1678
|
allowUnsupportedBlock: true
|
1669
1679
|
},
|
@@ -1693,11 +1703,11 @@ export var expand_with_breakout_mark = ['expand', {
|
|
1693
1703
|
}
|
1694
1704
|
}
|
1695
1705
|
}];
|
1696
|
-
export var
|
1706
|
+
export var expand_without_nested_expand = ['expand', {
|
1697
1707
|
props: {
|
1698
1708
|
content: {
|
1699
1709
|
type: 'array',
|
1700
|
-
items: [
|
1710
|
+
items: ['non_nestable_block_content'],
|
1701
1711
|
minItems: 1,
|
1702
1712
|
allowUnsupportedBlock: true
|
1703
1713
|
}
|
@@ -2241,7 +2241,14 @@
|
|
2241
2241
|
"content": {
|
2242
2242
|
"type": "array",
|
2243
2243
|
"items": {
|
2244
|
-
"
|
2244
|
+
"anyOf": [
|
2245
|
+
{
|
2246
|
+
"$ref": "#/definitions/non_nestable_block_content"
|
2247
|
+
},
|
2248
|
+
{
|
2249
|
+
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
2250
|
+
}
|
2251
|
+
]
|
2245
2252
|
},
|
2246
2253
|
"minItems": 1
|
2247
2254
|
}
|
@@ -1903,6 +1903,93 @@
|
|
1903
1903
|
"additionalProperties": false,
|
1904
1904
|
"required": ["type", "attrs", "content"]
|
1905
1905
|
},
|
1906
|
+
"panel_with_nested_blockquote_node": {
|
1907
|
+
"type": "object",
|
1908
|
+
"properties": {
|
1909
|
+
"type": {
|
1910
|
+
"enum": ["panel"]
|
1911
|
+
},
|
1912
|
+
"attrs": {
|
1913
|
+
"type": "object",
|
1914
|
+
"properties": {
|
1915
|
+
"panelType": {
|
1916
|
+
"enum": [
|
1917
|
+
"info",
|
1918
|
+
"note",
|
1919
|
+
"tip",
|
1920
|
+
"warning",
|
1921
|
+
"error",
|
1922
|
+
"success",
|
1923
|
+
"custom"
|
1924
|
+
]
|
1925
|
+
},
|
1926
|
+
"panelIcon": {
|
1927
|
+
"type": "string"
|
1928
|
+
},
|
1929
|
+
"panelIconId": {
|
1930
|
+
"type": "string"
|
1931
|
+
},
|
1932
|
+
"panelIconText": {
|
1933
|
+
"type": "string"
|
1934
|
+
},
|
1935
|
+
"panelColor": {
|
1936
|
+
"type": "string"
|
1937
|
+
}
|
1938
|
+
},
|
1939
|
+
"required": ["panelType"],
|
1940
|
+
"additionalProperties": false
|
1941
|
+
},
|
1942
|
+
"content": {
|
1943
|
+
"type": "array",
|
1944
|
+
"items": {
|
1945
|
+
"anyOf": [
|
1946
|
+
{
|
1947
|
+
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
1948
|
+
},
|
1949
|
+
{
|
1950
|
+
"$ref": "#/definitions/heading_with_no_marks_node"
|
1951
|
+
},
|
1952
|
+
{
|
1953
|
+
"$ref": "#/definitions/bulletList_node"
|
1954
|
+
},
|
1955
|
+
{
|
1956
|
+
"$ref": "#/definitions/orderedList_node"
|
1957
|
+
},
|
1958
|
+
{
|
1959
|
+
"$ref": "#/definitions/blockCard_node"
|
1960
|
+
},
|
1961
|
+
{
|
1962
|
+
"$ref": "#/definitions/mediaGroup_node"
|
1963
|
+
},
|
1964
|
+
{
|
1965
|
+
"$ref": "#/definitions/mediaSingle_caption_node"
|
1966
|
+
},
|
1967
|
+
{
|
1968
|
+
"$ref": "#/definitions/mediaSingle_full_node"
|
1969
|
+
},
|
1970
|
+
{
|
1971
|
+
"$ref": "#/definitions/codeBlock_with_no_marks_node"
|
1972
|
+
},
|
1973
|
+
{
|
1974
|
+
"$ref": "#/definitions/taskList_node"
|
1975
|
+
},
|
1976
|
+
{
|
1977
|
+
"$ref": "#/definitions/rule_node"
|
1978
|
+
},
|
1979
|
+
{
|
1980
|
+
"$ref": "#/definitions/decisionList_node"
|
1981
|
+
},
|
1982
|
+
{
|
1983
|
+
"$ref": "#/definitions/blockquote_node"
|
1984
|
+
}
|
1985
|
+
]
|
1986
|
+
},
|
1987
|
+
"minItems": 1
|
1988
|
+
}
|
1989
|
+
},
|
1990
|
+
"additionalProperties": false,
|
1991
|
+
"required": ["type", "attrs", "content"]
|
1992
|
+
},
|
1906
1993
|
"nestedExpand_content": {
|
1907
1994
|
"type": "array",
|
1908
1995
|
"items": {
|
@@ -2348,7 +2435,14 @@
|
|
2348
2435
|
"content": {
|
2349
2436
|
"type": "array",
|
2350
2437
|
"items": {
|
2351
|
-
"
|
2438
|
+
"anyOf": [
|
2439
|
+
{
|
2440
|
+
"$ref": "#/definitions/non_nestable_block_content"
|
2441
|
+
},
|
2442
|
+
{
|
2443
|
+
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
2444
|
+
}
|
2445
|
+
]
|
2352
2446
|
},
|
2353
2447
|
"minItems": 1
|
2354
2448
|
}
|
@@ -2392,39 +2486,6 @@
|
|
2392
2486
|
}
|
2393
2487
|
]
|
2394
2488
|
},
|
2395
|
-
"expand_with_nested_expand_node": {
|
2396
|
-
"type": "object",
|
2397
|
-
"properties": {
|
2398
|
-
"type": {
|
2399
|
-
"enum": ["expand"]
|
2400
|
-
},
|
2401
|
-
"attrs": {
|
2402
|
-
"type": "object",
|
2403
|
-
"properties": {
|
2404
|
-
"title": {
|
2405
|
-
"type": "string"
|
2406
|
-
}
|
2407
|
-
},
|
2408
|
-
"additionalProperties": false
|
2409
|
-
},
|
2410
|
-
"content": {
|
2411
|
-
"type": "array",
|
2412
|
-
"items": {
|
2413
|
-
"anyOf": [
|
2414
|
-
{
|
2415
|
-
"$ref": "#/definitions/non_nestable_block_content"
|
2416
|
-
},
|
2417
|
-
{
|
2418
|
-
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
2419
|
-
}
|
2420
|
-
]
|
2421
|
-
},
|
2422
|
-
"minItems": 1
|
2423
|
-
}
|
2424
|
-
},
|
2425
|
-
"additionalProperties": false,
|
2426
|
-
"required": ["type", "content"]
|
2427
|
-
},
|
2428
2489
|
"block_content": {
|
2429
2490
|
"anyOf": [
|
2430
2491
|
{
|
@@ -2487,6 +2548,9 @@
|
|
2487
2548
|
{
|
2488
2549
|
"$ref": "#/definitions/panel_node"
|
2489
2550
|
},
|
2551
|
+
{
|
2552
|
+
"$ref": "#/definitions/panel_with_nested_blockquote_node"
|
2553
|
+
},
|
2490
2554
|
{
|
2491
2555
|
"$ref": "#/definitions/table_node"
|
2492
2556
|
},
|
@@ -2495,9 +2559,6 @@
|
|
2495
2559
|
},
|
2496
2560
|
{
|
2497
2561
|
"$ref": "#/definitions/expand_with_no_mark_node"
|
2498
|
-
},
|
2499
|
-
{
|
2500
|
-
"$ref": "#/definitions/expand_with_nested_expand_node"
|
2501
2562
|
}
|
2502
2563
|
]
|
2503
2564
|
},
|
@@ -2817,6 +2878,9 @@
|
|
2817
2878
|
{
|
2818
2879
|
"$ref": "#/definitions/panel_node"
|
2819
2880
|
},
|
2881
|
+
{
|
2882
|
+
"$ref": "#/definitions/panel_with_nested_blockquote_node"
|
2883
|
+
},
|
2820
2884
|
{
|
2821
2885
|
"$ref": "#/definitions/table_node"
|
2822
2886
|
},
|
@@ -2829,9 +2893,6 @@
|
|
2829
2893
|
{
|
2830
2894
|
"$ref": "#/definitions/expand_with_breakout_mark_node"
|
2831
2895
|
},
|
2832
|
-
{
|
2833
|
-
"$ref": "#/definitions/expand_with_nested_expand_node"
|
2834
|
-
},
|
2835
2896
|
{
|
2836
2897
|
"$ref": "#/definitions/layoutSection_full_node"
|
2837
2898
|
},
|
package/dist/types/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, 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,
|
3
|
+
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandWithNestedExpand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, panelWithBlockquoteStage0, 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
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';
|
5
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';
|
6
6
|
export type { Match, NameToEmoji } from './utils';
|
@@ -3,8 +3,8 @@
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source files in "packages/adf-schema/src/next-schema" ,
|
4
4
|
* and run "yarn workspace @atlaskit/adf-schema build:schema:all" to regenerate this file.
|
5
5
|
*/
|
6
|
-
import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BlockquoteWithoutNestedCodeblockOrMediaDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, CodeBlockWithNoMarksDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition,
|
7
|
-
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | CodeBlockWithNoMarksDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BlockquoteWithoutNestedCodeblockOrMediaDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | PanelLegacyDefinition | TableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ExpandWithNoMarkDefinition |
|
6
|
+
import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BlockquoteWithoutNestedCodeblockOrMediaDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, CodeBlockWithNoMarksDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExpandWithNoMarkDefinition, ExpandWithoutNestedExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelDefinition, PanelLegacyDefinition, PanelWithNestedBlockquoteStage0Definition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StatusStage0Definition, TableDefinition, TaskListDefinition, TextCodeInlineDefinition, TextDefinition, TextFormattedDefinition, UnsupportedBlockDefinition, UnsupportedInlineDefinition } from './nodeTypes';
|
7
|
+
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | CodeBlockWithNoMarksDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BlockquoteWithoutNestedCodeblockOrMediaDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | PanelLegacyDefinition | PanelWithNestedBlockquoteStage0Definition | TableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ExpandWithNoMarkDefinition | ExpandWithoutNestedExpandDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
8
8
|
export type BlockRootOnlyDefinition = Array<MultiBodiedExtensionStage0Definition>;
|
9
9
|
export type InlineDefinition = Array<TextDefinition | TextFormattedDefinition | TextCodeInlineDefinition | DateDefinition | DateStage0Definition | EmojiDefinition | EmojiStage0Definition | HardBreakDefinition | InlineCardDefinition | InlineCardStage0Definition | MentionDefinition | MentionStage0Definition | PlaceholderDefinition | StatusDefinition | StatusStage0Definition | InlineExtensionDefinition | InlineExtensionWithMarksDefinition | MediaInlineDefinition | ImageDefinition | ConfluenceJiraIssueDefinition | ConfluenceUnsupportedInlineDefinition | UnsupportedInlineDefinition>;
|
10
10
|
export type NonNestableBlockContentDefinition = Array<ParagraphWithNoMarksDefinition | PanelDefinition | BlockquoteDefinition | OrderedListDefinition | BulletListDefinition | RuleDefinition | HeadingWithNoMarksDefinition | CodeBlockWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | DecisionListDefinition | TaskListDefinition | TableDefinition | BlockCardDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | UnsupportedBlockDefinition>;
|