@atlaskit/adf-schema 40.4.0 → 40.5.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 +6 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/next-schema/generated/nodeTypes.js +4 -4
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/blockquote.js +4 -5
- package/dist/cjs/schema/create-schema.js +1 -1
- package/dist/cjs/schema/default-schema.js +1 -1
- package/dist/cjs/schema/index.js +2 -2
- package/dist/cjs/schema/nodes/blockquote.js +3 -3
- package/dist/cjs/schema/nodes/index.js +2 -2
- package/dist/cjs/validator-schema/generated/validatorSpec.js +16 -16
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +3 -3
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/blockquote.js +4 -5
- package/dist/es2019/schema/create-schema.js +2 -2
- package/dist/es2019/schema/default-schema.js +2 -2
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/blockquote.js +3 -3
- package/dist/es2019/schema/nodes/index.js +1 -1
- package/dist/es2019/validator-schema/generated/validatorSpec.js +15 -15
- package/dist/esm/index.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +3 -3
- package/dist/esm/next-schema/groups/blockGroup.js +1 -1
- package/dist/esm/next-schema/nodes/blockquote.js +4 -5
- package/dist/esm/schema/create-schema.js +2 -2
- package/dist/esm/schema/default-schema.js +2 -2
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/blockquote.js +3 -3
- package/dist/esm/schema/nodes/index.js +1 -1
- package/dist/esm/validator-schema/generated/validatorSpec.js +15 -15
- package/dist/json-schema/v1/full.json +28 -16
- package/dist/json-schema/v1/stage-0.json +1 -34
- 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 +5 -5
- 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/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/blockquote.d.ts +1 -1
- package/dist/types/schema/nodes/index.d.ts +1 -1
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +12 -12
- package/json-schema/v1/full.json +28 -16
- package/json-schema/v1/stage-0.json +1 -34
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/cjs/index.js
CHANGED
@@ -351,10 +351,10 @@ Object.defineProperty(exports, "blockquoteWithList", {
|
|
351
351
|
return _schema.blockquoteWithList;
|
352
352
|
}
|
353
353
|
});
|
354
|
-
Object.defineProperty(exports, "
|
354
|
+
Object.defineProperty(exports, "blockquoteWithNestedCodeblockOrMedia", {
|
355
355
|
enumerable: true,
|
356
356
|
get: function get() {
|
357
|
-
return _schema.
|
357
|
+
return _schema.blockquoteWithNestedCodeblockOrMedia;
|
358
358
|
}
|
359
359
|
});
|
360
360
|
Object.defineProperty(exports, "bodiedExtension", {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.unsupportedInline = exports.unsupportedBlock = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panelLegacy = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemWithNestedDecisionStage0 = exports.listItemLegacy = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandWithNoMark = exports.expandWithNestedExpandStage0 = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockWithNoMarks = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.
|
6
|
+
exports.unsupportedInline = exports.unsupportedBlock = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panelLegacy = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemWithNestedDecisionStage0 = exports.listItemLegacy = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandWithNoMark = exports.expandWithNestedExpandStage0 = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockWithNoMarks = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteWithoutNestedCodeblockOrMedia = exports.blockquoteLegacy = exports.blockquote = exports.blockCard = void 0;
|
7
7
|
var _createPMSpecFactory = require("../../schema/createPMSpecFactory");
|
8
8
|
/**
|
9
9
|
* This file was automatically generated by @atlaskit/adf-schema-generator
|
@@ -34,7 +34,7 @@ var blockCard = exports.blockCard = (0, _createPMSpecFactory.createPMNodeSpecFac
|
|
34
34
|
draggable: true
|
35
35
|
});
|
36
36
|
var blockquote = exports.blockquote = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
37
|
-
content: '(paragraph | orderedList | bulletList | unsupportedBlock)+',
|
37
|
+
content: '(paragraph | orderedList | bulletList | unsupportedBlock | codeBlock | mediaGroup | mediaSingle)+',
|
38
38
|
group: 'block',
|
39
39
|
selectable: false,
|
40
40
|
defining: true
|
@@ -45,8 +45,8 @@ var blockquoteLegacy = exports.blockquoteLegacy = (0, _createPMSpecFactory.creat
|
|
45
45
|
selectable: false,
|
46
46
|
defining: true
|
47
47
|
});
|
48
|
-
var
|
49
|
-
content: '(paragraph | orderedList | bulletList | unsupportedBlock
|
48
|
+
var blockquoteWithoutNestedCodeblockOrMedia = exports.blockquoteWithoutNestedCodeblockOrMedia = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
49
|
+
content: '(paragraph | orderedList | bulletList | unsupportedBlock)+',
|
50
50
|
group: 'block',
|
51
51
|
selectable: false,
|
52
52
|
defining: true
|
@@ -24,7 +24,7 @@ var _rule = require("../nodes/rule");
|
|
24
24
|
var _table = require("../nodes/table");
|
25
25
|
var _task = require("../nodes/task");
|
26
26
|
var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
27
|
-
var blockGroup = exports.blockGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block', [_blockCard.blockCard, _codeBlock.codeBlock, _codeBlock.codeBlock.use('with_marks'), _codeBlock.codeBlock.use('with_no_marks'), _mediaSingle.mediaSingle, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _mediaSingle.mediaSingle.use('width_type'), _paragraph.paragraph, _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _paragraph.paragraph.use('with_no_marks'), _task.taskList, _list.orderedList, _list.bulletList, _blockquote.blockquote, _blockquote.blockquote.use('legacy'), _blockquote.blockquote.use('
|
27
|
+
var blockGroup = exports.blockGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block', [_blockCard.blockCard, _codeBlock.codeBlock, _codeBlock.codeBlock.use('with_marks'), _codeBlock.codeBlock.use('with_no_marks'), _mediaSingle.mediaSingle, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _mediaSingle.mediaSingle.use('width_type'), _paragraph.paragraph, _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _paragraph.paragraph.use('with_no_marks'), _task.taskList, _list.orderedList, _list.bulletList, _blockquote.blockquote, _blockquote.blockquote.use('legacy'), _blockquote.blockquote.use('without_nested_codeblock_or_media'), _decisionList.decisionList, _embedCard.embedCard, _extension.extension, _extension.extension.use('with_marks'), _heading.heading, _heading.heading.use('with_indentation'), _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _mediaGroup.mediaGroup, _rule.rule, _panel.panel, _panel.panel.use('legacy'), _table.table, _bodiedExtension.bodiedExtension, _bodiedExtension.bodiedExtension.use('with_marks'), _expand.expand, _expand.expand.use('with_no_mark'), _expand.expand.use('with_breakout_mark'), _expand.expand.use('with_nested_expand'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
|
28
28
|
// @DSLCompatibilityException
|
29
29
|
// Block group in PM doesn't match ADF
|
30
30
|
ignore: ['validator-spec']
|
@@ -17,12 +17,11 @@ var blockquote = exports.blockquote = (0, _adfSchemaGenerator.adfNode)('blockquo
|
|
17
17
|
defining: true,
|
18
18
|
selectable: false,
|
19
19
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
20
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _list.orderedList, _list.bulletList, _unsupportedBlock.unsupportedBlock))]
|
20
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _list.orderedList, _list.bulletList, _unsupportedBlock.unsupportedBlock, _codeBlock.codeBlock.use('with_no_marks'), _mediaGroup.mediaGroup, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full')))]
|
21
21
|
}).variant('legacy', {
|
22
22
|
ignore: ['json-schema', 'validator-spec'],
|
23
23
|
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph, _unsupportedBlock.unsupportedBlock))]
|
24
|
-
}).variant('
|
25
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _list.orderedList, _list.bulletList, _unsupportedBlock.unsupportedBlock
|
26
|
-
|
27
|
-
stage0: true
|
24
|
+
}).variant('without_nested_codeblock_or_media', {
|
25
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _list.orderedList, _list.bulletList, _unsupportedBlock.unsupportedBlock))],
|
26
|
+
ignore: ['json-schema', 'validator-spec']
|
28
27
|
});
|
@@ -27,7 +27,7 @@ var getSchemaBasedOnStage = exports.getSchemaBasedOnStage = (0, _memoizeOne.defa
|
|
27
27
|
multiBodiedExtension: _nodes.multiBodiedExtension,
|
28
28
|
extensionFrame: _nodes.extensionFrame,
|
29
29
|
expand: _nodes.expandWithNestedExpandStage0,
|
30
|
-
blockquote: _nodes.
|
30
|
+
blockquote: _nodes.blockquoteWithNestedCodeblockOrMedia,
|
31
31
|
listItem: _nodes.listItemWithDecisionStage0
|
32
32
|
};
|
33
33
|
}
|
package/dist/cjs/schema/index.js
CHANGED
@@ -69,10 +69,10 @@ Object.defineProperty(exports, "blockquoteWithList", {
|
|
69
69
|
return _nodes.blockquoteWithList;
|
70
70
|
}
|
71
71
|
});
|
72
|
-
Object.defineProperty(exports, "
|
72
|
+
Object.defineProperty(exports, "blockquoteWithNestedCodeblockOrMedia", {
|
73
73
|
enumerable: true,
|
74
74
|
get: function get() {
|
75
|
-
return _nodes.
|
75
|
+
return _nodes.blockquoteWithNestedCodeblockOrMedia;
|
76
76
|
}
|
77
77
|
});
|
78
78
|
Object.defineProperty(exports, "bodiedExtension", {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.
|
6
|
+
exports.blockquoteWithNestedCodeblockOrMedia = exports.blockquoteWithList = exports.blockquote = void 0;
|
7
7
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
8
8
|
/**
|
9
9
|
* @name blockquote_node
|
@@ -18,12 +18,12 @@ var nodeSpecOptions = {
|
|
18
18
|
}
|
19
19
|
};
|
20
20
|
var blockquote = exports.blockquote = (0, _nodeTypes.blockquoteLegacy)(nodeSpecOptions);
|
21
|
-
var
|
21
|
+
var blockquoteWithNestedCodeblockOrMedia = exports.blockquoteWithNestedCodeblockOrMedia = (0, _nodeTypes.blockquote)(nodeSpecOptions);
|
22
22
|
|
23
23
|
/**
|
24
24
|
* @name blockquote_with_list_node
|
25
25
|
*/
|
26
|
-
var blockquoteWithList = exports.blockquoteWithList = (0, _nodeTypes.
|
26
|
+
var blockquoteWithList = exports.blockquoteWithList = (0, _nodeTypes.blockquoteWithoutNestedCodeblockOrMedia)({
|
27
27
|
parseDOM: [{
|
28
28
|
tag: 'blockquote'
|
29
29
|
}],
|
@@ -28,10 +28,10 @@ Object.defineProperty(exports, "blockquoteWithList", {
|
|
28
28
|
return _blockquote.blockquoteWithList;
|
29
29
|
}
|
30
30
|
});
|
31
|
-
Object.defineProperty(exports, "
|
31
|
+
Object.defineProperty(exports, "blockquoteWithNestedCodeblockOrMedia", {
|
32
32
|
enumerable: true,
|
33
33
|
get: function get() {
|
34
|
-
return _blockquote.
|
34
|
+
return _blockquote.blockquoteWithNestedCodeblockOrMedia;
|
35
35
|
}
|
36
36
|
});
|
37
37
|
Object.defineProperty(exports, "bodiedExtension", {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.unsupportedInline = exports.unsupportedBlock = exports.underline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell_content = exports.tableCell = exports.table = exports.subsup = exports.strong = exports.strike = exports.status = exports.rule = exports.placeholder = exports.paragraph_with_no_marks = exports.paragraph_with_indentation = exports.paragraph_with_alignment = exports.paragraph = exports.panel_legacy = exports.panel = exports.orderedList = exports.non_nestable_block_content = exports.nestedExpand_with_no_marks = exports.nestedExpand_content = exports.nestedExpand = exports.multiBodiedExtension = exports.mention = exports.mediaSingle_width_type = exports.mediaSingle_full = exports.mediaSingle_caption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem_with_nested_decision = exports.listItem_legacy = exports.listItem = exports.link_text_inline = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_comment_marker = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.inline = exports.indentation = exports.image = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = exports.formatted_text_inline = exports.extension_with_marks = exports.extensionFrame = exports.extension = exports.expand_with_no_mark = exports.expand_with_nested_expand = exports.expand_with_breakout_mark = exports.expand = exports.emoji = exports.embedCard = exports.em = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.dataConsumer = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.code_inline = exports.codeBlock_with_no_marks = exports.codeBlock_with_marks = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.
|
6
|
+
exports.unsupportedInline = exports.unsupportedBlock = exports.underline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell_content = exports.tableCell = exports.table = exports.subsup = exports.strong = exports.strike = exports.status = exports.rule = exports.placeholder = exports.paragraph_with_no_marks = exports.paragraph_with_indentation = exports.paragraph_with_alignment = exports.paragraph = exports.panel_legacy = exports.panel = exports.orderedList = exports.non_nestable_block_content = exports.nestedExpand_with_no_marks = exports.nestedExpand_content = exports.nestedExpand = exports.multiBodiedExtension = exports.mention = exports.mediaSingle_width_type = exports.mediaSingle_full = exports.mediaSingle_caption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItem_with_nested_decision = exports.listItem_legacy = exports.listItem = exports.link_text_inline = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_comment_marker = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.inline = exports.indentation = exports.image = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = exports.formatted_text_inline = exports.extension_with_marks = exports.extensionFrame = exports.extension = exports.expand_with_no_mark = exports.expand_with_nested_expand = exports.expand_with_breakout_mark = exports.expand = exports.emoji = exports.embedCard = exports.em = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.dataConsumer = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.code_inline = exports.codeBlock_with_no_marks = exports.codeBlock_with_marks = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote_without_nested_codeblock_or_media = exports.blockquote_legacy = exports.blockquote = exports.block_content = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.atomic_inline = exports.annotation = exports.alignment = void 0;
|
7
7
|
var blockCard = exports.blockCard = {
|
8
8
|
props: {
|
9
9
|
type: {
|
@@ -1106,49 +1106,49 @@ var orderedList = exports.orderedList = {
|
|
1106
1106
|
}
|
1107
1107
|
}
|
1108
1108
|
};
|
1109
|
-
var
|
1109
|
+
var mediaGroup = exports.mediaGroup = {
|
1110
1110
|
props: {
|
1111
1111
|
type: {
|
1112
1112
|
type: 'enum',
|
1113
|
-
values: ['
|
1113
|
+
values: ['mediaGroup']
|
1114
1114
|
},
|
1115
1115
|
content: {
|
1116
1116
|
type: 'array',
|
1117
|
-
items: [
|
1117
|
+
items: ['media'],
|
1118
1118
|
minItems: 1,
|
1119
1119
|
allowUnsupportedBlock: true
|
1120
1120
|
}
|
1121
1121
|
}
|
1122
1122
|
};
|
1123
|
-
var
|
1123
|
+
var blockquote = exports.blockquote = {
|
1124
1124
|
props: {
|
1125
|
+
type: {
|
1126
|
+
type: 'enum',
|
1127
|
+
values: ['blockquote']
|
1128
|
+
},
|
1125
1129
|
content: {
|
1126
1130
|
type: 'array',
|
1127
|
-
items: ['
|
1131
|
+
items: [['paragraph_with_no_marks', 'orderedList', 'bulletList', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full']],
|
1128
1132
|
minItems: 1,
|
1129
1133
|
allowUnsupportedBlock: true
|
1130
1134
|
}
|
1131
1135
|
}
|
1132
|
-
}
|
1133
|
-
var
|
1136
|
+
};
|
1137
|
+
var blockquote_legacy = exports.blockquote_legacy = ['blockquote', {
|
1134
1138
|
props: {
|
1135
|
-
type: {
|
1136
|
-
type: 'enum',
|
1137
|
-
values: ['mediaGroup']
|
1138
|
-
},
|
1139
1139
|
content: {
|
1140
1140
|
type: 'array',
|
1141
|
-
items: ['
|
1141
|
+
items: ['paragraph'],
|
1142
1142
|
minItems: 1,
|
1143
1143
|
allowUnsupportedBlock: true
|
1144
1144
|
}
|
1145
1145
|
}
|
1146
|
-
};
|
1147
|
-
var
|
1146
|
+
}];
|
1147
|
+
var blockquote_without_nested_codeblock_or_media = exports.blockquote_without_nested_codeblock_or_media = ['blockquote', {
|
1148
1148
|
props: {
|
1149
1149
|
content: {
|
1150
1150
|
type: 'array',
|
1151
|
-
items: [['paragraph_with_no_marks', 'orderedList', 'bulletList'
|
1151
|
+
items: [['paragraph_with_no_marks', 'orderedList', 'bulletList']],
|
1152
1152
|
minItems: 1,
|
1153
1153
|
allowUnsupportedBlock: true
|
1154
1154
|
}
|
package/dist/es2019/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList,
|
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
2
|
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandWithNestedExpandStage0, 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
|
|
@@ -28,7 +28,7 @@ export const blockCard = createPMNodeSpecFactory({
|
|
28
28
|
draggable: true
|
29
29
|
});
|
30
30
|
export const 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 const blockquoteLegacy = createPMNodeSpecFactory({
|
|
39
39
|
selectable: false,
|
40
40
|
defining: true
|
41
41
|
});
|
42
|
-
export const
|
43
|
-
content: '(paragraph | orderedList | bulletList | unsupportedBlock
|
42
|
+
export const blockquoteWithoutNestedCodeblockOrMedia = createPMNodeSpecFactory({
|
43
|
+
content: '(paragraph | orderedList | bulletList | unsupportedBlock)+',
|
44
44
|
group: 'block',
|
45
45
|
selectable: false,
|
46
46
|
defining: true
|
@@ -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 const 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 const 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('with_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 const 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
|
});
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
2
2
|
import { COLOR, FONT_STYLE, SEARCH_QUERY, LINK } from './groups';
|
3
3
|
import { link, em, strong, textColor, strike, subsup, underline, code, typeAheadQuery, confluenceInlineComment, breakout, alignment, indentation, annotation, unsupportedMark, unsupportedNodeAttribute, dataConsumer, fragment, border, backgroundColor } from './marks';
|
4
|
-
import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraph, text, bulletList, orderedListWithOrder, listItemWithTask, heading,
|
4
|
+
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, expand, nestedExpand, embedCard, caption } from './nodes';
|
5
5
|
function addItems(builtInItems, config, customSpecs = {}) {
|
6
6
|
if (!config) {
|
7
7
|
return {};
|
@@ -72,7 +72,7 @@ const nodesInOrder = [{
|
|
72
72
|
spec: heading
|
73
73
|
}, {
|
74
74
|
name: 'blockquote',
|
75
|
-
spec:
|
75
|
+
spec: blockquoteWithNestedCodeblockOrMedia
|
76
76
|
}, {
|
77
77
|
name: 'codeBlock',
|
78
78
|
spec: codeBlock
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
2
|
-
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpandStage0,
|
2
|
+
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpandStage0, blockquoteWithNestedCodeblockOrMedia, listItemWithDecisionStage0 } from './nodes';
|
3
3
|
import { createSchema } from './create-schema';
|
4
4
|
const getDefaultSchemaConfig = () => {
|
5
5
|
const defaultSchemaConfig = {
|
@@ -19,7 +19,7 @@ export const getSchemaBasedOnStage = memoizeOne((stage = 'final') => {
|
|
19
19
|
multiBodiedExtension: multiBodiedExtension,
|
20
20
|
extensionFrame: extensionFrame,
|
21
21
|
expand: expandWithNestedExpandStage0,
|
22
|
-
blockquote:
|
22
|
+
blockquote: blockquoteWithNestedCodeblockOrMedia,
|
23
23
|
listItem: listItemWithDecisionStage0
|
24
24
|
};
|
25
25
|
}
|
@@ -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, expandWithNestedExpandStage0, 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 @@ const nodeSpecOptions = {
|
|
14
14
|
}
|
15
15
|
};
|
16
16
|
export const blockquote = blockquoteLegacyFactory(nodeSpecOptions);
|
17
|
-
export const
|
17
|
+
export const blockquoteWithNestedCodeblockOrMedia = blockquoteFactory(nodeSpecOptions);
|
18
18
|
|
19
19
|
/**
|
20
20
|
* @name blockquote_with_list_node
|
21
21
|
*/
|
22
|
-
export const blockquoteWithList =
|
22
|
+
export const blockquoteWithList = blockquoteWithoutNestedCodeblockOrMediaFactory({
|
23
23
|
parseDOM: [{
|
24
24
|
tag: 'blockquote'
|
25
25
|
}],
|
@@ -3,7 +3,7 @@ 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
|
}
|
package/dist/esm/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList,
|
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
2
|
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandWithNestedExpandStage0, 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
|
|
@@ -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
|
@@ -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('with_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
|
});
|
@@ -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, expand, 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
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
2
|
-
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpandStage0,
|
2
|
+
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, expandWithNestedExpandStage0, blockquoteWithNestedCodeblockOrMedia, listItemWithDecisionStage0 } from './nodes';
|
3
3
|
import { createSchema } from './create-schema';
|
4
4
|
var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
|
5
5
|
var defaultSchemaConfig = {
|
@@ -20,7 +20,7 @@ export var getSchemaBasedOnStage = memoizeOne(function () {
|
|
20
20
|
multiBodiedExtension: multiBodiedExtension,
|
21
21
|
extensionFrame: extensionFrame,
|
22
22
|
expand: expandWithNestedExpandStage0,
|
23
|
-
blockquote:
|
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, expandWithNestedExpandStage0, 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
|
}],
|
@@ -3,7 +3,7 @@ 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
|
}
|
@@ -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
|
}
|
@@ -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": {
|
@@ -2487,9 +2460,6 @@
|
|
2487
2460
|
{
|
2488
2461
|
"$ref": "#/definitions/blockquote_node"
|
2489
2462
|
},
|
2490
|
-
{
|
2491
|
-
"$ref": "#/definitions/blockquote_with_nested_codeblock_or_media_node"
|
2492
|
-
},
|
2493
2463
|
{
|
2494
2464
|
"$ref": "#/definitions/decisionList_node"
|
2495
2465
|
},
|
@@ -2820,9 +2790,6 @@
|
|
2820
2790
|
{
|
2821
2791
|
"$ref": "#/definitions/blockquote_node"
|
2822
2792
|
},
|
2823
|
-
{
|
2824
|
-
"$ref": "#/definitions/blockquote_with_nested_codeblock_or_media_node"
|
2825
|
-
},
|
2826
2793
|
{
|
2827
2794
|
"$ref": "#/definitions/decisionList_node"
|
2828
2795
|
},
|
package/dist/types/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList,
|
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
3
|
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandWithNestedExpandStage0, 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';
|
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';
|
@@ -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,
|
7
|
-
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | CodeBlockWithNoMarksDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition |
|
6
|
+
import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BlockquoteWithoutNestedCodeblockOrMediaDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, CodeBlockWithNoMarksDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExpandWithNestedExpandStage0Definition, ExpandWithNoMarkDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelDefinition, PanelLegacyDefinition, 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 | TableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ExpandWithNoMarkDefinition | ExpandWithNestedExpandStage0Definition | 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>;
|
@@ -27,7 +27,7 @@ export type BlockCardNode = PMNode & BlockCardDefinition;
|
|
27
27
|
export declare const blockCard: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BlockCardNode>) => import("prosemirror-model").NodeSpec;
|
28
28
|
export interface BlockquoteDefinition {
|
29
29
|
type: 'blockquote';
|
30
|
-
content: Array<BulletListDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | UnsupportedBlockDefinition>;
|
30
|
+
content: Array<BulletListDefinition | CodeBlockWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | UnsupportedBlockDefinition>;
|
31
31
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
32
32
|
}
|
33
33
|
export type BlockquoteNode = PMNode & BlockquoteDefinition;
|
@@ -39,13 +39,13 @@ export interface BlockquoteLegacyDefinition {
|
|
39
39
|
}
|
40
40
|
export type BlockquoteLegacyNode = PMNode & BlockquoteLegacyDefinition;
|
41
41
|
export declare const blockquoteLegacy: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BlockquoteLegacyNode>) => import("prosemirror-model").NodeSpec;
|
42
|
-
export interface
|
42
|
+
export interface BlockquoteWithoutNestedCodeblockOrMediaDefinition {
|
43
43
|
type: 'blockquote';
|
44
|
-
content: Array<BulletListDefinition |
|
44
|
+
content: Array<BulletListDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | UnsupportedBlockDefinition>;
|
45
45
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
46
46
|
}
|
47
|
-
export type
|
48
|
-
export declare const
|
47
|
+
export type BlockquoteWithoutNestedCodeblockOrMediaNode = PMNode & BlockquoteWithoutNestedCodeblockOrMediaDefinition;
|
48
|
+
export declare const blockquoteWithoutNestedCodeblockOrMedia: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BlockquoteWithoutNestedCodeblockOrMediaNode>) => import("prosemirror-model").NodeSpec;
|
49
49
|
export interface BodiedExtensionDefinition {
|
50
50
|
type: 'bodiedExtension';
|
51
51
|
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockWithNoMarksDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
@@ -49,13 +49,17 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
|
|
49
49
|
};
|
50
50
|
};
|
51
51
|
};
|
52
|
-
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy", "
|
52
|
+
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy", "without_nested_codeblock_or_media"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
53
53
|
ignore: ("json-schema" | "validator-spec")[];
|
54
54
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
55
55
|
} & {
|
56
56
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
57
|
-
|
58
|
-
|
57
|
+
/**
|
58
|
+
* @DSLCompatibilityException
|
59
|
+
*
|
60
|
+
* Pseudo group used to match existing validator and json schema specs.
|
61
|
+
*/
|
62
|
+
ignore: ("json-schema" | "validator-spec")[];
|
59
63
|
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
60
64
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
61
65
|
ignore: ("json-schema" | "validator-spec")[];
|
@@ -1,8 +1,7 @@
|
|
1
|
-
export declare const blockquote: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy", "
|
1
|
+
export declare const blockquote: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy", "without_nested_codeblock_or_media"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
2
2
|
ignore: ("json-schema" | "validator-spec")[];
|
3
3
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
4
4
|
} & {
|
5
5
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
6
|
-
|
7
|
-
stage0: true;
|
6
|
+
ignore: ("json-schema" | "validator-spec")[];
|
8
7
|
}>;
|
@@ -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, expandWithNestedExpandStage0, 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 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';
|
3
3
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
4
4
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
@@ -16,7 +16,7 @@ export interface BlockQuoteDefinition {
|
|
16
16
|
content: Array<Paragraph | OrderedList | BulletList | CodeBlock | MediaGroup | MediaSingle>;
|
17
17
|
}
|
18
18
|
export declare const blockquote: import("prosemirror-model").NodeSpec;
|
19
|
-
export declare const
|
19
|
+
export declare const blockquoteWithNestedCodeblockOrMedia: import("prosemirror-model").NodeSpec;
|
20
20
|
/**
|
21
21
|
* @name blockquote_with_list_node
|
22
22
|
*/
|
@@ -5,7 +5,7 @@ export { confluenceUnsupportedBlock } from './confluence-unsupported-block';
|
|
5
5
|
export { confluenceUnsupportedInline } from './confluence-unsupported-inline';
|
6
6
|
export { doc } from './doc';
|
7
7
|
export type { DocNode } from './doc';
|
8
|
-
export { blockquote, blockquoteWithList,
|
8
|
+
export { blockquote, blockquoteWithList, blockquoteWithNestedCodeblockOrMedia, } from './blockquote';
|
9
9
|
export type { BlockQuoteDefinition } from './blockquote';
|
10
10
|
export { bulletList, bulletListSelector } from './bullet-list';
|
11
11
|
export type { BulletListDefinition } from './types/list';
|
@@ -1119,7 +1119,7 @@ export declare const orderedList: {
|
|
1119
1119
|
};
|
1120
1120
|
};
|
1121
1121
|
};
|
1122
|
-
export declare const
|
1122
|
+
export declare const mediaGroup: {
|
1123
1123
|
props: {
|
1124
1124
|
type: {
|
1125
1125
|
type: string;
|
@@ -1127,28 +1127,28 @@ export declare const blockquote: {
|
|
1127
1127
|
};
|
1128
1128
|
content: {
|
1129
1129
|
type: string;
|
1130
|
-
items: string[]
|
1130
|
+
items: string[];
|
1131
1131
|
minItems: number;
|
1132
1132
|
allowUnsupportedBlock: boolean;
|
1133
1133
|
};
|
1134
1134
|
};
|
1135
1135
|
};
|
1136
|
-
export declare const
|
1136
|
+
export declare const blockquote: {
|
1137
1137
|
props: {
|
1138
|
+
type: {
|
1139
|
+
type: string;
|
1140
|
+
values: string[];
|
1141
|
+
};
|
1138
1142
|
content: {
|
1139
1143
|
type: string;
|
1140
|
-
items: string[];
|
1144
|
+
items: string[][];
|
1141
1145
|
minItems: number;
|
1142
1146
|
allowUnsupportedBlock: boolean;
|
1143
1147
|
};
|
1144
1148
|
};
|
1145
|
-
}
|
1146
|
-
export declare const
|
1149
|
+
};
|
1150
|
+
export declare const blockquote_legacy: (string | {
|
1147
1151
|
props: {
|
1148
|
-
type: {
|
1149
|
-
type: string;
|
1150
|
-
values: string[];
|
1151
|
-
};
|
1152
1152
|
content: {
|
1153
1153
|
type: string;
|
1154
1154
|
items: string[];
|
@@ -1156,8 +1156,8 @@ export declare const mediaGroup: {
|
|
1156
1156
|
allowUnsupportedBlock: boolean;
|
1157
1157
|
};
|
1158
1158
|
};
|
1159
|
-
};
|
1160
|
-
export declare const
|
1159
|
+
})[];
|
1160
|
+
export declare const blockquote_without_nested_codeblock_or_media: (string | {
|
1161
1161
|
props: {
|
1162
1162
|
content: {
|
1163
1163
|
type: string;
|
package/json-schema/v1/full.json
CHANGED
@@ -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
|
}
|
@@ -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": {
|
@@ -2487,9 +2460,6 @@
|
|
2487
2460
|
{
|
2488
2461
|
"$ref": "#/definitions/blockquote_node"
|
2489
2462
|
},
|
2490
|
-
{
|
2491
|
-
"$ref": "#/definitions/blockquote_with_nested_codeblock_or_media_node"
|
2492
|
-
},
|
2493
2463
|
{
|
2494
2464
|
"$ref": "#/definitions/decisionList_node"
|
2495
2465
|
},
|
@@ -2820,9 +2790,6 @@
|
|
2820
2790
|
{
|
2821
2791
|
"$ref": "#/definitions/blockquote_node"
|
2822
2792
|
},
|
2823
|
-
{
|
2824
|
-
"$ref": "#/definitions/blockquote_with_nested_codeblock_or_media_node"
|
2825
|
-
},
|
2826
2793
|
{
|
2827
2794
|
"$ref": "#/definitions/decisionList_node"
|
2828
2795
|
},
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "40.
|
3
|
+
"version": "40.5.0",
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
5
5
|
"publishConfig": {
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"memoize-one": "^6.0.0"
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
|
-
"@atlassian/adf-schema-json": "^1.
|
49
|
+
"@atlassian/adf-schema-json": "^1.20.0",
|
50
50
|
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
51
51
|
"@atlaskit/adf-schema-generator": "^1.30.0",
|
52
52
|
"@atlaskit/codemod-utils": "^4.2.4",
|