@atlaskit/adf-schema 37.0.2 → 37.1.19
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 +151 -0
- package/dist/cjs/next-schema/full-schema.adf.js +1 -1
- package/dist/cjs/next-schema/generated/nodeTypes.js +101 -31
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
- package/dist/cjs/next-schema/groups/inlineGroup.js +1 -1
- package/dist/cjs/next-schema/index.js +511 -0
- package/dist/cjs/next-schema/nodes/blockquote.js +3 -2
- package/dist/cjs/next-schema/nodes/bodiedExtension.js +6 -2
- package/dist/cjs/next-schema/nodes/codeBlock.js +10 -3
- package/dist/cjs/next-schema/nodes/date.js +2 -1
- package/dist/cjs/next-schema/nodes/emoji.js +2 -1
- package/dist/cjs/next-schema/nodes/expand.js +11 -3
- package/dist/cjs/next-schema/nodes/extension.js +5 -2
- package/dist/cjs/next-schema/nodes/heading.js +28 -5
- package/dist/cjs/next-schema/nodes/inlineExtension.js +1 -0
- package/dist/cjs/next-schema/nodes/layoutSection.js +15 -2
- package/dist/cjs/next-schema/nodes/list.js +12 -9
- package/dist/cjs/next-schema/nodes/mediaInline.js +2 -1
- package/dist/cjs/next-schema/nodes/mediaSingle.js +75 -4
- package/dist/cjs/next-schema/nodes/mention.js +2 -1
- package/dist/cjs/next-schema/nodes/multiBodiedExtension.js +8 -4
- package/dist/cjs/next-schema/nodes/nestedExpand.js +5 -1
- package/dist/cjs/next-schema/nodes/panel.js +3 -0
- package/dist/cjs/next-schema/nodes/paragraph.js +29 -5
- package/dist/cjs/next-schema/nodes/status.js +2 -1
- package/dist/cjs/next-schema/nodes/tableCell.js +4 -1
- package/dist/cjs/next-schema/nodes/tableHeader.js +5 -2
- package/dist/cjs/next-schema/nodes/task.js +1 -0
- package/dist/cjs/next-schema/nodes/text.js +7 -1
- package/dist/cjs/schema/nodes/media.js +10 -4
- package/dist/cjs/schema/nodes/text.js +1 -0
- package/dist/es2019/next-schema/full-schema.adf.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +100 -30
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
- package/dist/es2019/next-schema/groups/inlineGroup.js +1 -1
- package/dist/es2019/next-schema/index.js +2 -0
- package/dist/es2019/next-schema/nodes/blockquote.js +3 -2
- package/dist/es2019/next-schema/nodes/bodiedExtension.js +6 -2
- package/dist/es2019/next-schema/nodes/codeBlock.js +10 -3
- package/dist/es2019/next-schema/nodes/date.js +2 -1
- package/dist/es2019/next-schema/nodes/emoji.js +2 -1
- package/dist/es2019/next-schema/nodes/expand.js +11 -3
- package/dist/es2019/next-schema/nodes/extension.js +5 -2
- package/dist/es2019/next-schema/nodes/heading.js +27 -4
- package/dist/es2019/next-schema/nodes/inlineExtension.js +1 -0
- package/dist/es2019/next-schema/nodes/layoutSection.js +15 -2
- package/dist/es2019/next-schema/nodes/list.js +12 -9
- package/dist/es2019/next-schema/nodes/mediaInline.js +2 -1
- package/dist/es2019/next-schema/nodes/mediaSingle.js +76 -5
- package/dist/es2019/next-schema/nodes/mention.js +2 -1
- package/dist/es2019/next-schema/nodes/multiBodiedExtension.js +8 -4
- package/dist/es2019/next-schema/nodes/nestedExpand.js +5 -1
- package/dist/es2019/next-schema/nodes/panel.js +3 -0
- package/dist/es2019/next-schema/nodes/paragraph.js +29 -5
- package/dist/es2019/next-schema/nodes/status.js +2 -1
- package/dist/es2019/next-schema/nodes/tableCell.js +4 -1
- package/dist/es2019/next-schema/nodes/tableHeader.js +5 -2
- package/dist/es2019/next-schema/nodes/task.js +1 -0
- package/dist/es2019/next-schema/nodes/text.js +7 -1
- package/dist/es2019/schema/nodes/media.js +3 -1
- package/dist/es2019/schema/nodes/text.js +1 -0
- package/dist/esm/next-schema/full-schema.adf.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +100 -30
- package/dist/esm/next-schema/groups/blockGroup.js +1 -1
- package/dist/esm/next-schema/groups/inlineGroup.js +1 -1
- package/dist/esm/next-schema/index.js +2 -0
- package/dist/esm/next-schema/nodes/blockquote.js +3 -2
- package/dist/esm/next-schema/nodes/bodiedExtension.js +6 -2
- package/dist/esm/next-schema/nodes/codeBlock.js +10 -3
- package/dist/esm/next-schema/nodes/date.js +2 -1
- package/dist/esm/next-schema/nodes/emoji.js +2 -1
- package/dist/esm/next-schema/nodes/expand.js +11 -3
- package/dist/esm/next-schema/nodes/extension.js +5 -2
- package/dist/esm/next-schema/nodes/heading.js +27 -4
- package/dist/esm/next-schema/nodes/inlineExtension.js +1 -0
- package/dist/esm/next-schema/nodes/layoutSection.js +15 -2
- package/dist/esm/next-schema/nodes/list.js +12 -9
- package/dist/esm/next-schema/nodes/mediaInline.js +2 -1
- package/dist/esm/next-schema/nodes/mediaSingle.js +76 -5
- package/dist/esm/next-schema/nodes/mention.js +2 -1
- package/dist/esm/next-schema/nodes/multiBodiedExtension.js +8 -4
- package/dist/esm/next-schema/nodes/nestedExpand.js +5 -1
- package/dist/esm/next-schema/nodes/panel.js +3 -0
- package/dist/esm/next-schema/nodes/paragraph.js +29 -5
- package/dist/esm/next-schema/nodes/status.js +2 -1
- package/dist/esm/next-schema/nodes/tableCell.js +4 -1
- package/dist/esm/next-schema/nodes/tableHeader.js +5 -2
- package/dist/esm/next-schema/nodes/task.js +1 -0
- package/dist/esm/next-schema/nodes/text.js +7 -1
- package/dist/esm/schema/nodes/media.js +9 -4
- package/dist/esm/schema/nodes/text.js +1 -0
- package/dist/types/next-schema/full-schema.adf.d.ts +18 -0
- package/dist/types/next-schema/generated/markTypes.d.ts +20 -20
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +145 -96
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +128 -6
- package/dist/types/next-schema/index.d.ts +5 -0
- package/dist/types/next-schema/nodes/blockCard.d.ts +18 -0
- package/dist/types/next-schema/nodes/blockquote.d.ts +20 -1
- package/dist/types/next-schema/nodes/bodiedExtension.d.ts +20 -0
- package/dist/types/next-schema/nodes/caption.d.ts +18 -0
- package/dist/types/next-schema/nodes/codeBlock.d.ts +48 -0
- package/dist/types/next-schema/nodes/confluenceJiraIssue.d.ts +18 -0
- package/dist/types/next-schema/nodes/confluenceUnsupportedBlock.d.ts +18 -0
- package/dist/types/next-schema/nodes/confluenceUnsupportedInline.d.ts +18 -0
- package/dist/types/next-schema/nodes/date.d.ts +18 -0
- package/dist/types/next-schema/nodes/decisionItem.d.ts +18 -0
- package/dist/types/next-schema/nodes/decisionList.d.ts +18 -0
- package/dist/types/next-schema/nodes/embedCard.d.ts +18 -0
- package/dist/types/next-schema/nodes/emoji.d.ts +18 -0
- package/dist/types/next-schema/nodes/expand.d.ts +25 -0
- package/dist/types/next-schema/nodes/extension.d.ts +19 -0
- package/dist/types/next-schema/nodes/extensionFrame.d.ts +18 -0
- package/dist/types/next-schema/nodes/hardBreak.d.ts +18 -0
- package/dist/types/next-schema/nodes/heading.d.ts +80 -0
- package/dist/types/next-schema/nodes/image.d.ts +18 -0
- package/dist/types/next-schema/nodes/inlineCard.d.ts +18 -0
- package/dist/types/next-schema/nodes/inlineExtension.d.ts +18 -0
- package/dist/types/next-schema/nodes/layoutColumn.d.ts +18 -0
- package/dist/types/next-schema/nodes/layoutSection.d.ts +22 -0
- package/dist/types/next-schema/nodes/list.d.ts +36 -0
- package/dist/types/next-schema/nodes/media.d.ts +18 -0
- package/dist/types/next-schema/nodes/mediaGroup.d.ts +18 -0
- package/dist/types/next-schema/nodes/mediaInline.d.ts +18 -0
- package/dist/types/next-schema/nodes/mediaSingle.d.ts +67 -1
- package/dist/types/next-schema/nodes/mention.d.ts +18 -0
- package/dist/types/next-schema/nodes/multiBodiedExtension.d.ts +18 -0
- package/dist/types/next-schema/nodes/nestedExpand.d.ts +22 -0
- package/dist/types/next-schema/nodes/panel.d.ts +22 -1
- package/dist/types/next-schema/nodes/paragraph.d.ts +29 -0
- package/dist/types/next-schema/nodes/placeholder.d.ts +18 -0
- package/dist/types/next-schema/nodes/rule.d.ts +18 -0
- package/dist/types/next-schema/nodes/status.d.ts +18 -0
- package/dist/types/next-schema/nodes/table.d.ts +18 -0
- package/dist/types/next-schema/nodes/tableCell.d.ts +18 -0
- package/dist/types/next-schema/nodes/tableHeader.d.ts +18 -0
- package/dist/types/next-schema/nodes/tableRow.d.ts +18 -0
- package/dist/types/next-schema/nodes/task.d.ts +36 -0
- package/dist/types/next-schema/nodes/text.d.ts +22 -1
- package/dist/types/next-schema/nodes/unsupportedBlock.d.ts +18 -0
- package/dist/types/next-schema/nodes/unsupportedInline.d.ts +18 -0
- package/package.json +8 -3
- package/schema-generators/__tests__/unit/__fixtures__/index.fixture.ts +140 -0
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -45
- package/schema-generators/__tests__/unit/adfToValidatorSpecValidation.unit.ts +88 -0
- package/schema-generators/__tests__/unit/json-full-schema-backwards-compat.unit.ts +70 -61
- package/schema-generators/__tests__/unit/validate-pm-schema.unit.ts +152 -46
- package/schema-next/package.json +9 -0
- package/schema-generators/__tests__/unit/jqueries.md +0 -194
- package/schema-generators/__tests__/unit/json-full-schema.unit.ts +0 -2320
@@ -7,6 +7,7 @@ export var heading = adfNode('heading').define({
|
|
7
7
|
defining: true,
|
8
8
|
selectable: false,
|
9
9
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
10
|
+
hasEmptyMarks: true,
|
10
11
|
attrs: {
|
11
12
|
level: {
|
12
13
|
type: 'number',
|
@@ -20,9 +21,31 @@ export var heading = adfNode('heading').define({
|
|
20
21
|
default: null
|
21
22
|
}
|
22
23
|
},
|
23
|
-
content: [$zeroPlus($or(inlineGroup))]
|
24
|
+
content: [$zeroPlus($or(inlineGroup))],
|
25
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
26
|
+
'validator-spec': {
|
27
|
+
marks: {
|
28
|
+
value: {
|
29
|
+
type: 'array',
|
30
|
+
items: [],
|
31
|
+
optional: true
|
32
|
+
},
|
33
|
+
reason: 'In old types, some nodes have marks: Array<any>, which is not possible to represent in new DSL'
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
24
37
|
}).variant('with_alignment', {
|
25
|
-
marks: [alignment, unsupportedNodeAttribute, unsupportedMark]
|
38
|
+
marks: [alignment, unsupportedNodeAttribute, unsupportedMark],
|
39
|
+
content: [],
|
40
|
+
ignore: []
|
26
41
|
}).variant('with_indentation', {
|
27
|
-
marks: [indentation, unsupportedNodeAttribute, unsupportedMark]
|
28
|
-
|
42
|
+
marks: [indentation, unsupportedNodeAttribute, unsupportedMark],
|
43
|
+
content: [],
|
44
|
+
ignore: []
|
45
|
+
}).variant('with_no_marks', {
|
46
|
+
content: [],
|
47
|
+
marks: [],
|
48
|
+
noMarks: true,
|
49
|
+
ignore: []
|
50
|
+
});
|
51
|
+
export var headingWithMarks = heading;
|
@@ -7,5 +7,18 @@ import { unsupportedBlock } from './unsupportedBlock';
|
|
7
7
|
export var layoutSection = adfNode('layoutSection').define({
|
8
8
|
isolating: true,
|
9
9
|
marks: [breakout, unsupportedNodeAttribute, unsupportedMark],
|
10
|
-
content: [$range(1, 3, $or(layoutColumn, unsupportedBlock))]
|
11
|
-
|
10
|
+
content: [$range(1, 3, $or(layoutColumn, unsupportedBlock))],
|
11
|
+
ignore: ['json-schema'],
|
12
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
13
|
+
'pm-spec': {
|
14
|
+
content: {
|
15
|
+
value: '(layoutColumn | unsupportedBlock){1,3} unsupportedBlock* | unsupportedBlock+',
|
16
|
+
reason: "The content expression is not correct or redundant around 'unsupportedBlock* | unsupportedBlock+'. This case is not supported by the DSL."
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}).variant('full', {
|
21
|
+
marks: [breakout, unsupportedNodeAttribute, unsupportedMark],
|
22
|
+
content: [$range(2, 3, $or(layoutColumn, unsupportedBlock))],
|
23
|
+
ignore: []
|
24
|
+
});
|
@@ -8,7 +8,16 @@ import { taskList } from './task';
|
|
8
8
|
import { unsupportedBlock } from './unsupportedBlock';
|
9
9
|
export var orderedList = adfNode('orderedList');
|
10
10
|
export var bulletList = adfNode('bulletList');
|
11
|
-
var listItem = adfNode('listItem')
|
11
|
+
var listItem = adfNode('listItem').define({
|
12
|
+
defining: true,
|
13
|
+
selectable: false,
|
14
|
+
marks: [unsupportedNodeAttribute, unsupportedMark],
|
15
|
+
contentMinItems: 1,
|
16
|
+
content: [$or(codeBlock.use('with_no_marks'), paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), unsupportedBlock), $zeroPlus($or(codeBlock.use('with_no_marks'), paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), taskList, bulletList, orderedList, unsupportedBlock))]
|
17
|
+
}).variant('legacy', {
|
18
|
+
content: [$or(codeBlock.use('with_no_marks'), paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), unsupportedBlock), $zeroPlus($or(codeBlock.use('with_no_marks'), paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), bulletList, orderedList, unsupportedBlock))],
|
19
|
+
ignore: ['json-schema', 'validator-spec']
|
20
|
+
});
|
12
21
|
orderedList.define({
|
13
22
|
selectable: false,
|
14
23
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
@@ -20,16 +29,10 @@ orderedList.define({
|
|
20
29
|
optional: true
|
21
30
|
}
|
22
31
|
},
|
23
|
-
content: [$onePlus($or(listItem))]
|
32
|
+
content: [$onePlus($or(listItem, listItem.use('legacy')))]
|
24
33
|
});
|
25
34
|
bulletList.define({
|
26
35
|
selectable: false,
|
27
36
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
28
|
-
content: [$onePlus($or(listItem))]
|
29
|
-
});
|
30
|
-
listItem.define({
|
31
|
-
defining: true,
|
32
|
-
selectable: false,
|
33
|
-
marks: [unsupportedNodeAttribute, unsupportedMark],
|
34
|
-
content: [$or(codeBlock.use('with_no_marks'), paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), unsupportedBlock), $zeroPlus($or(codeBlock.use('with_no_marks'), paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), taskList, bulletList, orderedList, unsupportedBlock))]
|
37
|
+
content: [$onePlus($or(listItem, listItem.use('legacy')))]
|
35
38
|
});
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { $or, adfNode } from '@atlaskit/adf-schema-generator';
|
1
|
+
import { $or, $range, adfNode } from '@atlaskit/adf-schema-generator';
|
2
2
|
import { link } from '../marks/link';
|
3
3
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
4
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
@@ -6,8 +6,9 @@ import { caption } from './caption';
|
|
6
6
|
import { media } from './media';
|
7
7
|
import { unsupportedBlock } from './unsupportedBlock';
|
8
8
|
export var mediaSingle = adfNode('mediaSingle').define({
|
9
|
-
atom:
|
9
|
+
atom: true,
|
10
10
|
selectable: true,
|
11
|
+
ignore: ['json-schema'],
|
11
12
|
marks: [link, unsupportedNodeAttribute, unsupportedMark],
|
12
13
|
attrs: {
|
13
14
|
anyOf: [{
|
@@ -47,8 +48,78 @@ export var mediaSingle = adfNode('mediaSingle').define({
|
|
47
48
|
}
|
48
49
|
}]
|
49
50
|
},
|
50
|
-
|
51
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
52
|
+
'pm-spec': {
|
53
|
+
content: {
|
54
|
+
value: 'media|media|unsupportedBlock+ unsupportedBlock+',
|
55
|
+
reason: 'The content expression is not correct or redundant around `media|media|unsupportedBlock+`. This case is not supported by the DSL.'
|
56
|
+
},
|
57
|
+
attrs: {
|
58
|
+
value: {
|
59
|
+
layout: {
|
60
|
+
default: 'center'
|
61
|
+
},
|
62
|
+
width: {
|
63
|
+
default: null
|
64
|
+
}
|
65
|
+
},
|
66
|
+
reason: 'the widthType was not in attrs of original spec'
|
67
|
+
},
|
68
|
+
marks: {
|
69
|
+
value: 'annotation border link unsupportedMark unsupportedNodeAttribute',
|
70
|
+
reason: "Types and PM Spec don't match, in types base mediaSingle doesn't have children, and in ADF DSL marks are derived from children"
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
51
74
|
}).variant('caption', {
|
52
75
|
atom: false,
|
53
|
-
|
54
|
-
|
76
|
+
ignore: [],
|
77
|
+
marks: [],
|
78
|
+
contentMinItems: 1,
|
79
|
+
contentMaxItems: 2,
|
80
|
+
content: [$or(media, unsupportedBlock), $or(caption, unsupportedBlock)],
|
81
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
82
|
+
'pm-spec': {
|
83
|
+
content: {
|
84
|
+
value: 'media|media|unsupportedBlock+ (caption|unsupportedBlock) unsupportedBlock*',
|
85
|
+
reason: 'The content expression is not correct or redundant around `media|media|unsupportedBlock+`. This case is not supported by the DSL.'
|
86
|
+
},
|
87
|
+
attrs: {
|
88
|
+
value: {
|
89
|
+
layout: {
|
90
|
+
default: 'center'
|
91
|
+
},
|
92
|
+
width: {
|
93
|
+
default: null
|
94
|
+
}
|
95
|
+
},
|
96
|
+
reason: 'the widthType was not in attrs of original spec of mediaSingleWithCaption'
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}).variant('full', {
|
101
|
+
atom: false,
|
102
|
+
content: [$range(1, 1, $or(media, unsupportedBlock))],
|
103
|
+
ignore: [],
|
104
|
+
marks: [],
|
105
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
106
|
+
'pm-spec': {
|
107
|
+
content: {
|
108
|
+
value: 'media|media|unsupportedBlock+ (caption|unsupportedBlock) unsupportedBlock*',
|
109
|
+
reason: 'The content expression is not correct or redundant around `media|media|unsupportedBlock+`. This case is not supported by the DSL.'
|
110
|
+
}
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}).variant('width_type', {
|
114
|
+
content: [$range(1, 1, $or(media, unsupportedBlock))],
|
115
|
+
ignore: [],
|
116
|
+
marks: [],
|
117
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
118
|
+
'pm-spec': {
|
119
|
+
content: {
|
120
|
+
value: 'media|media|unsupportedBlock+ unsupportedBlock+',
|
121
|
+
reason: 'The content expression is not correct or redundant around `media|media|unsupportedBlock+`. This case is not supported by the DSL.'
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
});
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { annotation } from '../marks/annotation';
|
2
3
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
3
4
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
4
5
|
export var mention = adfNode('mention').define({
|
5
6
|
inline: true,
|
6
7
|
selectable: true,
|
7
|
-
marks: [unsupportedNodeAttribute, unsupportedMark],
|
8
|
+
marks: [unsupportedNodeAttribute, unsupportedMark, annotation],
|
8
9
|
attrs: {
|
9
10
|
id: {
|
10
11
|
type: 'string',
|
@@ -11,11 +11,13 @@ export var multiBodiedExtension = adfNode('multiBodiedExtension').define({
|
|
11
11
|
attrs: {
|
12
12
|
extensionKey: {
|
13
13
|
type: 'string',
|
14
|
-
default: ''
|
14
|
+
default: '',
|
15
|
+
minLength: 1
|
15
16
|
},
|
16
17
|
extensionType: {
|
17
18
|
type: 'string',
|
18
|
-
default: ''
|
19
|
+
default: '',
|
20
|
+
minLength: 1
|
19
21
|
},
|
20
22
|
parameters: {
|
21
23
|
type: 'object',
|
@@ -36,8 +38,10 @@ export var multiBodiedExtension = adfNode('multiBodiedExtension').define({
|
|
36
38
|
localId: {
|
37
39
|
type: 'string',
|
38
40
|
optional: true,
|
39
|
-
default: null
|
41
|
+
default: null,
|
42
|
+
minLength: 1
|
40
43
|
}
|
41
44
|
},
|
42
|
-
content: [$onePlus($or(extensionFrame))]
|
45
|
+
content: [$onePlus($or(extensionFrame))],
|
46
|
+
ignore: ['json-schema']
|
43
47
|
});
|
@@ -30,4 +30,8 @@ export var nestedExpand = adfNode('nestedExpand').define({
|
|
30
30
|
}
|
31
31
|
},
|
32
32
|
content: [$onePlus($or(codeBlock.use('with_no_marks'), paragraph.use('with_no_marks'), mediaSingle.use('caption'), mediaSingle.use('full'), taskList, bulletList, orderedList, heading.use('with_no_marks'), mediaGroup, decisionList, rule, panel, blockquote, unsupportedBlock))]
|
33
|
-
}).variant('with_no_marks', {
|
33
|
+
}).variant('with_no_marks', {
|
34
|
+
marks: [],
|
35
|
+
content: [],
|
36
|
+
noMarks: true
|
37
|
+
});
|
@@ -43,4 +43,7 @@ export var panel = adfNode('panel').define({
|
|
43
43
|
}
|
44
44
|
},
|
45
45
|
content: [$onePlus($or(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, unsupportedBlock))]
|
46
|
+
}).variant('legacy', {
|
47
|
+
content: [$onePlus($or(blockCard, paragraph.use('with_no_marks'), bulletList, orderedList, heading.use('with_no_marks'), unsupportedBlock))],
|
48
|
+
ignore: ['json-schema', 'validator-spec']
|
46
49
|
});
|
@@ -13,11 +13,35 @@ export var paragraph = adfNode('paragraph').define({
|
|
13
13
|
},
|
14
14
|
selectable: false,
|
15
15
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
16
|
-
|
16
|
+
hasEmptyMarks: true,
|
17
|
+
content: [$zeroPlus($or(inlineGroup))],
|
18
|
+
DANGEROUS_MANUAL_OVERRIDE: {
|
19
|
+
'validator-spec': {
|
20
|
+
marks: {
|
21
|
+
value: {
|
22
|
+
type: 'array',
|
23
|
+
items: [],
|
24
|
+
optional: true
|
25
|
+
},
|
26
|
+
reason: 'NoMark type used in old schema had a hack maxItems: 0 to mark nodes that should not have any marks. This is not possible to represent in new DSL.'
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
17
30
|
}).variant('with_alignment', {
|
18
|
-
marks: [alignment, unsupportedNodeAttribute, unsupportedMark]
|
31
|
+
marks: [alignment, unsupportedNodeAttribute, unsupportedMark],
|
32
|
+
content: [],
|
33
|
+
ignore: []
|
19
34
|
}).variant('with_indentation', {
|
20
|
-
marks: [indentation, unsupportedNodeAttribute, unsupportedMark]
|
35
|
+
marks: [indentation, unsupportedNodeAttribute, unsupportedMark],
|
36
|
+
content: [],
|
37
|
+
ignore: []
|
21
38
|
}).variant('with_marks', {
|
22
|
-
marks: [alignment,
|
23
|
-
|
39
|
+
marks: [alignment, unsupportedNodeAttribute, unsupportedMark],
|
40
|
+
content: [],
|
41
|
+
ignore: []
|
42
|
+
}).variant('with_no_marks', {
|
43
|
+
content: [],
|
44
|
+
marks: [],
|
45
|
+
noMarks: true,
|
46
|
+
ignore: []
|
47
|
+
});
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import { adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { annotation } from '../marks/annotation';
|
2
3
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
3
4
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
4
5
|
export var status = adfNode('status').define({
|
5
6
|
inline: true,
|
6
7
|
selectable: true,
|
7
|
-
marks: [unsupportedNodeAttribute, unsupportedMark],
|
8
|
+
marks: [unsupportedNodeAttribute, unsupportedMark, annotation],
|
8
9
|
attrs: {
|
9
10
|
text: {
|
10
11
|
minLength: 1,
|
@@ -33,7 +33,10 @@ export var tableHeader = adfNode('tableHeader').define({
|
|
33
33
|
optional: true
|
34
34
|
},
|
35
35
|
colwidth: {
|
36
|
-
type: '
|
36
|
+
type: 'array',
|
37
|
+
items: {
|
38
|
+
type: 'number'
|
39
|
+
},
|
37
40
|
default: null,
|
38
41
|
optional: true
|
39
42
|
},
|
@@ -43,5 +46,5 @@ export var tableHeader = adfNode('tableHeader').define({
|
|
43
46
|
optional: true
|
44
47
|
}
|
45
48
|
},
|
46
|
-
content: [$onePlus($or(codeBlock.use('with_no_marks'), blockCard, paragraph.use('with_no_marks'), paragraph.use('with_alignment'), mediaSingle.use('caption'), mediaSingle.use('full'), taskList, bulletList, orderedList, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), mediaGroup, decisionList, rule, panel, blockquote, extension.use('with_marks'), embedCard, nestedExpand.use('with_no_marks')))]
|
49
|
+
content: [$onePlus($or(codeBlock.use('with_no_marks'), blockCard, paragraph.use('with_no_marks'), paragraph.use('with_alignment'), mediaSingle.use('caption'), mediaSingle.use('full'), taskList, bulletList, orderedList, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), mediaGroup, decisionList, rule, panel, blockquote, extension.use('with_marks'), embedCard, nestedExpand, nestedExpand.use('with_no_marks')))]
|
47
50
|
});
|
@@ -12,7 +12,13 @@ import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
|
12
12
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
13
13
|
import { typeAheadQuery } from '../marks/typeAheadQuery';
|
14
14
|
import { confluenceInlineComment } from '../marks/confluenceInlineComment';
|
15
|
-
export var text = adfNode('text').define({
|
15
|
+
export var text = adfNode('text').define({
|
16
|
+
marks: [],
|
17
|
+
hasEmptyMarks: true
|
18
|
+
}).variant('link_inline', {
|
19
|
+
marks: [link],
|
20
|
+
ignore: ['pm-spec', 'json-schema']
|
21
|
+
}).variant('formatted', {
|
16
22
|
marks: [link, em, strong, strike, subsup, underline, textColor, annotation, backgroundColor, typeAheadQuery, confluenceInlineComment, unsupportedNodeAttribute, unsupportedMark]
|
17
23
|
}).variant('code_inline', {
|
18
24
|
marks: [code, link, annotation, unsupportedNodeAttribute, unsupportedMark]
|
@@ -1,3 +1,6 @@
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
1
4
|
import { N30 } from '../../utils/colors';
|
2
5
|
|
3
6
|
/**
|
@@ -105,10 +108,12 @@ export var createMediaSpec = function createMediaSpec(attributes) {
|
|
105
108
|
}
|
106
109
|
});
|
107
110
|
}
|
108
|
-
return {
|
111
|
+
return _objectSpread(_objectSpread({
|
109
112
|
selectable: true,
|
110
|
-
inline: inline
|
111
|
-
|
113
|
+
inline: inline
|
114
|
+
}, inline && {
|
115
|
+
group: 'inline'
|
116
|
+
}), {}, {
|
112
117
|
attrs: attributes,
|
113
118
|
parseDOM: parseDOM,
|
114
119
|
toDOM: function toDOM(node) {
|
@@ -135,7 +140,7 @@ export var createMediaSpec = function createMediaSpec(attributes) {
|
|
135
140
|
});
|
136
141
|
return ["".concat(domNodeType), attrs];
|
137
142
|
}
|
138
|
-
};
|
143
|
+
});
|
139
144
|
};
|
140
145
|
export var media = createMediaSpec(defaultAttrs);
|
141
146
|
export var camelCaseToKebabCase = function camelCaseToKebabCase(str) {
|
@@ -4,6 +4,7 @@
|
|
4
4
|
|
5
5
|
export var text = {
|
6
6
|
group: 'inline',
|
7
|
+
// TODO: toDebugString needs to be passed with createToPmFactory when migrate in https://product-fabric.atlassian.net/browse/ED-23606
|
7
8
|
toDebugString: process.env.NODE_ENV !== 'production' ? undefined : function () {
|
8
9
|
return 'text_node';
|
9
10
|
}
|
@@ -7,6 +7,8 @@ declare const doc: import("@atlaskit/adf-schema-generator/dist/types/adfNode").A
|
|
7
7
|
inline?: true;
|
8
8
|
code?: boolean;
|
9
9
|
content?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentSpec[];
|
10
|
+
contentMinItems?: number;
|
11
|
+
contentMaxItems?: number;
|
10
12
|
defining?: boolean;
|
11
13
|
definingAsContext?: boolean;
|
12
14
|
definingForContent?: boolean;
|
@@ -16,8 +18,24 @@ declare const doc: import("@atlaskit/adf-schema-generator/dist/types/adfNode").A
|
|
16
18
|
marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
|
17
19
|
allowAnyChildMark?: boolean;
|
18
20
|
allowNoChildMark?: boolean;
|
21
|
+
noMarks?: boolean;
|
22
|
+
hasEmptyMarks?: boolean;
|
19
23
|
selectable?: boolean;
|
20
24
|
whitespace?: "pre" | "normal";
|
21
25
|
tableRole?: "table" | "row" | "cell" | "header_cell";
|
26
|
+
DANGEROUS_MANUAL_OVERRIDE?: {
|
27
|
+
'pm-spec'?: {
|
28
|
+
[x: string]: {
|
29
|
+
value: any;
|
30
|
+
reason: string;
|
31
|
+
};
|
32
|
+
};
|
33
|
+
'validator-spec'?: {
|
34
|
+
[x: string]: {
|
35
|
+
value: any;
|
36
|
+
reason: string;
|
37
|
+
};
|
38
|
+
};
|
39
|
+
};
|
22
40
|
}>;
|
23
41
|
export default doc;
|
@@ -14,7 +14,7 @@ export interface AlignmentDefinition {
|
|
14
14
|
export interface AlignmentMark extends Mark {
|
15
15
|
attrs: AlignmentMarkAttributes;
|
16
16
|
}
|
17
|
-
export declare const alignment: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<AlignmentMark>) => import("prosemirror-model").MarkSpec;
|
17
|
+
export declare const alignment: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<AlignmentMark>) => import("prosemirror-model").MarkSpec;
|
18
18
|
export interface AnnotationMarkAttributes {
|
19
19
|
id: string;
|
20
20
|
annotationType: 'inlineComment';
|
@@ -26,7 +26,7 @@ export interface AnnotationDefinition {
|
|
26
26
|
export interface AnnotationMark extends Mark {
|
27
27
|
attrs: AnnotationMarkAttributes;
|
28
28
|
}
|
29
|
-
export declare const annotation: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<AnnotationMark>) => import("prosemirror-model").MarkSpec;
|
29
|
+
export declare const annotation: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<AnnotationMark>) => import("prosemirror-model").MarkSpec;
|
30
30
|
export interface BackgroundColorMarkAttributes {
|
31
31
|
color: string;
|
32
32
|
}
|
@@ -37,7 +37,7 @@ export interface BackgroundColorDefinition {
|
|
37
37
|
export interface BackgroundColorMark extends Mark {
|
38
38
|
attrs: BackgroundColorMarkAttributes;
|
39
39
|
}
|
40
|
-
export declare const backgroundColor: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<BackgroundColorMark>) => import("prosemirror-model").MarkSpec;
|
40
|
+
export declare const backgroundColor: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<BackgroundColorMark>) => import("prosemirror-model").MarkSpec;
|
41
41
|
export interface BorderMarkAttributes {
|
42
42
|
size: number;
|
43
43
|
color: string;
|
@@ -49,7 +49,7 @@ export interface BorderDefinition {
|
|
49
49
|
export interface BorderMark extends Mark {
|
50
50
|
attrs: BorderMarkAttributes;
|
51
51
|
}
|
52
|
-
export declare const border: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<BorderMark>) => import("prosemirror-model").MarkSpec;
|
52
|
+
export declare const border: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<BorderMark>) => import("prosemirror-model").MarkSpec;
|
53
53
|
export interface BreakoutMarkAttributes {
|
54
54
|
mode: 'wide' | 'full-width';
|
55
55
|
}
|
@@ -60,12 +60,12 @@ export interface BreakoutDefinition {
|
|
60
60
|
export interface BreakoutMark extends Mark {
|
61
61
|
attrs: BreakoutMarkAttributes;
|
62
62
|
}
|
63
|
-
export declare const breakout: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<BreakoutMark>) => import("prosemirror-model").MarkSpec;
|
63
|
+
export declare const breakout: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<BreakoutMark>) => import("prosemirror-model").MarkSpec;
|
64
64
|
export interface CodeDefinition {
|
65
65
|
type: 'code';
|
66
66
|
}
|
67
67
|
export type CodeMark = Mark;
|
68
|
-
export declare const code: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
68
|
+
export declare const code: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
69
69
|
export interface ConfluenceInlineCommentMarkAttributes {
|
70
70
|
reference: string;
|
71
71
|
}
|
@@ -76,7 +76,7 @@ export interface ConfluenceInlineCommentDefinition {
|
|
76
76
|
export interface ConfluenceInlineCommentMark extends Mark {
|
77
77
|
attrs: ConfluenceInlineCommentMarkAttributes;
|
78
78
|
}
|
79
|
-
export declare const confluenceInlineComment: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<ConfluenceInlineCommentMark>) => import("prosemirror-model").MarkSpec;
|
79
|
+
export declare const confluenceInlineComment: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<ConfluenceInlineCommentMark>) => import("prosemirror-model").MarkSpec;
|
80
80
|
export interface DataConsumerMarkAttributes {
|
81
81
|
sources: Array<string>;
|
82
82
|
}
|
@@ -87,12 +87,12 @@ export interface DataConsumerDefinition {
|
|
87
87
|
export interface DataConsumerMark extends Mark {
|
88
88
|
attrs: DataConsumerMarkAttributes;
|
89
89
|
}
|
90
|
-
export declare const dataConsumer: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<DataConsumerMark>) => import("prosemirror-model").MarkSpec;
|
90
|
+
export declare const dataConsumer: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<DataConsumerMark>) => import("prosemirror-model").MarkSpec;
|
91
91
|
export interface EmDefinition {
|
92
92
|
type: 'em';
|
93
93
|
}
|
94
94
|
export type EmMark = Mark;
|
95
|
-
export declare const em: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
95
|
+
export declare const em: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
96
96
|
export interface FragmentMarkAttributes {
|
97
97
|
localId: string;
|
98
98
|
name?: string;
|
@@ -104,7 +104,7 @@ export interface FragmentDefinition {
|
|
104
104
|
export interface FragmentMark extends Mark {
|
105
105
|
attrs: FragmentMarkAttributes;
|
106
106
|
}
|
107
|
-
export declare const fragment: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<FragmentMark>) => import("prosemirror-model").MarkSpec;
|
107
|
+
export declare const fragment: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<FragmentMark>) => import("prosemirror-model").MarkSpec;
|
108
108
|
export interface IndentationMarkAttributes {
|
109
109
|
level: number;
|
110
110
|
}
|
@@ -115,7 +115,7 @@ export interface IndentationDefinition {
|
|
115
115
|
export interface IndentationMark extends Mark {
|
116
116
|
attrs: IndentationMarkAttributes;
|
117
117
|
}
|
118
|
-
export declare const indentation: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<IndentationMark>) => import("prosemirror-model").MarkSpec;
|
118
|
+
export declare const indentation: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<IndentationMark>) => import("prosemirror-model").MarkSpec;
|
119
119
|
export interface LinkMarkAttributes {
|
120
120
|
href: string;
|
121
121
|
title?: string;
|
@@ -131,17 +131,17 @@ export interface LinkDefinition {
|
|
131
131
|
export interface LinkMark extends Mark {
|
132
132
|
attrs: LinkMarkAttributes;
|
133
133
|
}
|
134
|
-
export declare const link: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<LinkMark>) => import("prosemirror-model").MarkSpec;
|
134
|
+
export declare const link: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<LinkMark>) => import("prosemirror-model").MarkSpec;
|
135
135
|
export interface StrikeDefinition {
|
136
136
|
type: 'strike';
|
137
137
|
}
|
138
138
|
export type StrikeMark = Mark;
|
139
|
-
export declare const strike: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
139
|
+
export declare const strike: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
140
140
|
export interface StrongDefinition {
|
141
141
|
type: 'strong';
|
142
142
|
}
|
143
143
|
export type StrongMark = Mark;
|
144
|
-
export declare const strong: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
144
|
+
export declare const strong: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
145
145
|
export interface SubsupMarkAttributes {
|
146
146
|
type: 'sub' | 'sup';
|
147
147
|
}
|
@@ -152,7 +152,7 @@ export interface SubsupDefinition {
|
|
152
152
|
export interface SubsupMark extends Mark {
|
153
153
|
attrs: SubsupMarkAttributes;
|
154
154
|
}
|
155
|
-
export declare const subsup: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<SubsupMark>) => import("prosemirror-model").MarkSpec;
|
155
|
+
export declare const subsup: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<SubsupMark>) => import("prosemirror-model").MarkSpec;
|
156
156
|
export interface TextColorMarkAttributes {
|
157
157
|
color: string;
|
158
158
|
}
|
@@ -163,7 +163,7 @@ export interface TextColorDefinition {
|
|
163
163
|
export interface TextColorMark extends Mark {
|
164
164
|
attrs: TextColorMarkAttributes;
|
165
165
|
}
|
166
|
-
export declare const textColor: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<TextColorMark>) => import("prosemirror-model").MarkSpec;
|
166
|
+
export declare const textColor: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<TextColorMark>) => import("prosemirror-model").MarkSpec;
|
167
167
|
export interface TypeAheadQueryMarkAttributes {
|
168
168
|
trigger: string;
|
169
169
|
}
|
@@ -174,12 +174,12 @@ export interface TypeAheadQueryDefinition {
|
|
174
174
|
export interface TypeAheadQueryMark extends Mark {
|
175
175
|
attrs: TypeAheadQueryMarkAttributes;
|
176
176
|
}
|
177
|
-
export declare const typeAheadQuery: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<TypeAheadQueryMark>) => import("prosemirror-model").MarkSpec;
|
177
|
+
export declare const typeAheadQuery: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<TypeAheadQueryMark>) => import("prosemirror-model").MarkSpec;
|
178
178
|
export interface UnderlineDefinition {
|
179
179
|
type: 'underline';
|
180
180
|
}
|
181
181
|
export type UnderlineMark = Mark;
|
182
|
-
export declare const underline: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
182
|
+
export declare const underline: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
183
183
|
export interface UnsupportedMarkMarkAttributes {
|
184
184
|
originalValue: Record<string, unknown>;
|
185
185
|
}
|
@@ -190,7 +190,7 @@ export interface UnsupportedMarkDefinition {
|
|
190
190
|
export interface UnsupportedMarkMark extends Mark {
|
191
191
|
attrs: UnsupportedMarkMarkAttributes;
|
192
192
|
}
|
193
|
-
export declare const unsupportedMark: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<UnsupportedMarkMark>) => import("prosemirror-model").MarkSpec;
|
193
|
+
export declare const unsupportedMark: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<UnsupportedMarkMark>) => import("prosemirror-model").MarkSpec;
|
194
194
|
export interface UnsupportedNodeAttributeMarkAttributes {
|
195
195
|
unsupported: Record<string, unknown>;
|
196
196
|
type: string;
|
@@ -202,4 +202,4 @@ export interface UnsupportedNodeAttributeDefinition {
|
|
202
202
|
export interface UnsupportedNodeAttributeMark extends Mark {
|
203
203
|
attrs: UnsupportedNodeAttributeMarkAttributes;
|
204
204
|
}
|
205
|
-
export declare const unsupportedNodeAttribute: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<UnsupportedNodeAttributeMark>) => import("prosemirror-model").MarkSpec;
|
205
|
+
export declare const unsupportedNodeAttribute: ({ parseDOM, toDOM, toDebugString }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<UnsupportedNodeAttributeMark>) => import("prosemirror-model").MarkSpec;
|