@atlaskit/adf-schema 43.0.0 → 44.1.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/generated/markTypes.js +3 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +1 -7
- package/dist/cjs/next-schema/marks/breakout.js +5 -0
- package/dist/cjs/next-schema/nodes/list.js +2 -5
- package/dist/cjs/schema/marks/breakout.js +6 -2
- package/dist/cjs/schema/nodes/list-item.js +6 -9
- package/dist/cjs/validator-schema/generated/validatorSpec.js +4 -0
- package/dist/es2019/next-schema/generated/markTypes.js +3 -0
- package/dist/es2019/next-schema/generated/nodeTypes.js +0 -6
- package/dist/es2019/next-schema/marks/breakout.js +5 -0
- package/dist/es2019/next-schema/nodes/list.js +2 -5
- package/dist/es2019/schema/marks/breakout.js +6 -2
- package/dist/es2019/schema/nodes/list-item.js +7 -10
- package/dist/es2019/validator-schema/generated/validatorSpec.js +4 -0
- package/dist/esm/next-schema/generated/markTypes.js +3 -0
- package/dist/esm/next-schema/generated/nodeTypes.js +0 -6
- package/dist/esm/next-schema/marks/breakout.js +5 -0
- package/dist/esm/next-schema/nodes/list.js +2 -5
- package/dist/esm/schema/marks/breakout.js +6 -2
- package/dist/esm/schema/nodes/list-item.js +7 -10
- package/dist/esm/validator-schema/generated/validatorSpec.js +4 -0
- package/dist/json-schema/v1/full.json +3 -0
- package/dist/json-schema/v1/stage-0.json +3 -0
- package/dist/types/next-schema/generated/markTypes.d.ts +1 -0
- package/dist/types/next-schema/generated/nodeTypes.d.ts +2 -9
- package/dist/types/schema/nodes/list-item.d.ts +4 -0
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +4 -0
- package/json-schema/v1/full.json +3 -0
- package/json-schema/v1/stage-0.json +3 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 44.1.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- 2aebf23: Add optional attribute 'width' to Breakout Mark, approved in adf change 84
|
8
|
+
|
9
|
+
## 44.0.0
|
10
|
+
|
11
|
+
### Major Changes
|
12
|
+
|
13
|
+
- a794c81: Remove list item legacy
|
14
|
+
|
3
15
|
## 43.0.0
|
4
16
|
|
5
17
|
### Major Changes
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.unsupportedInline = exports.unsupportedBlock = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panelWithNestedBlockquoteStage0 = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemWithNestedDecisionStage0 = exports.
|
6
|
+
exports.unsupportedInline = exports.unsupportedBlock = exports.textFormatted = exports.textCodeInline = exports.text = exports.taskList = exports.taskItem = exports.tableRow = exports.tableHeader = exports.tableCell = exports.table = exports.statusStage0 = exports.status = exports.rule = exports.placeholder = exports.paragraphWithNoMarks = exports.paragraphWithIndentation = exports.paragraphWithAlignment = exports.paragraph = exports.panelWithNestedBlockquoteStage0 = exports.panel = exports.orderedList = exports.nestedExpandWithNoMarks = exports.nestedExpand = exports.multiBodiedExtensionStage0 = exports.mentionStage0 = exports.mention = exports.mediaSingleWidthType = exports.mediaSingleFull = exports.mediaSingleCaption = exports.mediaSingle = exports.mediaInline = exports.mediaGroup = exports.media = exports.listItemWithNestedDecisionStage0 = exports.listItem = exports.layoutSectionWithSingleColumnStage0 = exports.layoutSectionFull = exports.layoutSection = exports.layoutColumn = exports.inlineExtensionWithMarks = exports.inlineExtension = exports.inlineCardStage0 = exports.inlineCard = exports.image = exports.headingWithNoMarks = exports.headingWithIndentation = exports.headingWithAlignment = exports.heading = exports.hardBreak = exports.extensionWithMarks = exports.extensionFrameStage0 = exports.extension = exports.expandWithoutNestedExpand = exports.expandWithNoMark = exports.expand = exports.emojiStage0 = exports.emoji = exports.embedCard = exports.doc = exports.decisionList = exports.decisionItem = exports.dateStage0 = exports.date = exports.confluenceUnsupportedInline = exports.confluenceUnsupportedBlock = exports.confluenceJiraIssue = exports.codeBlockWithNoMarks = exports.codeBlock = exports.caption = exports.bulletList = exports.bodiedExtensionWithMarks = exports.bodiedExtension = exports.blockquoteWithoutNestedCodeblockOrMedia = exports.blockquoteLegacy = exports.blockquote = exports.blockCard = void 0;
|
7
7
|
var _createPMSpecFactory = require("../../schema/createPMSpecFactory");
|
8
8
|
/**
|
9
9
|
* This file was automatically generated by @atlaskit/adf-schema-generator
|
@@ -583,12 +583,6 @@ var listItem = exports.listItem = (0, _createPMSpecFactory.createPMNodeSpecFacto
|
|
583
583
|
selectable: false,
|
584
584
|
defining: true
|
585
585
|
});
|
586
|
-
var listItemLegacy = exports.listItemLegacy = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
587
|
-
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock | unsupportedBlock)*',
|
588
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
589
|
-
selectable: false,
|
590
|
-
defining: true
|
591
|
-
});
|
592
586
|
var listItemWithNestedDecisionStage0 = exports.listItemWithNestedDecisionStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
593
587
|
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock | decisionList) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | decisionList)*',
|
594
588
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
@@ -21,9 +21,6 @@ var listItem = (0, _adfSchemaGenerator.adfNode)('listItem').define({
|
|
21
21
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
22
22
|
contentMinItems: 1,
|
23
23
|
content: [(0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock.use('with_no_marks'), _unsupportedBlock.unsupportedBlock), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), bulletList, orderedList, _task.taskList, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock.use('with_no_marks'), _unsupportedBlock.unsupportedBlock))]
|
24
|
-
}).variant('legacy', {
|
25
|
-
content: [(0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock.use('with_no_marks'), _unsupportedBlock.unsupportedBlock), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), bulletList, orderedList, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock.use('with_no_marks'), _unsupportedBlock.unsupportedBlock))],
|
26
|
-
ignore: ['json-schema', 'validator-spec']
|
27
24
|
}).variant('with_nested_decision', {
|
28
25
|
content: [(0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock.use('with_no_marks'), _unsupportedBlock.unsupportedBlock, _decisionList.decisionList), (0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph.use('with_no_marks'), bulletList, orderedList, _task.taskList, _mediaSingle.mediaSingle.use('caption'), _mediaSingle.mediaSingle.use('full'), _codeBlock.codeBlock.use('with_no_marks'), _unsupportedBlock.unsupportedBlock, _decisionList.decisionList))],
|
29
26
|
noExtend: true,
|
@@ -40,10 +37,10 @@ orderedList.define({
|
|
40
37
|
optional: true
|
41
38
|
}
|
42
39
|
},
|
43
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('
|
40
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('with_nested_decision')))]
|
44
41
|
});
|
45
42
|
bulletList.define({
|
46
43
|
selectable: false,
|
47
44
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
48
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('
|
45
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(listItem, listItem.use('with_nested_decision')))]
|
49
46
|
});
|
@@ -16,15 +16,19 @@ var breakout = exports.breakout = (0, _markTypes.breakout)({
|
|
16
16
|
tag: 'div.fabric-editor-breakout-mark',
|
17
17
|
getAttrs: function getAttrs(dom) {
|
18
18
|
var mode = dom.getAttribute('data-mode');
|
19
|
+
var width = dom.getAttribute('data-width');
|
19
20
|
return {
|
20
|
-
mode: allowedTypes.indexOf(mode || '') === -1 ? 'wide' : mode
|
21
|
+
mode: allowedTypes.indexOf(mode || '') === -1 ? 'wide' : mode,
|
22
|
+
width: width ? parseInt(width) : null
|
21
23
|
};
|
22
24
|
}
|
23
25
|
}],
|
24
26
|
toDOM: function toDOM(mark) {
|
27
|
+
var _mark$attrs;
|
25
28
|
return ['div', {
|
26
29
|
class: 'fabric-editor-breakout-mark',
|
27
|
-
'data-mode': mark.attrs.mode
|
30
|
+
'data-mode': mark.attrs.mode,
|
31
|
+
'data-width': (_mark$attrs = mark.attrs) === null || _mark$attrs === void 0 ? void 0 : _mark$attrs.width
|
28
32
|
}, 0];
|
29
33
|
}
|
30
34
|
});
|
@@ -5,7 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.listItemWithTask = exports.listItemWithDecisionStage0 = exports.listItem = void 0;
|
7
7
|
var _nodeTypes = require("../../next-schema/generated/nodeTypes");
|
8
|
-
|
8
|
+
/**
|
9
|
+
* @name list_item
|
10
|
+
* @description this node allows task-list to be nested inside list-item
|
11
|
+
*/
|
12
|
+
var listItem = exports.listItem = (0, _nodeTypes.listItem)({
|
9
13
|
parseDOM: [{
|
10
14
|
tag: 'li'
|
11
15
|
}],
|
@@ -18,14 +22,7 @@ var listItem = exports.listItem = (0, _nodeTypes.listItemLegacy)({
|
|
18
22
|
* @name list_item_with_task
|
19
23
|
* @description this node allows task-list to be nested inside list-item
|
20
24
|
*/
|
21
|
-
var listItemWithTask = exports.listItemWithTask =
|
22
|
-
parseDOM: [{
|
23
|
-
tag: 'li'
|
24
|
-
}],
|
25
|
-
toDOM: function toDOM() {
|
26
|
-
return ['li', 0];
|
27
|
-
}
|
28
|
-
});
|
25
|
+
var listItemWithTask = exports.listItemWithTask = listItem;
|
29
26
|
|
30
27
|
/**
|
31
28
|
* @name list_item_with_decision_stage0
|
@@ -577,12 +577,6 @@ export const listItem = createPMNodeSpecFactory({
|
|
577
577
|
selectable: false,
|
578
578
|
defining: true
|
579
579
|
});
|
580
|
-
export const listItemLegacy = createPMNodeSpecFactory({
|
581
|
-
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock | unsupportedBlock)*',
|
582
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
583
|
-
selectable: false,
|
584
|
-
defining: true
|
585
|
-
});
|
586
580
|
export const listItemWithNestedDecisionStage0 = createPMNodeSpecFactory({
|
587
581
|
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock | decisionList) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | decisionList)*',
|
588
582
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
@@ -15,9 +15,6 @@ const listItem = adfNode('listItem').define({
|
|
15
15
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
16
16
|
contentMinItems: 1,
|
17
17
|
content: [$or(paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock), $zeroPlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, taskList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock))]
|
18
|
-
}).variant('legacy', {
|
19
|
-
content: [$or(paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock), $zeroPlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock))],
|
20
|
-
ignore: ['json-schema', 'validator-spec']
|
21
18
|
}).variant('with_nested_decision', {
|
22
19
|
content: [$or(paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock, decisionList), $zeroPlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, taskList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock, decisionList))],
|
23
20
|
noExtend: true,
|
@@ -34,10 +31,10 @@ orderedList.define({
|
|
34
31
|
optional: true
|
35
32
|
}
|
36
33
|
},
|
37
|
-
content: [$onePlus($or(listItem, listItem.use('
|
34
|
+
content: [$onePlus($or(listItem, listItem.use('with_nested_decision')))]
|
38
35
|
});
|
39
36
|
bulletList.define({
|
40
37
|
selectable: false,
|
41
38
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
42
|
-
content: [$onePlus($or(listItem, listItem.use('
|
39
|
+
content: [$onePlus($or(listItem, listItem.use('with_nested_decision')))]
|
43
40
|
});
|
@@ -10,15 +10,19 @@ export const breakout = breakoutFactory({
|
|
10
10
|
tag: 'div.fabric-editor-breakout-mark',
|
11
11
|
getAttrs(dom) {
|
12
12
|
const mode = dom.getAttribute('data-mode');
|
13
|
+
const width = dom.getAttribute('data-width');
|
13
14
|
return {
|
14
|
-
mode: allowedTypes.indexOf(mode || '') === -1 ? 'wide' : mode
|
15
|
+
mode: allowedTypes.indexOf(mode || '') === -1 ? 'wide' : mode,
|
16
|
+
width: width ? parseInt(width) : null
|
15
17
|
};
|
16
18
|
}
|
17
19
|
}],
|
18
20
|
toDOM(mark) {
|
21
|
+
var _mark$attrs;
|
19
22
|
return ['div', {
|
20
23
|
class: 'fabric-editor-breakout-mark',
|
21
|
-
'data-mode': mark.attrs.mode
|
24
|
+
'data-mode': mark.attrs.mode,
|
25
|
+
'data-width': (_mark$attrs = mark.attrs) === null || _mark$attrs === void 0 ? void 0 : _mark$attrs.width
|
22
26
|
}, 0];
|
23
27
|
}
|
24
28
|
});
|
@@ -1,7 +1,11 @@
|
|
1
1
|
import { listItem as listItemFactory } from '../../next-schema/generated/nodeTypes';
|
2
|
-
import { listItemLegacy as listItemLegacyFactory } from '../../next-schema/generated/nodeTypes';
|
3
2
|
import { listItemWithNestedDecisionStage0 as listItemWithNestedDecisionStage0Factory } from '../../next-schema/generated/nodeTypes';
|
4
|
-
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @name list_item
|
6
|
+
* @description this node allows task-list to be nested inside list-item
|
7
|
+
*/
|
8
|
+
export const listItem = listItemFactory({
|
5
9
|
parseDOM: [{
|
6
10
|
tag: 'li'
|
7
11
|
}],
|
@@ -14,14 +18,7 @@ export const listItem = listItemLegacyFactory({
|
|
14
18
|
* @name list_item_with_task
|
15
19
|
* @description this node allows task-list to be nested inside list-item
|
16
20
|
*/
|
17
|
-
export const listItemWithTask =
|
18
|
-
parseDOM: [{
|
19
|
-
tag: 'li'
|
20
|
-
}],
|
21
|
-
toDOM() {
|
22
|
-
return ['li', 0];
|
23
|
-
}
|
24
|
-
});
|
21
|
+
export const listItemWithTask = listItem;
|
25
22
|
|
26
23
|
/**
|
27
24
|
* @name list_item_with_decision_stage0
|
@@ -577,12 +577,6 @@ export var listItem = createPMNodeSpecFactory({
|
|
577
577
|
selectable: false,
|
578
578
|
defining: true
|
579
579
|
});
|
580
|
-
export var listItemLegacy = createPMNodeSpecFactory({
|
581
|
-
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock) (paragraph | bulletList | orderedList | mediaSingle | codeBlock | unsupportedBlock)*',
|
582
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
583
|
-
selectable: false,
|
584
|
-
defining: true
|
585
|
-
});
|
586
580
|
export var listItemWithNestedDecisionStage0 = createPMNodeSpecFactory({
|
587
581
|
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock | decisionList) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | decisionList)*',
|
588
582
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
@@ -15,9 +15,6 @@ var listItem = adfNode('listItem').define({
|
|
15
15
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
16
16
|
contentMinItems: 1,
|
17
17
|
content: [$or(paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock), $zeroPlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, taskList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock))]
|
18
|
-
}).variant('legacy', {
|
19
|
-
content: [$or(paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock), $zeroPlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock))],
|
20
|
-
ignore: ['json-schema', 'validator-spec']
|
21
18
|
}).variant('with_nested_decision', {
|
22
19
|
content: [$or(paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock, decisionList), $zeroPlus($or(paragraph.use('with_no_marks'), bulletList, orderedList, taskList, mediaSingle.use('caption'), mediaSingle.use('full'), codeBlock.use('with_no_marks'), unsupportedBlock, decisionList))],
|
23
20
|
noExtend: true,
|
@@ -34,10 +31,10 @@ orderedList.define({
|
|
34
31
|
optional: true
|
35
32
|
}
|
36
33
|
},
|
37
|
-
content: [$onePlus($or(listItem, listItem.use('
|
34
|
+
content: [$onePlus($or(listItem, listItem.use('with_nested_decision')))]
|
38
35
|
});
|
39
36
|
bulletList.define({
|
40
37
|
selectable: false,
|
41
38
|
marks: [unsupportedMark, unsupportedNodeAttribute],
|
42
|
-
content: [$onePlus($or(listItem, listItem.use('
|
39
|
+
content: [$onePlus($or(listItem, listItem.use('with_nested_decision')))]
|
43
40
|
});
|
@@ -10,15 +10,19 @@ export var breakout = breakoutFactory({
|
|
10
10
|
tag: 'div.fabric-editor-breakout-mark',
|
11
11
|
getAttrs: function getAttrs(dom) {
|
12
12
|
var mode = dom.getAttribute('data-mode');
|
13
|
+
var width = dom.getAttribute('data-width');
|
13
14
|
return {
|
14
|
-
mode: allowedTypes.indexOf(mode || '') === -1 ? 'wide' : mode
|
15
|
+
mode: allowedTypes.indexOf(mode || '') === -1 ? 'wide' : mode,
|
16
|
+
width: width ? parseInt(width) : null
|
15
17
|
};
|
16
18
|
}
|
17
19
|
}],
|
18
20
|
toDOM: function toDOM(mark) {
|
21
|
+
var _mark$attrs;
|
19
22
|
return ['div', {
|
20
23
|
class: 'fabric-editor-breakout-mark',
|
21
|
-
'data-mode': mark.attrs.mode
|
24
|
+
'data-mode': mark.attrs.mode,
|
25
|
+
'data-width': (_mark$attrs = mark.attrs) === null || _mark$attrs === void 0 ? void 0 : _mark$attrs.width
|
22
26
|
}, 0];
|
23
27
|
}
|
24
28
|
});
|
@@ -1,7 +1,11 @@
|
|
1
1
|
import { listItem as listItemFactory } from '../../next-schema/generated/nodeTypes';
|
2
|
-
import { listItemLegacy as listItemLegacyFactory } from '../../next-schema/generated/nodeTypes';
|
3
2
|
import { listItemWithNestedDecisionStage0 as listItemWithNestedDecisionStage0Factory } from '../../next-schema/generated/nodeTypes';
|
4
|
-
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @name list_item
|
6
|
+
* @description this node allows task-list to be nested inside list-item
|
7
|
+
*/
|
8
|
+
export var listItem = listItemFactory({
|
5
9
|
parseDOM: [{
|
6
10
|
tag: 'li'
|
7
11
|
}],
|
@@ -14,14 +18,7 @@ export var listItem = listItemLegacyFactory({
|
|
14
18
|
* @name list_item_with_task
|
15
19
|
* @description this node allows task-list to be nested inside list-item
|
16
20
|
*/
|
17
|
-
export var listItemWithTask =
|
18
|
-
parseDOM: [{
|
19
|
-
tag: 'li'
|
20
|
-
}],
|
21
|
-
toDOM: function toDOM() {
|
22
|
-
return ['li', 0];
|
23
|
-
}
|
24
|
-
});
|
21
|
+
export var listItemWithTask = listItem;
|
25
22
|
|
26
23
|
/**
|
27
24
|
* @name list_item_with_decision_stage0
|
@@ -52,6 +52,7 @@ export interface BorderMark extends Mark {
|
|
52
52
|
export declare const border: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").MarkSpecOptions<BorderMark>) => import("prosemirror-model").MarkSpec;
|
53
53
|
export interface BreakoutMarkAttributes {
|
54
54
|
mode: 'wide' | 'full-width';
|
55
|
+
width?: number;
|
55
56
|
}
|
56
57
|
export interface BreakoutDefinition {
|
57
58
|
type: 'breakout';
|
@@ -77,7 +77,7 @@ export type BodiedExtensionWithMarksNode = PMNode & BodiedExtensionWithMarksDefi
|
|
77
77
|
export declare const bodiedExtensionWithMarks: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BodiedExtensionWithMarksNode>) => import("prosemirror-model").NodeSpec;
|
78
78
|
export interface BulletListDefinition {
|
79
79
|
type: 'bulletList';
|
80
|
-
content: Array<ListItemDefinition |
|
80
|
+
content: Array<ListItemDefinition | ListItemWithNestedDecisionStage0Definition>;
|
81
81
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
82
82
|
}
|
83
83
|
export type BulletListNode = PMNode & BulletListDefinition;
|
@@ -434,13 +434,6 @@ export interface ListItemDefinition {
|
|
434
434
|
}
|
435
435
|
export type ListItemNode = PMNode & ListItemDefinition;
|
436
436
|
export declare const listItem: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ListItemNode>) => import("prosemirror-model").NodeSpec;
|
437
|
-
export interface ListItemLegacyDefinition {
|
438
|
-
type: 'listItem';
|
439
|
-
content: Array<BulletListDefinition | CodeBlockWithNoMarksDefinition | CodeBlockWithNoMarksDefinition | MediaSingleCaptionDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | ParagraphWithNoMarksDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
440
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
441
|
-
}
|
442
|
-
export type ListItemLegacyNode = PMNode & ListItemLegacyDefinition;
|
443
|
-
export declare const listItemLegacy: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ListItemLegacyNode>) => import("prosemirror-model").NodeSpec;
|
444
437
|
export interface ListItemWithNestedDecisionStage0Definition {
|
445
438
|
type: 'listItem';
|
446
439
|
content: Array<BulletListDefinition | CodeBlockWithNoMarksDefinition | CodeBlockWithNoMarksDefinition | DecisionListDefinition | DecisionListDefinition | MediaSingleCaptionDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
@@ -641,7 +634,7 @@ export type NestedExpandWithNoMarksNode = PMNode & NestedExpandWithNoMarksDefini
|
|
641
634
|
export declare const nestedExpandWithNoMarks: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<NestedExpandWithNoMarksNode>) => import("prosemirror-model").NodeSpec;
|
642
635
|
export interface OrderedListDefinition {
|
643
636
|
type: 'orderedList';
|
644
|
-
content: Array<ListItemDefinition |
|
637
|
+
content: Array<ListItemDefinition | ListItemWithNestedDecisionStage0Definition>;
|
645
638
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
646
639
|
attrs: {
|
647
640
|
order?: number;
|
package/json-schema/v1/full.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@atlaskit/adf-schema",
|
3
|
-
"version": "
|
3
|
+
"version": "44.1.0",
|
4
4
|
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
|
5
5
|
"publishConfig": {
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"memoize-one": "^6.0.0"
|
46
46
|
},
|
47
47
|
"devDependencies": {
|
48
|
-
"@atlassian/adf-schema-json": "^1.
|
48
|
+
"@atlassian/adf-schema-json": "^1.23.0",
|
49
49
|
"@atlaskit/adf-schema-generator": "^1.36.0",
|
50
50
|
"@atlaskit/codemod-utils": "^4.2.4",
|
51
51
|
"@babel/cli": "^7.22.9",
|