@atlaskit/adf-schema 37.1.20 → 37.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/next-schema/full-schema.adf.js +2 -1
- package/dist/cjs/next-schema/generated/nodeTypes.js +23 -1
- package/dist/cjs/next-schema/groups/blockContentGroup.js +42 -0
- package/dist/cjs/next-schema/groups/blockGroup.js +5 -1
- package/dist/cjs/next-schema/groups/inlineContentGroup.js +33 -0
- package/dist/cjs/next-schema/groups/inlineGroup.js +5 -1
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +10 -2
- package/dist/cjs/next-schema/nodes/bodiedExtension.js +1 -3
- package/dist/cjs/next-schema/nodes/decisionItem.js +2 -1
- package/dist/cjs/next-schema/nodes/expand.js +1 -3
- package/dist/cjs/next-schema/nodes/extension.js +1 -2
- package/dist/cjs/next-schema/nodes/heading.js +2 -1
- package/dist/cjs/next-schema/nodes/layoutColumn.js +2 -1
- package/dist/cjs/next-schema/nodes/mediaSingle.js +0 -1
- package/dist/cjs/next-schema/nodes/paragraph.js +2 -1
- package/dist/cjs/next-schema/nodes/task.js +2 -1
- package/dist/es2019/next-schema/full-schema.adf.js +2 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +22 -0
- package/dist/es2019/next-schema/groups/blockContentGroup.js +37 -0
- package/dist/es2019/next-schema/groups/blockGroup.js +5 -1
- package/dist/es2019/next-schema/groups/inlineContentGroup.js +28 -0
- package/dist/es2019/next-schema/groups/inlineGroup.js +5 -1
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +9 -1
- package/dist/es2019/next-schema/nodes/bodiedExtension.js +2 -2
- package/dist/es2019/next-schema/nodes/decisionItem.js +2 -1
- package/dist/es2019/next-schema/nodes/expand.js +2 -2
- package/dist/es2019/next-schema/nodes/extension.js +1 -2
- package/dist/es2019/next-schema/nodes/heading.js +2 -1
- package/dist/es2019/next-schema/nodes/layoutColumn.js +2 -1
- package/dist/es2019/next-schema/nodes/mediaSingle.js +0 -1
- package/dist/es2019/next-schema/nodes/paragraph.js +2 -1
- package/dist/es2019/next-schema/nodes/task.js +2 -1
- package/dist/esm/next-schema/full-schema.adf.js +2 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +22 -0
- package/dist/esm/next-schema/groups/blockContentGroup.js +37 -0
- package/dist/esm/next-schema/groups/blockGroup.js +5 -1
- package/dist/esm/next-schema/groups/inlineContentGroup.js +28 -0
- package/dist/esm/next-schema/groups/inlineGroup.js +5 -1
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +9 -1
- package/dist/esm/next-schema/nodes/bodiedExtension.js +2 -3
- package/dist/esm/next-schema/nodes/decisionItem.js +2 -1
- package/dist/esm/next-schema/nodes/expand.js +2 -3
- package/dist/esm/next-schema/nodes/extension.js +1 -2
- package/dist/esm/next-schema/nodes/heading.js +2 -1
- package/dist/esm/next-schema/nodes/layoutColumn.js +2 -1
- package/dist/esm/next-schema/nodes/mediaSingle.js +0 -1
- package/dist/esm/next-schema/nodes/paragraph.js +2 -1
- package/dist/esm/next-schema/nodes/task.js +2 -1
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +4 -5
- package/dist/types/next-schema/generated/nodeTypes.d.ts +79 -66
- package/dist/types/next-schema/groups/blockContentGroup.d.ts +14 -0
- package/dist/types/next-schema/groups/inlineContentGroup.d.ts +10 -0
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +6 -0
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/adfToValidatorSpecValidation.unit.ts +4 -9
- package/schema-generators/__tests__/unit/json-full-schema-backwards-compat.unit.ts +0 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 37.1.22
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 16c9ef7: Make extension, inlineExtension and mediaInline backwards compatible
|
8
|
+
|
9
|
+
## 37.1.21
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- 988f8c6: add known and unknown to PM groups to DSL
|
14
|
+
|
3
15
|
## 37.1.20
|
4
16
|
|
5
17
|
### Patch Changes
|
@@ -8,9 +8,10 @@ var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
|
8
8
|
var _blockGroup = require("./groups/blockGroup");
|
9
9
|
var _layoutSection = require("./nodes/layoutSection");
|
10
10
|
var _blockRootOnlyGroup = require("./groups/blockRootOnlyGroup");
|
11
|
+
var _blockContentGroup = require("./groups/blockContentGroup");
|
11
12
|
var doc = (0, _adfSchemaGenerator.adfNode)('doc').define({
|
12
13
|
root: true,
|
13
14
|
version: 1,
|
14
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _layoutSection.layoutSection, _layoutSection.layoutSection.use('full'), _blockRootOnlyGroup.blockRootOnlyGroup))]
|
15
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _blockContentGroup.blockContentGroup, _layoutSection.layoutSection, _layoutSection.layoutSection.use('full'), _blockRootOnlyGroup.blockRootOnlyGroup))]
|
15
16
|
});
|
16
17
|
var _default = exports.default = doc;
|
@@ -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.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panelLegacy = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtension = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemLegacy = exports.listItem = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrame = exports.extension = exports.expandWithNoMark = exports.expand = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockWithNoMarks = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteLegacy = exports.blockquote = exports.blockCard = void 0;
|
6
|
+
exports.unsupportedInline = exports.unsupportedBlock = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell = exports.table = 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.multiBodiedExtension = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemLegacy = exports.listItem = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrame = exports.extension = exports.expandWithNoMark = exports.expand = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockWithNoMarks = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteLegacy = exports.blockquote = exports.blockCard = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
8
|
/**
|
9
9
|
* This file was automatically generated by @atlaskit/adf-schema-generator
|
@@ -432,6 +432,28 @@ var inlineCard = exports.inlineCard = (0, _adfSchemaGenerator.createPMNodeSpecFa
|
|
432
432
|
selectable: true,
|
433
433
|
draggable: true
|
434
434
|
});
|
435
|
+
var inlineExtension = exports.inlineExtension = (0, _adfSchemaGenerator.createPMNodeSpecFactory)({
|
436
|
+
group: 'inline',
|
437
|
+
inline: true,
|
438
|
+
attrs: {
|
439
|
+
extensionKey: {
|
440
|
+
default: ''
|
441
|
+
},
|
442
|
+
extensionType: {
|
443
|
+
default: ''
|
444
|
+
},
|
445
|
+
parameters: {
|
446
|
+
default: null
|
447
|
+
},
|
448
|
+
text: {
|
449
|
+
default: null
|
450
|
+
},
|
451
|
+
localId: {
|
452
|
+
default: null
|
453
|
+
}
|
454
|
+
},
|
455
|
+
selectable: true
|
456
|
+
});
|
435
457
|
var inlineExtensionWithMarks = exports.inlineExtensionWithMarks = (0, _adfSchemaGenerator.createPMNodeSpecFactory)({
|
436
458
|
group: 'inline',
|
437
459
|
inline: true,
|
@@ -0,0 +1,42 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.blockContentGroup = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _blockCard = require("../nodes/blockCard");
|
9
|
+
var _blockquote = require("../nodes/blockquote");
|
10
|
+
var _bodiedExtension = require("../nodes/bodiedExtension");
|
11
|
+
var _codeBlock = require("../nodes/codeBlock");
|
12
|
+
var _confluenceUnsupportedBlock = require("../nodes/confluenceUnsupportedBlock");
|
13
|
+
var _decisionList = require("../nodes/decisionList");
|
14
|
+
var _embedCard = require("../nodes/embedCard");
|
15
|
+
var _expand = require("../nodes/expand");
|
16
|
+
var _extension = require("../nodes/extension");
|
17
|
+
var _heading = require("../nodes/heading");
|
18
|
+
var _list = require("../nodes/list");
|
19
|
+
var _mediaGroup = require("../nodes/mediaGroup");
|
20
|
+
var _mediaSingle = require("../nodes/mediaSingle");
|
21
|
+
var _panel = require("../nodes/panel");
|
22
|
+
var _paragraph = require("../nodes/paragraph");
|
23
|
+
var _rule = require("../nodes/rule");
|
24
|
+
var _table = require("../nodes/table");
|
25
|
+
var _task = require("../nodes/task");
|
26
|
+
var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
27
|
+
/**
|
28
|
+
* @DSLCompatibilityException
|
29
|
+
*
|
30
|
+
* Pseudo group used to match existing validator and json schema specs.
|
31
|
+
*
|
32
|
+
* Has slight differences from the original blockGroup:
|
33
|
+
* - no base paragraph
|
34
|
+
* - no base codeBlock
|
35
|
+
* - no base extension
|
36
|
+
* - no base mediaSingle
|
37
|
+
* - no base heading
|
38
|
+
* - no base expand
|
39
|
+
*/
|
40
|
+
var blockContentGroup = exports.blockContentGroup = (0, _adfSchemaGenerator.adfNodeGroup)('block_content', [_blockCard.blockCard, _blockquote.blockquote, _bodiedExtension.bodiedExtension.use('with_marks'), _list.bulletList, _codeBlock.codeBlock.use('with_no_marks'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _decisionList.decisionList, _embedCard.embedCard, _expand.expand.use('with_no_mark'), _extension.extension.use('with_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _heading.heading.use('with_no_marks'), _mediaGroup.mediaGroup, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _list.orderedList, _panel.panel, _paragraph.paragraph.use('with_alignment'), _paragraph.paragraph.use('with_indentation'), _paragraph.paragraph.use('with_no_marks'), _rule.rule, _table.table, _task.taskList, _unsupportedBlock.unsupportedBlock], {
|
41
|
+
ignore: ['pm-spec', 'json-schema']
|
42
|
+
});
|
@@ -24,4 +24,8 @@ 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'), _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'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.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'), _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'), _confluenceUnsupportedBlock.confluenceUnsupportedBlock, _unsupportedBlock.unsupportedBlock], {
|
28
|
+
// @DSLCompatibilityException
|
29
|
+
// Block group in PM doesn't match ADF
|
30
|
+
ignore: ['validator-spec']
|
31
|
+
});
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.inlineContentGroup = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _date = require("../nodes/date");
|
9
|
+
var _emoji = require("../nodes/emoji");
|
10
|
+
var _hardBreak = require("../nodes/hardBreak");
|
11
|
+
var _inlineCard = require("../nodes/inlineCard");
|
12
|
+
var _mention = require("../nodes/mention");
|
13
|
+
var _placeholder = require("../nodes/placeholder");
|
14
|
+
var _text = require("../nodes/text");
|
15
|
+
var _status = require("../nodes/status");
|
16
|
+
var _inlineExtension = require("../nodes/inlineExtension");
|
17
|
+
var _mediaInline = require("../nodes/mediaInline");
|
18
|
+
var _unsupportedInline = require("../nodes/unsupportedInline");
|
19
|
+
var _confluenceUnsupportedInline = require("../nodes/confluenceUnsupportedInline");
|
20
|
+
var _image = require("../nodes/image");
|
21
|
+
var _confluenceJiraIssue = require("../nodes/confluenceJiraIssue");
|
22
|
+
/**
|
23
|
+
* @DSLCompatibilityException
|
24
|
+
*
|
25
|
+
* Pseudo group used to match existing validator and json schema specs.
|
26
|
+
*
|
27
|
+
* Has slight differences from the original inlineGroup:
|
28
|
+
* - no text
|
29
|
+
* - no text.use('link_inline')
|
30
|
+
*/
|
31
|
+
var inlineContentGroup = exports.inlineContentGroup = (0, _adfSchemaGenerator.adfNodeGroup)('inline_content', [_text.text.use('formatted'), _text.text.use('code_inline'), _date.date, _emoji.emoji, _hardBreak.hardBreak, _inlineCard.inlineCard, _mention.mention, _placeholder.placeholder, _status.status, _inlineExtension.inlineExtension.use('with_marks'), _mediaInline.mediaInline, _image.image, _confluenceJiraIssue.confluenceJiraIssue, _confluenceUnsupportedInline.confluenceUnsupportedInline, _unsupportedInline.unsupportedInline], {
|
32
|
+
ignore: ['pm-spec', 'json-schema']
|
33
|
+
});
|
@@ -19,4 +19,8 @@ var _unsupportedInline = require("../nodes/unsupportedInline");
|
|
19
19
|
var _confluenceUnsupportedInline = require("../nodes/confluenceUnsupportedInline");
|
20
20
|
var _image = require("../nodes/image");
|
21
21
|
var _confluenceJiraIssue = require("../nodes/confluenceJiraIssue");
|
22
|
-
var inlineGroup = exports.inlineGroup = (0, _adfSchemaGenerator.adfNodeGroup)('inline', [_text.text, _text.text.use('link_inline'), _text.text.use('formatted'), _text.text.use('code_inline'), _date.date, _emoji.emoji, _hardBreak.hardBreak, _inlineCard.inlineCard, _mention.mention, _placeholder.placeholder, _status.status, _inlineExtension.inlineExtension.use('with_marks'), _mediaInline.mediaInline, _image.image, _confluenceJiraIssue.confluenceJiraIssue, _confluenceUnsupportedInline.confluenceUnsupportedInline, _unsupportedInline.unsupportedInline]
|
22
|
+
var inlineGroup = exports.inlineGroup = (0, _adfSchemaGenerator.adfNodeGroup)('inline', [_text.text, _text.text.use('link_inline'), _text.text.use('formatted'), _text.text.use('code_inline'), _date.date, _emoji.emoji, _hardBreak.hardBreak, _inlineCard.inlineCard, _mention.mention, _placeholder.placeholder, _status.status, _inlineExtension.inlineExtension, _inlineExtension.inlineExtension.use('with_marks'), _mediaInline.mediaInline, _image.image, _confluenceJiraIssue.confluenceJiraIssue, _confluenceUnsupportedInline.confluenceUnsupportedInline, _unsupportedInline.unsupportedInline], {
|
23
|
+
// @DSLCompatibilityException
|
24
|
+
// Inline group in PM doesn't match ADF
|
25
|
+
ignore: ['validator-spec']
|
26
|
+
});
|
@@ -3,7 +3,8 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.nonNestableBlockContent = void 0;
|
6
|
+
exports.nonNestableBlockContentGroup = exports.nonNestableBlockContent = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
7
8
|
var _blockCard = require("../nodes/blockCard");
|
8
9
|
var _blockquote = require("../nodes/blockquote");
|
9
10
|
var _codeBlock = require("../nodes/codeBlock");
|
@@ -22,4 +23,11 @@ var _task = require("../nodes/task");
|
|
22
23
|
var _unsupportedBlock = require("../nodes/unsupportedBlock");
|
23
24
|
// Not an actual group, but a collection of nodes that can't be nested inside each other
|
24
25
|
// TODO: make it an actual group
|
25
|
-
var nonNestableBlockContent = exports.nonNestableBlockContent = [_codeBlock.codeBlock.use('with_no_marks'), _blockCard.blockCard, _paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote, _extension.extension.use('with_marks'), _embedCard.embedCard, _table.table, _unsupportedBlock.unsupportedBlock];
|
26
|
+
var nonNestableBlockContent = exports.nonNestableBlockContent = [_codeBlock.codeBlock.use('with_no_marks'), _blockCard.blockCard, _paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote, _extension.extension.use('with_marks'), _embedCard.embedCard, _table.table, _unsupportedBlock.unsupportedBlock];
|
27
|
+
|
28
|
+
/**
|
29
|
+
* @DSLCompatibilityException
|
30
|
+
*
|
31
|
+
* Pseudo group used to match existing validator and json schema specs.
|
32
|
+
*/
|
33
|
+
var nonNestableBlockContentGroup = exports.nonNestableBlockContentGroup = (0, _adfSchemaGenerator.adfNodeGroup)('non_nestable_block_content', nonNestableBlockContent);
|
@@ -1,11 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
5
4
|
value: true
|
6
5
|
});
|
7
6
|
exports.bodiedExtension = void 0;
|
8
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
9
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
10
8
|
var _nonNestableBlockContentGroup = require("../groups/nonNestableBlockContentGroup");
|
11
9
|
var _dataConsumer = require("../marks/dataConsumer");
|
@@ -52,7 +50,7 @@ var bodiedExtension = exports.bodiedExtension = (0, _adfSchemaGenerator.adfNode)
|
|
52
50
|
default: null
|
53
51
|
}
|
54
52
|
},
|
55
|
-
content: [(0, _adfSchemaGenerator.$onePlus)(
|
53
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup))],
|
56
54
|
ignore: ['json-schema']
|
57
55
|
}).variant('with_marks', {
|
58
56
|
marks: [_dataConsumer.dataConsumer, _fragment.fragment, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.decisionItem = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _inlineContentGroup = require("../groups/inlineContentGroup");
|
8
9
|
var _inlineGroup = require("../groups/inlineGroup");
|
9
10
|
var _unsupportedMark = require("../marks/unsupportedMark");
|
10
11
|
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
@@ -22,5 +23,5 @@ var decisionItem = exports.decisionItem = (0, _adfSchemaGenerator.adfNode)('deci
|
|
22
23
|
default: 'DECIDED'
|
23
24
|
}
|
24
25
|
},
|
25
|
-
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup))]
|
26
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _inlineContentGroup.inlineContentGroup))]
|
26
27
|
});
|
@@ -1,11 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
5
4
|
value: true
|
6
5
|
});
|
7
6
|
exports.expand = void 0;
|
8
|
-
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
9
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
10
8
|
var _nonNestableBlockContentGroup = require("../groups/nonNestableBlockContentGroup");
|
11
9
|
var _breakout = require("../marks/breakout");
|
@@ -27,7 +25,7 @@ var expand = exports.expand = (0, _adfSchemaGenerator.adfNode)('expand').define(
|
|
27
25
|
optional: true
|
28
26
|
}
|
29
27
|
},
|
30
|
-
content: [(0, _adfSchemaGenerator.$onePlus)(
|
28
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_nonNestableBlockContentGroup.nonNestableBlockContentGroup))],
|
31
29
|
ignore: ['json-schema']
|
32
30
|
}).variant('with_breakout_mark', {
|
33
31
|
marks: [_breakout.breakout, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
@@ -47,8 +47,7 @@ var extension = exports.extension = (0, _adfSchemaGenerator.adfNode)('extension'
|
|
47
47
|
optional: true,
|
48
48
|
default: null
|
49
49
|
}
|
50
|
-
}
|
51
|
-
ignore: ['json-schema']
|
50
|
+
}
|
52
51
|
}).variant('with_marks', {
|
53
52
|
marks: [_dataConsumer.dataConsumer, _fragment.fragment, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
54
53
|
ignore: []
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.headingWithMarks = exports.heading = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _inlineContentGroup = require("../groups/inlineContentGroup");
|
8
9
|
var _inlineGroup = require("../groups/inlineGroup");
|
9
10
|
var _alignmentAndIndentation = require("../marks/alignmentAndIndentation");
|
10
11
|
var _unsupportedMark = require("../marks/unsupportedMark");
|
@@ -27,7 +28,7 @@ var heading = exports.heading = (0, _adfSchemaGenerator.adfNode)('heading').defi
|
|
27
28
|
default: null
|
28
29
|
}
|
29
30
|
},
|
30
|
-
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup))],
|
31
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _inlineContentGroup.inlineContentGroup))],
|
31
32
|
DANGEROUS_MANUAL_OVERRIDE: {
|
32
33
|
'validator-spec': {
|
33
34
|
marks: {
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.layoutColumn = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _blockContentGroup = require("../groups/blockContentGroup");
|
8
9
|
var _blockGroup = require("../groups/blockGroup");
|
9
10
|
var _unsupportedMark = require("../marks/unsupportedMark");
|
10
11
|
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
@@ -21,5 +22,5 @@ var layoutColumn = exports.layoutColumn = (0, _adfSchemaGenerator.adfNode)('layo
|
|
21
22
|
default: undefined
|
22
23
|
}
|
23
24
|
},
|
24
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _unsupportedBlock.unsupportedBlock))]
|
25
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _blockContentGroup.blockContentGroup, _unsupportedBlock.unsupportedBlock))]
|
25
26
|
});
|
@@ -14,7 +14,6 @@ var _unsupportedBlock = require("./unsupportedBlock");
|
|
14
14
|
var mediaSingle = exports.mediaSingle = (0, _adfSchemaGenerator.adfNode)('mediaSingle').define({
|
15
15
|
atom: true,
|
16
16
|
selectable: true,
|
17
|
-
ignore: ['json-schema'],
|
18
17
|
marks: [_link.link, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
19
18
|
attrs: {
|
20
19
|
anyOf: [{
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.paragraph = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _inlineContentGroup = require("../groups/inlineContentGroup");
|
8
9
|
var _inlineGroup = require("../groups/inlineGroup");
|
9
10
|
var _alignmentAndIndentation = require("../marks/alignmentAndIndentation");
|
10
11
|
var _unsupportedMark = require("../marks/unsupportedMark");
|
@@ -20,7 +21,7 @@ var paragraph = exports.paragraph = (0, _adfSchemaGenerator.adfNode)('paragraph'
|
|
20
21
|
selectable: false,
|
21
22
|
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
22
23
|
hasEmptyMarks: true,
|
23
|
-
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup))],
|
24
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _inlineContentGroup.inlineContentGroup))],
|
24
25
|
DANGEROUS_MANUAL_OVERRIDE: {
|
25
26
|
'validator-spec': {
|
26
27
|
marks: {
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.taskList = exports.taskItem = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _inlineContentGroup = require("../groups/inlineContentGroup");
|
8
9
|
var _inlineGroup = require("../groups/inlineGroup");
|
9
10
|
var _unsupportedMark = require("../marks/unsupportedMark");
|
10
11
|
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
@@ -27,7 +28,7 @@ taskItem.define({
|
|
27
28
|
default: 'TODO'
|
28
29
|
}
|
29
30
|
},
|
30
|
-
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup))]
|
31
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _inlineContentGroup.inlineContentGroup))]
|
31
32
|
});
|
32
33
|
taskList.define({
|
33
34
|
defining: true,
|
@@ -2,9 +2,10 @@ import { $or, $onePlus, adfNode } from '@atlaskit/adf-schema-generator';
|
|
2
2
|
import { blockGroup } from './groups/blockGroup';
|
3
3
|
import { layoutSection } from './nodes/layoutSection';
|
4
4
|
import { blockRootOnlyGroup } from './groups/blockRootOnlyGroup';
|
5
|
+
import { blockContentGroup } from './groups/blockContentGroup';
|
5
6
|
const doc = adfNode('doc').define({
|
6
7
|
root: true,
|
7
8
|
version: 1,
|
8
|
-
content: [$onePlus($or(blockGroup, layoutSection, layoutSection.use('full'), blockRootOnlyGroup))]
|
9
|
+
content: [$onePlus($or(blockGroup, blockContentGroup, layoutSection, layoutSection.use('full'), blockRootOnlyGroup))]
|
9
10
|
});
|
10
11
|
export default doc;
|
@@ -426,6 +426,28 @@ export const inlineCard = createPMNodeSpecFactory({
|
|
426
426
|
selectable: true,
|
427
427
|
draggable: true
|
428
428
|
});
|
429
|
+
export const inlineExtension = createPMNodeSpecFactory({
|
430
|
+
group: 'inline',
|
431
|
+
inline: true,
|
432
|
+
attrs: {
|
433
|
+
extensionKey: {
|
434
|
+
default: ''
|
435
|
+
},
|
436
|
+
extensionType: {
|
437
|
+
default: ''
|
438
|
+
},
|
439
|
+
parameters: {
|
440
|
+
default: null
|
441
|
+
},
|
442
|
+
text: {
|
443
|
+
default: null
|
444
|
+
},
|
445
|
+
localId: {
|
446
|
+
default: null
|
447
|
+
}
|
448
|
+
},
|
449
|
+
selectable: true
|
450
|
+
});
|
429
451
|
export const inlineExtensionWithMarks = createPMNodeSpecFactory({
|
430
452
|
group: 'inline',
|
431
453
|
inline: true,
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { blockCard } from '../nodes/blockCard';
|
3
|
+
import { blockquote } from '../nodes/blockquote';
|
4
|
+
import { bodiedExtension } from '../nodes/bodiedExtension';
|
5
|
+
import { codeBlock } from '../nodes/codeBlock';
|
6
|
+
import { confluenceUnsupportedBlock } from '../nodes/confluenceUnsupportedBlock';
|
7
|
+
import { decisionList } from '../nodes/decisionList';
|
8
|
+
import { embedCard } from '../nodes/embedCard';
|
9
|
+
import { expand } from '../nodes/expand';
|
10
|
+
import { extension } from '../nodes/extension';
|
11
|
+
import { heading } from '../nodes/heading';
|
12
|
+
import { bulletList, orderedList } from '../nodes/list';
|
13
|
+
import { mediaGroup } from '../nodes/mediaGroup';
|
14
|
+
import { mediaSingle } from '../nodes/mediaSingle';
|
15
|
+
import { panel } from '../nodes/panel';
|
16
|
+
import { paragraph } from '../nodes/paragraph';
|
17
|
+
import { rule } from '../nodes/rule';
|
18
|
+
import { table } from '../nodes/table';
|
19
|
+
import { taskList } from '../nodes/task';
|
20
|
+
import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
21
|
+
|
22
|
+
/**
|
23
|
+
* @DSLCompatibilityException
|
24
|
+
*
|
25
|
+
* Pseudo group used to match existing validator and json schema specs.
|
26
|
+
*
|
27
|
+
* Has slight differences from the original blockGroup:
|
28
|
+
* - no base paragraph
|
29
|
+
* - no base codeBlock
|
30
|
+
* - no base extension
|
31
|
+
* - no base mediaSingle
|
32
|
+
* - no base heading
|
33
|
+
* - no base expand
|
34
|
+
*/
|
35
|
+
export const blockContentGroup = adfNodeGroup('block_content', [blockCard, blockquote, bodiedExtension.use('with_marks'), bulletList, codeBlock.use('with_no_marks'), confluenceUnsupportedBlock, decisionList, embedCard, expand.use('with_no_mark'), extension.use('with_marks'), heading.use('with_alignment'), heading.use('with_indentation'), heading.use('with_no_marks'), mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full'), orderedList, panel, paragraph.use('with_alignment'), paragraph.use('with_indentation'), paragraph.use('with_no_marks'), rule, table, taskList, unsupportedBlock], {
|
36
|
+
ignore: ['pm-spec', 'json-schema']
|
37
|
+
});
|
@@ -18,4 +18,8 @@ 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'), 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'), confluenceUnsupportedBlock, 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'), 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'), confluenceUnsupportedBlock, unsupportedBlock], {
|
22
|
+
// @DSLCompatibilityException
|
23
|
+
// Block group in PM doesn't match ADF
|
24
|
+
ignore: ['validator-spec']
|
25
|
+
});
|
@@ -0,0 +1,28 @@
|
|
1
|
+
import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { date } from '../nodes/date';
|
3
|
+
import { emoji } from '../nodes/emoji';
|
4
|
+
import { hardBreak } from '../nodes/hardBreak';
|
5
|
+
import { inlineCard } from '../nodes/inlineCard';
|
6
|
+
import { mention } from '../nodes/mention';
|
7
|
+
import { placeholder } from '../nodes/placeholder';
|
8
|
+
import { text } from '../nodes/text';
|
9
|
+
import { status } from '../nodes/status';
|
10
|
+
import { inlineExtension } from '../nodes/inlineExtension';
|
11
|
+
import { mediaInline } from '../nodes/mediaInline';
|
12
|
+
import { unsupportedInline } from '../nodes/unsupportedInline';
|
13
|
+
import { confluenceUnsupportedInline } from '../nodes/confluenceUnsupportedInline';
|
14
|
+
import { image } from '../nodes/image';
|
15
|
+
import { confluenceJiraIssue } from '../nodes/confluenceJiraIssue';
|
16
|
+
|
17
|
+
/**
|
18
|
+
* @DSLCompatibilityException
|
19
|
+
*
|
20
|
+
* Pseudo group used to match existing validator and json schema specs.
|
21
|
+
*
|
22
|
+
* Has slight differences from the original inlineGroup:
|
23
|
+
* - no text
|
24
|
+
* - no text.use('link_inline')
|
25
|
+
*/
|
26
|
+
export const inlineContentGroup = adfNodeGroup('inline_content', [text.use('formatted'), text.use('code_inline'), date, emoji, hardBreak, inlineCard, mention, placeholder, status, inlineExtension.use('with_marks'), mediaInline, image, confluenceJiraIssue, confluenceUnsupportedInline, unsupportedInline], {
|
27
|
+
ignore: ['pm-spec', 'json-schema']
|
28
|
+
});
|
@@ -13,4 +13,8 @@ import { unsupportedInline } from '../nodes/unsupportedInline';
|
|
13
13
|
import { confluenceUnsupportedInline } from '../nodes/confluenceUnsupportedInline';
|
14
14
|
import { image } from '../nodes/image';
|
15
15
|
import { confluenceJiraIssue } from '../nodes/confluenceJiraIssue';
|
16
|
-
export const inlineGroup = adfNodeGroup('inline', [text, text.use('link_inline'), text.use('formatted'), text.use('code_inline'), date, emoji, hardBreak, inlineCard, mention, placeholder, status, inlineExtension.use('with_marks'), mediaInline, image, confluenceJiraIssue, confluenceUnsupportedInline, unsupportedInline]
|
16
|
+
export const inlineGroup = adfNodeGroup('inline', [text, text.use('link_inline'), text.use('formatted'), text.use('code_inline'), date, emoji, hardBreak, inlineCard, mention, placeholder, status, inlineExtension, inlineExtension.use('with_marks'), mediaInline, image, confluenceJiraIssue, confluenceUnsupportedInline, unsupportedInline], {
|
17
|
+
// @DSLCompatibilityException
|
18
|
+
// Inline group in PM doesn't match ADF
|
19
|
+
ignore: ['validator-spec']
|
20
|
+
});
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
1
2
|
import { blockCard } from '../nodes/blockCard';
|
2
3
|
import { blockquote } from '../nodes/blockquote';
|
3
4
|
import { codeBlock } from '../nodes/codeBlock';
|
@@ -17,4 +18,11 @@ import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
|
17
18
|
|
18
19
|
// Not an actual group, but a collection of nodes that can't be nested inside each other
|
19
20
|
// TODO: make it an actual group
|
20
|
-
export const nonNestableBlockContent = [codeBlock.use('with_no_marks'), blockCard, paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), taskList, bulletList, orderedList, heading.use('with_no_marks'), mediaGroup, decisionList, rule, panel, blockquote, extension.use('with_marks'), embedCard, table, unsupportedBlock];
|
21
|
+
export const nonNestableBlockContent = [codeBlock.use('with_no_marks'), blockCard, paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), taskList, bulletList, orderedList, heading.use('with_no_marks'), mediaGroup, decisionList, rule, panel, blockquote, extension.use('with_marks'), embedCard, table, unsupportedBlock];
|
22
|
+
|
23
|
+
/**
|
24
|
+
* @DSLCompatibilityException
|
25
|
+
*
|
26
|
+
* Pseudo group used to match existing validator and json schema specs.
|
27
|
+
*/
|
28
|
+
export const nonNestableBlockContentGroup = adfNodeGroup('non_nestable_block_content', nonNestableBlockContent);
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
-
import {
|
2
|
+
import { nonNestableBlockContentGroup } from '../groups/nonNestableBlockContentGroup';
|
3
3
|
import { dataConsumer } from '../marks/dataConsumer';
|
4
4
|
import { fragment } from '../marks/fragment';
|
5
5
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
@@ -44,7 +44,7 @@ export const bodiedExtension = adfNode('bodiedExtension').define({
|
|
44
44
|
default: null
|
45
45
|
}
|
46
46
|
},
|
47
|
-
content: [$onePlus($or(
|
47
|
+
content: [$onePlus($or(nonNestableBlockContentGroup))],
|
48
48
|
ignore: ['json-schema']
|
49
49
|
}).variant('with_marks', {
|
50
50
|
marks: [dataConsumer, fragment, unsupportedNodeAttribute, unsupportedMark],
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { inlineContentGroup } from '../groups/inlineContentGroup';
|
2
3
|
import { inlineGroup } from '../groups/inlineGroup';
|
3
4
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
5
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
@@ -16,5 +17,5 @@ export const decisionItem = adfNode('decisionItem').define({
|
|
16
17
|
default: 'DECIDED'
|
17
18
|
}
|
18
19
|
},
|
19
|
-
content: [$zeroPlus($or(inlineGroup))]
|
20
|
+
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))]
|
20
21
|
});
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
-
import {
|
2
|
+
import { nonNestableBlockContentGroup } from '../groups/nonNestableBlockContentGroup';
|
3
3
|
import { breakout } from '../marks/breakout';
|
4
4
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
5
5
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
@@ -19,7 +19,7 @@ export const expand = adfNode('expand').define({
|
|
19
19
|
optional: true
|
20
20
|
}
|
21
21
|
},
|
22
|
-
content: [$onePlus($or(
|
22
|
+
content: [$onePlus($or(nonNestableBlockContentGroup))],
|
23
23
|
ignore: ['json-schema']
|
24
24
|
}).variant('with_breakout_mark', {
|
25
25
|
marks: [breakout, unsupportedNodeAttribute, unsupportedMark],
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { inlineContentGroup } from '../groups/inlineContentGroup';
|
2
3
|
import { inlineGroup } from '../groups/inlineGroup';
|
3
4
|
import { alignment, indentation } from '../marks/alignmentAndIndentation';
|
4
5
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
@@ -21,7 +22,7 @@ export const heading = adfNode('heading').define({
|
|
21
22
|
default: null
|
22
23
|
}
|
23
24
|
},
|
24
|
-
content: [$zeroPlus($or(inlineGroup))],
|
25
|
+
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))],
|
25
26
|
DANGEROUS_MANUAL_OVERRIDE: {
|
26
27
|
'validator-spec': {
|
27
28
|
marks: {
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { blockContentGroup } from '../groups/blockContentGroup';
|
2
3
|
import { blockGroup } from '../groups/blockGroup';
|
3
4
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
5
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
@@ -15,5 +16,5 @@ export const layoutColumn = adfNode('layoutColumn').define({
|
|
15
16
|
default: undefined
|
16
17
|
}
|
17
18
|
},
|
18
|
-
content: [$onePlus($or(blockGroup, unsupportedBlock))]
|
19
|
+
content: [$onePlus($or(blockGroup, blockContentGroup, unsupportedBlock))]
|
19
20
|
});
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { inlineContentGroup } from '../groups/inlineContentGroup';
|
2
3
|
import { inlineGroup } from '../groups/inlineGroup';
|
3
4
|
import { alignment, indentation } from '../marks/alignmentAndIndentation';
|
4
5
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
@@ -14,7 +15,7 @@ export const paragraph = adfNode('paragraph').define({
|
|
14
15
|
selectable: false,
|
15
16
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
16
17
|
hasEmptyMarks: true,
|
17
|
-
content: [$zeroPlus($or(inlineGroup))],
|
18
|
+
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))],
|
18
19
|
DANGEROUS_MANUAL_OVERRIDE: {
|
19
20
|
'validator-spec': {
|
20
21
|
marks: {
|