@atlaskit/adf-schema 36.16.0 → 36.17.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 +6 -0
- package/dist/cjs/next-schema/full-schema.adf.js +1 -5
- package/dist/cjs/next-schema/generated/markTypes.js +19 -19
- package/dist/cjs/next-schema/generated/nodeTypes.js +422 -316
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -5
- package/dist/cjs/next-schema/groups/blockRootOnlyGroup.js +2 -1
- package/dist/cjs/next-schema/groups/inlineGroup.js +3 -1
- package/dist/cjs/next-schema/nodes/codeBlock.js +5 -0
- package/dist/cjs/next-schema/nodes/confluenceJiraIssue.js +38 -0
- package/dist/cjs/next-schema/nodes/decisionItem.js +1 -2
- package/dist/cjs/next-schema/nodes/extensionFrame.js +3 -1
- package/dist/cjs/next-schema/nodes/heading.js +1 -2
- package/dist/cjs/next-schema/nodes/image.js +28 -0
- package/dist/cjs/next-schema/nodes/mediaGroup.js +2 -0
- package/dist/cjs/next-schema/nodes/mediaInline.js +0 -4
- package/dist/cjs/next-schema/nodes/mediaSingle.js +1 -1
- package/dist/cjs/next-schema/nodes/paragraph.js +1 -2
- package/dist/cjs/next-schema/nodes/status.js +1 -0
- package/dist/cjs/next-schema/nodes/table.js +1 -1
- package/dist/cjs/next-schema/nodes/task.js +1 -2
- package/dist/cjs/schema/create-schema.js +21 -0
- package/dist/cjs/schema/nodes/multi-bodied-extension.js +0 -2
- package/dist/cjs/schema/nodes/paragraph.js +2 -2
- package/dist/es2019/next-schema/full-schema.adf.js +1 -5
- package/dist/es2019/next-schema/generated/markTypes.js +19 -19
- package/dist/es2019/next-schema/generated/nodeTypes.js +421 -315
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -5
- package/dist/es2019/next-schema/groups/blockRootOnlyGroup.js +2 -1
- package/dist/es2019/next-schema/groups/inlineGroup.js +3 -1
- package/dist/es2019/next-schema/nodes/codeBlock.js +5 -0
- package/dist/es2019/next-schema/nodes/confluenceJiraIssue.js +32 -0
- package/dist/es2019/next-schema/nodes/decisionItem.js +1 -2
- package/dist/es2019/next-schema/nodes/extensionFrame.js +3 -1
- package/dist/es2019/next-schema/nodes/heading.js +1 -2
- package/dist/es2019/next-schema/nodes/image.js +22 -0
- package/dist/es2019/next-schema/nodes/mediaGroup.js +2 -0
- package/dist/es2019/next-schema/nodes/mediaInline.js +0 -4
- package/dist/es2019/next-schema/nodes/mediaSingle.js +1 -1
- package/dist/es2019/next-schema/nodes/paragraph.js +1 -2
- package/dist/es2019/next-schema/nodes/status.js +1 -0
- package/dist/es2019/next-schema/nodes/table.js +1 -1
- package/dist/es2019/next-schema/nodes/task.js +1 -2
- package/dist/es2019/schema/create-schema.js +22 -0
- package/dist/es2019/schema/nodes/multi-bodied-extension.js +0 -2
- package/dist/es2019/schema/nodes/paragraph.js +2 -2
- package/dist/esm/next-schema/full-schema.adf.js +1 -5
- package/dist/esm/next-schema/generated/markTypes.js +19 -19
- package/dist/esm/next-schema/generated/nodeTypes.js +421 -315
- package/dist/esm/next-schema/groups/blockGroup.js +1 -5
- package/dist/esm/next-schema/groups/blockRootOnlyGroup.js +2 -1
- package/dist/esm/next-schema/groups/inlineGroup.js +3 -1
- package/dist/esm/next-schema/nodes/codeBlock.js +5 -0
- package/dist/esm/next-schema/nodes/confluenceJiraIssue.js +32 -0
- package/dist/esm/next-schema/nodes/decisionItem.js +1 -2
- package/dist/esm/next-schema/nodes/extensionFrame.js +3 -1
- package/dist/esm/next-schema/nodes/heading.js +1 -2
- package/dist/esm/next-schema/nodes/image.js +22 -0
- package/dist/esm/next-schema/nodes/mediaGroup.js +2 -0
- package/dist/esm/next-schema/nodes/mediaInline.js +0 -4
- package/dist/esm/next-schema/nodes/mediaSingle.js +1 -1
- package/dist/esm/next-schema/nodes/paragraph.js +1 -2
- package/dist/esm/next-schema/nodes/status.js +1 -0
- package/dist/esm/next-schema/nodes/table.js +1 -1
- package/dist/esm/next-schema/nodes/task.js +1 -2
- package/dist/esm/schema/create-schema.js +20 -0
- package/dist/esm/schema/nodes/multi-bodied-extension.js +0 -2
- package/dist/esm/schema/nodes/paragraph.js +2 -2
- package/dist/types/next-schema/generated/markTypes.d.ts +24 -24
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +6 -4
- package/dist/types/next-schema/generated/nodeTypes.d.ts +336 -280
- package/dist/types/next-schema/nodes/confluenceJiraIssue.d.ts +22 -0
- package/dist/types/next-schema/nodes/image.d.ts +22 -0
- package/dist/types/schema/create-schema.d.ts +4 -0
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/json-full-schema.unit.ts +297 -20
- package/schema-generators/__tests__/unit/validate-pm-schema.unit.ts +21 -30
@@ -18,8 +18,4 @@ 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', [
|
22
|
-
// extension,
|
23
|
-
extension.use('with_marks'), heading, heading.use('with_no_marks'), mediaGroup, rule, panel, table,
|
24
|
-
// bodiedExtension,
|
25
|
-
bodiedExtension.use('with_marks'), expand.use('with_no_mark'), confluenceUnsupportedBlock, unsupportedBlock]);
|
21
|
+
export var blockGroup = adfNodeGroup('block', [panel, paragraph, paragraph.use('with_marks'), blockquote.use('with_list'), orderedList, bulletList, rule, heading.use('with_no_marks'), heading.use('with_alignment'), heading.use('with_indentation'), codeBlock.use('with_no_marks'), mediaGroup, mediaSingle.use('caption'), mediaSingle.use('full'), decisionList, taskList, table, expand.use('with_no_mark'), extension.use('with_marks'), bodiedExtension.use('with_marks'), blockCard, embedCard, confluenceUnsupportedBlock, unsupportedBlock]);
|
@@ -1,2 +1,3 @@
|
|
1
1
|
import { adfNodeGroup } from '@atlaskit/adf-schema-generator';
|
2
|
-
|
2
|
+
import { multiBodiedExtension } from '../nodes/multiBodiedExtension';
|
3
|
+
export var blockRootOnlyGroup = adfNodeGroup('blockRootOnly', [multiBodiedExtension]);
|
@@ -11,4 +11,6 @@ import { inlineExtension } from '../nodes/inlineExtension';
|
|
11
11
|
import { mediaInline } from '../nodes/mediaInline';
|
12
12
|
import { unsupportedInline } from '../nodes/unsupportedInline';
|
13
13
|
import { confluenceUnsupportedInline } from '../nodes/confluenceUnsupportedInline';
|
14
|
-
|
14
|
+
import { image } from '../nodes/image';
|
15
|
+
import { confluenceJiraIssue } from '../nodes/confluenceJiraIssue';
|
16
|
+
export var inlineGroup = adfNodeGroup('inline', [text, text.use('formatted'), text.use('code_inline'), date, emoji, hardBreak, inlineCard, mention, placeholder, status, inlineExtension.use('with_marks'), mediaInline, image, confluenceJiraIssue, confluenceUnsupportedInline, unsupportedInline]);
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { adfNode, JSONSchemaTransformerName, ValidatorSpecTransformerName } from '@atlaskit/adf-schema-generator';
|
2
|
+
export var confluenceJiraIssue = adfNode('confluenceJiraIssue').define({
|
3
|
+
ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
|
4
|
+
atom: true,
|
5
|
+
inline: true,
|
6
|
+
attrs: {
|
7
|
+
issueKey: {
|
8
|
+
type: 'string',
|
9
|
+
default: ''
|
10
|
+
},
|
11
|
+
macroId: {
|
12
|
+
type: 'string',
|
13
|
+
default: null,
|
14
|
+
optional: true
|
15
|
+
},
|
16
|
+
schemaVersion: {
|
17
|
+
type: 'string',
|
18
|
+
default: null,
|
19
|
+
optional: true
|
20
|
+
},
|
21
|
+
server: {
|
22
|
+
type: 'string',
|
23
|
+
default: null,
|
24
|
+
optional: true
|
25
|
+
},
|
26
|
+
serverId: {
|
27
|
+
type: 'string',
|
28
|
+
default: null,
|
29
|
+
optional: true
|
30
|
+
}
|
31
|
+
}
|
32
|
+
});
|
@@ -2,7 +2,6 @@ import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
|
|
2
2
|
import { inlineGroup } from '../groups/inlineGroup';
|
3
3
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
4
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
5
|
-
import { unsupportedBlock } from './unsupportedBlock';
|
6
5
|
export var decisionItem = adfNode('decisionItem').define({
|
7
6
|
defining: true,
|
8
7
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
@@ -17,5 +16,5 @@ export var decisionItem = adfNode('decisionItem').define({
|
|
17
16
|
default: 'DECIDED'
|
18
17
|
}
|
19
18
|
},
|
20
|
-
content: [$zeroPlus($or(inlineGroup
|
19
|
+
content: [$zeroPlus($or(inlineGroup))]
|
21
20
|
});
|
@@ -19,11 +19,13 @@ import { paragraph } from './paragraph';
|
|
19
19
|
import { rule } from './rule';
|
20
20
|
import { table } from './table';
|
21
21
|
import { taskList } from './task';
|
22
|
+
import { unsupportedBlock } from './unsupportedBlock';
|
22
23
|
export var extensionFrame = adfNode('extensionFrame').define({
|
23
24
|
isolating: true,
|
24
25
|
definingAsContext: false,
|
25
26
|
definingForContent: true,
|
26
27
|
selectable: false,
|
27
28
|
marks: [dataConsumer, fragment, unsupportedNodeAttribute, unsupportedMark],
|
28
|
-
|
29
|
+
attrs: {},
|
30
|
+
content: [$onePlus($or(bodiedExtension, panel, paragraph, blockquote, orderedList, bulletList, rule, heading, codeBlock, mediaGroup, mediaSingle, decisionList, taskList, table, extension, blockCard, embedCard, unsupportedBlock))]
|
29
31
|
});
|
@@ -3,7 +3,6 @@ import { inlineGroup } from '../groups/inlineGroup';
|
|
3
3
|
import { alignment, indentation } from '../marks/alignmentAndIndentation';
|
4
4
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
5
5
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
6
|
-
import { unsupportedInline } from './unsupportedInline';
|
7
6
|
export var heading = adfNode('heading').define({
|
8
7
|
defining: true,
|
9
8
|
selectable: false,
|
@@ -16,7 +15,7 @@ export var heading = adfNode('heading').define({
|
|
16
15
|
maximum: 6
|
17
16
|
}
|
18
17
|
},
|
19
|
-
content: [$zeroPlus($or(inlineGroup
|
18
|
+
content: [$zeroPlus($or(inlineGroup))]
|
20
19
|
}).variant('with_alignment', {
|
21
20
|
marks: [alignment, unsupportedNodeAttribute, unsupportedMark]
|
22
21
|
}).variant('with_indentation', {
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { adfNode, JSONSchemaTransformerName, ValidatorSpecTransformerName } from '@atlaskit/adf-schema-generator';
|
2
|
+
export var image = adfNode('image').define({
|
3
|
+
ignore: [JSONSchemaTransformerName, ValidatorSpecTransformerName],
|
4
|
+
inline: true,
|
5
|
+
draggable: true,
|
6
|
+
attrs: {
|
7
|
+
src: {
|
8
|
+
type: 'string',
|
9
|
+
default: ''
|
10
|
+
},
|
11
|
+
alt: {
|
12
|
+
type: 'string',
|
13
|
+
default: '',
|
14
|
+
optional: true
|
15
|
+
},
|
16
|
+
title: {
|
17
|
+
type: 'string',
|
18
|
+
default: null,
|
19
|
+
optional: true
|
20
|
+
}
|
21
|
+
}
|
22
|
+
});
|
@@ -6,5 +6,7 @@ import { unsupportedBlock } from './unsupportedBlock';
|
|
6
6
|
export var mediaGroup = adfNode('mediaGroup').define({
|
7
7
|
selectable: false,
|
8
8
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
9
|
+
// Need to be empty object to match old PM Spec
|
10
|
+
attrs: {},
|
9
11
|
content: [$onePlus($or(media, unsupportedBlock))]
|
10
12
|
});
|
@@ -10,10 +10,6 @@ export var mediaInline = adfNode('mediaInline').define({
|
|
10
10
|
inline: true,
|
11
11
|
marks: [link, annotation, border, unsupportedNodeAttribute, unsupportedMark],
|
12
12
|
attrs: {
|
13
|
-
data: {
|
14
|
-
type: 'object',
|
15
|
-
optional: true
|
16
|
-
},
|
17
13
|
type: {
|
18
14
|
type: 'enum',
|
19
15
|
values: ['link', 'file', 'image'],
|
@@ -3,11 +3,10 @@ import { inlineGroup } from '../groups/inlineGroup';
|
|
3
3
|
import { alignment, indentation } from '../marks/alignmentAndIndentation';
|
4
4
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
5
5
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
6
|
-
import { unsupportedInline } from './unsupportedInline';
|
7
6
|
export var paragraph = adfNode('paragraph').define({
|
8
7
|
selectable: false,
|
9
8
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
10
|
-
content: [$zeroPlus($or(inlineGroup
|
9
|
+
content: [$zeroPlus($or(inlineGroup))]
|
11
10
|
}).variant('with_alignment', {
|
12
11
|
marks: [alignment, unsupportedNodeAttribute, unsupportedMark]
|
13
12
|
}).variant('with_indentation', {
|
@@ -2,6 +2,7 @@ import { adfNode } from '@atlaskit/adf-schema-generator';
|
|
2
2
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
3
3
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
4
4
|
export var status = adfNode('status').define({
|
5
|
+
inline: true,
|
5
6
|
selectable: true,
|
6
7
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
7
8
|
attrs: {
|
@@ -2,7 +2,6 @@ import { $onePlus, $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generato
|
|
2
2
|
import { inlineGroup } from '../groups/inlineGroup';
|
3
3
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
4
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
5
|
-
import { unsupportedInline } from './unsupportedInline';
|
6
5
|
import { unsupportedBlock } from './unsupportedBlock';
|
7
6
|
export var taskItem = adfNode('taskItem');
|
8
7
|
export var taskList = adfNode('taskList');
|
@@ -22,7 +21,7 @@ taskItem.define({
|
|
22
21
|
default: 'TODO'
|
23
22
|
}
|
24
23
|
},
|
25
|
-
content: [$zeroPlus($or(inlineGroup
|
24
|
+
content: [$zeroPlus($or(inlineGroup))]
|
26
25
|
});
|
27
26
|
taskList.define({
|
28
27
|
defining: true,
|
@@ -263,6 +263,26 @@ var marksInOrder = [{
|
|
263
263
|
name: 'unsupportedNodeAttribute',
|
264
264
|
spec: unsupportedNodeAttribute
|
265
265
|
}]);
|
266
|
+
export function getNodesAndMarksMap() {
|
267
|
+
var nodes = nodesInOrder.reduce(function (acc, _ref2) {
|
268
|
+
var name = _ref2.name,
|
269
|
+
spec = _ref2.spec;
|
270
|
+
// @ts-expect-error - Type for SchemaBuiltInItem is not correct
|
271
|
+
acc[name] = spec;
|
272
|
+
return acc;
|
273
|
+
}, {});
|
274
|
+
var marks = marksInOrder.reduce(function (acc, _ref3) {
|
275
|
+
var name = _ref3.name,
|
276
|
+
spec = _ref3.spec;
|
277
|
+
// @ts-expect-error - Type for SchemaBuiltInItem is not correct
|
278
|
+
acc[name] = spec;
|
279
|
+
return acc;
|
280
|
+
}, {});
|
281
|
+
return {
|
282
|
+
nodes: nodes,
|
283
|
+
marks: marks
|
284
|
+
};
|
285
|
+
}
|
266
286
|
|
267
287
|
/**
|
268
288
|
* Creates a schema preserving order of marks and nodes.
|
@@ -10,7 +10,6 @@ import { getExtensionAttrs } from '../../utils/extensions';
|
|
10
10
|
* @returns NodeSpec for ExtensionFrameDefinition
|
11
11
|
*/
|
12
12
|
export var extensionFrame = {
|
13
|
-
type: 'extensionFrame',
|
14
13
|
content: '(paragraph | panel | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | extension | bodiedExtension | unsupportedBlock | blockCard | embedCard)+',
|
15
14
|
isolating: true,
|
16
15
|
marks: 'dataConsumer fragment',
|
@@ -47,7 +46,6 @@ var createMultiBodiedExtensionNodeSpec = function createMultiBodiedExtensionNode
|
|
47
46
|
inline: false,
|
48
47
|
group: 'blockRootOnly',
|
49
48
|
content: 'extensionFrame+',
|
50
|
-
block: true,
|
51
49
|
definingAsContext: true,
|
52
50
|
selectable: true,
|
53
51
|
attrs: {
|
@@ -32,7 +32,7 @@ export var paragraphStage0 = {
|
|
32
32
|
default: null
|
33
33
|
}
|
34
34
|
},
|
35
|
-
marks: 'strong code em link border strike subsup textColor backgroundColor typeAheadQuery underline confluenceInlineComment
|
35
|
+
marks: 'strong code em link border strike subsup textColor backgroundColor typeAheadQuery underline confluenceInlineComment annotation unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
36
36
|
parseDOM: [{
|
37
37
|
tag: 'p',
|
38
38
|
getAttrs: function getAttrs(domNode) {
|
@@ -57,7 +57,7 @@ export var paragraph = {
|
|
57
57
|
selectable: false,
|
58
58
|
content: 'inline*',
|
59
59
|
group: 'block',
|
60
|
-
marks: 'strong code em link border strike subsup textColor backgroundColor typeAheadQuery underline confluenceInlineComment
|
60
|
+
marks: 'strong code em link border strike subsup textColor backgroundColor typeAheadQuery underline confluenceInlineComment annotation unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
61
61
|
parseDOM: [{
|
62
62
|
tag: 'p'
|
63
63
|
}],
|
@@ -38,30 +38,6 @@ export interface LinkMark extends Mark {
|
|
38
38
|
attrs: LinkMarkAttributes;
|
39
39
|
}
|
40
40
|
export declare const link: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<LinkMark>) => import("prosemirror-model").MarkSpec;
|
41
|
-
export interface AnnotationMarkAttributes {
|
42
|
-
id: string;
|
43
|
-
annotationType: 'inlineComment';
|
44
|
-
}
|
45
|
-
export interface AnnotationDefinition {
|
46
|
-
type: 'annotation';
|
47
|
-
attrs: AnnotationMarkAttributes;
|
48
|
-
}
|
49
|
-
export interface AnnotationMark extends Mark {
|
50
|
-
attrs: AnnotationMarkAttributes;
|
51
|
-
}
|
52
|
-
export declare const annotation: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<AnnotationMark>) => import("prosemirror-model").MarkSpec;
|
53
|
-
export interface BorderMarkAttributes {
|
54
|
-
size: number;
|
55
|
-
color: string;
|
56
|
-
}
|
57
|
-
export interface BorderDefinition {
|
58
|
-
type: 'border';
|
59
|
-
attrs: BorderMarkAttributes;
|
60
|
-
}
|
61
|
-
export interface BorderMark extends Mark {
|
62
|
-
attrs: BorderMarkAttributes;
|
63
|
-
}
|
64
|
-
export declare const border: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<BorderMark>) => import("prosemirror-model").MarkSpec;
|
65
41
|
export interface EmDefinition {
|
66
42
|
type: 'em';
|
67
43
|
}
|
@@ -104,6 +80,18 @@ export interface TextColorMark extends Mark {
|
|
104
80
|
attrs: TextColorMarkAttributes;
|
105
81
|
}
|
106
82
|
export declare const textColor: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<TextColorMark>) => import("prosemirror-model").MarkSpec;
|
83
|
+
export interface AnnotationMarkAttributes {
|
84
|
+
id: string;
|
85
|
+
annotationType: 'inlineComment';
|
86
|
+
}
|
87
|
+
export interface AnnotationDefinition {
|
88
|
+
type: 'annotation';
|
89
|
+
attrs: AnnotationMarkAttributes;
|
90
|
+
}
|
91
|
+
export interface AnnotationMark extends Mark {
|
92
|
+
attrs: AnnotationMarkAttributes;
|
93
|
+
}
|
94
|
+
export declare const annotation: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<AnnotationMark>) => import("prosemirror-model").MarkSpec;
|
107
95
|
export interface BackgroundColorMarkAttributes {
|
108
96
|
color: string;
|
109
97
|
}
|
@@ -143,6 +131,18 @@ export interface FragmentMark extends Mark {
|
|
143
131
|
attrs: FragmentMarkAttributes;
|
144
132
|
}
|
145
133
|
export declare const fragment: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<FragmentMark>) => import("prosemirror-model").MarkSpec;
|
134
|
+
export interface BorderMarkAttributes {
|
135
|
+
size: number;
|
136
|
+
color: string;
|
137
|
+
}
|
138
|
+
export interface BorderDefinition {
|
139
|
+
type: 'border';
|
140
|
+
attrs: BorderMarkAttributes;
|
141
|
+
}
|
142
|
+
export interface BorderMark extends Mark {
|
143
|
+
attrs: BorderMarkAttributes;
|
144
|
+
}
|
145
|
+
export declare const border: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<BorderMark>) => import("prosemirror-model").MarkSpec;
|
146
146
|
export interface AlignmentMarkAttributes {
|
147
147
|
align: 'center' | 'end';
|
148
148
|
}
|
@@ -1,4 +1,6 @@
|
|
1
|
-
import { TextDefinition, TextFormattedDefinition, TextCodeInlineDefinition, DateDefinition, EmojiDefinition, HardBreakDefinition, InlineCardDefinition, MentionDefinition, PlaceholderDefinition, StatusDefinition, InlineExtensionWithMarksDefinition, MediaInlineDefinition, ConfluenceUnsupportedInlineDefinition, UnsupportedInlineDefinition } from './nodeTypes';
|
2
|
-
export type InlineDefinition = Array<TextDefinition | TextFormattedDefinition | TextCodeInlineDefinition | DateDefinition | EmojiDefinition | HardBreakDefinition | InlineCardDefinition | MentionDefinition | PlaceholderDefinition | StatusDefinition | InlineExtensionWithMarksDefinition | MediaInlineDefinition | ConfluenceUnsupportedInlineDefinition | UnsupportedInlineDefinition>;
|
3
|
-
import {
|
4
|
-
export type BlockDefinition = Array<
|
1
|
+
import { TextDefinition, TextFormattedDefinition, TextCodeInlineDefinition, DateDefinition, EmojiDefinition, HardBreakDefinition, InlineCardDefinition, MentionDefinition, PlaceholderDefinition, StatusDefinition, InlineExtensionWithMarksDefinition, MediaInlineDefinition, ImageDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedInlineDefinition, UnsupportedInlineDefinition } from './nodeTypes';
|
2
|
+
export type InlineDefinition = Array<TextDefinition | TextFormattedDefinition | TextCodeInlineDefinition | DateDefinition | EmojiDefinition | HardBreakDefinition | InlineCardDefinition | MentionDefinition | PlaceholderDefinition | StatusDefinition | InlineExtensionWithMarksDefinition | MediaInlineDefinition | ImageDefinition | ConfluenceJiraIssueDefinition | ConfluenceUnsupportedInlineDefinition | UnsupportedInlineDefinition>;
|
3
|
+
import { PanelDefinition, ParagraphDefinition, ParagraphWithMarksDefinition, BlockquoteWithListDefinition, OrderedListDefinition, BulletListDefinition, RuleDefinition, HeadingWithNoMarksDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, CodeBlockWithNoMarksDefinition, MediaGroupDefinition, MediaSingleCaptionDefinition, MediaSingleFullDefinition, DecisionListDefinition, TaskListDefinition, TableDefinition, ExpandWithNoMarkDefinition, ExtensionWithMarksDefinition, BodiedExtensionWithMarksDefinition, BlockCardDefinition, EmbedCardDefinition, ConfluenceUnsupportedBlockDefinition, UnsupportedBlockDefinition } from './nodeTypes';
|
4
|
+
export type BlockDefinition = Array<PanelDefinition | ParagraphDefinition | ParagraphWithMarksDefinition | BlockquoteWithListDefinition | OrderedListDefinition | BulletListDefinition | RuleDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | CodeBlockWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | DecisionListDefinition | TaskListDefinition | TableDefinition | ExpandWithNoMarkDefinition | ExtensionWithMarksDefinition | BodiedExtensionWithMarksDefinition | BlockCardDefinition | EmbedCardDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
5
|
+
import { MultiBodiedExtensionDefinition } from './nodeTypes';
|
6
|
+
export type BlockRootOnlyDefinition = Array<MultiBodiedExtensionDefinition>;
|