@atlaskit/adf-schema 45.1.0 → 46.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/cjs/next-schema/full-schema.adf.js +1 -1
- package/dist/cjs/next-schema/generated/nodeTypes.js +6 -4
- package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -3
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/codeBlock.js +1 -18
- package/dist/cjs/next-schema/nodes/expand.js +4 -10
- package/dist/cjs/next-schema/nodes/text.js +3 -0
- package/dist/cjs/schema/nodes/expand.js +1 -1
- package/dist/cjs/validator-schema/generated/validatorSpec.js +15 -29
- package/dist/es2019/next-schema/full-schema.adf.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +5 -3
- package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -3
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/codeBlock.js +1 -18
- package/dist/es2019/next-schema/nodes/expand.js +4 -10
- package/dist/es2019/next-schema/nodes/text.js +3 -0
- package/dist/es2019/schema/nodes/expand.js +1 -1
- package/dist/es2019/validator-schema/generated/validatorSpec.js +14 -28
- package/dist/esm/next-schema/full-schema.adf.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +5 -3
- package/dist/esm/next-schema/groups/blockContentGroup.js +1 -3
- package/dist/esm/next-schema/groups/blockGroup.js +1 -1
- package/dist/esm/next-schema/nodes/codeBlock.js +1 -18
- package/dist/esm/next-schema/nodes/expand.js +4 -10
- package/dist/esm/next-schema/nodes/text.js +3 -0
- package/dist/esm/schema/nodes/expand.js +1 -1
- package/dist/esm/validator-schema/generated/validatorSpec.js +14 -28
- package/dist/json-schema/v1/full.json +56 -63
- package/dist/json-schema/v1/stage-0.json +56 -63
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +13 -8
- package/dist/types/next-schema/groups/blockContentGroup.d.ts +0 -2
- package/dist/types/next-schema/nodes/expand.d.ts +3 -8
- package/dist/types/next-schema/nodes/text.d.ts +4 -1
- package/dist/types/schema/nodes/doc.d.ts +2 -2
- package/dist/types/schema/nodes/expand.d.ts +2 -3
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +12 -26
- package/json-schema/v1/full.json +56 -63
- package/json-schema/v1/stage-0.json +56 -63
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,24 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 46.0.0
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- a0f224a: Remove `expand_with_with_no_mark` and replace `expand_with_breakout_mark` with `expand_root_only`
|
8
|
+
|
9
|
+
Upgrade instructions
|
10
|
+
|
11
|
+
- Replace `expand_with_breakout_mark` with `expand_root_only`
|
12
|
+
- Replace `expand_no_mark` with `expand`
|
13
|
+
|
14
|
+
## 45.2.0
|
15
|
+
|
16
|
+
### Minor Changes
|
17
|
+
|
18
|
+
- 0ad17eb: Remove DSL inconsistency for code block with text with new no mark text variant - no functionality changes.
|
19
|
+
|
20
|
+
Added: `text_with_no_marks` variant
|
21
|
+
|
3
22
|
## 45.1.0
|
4
23
|
|
5
24
|
### Minor Changes
|
@@ -14,7 +14,7 @@ var _codeBlock = require("./nodes/codeBlock");
|
|
14
14
|
var doc = (0, _adfSchemaGenerator.adfNode)('doc').define({
|
15
15
|
root: true,
|
16
16
|
version: 1,
|
17
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _blockContentGroup.blockContentGroup, _codeBlock.codeBlock.use('root_only'), _layoutSection.layoutSection, _layoutSection.layoutSection.use('with_single_column'), _layoutSection.layoutSection.use('full'), _blockRootOnlyGroup.blockRootOnlyGroup, _expand.expand.use('
|
17
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _blockContentGroup.blockContentGroup, _codeBlock.codeBlock.use('root_only'), _layoutSection.layoutSection, _layoutSection.layoutSection.use('with_single_column'), _layoutSection.layoutSection.use('full'), _blockRootOnlyGroup.blockRootOnlyGroup, _expand.expand.use('root_only')))],
|
18
18
|
DANGEROUS_MANUAL_OVERRIDE: {
|
19
19
|
'validator-spec': {
|
20
20
|
'props.content.minItems': {
|
@@ -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.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTable = exports.tableHeader = exports.tableCellWithNestedTable = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panelWithNestedBlockquoteStage0 = 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.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.expandWithoutNestedExpand = exports.
|
6
|
+
exports.unsupportedInline = exports.unsupportedBlock = exports.textWithNoMarks = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableWithNestedTable = exports.tableRowWithNestedTable = exports.tableRow = exports.tableHeaderWithNestedTable = exports.tableHeader = exports.tableCellWithNestedTable = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panelWithNestedBlockquoteStage0 = 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.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.expandWithoutNestedExpand = exports.expandRootOnly = 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.codeBlockRootOnly = 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
|
@@ -236,7 +236,7 @@ var decisionList = exports.decisionList = (0, _createPMSpecFactory.createPMNodeS
|
|
236
236
|
defining: true
|
237
237
|
});
|
238
238
|
var doc = exports.doc = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
239
|
-
content: '(block | codeBlock | layoutSection | blockRootOnly)+',
|
239
|
+
content: '(block | codeBlock | layoutSection | blockRootOnly | expand)+',
|
240
240
|
marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation dataConsumer fragment breakout'
|
241
241
|
});
|
242
242
|
var embedCard = exports.embedCard = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
@@ -307,8 +307,9 @@ var expand = exports.expand = (0, _createPMSpecFactory.createPMNodeSpecFactory)(
|
|
307
307
|
selectable: true,
|
308
308
|
isolating: true
|
309
309
|
});
|
310
|
-
var
|
311
|
-
|
310
|
+
var expandRootOnly = exports.expandRootOnly = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
311
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
|
312
|
+
marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
|
312
313
|
attrs: {
|
313
314
|
title: {
|
314
315
|
default: ''
|
@@ -1196,6 +1197,7 @@ var textCodeInline = exports.textCodeInline = (0, _createPMSpecFactory.createPMN
|
|
1196
1197
|
var textFormatted = exports.textFormatted = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
1197
1198
|
group: 'inline'
|
1198
1199
|
});
|
1200
|
+
var textWithNoMarks = exports.textWithNoMarks = (0, _createPMSpecFactory.createPMNodeSpecFactory)({});
|
1199
1201
|
var unsupportedBlock = exports.unsupportedBlock = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
1200
1202
|
group: 'block',
|
1201
1203
|
atom: true,
|
@@ -31,14 +31,12 @@ var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
|
31
31
|
*
|
32
32
|
* Has slight differences from the original blockGroup:
|
33
33
|
* - no base paragraph
|
34
|
-
* - no base codeBlock
|
35
34
|
* - no base extension
|
36
35
|
* - no base mediaSingle
|
37
36
|
* - no base heading
|
38
|
-
* - no base expand
|
39
37
|
*/
|
40
38
|
var blockContentGroup = exports.blockContentGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block_content', [_blockCard.blockCard, _paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock, _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _panel.panel.use('with_nested_blockquote'), _blockquote.blockquote, _blockquote.blockquote.use('without_nested_codeblock_or_media'), _extension.extension.use('with_marks'), _embedCard.embedCard, _tableNodes.table,
|
41
39
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
42
|
-
_tableNodes.table.use('with_nested_table'), _expand.expand
|
40
|
+
_tableNodes.table.use('with_nested_table'), _expand.expand, _expand.expand.use('without_nested_expand'), _bodiedExtension.bodiedExtension.use('with_marks'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
|
43
41
|
ignore: ['pm-spec']
|
44
42
|
});
|
@@ -26,7 +26,7 @@ var _task = require("../nodes/task");
|
|
26
26
|
var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
27
27
|
var blockGroup = exports.blockGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block', [_blockCard.blockCard, _codeBlock.codeBlock, _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('with_nested_blockquote'), _tableNodes.table,
|
28
28
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
29
|
-
_tableNodes.table.use('with_nested_table'), _bodiedExtension.bodiedExtension, _bodiedExtension.bodiedExtension.use('with_marks'), _expand.expand, _expand.expand.use('
|
29
|
+
_tableNodes.table.use('with_nested_table'), _bodiedExtension.bodiedExtension, _bodiedExtension.bodiedExtension.use('with_marks'), _expand.expand, _expand.expand.use('without_nested_expand'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
|
30
30
|
// @DSLCompatibilityException
|
31
31
|
// Block group in PM doesn't match ADF
|
32
32
|
ignore: ['validator-spec', 'json-schema']
|
@@ -26,24 +26,7 @@ var codeBlock = exports.codeBlock = (0, _adfSchemaGenerator.adfNode)('codeBlock'
|
|
26
26
|
}
|
27
27
|
},
|
28
28
|
noMarks: true,
|
29
|
-
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_text.text, _unsupportedInline.unsupportedInline))]
|
30
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
31
|
-
'validator-spec': {
|
32
|
-
'props.content.items': {
|
33
|
-
value: [['text', {
|
34
|
-
props: {
|
35
|
-
marks: {
|
36
|
-
items: [],
|
37
|
-
maxItems: 0,
|
38
|
-
optional: true,
|
39
|
-
type: 'array'
|
40
|
-
}
|
41
|
-
}
|
42
|
-
}]],
|
43
|
-
reason: '@DSLCompatibilityException - text variant is inlined, which is not supported by current transformation'
|
44
|
-
}
|
45
|
-
}
|
46
|
-
}
|
29
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_text.text.use('with_no_marks'), _unsupportedInline.unsupportedInline))]
|
47
30
|
})
|
48
31
|
// Variant used root scenario where we have breakout
|
49
32
|
.variant('root_only', {
|
@@ -13,8 +13,7 @@ var _nonNestableBlockContentGroup = require("../groups/nonNestableBlockContentGr
|
|
13
13
|
var expand = exports.expand = (0, _adfSchemaGenerator.adfNode)('expand').define({
|
14
14
|
isolating: true,
|
15
15
|
selectable: true,
|
16
|
-
|
17
|
-
hasEmptyMarks: true,
|
16
|
+
noMarks: true,
|
18
17
|
attrs: {
|
19
18
|
title: {
|
20
19
|
type: 'string',
|
@@ -39,13 +38,8 @@ var expand = exports.expand = (0, _adfSchemaGenerator.adfNode)('expand').define(
|
|
39
38
|
}).variant('without_nested_expand', {
|
40
39
|
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup))],
|
41
40
|
ignore: ['json-schema', 'validator-spec']
|
42
|
-
}).variant('
|
41
|
+
}).variant('root_only', {
|
43
42
|
marks: [_breakout.breakout, _unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
44
|
-
|
45
|
-
|
46
|
-
}).variant('with_no_mark', {
|
47
|
-
content: [],
|
48
|
-
marks: [],
|
49
|
-
noMarks: true,
|
50
|
-
ignore: []
|
43
|
+
noMarks: false,
|
44
|
+
noExtend: true
|
51
45
|
});
|
@@ -21,6 +21,9 @@ var _confluenceInlineComment = require("../marks/confluenceInlineComment");
|
|
21
21
|
var text = exports.text = (0, _adfSchemaGenerator.adfNode)('text').define({
|
22
22
|
marks: [],
|
23
23
|
hasEmptyMarks: true
|
24
|
+
}).variant('with_no_marks', {
|
25
|
+
marks: [],
|
26
|
+
noMarks: true
|
24
27
|
}).variant('link_inline', {
|
25
28
|
marks: [_link.link],
|
26
29
|
ignore: ['pm-spec', 'json-schema']
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.underline = exports.text_link_inline = exports.text_formatted = exports.text_code_inline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = 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_with_nested_blockquote = 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 = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_content = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.indentation = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = exports.extension_with_marks = exports.extensionFrame = exports.extension = exports.
|
6
|
+
exports.underline = exports.text_with_no_marks = exports.text_link_inline = exports.text_formatted = exports.text_code_inline = exports.textColor = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = 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_with_nested_blockquote = 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 = exports.link = exports.layoutSection_with_single_column = exports.layoutSection_full = exports.layoutSection = exports.layoutColumn = exports.inline_content = exports.inlineExtension_with_marks = exports.inlineExtension = exports.inlineCard = exports.indentation = exports.heading_with_no_marks = exports.heading_with_indentation = exports.heading_with_alignment = exports.heading = exports.hardBreak = exports.fragment = exports.extension_with_marks = exports.extensionFrame = exports.extension = exports.expand_root_only = exports.expand = exports.emoji = exports.embedCard = exports.em = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.dataConsumer = exports.confluenceInlineComment = exports.codeBlock_root_only = exports.codeBlock = exports.code = exports.caption = exports.bulletList = exports.breakout = exports.border = exports.bodiedExtension_with_marks = exports.bodiedExtension = exports.blockquote = exports.block_content = exports.blockRootOnly = exports.blockCard = exports.backgroundColor = exports.annotation = exports.alignment = void 0;
|
7
7
|
var alignment = exports.alignment = {
|
8
8
|
props: {
|
9
9
|
type: {
|
@@ -55,7 +55,7 @@ var backgroundColor = exports.backgroundColor = {
|
|
55
55
|
}
|
56
56
|
}
|
57
57
|
};
|
58
|
-
var block_content = exports.block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', '
|
58
|
+
var block_content = exports.block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
|
59
59
|
var blockCard = exports.blockCard = {
|
60
60
|
props: {
|
61
61
|
type: {
|
@@ -291,16 +291,7 @@ var codeBlock = exports.codeBlock = {
|
|
291
291
|
},
|
292
292
|
content: {
|
293
293
|
type: 'array',
|
294
|
-
items: [
|
295
|
-
props: {
|
296
|
-
marks: {
|
297
|
-
items: [],
|
298
|
-
maxItems: 0,
|
299
|
-
optional: true,
|
300
|
-
type: 'array'
|
301
|
-
}
|
302
|
-
}
|
303
|
-
}]],
|
294
|
+
items: ['text_with_no_marks'],
|
304
295
|
optional: true,
|
305
296
|
allowUnsupportedInline: true
|
306
297
|
}
|
@@ -427,7 +418,7 @@ var doc = exports.doc = {
|
|
427
418
|
},
|
428
419
|
content: {
|
429
420
|
type: 'array',
|
430
|
-
items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', '
|
421
|
+
items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only']],
|
431
422
|
allowUnsupportedBlock: true
|
432
423
|
}
|
433
424
|
}
|
@@ -521,15 +512,10 @@ var expand = exports.expand = {
|
|
521
512
|
items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
522
513
|
minItems: 1,
|
523
514
|
allowUnsupportedBlock: true
|
524
|
-
},
|
525
|
-
marks: {
|
526
|
-
type: 'array',
|
527
|
-
items: [],
|
528
|
-
optional: true
|
529
515
|
}
|
530
516
|
}
|
531
517
|
};
|
532
|
-
var
|
518
|
+
var expand_root_only = exports.expand_root_only = ['expand', {
|
533
519
|
props: {
|
534
520
|
marks: {
|
535
521
|
type: 'array',
|
@@ -538,16 +524,6 @@ var expand_with_breakout_mark = exports.expand_with_breakout_mark = ['expand', {
|
|
538
524
|
}
|
539
525
|
}
|
540
526
|
}];
|
541
|
-
var expand_with_no_mark = exports.expand_with_no_mark = ['expand', {
|
542
|
-
props: {
|
543
|
-
marks: {
|
544
|
-
type: 'array',
|
545
|
-
maxItems: 0,
|
546
|
-
items: [],
|
547
|
-
optional: true
|
548
|
-
}
|
549
|
-
}
|
550
|
-
}];
|
551
527
|
var extension = exports.extension = {
|
552
528
|
props: {
|
553
529
|
type: {
|
@@ -1729,6 +1705,16 @@ var text_link_inline = exports.text_link_inline = ['text', {
|
|
1729
1705
|
}
|
1730
1706
|
}
|
1731
1707
|
}];
|
1708
|
+
var text_with_no_marks = exports.text_with_no_marks = ['text', {
|
1709
|
+
props: {
|
1710
|
+
marks: {
|
1711
|
+
type: 'array',
|
1712
|
+
maxItems: 0,
|
1713
|
+
items: [],
|
1714
|
+
optional: true
|
1715
|
+
}
|
1716
|
+
}
|
1717
|
+
}];
|
1732
1718
|
var textColor = exports.textColor = {
|
1733
1719
|
props: {
|
1734
1720
|
type: {
|
@@ -8,7 +8,7 @@ import { codeBlock } from './nodes/codeBlock';
|
|
8
8
|
const doc = adfNode('doc').define({
|
9
9
|
root: true,
|
10
10
|
version: 1,
|
11
|
-
content: [$onePlus($or(blockGroup, blockContentGroup, codeBlock.use('root_only'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), blockRootOnlyGroup, expand.use('
|
11
|
+
content: [$onePlus($or(blockGroup, blockContentGroup, codeBlock.use('root_only'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), blockRootOnlyGroup, expand.use('root_only')))],
|
12
12
|
DANGEROUS_MANUAL_OVERRIDE: {
|
13
13
|
'validator-spec': {
|
14
14
|
'props.content.minItems': {
|
@@ -230,7 +230,7 @@ export const decisionList = createPMNodeSpecFactory({
|
|
230
230
|
defining: true
|
231
231
|
});
|
232
232
|
export const doc = createPMNodeSpecFactory({
|
233
|
-
content: '(block | codeBlock | layoutSection | blockRootOnly)+',
|
233
|
+
content: '(block | codeBlock | layoutSection | blockRootOnly | expand)+',
|
234
234
|
marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation dataConsumer fragment breakout'
|
235
235
|
});
|
236
236
|
export const embedCard = createPMNodeSpecFactory({
|
@@ -301,8 +301,9 @@ export const expand = createPMNodeSpecFactory({
|
|
301
301
|
selectable: true,
|
302
302
|
isolating: true
|
303
303
|
});
|
304
|
-
export const
|
305
|
-
|
304
|
+
export const expandRootOnly = createPMNodeSpecFactory({
|
305
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
|
306
|
+
marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
|
306
307
|
attrs: {
|
307
308
|
title: {
|
308
309
|
default: ''
|
@@ -1190,6 +1191,7 @@ export const textCodeInline = createPMNodeSpecFactory({
|
|
1190
1191
|
export const textFormatted = createPMNodeSpecFactory({
|
1191
1192
|
group: 'inline'
|
1192
1193
|
});
|
1194
|
+
export const textWithNoMarks = createPMNodeSpecFactory({});
|
1193
1195
|
export const unsupportedBlock = createPMNodeSpecFactory({
|
1194
1196
|
group: 'block',
|
1195
1197
|
atom: true,
|
@@ -26,14 +26,12 @@ import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
|
26
26
|
*
|
27
27
|
* Has slight differences from the original blockGroup:
|
28
28
|
* - no base paragraph
|
29
|
-
* - no base codeBlock
|
30
29
|
* - no base extension
|
31
30
|
* - no base mediaSingle
|
32
31
|
* - no base heading
|
33
|
-
* - no base expand
|
34
32
|
*/
|
35
33
|
export const blockContentGroup = adfNodeGroup('block_content', [blockCard, paragraph.use('with_no_marks'), paragraph.use('with_alignment'), paragraph.use('with_indentation'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, taskList, bulletList, orderedList, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), mediaGroup, decisionList, rule, panel, panel.use('with_nested_blockquote'), blockquote, blockquote.use('without_nested_codeblock_or_media'), extension.use('with_marks'), embedCard, table,
|
36
34
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
37
|
-
table.use('with_nested_table'), expand
|
35
|
+
table.use('with_nested_table'), expand, expand.use('without_nested_expand'), bodiedExtension.use('with_marks'), confluenceUnsupportedBlock, unsupportedBlock], {
|
38
36
|
ignore: ['pm-spec']
|
39
37
|
});
|
@@ -20,7 +20,7 @@ import { taskList } from '../nodes/task';
|
|
20
20
|
import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
21
21
|
export const blockGroup = adfNodeGroup('block', [blockCard, codeBlock, 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('with_nested_blockquote'), table,
|
22
22
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
23
|
-
table.use('with_nested_table'), bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('
|
23
|
+
table.use('with_nested_table'), bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('without_nested_expand'), confluenceUnsupportedBlock, unsupportedBlock], {
|
24
24
|
// @DSLCompatibilityException
|
25
25
|
// Block group in PM doesn't match ADF
|
26
26
|
ignore: ['validator-spec', 'json-schema']
|
@@ -20,24 +20,7 @@ export const codeBlock = adfNode('codeBlock').define({
|
|
20
20
|
}
|
21
21
|
},
|
22
22
|
noMarks: true,
|
23
|
-
content: [$zeroPlus($or(text, unsupportedInline))]
|
24
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
25
|
-
'validator-spec': {
|
26
|
-
'props.content.items': {
|
27
|
-
value: [['text', {
|
28
|
-
props: {
|
29
|
-
marks: {
|
30
|
-
items: [],
|
31
|
-
maxItems: 0,
|
32
|
-
optional: true,
|
33
|
-
type: 'array'
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}]],
|
37
|
-
reason: '@DSLCompatibilityException - text variant is inlined, which is not supported by current transformation'
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}
|
23
|
+
content: [$zeroPlus($or(text.use('with_no_marks'), unsupportedInline))]
|
41
24
|
})
|
42
25
|
// Variant used root scenario where we have breakout
|
43
26
|
.variant('root_only', {
|
@@ -7,8 +7,7 @@ import { nonNestableBlockContentGroup } from '../groups/nonNestableBlockContentG
|
|
7
7
|
export const expand = adfNode('expand').define({
|
8
8
|
isolating: true,
|
9
9
|
selectable: true,
|
10
|
-
|
11
|
-
hasEmptyMarks: true,
|
10
|
+
noMarks: true,
|
12
11
|
attrs: {
|
13
12
|
title: {
|
14
13
|
type: 'string',
|
@@ -33,13 +32,8 @@ export const expand = adfNode('expand').define({
|
|
33
32
|
}).variant('without_nested_expand', {
|
34
33
|
content: [$onePlus($or(nonNestableBlockContentGroup))],
|
35
34
|
ignore: ['json-schema', 'validator-spec']
|
36
|
-
}).variant('
|
35
|
+
}).variant('root_only', {
|
37
36
|
marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
|
38
|
-
|
39
|
-
|
40
|
-
}).variant('with_no_mark', {
|
41
|
-
content: [],
|
42
|
-
marks: [],
|
43
|
-
noMarks: true,
|
44
|
-
ignore: []
|
37
|
+
noMarks: false,
|
38
|
+
noExtend: true
|
45
39
|
});
|
@@ -15,6 +15,9 @@ import { confluenceInlineComment } from '../marks/confluenceInlineComment';
|
|
15
15
|
export const text = adfNode('text').define({
|
16
16
|
marks: [],
|
17
17
|
hasEmptyMarks: true
|
18
|
+
}).variant('with_no_marks', {
|
19
|
+
marks: [],
|
20
|
+
noMarks: true
|
18
21
|
}).variant('link_inline', {
|
19
22
|
marks: [link],
|
20
23
|
ignore: ['pm-spec', 'json-schema']
|
@@ -49,7 +49,7 @@ export const backgroundColor = {
|
|
49
49
|
}
|
50
50
|
}
|
51
51
|
};
|
52
|
-
export const block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', '
|
52
|
+
export const block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
|
53
53
|
export const blockCard = {
|
54
54
|
props: {
|
55
55
|
type: {
|
@@ -285,16 +285,7 @@ export const codeBlock = {
|
|
285
285
|
},
|
286
286
|
content: {
|
287
287
|
type: 'array',
|
288
|
-
items: [
|
289
|
-
props: {
|
290
|
-
marks: {
|
291
|
-
items: [],
|
292
|
-
maxItems: 0,
|
293
|
-
optional: true,
|
294
|
-
type: 'array'
|
295
|
-
}
|
296
|
-
}
|
297
|
-
}]],
|
288
|
+
items: ['text_with_no_marks'],
|
298
289
|
optional: true,
|
299
290
|
allowUnsupportedInline: true
|
300
291
|
}
|
@@ -421,7 +412,7 @@ export const doc = {
|
|
421
412
|
},
|
422
413
|
content: {
|
423
414
|
type: 'array',
|
424
|
-
items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', '
|
415
|
+
items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only']],
|
425
416
|
allowUnsupportedBlock: true
|
426
417
|
}
|
427
418
|
}
|
@@ -515,15 +506,10 @@ export const expand = {
|
|
515
506
|
items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
516
507
|
minItems: 1,
|
517
508
|
allowUnsupportedBlock: true
|
518
|
-
},
|
519
|
-
marks: {
|
520
|
-
type: 'array',
|
521
|
-
items: [],
|
522
|
-
optional: true
|
523
509
|
}
|
524
510
|
}
|
525
511
|
};
|
526
|
-
export const
|
512
|
+
export const expand_root_only = ['expand', {
|
527
513
|
props: {
|
528
514
|
marks: {
|
529
515
|
type: 'array',
|
@@ -532,16 +518,6 @@ export const expand_with_breakout_mark = ['expand', {
|
|
532
518
|
}
|
533
519
|
}
|
534
520
|
}];
|
535
|
-
export const expand_with_no_mark = ['expand', {
|
536
|
-
props: {
|
537
|
-
marks: {
|
538
|
-
type: 'array',
|
539
|
-
maxItems: 0,
|
540
|
-
items: [],
|
541
|
-
optional: true
|
542
|
-
}
|
543
|
-
}
|
544
|
-
}];
|
545
521
|
export const extension = {
|
546
522
|
props: {
|
547
523
|
type: {
|
@@ -1723,6 +1699,16 @@ export const text_link_inline = ['text', {
|
|
1723
1699
|
}
|
1724
1700
|
}
|
1725
1701
|
}];
|
1702
|
+
export const text_with_no_marks = ['text', {
|
1703
|
+
props: {
|
1704
|
+
marks: {
|
1705
|
+
type: 'array',
|
1706
|
+
maxItems: 0,
|
1707
|
+
items: [],
|
1708
|
+
optional: true
|
1709
|
+
}
|
1710
|
+
}
|
1711
|
+
}];
|
1726
1712
|
export const textColor = {
|
1727
1713
|
props: {
|
1728
1714
|
type: {
|
@@ -8,7 +8,7 @@ import { codeBlock } from './nodes/codeBlock';
|
|
8
8
|
var doc = adfNode('doc').define({
|
9
9
|
root: true,
|
10
10
|
version: 1,
|
11
|
-
content: [$onePlus($or(blockGroup, blockContentGroup, codeBlock.use('root_only'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), blockRootOnlyGroup, expand.use('
|
11
|
+
content: [$onePlus($or(blockGroup, blockContentGroup, codeBlock.use('root_only'), layoutSection, layoutSection.use('with_single_column'), layoutSection.use('full'), blockRootOnlyGroup, expand.use('root_only')))],
|
12
12
|
DANGEROUS_MANUAL_OVERRIDE: {
|
13
13
|
'validator-spec': {
|
14
14
|
'props.content.minItems': {
|
@@ -230,7 +230,7 @@ export var decisionList = createPMNodeSpecFactory({
|
|
230
230
|
defining: true
|
231
231
|
});
|
232
232
|
export var doc = createPMNodeSpecFactory({
|
233
|
-
content: '(block | codeBlock | layoutSection | blockRootOnly)+',
|
233
|
+
content: '(block | codeBlock | layoutSection | blockRootOnly | expand)+',
|
234
234
|
marks: 'unsupportedMark unsupportedNodeAttribute alignment indentation dataConsumer fragment breakout'
|
235
235
|
});
|
236
236
|
export var embedCard = createPMNodeSpecFactory({
|
@@ -301,8 +301,9 @@ export var expand = createPMNodeSpecFactory({
|
|
301
301
|
selectable: true,
|
302
302
|
isolating: true
|
303
303
|
});
|
304
|
-
export var
|
305
|
-
|
304
|
+
export var expandRootOnly = createPMNodeSpecFactory({
|
305
|
+
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | blockCard | embedCard | extension | unsupportedBlock | nestedExpand)+',
|
306
|
+
marks: 'unsupportedMark unsupportedNodeAttribute fragment dataConsumer',
|
306
307
|
attrs: {
|
307
308
|
title: {
|
308
309
|
default: ''
|
@@ -1190,6 +1191,7 @@ export var textCodeInline = createPMNodeSpecFactory({
|
|
1190
1191
|
export var textFormatted = createPMNodeSpecFactory({
|
1191
1192
|
group: 'inline'
|
1192
1193
|
});
|
1194
|
+
export var textWithNoMarks = createPMNodeSpecFactory({});
|
1193
1195
|
export var unsupportedBlock = createPMNodeSpecFactory({
|
1194
1196
|
group: 'block',
|
1195
1197
|
atom: true,
|
@@ -26,14 +26,12 @@ import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
|
26
26
|
*
|
27
27
|
* Has slight differences from the original blockGroup:
|
28
28
|
* - no base paragraph
|
29
|
-
* - no base codeBlock
|
30
29
|
* - no base extension
|
31
30
|
* - no base mediaSingle
|
32
31
|
* - no base heading
|
33
|
-
* - no base expand
|
34
32
|
*/
|
35
33
|
export var blockContentGroup = adfNodeGroup('block_content', [blockCard, paragraph.use('with_no_marks'), paragraph.use('with_alignment'), paragraph.use('with_indentation'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock, taskList, bulletList, orderedList, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), mediaGroup, decisionList, rule, panel, panel.use('with_nested_blockquote'), blockquote, blockquote.use('without_nested_codeblock_or_media'), extension.use('with_marks'), embedCard, table,
|
36
34
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
37
|
-
table.use('with_nested_table'), expand
|
35
|
+
table.use('with_nested_table'), expand, expand.use('without_nested_expand'), bodiedExtension.use('with_marks'), confluenceUnsupportedBlock, unsupportedBlock], {
|
38
36
|
ignore: ['pm-spec']
|
39
37
|
});
|
@@ -20,7 +20,7 @@ import { taskList } from '../nodes/task';
|
|
20
20
|
import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
21
21
|
export var blockGroup = adfNodeGroup('block', [blockCard, codeBlock, 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('with_nested_blockquote'), table,
|
22
22
|
// @ts-expect-error - types don't deal well with circular references for the variant
|
23
|
-
table.use('with_nested_table'), bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('
|
23
|
+
table.use('with_nested_table'), bodiedExtension, bodiedExtension.use('with_marks'), expand, expand.use('without_nested_expand'), confluenceUnsupportedBlock, unsupportedBlock], {
|
24
24
|
// @DSLCompatibilityException
|
25
25
|
// Block group in PM doesn't match ADF
|
26
26
|
ignore: ['validator-spec', 'json-schema']
|
@@ -20,24 +20,7 @@ export var codeBlock = adfNode('codeBlock').define({
|
|
20
20
|
}
|
21
21
|
},
|
22
22
|
noMarks: true,
|
23
|
-
content: [$zeroPlus($or(text, unsupportedInline))]
|
24
|
-
DANGEROUS_MANUAL_OVERRIDE: {
|
25
|
-
'validator-spec': {
|
26
|
-
'props.content.items': {
|
27
|
-
value: [['text', {
|
28
|
-
props: {
|
29
|
-
marks: {
|
30
|
-
items: [],
|
31
|
-
maxItems: 0,
|
32
|
-
optional: true,
|
33
|
-
type: 'array'
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}]],
|
37
|
-
reason: '@DSLCompatibilityException - text variant is inlined, which is not supported by current transformation'
|
38
|
-
}
|
39
|
-
}
|
40
|
-
}
|
23
|
+
content: [$zeroPlus($or(text.use('with_no_marks'), unsupportedInline))]
|
41
24
|
})
|
42
25
|
// Variant used root scenario where we have breakout
|
43
26
|
.variant('root_only', {
|