@atlaskit/adf-schema 37.1.19 → 37.1.21
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 +14 -0
- package/dist/cjs/next-schema/full-schema.adf.js +2 -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/marks/link.js +2 -1
- 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/embedCard.js +2 -1
- package/dist/cjs/next-schema/nodes/expand.js +1 -3
- 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/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/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/marks/link.js +2 -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/embedCard.js +2 -1
- package/dist/es2019/next-schema/nodes/expand.js +2 -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/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/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/marks/link.js +2 -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/embedCard.js +2 -1
- package/dist/esm/next-schema/nodes/expand.js +2 -3
- 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/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 +2 -2
- 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 -12
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 37.1.21
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- 988f8c6: add known and unknown to PM groups to DSL
|
8
|
+
|
9
|
+
## 37.1.20
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- e57d797: Add new optional property for string attributes used in the validator ("validatorFn") function used for URL.
|
14
|
+
|
15
|
+
This is used for the validator for "link" and "embedCard".
|
16
|
+
|
3
17
|
## 37.1.19
|
4
18
|
|
5
19
|
### 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;
|
@@ -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.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],
|
@@ -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
|
});
|
@@ -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;
|
@@ -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.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: {
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { $onePlus, $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';
|
@@ -21,7 +22,7 @@ taskItem.define({
|
|
21
22
|
default: 'TODO'
|
22
23
|
}
|
23
24
|
},
|
24
|
-
content: [$zeroPlus($or(inlineGroup))]
|
25
|
+
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))]
|
25
26
|
});
|
26
27
|
taskList.define({
|
27
28
|
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
|
var 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;
|
@@ -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 var 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 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'), 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 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'), 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 var 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 var 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 var 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], {
|
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 var 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 var 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 var nonNestableBlockContentGroup = adfNodeGroup('non_nestable_block_content', nonNestableBlockContent);
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
2
1
|
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
3
|
-
import {
|
2
|
+
import { nonNestableBlockContentGroup } from '../groups/nonNestableBlockContentGroup';
|
4
3
|
import { dataConsumer } from '../marks/dataConsumer';
|
5
4
|
import { fragment } from '../marks/fragment';
|
6
5
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
@@ -45,7 +44,7 @@ export var bodiedExtension = adfNode('bodiedExtension').define({
|
|
45
44
|
default: null
|
46
45
|
}
|
47
46
|
},
|
48
|
-
content: [$onePlus($or
|
47
|
+
content: [$onePlus($or(nonNestableBlockContentGroup))],
|
49
48
|
ignore: ['json-schema']
|
50
49
|
}).variant('with_marks', {
|
51
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 var 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,6 +1,5 @@
|
|
1
|
-
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
2
1
|
import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
3
|
-
import {
|
2
|
+
import { nonNestableBlockContentGroup } from '../groups/nonNestableBlockContentGroup';
|
4
3
|
import { breakout } from '../marks/breakout';
|
5
4
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
6
5
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
@@ -20,7 +19,7 @@ export var expand = adfNode('expand').define({
|
|
20
19
|
optional: true
|
21
20
|
}
|
22
21
|
},
|
23
|
-
content: [$onePlus($or
|
22
|
+
content: [$onePlus($or(nonNestableBlockContentGroup))],
|
24
23
|
ignore: ['json-schema']
|
25
24
|
}).variant('with_breakout_mark', {
|
26
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 var 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 var 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 var 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: {
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { $onePlus, $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';
|
@@ -21,7 +22,7 @@ taskItem.define({
|
|
21
22
|
default: 'TODO'
|
22
23
|
}
|
23
24
|
},
|
24
|
-
content: [$zeroPlus($or(inlineGroup))]
|
25
|
+
content: [$zeroPlus($or(inlineGroup, inlineContentGroup))]
|
25
26
|
});
|
26
27
|
taskList.define({
|
27
28
|
defining: true,
|
@@ -3,9 +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:pm:full" to regenerate this file.
|
5
5
|
*/
|
6
|
-
import { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, CodeBlockWithNoMarksDefinition, ConfluenceUnsupportedBlockDefinition, DecisionListDefinition, EmbedCardDefinition, ExpandDefinition, ExpandWithNoMarkDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, MediaGroupDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, OrderedListDefinition, PanelDefinition, PanelLegacyDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, RuleDefinition, TableDefinition, TaskListDefinition, UnsupportedBlockDefinition } from './nodeTypes';
|
7
|
-
export type BlockDefinition = Array<BlockCardDefinition |
|
8
|
-
import { MultiBodiedExtensionDefinition } from './nodeTypes';
|
6
|
+
import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, CodeBlockWithNoMarksDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, ExpandDefinition, ExpandWithNoMarkDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MultiBodiedExtensionDefinition, OrderedListDefinition, PanelDefinition, PanelLegacyDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, 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 | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | PanelLegacyDefinition | TableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ExpandWithNoMarkDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
9
8
|
export type BlockRootOnlyDefinition = Array<MultiBodiedExtensionDefinition>;
|
10
|
-
|
11
|
-
export type
|
9
|
+
export type InlineDefinition = Array<TextDefinition | TextFormattedDefinition | TextCodeInlineDefinition | DateDefinition | EmojiDefinition | HardBreakDefinition | InlineCardDefinition | MentionDefinition | PlaceholderDefinition | StatusDefinition | InlineExtensionWithMarksDefinition | MediaInlineDefinition | ImageDefinition | ConfluenceJiraIssueDefinition | ConfluenceUnsupportedInlineDefinition | UnsupportedInlineDefinition>;
|
10
|
+
export type NonNestableBlockContentDefinition = Array<CodeBlockWithNoMarksDefinition | BlockCardDefinition | ParagraphWithNoMarksDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | TaskListDefinition | BulletListDefinition | OrderedListDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | DecisionListDefinition | RuleDefinition | PanelDefinition | BlockquoteDefinition | ExtensionWithMarksDefinition | EmbedCardDefinition | TableDefinition | UnsupportedBlockDefinition>;
|
@@ -41,7 +41,7 @@ export type BlockquoteLegacyNode = PMNode & BlockquoteLegacyDefinition;
|
|
41
41
|
export declare const blockquoteLegacy: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<BlockquoteLegacyNode>) => import("prosemirror-model").NodeSpec;
|
42
42
|
export interface BodiedExtensionDefinition {
|
43
43
|
type: 'bodiedExtension';
|
44
|
-
content: Array<
|
44
|
+
content: Array<CodeBlockDefinition | BlockCardDefinition | ParagraphDefinition | MediaSingleDefinition | MediaSingleDefinition | TaskListDefinition | BulletListDefinition | OrderedListDefinition | HeadingDefinition | MediaGroupDefinition | DecisionListDefinition | RuleDefinition | PanelDefinition | BlockquoteDefinition | ExtensionDefinition | EmbedCardDefinition | TableDefinition | UnsupportedBlockDefinition>;
|
45
45
|
marks: Array<UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
|
46
46
|
attrs: {
|
47
47
|
extensionKey: string;
|
@@ -192,7 +192,7 @@ export type EmojiNode = PMNode & EmojiDefinition;
|
|
192
192
|
export declare const emoji: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").NodeSpecOptions<EmojiNode>) => import("prosemirror-model").NodeSpec;
|
193
193
|
export interface ExpandDefinition {
|
194
194
|
type: 'expand';
|
195
|
-
content: Array<
|
195
|
+
content: Array<CodeBlockDefinition | BlockCardDefinition | ParagraphDefinition | MediaSingleDefinition | MediaSingleDefinition | TaskListDefinition | BulletListDefinition | OrderedListDefinition | HeadingDefinition | MediaGroupDefinition | DecisionListDefinition | RuleDefinition | PanelDefinition | BlockquoteDefinition | ExtensionDefinition | EmbedCardDefinition | TableDefinition | UnsupportedBlockDefinition>;
|
196
196
|
marks: Array<UnsupportedNodeAttributeMark | UnsupportedMarkMark>;
|
197
197
|
attrs: {
|
198
198
|
title?: string;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/**
|
2
|
+
* @DSLCompatibilityException
|
3
|
+
*
|
4
|
+
* Pseudo group used to match existing validator and json schema specs.
|
5
|
+
*
|
6
|
+
* Has slight differences from the original blockGroup:
|
7
|
+
* - no base paragraph
|
8
|
+
* - no base codeBlock
|
9
|
+
* - no base extension
|
10
|
+
* - no base mediaSingle
|
11
|
+
* - no base heading
|
12
|
+
* - no base expand
|
13
|
+
*/
|
14
|
+
export declare const blockContentGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* @DSLCompatibilityException
|
3
|
+
*
|
4
|
+
* Pseudo group used to match existing validator and json schema specs.
|
5
|
+
*
|
6
|
+
* Has slight differences from the original inlineGroup:
|
7
|
+
* - no text
|
8
|
+
* - no text.use('link_inline')
|
9
|
+
*/
|
10
|
+
export declare const inlineContentGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
|
@@ -212,3 +212,9 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
|
|
212
212
|
marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
|
213
213
|
ignore: any[];
|
214
214
|
}>)[];
|
215
|
+
/**
|
216
|
+
* @DSLCompatibilityException
|
217
|
+
*
|
218
|
+
* Pseudo group used to match existing validator and json schema specs.
|
219
|
+
*/
|
220
|
+
export declare const nonNestableBlockContentGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "37.1.
|
3
|
+
"version": "37.1.21",
|
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/"
|
@@ -47,7 +47,7 @@
|
|
47
47
|
},
|
48
48
|
"devDependencies": {
|
49
49
|
"@atlassian/adf-schema-json": "^1.16.0",
|
50
|
-
"@atlaskit/adf-schema-generator": "^1.
|
50
|
+
"@atlaskit/adf-schema-generator": "^1.25.0",
|
51
51
|
"@atlaskit/adf-utils": "^19.2.2",
|
52
52
|
"@atlaskit/codemod-utils": "^4.2.4",
|
53
53
|
"@atlaskit/json-schema-generator": "^3.3.9",
|
@@ -4,20 +4,15 @@ import adfNode from '../../../src/next-schema/full-schema.adf';
|
|
4
4
|
|
5
5
|
const newSpecs = sortNestedArrays(adfToValidatorSpec(adfNode));
|
6
6
|
const SKIP_LIST = [
|
7
|
-
'link', // doesn't exist in the output - validatorFn in DSL
|
8
|
-
|
9
7
|
'blockCard', // doesn't match existing spec
|
10
|
-
'bodiedExtension', // doesn't match existing spec
|
11
8
|
'caption', // doesn't match existing spec
|
12
9
|
'codeBlock', // doesn't match existing spec
|
13
|
-
'doc', // doesn't match existing spec
|
14
|
-
'embedCard', // doesn't match existing spec, validatorFn
|
10
|
+
'doc', // doesn't match existing spec, need to flatten groups
|
15
11
|
'expand', // doesn't match existing spec
|
16
12
|
'extensionFrame', // doesn't match existing spec
|
17
13
|
'inlineCard', // doesn't match existing spec
|
18
14
|
'inlineExtension', // doesn't exist in the output
|
19
15
|
'inline_comment_marker', // doesn't exist in the output
|
20
|
-
'layoutColumn', // doesn't match existing spec, wrong group name in content, allowUnsupportedBlock
|
21
16
|
'layoutSection', // doesn't match existing spec, maxItem/minItem, extra marks
|
22
17
|
'layoutSection_full', // doesn't match existing spec, allowUnsupportedBlock, extra marks
|
23
18
|
'layoutSection_with_single_column', // doesn't exist in the output
|
@@ -29,12 +24,9 @@ const SKIP_LIST = [
|
|
29
24
|
'tableHeader', // doesn't match existing spec
|
30
25
|
'tableRow', // doesn't match existing spec, extra minItems
|
31
26
|
|
32
|
-
'atomic_inline', // doesn't exist in the output
|
33
|
-
'
|
34
|
-
'
|
35
|
-
'nestedExpand_content', // doesn't exist in the output
|
36
|
-
'non_nestable_block_content', // doesn't exist in the output
|
37
|
-
'tableCell_content', // doesn't exist in the output
|
27
|
+
'atomic_inline', // doesn't exist in the output, not even used anywhere...
|
28
|
+
'nestedExpand_content', // doesn't exist in the output, completely different format from other groups
|
29
|
+
'tableCell_content', // doesn't exist in the output, completely different format from other groups
|
38
30
|
];
|
39
31
|
|
40
32
|
const testCases = Object.entries(currentSpecs).map(([key, value]) => {
|