@atlaskit/adf-schema 44.5.0 → 44.6.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/next-schema/nodes/blockCard.js +7 -34
- package/dist/cjs/validator-schema/generated/validatorSpec.js +883 -883
- package/dist/es2019/next-schema/nodes/blockCard.js +7 -34
- package/dist/es2019/validator-schema/generated/validatorSpec.js +883 -883
- package/dist/esm/next-schema/nodes/blockCard.js +7 -34
- package/dist/esm/validator-schema/generated/validatorSpec.js +883 -883
- package/dist/json-schema/v1/full.json +1504 -1504
- package/dist/json-schema/v1/stage-0.json +1721 -1721
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +779 -779
- package/json-schema/v1/full.json +1504 -1504
- package/json-schema/v1/stage-0.json +1721 -1721
- package/package.json +2 -2
@@ -1,3 +1,55 @@
|
|
1
|
+
export const alignment = {
|
2
|
+
props: {
|
3
|
+
type: {
|
4
|
+
type: 'enum',
|
5
|
+
values: ['alignment']
|
6
|
+
},
|
7
|
+
attrs: {
|
8
|
+
props: {
|
9
|
+
align: {
|
10
|
+
type: 'enum',
|
11
|
+
values: ['center', 'end']
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
};
|
17
|
+
export const annotation = {
|
18
|
+
props: {
|
19
|
+
type: {
|
20
|
+
type: 'enum',
|
21
|
+
values: ['annotation']
|
22
|
+
},
|
23
|
+
attrs: {
|
24
|
+
props: {
|
25
|
+
id: {
|
26
|
+
type: 'string'
|
27
|
+
},
|
28
|
+
annotationType: {
|
29
|
+
type: 'enum',
|
30
|
+
values: ['inlineComment']
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
35
|
+
};
|
36
|
+
export const backgroundColor = {
|
37
|
+
props: {
|
38
|
+
type: {
|
39
|
+
type: 'enum',
|
40
|
+
values: ['backgroundColor']
|
41
|
+
},
|
42
|
+
attrs: {
|
43
|
+
props: {
|
44
|
+
color: {
|
45
|
+
pattern: '^#[0-9a-fA-F]{6}$',
|
46
|
+
type: 'string'
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
};
|
52
|
+
export const block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks'];
|
1
53
|
export const blockCard = {
|
2
54
|
props: {
|
3
55
|
type: {
|
@@ -63,15 +115,62 @@ export const blockCard = {
|
|
63
115
|
},
|
64
116
|
required: ['attrs']
|
65
117
|
};
|
66
|
-
export const
|
118
|
+
export const blockquote = {
|
67
119
|
props: {
|
68
120
|
type: {
|
69
121
|
type: 'enum',
|
70
|
-
values: ['
|
122
|
+
values: ['blockquote']
|
71
123
|
},
|
72
|
-
|
73
|
-
type: '
|
74
|
-
|
124
|
+
content: {
|
125
|
+
type: 'array',
|
126
|
+
items: [['paragraph_with_no_marks', 'orderedList', 'bulletList', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup']],
|
127
|
+
minItems: 1,
|
128
|
+
allowUnsupportedBlock: true
|
129
|
+
}
|
130
|
+
}
|
131
|
+
};
|
132
|
+
export const blockRootOnly = ['multiBodiedExtension'];
|
133
|
+
export const bodiedExtension = {
|
134
|
+
props: {
|
135
|
+
type: {
|
136
|
+
type: 'enum',
|
137
|
+
values: ['bodiedExtension']
|
138
|
+
},
|
139
|
+
attrs: {
|
140
|
+
props: {
|
141
|
+
extensionKey: {
|
142
|
+
minLength: 1,
|
143
|
+
type: 'string'
|
144
|
+
},
|
145
|
+
extensionType: {
|
146
|
+
minLength: 1,
|
147
|
+
type: 'string'
|
148
|
+
},
|
149
|
+
parameters: {
|
150
|
+
type: 'object',
|
151
|
+
optional: true
|
152
|
+
},
|
153
|
+
text: {
|
154
|
+
type: 'string',
|
155
|
+
optional: true
|
156
|
+
},
|
157
|
+
layout: {
|
158
|
+
type: 'enum',
|
159
|
+
values: ['wide', 'full-width', 'default'],
|
160
|
+
optional: true
|
161
|
+
},
|
162
|
+
localId: {
|
163
|
+
minLength: 1,
|
164
|
+
type: 'string',
|
165
|
+
optional: true
|
166
|
+
}
|
167
|
+
}
|
168
|
+
},
|
169
|
+
content: {
|
170
|
+
type: 'array',
|
171
|
+
items: ['non_nestable_block_content'],
|
172
|
+
minItems: 1,
|
173
|
+
allowUnsupportedBlock: true
|
75
174
|
},
|
76
175
|
marks: {
|
77
176
|
type: 'array',
|
@@ -80,6 +179,91 @@ export const text = {
|
|
80
179
|
}
|
81
180
|
}
|
82
181
|
};
|
182
|
+
export const bodiedExtension_with_marks = ['bodiedExtension', {
|
183
|
+
props: {
|
184
|
+
marks: {
|
185
|
+
type: 'array',
|
186
|
+
optional: true,
|
187
|
+
items: [['dataConsumer', 'fragment']]
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}];
|
191
|
+
export const border = {
|
192
|
+
props: {
|
193
|
+
type: {
|
194
|
+
type: 'enum',
|
195
|
+
values: ['border']
|
196
|
+
},
|
197
|
+
attrs: {
|
198
|
+
props: {
|
199
|
+
size: {
|
200
|
+
type: 'number',
|
201
|
+
minimum: 1,
|
202
|
+
maximum: 3
|
203
|
+
},
|
204
|
+
color: {
|
205
|
+
pattern: '^#[0-9a-fA-F]{8}$|^#[0-9a-fA-F]{6}$',
|
206
|
+
type: 'string'
|
207
|
+
}
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|
211
|
+
};
|
212
|
+
export const breakout = {
|
213
|
+
props: {
|
214
|
+
type: {
|
215
|
+
type: 'enum',
|
216
|
+
values: ['breakout']
|
217
|
+
},
|
218
|
+
attrs: {
|
219
|
+
props: {
|
220
|
+
mode: {
|
221
|
+
type: 'enum',
|
222
|
+
values: ['wide', 'full-width']
|
223
|
+
},
|
224
|
+
width: {
|
225
|
+
type: 'number',
|
226
|
+
optional: true
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}
|
230
|
+
}
|
231
|
+
};
|
232
|
+
export const bulletList = {
|
233
|
+
props: {
|
234
|
+
type: {
|
235
|
+
type: 'enum',
|
236
|
+
values: ['bulletList']
|
237
|
+
},
|
238
|
+
content: {
|
239
|
+
type: 'array',
|
240
|
+
items: [['listItem', 'listItem_with_nested_decision']],
|
241
|
+
minItems: 1
|
242
|
+
}
|
243
|
+
}
|
244
|
+
};
|
245
|
+
export const caption = {
|
246
|
+
props: {
|
247
|
+
type: {
|
248
|
+
type: 'enum',
|
249
|
+
values: ['caption']
|
250
|
+
},
|
251
|
+
content: {
|
252
|
+
type: 'array',
|
253
|
+
items: [['hardBreak', 'mention', 'emoji', 'date', 'placeholder', 'inlineCard', 'status', 'text_formatted', 'text_code_inline']],
|
254
|
+
optional: true,
|
255
|
+
allowUnsupportedInline: true
|
256
|
+
}
|
257
|
+
}
|
258
|
+
};
|
259
|
+
export const code = {
|
260
|
+
props: {
|
261
|
+
type: {
|
262
|
+
type: 'enum',
|
263
|
+
values: ['code']
|
264
|
+
}
|
265
|
+
}
|
266
|
+
};
|
83
267
|
export const codeBlock = {
|
84
268
|
props: {
|
85
269
|
type: {
|
@@ -136,245 +320,162 @@ export const codeBlock_with_no_marks = ['codeBlock', {
|
|
136
320
|
}
|
137
321
|
}
|
138
322
|
}];
|
139
|
-
export const
|
323
|
+
export const confluenceInlineComment = {
|
140
324
|
props: {
|
141
325
|
type: {
|
142
326
|
type: 'enum',
|
143
|
-
values: ['
|
327
|
+
values: ['confluenceInlineComment']
|
144
328
|
},
|
145
|
-
attrs:
|
329
|
+
attrs: {
|
146
330
|
props: {
|
147
|
-
|
148
|
-
type: '
|
149
|
-
minimum: 0,
|
150
|
-
maximum: 100,
|
151
|
-
optional: true
|
152
|
-
},
|
153
|
-
layout: {
|
154
|
-
type: 'enum',
|
155
|
-
values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
|
156
|
-
},
|
157
|
-
widthType: {
|
158
|
-
type: 'enum',
|
159
|
-
values: ['percentage'],
|
160
|
-
optional: true
|
331
|
+
reference: {
|
332
|
+
type: 'string'
|
161
333
|
}
|
162
334
|
}
|
163
|
-
}
|
335
|
+
}
|
336
|
+
}
|
337
|
+
};
|
338
|
+
export const dataConsumer = {
|
339
|
+
props: {
|
340
|
+
type: {
|
341
|
+
type: 'enum',
|
342
|
+
values: ['dataConsumer']
|
343
|
+
},
|
344
|
+
attrs: {
|
164
345
|
props: {
|
165
|
-
|
166
|
-
type: '
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
values: ['pixel']
|
172
|
-
},
|
173
|
-
layout: {
|
174
|
-
type: 'enum',
|
175
|
-
values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
|
346
|
+
sources: {
|
347
|
+
type: 'array',
|
348
|
+
items: [{
|
349
|
+
type: 'string'
|
350
|
+
}],
|
351
|
+
minItems: 1
|
176
352
|
}
|
177
353
|
}
|
178
|
-
}],
|
179
|
-
marks: {
|
180
|
-
type: 'array',
|
181
|
-
optional: true,
|
182
|
-
items: ['link']
|
183
354
|
}
|
184
355
|
}
|
185
356
|
};
|
186
|
-
export const
|
357
|
+
export const date = {
|
187
358
|
props: {
|
188
359
|
type: {
|
189
360
|
type: 'enum',
|
190
|
-
values: ['
|
361
|
+
values: ['date']
|
191
362
|
},
|
192
|
-
attrs:
|
363
|
+
attrs: {
|
193
364
|
props: {
|
194
|
-
|
195
|
-
type: 'enum',
|
196
|
-
values: ['link', 'file']
|
197
|
-
},
|
198
|
-
id: {
|
199
|
-
minLength: 1,
|
200
|
-
type: 'string'
|
201
|
-
},
|
202
|
-
alt: {
|
203
|
-
type: 'string',
|
204
|
-
optional: true
|
205
|
-
},
|
206
|
-
collection: {
|
207
|
-
type: 'string'
|
208
|
-
},
|
209
|
-
height: {
|
210
|
-
type: 'number',
|
211
|
-
optional: true
|
212
|
-
},
|
213
|
-
occurrenceKey: {
|
365
|
+
timestamp: {
|
214
366
|
minLength: 1,
|
215
|
-
type: 'string',
|
216
|
-
optional: true
|
217
|
-
},
|
218
|
-
width: {
|
219
|
-
type: 'number',
|
220
|
-
optional: true
|
221
|
-
}
|
222
|
-
}
|
223
|
-
}, {
|
224
|
-
props: {
|
225
|
-
type: {
|
226
|
-
type: 'enum',
|
227
|
-
values: ['external']
|
228
|
-
},
|
229
|
-
alt: {
|
230
|
-
type: 'string',
|
231
|
-
optional: true
|
232
|
-
},
|
233
|
-
height: {
|
234
|
-
type: 'number',
|
235
|
-
optional: true
|
236
|
-
},
|
237
|
-
width: {
|
238
|
-
type: 'number',
|
239
|
-
optional: true
|
240
|
-
},
|
241
|
-
url: {
|
242
367
|
type: 'string'
|
243
368
|
}
|
244
369
|
}
|
245
|
-
}
|
370
|
+
},
|
246
371
|
marks: {
|
247
372
|
type: 'array',
|
248
373
|
optional: true,
|
249
|
-
items: [
|
374
|
+
items: ['annotation']
|
250
375
|
}
|
251
|
-
}
|
252
|
-
required: ['attrs']
|
376
|
+
}
|
253
377
|
};
|
254
|
-
export const
|
378
|
+
export const decisionItem = {
|
255
379
|
props: {
|
256
380
|
type: {
|
257
381
|
type: 'enum',
|
258
|
-
values: ['
|
382
|
+
values: ['decisionItem']
|
259
383
|
},
|
260
384
|
attrs: {
|
261
385
|
props: {
|
262
|
-
|
263
|
-
type: 'string'
|
264
|
-
validatorFn: 'safeUrl'
|
265
|
-
},
|
266
|
-
title: {
|
267
|
-
type: 'string',
|
268
|
-
optional: true
|
269
|
-
},
|
270
|
-
id: {
|
271
|
-
type: 'string',
|
272
|
-
optional: true
|
273
|
-
},
|
274
|
-
collection: {
|
275
|
-
type: 'string',
|
276
|
-
optional: true
|
386
|
+
localId: {
|
387
|
+
type: 'string'
|
277
388
|
},
|
278
|
-
|
279
|
-
type: 'string'
|
280
|
-
optional: true
|
389
|
+
state: {
|
390
|
+
type: 'string'
|
281
391
|
}
|
282
392
|
}
|
393
|
+
},
|
394
|
+
content: {
|
395
|
+
type: 'array',
|
396
|
+
items: ['inline_content'],
|
397
|
+
optional: true,
|
398
|
+
allowUnsupportedInline: true
|
283
399
|
}
|
284
400
|
}
|
285
401
|
};
|
286
|
-
export const
|
402
|
+
export const decisionList = {
|
287
403
|
props: {
|
288
404
|
type: {
|
289
405
|
type: 'enum',
|
290
|
-
values: ['
|
406
|
+
values: ['decisionList']
|
291
407
|
},
|
292
408
|
attrs: {
|
293
409
|
props: {
|
294
|
-
|
410
|
+
localId: {
|
295
411
|
type: 'string'
|
296
|
-
},
|
297
|
-
annotationType: {
|
298
|
-
type: 'enum',
|
299
|
-
values: ['inlineComment']
|
300
412
|
}
|
301
413
|
}
|
414
|
+
},
|
415
|
+
content: {
|
416
|
+
type: 'array',
|
417
|
+
items: ['decisionItem'],
|
418
|
+
minItems: 1,
|
419
|
+
allowUnsupportedBlock: true
|
302
420
|
}
|
303
421
|
}
|
304
422
|
};
|
305
|
-
export const
|
423
|
+
export const doc = {
|
306
424
|
props: {
|
307
425
|
type: {
|
308
426
|
type: 'enum',
|
309
|
-
values: ['
|
427
|
+
values: ['doc']
|
310
428
|
},
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
pattern: '^#[0-9a-fA-F]{8}$|^#[0-9a-fA-F]{6}$',
|
320
|
-
type: 'string'
|
321
|
-
}
|
322
|
-
}
|
429
|
+
version: {
|
430
|
+
type: 'enum',
|
431
|
+
values: [1]
|
432
|
+
},
|
433
|
+
content: {
|
434
|
+
type: 'array',
|
435
|
+
items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks', 'codeBlock_with_marks', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_with_breakout_mark']],
|
436
|
+
allowUnsupportedBlock: true
|
323
437
|
}
|
324
438
|
}
|
325
439
|
};
|
326
|
-
export const
|
440
|
+
export const em = {
|
327
441
|
props: {
|
328
442
|
type: {
|
329
443
|
type: 'enum',
|
330
|
-
values: ['
|
331
|
-
},
|
332
|
-
attrs: {
|
333
|
-
props: {
|
334
|
-
text: {
|
335
|
-
type: 'enum',
|
336
|
-
values: ['\n'],
|
337
|
-
optional: true
|
338
|
-
}
|
339
|
-
},
|
340
|
-
optional: true
|
444
|
+
values: ['em']
|
341
445
|
}
|
342
446
|
}
|
343
447
|
};
|
344
|
-
export const
|
448
|
+
export const embedCard = {
|
345
449
|
props: {
|
346
450
|
type: {
|
347
451
|
type: 'enum',
|
348
|
-
values: ['
|
452
|
+
values: ['embedCard']
|
349
453
|
},
|
350
454
|
attrs: {
|
351
455
|
props: {
|
352
|
-
|
353
|
-
type: 'string'
|
354
|
-
},
|
355
|
-
localId: {
|
456
|
+
url: {
|
356
457
|
type: 'string',
|
357
|
-
|
458
|
+
validatorFn: 'safeUrl'
|
358
459
|
},
|
359
|
-
|
360
|
-
type: '
|
460
|
+
layout: {
|
461
|
+
type: 'enum',
|
462
|
+
values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
|
463
|
+
},
|
464
|
+
width: {
|
465
|
+
type: 'number',
|
466
|
+
maximum: 100,
|
467
|
+
minimum: 0,
|
361
468
|
optional: true
|
362
469
|
},
|
363
|
-
|
364
|
-
type: '
|
470
|
+
originalHeight: {
|
471
|
+
type: 'number',
|
365
472
|
optional: true
|
366
473
|
},
|
367
|
-
|
368
|
-
type: '
|
369
|
-
values: ['DEFAULT', 'SPECIAL', 'APP'],
|
474
|
+
originalWidth: {
|
475
|
+
type: 'number',
|
370
476
|
optional: true
|
371
477
|
}
|
372
478
|
}
|
373
|
-
},
|
374
|
-
marks: {
|
375
|
-
type: 'array',
|
376
|
-
optional: true,
|
377
|
-
items: ['annotation']
|
378
479
|
}
|
379
480
|
}
|
380
481
|
};
|
@@ -406,91 +507,83 @@ export const emoji = {
|
|
406
507
|
}
|
407
508
|
}
|
408
509
|
};
|
409
|
-
export const
|
510
|
+
export const expand = {
|
410
511
|
props: {
|
411
512
|
type: {
|
412
513
|
type: 'enum',
|
413
|
-
values: ['
|
514
|
+
values: ['expand']
|
414
515
|
},
|
415
516
|
attrs: {
|
416
517
|
props: {
|
417
|
-
|
418
|
-
|
419
|
-
|
518
|
+
title: {
|
519
|
+
type: 'string',
|
520
|
+
optional: true
|
420
521
|
}
|
421
522
|
}
|
422
523
|
},
|
524
|
+
content: {
|
525
|
+
type: 'array',
|
526
|
+
items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
527
|
+
minItems: 1,
|
528
|
+
allowUnsupportedBlock: true
|
529
|
+
},
|
423
530
|
marks: {
|
424
531
|
type: 'array',
|
425
|
-
|
426
|
-
|
532
|
+
items: [],
|
533
|
+
optional: true
|
427
534
|
}
|
428
535
|
}
|
429
536
|
};
|
430
|
-
export const
|
537
|
+
export const expand_with_breakout_mark = ['expand', {
|
431
538
|
props: {
|
432
|
-
|
433
|
-
type: '
|
434
|
-
|
435
|
-
|
436
|
-
attrs: {
|
437
|
-
props: {
|
438
|
-
text: {
|
439
|
-
type: 'string'
|
440
|
-
}
|
441
|
-
}
|
539
|
+
marks: {
|
540
|
+
type: 'array',
|
541
|
+
optional: true,
|
542
|
+
items: ['breakout']
|
442
543
|
}
|
443
544
|
}
|
444
|
-
};
|
445
|
-
export const
|
545
|
+
}];
|
546
|
+
export const expand_with_no_mark = ['expand', {
|
446
547
|
props: {
|
447
|
-
type: {
|
448
|
-
type: 'enum',
|
449
|
-
values: ['inlineCard']
|
450
|
-
},
|
451
|
-
attrs: [{
|
452
|
-
props: {
|
453
|
-
url: {
|
454
|
-
type: 'string',
|
455
|
-
validatorFn: 'safeUrl'
|
456
|
-
}
|
457
|
-
}
|
458
|
-
}, {
|
459
|
-
props: {
|
460
|
-
data: {
|
461
|
-
type: 'object'
|
462
|
-
}
|
463
|
-
}
|
464
|
-
}],
|
465
548
|
marks: {
|
466
|
-
|
467
|
-
|
468
|
-
|
549
|
+
type: 'array',
|
550
|
+
maxItems: 0,
|
551
|
+
items: [],
|
552
|
+
optional: true
|
469
553
|
}
|
470
|
-
}
|
471
|
-
|
472
|
-
|
473
|
-
export const status = {
|
554
|
+
}
|
555
|
+
}];
|
556
|
+
export const extension = {
|
474
557
|
props: {
|
475
558
|
type: {
|
476
559
|
type: 'enum',
|
477
|
-
values: ['
|
560
|
+
values: ['extension']
|
478
561
|
},
|
479
562
|
attrs: {
|
480
563
|
props: {
|
481
|
-
|
564
|
+
extensionKey: {
|
482
565
|
minLength: 1,
|
483
566
|
type: 'string'
|
484
567
|
},
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
},
|
489
|
-
|
568
|
+
extensionType: {
|
569
|
+
minLength: 1,
|
570
|
+
type: 'string'
|
571
|
+
},
|
572
|
+
parameters: {
|
573
|
+
type: 'object',
|
574
|
+
optional: true
|
575
|
+
},
|
576
|
+
text: {
|
490
577
|
type: 'string',
|
491
578
|
optional: true
|
492
579
|
},
|
493
|
-
|
580
|
+
layout: {
|
581
|
+
type: 'enum',
|
582
|
+
values: ['wide', 'full-width', 'default'],
|
583
|
+
optional: true
|
584
|
+
},
|
585
|
+
localId: {
|
586
|
+
minLength: 1,
|
494
587
|
type: 'string',
|
495
588
|
optional: true
|
496
589
|
}
|
@@ -498,189 +591,182 @@ export const status = {
|
|
498
591
|
},
|
499
592
|
marks: {
|
500
593
|
type: 'array',
|
501
|
-
|
502
|
-
|
594
|
+
items: [],
|
595
|
+
optional: true
|
503
596
|
}
|
504
597
|
}
|
505
598
|
};
|
506
|
-
export const
|
507
|
-
props: {
|
508
|
-
marks: {
|
509
|
-
type: 'array',
|
510
|
-
optional: true,
|
511
|
-
items: [['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'textColor', 'annotation', 'backgroundColor', null]]
|
512
|
-
}
|
513
|
-
}
|
514
|
-
}];
|
515
|
-
export const text_code_inline = ['text', {
|
599
|
+
export const extension_with_marks = ['extension', {
|
516
600
|
props: {
|
517
601
|
marks: {
|
518
602
|
type: 'array',
|
519
603
|
optional: true,
|
520
|
-
items: [['
|
604
|
+
items: [['dataConsumer', 'fragment']]
|
521
605
|
}
|
522
606
|
}
|
523
607
|
}];
|
524
|
-
export const
|
525
|
-
props: {
|
526
|
-
type: {
|
527
|
-
type: 'enum',
|
528
|
-
values: ['em']
|
529
|
-
}
|
530
|
-
}
|
531
|
-
};
|
532
|
-
export const strong = {
|
533
|
-
props: {
|
534
|
-
type: {
|
535
|
-
type: 'enum',
|
536
|
-
values: ['strong']
|
537
|
-
}
|
538
|
-
}
|
539
|
-
};
|
540
|
-
export const strike = {
|
541
|
-
props: {
|
542
|
-
type: {
|
543
|
-
type: 'enum',
|
544
|
-
values: ['strike']
|
545
|
-
}
|
546
|
-
}
|
547
|
-
};
|
548
|
-
export const subsup = {
|
608
|
+
export const extensionFrame = {
|
549
609
|
props: {
|
550
610
|
type: {
|
551
611
|
type: 'enum',
|
552
|
-
values: ['
|
612
|
+
values: ['extensionFrame']
|
553
613
|
},
|
554
|
-
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
};
|
564
|
-
export const underline = {
|
565
|
-
props: {
|
566
|
-
type: {
|
567
|
-
type: 'enum',
|
568
|
-
values: ['underline']
|
614
|
+
content: {
|
615
|
+
type: 'array',
|
616
|
+
items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_full', 'mediaSingle_caption', 'decisionList', 'taskList', 'table', 'extension_with_marks', 'bodiedExtension_with_marks', 'blockCard', 'embedCard']],
|
617
|
+
minItems: 1
|
618
|
+
},
|
619
|
+
marks: {
|
620
|
+
type: 'array',
|
621
|
+
optional: true,
|
622
|
+
items: [['dataConsumer', 'fragment']]
|
569
623
|
}
|
570
624
|
}
|
571
625
|
};
|
572
|
-
export const
|
626
|
+
export const fragment = {
|
573
627
|
props: {
|
574
628
|
type: {
|
575
629
|
type: 'enum',
|
576
|
-
values: ['
|
630
|
+
values: ['fragment']
|
577
631
|
},
|
578
632
|
attrs: {
|
579
633
|
props: {
|
580
|
-
|
634
|
+
localId: {
|
635
|
+
minLength: 1,
|
636
|
+
type: 'string'
|
637
|
+
},
|
638
|
+
name: {
|
581
639
|
type: 'string',
|
582
|
-
|
640
|
+
optional: true
|
583
641
|
}
|
584
642
|
}
|
585
643
|
}
|
586
644
|
}
|
587
645
|
};
|
588
|
-
export const
|
646
|
+
export const hardBreak = {
|
589
647
|
props: {
|
590
648
|
type: {
|
591
649
|
type: 'enum',
|
592
|
-
values: ['
|
650
|
+
values: ['hardBreak']
|
593
651
|
},
|
594
652
|
attrs: {
|
595
653
|
props: {
|
596
|
-
|
597
|
-
|
598
|
-
|
654
|
+
text: {
|
655
|
+
type: 'enum',
|
656
|
+
values: ['\n'],
|
657
|
+
optional: true
|
599
658
|
}
|
600
|
-
}
|
659
|
+
},
|
660
|
+
optional: true
|
601
661
|
}
|
602
662
|
}
|
603
663
|
};
|
604
|
-
export const
|
664
|
+
export const heading = {
|
605
665
|
props: {
|
606
666
|
type: {
|
607
667
|
type: 'enum',
|
608
|
-
values: ['
|
668
|
+
values: ['heading']
|
609
669
|
},
|
610
670
|
attrs: {
|
611
671
|
props: {
|
612
|
-
|
613
|
-
type: '
|
672
|
+
level: {
|
673
|
+
type: 'number',
|
674
|
+
minimum: 1,
|
675
|
+
maximum: 6
|
676
|
+
},
|
677
|
+
localId: {
|
678
|
+
type: 'string',
|
679
|
+
optional: true
|
614
680
|
}
|
615
681
|
}
|
616
|
-
}
|
617
|
-
}
|
618
|
-
};
|
619
|
-
export const code = {
|
620
|
-
props: {
|
621
|
-
type: {
|
622
|
-
type: 'enum',
|
623
|
-
values: ['code']
|
624
|
-
}
|
625
|
-
}
|
626
|
-
};
|
627
|
-
export const caption = {
|
628
|
-
props: {
|
629
|
-
type: {
|
630
|
-
type: 'enum',
|
631
|
-
values: ['caption']
|
632
682
|
},
|
633
683
|
content: {
|
634
684
|
type: 'array',
|
635
|
-
items: [
|
685
|
+
items: ['inline_content'],
|
636
686
|
optional: true,
|
637
687
|
allowUnsupportedInline: true
|
688
|
+
},
|
689
|
+
marks: {
|
690
|
+
type: 'array',
|
691
|
+
items: [],
|
692
|
+
optional: true
|
638
693
|
}
|
639
694
|
}
|
640
695
|
};
|
641
|
-
export const
|
696
|
+
export const heading_with_alignment = ['heading', {
|
642
697
|
props: {
|
643
|
-
|
698
|
+
marks: {
|
644
699
|
type: 'array',
|
645
|
-
|
646
|
-
items: ['
|
647
|
-
minItems: 1,
|
648
|
-
maxItems: 2,
|
649
|
-
allowUnsupportedBlock: true
|
700
|
+
optional: true,
|
701
|
+
items: ['alignment']
|
650
702
|
}
|
651
703
|
}
|
652
704
|
}];
|
653
|
-
export const
|
705
|
+
export const heading_with_indentation = ['heading', {
|
654
706
|
props: {
|
655
|
-
|
707
|
+
marks: {
|
656
708
|
type: 'array',
|
657
|
-
|
658
|
-
|
659
|
-
maxItems: 1,
|
660
|
-
allowUnsupportedBlock: true
|
709
|
+
optional: true,
|
710
|
+
items: ['indentation']
|
661
711
|
}
|
662
712
|
}
|
663
713
|
}];
|
664
|
-
export const
|
714
|
+
export const heading_with_no_marks = ['heading', {
|
665
715
|
props: {
|
666
|
-
|
716
|
+
marks: {
|
667
717
|
type: 'array',
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
allowUnsupportedBlock: true
|
718
|
+
maxItems: 0,
|
719
|
+
items: [],
|
720
|
+
optional: true
|
672
721
|
}
|
673
722
|
}
|
674
723
|
}];
|
675
|
-
export const
|
724
|
+
export const indentation = {
|
725
|
+
props: {
|
726
|
+
type: {
|
727
|
+
type: 'enum',
|
728
|
+
values: ['indentation']
|
729
|
+
},
|
730
|
+
attrs: {
|
731
|
+
props: {
|
732
|
+
level: {
|
733
|
+
type: 'number',
|
734
|
+
minimum: 1,
|
735
|
+
maximum: 6
|
736
|
+
}
|
737
|
+
}
|
738
|
+
}
|
739
|
+
}
|
740
|
+
};
|
741
|
+
export const inline_content = ['text_formatted', 'text_code_inline', 'date', 'emoji', 'hardBreak', 'inlineCard', 'mention', 'placeholder', 'status', 'inlineExtension_with_marks', 'mediaInline'];
|
742
|
+
export const inlineCard = {
|
676
743
|
props: {
|
744
|
+
type: {
|
745
|
+
type: 'enum',
|
746
|
+
values: ['inlineCard']
|
747
|
+
},
|
748
|
+
attrs: [{
|
749
|
+
props: {
|
750
|
+
url: {
|
751
|
+
type: 'string',
|
752
|
+
validatorFn: 'safeUrl'
|
753
|
+
}
|
754
|
+
}
|
755
|
+
}, {
|
756
|
+
props: {
|
757
|
+
data: {
|
758
|
+
type: 'object'
|
759
|
+
}
|
760
|
+
}
|
761
|
+
}],
|
677
762
|
marks: {
|
678
|
-
|
763
|
+
items: ['annotation'],
|
679
764
|
optional: true,
|
680
|
-
|
765
|
+
type: 'array'
|
681
766
|
}
|
682
|
-
}
|
683
|
-
|
767
|
+
},
|
768
|
+
required: ['attrs']
|
769
|
+
};
|
684
770
|
export const inlineExtension = {
|
685
771
|
props: {
|
686
772
|
type: {
|
@@ -728,200 +814,133 @@ export const inlineExtension_with_marks = ['inlineExtension', {
|
|
728
814
|
}
|
729
815
|
}
|
730
816
|
}];
|
731
|
-
export const
|
817
|
+
export const layoutColumn = {
|
732
818
|
props: {
|
733
819
|
type: {
|
734
820
|
type: 'enum',
|
735
|
-
values: ['
|
821
|
+
values: ['layoutColumn']
|
736
822
|
},
|
737
823
|
attrs: {
|
738
824
|
props: {
|
739
|
-
type: {
|
740
|
-
type: 'enum',
|
741
|
-
values: ['link', 'file', 'image'],
|
742
|
-
optional: true
|
743
|
-
},
|
744
|
-
id: {
|
745
|
-
minLength: 1,
|
746
|
-
type: 'string'
|
747
|
-
},
|
748
|
-
alt: {
|
749
|
-
type: 'string',
|
750
|
-
optional: true
|
751
|
-
},
|
752
|
-
collection: {
|
753
|
-
type: 'string'
|
754
|
-
},
|
755
|
-
occurrenceKey: {
|
756
|
-
minLength: 1,
|
757
|
-
type: 'string',
|
758
|
-
optional: true
|
759
|
-
},
|
760
825
|
width: {
|
761
826
|
type: 'number',
|
762
|
-
|
763
|
-
|
764
|
-
height: {
|
765
|
-
type: 'number',
|
766
|
-
optional: true
|
767
|
-
},
|
768
|
-
data: {
|
769
|
-
type: 'object',
|
770
|
-
optional: true
|
827
|
+
minimum: 0,
|
828
|
+
maximum: 100
|
771
829
|
}
|
772
830
|
}
|
773
831
|
},
|
774
|
-
|
832
|
+
content: {
|
775
833
|
type: 'array',
|
776
|
-
|
777
|
-
|
834
|
+
items: ['block_content'],
|
835
|
+
minItems: 1,
|
836
|
+
allowUnsupportedBlock: true
|
778
837
|
}
|
779
838
|
}
|
780
839
|
};
|
781
|
-
export const
|
782
|
-
export const paragraph = {
|
840
|
+
export const layoutSection = {
|
783
841
|
props: {
|
784
842
|
type: {
|
785
843
|
type: 'enum',
|
786
|
-
values: ['
|
787
|
-
},
|
788
|
-
attrs: {
|
789
|
-
props: {
|
790
|
-
localId: {
|
791
|
-
type: 'string',
|
792
|
-
optional: true
|
793
|
-
}
|
794
|
-
},
|
795
|
-
optional: true
|
844
|
+
values: ['layoutSection']
|
796
845
|
},
|
797
846
|
content: {
|
798
847
|
type: 'array',
|
799
|
-
items: ['
|
800
|
-
|
801
|
-
|
848
|
+
items: ['layoutColumn'],
|
849
|
+
minItems: 1,
|
850
|
+
maxItems: 3,
|
851
|
+
allowUnsupportedBlock: true
|
802
852
|
},
|
803
853
|
marks: {
|
804
854
|
type: 'array',
|
805
|
-
|
806
|
-
|
855
|
+
optional: true,
|
856
|
+
items: ['breakout']
|
807
857
|
}
|
808
858
|
}
|
809
859
|
};
|
810
|
-
export const
|
860
|
+
export const layoutSection_full = ['layoutSection', {
|
811
861
|
props: {
|
812
|
-
|
862
|
+
content: {
|
813
863
|
type: 'array',
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
}
|
819
|
-
export const paragraph_with_indentation = ['paragraph', {
|
820
|
-
props: {
|
864
|
+
items: ['layoutColumn'],
|
865
|
+
minItems: 2,
|
866
|
+
maxItems: 3,
|
867
|
+
allowUnsupportedBlock: true
|
868
|
+
},
|
821
869
|
marks: {
|
822
870
|
type: 'array',
|
823
871
|
optional: true,
|
824
|
-
items: ['
|
825
|
-
}
|
826
|
-
}
|
827
|
-
}];
|
828
|
-
export const paragraph_with_no_marks = ['paragraph', {
|
829
|
-
props: {
|
830
|
-
marks: {
|
831
|
-
type: 'array',
|
832
|
-
maxItems: 0,
|
833
|
-
items: [],
|
834
|
-
optional: true
|
872
|
+
items: ['breakout']
|
835
873
|
}
|
836
874
|
}
|
837
875
|
}];
|
838
|
-
export const
|
876
|
+
export const layoutSection_with_single_column = ['layoutSection', {
|
839
877
|
props: {
|
840
|
-
type: {
|
841
|
-
type: 'enum',
|
842
|
-
values: ['taskItem']
|
843
|
-
},
|
844
878
|
attrs: {
|
845
879
|
props: {
|
846
|
-
|
847
|
-
type: 'string'
|
848
|
-
},
|
849
|
-
state: {
|
880
|
+
columnRuleStyle: {
|
850
881
|
type: 'enum',
|
851
|
-
values: ['
|
852
|
-
|
853
|
-
}
|
854
|
-
},
|
855
|
-
content: {
|
856
|
-
type: 'array',
|
857
|
-
items: ['inline_content'],
|
858
|
-
optional: true,
|
859
|
-
allowUnsupportedInline: true
|
860
|
-
}
|
861
|
-
}
|
862
|
-
};
|
863
|
-
export const taskList = {
|
864
|
-
props: {
|
865
|
-
type: {
|
866
|
-
type: 'enum',
|
867
|
-
values: ['taskList']
|
868
|
-
},
|
869
|
-
attrs: {
|
870
|
-
props: {
|
871
|
-
localId: {
|
872
|
-
type: 'string'
|
882
|
+
values: ['solid'],
|
883
|
+
optional: true
|
873
884
|
}
|
874
|
-
}
|
885
|
+
},
|
886
|
+
optional: true
|
875
887
|
},
|
876
888
|
content: {
|
877
889
|
type: 'array',
|
878
|
-
|
879
|
-
items: ['taskItem', ['taskItem', 'taskList']],
|
890
|
+
items: ['layoutColumn'],
|
880
891
|
minItems: 1,
|
892
|
+
maxItems: 5,
|
881
893
|
allowUnsupportedBlock: true
|
894
|
+
},
|
895
|
+
marks: {
|
896
|
+
type: 'array',
|
897
|
+
optional: true,
|
898
|
+
items: ['breakout']
|
882
899
|
}
|
883
900
|
}
|
884
|
-
};
|
885
|
-
export const
|
901
|
+
}];
|
902
|
+
export const link = {
|
886
903
|
props: {
|
887
904
|
type: {
|
888
905
|
type: 'enum',
|
889
|
-
values: ['
|
906
|
+
values: ['link']
|
890
907
|
},
|
891
908
|
attrs: {
|
892
909
|
props: {
|
893
|
-
|
894
|
-
type: 'string'
|
910
|
+
href: {
|
911
|
+
type: 'string',
|
912
|
+
validatorFn: 'safeUrl'
|
895
913
|
},
|
896
|
-
|
897
|
-
type: 'string'
|
914
|
+
title: {
|
915
|
+
type: 'string',
|
916
|
+
optional: true
|
917
|
+
},
|
918
|
+
id: {
|
919
|
+
type: 'string',
|
920
|
+
optional: true
|
921
|
+
},
|
922
|
+
collection: {
|
923
|
+
type: 'string',
|
924
|
+
optional: true
|
925
|
+
},
|
926
|
+
occurrenceKey: {
|
927
|
+
type: 'string',
|
928
|
+
optional: true
|
898
929
|
}
|
899
930
|
}
|
900
|
-
},
|
901
|
-
content: {
|
902
|
-
type: 'array',
|
903
|
-
items: ['inline_content'],
|
904
|
-
optional: true,
|
905
|
-
allowUnsupportedInline: true
|
906
931
|
}
|
907
932
|
}
|
908
933
|
};
|
909
|
-
export const
|
934
|
+
export const listItem = {
|
910
935
|
props: {
|
911
936
|
type: {
|
912
937
|
type: 'enum',
|
913
|
-
values: ['
|
914
|
-
},
|
915
|
-
attrs: {
|
916
|
-
props: {
|
917
|
-
localId: {
|
918
|
-
type: 'string'
|
919
|
-
}
|
920
|
-
}
|
938
|
+
values: ['listItem']
|
921
939
|
},
|
922
940
|
content: {
|
923
941
|
type: 'array',
|
924
|
-
|
942
|
+
isTupleLike: true,
|
943
|
+
items: [['paragraph_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks'], ['paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks']],
|
925
944
|
minItems: 1,
|
926
945
|
allowUnsupportedBlock: true
|
927
946
|
}
|
@@ -938,134 +957,271 @@ export const listItem_with_nested_decision = ['listItem', {
|
|
938
957
|
}
|
939
958
|
}
|
940
959
|
}];
|
941
|
-
export const
|
960
|
+
export const media = {
|
942
961
|
props: {
|
943
962
|
type: {
|
944
963
|
type: 'enum',
|
945
|
-
values: ['
|
964
|
+
values: ['media']
|
946
965
|
},
|
947
|
-
|
966
|
+
attrs: [{
|
967
|
+
props: {
|
968
|
+
type: {
|
969
|
+
type: 'enum',
|
970
|
+
values: ['link', 'file']
|
971
|
+
},
|
972
|
+
id: {
|
973
|
+
minLength: 1,
|
974
|
+
type: 'string'
|
975
|
+
},
|
976
|
+
alt: {
|
977
|
+
type: 'string',
|
978
|
+
optional: true
|
979
|
+
},
|
980
|
+
collection: {
|
981
|
+
type: 'string'
|
982
|
+
},
|
983
|
+
height: {
|
984
|
+
type: 'number',
|
985
|
+
optional: true
|
986
|
+
},
|
987
|
+
occurrenceKey: {
|
988
|
+
minLength: 1,
|
989
|
+
type: 'string',
|
990
|
+
optional: true
|
991
|
+
},
|
992
|
+
width: {
|
993
|
+
type: 'number',
|
994
|
+
optional: true
|
995
|
+
}
|
996
|
+
}
|
997
|
+
}, {
|
998
|
+
props: {
|
999
|
+
type: {
|
1000
|
+
type: 'enum',
|
1001
|
+
values: ['external']
|
1002
|
+
},
|
1003
|
+
alt: {
|
1004
|
+
type: 'string',
|
1005
|
+
optional: true
|
1006
|
+
},
|
1007
|
+
height: {
|
1008
|
+
type: 'number',
|
1009
|
+
optional: true
|
1010
|
+
},
|
1011
|
+
width: {
|
1012
|
+
type: 'number',
|
1013
|
+
optional: true
|
1014
|
+
},
|
1015
|
+
url: {
|
1016
|
+
type: 'string'
|
1017
|
+
}
|
1018
|
+
}
|
1019
|
+
}],
|
1020
|
+
marks: {
|
948
1021
|
type: 'array',
|
949
|
-
|
950
|
-
|
1022
|
+
optional: true,
|
1023
|
+
items: [['link', 'annotation', 'border']]
|
951
1024
|
}
|
952
|
-
}
|
1025
|
+
},
|
1026
|
+
required: ['attrs']
|
953
1027
|
};
|
954
|
-
export const
|
1028
|
+
export const mediaGroup = {
|
955
1029
|
props: {
|
956
1030
|
type: {
|
957
1031
|
type: 'enum',
|
958
|
-
values: ['
|
1032
|
+
values: ['mediaGroup']
|
959
1033
|
},
|
960
1034
|
content: {
|
961
1035
|
type: 'array',
|
962
|
-
|
963
|
-
items: [['paragraph_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks'], ['paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks']],
|
1036
|
+
items: ['media'],
|
964
1037
|
minItems: 1,
|
965
1038
|
allowUnsupportedBlock: true
|
966
1039
|
}
|
967
1040
|
}
|
968
1041
|
};
|
969
|
-
export const
|
1042
|
+
export const mediaInline = {
|
970
1043
|
props: {
|
971
1044
|
type: {
|
972
1045
|
type: 'enum',
|
973
|
-
values: ['
|
1046
|
+
values: ['mediaInline']
|
974
1047
|
},
|
975
1048
|
attrs: {
|
976
1049
|
props: {
|
977
|
-
|
1050
|
+
type: {
|
1051
|
+
type: 'enum',
|
1052
|
+
values: ['link', 'file', 'image'],
|
1053
|
+
optional: true
|
1054
|
+
},
|
1055
|
+
id: {
|
1056
|
+
minLength: 1,
|
1057
|
+
type: 'string'
|
1058
|
+
},
|
1059
|
+
alt: {
|
1060
|
+
type: 'string',
|
1061
|
+
optional: true
|
1062
|
+
},
|
1063
|
+
collection: {
|
1064
|
+
type: 'string'
|
1065
|
+
},
|
1066
|
+
occurrenceKey: {
|
1067
|
+
minLength: 1,
|
1068
|
+
type: 'string',
|
1069
|
+
optional: true
|
1070
|
+
},
|
1071
|
+
width: {
|
978
1072
|
type: 'number',
|
979
|
-
|
1073
|
+
optional: true
|
1074
|
+
},
|
1075
|
+
height: {
|
1076
|
+
type: 'number',
|
1077
|
+
optional: true
|
1078
|
+
},
|
1079
|
+
data: {
|
1080
|
+
type: 'object',
|
980
1081
|
optional: true
|
981
1082
|
}
|
982
|
-
}
|
983
|
-
optional: true
|
1083
|
+
}
|
984
1084
|
},
|
985
|
-
|
1085
|
+
marks: {
|
986
1086
|
type: 'array',
|
987
|
-
|
988
|
-
|
1087
|
+
optional: true,
|
1088
|
+
items: [['link', 'annotation', 'border']]
|
989
1089
|
}
|
990
1090
|
}
|
991
1091
|
};
|
992
|
-
export const
|
1092
|
+
export const mediaSingle = {
|
993
1093
|
props: {
|
994
1094
|
type: {
|
995
1095
|
type: 'enum',
|
996
|
-
values: ['
|
1096
|
+
values: ['mediaSingle']
|
997
1097
|
},
|
1098
|
+
attrs: [{
|
1099
|
+
props: {
|
1100
|
+
width: {
|
1101
|
+
type: 'number',
|
1102
|
+
minimum: 0,
|
1103
|
+
maximum: 100,
|
1104
|
+
optional: true
|
1105
|
+
},
|
1106
|
+
layout: {
|
1107
|
+
type: 'enum',
|
1108
|
+
values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
|
1109
|
+
},
|
1110
|
+
widthType: {
|
1111
|
+
type: 'enum',
|
1112
|
+
values: ['percentage'],
|
1113
|
+
optional: true
|
1114
|
+
}
|
1115
|
+
}
|
1116
|
+
}, {
|
1117
|
+
props: {
|
1118
|
+
width: {
|
1119
|
+
type: 'number',
|
1120
|
+
minimum: 0
|
1121
|
+
},
|
1122
|
+
widthType: {
|
1123
|
+
type: 'enum',
|
1124
|
+
values: ['pixel']
|
1125
|
+
},
|
1126
|
+
layout: {
|
1127
|
+
type: 'enum',
|
1128
|
+
values: ['wide', 'full-width', 'center', 'wrap-right', 'wrap-left', 'align-end', 'align-start']
|
1129
|
+
}
|
1130
|
+
}
|
1131
|
+
}],
|
1132
|
+
marks: {
|
1133
|
+
type: 'array',
|
1134
|
+
optional: true,
|
1135
|
+
items: ['link']
|
1136
|
+
}
|
1137
|
+
}
|
1138
|
+
};
|
1139
|
+
export const mediaSingle_caption = ['mediaSingle', {
|
1140
|
+
props: {
|
1141
|
+
content: {
|
1142
|
+
type: 'array',
|
1143
|
+
isTupleLike: true,
|
1144
|
+
items: ['media', 'caption'],
|
1145
|
+
minItems: 1,
|
1146
|
+
maxItems: 2,
|
1147
|
+
allowUnsupportedBlock: true
|
1148
|
+
}
|
1149
|
+
}
|
1150
|
+
}];
|
1151
|
+
export const mediaSingle_full = ['mediaSingle', {
|
1152
|
+
props: {
|
998
1153
|
content: {
|
999
1154
|
type: 'array',
|
1000
1155
|
items: ['media'],
|
1001
1156
|
minItems: 1,
|
1157
|
+
maxItems: 1,
|
1002
1158
|
allowUnsupportedBlock: true
|
1003
1159
|
}
|
1004
1160
|
}
|
1005
|
-
};
|
1006
|
-
export const
|
1161
|
+
}];
|
1162
|
+
export const mediaSingle_width_type = ['mediaSingle', {
|
1007
1163
|
props: {
|
1008
|
-
type: {
|
1009
|
-
type: 'enum',
|
1010
|
-
values: ['blockquote']
|
1011
|
-
},
|
1012
1164
|
content: {
|
1013
1165
|
type: 'array',
|
1014
|
-
items: [
|
1166
|
+
items: ['media'],
|
1015
1167
|
minItems: 1,
|
1168
|
+
maxItems: 1,
|
1016
1169
|
allowUnsupportedBlock: true
|
1017
1170
|
}
|
1018
1171
|
}
|
1019
|
-
};
|
1020
|
-
export const
|
1172
|
+
}];
|
1173
|
+
export const mention = {
|
1021
1174
|
props: {
|
1022
1175
|
type: {
|
1023
1176
|
type: 'enum',
|
1024
|
-
values: ['
|
1177
|
+
values: ['mention']
|
1025
1178
|
},
|
1026
1179
|
attrs: {
|
1027
1180
|
props: {
|
1028
|
-
|
1029
|
-
type: 'string'
|
1030
|
-
validatorFn: 'safeUrl'
|
1181
|
+
id: {
|
1182
|
+
type: 'string'
|
1031
1183
|
},
|
1032
|
-
|
1033
|
-
type: '
|
1034
|
-
|
1184
|
+
localId: {
|
1185
|
+
type: 'string',
|
1186
|
+
optional: true
|
1035
1187
|
},
|
1036
|
-
|
1037
|
-
type: '
|
1038
|
-
maximum: 100,
|
1039
|
-
minimum: 0,
|
1188
|
+
text: {
|
1189
|
+
type: 'string',
|
1040
1190
|
optional: true
|
1041
1191
|
},
|
1042
|
-
|
1043
|
-
type: '
|
1192
|
+
accessLevel: {
|
1193
|
+
type: 'string',
|
1044
1194
|
optional: true
|
1045
1195
|
},
|
1046
|
-
|
1047
|
-
type: '
|
1196
|
+
userType: {
|
1197
|
+
type: 'enum',
|
1198
|
+
values: ['DEFAULT', 'SPECIAL', 'APP'],
|
1048
1199
|
optional: true
|
1049
1200
|
}
|
1050
1201
|
}
|
1202
|
+
},
|
1203
|
+
marks: {
|
1204
|
+
type: 'array',
|
1205
|
+
optional: true,
|
1206
|
+
items: ['annotation']
|
1051
1207
|
}
|
1052
1208
|
}
|
1053
1209
|
};
|
1054
|
-
export const
|
1210
|
+
export const multiBodiedExtension = {
|
1055
1211
|
props: {
|
1056
1212
|
type: {
|
1057
1213
|
type: 'enum',
|
1058
|
-
values: ['
|
1214
|
+
values: ['multiBodiedExtension']
|
1059
1215
|
},
|
1060
1216
|
attrs: {
|
1061
1217
|
props: {
|
1062
1218
|
extensionKey: {
|
1063
|
-
|
1064
|
-
|
1219
|
+
type: 'string',
|
1220
|
+
minLength: 1
|
1065
1221
|
},
|
1066
1222
|
extensionType: {
|
1067
|
-
|
1068
|
-
|
1223
|
+
type: 'string',
|
1224
|
+
minLength: 1
|
1069
1225
|
},
|
1070
1226
|
parameters: {
|
1071
1227
|
type: 'object',
|
@@ -1077,16 +1233,20 @@ export const extension = {
|
|
1077
1233
|
},
|
1078
1234
|
layout: {
|
1079
1235
|
type: 'enum',
|
1080
|
-
values: ['wide', 'full-width'
|
1236
|
+
values: ['default', 'wide', 'full-width'],
|
1081
1237
|
optional: true
|
1082
1238
|
},
|
1083
1239
|
localId: {
|
1084
|
-
minLength: 1,
|
1085
1240
|
type: 'string',
|
1086
|
-
optional: true
|
1241
|
+
optional: true,
|
1242
|
+
minLength: 1
|
1087
1243
|
}
|
1088
1244
|
}
|
1089
1245
|
},
|
1246
|
+
content: {
|
1247
|
+
type: 'array',
|
1248
|
+
items: ['extensionFrame']
|
1249
|
+
},
|
1090
1250
|
marks: {
|
1091
1251
|
type: 'array',
|
1092
1252
|
items: [],
|
@@ -1094,57 +1254,31 @@ export const extension = {
|
|
1094
1254
|
}
|
1095
1255
|
}
|
1096
1256
|
};
|
1097
|
-
export const
|
1098
|
-
props: {
|
1099
|
-
marks: {
|
1100
|
-
type: 'array',
|
1101
|
-
optional: true,
|
1102
|
-
items: [['dataConsumer', 'fragment']]
|
1103
|
-
}
|
1104
|
-
}
|
1105
|
-
}];
|
1106
|
-
export const heading = {
|
1257
|
+
export const nestedExpand = {
|
1107
1258
|
props: {
|
1108
1259
|
type: {
|
1109
1260
|
type: 'enum',
|
1110
|
-
values: ['
|
1261
|
+
values: ['nestedExpand']
|
1111
1262
|
},
|
1112
1263
|
attrs: {
|
1113
1264
|
props: {
|
1114
|
-
|
1115
|
-
type: 'number',
|
1116
|
-
minimum: 1,
|
1117
|
-
maximum: 6
|
1118
|
-
},
|
1119
|
-
localId: {
|
1265
|
+
title: {
|
1120
1266
|
type: 'string',
|
1121
1267
|
optional: true
|
1122
1268
|
}
|
1123
1269
|
}
|
1124
1270
|
},
|
1125
|
-
content:
|
1126
|
-
|
1127
|
-
|
1128
|
-
optional: true,
|
1129
|
-
allowUnsupportedInline: true
|
1130
|
-
},
|
1131
|
-
marks: {
|
1132
|
-
type: 'array',
|
1133
|
-
items: [],
|
1134
|
-
optional: true
|
1135
|
-
}
|
1136
|
-
}
|
1271
|
+
content: 'nestedExpand_content'
|
1272
|
+
},
|
1273
|
+
required: ['content']
|
1137
1274
|
};
|
1138
|
-
export const
|
1139
|
-
|
1140
|
-
|
1141
|
-
|
1142
|
-
|
1143
|
-
|
1144
|
-
|
1145
|
-
}
|
1146
|
-
}];
|
1147
|
-
export const heading_with_no_marks = ['heading', {
|
1275
|
+
export const nestedExpand_content = {
|
1276
|
+
type: 'array',
|
1277
|
+
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote']],
|
1278
|
+
minItems: 1,
|
1279
|
+
allowUnsupportedBlock: true
|
1280
|
+
};
|
1281
|
+
export const nestedExpand_with_no_marks = ['nestedExpand', {
|
1148
1282
|
props: {
|
1149
1283
|
marks: {
|
1150
1284
|
type: 'array',
|
@@ -1154,20 +1288,27 @@ export const heading_with_no_marks = ['heading', {
|
|
1154
1288
|
}
|
1155
1289
|
}
|
1156
1290
|
}];
|
1157
|
-
export const
|
1158
|
-
|
1159
|
-
marks: {
|
1160
|
-
type: 'array',
|
1161
|
-
optional: true,
|
1162
|
-
items: ['alignment']
|
1163
|
-
}
|
1164
|
-
}
|
1165
|
-
}];
|
1166
|
-
export const rule = {
|
1291
|
+
export const non_nestable_block_content = ['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks'];
|
1292
|
+
export const orderedList = {
|
1167
1293
|
props: {
|
1168
1294
|
type: {
|
1169
1295
|
type: 'enum',
|
1170
|
-
values: ['
|
1296
|
+
values: ['orderedList']
|
1297
|
+
},
|
1298
|
+
attrs: {
|
1299
|
+
props: {
|
1300
|
+
order: {
|
1301
|
+
type: 'number',
|
1302
|
+
minimum: 0,
|
1303
|
+
optional: true
|
1304
|
+
}
|
1305
|
+
},
|
1306
|
+
optional: true
|
1307
|
+
},
|
1308
|
+
content: {
|
1309
|
+
type: 'array',
|
1310
|
+
items: [['listItem', 'listItem_with_nested_decision']],
|
1311
|
+
minItems: 1
|
1171
1312
|
}
|
1172
1313
|
}
|
1173
1314
|
};
|
@@ -1219,198 +1360,147 @@ export const panel_with_nested_blockquote = ['panel', {
|
|
1219
1360
|
}
|
1220
1361
|
}
|
1221
1362
|
}];
|
1222
|
-
export const
|
1223
|
-
type: 'array',
|
1224
|
-
items: [['paragraph_with_no_marks', 'heading_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'codeBlock_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'decisionList', 'rule', 'panel', 'blockquote']],
|
1225
|
-
minItems: 1,
|
1226
|
-
allowUnsupportedBlock: true
|
1227
|
-
};
|
1228
|
-
export const nestedExpand_with_no_marks = ['nestedExpand', {
|
1363
|
+
export const paragraph = {
|
1229
1364
|
props: {
|
1365
|
+
type: {
|
1366
|
+
type: 'enum',
|
1367
|
+
values: ['paragraph']
|
1368
|
+
},
|
1369
|
+
attrs: {
|
1370
|
+
props: {
|
1371
|
+
localId: {
|
1372
|
+
type: 'string',
|
1373
|
+
optional: true
|
1374
|
+
}
|
1375
|
+
},
|
1376
|
+
optional: true
|
1377
|
+
},
|
1378
|
+
content: {
|
1379
|
+
type: 'array',
|
1380
|
+
items: ['inline_content'],
|
1381
|
+
optional: true,
|
1382
|
+
allowUnsupportedInline: true
|
1383
|
+
},
|
1230
1384
|
marks: {
|
1231
1385
|
type: 'array',
|
1232
|
-
maxItems: 0,
|
1233
1386
|
items: [],
|
1234
1387
|
optional: true
|
1235
1388
|
}
|
1236
1389
|
}
|
1390
|
+
};
|
1391
|
+
export const paragraph_with_alignment = ['paragraph', {
|
1392
|
+
props: {
|
1393
|
+
marks: {
|
1394
|
+
type: 'array',
|
1395
|
+
optional: true,
|
1396
|
+
items: ['alignment']
|
1397
|
+
}
|
1398
|
+
}
|
1237
1399
|
}];
|
1238
|
-
export const
|
1400
|
+
export const paragraph_with_indentation = ['paragraph', {
|
1239
1401
|
props: {
|
1240
|
-
|
1241
|
-
type: '
|
1242
|
-
|
1243
|
-
|
1244
|
-
attrs: {
|
1245
|
-
props: {
|
1246
|
-
align: {
|
1247
|
-
type: 'enum',
|
1248
|
-
values: ['center', 'end']
|
1249
|
-
}
|
1250
|
-
}
|
1402
|
+
marks: {
|
1403
|
+
type: 'array',
|
1404
|
+
optional: true,
|
1405
|
+
items: ['indentation']
|
1251
1406
|
}
|
1252
1407
|
}
|
1253
|
-
};
|
1254
|
-
export const
|
1408
|
+
}];
|
1409
|
+
export const paragraph_with_no_marks = ['paragraph', {
|
1255
1410
|
props: {
|
1256
|
-
|
1257
|
-
type: '
|
1258
|
-
|
1259
|
-
|
1260
|
-
|
1261
|
-
props: {
|
1262
|
-
level: {
|
1263
|
-
type: 'number',
|
1264
|
-
minimum: 1,
|
1265
|
-
maximum: 6
|
1266
|
-
}
|
1267
|
-
}
|
1411
|
+
marks: {
|
1412
|
+
type: 'array',
|
1413
|
+
maxItems: 0,
|
1414
|
+
items: [],
|
1415
|
+
optional: true
|
1268
1416
|
}
|
1269
1417
|
}
|
1270
|
-
};
|
1271
|
-
export const
|
1418
|
+
}];
|
1419
|
+
export const placeholder = {
|
1272
1420
|
props: {
|
1273
1421
|
type: {
|
1274
1422
|
type: 'enum',
|
1275
|
-
values: ['
|
1423
|
+
values: ['placeholder']
|
1276
1424
|
},
|
1277
1425
|
attrs: {
|
1278
1426
|
props: {
|
1279
|
-
|
1280
|
-
type: '
|
1281
|
-
items: [{
|
1282
|
-
type: 'string'
|
1283
|
-
}],
|
1284
|
-
minItems: 1
|
1427
|
+
text: {
|
1428
|
+
type: 'string'
|
1285
1429
|
}
|
1286
1430
|
}
|
1287
1431
|
}
|
1288
1432
|
}
|
1289
1433
|
};
|
1290
|
-
export const
|
1434
|
+
export const rule = {
|
1291
1435
|
props: {
|
1292
1436
|
type: {
|
1293
1437
|
type: 'enum',
|
1294
|
-
values: ['
|
1295
|
-
},
|
1296
|
-
attrs: {
|
1297
|
-
props: {
|
1298
|
-
localId: {
|
1299
|
-
minLength: 1,
|
1300
|
-
type: 'string'
|
1301
|
-
},
|
1302
|
-
name: {
|
1303
|
-
type: 'string',
|
1304
|
-
optional: true
|
1305
|
-
}
|
1306
|
-
}
|
1438
|
+
values: ['rule']
|
1307
1439
|
}
|
1308
1440
|
}
|
1309
1441
|
};
|
1310
|
-
export const
|
1442
|
+
export const status = {
|
1311
1443
|
props: {
|
1312
1444
|
type: {
|
1313
1445
|
type: 'enum',
|
1314
|
-
values: ['
|
1446
|
+
values: ['status']
|
1315
1447
|
},
|
1316
1448
|
attrs: {
|
1317
1449
|
props: {
|
1318
|
-
|
1319
|
-
|
1320
|
-
|
1450
|
+
text: {
|
1451
|
+
minLength: 1,
|
1452
|
+
type: 'string'
|
1321
1453
|
},
|
1322
|
-
|
1323
|
-
type: '
|
1324
|
-
|
1454
|
+
color: {
|
1455
|
+
type: 'enum',
|
1456
|
+
values: ['neutral', 'purple', 'blue', 'red', 'yellow', 'green']
|
1325
1457
|
},
|
1326
|
-
|
1327
|
-
type: '
|
1328
|
-
items: [{
|
1329
|
-
type: 'number'
|
1330
|
-
}],
|
1458
|
+
localId: {
|
1459
|
+
type: 'string',
|
1331
1460
|
optional: true
|
1332
1461
|
},
|
1333
|
-
|
1462
|
+
style: {
|
1334
1463
|
type: 'string',
|
1335
1464
|
optional: true
|
1336
1465
|
}
|
1337
|
-
}
|
1338
|
-
optional: true
|
1466
|
+
}
|
1339
1467
|
},
|
1340
|
-
|
1468
|
+
marks: {
|
1341
1469
|
type: 'array',
|
1342
|
-
|
1343
|
-
|
1344
|
-
allowUnsupportedBlock: true
|
1470
|
+
optional: true,
|
1471
|
+
items: ['annotation']
|
1345
1472
|
}
|
1346
|
-
}
|
1347
|
-
required: ['content']
|
1473
|
+
}
|
1348
1474
|
};
|
1349
|
-
export const
|
1475
|
+
export const strike = {
|
1350
1476
|
props: {
|
1351
1477
|
type: {
|
1352
1478
|
type: 'enum',
|
1353
|
-
values: ['
|
1354
|
-
}
|
1355
|
-
|
1356
|
-
props: {
|
1357
|
-
title: {
|
1358
|
-
type: 'string',
|
1359
|
-
optional: true
|
1360
|
-
}
|
1361
|
-
}
|
1362
|
-
},
|
1363
|
-
content: 'nestedExpand_content'
|
1364
|
-
},
|
1365
|
-
required: ['content']
|
1479
|
+
values: ['strike']
|
1480
|
+
}
|
1481
|
+
}
|
1366
1482
|
};
|
1367
|
-
export const
|
1483
|
+
export const strong = {
|
1368
1484
|
props: {
|
1369
1485
|
type: {
|
1370
1486
|
type: 'enum',
|
1371
|
-
values: ['
|
1372
|
-
},
|
1373
|
-
attrs: {
|
1374
|
-
props: {
|
1375
|
-
colspan: {
|
1376
|
-
type: 'number',
|
1377
|
-
optional: true
|
1378
|
-
},
|
1379
|
-
rowspan: {
|
1380
|
-
type: 'number',
|
1381
|
-
optional: true
|
1382
|
-
},
|
1383
|
-
colwidth: {
|
1384
|
-
type: 'array',
|
1385
|
-
items: [{
|
1386
|
-
type: 'number'
|
1387
|
-
}],
|
1388
|
-
optional: true
|
1389
|
-
},
|
1390
|
-
background: {
|
1391
|
-
type: 'string',
|
1392
|
-
optional: true
|
1393
|
-
}
|
1394
|
-
},
|
1395
|
-
optional: true
|
1396
|
-
},
|
1397
|
-
content: {
|
1398
|
-
type: 'array',
|
1399
|
-
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
|
1400
|
-
minItems: 1
|
1487
|
+
values: ['strong']
|
1401
1488
|
}
|
1402
|
-
}
|
1403
|
-
required: ['content']
|
1489
|
+
}
|
1404
1490
|
};
|
1405
|
-
export const
|
1491
|
+
export const subsup = {
|
1406
1492
|
props: {
|
1407
1493
|
type: {
|
1408
1494
|
type: 'enum',
|
1409
|
-
values: ['
|
1495
|
+
values: ['subsup']
|
1410
1496
|
},
|
1411
|
-
|
1412
|
-
|
1413
|
-
|
1497
|
+
attrs: {
|
1498
|
+
props: {
|
1499
|
+
type: {
|
1500
|
+
type: 'enum',
|
1501
|
+
values: ['sub', 'sup']
|
1502
|
+
}
|
1503
|
+
}
|
1414
1504
|
}
|
1415
1505
|
}
|
1416
1506
|
};
|
@@ -1460,297 +1550,207 @@ export const table = {
|
|
1460
1550
|
}
|
1461
1551
|
}
|
1462
1552
|
};
|
1463
|
-
export const
|
1464
|
-
|
1553
|
+
export const tableCell = {
|
1554
|
+
props: {
|
1555
|
+
type: {
|
1556
|
+
type: 'enum',
|
1557
|
+
values: ['tableCell']
|
1558
|
+
},
|
1559
|
+
attrs: {
|
1560
|
+
props: {
|
1561
|
+
colspan: {
|
1562
|
+
type: 'number',
|
1563
|
+
optional: true
|
1564
|
+
},
|
1565
|
+
rowspan: {
|
1566
|
+
type: 'number',
|
1567
|
+
optional: true
|
1568
|
+
},
|
1569
|
+
colwidth: {
|
1570
|
+
type: 'array',
|
1571
|
+
items: [{
|
1572
|
+
type: 'number'
|
1573
|
+
}],
|
1574
|
+
optional: true
|
1575
|
+
},
|
1576
|
+
background: {
|
1577
|
+
type: 'string',
|
1578
|
+
optional: true
|
1579
|
+
}
|
1580
|
+
},
|
1581
|
+
optional: true
|
1582
|
+
},
|
1583
|
+
content: {
|
1584
|
+
type: 'array',
|
1585
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
1586
|
+
minItems: 1,
|
1587
|
+
allowUnsupportedBlock: true
|
1588
|
+
}
|
1589
|
+
},
|
1590
|
+
required: ['content']
|
1591
|
+
};
|
1592
|
+
export const tableHeader = {
|
1465
1593
|
props: {
|
1466
1594
|
type: {
|
1467
1595
|
type: 'enum',
|
1468
|
-
values: ['
|
1596
|
+
values: ['tableHeader']
|
1469
1597
|
},
|
1470
1598
|
attrs: {
|
1471
1599
|
props: {
|
1472
|
-
|
1473
|
-
|
1474
|
-
type: 'string'
|
1475
|
-
},
|
1476
|
-
extensionType: {
|
1477
|
-
minLength: 1,
|
1478
|
-
type: 'string'
|
1479
|
-
},
|
1480
|
-
parameters: {
|
1481
|
-
type: 'object',
|
1600
|
+
colspan: {
|
1601
|
+
type: 'number',
|
1482
1602
|
optional: true
|
1483
1603
|
},
|
1484
|
-
|
1485
|
-
type: '
|
1604
|
+
rowspan: {
|
1605
|
+
type: 'number',
|
1486
1606
|
optional: true
|
1487
1607
|
},
|
1488
|
-
|
1489
|
-
type: '
|
1490
|
-
|
1608
|
+
colwidth: {
|
1609
|
+
type: 'array',
|
1610
|
+
items: [{
|
1611
|
+
type: 'number'
|
1612
|
+
}],
|
1491
1613
|
optional: true
|
1492
1614
|
},
|
1493
|
-
|
1494
|
-
minLength: 1,
|
1615
|
+
background: {
|
1495
1616
|
type: 'string',
|
1496
1617
|
optional: true
|
1497
1618
|
}
|
1498
|
-
}
|
1619
|
+
},
|
1620
|
+
optional: true
|
1499
1621
|
},
|
1500
1622
|
content: {
|
1501
1623
|
type: 'array',
|
1502
|
-
items: ['
|
1503
|
-
minItems: 1
|
1504
|
-
allowUnsupportedBlock: true
|
1505
|
-
},
|
1506
|
-
marks: {
|
1507
|
-
type: 'array',
|
1508
|
-
items: [],
|
1509
|
-
optional: true
|
1624
|
+
items: [['paragraph_with_no_marks', 'paragraph_with_alignment', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'codeBlock_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'mediaGroup', 'decisionList', 'taskList', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks', 'nestedExpand']],
|
1625
|
+
minItems: 1
|
1510
1626
|
}
|
1511
|
-
}
|
1627
|
+
},
|
1628
|
+
required: ['content']
|
1512
1629
|
};
|
1513
|
-
export const
|
1630
|
+
export const tableRow = {
|
1514
1631
|
props: {
|
1515
|
-
|
1632
|
+
type: {
|
1633
|
+
type: 'enum',
|
1634
|
+
values: ['tableRow']
|
1635
|
+
},
|
1636
|
+
content: {
|
1516
1637
|
type: 'array',
|
1517
|
-
|
1518
|
-
items: [['dataConsumer', 'fragment']]
|
1638
|
+
items: [['tableCell', 'tableHeader']]
|
1519
1639
|
}
|
1520
1640
|
}
|
1521
|
-
}
|
1522
|
-
export const
|
1641
|
+
};
|
1642
|
+
export const taskItem = {
|
1523
1643
|
props: {
|
1524
1644
|
type: {
|
1525
1645
|
type: 'enum',
|
1526
|
-
values: ['
|
1646
|
+
values: ['taskItem']
|
1527
1647
|
},
|
1528
1648
|
attrs: {
|
1529
1649
|
props: {
|
1530
|
-
|
1531
|
-
type: 'string'
|
1532
|
-
|
1650
|
+
localId: {
|
1651
|
+
type: 'string'
|
1652
|
+
},
|
1653
|
+
state: {
|
1654
|
+
type: 'enum',
|
1655
|
+
values: ['TODO', 'DONE']
|
1533
1656
|
}
|
1534
1657
|
}
|
1535
1658
|
},
|
1536
1659
|
content: {
|
1537
1660
|
type: 'array',
|
1538
|
-
items: [
|
1539
|
-
minItems: 1,
|
1540
|
-
allowUnsupportedBlock: true
|
1541
|
-
},
|
1542
|
-
marks: {
|
1543
|
-
type: 'array',
|
1544
|
-
items: [],
|
1545
|
-
optional: true
|
1546
|
-
}
|
1547
|
-
}
|
1548
|
-
};
|
1549
|
-
export const expand_with_no_mark = ['expand', {
|
1550
|
-
props: {
|
1551
|
-
marks: {
|
1552
|
-
type: 'array',
|
1553
|
-
maxItems: 0,
|
1554
|
-
items: [],
|
1555
|
-
optional: true
|
1556
|
-
}
|
1557
|
-
}
|
1558
|
-
}];
|
1559
|
-
export const expand_with_breakout_mark = ['expand', {
|
1560
|
-
props: {
|
1561
|
-
marks: {
|
1562
|
-
type: 'array',
|
1661
|
+
items: ['inline_content'],
|
1563
1662
|
optional: true,
|
1564
|
-
|
1663
|
+
allowUnsupportedInline: true
|
1565
1664
|
}
|
1566
1665
|
}
|
1567
|
-
}
|
1568
|
-
export const
|
1569
|
-
export const layoutColumn = {
|
1666
|
+
};
|
1667
|
+
export const taskList = {
|
1570
1668
|
props: {
|
1571
1669
|
type: {
|
1572
1670
|
type: 'enum',
|
1573
|
-
values: ['
|
1671
|
+
values: ['taskList']
|
1574
1672
|
},
|
1575
1673
|
attrs: {
|
1576
1674
|
props: {
|
1577
|
-
|
1578
|
-
type: '
|
1579
|
-
minimum: 0,
|
1580
|
-
maximum: 100
|
1675
|
+
localId: {
|
1676
|
+
type: 'string'
|
1581
1677
|
}
|
1582
1678
|
}
|
1583
1679
|
},
|
1584
1680
|
content: {
|
1585
1681
|
type: 'array',
|
1586
|
-
|
1682
|
+
isTupleLike: true,
|
1683
|
+
items: ['taskItem', ['taskItem', 'taskList']],
|
1587
1684
|
minItems: 1,
|
1588
1685
|
allowUnsupportedBlock: true
|
1589
1686
|
}
|
1590
1687
|
}
|
1591
1688
|
};
|
1592
|
-
export const
|
1689
|
+
export const text = {
|
1593
1690
|
props: {
|
1594
1691
|
type: {
|
1595
1692
|
type: 'enum',
|
1596
|
-
values: ['
|
1693
|
+
values: ['text']
|
1597
1694
|
},
|
1598
|
-
|
1599
|
-
type: '
|
1600
|
-
|
1601
|
-
minItems: 1,
|
1602
|
-
maxItems: 3,
|
1603
|
-
allowUnsupportedBlock: true
|
1695
|
+
text: {
|
1696
|
+
type: 'string',
|
1697
|
+
minLength: 1
|
1604
1698
|
},
|
1605
1699
|
marks: {
|
1606
1700
|
type: 'array',
|
1607
|
-
|
1608
|
-
|
1701
|
+
items: [],
|
1702
|
+
optional: true
|
1609
1703
|
}
|
1610
1704
|
}
|
1611
1705
|
};
|
1612
|
-
export const
|
1706
|
+
export const text_code_inline = ['text', {
|
1613
1707
|
props: {
|
1614
|
-
attrs: {
|
1615
|
-
props: {
|
1616
|
-
columnRuleStyle: {
|
1617
|
-
type: 'enum',
|
1618
|
-
values: ['solid'],
|
1619
|
-
optional: true
|
1620
|
-
}
|
1621
|
-
},
|
1622
|
-
optional: true
|
1623
|
-
},
|
1624
|
-
content: {
|
1625
|
-
type: 'array',
|
1626
|
-
items: ['layoutColumn'],
|
1627
|
-
minItems: 1,
|
1628
|
-
maxItems: 5,
|
1629
|
-
allowUnsupportedBlock: true
|
1630
|
-
},
|
1631
1708
|
marks: {
|
1632
1709
|
type: 'array',
|
1633
1710
|
optional: true,
|
1634
|
-
items: ['
|
1711
|
+
items: [['code', 'link', 'annotation']]
|
1635
1712
|
}
|
1636
1713
|
}
|
1637
1714
|
}];
|
1638
|
-
export const
|
1715
|
+
export const text_formatted = ['text', {
|
1639
1716
|
props: {
|
1640
|
-
content: {
|
1641
|
-
type: 'array',
|
1642
|
-
items: ['layoutColumn'],
|
1643
|
-
minItems: 2,
|
1644
|
-
maxItems: 3,
|
1645
|
-
allowUnsupportedBlock: true
|
1646
|
-
},
|
1647
1717
|
marks: {
|
1648
1718
|
type: 'array',
|
1649
1719
|
optional: true,
|
1650
|
-
items: ['
|
1720
|
+
items: [['link', 'em', 'strong', 'strike', 'subsup', 'underline', 'textColor', 'annotation', 'backgroundColor', null]]
|
1651
1721
|
}
|
1652
1722
|
}
|
1653
1723
|
}];
|
1654
|
-
export const
|
1724
|
+
export const text_link_inline = ['text', {
|
1655
1725
|
props: {
|
1656
|
-
type: {
|
1657
|
-
type: 'enum',
|
1658
|
-
values: ['extensionFrame']
|
1659
|
-
},
|
1660
|
-
content: {
|
1661
|
-
type: 'array',
|
1662
|
-
items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock_with_no_marks', 'mediaGroup', 'mediaSingle_full', 'mediaSingle_caption', 'decisionList', 'taskList', 'table', 'extension_with_marks', 'bodiedExtension_with_marks', 'blockCard', 'embedCard']],
|
1663
|
-
minItems: 1
|
1664
|
-
},
|
1665
1726
|
marks: {
|
1666
1727
|
type: 'array',
|
1667
1728
|
optional: true,
|
1668
|
-
items: [
|
1729
|
+
items: ['link']
|
1669
1730
|
}
|
1670
1731
|
}
|
1671
|
-
};
|
1672
|
-
export const
|
1732
|
+
}];
|
1733
|
+
export const textColor = {
|
1673
1734
|
props: {
|
1674
1735
|
type: {
|
1675
1736
|
type: 'enum',
|
1676
|
-
values: ['
|
1737
|
+
values: ['textColor']
|
1677
1738
|
},
|
1678
1739
|
attrs: {
|
1679
1740
|
props: {
|
1680
|
-
|
1681
|
-
type: 'string',
|
1682
|
-
minLength: 1
|
1683
|
-
},
|
1684
|
-
extensionType: {
|
1685
|
-
type: 'string',
|
1686
|
-
minLength: 1
|
1687
|
-
},
|
1688
|
-
parameters: {
|
1689
|
-
type: 'object',
|
1690
|
-
optional: true
|
1691
|
-
},
|
1692
|
-
text: {
|
1693
|
-
type: 'string',
|
1694
|
-
optional: true
|
1695
|
-
},
|
1696
|
-
layout: {
|
1697
|
-
type: 'enum',
|
1698
|
-
values: ['default', 'wide', 'full-width'],
|
1699
|
-
optional: true
|
1700
|
-
},
|
1701
|
-
localId: {
|
1741
|
+
color: {
|
1702
1742
|
type: 'string',
|
1703
|
-
|
1704
|
-
minLength: 1
|
1705
|
-
}
|
1706
|
-
}
|
1707
|
-
},
|
1708
|
-
content: {
|
1709
|
-
type: 'array',
|
1710
|
-
items: ['extensionFrame']
|
1711
|
-
},
|
1712
|
-
marks: {
|
1713
|
-
type: 'array',
|
1714
|
-
items: [],
|
1715
|
-
optional: true
|
1716
|
-
}
|
1717
|
-
}
|
1718
|
-
};
|
1719
|
-
export const blockRootOnly = ['multiBodiedExtension'];
|
1720
|
-
export const breakout = {
|
1721
|
-
props: {
|
1722
|
-
type: {
|
1723
|
-
type: 'enum',
|
1724
|
-
values: ['breakout']
|
1725
|
-
},
|
1726
|
-
attrs: {
|
1727
|
-
props: {
|
1728
|
-
mode: {
|
1729
|
-
type: 'enum',
|
1730
|
-
values: ['wide', 'full-width']
|
1731
|
-
},
|
1732
|
-
width: {
|
1733
|
-
type: 'number',
|
1734
|
-
optional: true
|
1743
|
+
pattern: '^#[0-9a-fA-F]{6}$'
|
1735
1744
|
}
|
1736
1745
|
}
|
1737
1746
|
}
|
1738
1747
|
}
|
1739
1748
|
};
|
1740
|
-
export const
|
1749
|
+
export const underline = {
|
1741
1750
|
props: {
|
1742
1751
|
type: {
|
1743
1752
|
type: 'enum',
|
1744
|
-
values: ['
|
1745
|
-
},
|
1746
|
-
version: {
|
1747
|
-
type: 'enum',
|
1748
|
-
values: [1]
|
1749
|
-
},
|
1750
|
-
content: {
|
1751
|
-
type: 'array',
|
1752
|
-
items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock_with_no_marks', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand_with_no_mark', 'bodiedExtension_with_marks', 'codeBlock_with_marks', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_with_breakout_mark']],
|
1753
|
-
allowUnsupportedBlock: true
|
1753
|
+
values: ['underline']
|
1754
1754
|
}
|
1755
1755
|
}
|
1756
1756
|
};
|