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