@atlaskit/adf-schema 36.18.3 → 37.0.1
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/index.js +0 -24
- package/dist/cjs/next-schema/generated/markTypes.js +77 -77
- package/dist/cjs/next-schema/generated/nodeTypes.js +577 -545
- package/dist/cjs/next-schema/nodes/heading.js +5 -0
- package/dist/cjs/next-schema/nodes/paragraph.js +7 -0
- package/dist/cjs/schema/create-schema.js +2 -2
- package/dist/cjs/schema/default-schema.js +1 -3
- package/dist/cjs/schema/index.js +0 -24
- package/dist/cjs/schema/nodes/heading.js +2 -51
- package/dist/cjs/schema/nodes/index.js +0 -24
- package/dist/cjs/schema/nodes/paragraph.js +2 -18
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/next-schema/generated/markTypes.js +77 -77
- package/dist/es2019/next-schema/generated/nodeTypes.js +577 -545
- package/dist/es2019/next-schema/nodes/heading.js +5 -0
- package/dist/es2019/next-schema/nodes/paragraph.js +7 -0
- package/dist/es2019/schema/create-schema.js +3 -3
- package/dist/es2019/schema/default-schema.js +2 -4
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/heading.js +2 -48
- package/dist/es2019/schema/nodes/index.js +2 -2
- package/dist/es2019/schema/nodes/paragraph.js +2 -15
- package/dist/esm/index.js +1 -1
- package/dist/esm/next-schema/generated/markTypes.js +77 -77
- package/dist/esm/next-schema/generated/nodeTypes.js +577 -545
- package/dist/esm/next-schema/nodes/heading.js +5 -0
- package/dist/esm/next-schema/nodes/paragraph.js +7 -0
- package/dist/esm/schema/create-schema.js +3 -3
- package/dist/esm/schema/default-schema.js +2 -4
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/heading.js +1 -50
- package/dist/esm/schema/nodes/index.js +2 -2
- package/dist/esm/schema/nodes/paragraph.js +1 -17
- package/dist/json-schema/v1/full.json +12 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/next-schema/generated/markTypes.d.ts +122 -122
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +474 -458
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/heading.d.ts +1 -3
- package/dist/types/schema/nodes/index.d.ts +2 -2
- package/dist/types/schema/nodes/paragraph.d.ts +1 -6
- package/json-schema/v1/full.json +12 -0
- package/package.json +3 -3
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +7 -1
- package/schema-generators/__tests__/unit/json-full-schema.unit.ts +12 -0
@@ -5,34 +5,6 @@
|
|
5
5
|
*/
|
6
6
|
|
7
7
|
import { createPMNodeSpecFactory } from '@atlaskit/adf-schema-generator';
|
8
|
-
export var text = createPMNodeSpecFactory({
|
9
|
-
group: 'inline'
|
10
|
-
});
|
11
|
-
export var unsupportedInline = createPMNodeSpecFactory({
|
12
|
-
group: 'inline',
|
13
|
-
inline: true,
|
14
|
-
attrs: {
|
15
|
-
originalValue: {
|
16
|
-
default: {}
|
17
|
-
}
|
18
|
-
},
|
19
|
-
selectable: true
|
20
|
-
});
|
21
|
-
export var codeBlockWithNoMarks = createPMNodeSpecFactory({
|
22
|
-
content: '(text | unsupportedInline)*',
|
23
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
24
|
-
group: 'block',
|
25
|
-
attrs: {
|
26
|
-
language: {
|
27
|
-
default: null
|
28
|
-
},
|
29
|
-
uniqueId: {
|
30
|
-
default: null
|
31
|
-
}
|
32
|
-
},
|
33
|
-
code: true,
|
34
|
-
defining: true
|
35
|
-
});
|
36
8
|
export var blockCard = createPMNodeSpecFactory({
|
37
9
|
group: 'block',
|
38
10
|
attrs: {
|
@@ -55,112 +27,48 @@ export var blockCard = createPMNodeSpecFactory({
|
|
55
27
|
selectable: true,
|
56
28
|
draggable: true
|
57
29
|
});
|
58
|
-
export var
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
group: 'inline'
|
30
|
+
export var blockquote = createPMNodeSpecFactory({
|
31
|
+
content: '(paragraph | bulletList | orderedList | unsupportedBlock)+',
|
32
|
+
selectable: false,
|
33
|
+
defining: true
|
63
34
|
});
|
64
|
-
export var
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
default: ''
|
70
|
-
}
|
71
|
-
},
|
72
|
-
selectable: true
|
35
|
+
export var blockquoteWithList = createPMNodeSpecFactory({
|
36
|
+
content: '(paragraph | orderedList | bulletList | unsupportedBlock)+',
|
37
|
+
group: 'block',
|
38
|
+
selectable: false,
|
39
|
+
defining: true
|
73
40
|
});
|
74
|
-
export var
|
75
|
-
|
76
|
-
|
41
|
+
export var bodiedExtension = createPMNodeSpecFactory({
|
42
|
+
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | table | unsupportedBlock)+',
|
43
|
+
marks: 'dataConsumer fragment',
|
77
44
|
attrs: {
|
78
|
-
|
79
|
-
default: ''
|
80
|
-
},
|
81
|
-
id: {
|
82
|
-
default: ''
|
83
|
-
},
|
84
|
-
text: {
|
45
|
+
extensionKey: {
|
85
46
|
default: ''
|
86
|
-
}
|
87
|
-
},
|
88
|
-
selectable: true
|
89
|
-
});
|
90
|
-
export var hardBreak = createPMNodeSpecFactory({
|
91
|
-
group: 'inline',
|
92
|
-
inline: true,
|
93
|
-
selectable: false
|
94
|
-
});
|
95
|
-
export var inlineCard = createPMNodeSpecFactory({
|
96
|
-
group: 'inline',
|
97
|
-
inline: true,
|
98
|
-
attrs: {
|
99
|
-
url: {
|
100
|
-
default: null
|
101
47
|
},
|
102
|
-
|
103
|
-
default: null
|
104
|
-
}
|
105
|
-
},
|
106
|
-
selectable: true,
|
107
|
-
draggable: true
|
108
|
-
});
|
109
|
-
export var mention = createPMNodeSpecFactory({
|
110
|
-
group: 'inline',
|
111
|
-
inline: true,
|
112
|
-
attrs: {
|
113
|
-
id: {
|
48
|
+
extensionType: {
|
114
49
|
default: ''
|
115
50
|
},
|
116
|
-
|
51
|
+
parameters: {
|
117
52
|
default: null
|
118
53
|
},
|
119
54
|
text: {
|
120
|
-
default: ''
|
121
|
-
},
|
122
|
-
accessLevel: {
|
123
|
-
default: ''
|
124
|
-
},
|
125
|
-
userType: {
|
126
55
|
default: null
|
127
|
-
}
|
128
|
-
},
|
129
|
-
selectable: true
|
130
|
-
});
|
131
|
-
export var placeholder = createPMNodeSpecFactory({
|
132
|
-
marks: '',
|
133
|
-
group: 'inline',
|
134
|
-
inline: true,
|
135
|
-
attrs: {
|
136
|
-
text: {
|
137
|
-
default: ''
|
138
|
-
}
|
139
|
-
},
|
140
|
-
selectable: false
|
141
|
-
});
|
142
|
-
export var status = createPMNodeSpecFactory({
|
143
|
-
group: 'inline',
|
144
|
-
inline: true,
|
145
|
-
attrs: {
|
146
|
-
text: {
|
147
|
-
default: ''
|
148
56
|
},
|
149
|
-
|
150
|
-
default: ''
|
57
|
+
layout: {
|
58
|
+
default: 'default'
|
151
59
|
},
|
152
60
|
localId: {
|
153
|
-
default:
|
154
|
-
},
|
155
|
-
style: {
|
156
|
-
default: ''
|
61
|
+
default: null
|
157
62
|
}
|
158
63
|
},
|
159
|
-
selectable: true
|
64
|
+
selectable: true,
|
65
|
+
defining: true,
|
66
|
+
isolating: true
|
160
67
|
});
|
161
|
-
export var
|
162
|
-
|
163
|
-
|
68
|
+
export var bodiedExtensionWithMarks = createPMNodeSpecFactory({
|
69
|
+
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | table | unsupportedBlock)+',
|
70
|
+
marks: 'dataConsumer fragment',
|
71
|
+
group: 'block',
|
164
72
|
attrs: {
|
165
73
|
extensionKey: {
|
166
74
|
default: ''
|
@@ -174,79 +82,57 @@ export var inlineExtensionWithMarks = createPMNodeSpecFactory({
|
|
174
82
|
text: {
|
175
83
|
default: null
|
176
84
|
},
|
85
|
+
layout: {
|
86
|
+
default: 'default'
|
87
|
+
},
|
177
88
|
localId: {
|
178
89
|
default: null
|
179
90
|
}
|
180
91
|
},
|
181
|
-
selectable: true
|
92
|
+
selectable: true,
|
93
|
+
defining: true,
|
94
|
+
isolating: true
|
182
95
|
});
|
183
|
-
export var
|
184
|
-
|
185
|
-
|
96
|
+
export var bulletList = createPMNodeSpecFactory({
|
97
|
+
content: 'listItem+',
|
98
|
+
marks: 'unsupportedNodeAttribute unsupportedMark',
|
99
|
+
group: 'block',
|
100
|
+
selectable: false
|
101
|
+
});
|
102
|
+
export var caption = createPMNodeSpecFactory({
|
103
|
+
content: '(hardBreak | mention | emoji | date | placeholder | inlineCard | status | text | unsupportedInline)*',
|
104
|
+
marks: '_',
|
105
|
+
selectable: false,
|
106
|
+
isolating: true
|
107
|
+
});
|
108
|
+
export var codeBlock = createPMNodeSpecFactory({
|
109
|
+
content: '(text | unsupportedInline)*',
|
110
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
186
111
|
attrs: {
|
187
|
-
|
188
|
-
default: 'file'
|
189
|
-
},
|
190
|
-
url: {
|
191
|
-
default: null
|
192
|
-
},
|
193
|
-
id: {
|
194
|
-
default: ''
|
195
|
-
},
|
196
|
-
alt: {
|
197
|
-
default: ''
|
198
|
-
},
|
199
|
-
collection: {
|
200
|
-
default: ''
|
201
|
-
},
|
202
|
-
occurrenceKey: {
|
203
|
-
default: null
|
204
|
-
},
|
205
|
-
width: {
|
206
|
-
default: null
|
207
|
-
},
|
208
|
-
height: {
|
209
|
-
default: null
|
210
|
-
},
|
211
|
-
__fileName: {
|
212
|
-
default: null
|
213
|
-
},
|
214
|
-
__fileSize: {
|
215
|
-
default: null
|
216
|
-
},
|
217
|
-
__fileMimeType: {
|
218
|
-
default: null
|
219
|
-
},
|
220
|
-
__displayType: {
|
221
|
-
default: null
|
222
|
-
},
|
223
|
-
__contextId: {
|
112
|
+
language: {
|
224
113
|
default: null
|
225
114
|
},
|
226
|
-
|
115
|
+
uniqueId: {
|
227
116
|
default: null
|
228
|
-
},
|
229
|
-
__external: {
|
230
|
-
default: false
|
231
117
|
}
|
232
118
|
},
|
233
|
-
|
119
|
+
code: true,
|
120
|
+
defining: true
|
234
121
|
});
|
235
|
-
export var
|
236
|
-
|
237
|
-
|
122
|
+
export var codeBlockWithNoMarks = createPMNodeSpecFactory({
|
123
|
+
content: '(text | unsupportedInline)*',
|
124
|
+
marks: 'unsupportedMark unsupportedNodeAttribute',
|
125
|
+
group: 'block',
|
238
126
|
attrs: {
|
239
|
-
|
240
|
-
default:
|
241
|
-
},
|
242
|
-
alt: {
|
243
|
-
default: ''
|
127
|
+
language: {
|
128
|
+
default: null
|
244
129
|
},
|
245
|
-
|
130
|
+
uniqueId: {
|
246
131
|
default: null
|
247
132
|
}
|
248
133
|
},
|
249
|
-
|
134
|
+
code: true,
|
135
|
+
defining: true
|
250
136
|
});
|
251
137
|
export var confluenceJiraIssue = createPMNodeSpecFactory({
|
252
138
|
group: 'inline',
|
@@ -270,6 +156,14 @@ export var confluenceJiraIssue = createPMNodeSpecFactory({
|
|
270
156
|
}
|
271
157
|
}
|
272
158
|
});
|
159
|
+
export var confluenceUnsupportedBlock = createPMNodeSpecFactory({
|
160
|
+
group: 'block',
|
161
|
+
attrs: {
|
162
|
+
cxhtml: {
|
163
|
+
default: null
|
164
|
+
}
|
165
|
+
}
|
166
|
+
});
|
273
167
|
export var confluenceUnsupportedInline = createPMNodeSpecFactory({
|
274
168
|
group: 'inline',
|
275
169
|
inline: true,
|
@@ -280,284 +174,474 @@ export var confluenceUnsupportedInline = createPMNodeSpecFactory({
|
|
280
174
|
}
|
281
175
|
}
|
282
176
|
});
|
283
|
-
export var
|
284
|
-
|
285
|
-
|
286
|
-
selectable: false
|
287
|
-
});
|
288
|
-
export var media = createPMNodeSpecFactory({
|
177
|
+
export var date = createPMNodeSpecFactory({
|
178
|
+
group: 'inline',
|
179
|
+
inline: true,
|
289
180
|
attrs: {
|
290
|
-
|
291
|
-
default: 'file'
|
292
|
-
},
|
293
|
-
id: {
|
181
|
+
timestamp: {
|
294
182
|
default: ''
|
295
|
-
}
|
296
|
-
|
183
|
+
}
|
184
|
+
},
|
185
|
+
selectable: true
|
186
|
+
});
|
187
|
+
export var decisionItem = createPMNodeSpecFactory({
|
188
|
+
content: 'inline*',
|
189
|
+
marks: '_',
|
190
|
+
attrs: {
|
191
|
+
localId: {
|
297
192
|
default: ''
|
298
193
|
},
|
299
|
-
|
194
|
+
state: {
|
195
|
+
default: 'DECIDED'
|
196
|
+
}
|
197
|
+
},
|
198
|
+
defining: true
|
199
|
+
});
|
200
|
+
export var decisionList = createPMNodeSpecFactory({
|
201
|
+
content: '(decisionItem | unsupportedBlock)+',
|
202
|
+
marks: 'unsupportedNodeAttribute unsupportedMark',
|
203
|
+
group: 'block',
|
204
|
+
attrs: {
|
205
|
+
localId: {
|
206
|
+
default: ''
|
207
|
+
}
|
208
|
+
},
|
209
|
+
selectable: false,
|
210
|
+
defining: true
|
211
|
+
});
|
212
|
+
export var doc = createPMNodeSpecFactory({
|
213
|
+
content: '(block | layoutSection | blockRootOnly)+',
|
214
|
+
marks: 'unsupportedNodeAttribute unsupportedMark alignment indentation fragment dataConsumer breakout'
|
215
|
+
});
|
216
|
+
export var embedCard = createPMNodeSpecFactory({
|
217
|
+
group: 'block',
|
218
|
+
attrs: {
|
219
|
+
url: {
|
300
220
|
default: ''
|
301
221
|
},
|
302
|
-
|
303
|
-
default:
|
304
|
-
},
|
305
|
-
occurrenceKey: {
|
306
|
-
default: null
|
222
|
+
layout: {
|
223
|
+
default: 'center'
|
307
224
|
},
|
308
225
|
width: {
|
309
|
-
default:
|
310
|
-
},
|
311
|
-
__contextId: {
|
312
|
-
default: null
|
313
|
-
},
|
314
|
-
__displayType: {
|
315
|
-
default: null
|
316
|
-
},
|
317
|
-
__external: {
|
318
|
-
default: false
|
319
|
-
},
|
320
|
-
__fileMimeType: {
|
321
|
-
default: null
|
226
|
+
default: 100
|
322
227
|
},
|
323
|
-
|
228
|
+
originalHeight: {
|
324
229
|
default: null
|
325
230
|
},
|
326
|
-
|
231
|
+
originalWidth: {
|
327
232
|
default: null
|
233
|
+
}
|
234
|
+
},
|
235
|
+
selectable: true
|
236
|
+
});
|
237
|
+
export var emoji = createPMNodeSpecFactory({
|
238
|
+
group: 'inline',
|
239
|
+
inline: true,
|
240
|
+
attrs: {
|
241
|
+
shortName: {
|
242
|
+
default: ''
|
328
243
|
},
|
329
|
-
|
330
|
-
default:
|
244
|
+
id: {
|
245
|
+
default: ''
|
331
246
|
},
|
332
|
-
|
333
|
-
default:
|
247
|
+
text: {
|
248
|
+
default: ''
|
334
249
|
}
|
335
250
|
},
|
336
251
|
selectable: true
|
337
252
|
});
|
338
|
-
export var
|
253
|
+
export var expandWithNoMark = createPMNodeSpecFactory({
|
254
|
+
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | table | unsupportedBlock)+',
|
255
|
+
marks: 'unsupportedNodeAttribute unsupportedMark dataConsumer fragment',
|
339
256
|
group: 'block',
|
340
|
-
atom: true,
|
341
257
|
attrs: {
|
342
|
-
|
343
|
-
default:
|
258
|
+
title: {
|
259
|
+
default: ''
|
260
|
+
},
|
261
|
+
__expanded: {
|
262
|
+
default: true
|
344
263
|
}
|
345
264
|
},
|
346
|
-
selectable: true
|
347
|
-
});
|
348
|
-
export var caption = createPMNodeSpecFactory({
|
349
|
-
content: '(hardBreak | mention | emoji | date | placeholder | inlineCard | status | text | unsupportedInline)*',
|
350
|
-
marks: '_',
|
351
|
-
selectable: false,
|
265
|
+
selectable: true,
|
352
266
|
isolating: true
|
353
267
|
});
|
354
|
-
export var
|
355
|
-
|
356
|
-
marks: 'link annotation border unsupportedNodeAttribute unsupportedMark',
|
357
|
-
group: 'block',
|
358
|
-
atom: false,
|
268
|
+
export var extension = createPMNodeSpecFactory({
|
269
|
+
atom: true,
|
359
270
|
attrs: {
|
360
|
-
|
271
|
+
extensionKey: {
|
272
|
+
default: ''
|
273
|
+
},
|
274
|
+
extensionType: {
|
275
|
+
default: ''
|
276
|
+
},
|
277
|
+
parameters: {
|
278
|
+
default: null
|
279
|
+
},
|
280
|
+
text: {
|
361
281
|
default: null
|
362
282
|
},
|
363
283
|
layout: {
|
364
|
-
default: '
|
284
|
+
default: 'default'
|
365
285
|
},
|
366
|
-
|
286
|
+
localId: {
|
367
287
|
default: null
|
368
288
|
}
|
369
289
|
},
|
370
290
|
selectable: true
|
371
291
|
});
|
372
|
-
export var
|
373
|
-
content: 'media',
|
374
|
-
marks: 'link annotation border unsupportedNodeAttribute unsupportedMark',
|
292
|
+
export var extensionWithMarks = createPMNodeSpecFactory({
|
375
293
|
group: 'block',
|
376
|
-
atom:
|
294
|
+
atom: true,
|
377
295
|
attrs: {
|
378
|
-
|
296
|
+
extensionKey: {
|
297
|
+
default: ''
|
298
|
+
},
|
299
|
+
extensionType: {
|
300
|
+
default: ''
|
301
|
+
},
|
302
|
+
parameters: {
|
303
|
+
default: null
|
304
|
+
},
|
305
|
+
text: {
|
379
306
|
default: null
|
380
307
|
},
|
381
308
|
layout: {
|
382
|
-
default: '
|
309
|
+
default: 'default'
|
383
310
|
},
|
384
|
-
|
311
|
+
localId: {
|
385
312
|
default: null
|
386
313
|
}
|
387
314
|
},
|
388
315
|
selectable: true
|
389
316
|
});
|
390
|
-
export var
|
317
|
+
export var extensionFrame = createPMNodeSpecFactory({
|
318
|
+
content: '(bodiedExtension | panel | paragraph | blockquote | orderedList | bulletList | rule | heading | codeBlock | mediaGroup | mediaSingle | decisionList | taskList | table | extension | blockCard | embedCard | unsupportedBlock)+',
|
319
|
+
marks: 'dataConsumer fragment',
|
320
|
+
attrs: {},
|
321
|
+
selectable: false,
|
322
|
+
definingAsContext: false,
|
323
|
+
definingForContent: true,
|
324
|
+
isolating: true
|
325
|
+
});
|
326
|
+
export var hardBreak = createPMNodeSpecFactory({
|
327
|
+
group: 'inline',
|
328
|
+
inline: true,
|
329
|
+
selectable: false
|
330
|
+
});
|
331
|
+
export var heading = createPMNodeSpecFactory({
|
391
332
|
content: 'inline*',
|
392
|
-
marks: '_',
|
393
333
|
attrs: {
|
394
|
-
|
395
|
-
default:
|
334
|
+
level: {
|
335
|
+
default: 1
|
396
336
|
},
|
397
|
-
|
398
|
-
default:
|
337
|
+
localId: {
|
338
|
+
default: null
|
399
339
|
}
|
400
340
|
},
|
401
341
|
selectable: false,
|
402
342
|
defining: true
|
403
343
|
});
|
404
|
-
export var
|
405
|
-
content: '
|
406
|
-
marks: 'unsupportedNodeAttribute unsupportedMark',
|
344
|
+
export var headingWithAlignment = createPMNodeSpecFactory({
|
345
|
+
content: 'inline*',
|
407
346
|
group: 'block',
|
408
347
|
attrs: {
|
348
|
+
level: {
|
349
|
+
default: 1
|
350
|
+
},
|
409
351
|
localId: {
|
410
|
-
default:
|
352
|
+
default: null
|
411
353
|
}
|
412
354
|
},
|
413
355
|
selectable: false,
|
414
356
|
defining: true
|
415
357
|
});
|
416
|
-
export var
|
417
|
-
content: '
|
418
|
-
marks: 'unsupportedNodeAttribute unsupportedMark',
|
358
|
+
export var headingWithIndentation = createPMNodeSpecFactory({
|
359
|
+
content: 'inline*',
|
419
360
|
group: 'block',
|
420
361
|
attrs: {
|
421
|
-
|
362
|
+
level: {
|
422
363
|
default: 1
|
364
|
+
},
|
365
|
+
localId: {
|
366
|
+
default: null
|
423
367
|
}
|
424
368
|
},
|
425
|
-
selectable: false
|
426
|
-
});
|
427
|
-
export var listItem = createPMNodeSpecFactory({
|
428
|
-
content: '(codeBlock | paragraph | mediaSingle | unsupportedBlock) (codeBlock | paragraph | mediaSingle | taskList | bulletList | orderedList | unsupportedBlock)*',
|
429
|
-
marks: 'unsupportedNodeAttribute unsupportedMark',
|
430
369
|
selectable: false,
|
431
370
|
defining: true
|
432
371
|
});
|
433
|
-
export var bulletList = createPMNodeSpecFactory({
|
434
|
-
content: 'listItem+',
|
435
|
-
marks: 'unsupportedNodeAttribute unsupportedMark',
|
436
|
-
group: 'block',
|
437
|
-
selectable: false
|
438
|
-
});
|
439
372
|
export var headingWithNoMarks = createPMNodeSpecFactory({
|
440
373
|
content: 'inline*',
|
441
374
|
group: 'block',
|
442
375
|
attrs: {
|
443
376
|
level: {
|
444
377
|
default: 1
|
378
|
+
},
|
379
|
+
localId: {
|
380
|
+
default: null
|
445
381
|
}
|
446
382
|
},
|
447
383
|
selectable: false,
|
448
384
|
defining: true
|
449
385
|
});
|
450
|
-
export var
|
451
|
-
|
452
|
-
|
453
|
-
group: 'block',
|
454
|
-
attrs: {},
|
455
|
-
selectable: false
|
456
|
-
});
|
457
|
-
export var decisionItem = createPMNodeSpecFactory({
|
458
|
-
content: 'inline*',
|
459
|
-
marks: '_',
|
386
|
+
export var image = createPMNodeSpecFactory({
|
387
|
+
group: 'inline',
|
388
|
+
inline: true,
|
460
389
|
attrs: {
|
461
|
-
|
390
|
+
src: {
|
462
391
|
default: ''
|
463
392
|
},
|
464
|
-
|
465
|
-
default: '
|
393
|
+
alt: {
|
394
|
+
default: ''
|
395
|
+
},
|
396
|
+
title: {
|
397
|
+
default: null
|
466
398
|
}
|
467
399
|
},
|
468
|
-
|
400
|
+
draggable: true
|
469
401
|
});
|
470
|
-
export var
|
471
|
-
|
472
|
-
|
473
|
-
group: 'block',
|
402
|
+
export var inlineCard = createPMNodeSpecFactory({
|
403
|
+
group: 'inline',
|
404
|
+
inline: true,
|
474
405
|
attrs: {
|
475
|
-
|
476
|
-
default:
|
406
|
+
url: {
|
407
|
+
default: null
|
408
|
+
},
|
409
|
+
data: {
|
410
|
+
default: null
|
477
411
|
}
|
478
412
|
},
|
479
|
-
selectable:
|
480
|
-
|
481
|
-
});
|
482
|
-
export var rule = createPMNodeSpecFactory({
|
483
|
-
group: 'block'
|
413
|
+
selectable: true,
|
414
|
+
draggable: true
|
484
415
|
});
|
485
|
-
export var
|
486
|
-
|
487
|
-
|
488
|
-
group: 'block',
|
416
|
+
export var inlineExtensionWithMarks = createPMNodeSpecFactory({
|
417
|
+
group: 'inline',
|
418
|
+
inline: true,
|
489
419
|
attrs: {
|
490
|
-
|
491
|
-
default: '
|
420
|
+
extensionKey: {
|
421
|
+
default: ''
|
492
422
|
},
|
493
|
-
|
494
|
-
default:
|
423
|
+
extensionType: {
|
424
|
+
default: ''
|
495
425
|
},
|
496
|
-
|
426
|
+
parameters: {
|
497
427
|
default: null
|
498
428
|
},
|
499
|
-
|
429
|
+
text: {
|
500
430
|
default: null
|
501
431
|
},
|
502
|
-
|
432
|
+
localId: {
|
503
433
|
default: null
|
504
434
|
}
|
505
435
|
},
|
506
436
|
selectable: true
|
507
437
|
});
|
508
|
-
export var
|
509
|
-
content: '
|
510
|
-
marks: '
|
511
|
-
|
512
|
-
|
438
|
+
export var layoutColumn = createPMNodeSpecFactory({
|
439
|
+
content: '(block | unsupportedBlock)+',
|
440
|
+
marks: 'unsupportedNodeAttribute unsupportedMark alignment indentation fragment dataConsumer',
|
441
|
+
attrs: {
|
442
|
+
width: {}
|
443
|
+
},
|
444
|
+
selectable: false,
|
445
|
+
isolating: true
|
513
446
|
});
|
514
|
-
export var
|
515
|
-
content: '
|
516
|
-
marks: '
|
517
|
-
|
518
|
-
selectable: false
|
447
|
+
export var layoutSection = createPMNodeSpecFactory({
|
448
|
+
content: '(layoutColumn | unsupportedBlock){1,3}',
|
449
|
+
marks: 'unsupportedNodeAttribute unsupportedMark',
|
450
|
+
isolating: true
|
519
451
|
});
|
520
|
-
export var
|
521
|
-
content: '(paragraph |
|
522
|
-
|
452
|
+
export var listItem = createPMNodeSpecFactory({
|
453
|
+
content: '(codeBlock | paragraph | mediaSingle | unsupportedBlock) (codeBlock | paragraph | mediaSingle | taskList | bulletList | orderedList | unsupportedBlock)*',
|
454
|
+
marks: 'unsupportedNodeAttribute unsupportedMark',
|
523
455
|
selectable: false,
|
524
456
|
defining: true
|
525
457
|
});
|
526
|
-
export var
|
527
|
-
content: 'inline*',
|
528
|
-
group: 'block',
|
458
|
+
export var media = createPMNodeSpecFactory({
|
529
459
|
attrs: {
|
530
|
-
|
531
|
-
default:
|
460
|
+
type: {
|
461
|
+
default: 'file'
|
462
|
+
},
|
463
|
+
id: {
|
464
|
+
default: ''
|
465
|
+
},
|
466
|
+
alt: {
|
467
|
+
default: ''
|
468
|
+
},
|
469
|
+
collection: {
|
470
|
+
default: ''
|
471
|
+
},
|
472
|
+
height: {
|
473
|
+
default: null
|
474
|
+
},
|
475
|
+
occurrenceKey: {
|
476
|
+
default: null
|
477
|
+
},
|
478
|
+
width: {
|
479
|
+
default: null
|
480
|
+
},
|
481
|
+
__contextId: {
|
482
|
+
default: null
|
483
|
+
},
|
484
|
+
__displayType: {
|
485
|
+
default: null
|
486
|
+
},
|
487
|
+
__external: {
|
488
|
+
default: false
|
489
|
+
},
|
490
|
+
__fileMimeType: {
|
491
|
+
default: null
|
492
|
+
},
|
493
|
+
__fileName: {
|
494
|
+
default: null
|
495
|
+
},
|
496
|
+
__fileSize: {
|
497
|
+
default: null
|
498
|
+
},
|
499
|
+
__mediaTraceId: {
|
500
|
+
default: null
|
501
|
+
},
|
502
|
+
url: {
|
503
|
+
default: null
|
532
504
|
}
|
533
505
|
},
|
534
|
-
selectable:
|
535
|
-
defining: true
|
506
|
+
selectable: true
|
536
507
|
});
|
537
|
-
export var
|
538
|
-
content: '
|
508
|
+
export var mediaGroup = createPMNodeSpecFactory({
|
509
|
+
content: '(media | unsupportedBlock)+',
|
510
|
+
marks: 'link annotation border unsupportedNodeAttribute unsupportedMark',
|
539
511
|
group: 'block',
|
512
|
+
attrs: {},
|
513
|
+
selectable: false
|
514
|
+
});
|
515
|
+
export var mediaInline = createPMNodeSpecFactory({
|
516
|
+
group: 'inline',
|
517
|
+
inline: true,
|
540
518
|
attrs: {
|
541
|
-
|
542
|
-
default:
|
519
|
+
type: {
|
520
|
+
default: 'file'
|
521
|
+
},
|
522
|
+
url: {
|
523
|
+
default: null
|
524
|
+
},
|
525
|
+
id: {
|
526
|
+
default: ''
|
527
|
+
},
|
528
|
+
alt: {
|
529
|
+
default: ''
|
530
|
+
},
|
531
|
+
collection: {
|
532
|
+
default: ''
|
533
|
+
},
|
534
|
+
occurrenceKey: {
|
535
|
+
default: null
|
536
|
+
},
|
537
|
+
width: {
|
538
|
+
default: null
|
539
|
+
},
|
540
|
+
height: {
|
541
|
+
default: null
|
542
|
+
},
|
543
|
+
__fileName: {
|
544
|
+
default: null
|
545
|
+
},
|
546
|
+
__fileSize: {
|
547
|
+
default: null
|
548
|
+
},
|
549
|
+
__fileMimeType: {
|
550
|
+
default: null
|
551
|
+
},
|
552
|
+
__displayType: {
|
553
|
+
default: null
|
554
|
+
},
|
555
|
+
__contextId: {
|
556
|
+
default: null
|
557
|
+
},
|
558
|
+
__mediaTraceId: {
|
559
|
+
default: null
|
560
|
+
},
|
561
|
+
__external: {
|
562
|
+
default: false
|
543
563
|
}
|
544
564
|
},
|
545
|
-
selectable:
|
546
|
-
defining: true
|
565
|
+
selectable: true
|
547
566
|
});
|
548
|
-
export var
|
549
|
-
content: '
|
550
|
-
marks: 'link
|
551
|
-
|
567
|
+
export var mediaSingle = createPMNodeSpecFactory({
|
568
|
+
content: 'media',
|
569
|
+
marks: 'link annotation border unsupportedNodeAttribute unsupportedMark',
|
570
|
+
atom: false,
|
571
|
+
attrs: {
|
572
|
+
width: {
|
573
|
+
default: null
|
574
|
+
},
|
575
|
+
layout: {
|
576
|
+
default: 'center'
|
577
|
+
},
|
578
|
+
widthType: {
|
579
|
+
default: null
|
580
|
+
}
|
581
|
+
},
|
582
|
+
selectable: true
|
552
583
|
});
|
553
|
-
export var
|
554
|
-
content: '(
|
555
|
-
|
556
|
-
|
584
|
+
export var mediaSingleCaption = createPMNodeSpecFactory({
|
585
|
+
content: '(media | unsupportedBlock) (caption | unsupportedBlock)',
|
586
|
+
marks: 'link annotation border unsupportedNodeAttribute unsupportedMark',
|
587
|
+
group: 'block',
|
588
|
+
atom: false,
|
589
|
+
attrs: {
|
590
|
+
width: {
|
591
|
+
default: null
|
592
|
+
},
|
593
|
+
layout: {
|
594
|
+
default: 'center'
|
595
|
+
},
|
596
|
+
widthType: {
|
597
|
+
default: null
|
598
|
+
}
|
599
|
+
},
|
600
|
+
selectable: true
|
557
601
|
});
|
558
|
-
export var
|
602
|
+
export var mediaSingleFull = createPMNodeSpecFactory({
|
603
|
+
content: 'media',
|
604
|
+
marks: 'link annotation border unsupportedNodeAttribute unsupportedMark',
|
559
605
|
group: 'block',
|
560
|
-
atom:
|
606
|
+
atom: false,
|
607
|
+
attrs: {
|
608
|
+
width: {
|
609
|
+
default: null
|
610
|
+
},
|
611
|
+
layout: {
|
612
|
+
default: 'center'
|
613
|
+
},
|
614
|
+
widthType: {
|
615
|
+
default: null
|
616
|
+
}
|
617
|
+
},
|
618
|
+
selectable: true
|
619
|
+
});
|
620
|
+
export var mention = createPMNodeSpecFactory({
|
621
|
+
group: 'inline',
|
622
|
+
inline: true,
|
623
|
+
attrs: {
|
624
|
+
id: {
|
625
|
+
default: ''
|
626
|
+
},
|
627
|
+
localId: {
|
628
|
+
default: null
|
629
|
+
},
|
630
|
+
text: {
|
631
|
+
default: ''
|
632
|
+
},
|
633
|
+
accessLevel: {
|
634
|
+
default: ''
|
635
|
+
},
|
636
|
+
userType: {
|
637
|
+
default: null
|
638
|
+
}
|
639
|
+
},
|
640
|
+
selectable: true
|
641
|
+
});
|
642
|
+
export var multiBodiedExtension = createPMNodeSpecFactory({
|
643
|
+
content: 'extensionFrame+',
|
644
|
+
group: 'blockRootOnly',
|
561
645
|
attrs: {
|
562
646
|
extensionKey: {
|
563
647
|
default: ''
|
@@ -578,42 +662,159 @@ export var extensionWithMarks = createPMNodeSpecFactory({
|
|
578
662
|
default: null
|
579
663
|
}
|
580
664
|
},
|
581
|
-
selectable: true
|
665
|
+
selectable: true,
|
666
|
+
definingAsContext: true
|
582
667
|
});
|
583
|
-
export var
|
584
|
-
|
668
|
+
export var nestedExpandWithNoMarks = createPMNodeSpecFactory({
|
669
|
+
content: '(codeBlock | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | unsupportedBlock)+',
|
670
|
+
marks: 'unsupportedNodeAttribute unsupportedMark',
|
585
671
|
attrs: {
|
586
|
-
|
672
|
+
title: {
|
587
673
|
default: ''
|
588
674
|
},
|
589
|
-
|
590
|
-
default:
|
675
|
+
__expanded: {
|
676
|
+
default: true
|
677
|
+
}
|
678
|
+
},
|
679
|
+
selectable: true,
|
680
|
+
isolating: true
|
681
|
+
});
|
682
|
+
export var orderedList = createPMNodeSpecFactory({
|
683
|
+
content: 'listItem+',
|
684
|
+
marks: 'unsupportedNodeAttribute unsupportedMark',
|
685
|
+
group: 'block',
|
686
|
+
attrs: {
|
687
|
+
order: {
|
688
|
+
default: 1
|
689
|
+
}
|
690
|
+
},
|
691
|
+
selectable: false
|
692
|
+
});
|
693
|
+
export var panel = createPMNodeSpecFactory({
|
694
|
+
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | unsupportedBlock)+',
|
695
|
+
marks: 'unsupportedNodeAttribute unsupportedMark',
|
696
|
+
group: 'block',
|
697
|
+
attrs: {
|
698
|
+
panelType: {
|
699
|
+
default: 'info'
|
591
700
|
},
|
592
|
-
|
593
|
-
default:
|
701
|
+
panelIcon: {
|
702
|
+
default: null
|
594
703
|
},
|
595
|
-
|
704
|
+
panelIconId: {
|
705
|
+
default: null
|
706
|
+
},
|
707
|
+
panelIconText: {
|
708
|
+
default: null
|
709
|
+
},
|
710
|
+
panelColor: {
|
711
|
+
default: null
|
712
|
+
}
|
713
|
+
},
|
714
|
+
selectable: true
|
715
|
+
});
|
716
|
+
export var paragraph = createPMNodeSpecFactory({
|
717
|
+
content: 'inline*',
|
718
|
+
marks: 'link em strong strike subsup underline textColor annotation backgroundColor typeAheadQuery confluenceInlineComment unsupportedNodeAttribute unsupportedMark code dataConsumer fragment border',
|
719
|
+
group: 'block',
|
720
|
+
attrs: {
|
721
|
+
localId: {
|
722
|
+
default: null
|
723
|
+
}
|
724
|
+
},
|
725
|
+
selectable: false
|
726
|
+
});
|
727
|
+
export var paragraphWithAlignment = createPMNodeSpecFactory({
|
728
|
+
content: 'inline*',
|
729
|
+
marks: 'link em strong strike subsup underline textColor annotation backgroundColor typeAheadQuery confluenceInlineComment unsupportedNodeAttribute unsupportedMark code dataConsumer fragment border',
|
730
|
+
attrs: {
|
731
|
+
localId: {
|
732
|
+
default: null
|
733
|
+
}
|
734
|
+
},
|
735
|
+
selectable: false
|
736
|
+
});
|
737
|
+
export var paragraphWithMarks = createPMNodeSpecFactory({
|
738
|
+
content: 'inline*',
|
739
|
+
marks: 'link em strong strike subsup underline textColor annotation backgroundColor typeAheadQuery confluenceInlineComment unsupportedNodeAttribute unsupportedMark code dataConsumer fragment border',
|
740
|
+
group: 'block',
|
741
|
+
attrs: {
|
742
|
+
localId: {
|
743
|
+
default: null
|
744
|
+
}
|
745
|
+
},
|
746
|
+
selectable: false
|
747
|
+
});
|
748
|
+
export var paragraphWithNoMarks = createPMNodeSpecFactory({
|
749
|
+
content: 'inline*',
|
750
|
+
marks: 'link em strong strike subsup underline textColor annotation backgroundColor typeAheadQuery confluenceInlineComment unsupportedNodeAttribute unsupportedMark code dataConsumer fragment border',
|
751
|
+
attrs: {
|
752
|
+
localId: {
|
596
753
|
default: null
|
754
|
+
}
|
755
|
+
},
|
756
|
+
selectable: false
|
757
|
+
});
|
758
|
+
export var placeholder = createPMNodeSpecFactory({
|
759
|
+
marks: '',
|
760
|
+
group: 'inline',
|
761
|
+
inline: true,
|
762
|
+
attrs: {
|
763
|
+
text: {
|
764
|
+
default: ''
|
765
|
+
}
|
766
|
+
},
|
767
|
+
selectable: false
|
768
|
+
});
|
769
|
+
export var rule = createPMNodeSpecFactory({
|
770
|
+
group: 'block'
|
771
|
+
});
|
772
|
+
export var status = createPMNodeSpecFactory({
|
773
|
+
group: 'inline',
|
774
|
+
inline: true,
|
775
|
+
attrs: {
|
776
|
+
text: {
|
777
|
+
default: ''
|
778
|
+
},
|
779
|
+
color: {
|
780
|
+
default: ''
|
597
781
|
},
|
598
|
-
|
599
|
-
default:
|
782
|
+
localId: {
|
783
|
+
default: ''
|
784
|
+
},
|
785
|
+
style: {
|
786
|
+
default: ''
|
600
787
|
}
|
601
788
|
},
|
602
789
|
selectable: true
|
603
790
|
});
|
604
|
-
export var
|
605
|
-
content: '
|
791
|
+
export var table = createPMNodeSpecFactory({
|
792
|
+
content: 'tableRow+',
|
606
793
|
marks: 'unsupportedNodeAttribute unsupportedMark',
|
794
|
+
group: 'block',
|
607
795
|
attrs: {
|
608
|
-
|
796
|
+
displayMode: {
|
797
|
+
default: null
|
798
|
+
},
|
799
|
+
isNumberColumnEnabled: {
|
800
|
+
default: false
|
801
|
+
},
|
802
|
+
layout: {
|
803
|
+
default: 'default'
|
804
|
+
},
|
805
|
+
localId: {
|
609
806
|
default: ''
|
610
807
|
},
|
611
|
-
|
612
|
-
default:
|
808
|
+
width: {
|
809
|
+
default: null
|
810
|
+
},
|
811
|
+
__autoSize: {
|
812
|
+
default: false
|
613
813
|
}
|
614
814
|
},
|
615
815
|
selectable: true,
|
616
|
-
isolating: true
|
816
|
+
isolating: true,
|
817
|
+
tableRole: 'table'
|
617
818
|
});
|
618
819
|
export var tableCell = createPMNodeSpecFactory({
|
619
820
|
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | nestedExpand | unsupportedBlock)+',
|
@@ -663,227 +864,58 @@ export var tableRow = createPMNodeSpecFactory({
|
|
663
864
|
selectable: false,
|
664
865
|
tableRole: 'row'
|
665
866
|
});
|
666
|
-
export var
|
667
|
-
content: '
|
668
|
-
marks: '
|
669
|
-
group: 'block',
|
867
|
+
export var taskItem = createPMNodeSpecFactory({
|
868
|
+
content: 'inline*',
|
869
|
+
marks: '_',
|
670
870
|
attrs: {
|
671
|
-
displayMode: {
|
672
|
-
default: null
|
673
|
-
},
|
674
|
-
isNumberColumnEnabled: {
|
675
|
-
default: false
|
676
|
-
},
|
677
|
-
layout: {
|
678
|
-
default: 'default'
|
679
|
-
},
|
680
871
|
localId: {
|
681
872
|
default: ''
|
682
873
|
},
|
683
|
-
|
684
|
-
default:
|
685
|
-
},
|
686
|
-
__autoSize: {
|
687
|
-
default: false
|
688
|
-
}
|
689
|
-
},
|
690
|
-
selectable: true,
|
691
|
-
isolating: true,
|
692
|
-
tableRole: 'table'
|
693
|
-
});
|
694
|
-
export var expandWithNoMark = createPMNodeSpecFactory({
|
695
|
-
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | table | unsupportedBlock)+',
|
696
|
-
marks: 'unsupportedNodeAttribute unsupportedMark dataConsumer fragment',
|
697
|
-
group: 'block',
|
698
|
-
attrs: {
|
699
|
-
title: {
|
700
|
-
default: ''
|
701
|
-
},
|
702
|
-
__expanded: {
|
703
|
-
default: true
|
704
|
-
}
|
705
|
-
},
|
706
|
-
selectable: true,
|
707
|
-
isolating: true
|
708
|
-
});
|
709
|
-
export var bodiedExtensionWithMarks = createPMNodeSpecFactory({
|
710
|
-
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | table | unsupportedBlock)+',
|
711
|
-
marks: 'dataConsumer fragment',
|
712
|
-
group: 'block',
|
713
|
-
attrs: {
|
714
|
-
extensionKey: {
|
715
|
-
default: ''
|
716
|
-
},
|
717
|
-
extensionType: {
|
718
|
-
default: ''
|
719
|
-
},
|
720
|
-
parameters: {
|
721
|
-
default: null
|
722
|
-
},
|
723
|
-
text: {
|
724
|
-
default: null
|
725
|
-
},
|
726
|
-
layout: {
|
727
|
-
default: 'default'
|
728
|
-
},
|
729
|
-
localId: {
|
730
|
-
default: null
|
731
|
-
}
|
732
|
-
},
|
733
|
-
selectable: true,
|
734
|
-
defining: true,
|
735
|
-
isolating: true
|
736
|
-
});
|
737
|
-
export var confluenceUnsupportedBlock = createPMNodeSpecFactory({
|
738
|
-
group: 'block',
|
739
|
-
attrs: {
|
740
|
-
cxhtml: {
|
741
|
-
default: null
|
874
|
+
state: {
|
875
|
+
default: 'TODO'
|
742
876
|
}
|
743
|
-
}
|
744
|
-
});
|
745
|
-
export var layoutColumn = createPMNodeSpecFactory({
|
746
|
-
content: '(block | unsupportedBlock)+',
|
747
|
-
marks: 'unsupportedNodeAttribute unsupportedMark alignment indentation fragment dataConsumer',
|
748
|
-
attrs: {
|
749
|
-
width: {}
|
750
877
|
},
|
751
878
|
selectable: false,
|
752
|
-
|
879
|
+
defining: true
|
753
880
|
});
|
754
|
-
export var
|
755
|
-
content: '(
|
881
|
+
export var taskList = createPMNodeSpecFactory({
|
882
|
+
content: '(taskItem | unsupportedBlock)+ (taskItem | taskList | unsupportedBlock)*',
|
756
883
|
marks: 'unsupportedNodeAttribute unsupportedMark',
|
757
|
-
|
758
|
-
});
|
759
|
-
export var bodiedExtension = createPMNodeSpecFactory({
|
760
|
-
content: '(codeBlock | blockCard | paragraph | mediaSingle | taskList | bulletList | orderedList | heading | mediaGroup | decisionList | rule | panel | blockquote | extension | embedCard | table | unsupportedBlock)+',
|
761
|
-
marks: 'dataConsumer fragment',
|
884
|
+
group: 'block',
|
762
885
|
attrs: {
|
763
|
-
extensionKey: {
|
764
|
-
default: ''
|
765
|
-
},
|
766
|
-
extensionType: {
|
767
|
-
default: ''
|
768
|
-
},
|
769
|
-
parameters: {
|
770
|
-
default: null
|
771
|
-
},
|
772
|
-
text: {
|
773
|
-
default: null
|
774
|
-
},
|
775
|
-
layout: {
|
776
|
-
default: 'default'
|
777
|
-
},
|
778
886
|
localId: {
|
779
|
-
default:
|
780
|
-
}
|
781
|
-
},
|
782
|
-
selectable: true,
|
783
|
-
defining: true,
|
784
|
-
isolating: true
|
785
|
-
});
|
786
|
-
export var heading = createPMNodeSpecFactory({
|
787
|
-
content: 'inline*',
|
788
|
-
attrs: {
|
789
|
-
level: {
|
790
|
-
default: 1
|
887
|
+
default: ''
|
791
888
|
}
|
792
889
|
},
|
793
890
|
selectable: false,
|
794
891
|
defining: true
|
795
892
|
});
|
796
|
-
export var
|
797
|
-
|
798
|
-
marks: 'unsupportedMark unsupportedNodeAttribute',
|
799
|
-
attrs: {
|
800
|
-
language: {
|
801
|
-
default: null
|
802
|
-
},
|
803
|
-
uniqueId: {
|
804
|
-
default: null
|
805
|
-
}
|
806
|
-
},
|
807
|
-
code: true,
|
808
|
-
defining: true
|
893
|
+
export var text = createPMNodeSpecFactory({
|
894
|
+
group: 'inline'
|
809
895
|
});
|
810
|
-
export var
|
811
|
-
|
812
|
-
marks: 'link annotation border unsupportedNodeAttribute unsupportedMark',
|
813
|
-
atom: false,
|
814
|
-
attrs: {
|
815
|
-
width: {
|
816
|
-
default: null
|
817
|
-
},
|
818
|
-
layout: {
|
819
|
-
default: 'center'
|
820
|
-
},
|
821
|
-
widthType: {
|
822
|
-
default: null
|
823
|
-
}
|
824
|
-
},
|
825
|
-
selectable: true
|
896
|
+
export var textCodeInline = createPMNodeSpecFactory({
|
897
|
+
group: 'inline'
|
826
898
|
});
|
827
|
-
export var
|
899
|
+
export var textFormatted = createPMNodeSpecFactory({
|
900
|
+
group: 'inline'
|
901
|
+
});
|
902
|
+
export var unsupportedBlock = createPMNodeSpecFactory({
|
903
|
+
group: 'block',
|
828
904
|
atom: true,
|
829
905
|
attrs: {
|
830
|
-
|
831
|
-
default:
|
832
|
-
},
|
833
|
-
extensionType: {
|
834
|
-
default: ''
|
835
|
-
},
|
836
|
-
parameters: {
|
837
|
-
default: null
|
838
|
-
},
|
839
|
-
text: {
|
840
|
-
default: null
|
841
|
-
},
|
842
|
-
layout: {
|
843
|
-
default: 'default'
|
844
|
-
},
|
845
|
-
localId: {
|
846
|
-
default: null
|
906
|
+
originalValue: {
|
907
|
+
default: {}
|
847
908
|
}
|
848
909
|
},
|
849
910
|
selectable: true
|
850
911
|
});
|
851
|
-
export var
|
852
|
-
|
853
|
-
|
854
|
-
attrs: {},
|
855
|
-
selectable: false,
|
856
|
-
definingAsContext: false,
|
857
|
-
definingForContent: true,
|
858
|
-
isolating: true
|
859
|
-
});
|
860
|
-
export var multiBodiedExtension = createPMNodeSpecFactory({
|
861
|
-
content: 'extensionFrame+',
|
862
|
-
group: 'blockRootOnly',
|
912
|
+
export var unsupportedInline = createPMNodeSpecFactory({
|
913
|
+
group: 'inline',
|
914
|
+
inline: true,
|
863
915
|
attrs: {
|
864
|
-
|
865
|
-
default:
|
866
|
-
},
|
867
|
-
extensionType: {
|
868
|
-
default: ''
|
869
|
-
},
|
870
|
-
parameters: {
|
871
|
-
default: null
|
872
|
-
},
|
873
|
-
text: {
|
874
|
-
default: null
|
875
|
-
},
|
876
|
-
layout: {
|
877
|
-
default: 'default'
|
878
|
-
},
|
879
|
-
localId: {
|
880
|
-
default: null
|
916
|
+
originalValue: {
|
917
|
+
default: {}
|
881
918
|
}
|
882
919
|
},
|
883
|
-
selectable: true
|
884
|
-
definingAsContext: true
|
885
|
-
});
|
886
|
-
export var doc = createPMNodeSpecFactory({
|
887
|
-
content: '(block | layoutSection | blockRootOnly)+',
|
888
|
-
marks: 'unsupportedNodeAttribute unsupportedMark alignment indentation fragment dataConsumer breakout'
|
920
|
+
selectable: true
|
889
921
|
});
|