@atlaskit/adf-schema 36.14.0 → 36.15.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 +3 -2
- package/dist/cjs/next-schema/generated/markTypes.js +23 -23
- package/dist/cjs/next-schema/generated/nodeTypes.js +136 -202
- package/dist/cjs/next-schema/groups/blockGroup.js +5 -1
- package/dist/cjs/next-schema/groups/inlineGroup.js +1 -3
- package/dist/cjs/next-schema/nodes/blockCard.js +7 -3
- package/dist/cjs/next-schema/nodes/caption.js +1 -0
- package/dist/cjs/next-schema/nodes/codeBlock.js +2 -2
- package/dist/cjs/next-schema/nodes/decisionItem.js +1 -0
- package/dist/cjs/next-schema/nodes/inlineExtension.js +5 -1
- package/dist/cjs/next-schema/nodes/layoutColumn.js +2 -1
- package/dist/cjs/next-schema/nodes/media.js +2 -2
- package/dist/cjs/next-schema/nodes/mediaInline.js +29 -12
- package/dist/cjs/next-schema/nodes/mediaSingle.js +2 -1
- package/dist/cjs/next-schema/nodes/mention.js +2 -1
- package/dist/cjs/next-schema/nodes/placeholder.js +2 -0
- package/dist/cjs/next-schema/nodes/table.js +1 -0
- package/dist/cjs/next-schema/nodes/tableCell.js +2 -2
- package/dist/cjs/next-schema/nodes/tableHeader.js +2 -2
- package/dist/cjs/next-schema/nodes/tableRow.js +2 -1
- package/dist/cjs/next-schema/nodes/task.js +1 -0
- package/dist/es2019/next-schema/full-schema.adf.js +3 -2
- package/dist/es2019/next-schema/generated/markTypes.js +23 -23
- package/dist/es2019/next-schema/generated/nodeTypes.js +135 -201
- package/dist/es2019/next-schema/groups/blockGroup.js +5 -1
- package/dist/es2019/next-schema/groups/inlineGroup.js +1 -3
- package/dist/es2019/next-schema/nodes/blockCard.js +7 -3
- package/dist/es2019/next-schema/nodes/caption.js +1 -0
- package/dist/es2019/next-schema/nodes/codeBlock.js +1 -1
- package/dist/es2019/next-schema/nodes/decisionItem.js +1 -0
- package/dist/es2019/next-schema/nodes/inlineExtension.js +5 -1
- package/dist/es2019/next-schema/nodes/layoutColumn.js +2 -1
- package/dist/es2019/next-schema/nodes/media.js +2 -2
- package/dist/es2019/next-schema/nodes/mediaInline.js +29 -12
- package/dist/es2019/next-schema/nodes/mediaSingle.js +2 -1
- package/dist/es2019/next-schema/nodes/mention.js +2 -1
- package/dist/es2019/next-schema/nodes/placeholder.js +2 -0
- package/dist/es2019/next-schema/nodes/table.js +1 -0
- package/dist/es2019/next-schema/nodes/tableCell.js +2 -2
- package/dist/es2019/next-schema/nodes/tableHeader.js +2 -2
- package/dist/es2019/next-schema/nodes/tableRow.js +2 -1
- package/dist/es2019/next-schema/nodes/task.js +1 -0
- package/dist/esm/next-schema/full-schema.adf.js +3 -2
- package/dist/esm/next-schema/generated/markTypes.js +23 -23
- package/dist/esm/next-schema/generated/nodeTypes.js +135 -201
- package/dist/esm/next-schema/groups/blockGroup.js +5 -1
- package/dist/esm/next-schema/groups/inlineGroup.js +1 -3
- package/dist/esm/next-schema/nodes/blockCard.js +7 -3
- package/dist/esm/next-schema/nodes/caption.js +1 -0
- package/dist/esm/next-schema/nodes/codeBlock.js +1 -1
- package/dist/esm/next-schema/nodes/decisionItem.js +1 -0
- package/dist/esm/next-schema/nodes/inlineExtension.js +5 -1
- package/dist/esm/next-schema/nodes/layoutColumn.js +2 -1
- package/dist/esm/next-schema/nodes/media.js +2 -2
- package/dist/esm/next-schema/nodes/mediaInline.js +29 -12
- package/dist/esm/next-schema/nodes/mediaSingle.js +2 -1
- package/dist/esm/next-schema/nodes/mention.js +2 -1
- package/dist/esm/next-schema/nodes/placeholder.js +2 -0
- package/dist/esm/next-schema/nodes/table.js +1 -0
- package/dist/esm/next-schema/nodes/tableCell.js +2 -2
- package/dist/esm/next-schema/nodes/tableHeader.js +2 -2
- package/dist/esm/next-schema/nodes/tableRow.js +2 -1
- package/dist/esm/next-schema/nodes/task.js +1 -0
- package/dist/types/next-schema/full-schema.adf.d.ts +3 -0
- package/dist/types/next-schema/generated/markTypes.d.ts +36 -36
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +4 -4
- package/dist/types/next-schema/generated/nodeTypes.d.ts +59 -120
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +12 -0
- package/dist/types/next-schema/nodes/blockCard.d.ts +3 -0
- package/dist/types/next-schema/nodes/blockquote.d.ts +3 -0
- package/dist/types/next-schema/nodes/bodiedExtension.d.ts +3 -0
- package/dist/types/next-schema/nodes/caption.d.ts +3 -0
- package/dist/types/next-schema/nodes/codeBlock.d.ts +7 -1
- package/dist/types/next-schema/nodes/confluenceUnsupportedBlock.d.ts +3 -0
- package/dist/types/next-schema/nodes/confluenceUnsupportedInline.d.ts +3 -0
- package/dist/types/next-schema/nodes/date.d.ts +3 -0
- package/dist/types/next-schema/nodes/decisionItem.d.ts +3 -0
- package/dist/types/next-schema/nodes/decisionList.d.ts +3 -0
- package/dist/types/next-schema/nodes/embedCard.d.ts +3 -0
- package/dist/types/next-schema/nodes/emoji.d.ts +3 -0
- package/dist/types/next-schema/nodes/expand.d.ts +3 -0
- package/dist/types/next-schema/nodes/extension.d.ts +3 -0
- package/dist/types/next-schema/nodes/extensionFrame.d.ts +3 -0
- package/dist/types/next-schema/nodes/hardBreak.d.ts +3 -0
- package/dist/types/next-schema/nodes/heading.d.ts +3 -0
- package/dist/types/next-schema/nodes/inlineCard.d.ts +3 -0
- package/dist/types/next-schema/nodes/inlineExtension.d.ts +5 -0
- package/dist/types/next-schema/nodes/layoutColumn.d.ts +3 -0
- package/dist/types/next-schema/nodes/layoutSection.d.ts +3 -0
- package/dist/types/next-schema/nodes/list.d.ts +6 -0
- package/dist/types/next-schema/nodes/media.d.ts +3 -0
- package/dist/types/next-schema/nodes/mediaGroup.d.ts +3 -0
- package/dist/types/next-schema/nodes/mediaInline.d.ts +3 -0
- package/dist/types/next-schema/nodes/mediaSingle.d.ts +3 -0
- package/dist/types/next-schema/nodes/mention.d.ts +3 -0
- package/dist/types/next-schema/nodes/multiBodiedExtension.d.ts +3 -0
- package/dist/types/next-schema/nodes/nestedExpand.d.ts +3 -0
- package/dist/types/next-schema/nodes/panel.d.ts +3 -0
- package/dist/types/next-schema/nodes/paragraph.d.ts +3 -0
- package/dist/types/next-schema/nodes/placeholder.d.ts +3 -0
- package/dist/types/next-schema/nodes/rule.d.ts +3 -0
- package/dist/types/next-schema/nodes/status.d.ts +3 -0
- package/dist/types/next-schema/nodes/table.d.ts +3 -0
- package/dist/types/next-schema/nodes/tableCell.d.ts +3 -0
- package/dist/types/next-schema/nodes/tableHeader.d.ts +3 -0
- package/dist/types/next-schema/nodes/tableRow.d.ts +3 -0
- package/dist/types/next-schema/nodes/task.d.ts +6 -0
- package/dist/types/next-schema/nodes/text.d.ts +3 -0
- package/dist/types/next-schema/nodes/unsupportedBlock.d.ts +3 -0
- package/dist/types/next-schema/nodes/unsupportedInline.d.ts +3 -0
- package/package.json +2 -2
- package/schema-generators/__tests__/helpers/_utils.ts +123 -0
- package/schema-generators/__tests__/helpers/utils.unit.ts +66 -0
- package/schema-generators/__tests__/unit/json-full-schema.unit.ts +1142 -1231
- package/schema-generators/__tests__/unit/validate-pm-schema.unit.ts +157 -36
@@ -1,4 +1,6 @@
|
|
1
1
|
import { adfNode } from '@atlaskit/adf-schema-generator';
|
2
|
+
import { dataConsumer } from '../marks/dataConsumer';
|
3
|
+
import { fragment } from '../marks/fragment';
|
2
4
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
3
5
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
4
6
|
export var inlineExtension = adfNode('inlineExtension').define({
|
@@ -32,4 +34,6 @@ export var inlineExtension = adfNode('inlineExtension').define({
|
|
32
34
|
default: null
|
33
35
|
}
|
34
36
|
}
|
35
|
-
}).variant('with_marks', {
|
37
|
+
}).variant('with_marks', {
|
38
|
+
marks: [dataConsumer, fragment, unsupportedNodeAttribute, unsupportedMark]
|
39
|
+
});
|
@@ -2,6 +2,7 @@ import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
|
|
2
2
|
import { blockGroup } from '../groups/blockGroup';
|
3
3
|
import { unsupportedMark } from '../marks/unsupportedMark';
|
4
4
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
5
|
+
import { unsupportedBlock } from '../nodes/unsupportedBlock';
|
5
6
|
export var layoutColumn = adfNode('layoutColumn').define({
|
6
7
|
isolating: true,
|
7
8
|
selectable: false,
|
@@ -14,5 +15,5 @@ export var layoutColumn = adfNode('layoutColumn').define({
|
|
14
15
|
default: undefined
|
15
16
|
}
|
16
17
|
},
|
17
|
-
content: [$onePlus($or(blockGroup))]
|
18
|
+
content: [$onePlus($or(blockGroup, unsupportedBlock))]
|
18
19
|
});
|
@@ -6,7 +6,8 @@ import { unsupportedMark } from '../marks/unsupportedMark';
|
|
6
6
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
7
7
|
export var mediaInline = adfNode('mediaInline').define({
|
8
8
|
selectable: true,
|
9
|
-
atom: false,
|
9
|
+
// atom: false,
|
10
|
+
inline: true,
|
10
11
|
marks: [link, annotation, border, unsupportedNodeAttribute, unsupportedMark],
|
11
12
|
attrs: {
|
12
13
|
data: {
|
@@ -15,23 +16,32 @@ export var mediaInline = adfNode('mediaInline').define({
|
|
15
16
|
type: {
|
16
17
|
type: 'enum',
|
17
18
|
values: ['link', 'file', 'image'],
|
18
|
-
optional: true
|
19
|
+
optional: true,
|
20
|
+
default: 'file'
|
21
|
+
},
|
22
|
+
url: {
|
23
|
+
type: 'string',
|
24
|
+
default: null
|
19
25
|
},
|
20
26
|
id: {
|
21
27
|
minLength: 1,
|
22
|
-
type: 'string'
|
28
|
+
type: 'string',
|
29
|
+
default: ''
|
23
30
|
},
|
24
31
|
alt: {
|
25
32
|
type: 'string',
|
33
|
+
default: '',
|
26
34
|
optional: true
|
27
35
|
},
|
28
36
|
collection: {
|
29
|
-
type: 'string'
|
37
|
+
type: 'string',
|
38
|
+
default: ''
|
30
39
|
},
|
31
40
|
occurrenceKey: {
|
32
41
|
minLength: 1,
|
33
42
|
type: 'string',
|
34
|
-
optional: true
|
43
|
+
optional: true,
|
44
|
+
default: null
|
35
45
|
},
|
36
46
|
width: {
|
37
47
|
type: 'number',
|
@@ -45,32 +55,39 @@ export var mediaInline = adfNode('mediaInline').define({
|
|
45
55
|
},
|
46
56
|
__fileName: {
|
47
57
|
type: 'string',
|
48
|
-
optional: true
|
58
|
+
optional: true,
|
59
|
+
default: null
|
49
60
|
},
|
50
61
|
__fileSize: {
|
51
62
|
type: 'number',
|
52
|
-
optional: true
|
63
|
+
optional: true,
|
64
|
+
default: null
|
53
65
|
},
|
54
66
|
__fileMimeType: {
|
55
67
|
type: 'string',
|
56
|
-
optional: true
|
68
|
+
optional: true,
|
69
|
+
default: null
|
57
70
|
},
|
58
71
|
__displayType: {
|
59
72
|
type: 'enum',
|
60
73
|
values: ['file', 'thumbnail'],
|
61
|
-
optional: true
|
74
|
+
optional: true,
|
75
|
+
default: null
|
62
76
|
},
|
63
77
|
__contextId: {
|
64
78
|
type: 'string',
|
65
|
-
optional: true
|
79
|
+
optional: true,
|
80
|
+
default: null
|
66
81
|
},
|
67
82
|
__mediaTraceId: {
|
68
83
|
type: 'string',
|
69
|
-
optional: true
|
84
|
+
optional: true,
|
85
|
+
default: null
|
70
86
|
},
|
71
87
|
__external: {
|
72
88
|
type: 'boolean',
|
73
|
-
optional: true
|
89
|
+
optional: true,
|
90
|
+
default: false
|
74
91
|
}
|
75
92
|
}
|
76
93
|
});
|
@@ -3,7 +3,9 @@ import { unsupportedMark } from '../marks/unsupportedMark';
|
|
3
3
|
import { unsupportedNodeAttribute } from '../marks/unsupportedNodeAttribute';
|
4
4
|
export var placeholder = adfNode('placeholder').define({
|
5
5
|
selectable: false,
|
6
|
+
inline: true,
|
6
7
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
8
|
+
allowNoChildMark: true,
|
7
9
|
attrs: {
|
8
10
|
text: {
|
9
11
|
type: 'string',
|
@@ -35,12 +35,12 @@ export var tableCell = adfNode('tableCell').define({
|
|
35
35
|
},
|
36
36
|
colwidth: {
|
37
37
|
type: 'numberList',
|
38
|
-
default:
|
38
|
+
default: null,
|
39
39
|
optional: true
|
40
40
|
},
|
41
41
|
background: {
|
42
42
|
type: 'string',
|
43
|
-
default:
|
43
|
+
default: null,
|
44
44
|
optional: true
|
45
45
|
}
|
46
46
|
},
|
@@ -34,12 +34,12 @@ export var tableHeader = adfNode('tableHeader').define({
|
|
34
34
|
},
|
35
35
|
colwidth: {
|
36
36
|
type: 'numberList',
|
37
|
-
default:
|
37
|
+
default: null,
|
38
38
|
optional: true
|
39
39
|
},
|
40
40
|
background: {
|
41
41
|
type: 'string',
|
42
|
-
default:
|
42
|
+
default: null,
|
43
43
|
optional: true
|
44
44
|
}
|
45
45
|
},
|
@@ -6,5 +6,6 @@ import { tableHeader } from './tableHeader';
|
|
6
6
|
export var tableRow = adfNode('tableRow').define({
|
7
7
|
selectable: false,
|
8
8
|
marks: [unsupportedNodeAttribute, unsupportedMark],
|
9
|
-
content: [$onePlus($or(tableCell, tableHeader))]
|
9
|
+
content: [$onePlus($or(tableCell, tableHeader))],
|
10
|
+
tableRole: 'row'
|
10
11
|
});
|
@@ -14,7 +14,10 @@ declare const doc: import("@atlaskit/adf-schema-generator/dist/types/adfNode").A
|
|
14
14
|
group?: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
|
15
15
|
isolating?: boolean;
|
16
16
|
marks?: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<unknown>[];
|
17
|
+
allowAnyChildMark?: boolean;
|
18
|
+
allowNoChildMark?: boolean;
|
17
19
|
selectable?: boolean;
|
18
20
|
whitespace?: "pre" | "normal";
|
21
|
+
tableRole?: "table" | "row" | "cell" | "header_cell";
|
19
22
|
}>;
|
20
23
|
export default doc;
|
@@ -22,17 +22,6 @@ export interface UnsupportedMarkMark extends Mark {
|
|
22
22
|
attrs: UnsupportedMarkMarkAttributes;
|
23
23
|
}
|
24
24
|
export declare const unsupportedMark: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<UnsupportedMarkMark>) => import("prosemirror-model").MarkSpec;
|
25
|
-
export interface BreakoutMarkAttributes {
|
26
|
-
mode: 'wide' | 'full-width';
|
27
|
-
}
|
28
|
-
export interface BreakoutDefinition {
|
29
|
-
type: 'breakout';
|
30
|
-
attrs: BreakoutMarkAttributes;
|
31
|
-
}
|
32
|
-
export interface BreakoutMark extends Mark {
|
33
|
-
attrs: BreakoutMarkAttributes;
|
34
|
-
}
|
35
|
-
export declare const breakout: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<BreakoutMark>) => import("prosemirror-model").MarkSpec;
|
36
25
|
export interface LinkMarkAttributes {
|
37
26
|
href: string;
|
38
27
|
title?: string;
|
@@ -77,17 +66,17 @@ export interface EmDefinition {
|
|
77
66
|
type: 'em';
|
78
67
|
}
|
79
68
|
export type EmMark = Mark;
|
80
|
-
export declare const em: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "
|
69
|
+
export declare const em: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
81
70
|
export interface StrongDefinition {
|
82
71
|
type: 'strong';
|
83
72
|
}
|
84
73
|
export type StrongMark = Mark;
|
85
|
-
export declare const strong: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "
|
74
|
+
export declare const strong: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
86
75
|
export interface StrikeDefinition {
|
87
76
|
type: 'strike';
|
88
77
|
}
|
89
78
|
export type StrikeMark = Mark;
|
90
|
-
export declare const strike: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "
|
79
|
+
export declare const strike: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
91
80
|
export interface SubsupMarkAttributes {
|
92
81
|
type: 'sub' | 'sup';
|
93
82
|
}
|
@@ -103,7 +92,7 @@ export interface UnderlineDefinition {
|
|
103
92
|
type: 'underline';
|
104
93
|
}
|
105
94
|
export type UnderlineMark = Mark;
|
106
|
-
export declare const underline: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "
|
95
|
+
export declare const underline: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
107
96
|
export interface TextColorMarkAttributes {
|
108
97
|
color: string;
|
109
98
|
}
|
@@ -130,7 +119,30 @@ export interface CodeDefinition {
|
|
130
119
|
type: 'code';
|
131
120
|
}
|
132
121
|
export type CodeMark = Mark;
|
133
|
-
export declare const code: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "
|
122
|
+
export declare const code: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<Omit<Mark, "parseDOM" | "toDOM">>) => import("prosemirror-model").MarkSpec;
|
123
|
+
export interface DataConsumerMarkAttributes {
|
124
|
+
sources: Array<string>;
|
125
|
+
}
|
126
|
+
export interface DataConsumerDefinition {
|
127
|
+
type: 'dataConsumer';
|
128
|
+
attrs: DataConsumerMarkAttributes;
|
129
|
+
}
|
130
|
+
export interface DataConsumerMark extends Mark {
|
131
|
+
attrs: DataConsumerMarkAttributes;
|
132
|
+
}
|
133
|
+
export declare const dataConsumer: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<DataConsumerMark>) => import("prosemirror-model").MarkSpec;
|
134
|
+
export interface FragmentMarkAttributes {
|
135
|
+
localId: string;
|
136
|
+
name?: string;
|
137
|
+
}
|
138
|
+
export interface FragmentDefinition {
|
139
|
+
type: 'fragment';
|
140
|
+
attrs: FragmentMarkAttributes;
|
141
|
+
}
|
142
|
+
export interface FragmentMark extends Mark {
|
143
|
+
attrs: FragmentMarkAttributes;
|
144
|
+
}
|
145
|
+
export declare const fragment: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<FragmentMark>) => import("prosemirror-model").MarkSpec;
|
134
146
|
export interface AlignmentMarkAttributes {
|
135
147
|
align: 'center' | 'end';
|
136
148
|
}
|
@@ -153,26 +165,14 @@ export interface IndentationMark extends Mark {
|
|
153
165
|
attrs: IndentationMarkAttributes;
|
154
166
|
}
|
155
167
|
export declare const indentation: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<IndentationMark>) => import("prosemirror-model").MarkSpec;
|
156
|
-
export interface
|
157
|
-
|
158
|
-
}
|
159
|
-
export interface DataConsumerDefinition {
|
160
|
-
type: 'dataConsumer';
|
161
|
-
attrs: DataConsumerMarkAttributes;
|
162
|
-
}
|
163
|
-
export interface DataConsumerMark extends Mark {
|
164
|
-
attrs: DataConsumerMarkAttributes;
|
165
|
-
}
|
166
|
-
export declare const dataConsumer: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<DataConsumerMark>) => import("prosemirror-model").MarkSpec;
|
167
|
-
export interface FragmentMarkAttributes {
|
168
|
-
localId: string;
|
169
|
-
name?: string;
|
168
|
+
export interface BreakoutMarkAttributes {
|
169
|
+
mode: 'wide' | 'full-width';
|
170
170
|
}
|
171
|
-
export interface
|
172
|
-
type: '
|
173
|
-
attrs:
|
171
|
+
export interface BreakoutDefinition {
|
172
|
+
type: 'breakout';
|
173
|
+
attrs: BreakoutMarkAttributes;
|
174
174
|
}
|
175
|
-
export interface
|
176
|
-
attrs:
|
175
|
+
export interface BreakoutMark extends Mark {
|
176
|
+
attrs: BreakoutMarkAttributes;
|
177
177
|
}
|
178
|
-
export declare const
|
178
|
+
export declare const breakout: ({ parseDOM, toDOM }: import("@atlaskit/adf-schema-generator").MarkSpecOptions<BreakoutMark>) => import("prosemirror-model").MarkSpec;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { TextDefinition, DateDefinition, EmojiDefinition, HardBreakDefinition, InlineCardDefinition, MentionDefinition, PlaceholderDefinition, StatusDefinition,
|
2
|
-
export type InlineDefinition = Array<TextDefinition | DateDefinition | EmojiDefinition | HardBreakDefinition | InlineCardDefinition | MentionDefinition | PlaceholderDefinition | StatusDefinition |
|
3
|
-
import { BlockCardDefinition,
|
4
|
-
export type BlockDefinition = Array<BlockCardDefinition |
|
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 { BlockCardDefinition, CodeBlockWithNoMarksDefinition, MediaSingleDefinition, MediaSingleCaptionDefinition, MediaSingleFullDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, TaskListDefinition, OrderedListDefinition, BulletListDefinition, BlockquoteWithListDefinition, DecisionListDefinition, EmbedCardDefinition, ExtensionWithMarksDefinition, HeadingDefinition, HeadingWithNoMarksDefinition, MediaGroupDefinition, RuleDefinition, PanelDefinition, TableDefinition, BodiedExtensionWithMarksDefinition, ExpandWithNoMarkDefinition, ConfluenceUnsupportedBlockDefinition, UnsupportedBlockDefinition } from './nodeTypes';
|
4
|
+
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockWithNoMarksDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteWithListDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | TableDefinition | BodiedExtensionWithMarksDefinition | ExpandWithNoMarkDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|