@atlaskit/adf-schema 40.4.0 → 40.6.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 +4 -4
- package/dist/cjs/next-schema/generated/nodeTypes.js +9 -9
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/blockquote.js +4 -5
- package/dist/cjs/next-schema/nodes/expand.js +4 -5
- package/dist/cjs/schema/create-schema.js +2 -2
- package/dist/cjs/schema/default-schema.js +2 -2
- package/dist/cjs/schema/index.js +4 -4
- package/dist/cjs/schema/nodes/blockquote.js +3 -3
- package/dist/cjs/schema/nodes/expand.js +3 -3
- package/dist/cjs/schema/nodes/index.js +4 -4
- package/dist/cjs/validator-schema/generated/validatorSpec.js +19 -19
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/next-schema/generated/nodeTypes.js +8 -8
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/blockquote.js +4 -5
- package/dist/es2019/next-schema/nodes/expand.js +4 -5
- package/dist/es2019/schema/create-schema.js +3 -3
- package/dist/es2019/schema/default-schema.js +3 -3
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/blockquote.js +3 -3
- package/dist/es2019/schema/nodes/expand.js +3 -3
- package/dist/es2019/schema/nodes/index.js +2 -2
- package/dist/es2019/validator-schema/generated/validatorSpec.js +18 -18
- package/dist/esm/index.js +2 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +8 -8
- package/dist/esm/next-schema/groups/blockGroup.js +1 -1
- package/dist/esm/next-schema/nodes/blockquote.js +4 -5
- package/dist/esm/next-schema/nodes/expand.js +4 -5
- package/dist/esm/schema/create-schema.js +3 -3
- package/dist/esm/schema/default-schema.js +3 -3
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/blockquote.js +3 -3
- package/dist/esm/schema/nodes/expand.js +3 -3
- package/dist/esm/schema/nodes/index.js +2 -2
- package/dist/esm/validator-schema/generated/validatorSpec.js +18 -18
- package/dist/json-schema/v1/full.json +36 -17
- package/dist/json-schema/v1/stage-0.json +9 -74
- package/dist/types/index.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +14 -14
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +7 -3
- package/dist/types/next-schema/nodes/blockquote.d.ts +2 -3
- package/dist/types/next-schema/nodes/expand.d.ts +2 -3
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/blockquote.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/validator-schema/generated/validatorSpec.d.ts +15 -15
- package/json-schema/v1/full.json +36 -17
- package/json-schema/v1/stage-0.json +9 -74
- package/package.json +2 -2
@@ -1,9 +1,9 @@
|
|
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';
|
5
5
|
export { doc } from './doc';
|
6
|
-
export { blockquote, blockquoteWithList,
|
6
|
+
export { blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia } from './blockquote';
|
7
7
|
export { bulletList, bulletListSelector } from './bullet-list';
|
8
8
|
export { codeBlock, toJSON as codeBlockToJSON } from './code-block';
|
9
9
|
export { hardBreak } from './hard-break';
|
@@ -1100,49 +1100,49 @@ export const orderedList = {
|
|
1100
1100
|
}
|
1101
1101
|
}
|
1102
1102
|
};
|
1103
|
-
export const
|
1103
|
+
export const mediaGroup = {
|
1104
1104
|
props: {
|
1105
1105
|
type: {
|
1106
1106
|
type: 'enum',
|
1107
|
-
values: ['
|
1107
|
+
values: ['mediaGroup']
|
1108
1108
|
},
|
1109
1109
|
content: {
|
1110
1110
|
type: 'array',
|
1111
|
-
items: [
|
1111
|
+
items: ['media'],
|
1112
1112
|
minItems: 1,
|
1113
1113
|
allowUnsupportedBlock: true
|
1114
1114
|
}
|
1115
1115
|
}
|
1116
1116
|
};
|
1117
|
-
export const
|
1117
|
+
export const blockquote = {
|
1118
1118
|
props: {
|
1119
|
+
type: {
|
1120
|
+
type: 'enum',
|
1121
|
+
values: ['blockquote']
|
1122
|
+
},
|
1119
1123
|
content: {
|
1120
1124
|
type: 'array',
|
1121
|
-
items: ['
|
1125
|
+
items: [['paragraph_with_no_marks', 'orderedList', 'bulletList', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full']],
|
1122
1126
|
minItems: 1,
|
1123
1127
|
allowUnsupportedBlock: true
|
1124
1128
|
}
|
1125
1129
|
}
|
1126
|
-
}
|
1127
|
-
export const
|
1130
|
+
};
|
1131
|
+
export const blockquote_legacy = ['blockquote', {
|
1128
1132
|
props: {
|
1129
|
-
type: {
|
1130
|
-
type: 'enum',
|
1131
|
-
values: ['mediaGroup']
|
1132
|
-
},
|
1133
1133
|
content: {
|
1134
1134
|
type: 'array',
|
1135
|
-
items: ['
|
1135
|
+
items: ['paragraph'],
|
1136
1136
|
minItems: 1,
|
1137
1137
|
allowUnsupportedBlock: true
|
1138
1138
|
}
|
1139
1139
|
}
|
1140
|
-
};
|
1141
|
-
export const
|
1140
|
+
}];
|
1141
|
+
export const blockquote_without_nested_codeblock_or_media = ['blockquote', {
|
1142
1142
|
props: {
|
1143
1143
|
content: {
|
1144
1144
|
type: 'array',
|
1145
|
-
items: [['paragraph_with_no_marks', 'orderedList', 'bulletList'
|
1145
|
+
items: [['paragraph_with_no_marks', 'orderedList', 'bulletList']],
|
1146
1146
|
minItems: 1,
|
1147
1147
|
allowUnsupportedBlock: true
|
1148
1148
|
}
|
@@ -1663,7 +1663,7 @@ export const expand = {
|
|
1663
1663
|
},
|
1664
1664
|
content: {
|
1665
1665
|
type: 'array',
|
1666
|
-
items: ['non_nestable_block_content'],
|
1666
|
+
items: [['non_nestable_block_content', 'nestedExpand_with_no_marks']],
|
1667
1667
|
minItems: 1,
|
1668
1668
|
allowUnsupportedBlock: true
|
1669
1669
|
},
|
@@ -1693,11 +1693,11 @@ export const expand_with_breakout_mark = ['expand', {
|
|
1693
1693
|
}
|
1694
1694
|
}
|
1695
1695
|
}];
|
1696
|
-
export const
|
1696
|
+
export const expand_without_nested_expand = ['expand', {
|
1697
1697
|
props: {
|
1698
1698
|
content: {
|
1699
1699
|
type: 'array',
|
1700
|
-
items: [
|
1700
|
+
items: ['non_nestable_block_content'],
|
1701
1701
|
minItems: 1,
|
1702
1702
|
allowUnsupportedBlock: true
|
1703
1703
|
}
|
package/dist/esm/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList,
|
2
|
-
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand,
|
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, 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, 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
|
@@ -28,7 +28,7 @@ export var blockCard = createPMNodeSpecFactory({
|
|
28
28
|
draggable: true
|
29
29
|
});
|
30
30
|
export var blockquote = createPMNodeSpecFactory({
|
31
|
-
content: '(paragraph | orderedList | bulletList | unsupportedBlock)+',
|
31
|
+
content: '(paragraph | orderedList | bulletList | unsupportedBlock | codeBlock | mediaGroup | mediaSingle)+',
|
32
32
|
group: 'block',
|
33
33
|
selectable: false,
|
34
34
|
defining: true
|
@@ -39,8 +39,8 @@ export var blockquoteLegacy = createPMNodeSpecFactory({
|
|
39
39
|
selectable: false,
|
40
40
|
defining: true
|
41
41
|
});
|
42
|
-
export var
|
43
|
-
content: '(paragraph | orderedList | bulletList | unsupportedBlock
|
42
|
+
export var blockquoteWithoutNestedCodeblockOrMedia = createPMNodeSpecFactory({
|
43
|
+
content: '(paragraph | orderedList | bulletList | unsupportedBlock)+',
|
44
44
|
group: 'block',
|
45
45
|
selectable: false,
|
46
46
|
defining: true
|
@@ -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: {
|
@@ -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('
|
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('without_nested_expand'), confluenceUnsupportedBlock, unsupportedBlock], {
|
22
22
|
// @DSLCompatibilityException
|
23
23
|
// Block group in PM doesn't match ADF
|
24
24
|
ignore: ['validator-spec']
|
@@ -11,12 +11,11 @@ export var blockquote = adfNode('blockquote').define({
|
|
11
11
|
defining: true,
|
12
12
|
selectable: false,
|
13
13
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
14
|
-
content: [$onePlus($or(paragraph.use('with_no_marks'), orderedList, bulletList, unsupportedBlock))]
|
14
|
+
content: [$onePlus($or(paragraph.use('with_no_marks'), orderedList, bulletList, unsupportedBlock, codeBlock.use('with_no_marks'), mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full')))]
|
15
15
|
}).variant('legacy', {
|
16
16
|
ignore: ['json-schema', 'validator-spec'],
|
17
17
|
content: [$onePlus($or(paragraph, unsupportedBlock))]
|
18
|
-
}).variant('
|
19
|
-
content: [$onePlus($or(paragraph.use('with_no_marks'), orderedList, bulletList, unsupportedBlock
|
20
|
-
|
21
|
-
stage0: true
|
18
|
+
}).variant('without_nested_codeblock_or_media', {
|
19
|
+
content: [$onePlus($or(paragraph.use('with_no_marks'), orderedList, bulletList, unsupportedBlock))],
|
20
|
+
ignore: ['json-schema', 'validator-spec']
|
22
21
|
});
|
@@ -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: [],
|
@@ -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,
|
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) {
|
@@ -77,7 +77,7 @@ var nodesInOrder = [{
|
|
77
77
|
spec: heading
|
78
78
|
}, {
|
79
79
|
name: 'blockquote',
|
80
|
-
spec:
|
80
|
+
spec: blockquoteWithNestedCodeblockOrMedia
|
81
81
|
}, {
|
82
82
|
name: 'codeBlock',
|
83
83
|
spec: codeBlock
|
@@ -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 } from './nodes';
|
3
3
|
import { createSchema } from './create-schema';
|
4
4
|
var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
|
5
5
|
var defaultSchemaConfig = {
|
@@ -19,8 +19,8 @@ export var getSchemaBasedOnStage = memoizeOne(function () {
|
|
19
19
|
layoutSection: layoutSectionWithSingleColumn,
|
20
20
|
multiBodiedExtension: multiBodiedExtension,
|
21
21
|
extensionFrame: extensionFrame,
|
22
|
-
expand:
|
23
|
-
blockquote:
|
22
|
+
expand: expandWithNestedExpand,
|
23
|
+
blockquote: blockquoteWithNestedCodeblockOrMedia,
|
24
24
|
listItem: listItemWithDecisionStage0
|
25
25
|
};
|
26
26
|
}
|
package/dist/esm/schema/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, blockquoteWithList,
|
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, 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,5 +1,5 @@
|
|
1
1
|
import { blockquote as blockquoteFactory } from '../../next-schema/generated/nodeTypes';
|
2
|
-
import { blockquoteLegacy as blockquoteLegacyFactory,
|
2
|
+
import { blockquoteLegacy as blockquoteLegacyFactory, blockquoteWithoutNestedCodeblockOrMedia as blockquoteWithoutNestedCodeblockOrMediaFactory } from '../../next-schema/generated/nodeTypes';
|
3
3
|
|
4
4
|
/**
|
5
5
|
* @name blockquote_node
|
@@ -14,12 +14,12 @@ var nodeSpecOptions = {
|
|
14
14
|
}
|
15
15
|
};
|
16
16
|
export var blockquote = blockquoteLegacyFactory(nodeSpecOptions);
|
17
|
-
export var
|
17
|
+
export var blockquoteWithNestedCodeblockOrMedia = blockquoteFactory(nodeSpecOptions);
|
18
18
|
|
19
19
|
/**
|
20
20
|
* @name blockquote_with_list_node
|
21
21
|
*/
|
22
|
-
export var blockquoteWithList =
|
22
|
+
export var blockquoteWithList = blockquoteWithoutNestedCodeblockOrMediaFactory({
|
23
23
|
parseDOM: [{
|
24
24
|
tag: 'blockquote'
|
25
25
|
}],
|
@@ -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,9 +1,9 @@
|
|
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';
|
5
5
|
export { doc } from './doc';
|
6
|
-
export { blockquote, blockquoteWithList,
|
6
|
+
export { blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia } from './blockquote';
|
7
7
|
export { bulletList, bulletListSelector } from './bullet-list';
|
8
8
|
export { codeBlock, toJSON as codeBlockToJSON } from './code-block';
|
9
9
|
export { hardBreak } from './hard-break';
|
@@ -1100,49 +1100,49 @@ export var orderedList = {
|
|
1100
1100
|
}
|
1101
1101
|
}
|
1102
1102
|
};
|
1103
|
-
export var
|
1103
|
+
export var mediaGroup = {
|
1104
1104
|
props: {
|
1105
1105
|
type: {
|
1106
1106
|
type: 'enum',
|
1107
|
-
values: ['
|
1107
|
+
values: ['mediaGroup']
|
1108
1108
|
},
|
1109
1109
|
content: {
|
1110
1110
|
type: 'array',
|
1111
|
-
items: [
|
1111
|
+
items: ['media'],
|
1112
1112
|
minItems: 1,
|
1113
1113
|
allowUnsupportedBlock: true
|
1114
1114
|
}
|
1115
1115
|
}
|
1116
1116
|
};
|
1117
|
-
export var
|
1117
|
+
export var blockquote = {
|
1118
1118
|
props: {
|
1119
|
+
type: {
|
1120
|
+
type: 'enum',
|
1121
|
+
values: ['blockquote']
|
1122
|
+
},
|
1119
1123
|
content: {
|
1120
1124
|
type: 'array',
|
1121
|
-
items: ['
|
1125
|
+
items: [['paragraph_with_no_marks', 'orderedList', 'bulletList', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full']],
|
1122
1126
|
minItems: 1,
|
1123
1127
|
allowUnsupportedBlock: true
|
1124
1128
|
}
|
1125
1129
|
}
|
1126
|
-
}
|
1127
|
-
export var
|
1130
|
+
};
|
1131
|
+
export var blockquote_legacy = ['blockquote', {
|
1128
1132
|
props: {
|
1129
|
-
type: {
|
1130
|
-
type: 'enum',
|
1131
|
-
values: ['mediaGroup']
|
1132
|
-
},
|
1133
1133
|
content: {
|
1134
1134
|
type: 'array',
|
1135
|
-
items: ['
|
1135
|
+
items: ['paragraph'],
|
1136
1136
|
minItems: 1,
|
1137
1137
|
allowUnsupportedBlock: true
|
1138
1138
|
}
|
1139
1139
|
}
|
1140
|
-
};
|
1141
|
-
export var
|
1140
|
+
}];
|
1141
|
+
export var blockquote_without_nested_codeblock_or_media = ['blockquote', {
|
1142
1142
|
props: {
|
1143
1143
|
content: {
|
1144
1144
|
type: 'array',
|
1145
|
-
items: [['paragraph_with_no_marks', 'orderedList', 'bulletList'
|
1145
|
+
items: [['paragraph_with_no_marks', 'orderedList', 'bulletList']],
|
1146
1146
|
minItems: 1,
|
1147
1147
|
allowUnsupportedBlock: true
|
1148
1148
|
}
|
@@ -1663,7 +1663,7 @@ export var expand = {
|
|
1663
1663
|
},
|
1664
1664
|
content: {
|
1665
1665
|
type: 'array',
|
1666
|
-
items: ['non_nestable_block_content'],
|
1666
|
+
items: [['non_nestable_block_content', 'nestedExpand_with_no_marks']],
|
1667
1667
|
minItems: 1,
|
1668
1668
|
allowUnsupportedBlock: true
|
1669
1669
|
},
|
@@ -1693,11 +1693,11 @@ export var expand_with_breakout_mark = ['expand', {
|
|
1693
1693
|
}
|
1694
1694
|
}
|
1695
1695
|
}];
|
1696
|
-
export var
|
1696
|
+
export var expand_without_nested_expand = ['expand', {
|
1697
1697
|
props: {
|
1698
1698
|
content: {
|
1699
1699
|
type: 'array',
|
1700
|
-
items: [
|
1700
|
+
items: ['non_nestable_block_content'],
|
1701
1701
|
minItems: 1,
|
1702
1702
|
allowUnsupportedBlock: true
|
1703
1703
|
}
|
@@ -1450,26 +1450,16 @@
|
|
1450
1450
|
"additionalProperties": false,
|
1451
1451
|
"required": ["type", "content"]
|
1452
1452
|
},
|
1453
|
-
"
|
1453
|
+
"mediaGroup_node": {
|
1454
1454
|
"type": "object",
|
1455
1455
|
"properties": {
|
1456
1456
|
"type": {
|
1457
|
-
"enum": ["
|
1457
|
+
"enum": ["mediaGroup"]
|
1458
1458
|
},
|
1459
1459
|
"content": {
|
1460
1460
|
"type": "array",
|
1461
1461
|
"items": {
|
1462
|
-
"
|
1463
|
-
{
|
1464
|
-
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
1465
|
-
},
|
1466
|
-
{
|
1467
|
-
"$ref": "#/definitions/orderedList_node"
|
1468
|
-
},
|
1469
|
-
{
|
1470
|
-
"$ref": "#/definitions/bulletList_node"
|
1471
|
-
}
|
1472
|
-
]
|
1462
|
+
"$ref": "#/definitions/media_node"
|
1473
1463
|
},
|
1474
1464
|
"minItems": 1
|
1475
1465
|
}
|
@@ -1477,16 +1467,38 @@
|
|
1477
1467
|
"additionalProperties": false,
|
1478
1468
|
"required": ["type", "content"]
|
1479
1469
|
},
|
1480
|
-
"
|
1470
|
+
"blockquote_node": {
|
1481
1471
|
"type": "object",
|
1482
1472
|
"properties": {
|
1483
1473
|
"type": {
|
1484
|
-
"enum": ["
|
1474
|
+
"enum": ["blockquote"]
|
1485
1475
|
},
|
1486
1476
|
"content": {
|
1487
1477
|
"type": "array",
|
1488
1478
|
"items": {
|
1489
|
-
"
|
1479
|
+
"anyOf": [
|
1480
|
+
{
|
1481
|
+
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
1482
|
+
},
|
1483
|
+
{
|
1484
|
+
"$ref": "#/definitions/orderedList_node"
|
1485
|
+
},
|
1486
|
+
{
|
1487
|
+
"$ref": "#/definitions/bulletList_node"
|
1488
|
+
},
|
1489
|
+
{
|
1490
|
+
"$ref": "#/definitions/codeBlock_with_no_marks_node"
|
1491
|
+
},
|
1492
|
+
{
|
1493
|
+
"$ref": "#/definitions/mediaGroup_node"
|
1494
|
+
},
|
1495
|
+
{
|
1496
|
+
"$ref": "#/definitions/mediaSingle_caption_node"
|
1497
|
+
},
|
1498
|
+
{
|
1499
|
+
"$ref": "#/definitions/mediaSingle_full_node"
|
1500
|
+
}
|
1501
|
+
]
|
1490
1502
|
},
|
1491
1503
|
"minItems": 1
|
1492
1504
|
}
|
@@ -2229,7 +2241,14 @@
|
|
2229
2241
|
"content": {
|
2230
2242
|
"type": "array",
|
2231
2243
|
"items": {
|
2232
|
-
"
|
2244
|
+
"anyOf": [
|
2245
|
+
{
|
2246
|
+
"$ref": "#/definitions/non_nestable_block_content"
|
2247
|
+
},
|
2248
|
+
{
|
2249
|
+
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
2250
|
+
}
|
2251
|
+
]
|
2233
2252
|
},
|
2234
2253
|
"minItems": 1
|
2235
2254
|
}
|
@@ -1557,33 +1557,6 @@
|
|
1557
1557
|
"additionalProperties": false,
|
1558
1558
|
"required": ["type", "content"]
|
1559
1559
|
},
|
1560
|
-
"blockquote_node": {
|
1561
|
-
"type": "object",
|
1562
|
-
"properties": {
|
1563
|
-
"type": {
|
1564
|
-
"enum": ["blockquote"]
|
1565
|
-
},
|
1566
|
-
"content": {
|
1567
|
-
"type": "array",
|
1568
|
-
"items": {
|
1569
|
-
"anyOf": [
|
1570
|
-
{
|
1571
|
-
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
1572
|
-
},
|
1573
|
-
{
|
1574
|
-
"$ref": "#/definitions/orderedList_node"
|
1575
|
-
},
|
1576
|
-
{
|
1577
|
-
"$ref": "#/definitions/bulletList_node"
|
1578
|
-
}
|
1579
|
-
]
|
1580
|
-
},
|
1581
|
-
"minItems": 1
|
1582
|
-
}
|
1583
|
-
},
|
1584
|
-
"additionalProperties": false,
|
1585
|
-
"required": ["type", "content"]
|
1586
|
-
},
|
1587
1560
|
"mediaGroup_node": {
|
1588
1561
|
"type": "object",
|
1589
1562
|
"properties": {
|
@@ -1601,7 +1574,7 @@
|
|
1601
1574
|
"additionalProperties": false,
|
1602
1575
|
"required": ["type", "content"]
|
1603
1576
|
},
|
1604
|
-
"
|
1577
|
+
"blockquote_node": {
|
1605
1578
|
"type": "object",
|
1606
1579
|
"properties": {
|
1607
1580
|
"type": {
|
@@ -2375,7 +2348,14 @@
|
|
2375
2348
|
"content": {
|
2376
2349
|
"type": "array",
|
2377
2350
|
"items": {
|
2378
|
-
"
|
2351
|
+
"anyOf": [
|
2352
|
+
{
|
2353
|
+
"$ref": "#/definitions/non_nestable_block_content"
|
2354
|
+
},
|
2355
|
+
{
|
2356
|
+
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
2357
|
+
}
|
2358
|
+
]
|
2379
2359
|
},
|
2380
2360
|
"minItems": 1
|
2381
2361
|
}
|
@@ -2419,39 +2399,6 @@
|
|
2419
2399
|
}
|
2420
2400
|
]
|
2421
2401
|
},
|
2422
|
-
"expand_with_nested_expand_node": {
|
2423
|
-
"type": "object",
|
2424
|
-
"properties": {
|
2425
|
-
"type": {
|
2426
|
-
"enum": ["expand"]
|
2427
|
-
},
|
2428
|
-
"attrs": {
|
2429
|
-
"type": "object",
|
2430
|
-
"properties": {
|
2431
|
-
"title": {
|
2432
|
-
"type": "string"
|
2433
|
-
}
|
2434
|
-
},
|
2435
|
-
"additionalProperties": false
|
2436
|
-
},
|
2437
|
-
"content": {
|
2438
|
-
"type": "array",
|
2439
|
-
"items": {
|
2440
|
-
"anyOf": [
|
2441
|
-
{
|
2442
|
-
"$ref": "#/definitions/non_nestable_block_content"
|
2443
|
-
},
|
2444
|
-
{
|
2445
|
-
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
2446
|
-
}
|
2447
|
-
]
|
2448
|
-
},
|
2449
|
-
"minItems": 1
|
2450
|
-
}
|
2451
|
-
},
|
2452
|
-
"additionalProperties": false,
|
2453
|
-
"required": ["type", "content"]
|
2454
|
-
},
|
2455
2402
|
"block_content": {
|
2456
2403
|
"anyOf": [
|
2457
2404
|
{
|
@@ -2487,9 +2434,6 @@
|
|
2487
2434
|
{
|
2488
2435
|
"$ref": "#/definitions/blockquote_node"
|
2489
2436
|
},
|
2490
|
-
{
|
2491
|
-
"$ref": "#/definitions/blockquote_with_nested_codeblock_or_media_node"
|
2492
|
-
},
|
2493
2437
|
{
|
2494
2438
|
"$ref": "#/definitions/decisionList_node"
|
2495
2439
|
},
|
@@ -2525,9 +2469,6 @@
|
|
2525
2469
|
},
|
2526
2470
|
{
|
2527
2471
|
"$ref": "#/definitions/expand_with_no_mark_node"
|
2528
|
-
},
|
2529
|
-
{
|
2530
|
-
"$ref": "#/definitions/expand_with_nested_expand_node"
|
2531
2472
|
}
|
2532
2473
|
]
|
2533
2474
|
},
|
@@ -2820,9 +2761,6 @@
|
|
2820
2761
|
{
|
2821
2762
|
"$ref": "#/definitions/blockquote_node"
|
2822
2763
|
},
|
2823
|
-
{
|
2824
|
-
"$ref": "#/definitions/blockquote_with_nested_codeblock_or_media_node"
|
2825
|
-
},
|
2826
2764
|
{
|
2827
2765
|
"$ref": "#/definitions/decisionList_node"
|
2828
2766
|
},
|
@@ -2862,9 +2800,6 @@
|
|
2862
2800
|
{
|
2863
2801
|
"$ref": "#/definitions/expand_with_breakout_mark_node"
|
2864
2802
|
},
|
2865
|
-
{
|
2866
|
-
"$ref": "#/definitions/expand_with_nested_expand_node"
|
2867
|
-
},
|
2868
2803
|
{
|
2869
2804
|
"$ref": "#/definitions/layoutSection_full_node"
|
2870
2805
|
},
|