@atlaskit/adf-schema 36.12.3 → 36.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/next-schema/full-schema.adf.js +2 -1
- package/dist/cjs/next-schema/generated/markTypes.js +18 -1
- package/dist/cjs/next-schema/generated/nodeTypes.js +128 -77
- package/dist/cjs/next-schema/groups/blockGroup.js +3 -1
- package/dist/cjs/next-schema/groups/inlineGroup.js +3 -1
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
- package/dist/cjs/next-schema/marks/unsupportedMark.js +16 -0
- package/dist/cjs/next-schema/marks/unsupportedNodeAttribute.js +20 -0
- package/dist/cjs/next-schema/nodes/blockCard.js +3 -0
- package/dist/cjs/next-schema/nodes/blockquote.js +6 -2
- package/dist/cjs/next-schema/nodes/bodiedExtension.js +4 -1
- package/dist/cjs/next-schema/nodes/caption.js +5 -2
- package/dist/cjs/next-schema/nodes/codeBlock.js +6 -2
- package/dist/cjs/next-schema/nodes/confluenceUnsupportedBlock.js +16 -0
- package/dist/cjs/next-schema/nodes/confluenceUnsupportedInline.js +18 -0
- package/dist/cjs/next-schema/nodes/date.js +3 -0
- package/dist/cjs/next-schema/nodes/decisionItem.js +5 -1
- package/dist/cjs/next-schema/nodes/decisionList.js +5 -1
- package/dist/cjs/next-schema/nodes/embedCard.js +3 -0
- package/dist/cjs/next-schema/nodes/emoji.js +3 -0
- package/dist/cjs/next-schema/nodes/expand.js +4 -1
- package/dist/cjs/next-schema/nodes/extension.js +4 -1
- package/dist/cjs/next-schema/nodes/extensionFrame.js +3 -1
- package/dist/cjs/next-schema/nodes/hardBreak.js +3 -0
- package/dist/cjs/next-schema/nodes/heading.js +9 -6
- package/dist/cjs/next-schema/nodes/inlineCard.js +4 -1
- package/dist/cjs/next-schema/nodes/inlineExtension.js +3 -0
- package/dist/cjs/next-schema/nodes/layoutColumn.js +3 -0
- package/dist/cjs/next-schema/nodes/layoutSection.js +5 -2
- package/dist/cjs/next-schema/nodes/list.js +7 -1
- package/dist/cjs/next-schema/nodes/media.js +3 -1
- package/dist/cjs/next-schema/nodes/mediaGroup.js +5 -1
- package/dist/cjs/next-schema/nodes/mediaInline.js +3 -1
- package/dist/cjs/next-schema/nodes/mediaSingle.js +5 -2
- package/dist/cjs/next-schema/nodes/mention.js +3 -0
- package/dist/cjs/next-schema/nodes/multiBodiedExtension.js +3 -0
- package/dist/cjs/next-schema/nodes/nestedExpand.js +5 -1
- package/dist/cjs/next-schema/nodes/panel.js +5 -1
- package/dist/cjs/next-schema/nodes/paragraph.js +8 -4
- package/dist/cjs/next-schema/nodes/placeholder.js +3 -0
- package/dist/cjs/next-schema/nodes/status.js +3 -0
- package/dist/cjs/next-schema/nodes/table.js +3 -1
- package/dist/cjs/next-schema/nodes/tableCell.js +5 -1
- package/dist/cjs/next-schema/nodes/tableHeader.js +3 -0
- package/dist/cjs/next-schema/nodes/tableRow.js +3 -0
- package/dist/cjs/next-schema/nodes/task.js +8 -2
- package/dist/cjs/next-schema/nodes/text.js +4 -2
- package/dist/cjs/next-schema/nodes/unsupportedBlock.js +18 -0
- package/dist/cjs/next-schema/nodes/unsupportedInline.js +18 -0
- package/dist/es2019/next-schema/full-schema.adf.js +2 -1
- package/dist/es2019/next-schema/generated/markTypes.js +17 -0
- package/dist/es2019/next-schema/generated/nodeTypes.js +127 -76
- package/dist/es2019/next-schema/groups/blockGroup.js +3 -1
- package/dist/es2019/next-schema/groups/inlineGroup.js +3 -1
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
- package/dist/es2019/next-schema/marks/unsupportedMark.js +10 -0
- package/dist/es2019/next-schema/marks/unsupportedNodeAttribute.js +14 -0
- package/dist/es2019/next-schema/nodes/blockCard.js +3 -0
- package/dist/es2019/next-schema/nodes/blockquote.js +6 -2
- package/dist/es2019/next-schema/nodes/bodiedExtension.js +4 -1
- package/dist/es2019/next-schema/nodes/caption.js +5 -3
- package/dist/es2019/next-schema/nodes/codeBlock.js +6 -2
- package/dist/es2019/next-schema/nodes/confluenceUnsupportedBlock.js +10 -0
- package/dist/es2019/next-schema/nodes/confluenceUnsupportedInline.js +12 -0
- package/dist/es2019/next-schema/nodes/date.js +3 -0
- package/dist/es2019/next-schema/nodes/decisionItem.js +5 -1
- package/dist/es2019/next-schema/nodes/decisionList.js +5 -1
- package/dist/es2019/next-schema/nodes/embedCard.js +3 -0
- package/dist/es2019/next-schema/nodes/emoji.js +3 -0
- package/dist/es2019/next-schema/nodes/expand.js +4 -1
- package/dist/es2019/next-schema/nodes/extension.js +4 -1
- package/dist/es2019/next-schema/nodes/extensionFrame.js +3 -1
- package/dist/es2019/next-schema/nodes/hardBreak.js +3 -0
- package/dist/es2019/next-schema/nodes/heading.js +8 -5
- package/dist/es2019/next-schema/nodes/inlineCard.js +4 -1
- package/dist/es2019/next-schema/nodes/inlineExtension.js +3 -0
- package/dist/es2019/next-schema/nodes/layoutColumn.js +3 -0
- package/dist/es2019/next-schema/nodes/layoutSection.js +5 -2
- package/dist/es2019/next-schema/nodes/list.js +7 -1
- package/dist/es2019/next-schema/nodes/media.js +3 -1
- package/dist/es2019/next-schema/nodes/mediaGroup.js +5 -1
- package/dist/es2019/next-schema/nodes/mediaInline.js +3 -1
- package/dist/es2019/next-schema/nodes/mediaSingle.js +5 -2
- package/dist/es2019/next-schema/nodes/mention.js +3 -0
- package/dist/es2019/next-schema/nodes/multiBodiedExtension.js +3 -0
- package/dist/es2019/next-schema/nodes/nestedExpand.js +5 -1
- package/dist/es2019/next-schema/nodes/panel.js +5 -1
- package/dist/es2019/next-schema/nodes/paragraph.js +8 -4
- package/dist/es2019/next-schema/nodes/placeholder.js +3 -0
- package/dist/es2019/next-schema/nodes/status.js +3 -0
- package/dist/es2019/next-schema/nodes/table.js +3 -1
- package/dist/es2019/next-schema/nodes/tableCell.js +5 -1
- package/dist/es2019/next-schema/nodes/tableHeader.js +3 -0
- package/dist/es2019/next-schema/nodes/tableRow.js +4 -1
- package/dist/es2019/next-schema/nodes/task.js +8 -2
- package/dist/es2019/next-schema/nodes/text.js +4 -2
- package/dist/es2019/next-schema/nodes/unsupportedBlock.js +12 -0
- package/dist/es2019/next-schema/nodes/unsupportedInline.js +12 -0
- package/dist/esm/next-schema/full-schema.adf.js +2 -1
- package/dist/esm/next-schema/generated/markTypes.js +17 -0
- package/dist/esm/next-schema/generated/nodeTypes.js +127 -76
- package/dist/esm/next-schema/groups/blockGroup.js +3 -1
- package/dist/esm/next-schema/groups/inlineGroup.js +3 -1
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +2 -1
- package/dist/esm/next-schema/marks/unsupportedMark.js +10 -0
- package/dist/esm/next-schema/marks/unsupportedNodeAttribute.js +14 -0
- package/dist/esm/next-schema/nodes/blockCard.js +3 -0
- package/dist/esm/next-schema/nodes/blockquote.js +6 -2
- package/dist/esm/next-schema/nodes/bodiedExtension.js +4 -1
- package/dist/esm/next-schema/nodes/caption.js +5 -3
- package/dist/esm/next-schema/nodes/codeBlock.js +6 -2
- package/dist/esm/next-schema/nodes/confluenceUnsupportedBlock.js +10 -0
- package/dist/esm/next-schema/nodes/confluenceUnsupportedInline.js +12 -0
- package/dist/esm/next-schema/nodes/date.js +3 -0
- package/dist/esm/next-schema/nodes/decisionItem.js +5 -1
- package/dist/esm/next-schema/nodes/decisionList.js +5 -1
- package/dist/esm/next-schema/nodes/embedCard.js +3 -0
- package/dist/esm/next-schema/nodes/emoji.js +3 -0
- package/dist/esm/next-schema/nodes/expand.js +4 -1
- package/dist/esm/next-schema/nodes/extension.js +4 -1
- package/dist/esm/next-schema/nodes/extensionFrame.js +3 -1
- package/dist/esm/next-schema/nodes/hardBreak.js +3 -0
- package/dist/esm/next-schema/nodes/heading.js +8 -5
- package/dist/esm/next-schema/nodes/inlineCard.js +4 -1
- package/dist/esm/next-schema/nodes/inlineExtension.js +3 -0
- package/dist/esm/next-schema/nodes/layoutColumn.js +3 -0
- package/dist/esm/next-schema/nodes/layoutSection.js +5 -2
- package/dist/esm/next-schema/nodes/list.js +7 -1
- package/dist/esm/next-schema/nodes/media.js +3 -1
- package/dist/esm/next-schema/nodes/mediaGroup.js +5 -1
- package/dist/esm/next-schema/nodes/mediaInline.js +3 -1
- package/dist/esm/next-schema/nodes/mediaSingle.js +5 -2
- package/dist/esm/next-schema/nodes/mention.js +3 -0
- package/dist/esm/next-schema/nodes/multiBodiedExtension.js +3 -0
- package/dist/esm/next-schema/nodes/nestedExpand.js +5 -1
- package/dist/esm/next-schema/nodes/panel.js +5 -1
- package/dist/esm/next-schema/nodes/paragraph.js +8 -4
- package/dist/esm/next-schema/nodes/placeholder.js +3 -0
- package/dist/esm/next-schema/nodes/status.js +3 -0
- package/dist/esm/next-schema/nodes/table.js +3 -1
- package/dist/esm/next-schema/nodes/tableCell.js +5 -1
- package/dist/esm/next-schema/nodes/tableHeader.js +3 -0
- package/dist/esm/next-schema/nodes/tableRow.js +4 -1
- package/dist/esm/next-schema/nodes/task.js +8 -2
- package/dist/esm/next-schema/nodes/text.js +4 -2
- package/dist/esm/next-schema/nodes/unsupportedBlock.js +12 -0
- package/dist/esm/next-schema/nodes/unsupportedInline.js +12 -0
- package/dist/types/next-schema/generated/markTypes.d.ts +23 -0
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +4 -4
- package/dist/types/next-schema/generated/nodeTypes.d.ts +137 -67
- package/dist/types/next-schema/marks/unsupportedMark.d.ts +1 -0
- package/dist/types/next-schema/marks/unsupportedNodeAttribute.d.ts +1 -0
- package/dist/types/next-schema/nodes/confluenceUnsupportedBlock.d.ts +19 -0
- package/dist/types/next-schema/nodes/confluenceUnsupportedInline.d.ts +19 -0
- package/dist/types/next-schema/nodes/heading.d.ts +0 -23
- package/dist/types/next-schema/nodes/unsupportedBlock.d.ts +19 -0
- package/dist/types/next-schema/nodes/unsupportedInline.d.ts +19 -0
- package/package.json +2 -2
@@ -5,8 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.status = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _unsupportedMark = require("../marks/unsupportedMark");
|
9
|
+
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
8
10
|
var status = exports.status = (0, _adfSchemaGenerator.adfNode)('status').define({
|
9
11
|
selectable: true,
|
12
|
+
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
10
13
|
attrs: {
|
11
14
|
text: {
|
12
15
|
minLength: 1,
|
@@ -6,11 +6,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.table = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
8
|
var _fragment = require("../marks/fragment");
|
9
|
+
var _unsupportedMark = require("../marks/unsupportedMark");
|
10
|
+
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
9
11
|
var _tableRow = require("./tableRow");
|
10
12
|
var table = exports.table = (0, _adfSchemaGenerator.adfNode)('table').define({
|
11
13
|
isolating: true,
|
12
14
|
selectable: true,
|
13
|
-
marks: [_fragment.fragment],
|
15
|
+
marks: [_fragment.fragment, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
14
16
|
attrs: {
|
15
17
|
displayMode: {
|
16
18
|
type: 'enum',
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.tableCell = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _unsupportedMark = require("../marks/unsupportedMark");
|
9
|
+
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
8
10
|
var _blockCard = require("./blockCard");
|
9
11
|
var _blockquote = require("./blockquote");
|
10
12
|
var _codeBlock = require("./codeBlock");
|
@@ -20,10 +22,12 @@ var _panel = require("./panel");
|
|
20
22
|
var _paragraph = require("./paragraph");
|
21
23
|
var _rule = require("./rule");
|
22
24
|
var _task = require("./task");
|
25
|
+
var _unsupportedBlock = require("./unsupportedBlock");
|
23
26
|
var tableCell = exports.tableCell = (0, _adfSchemaGenerator.adfNode)('tableCell').define({
|
24
27
|
isolating: true,
|
25
28
|
selectable: false,
|
26
29
|
tableRole: 'cell',
|
30
|
+
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
27
31
|
attrs: {
|
28
32
|
colspan: {
|
29
33
|
type: 'number',
|
@@ -46,5 +50,5 @@ var tableCell = exports.tableCell = (0, _adfSchemaGenerator.adfNode)('tableCell'
|
|
46
50
|
optional: true
|
47
51
|
}
|
48
52
|
},
|
49
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_codeBlock.codeBlock.use('with_no_marks'), _blockCard.blockCard, _paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote, _extension.extension.use('with_marks'), _embedCard.embedCard, _nestedExpand.nestedExpand.use('with_no_marks')))]
|
53
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_codeBlock.codeBlock.use('with_no_marks'), _blockCard.blockCard, _paragraph.paragraph.use('with_no_marks'), _paragraph.paragraph.use('with_alignment'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _task.taskList, _list.bulletList, _list.orderedList, _heading.heading.use('with_no_marks'), _heading.heading.use('with_alignment'), _heading.heading.use('with_indentation'), _mediaGroup.mediaGroup, _decisionList.decisionList, _rule.rule, _panel.panel, _blockquote.blockquote, _extension.extension.use('with_marks'), _embedCard.embedCard, _nestedExpand.nestedExpand.use('with_no_marks'), _unsupportedBlock.unsupportedBlock))]
|
50
54
|
});
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.tableHeader = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _unsupportedMark = require("../marks/unsupportedMark");
|
9
|
+
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
8
10
|
var _blockCard = require("./blockCard");
|
9
11
|
var _blockquote = require("./blockquote");
|
10
12
|
var _codeBlock = require("./codeBlock");
|
@@ -24,6 +26,7 @@ var tableHeader = exports.tableHeader = (0, _adfSchemaGenerator.adfNode)('tableH
|
|
24
26
|
isolating: true,
|
25
27
|
selectable: false,
|
26
28
|
tableRole: 'header_cell',
|
29
|
+
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
27
30
|
attrs: {
|
28
31
|
colspan: {
|
29
32
|
type: 'number',
|
@@ -5,9 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.tableRow = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var _unsupportedMark = require("../marks/unsupportedMark");
|
9
|
+
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
8
10
|
var _tableCell = require("./tableCell");
|
9
11
|
var _tableHeader = require("./tableHeader");
|
10
12
|
var tableRow = exports.tableRow = (0, _adfSchemaGenerator.adfNode)('tableRow').define({
|
11
13
|
selectable: false,
|
14
|
+
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
12
15
|
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_tableCell.tableCell, _tableHeader.tableHeader))]
|
13
16
|
});
|
@@ -6,11 +6,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
exports.taskList = exports.taskItem = void 0;
|
7
7
|
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
8
|
var _inlineGroup = require("../groups/inlineGroup");
|
9
|
+
var _unsupportedMark = require("../marks/unsupportedMark");
|
10
|
+
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
11
|
+
var _unsupportedInline = require("./unsupportedInline");
|
12
|
+
var _unsupportedBlock = require("./unsupportedBlock");
|
9
13
|
var taskItem = exports.taskItem = (0, _adfSchemaGenerator.adfNode)('taskItem');
|
10
14
|
var taskList = exports.taskList = (0, _adfSchemaGenerator.adfNode)('taskList');
|
11
15
|
taskItem.define({
|
12
16
|
defining: true,
|
13
17
|
selectable: false,
|
18
|
+
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
14
19
|
attrs: {
|
15
20
|
localId: {
|
16
21
|
type: 'string',
|
@@ -22,16 +27,17 @@ taskItem.define({
|
|
22
27
|
default: 'TODO'
|
23
28
|
}
|
24
29
|
},
|
25
|
-
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup))]
|
30
|
+
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_inlineGroup.inlineGroup, _unsupportedInline.unsupportedInline))]
|
26
31
|
});
|
27
32
|
taskList.define({
|
28
33
|
defining: true,
|
29
34
|
selectable: false,
|
35
|
+
marks: [_unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark],
|
30
36
|
attrs: {
|
31
37
|
localId: {
|
32
38
|
type: 'string',
|
33
39
|
default: ''
|
34
40
|
}
|
35
41
|
},
|
36
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(taskItem)), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(taskItem, taskList))]
|
42
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(taskItem, _unsupportedBlock.unsupportedBlock)), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(taskItem, taskList, _unsupportedBlock.unsupportedBlock))]
|
37
43
|
});
|
@@ -14,8 +14,10 @@ var _strong = require("../marks/strong");
|
|
14
14
|
var _subsup = require("../marks/subsup");
|
15
15
|
var _underline = require("../marks/underline");
|
16
16
|
var _color = require("../marks/color");
|
17
|
+
var _unsupportedNodeAttribute = require("../marks/unsupportedNodeAttribute");
|
18
|
+
var _unsupportedMark = require("../marks/unsupportedMark");
|
17
19
|
var text = exports.text = (0, _adfSchemaGenerator.adfNode)('text').define({}).variant('formatted', {
|
18
|
-
marks: [_link.link, _em.em, _strong.strong, _strike.strike, _subsup.subsup, _underline.underline, _color.textColor, _annotation.annotation, _color.backgroundColor]
|
20
|
+
marks: [_link.link, _em.em, _strong.strong, _strike.strike, _subsup.subsup, _underline.underline, _color.textColor, _annotation.annotation, _color.backgroundColor, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
|
19
21
|
}).variant('code_inline', {
|
20
|
-
marks: [_code.code, _link.link, _annotation.annotation]
|
22
|
+
marks: [_code.code, _link.link, _annotation.annotation, _unsupportedNodeAttribute.unsupportedNodeAttribute, _unsupportedMark.unsupportedMark]
|
21
23
|
});
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.unsupportedBlock = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var unsupportedBlock = exports.unsupportedBlock = (0, _adfSchemaGenerator.adfNode)('unsupportedBlock').define({
|
9
|
+
ignore: [_adfSchemaGenerator.JSONSchemaTransformerName, _adfSchemaGenerator.ValidatorSpecTransformerName],
|
10
|
+
atom: true,
|
11
|
+
selectable: true,
|
12
|
+
attrs: {
|
13
|
+
originalValue: {
|
14
|
+
type: 'object',
|
15
|
+
default: {}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
});
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
4
|
+
value: true
|
5
|
+
});
|
6
|
+
exports.unsupportedInline = void 0;
|
7
|
+
var _adfSchemaGenerator = require("@atlaskit/adf-schema-generator");
|
8
|
+
var unsupportedInline = exports.unsupportedInline = (0, _adfSchemaGenerator.adfNode)('unsupportedInline').define({
|
9
|
+
ignore: [_adfSchemaGenerator.JSONSchemaTransformerName, _adfSchemaGenerator.ValidatorSpecTransformerName],
|
10
|
+
inline: true,
|
11
|
+
selectable: true,
|
12
|
+
attrs: {
|
13
|
+
originalValue: {
|
14
|
+
type: 'object',
|
15
|
+
default: {}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
});
|
@@ -4,9 +4,10 @@ import { layoutSection } from './nodes/layoutSection';
|
|
4
4
|
import { blockRootOnlyGroup } from './groups/blockRootOnlyGroup';
|
5
5
|
import { nestedExpand } from './nodes/nestedExpand';
|
6
6
|
import { paragraph } from './nodes/paragraph';
|
7
|
+
import { unsupportedBlock } from './nodes/unsupportedBlock';
|
7
8
|
const doc = adfNode('doc').define({
|
8
9
|
root: true,
|
9
10
|
version: 1,
|
10
|
-
content: [$onePlus($or(blockGroup, layoutSection, layoutSection.use('full'), blockRootOnlyGroup, nestedExpand, paragraph))]
|
11
|
+
content: [$onePlus($or(blockGroup, layoutSection, layoutSection.use('full'), blockRootOnlyGroup, nestedExpand, paragraph, unsupportedBlock))]
|
11
12
|
});
|
12
13
|
export default doc;
|
@@ -1,4 +1,21 @@
|
|
1
1
|
import { createPMMarkSpecFactory } from '@atlaskit/adf-schema-generator';
|
2
|
+
export const unsupportedNodeAttribute = createPMMarkSpecFactory({
|
3
|
+
attrs: {
|
4
|
+
type: {
|
5
|
+
default: null
|
6
|
+
},
|
7
|
+
unsupported: {
|
8
|
+
default: {}
|
9
|
+
}
|
10
|
+
}
|
11
|
+
});
|
12
|
+
export const unsupportedMark = createPMMarkSpecFactory({
|
13
|
+
attrs: {
|
14
|
+
originalValue: {
|
15
|
+
default: {}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
});
|
2
19
|
export const breakout = createPMMarkSpecFactory({
|
3
20
|
attrs: {
|
4
21
|
mode: {
|