@atlaskit/adf-schema 37.1.40 → 37.1.42

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.
Files changed (30) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/next-schema/groups/atomicInlineGroup.js +19 -0
  3. package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  4. package/dist/cjs/next-schema/nodes/nestedExpand.js +1 -1
  5. package/dist/cjs/next-schema/nodes/paragraph.js +2 -1
  6. package/dist/cjs/next-schema/nodes/tableCellContent.js +1 -1
  7. package/dist/cjs/validator-schema/generated/validatorSpec.js +1875 -0
  8. package/dist/cjs/validator-schema/utils/sortNestedArrays.js +33 -0
  9. package/dist/es2019/next-schema/groups/atomicInlineGroup.js +13 -0
  10. package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  11. package/dist/es2019/next-schema/nodes/nestedExpand.js +1 -1
  12. package/dist/es2019/next-schema/nodes/paragraph.js +2 -1
  13. package/dist/es2019/next-schema/nodes/tableCellContent.js +1 -1
  14. package/dist/es2019/validator-schema/generated/validatorSpec.js +1869 -0
  15. package/dist/es2019/validator-schema/utils/sortNestedArrays.js +24 -0
  16. package/dist/esm/next-schema/groups/atomicInlineGroup.js +13 -0
  17. package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
  18. package/dist/esm/next-schema/nodes/nestedExpand.js +1 -1
  19. package/dist/esm/next-schema/nodes/paragraph.js +2 -1
  20. package/dist/esm/next-schema/nodes/tableCellContent.js +1 -1
  21. package/dist/esm/validator-schema/generated/validatorSpec.js +1869 -0
  22. package/dist/esm/validator-schema/utils/sortNestedArrays.js +26 -0
  23. package/dist/types/next-schema/groups/atomicInlineGroup.d.ts +1 -0
  24. package/dist/types/next-schema/nodes/nestedExpand.d.ts +1 -1
  25. package/dist/types/validator-schema/generated/validatorSpec.d.ts +1888 -0
  26. package/dist/types/validator-schema/utils/sortNestedArrays.d.ts +1 -0
  27. package/package.json +3 -2
  28. package/schema-generators/__tests__/unit/adfToValidatorSpecValidation.unit.ts +2 -42
  29. package/schema-generators/__tests__/unit/json-full-schema-backwards-compat.unit.ts +23 -46
  30. package/schema-generators/validator-full-schema.ts +22 -0
@@ -0,0 +1,1875 @@
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.tableCell_content = 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.atomic_inline = 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 atomic_inline = exports.atomic_inline = ['date', 'emoji', 'hardBreak', 'inlineCard', 'inlineExtension_with_marks', 'mediaInline', 'mention', 'placeholder', 'status'];
887
+ var inline = exports.inline = ['code_inline', 'date', 'emoji', 'formatted_text_inline', 'hardBreak', 'inlineCard', 'inlineExtension_with_marks', 'mediaInline', 'mention', 'placeholder', 'status'];
888
+ var paragraph = exports.paragraph = {
889
+ props: {
890
+ type: {
891
+ type: 'enum',
892
+ values: ['paragraph']
893
+ },
894
+ attrs: {
895
+ props: {
896
+ localId: {
897
+ type: 'string',
898
+ optional: true
899
+ }
900
+ },
901
+ optional: true
902
+ },
903
+ content: {
904
+ type: 'array',
905
+ items: ['inline'],
906
+ optional: true,
907
+ allowUnsupportedInline: true
908
+ },
909
+ marks: {
910
+ type: 'array',
911
+ items: [],
912
+ optional: true
913
+ }
914
+ }
915
+ };
916
+ var paragraph_with_alignment = exports.paragraph_with_alignment = ['paragraph', {
917
+ props: {
918
+ marks: {
919
+ type: 'array',
920
+ items: ['alignment'],
921
+ optional: true
922
+ }
923
+ }
924
+ }];
925
+ var paragraph_with_indentation = exports.paragraph_with_indentation = ['paragraph', {
926
+ props: {
927
+ marks: {
928
+ type: 'array',
929
+ items: ['indentation'],
930
+ optional: true
931
+ }
932
+ }
933
+ }];
934
+ var paragraph_with_no_marks = exports.paragraph_with_no_marks = ['paragraph', {
935
+ props: {
936
+ marks: {
937
+ type: 'array',
938
+ maxItems: 0,
939
+ items: [],
940
+ optional: true
941
+ }
942
+ }
943
+ }];
944
+ var taskItem = exports.taskItem = {
945
+ props: {
946
+ type: {
947
+ type: 'enum',
948
+ values: ['taskItem']
949
+ },
950
+ attrs: {
951
+ props: {
952
+ localId: {
953
+ type: 'string'
954
+ },
955
+ state: {
956
+ type: 'enum',
957
+ values: ['DONE', 'TODO']
958
+ }
959
+ }
960
+ },
961
+ content: {
962
+ type: 'array',
963
+ items: ['inline'],
964
+ optional: true,
965
+ allowUnsupportedInline: true
966
+ }
967
+ }
968
+ };
969
+ var taskList = exports.taskList = {
970
+ props: {
971
+ type: {
972
+ type: 'enum',
973
+ values: ['taskList']
974
+ },
975
+ attrs: {
976
+ props: {
977
+ localId: {
978
+ type: 'string'
979
+ }
980
+ }
981
+ },
982
+ content: {
983
+ type: 'array',
984
+ isTupleLike: true,
985
+ items: ['taskItem', ['taskItem', 'taskList']],
986
+ minItems: 1,
987
+ allowUnsupportedBlock: true
988
+ }
989
+ }
990
+ };
991
+ var listItem_legacy = exports.listItem_legacy = ['listItem', {
992
+ props: {
993
+ content: {
994
+ type: 'array',
995
+ isTupleLike: true,
996
+ 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']],
997
+ minItems: 1,
998
+ allowUnsupportedBlock: true
999
+ }
1000
+ }
1001
+ }];
1002
+ var bulletList = exports.bulletList = {
1003
+ props: {
1004
+ type: {
1005
+ type: 'enum',
1006
+ values: ['bulletList']
1007
+ },
1008
+ content: {
1009
+ type: 'array',
1010
+ items: ['listItem'],
1011
+ minItems: 1
1012
+ }
1013
+ }
1014
+ };
1015
+ var listItem = exports.listItem = {
1016
+ props: {
1017
+ type: {
1018
+ type: 'enum',
1019
+ values: ['listItem']
1020
+ },
1021
+ content: {
1022
+ type: 'array',
1023
+ isTupleLike: true,
1024
+ 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']],
1025
+ minItems: 1,
1026
+ allowUnsupportedBlock: true
1027
+ }
1028
+ }
1029
+ };
1030
+ var orderedList = exports.orderedList = {
1031
+ props: {
1032
+ type: {
1033
+ type: 'enum',
1034
+ values: ['orderedList']
1035
+ },
1036
+ attrs: {
1037
+ props: {
1038
+ order: {
1039
+ type: 'number',
1040
+ minimum: 0,
1041
+ optional: true
1042
+ }
1043
+ },
1044
+ optional: true
1045
+ },
1046
+ content: {
1047
+ type: 'array',
1048
+ items: ['listItem'],
1049
+ minItems: 1
1050
+ }
1051
+ }
1052
+ };
1053
+ var blockquote = exports.blockquote = {
1054
+ props: {
1055
+ type: {
1056
+ type: 'enum',
1057
+ values: ['blockquote']
1058
+ },
1059
+ content: {
1060
+ type: 'array',
1061
+ items: [['bulletList', 'orderedList', 'paragraph_with_no_marks']],
1062
+ minItems: 1,
1063
+ allowUnsupportedBlock: true
1064
+ }
1065
+ }
1066
+ };
1067
+ var blockquote_legacy = exports.blockquote_legacy = ['blockquote', {
1068
+ props: {
1069
+ content: {
1070
+ type: 'array',
1071
+ items: ['paragraph'],
1072
+ minItems: 1,
1073
+ allowUnsupportedBlock: true
1074
+ }
1075
+ }
1076
+ }];
1077
+ var decisionItem = exports.decisionItem = {
1078
+ props: {
1079
+ type: {
1080
+ type: 'enum',
1081
+ values: ['decisionItem']
1082
+ },
1083
+ attrs: {
1084
+ props: {
1085
+ localId: {
1086
+ type: 'string'
1087
+ },
1088
+ state: {
1089
+ type: 'string'
1090
+ }
1091
+ }
1092
+ },
1093
+ content: {
1094
+ type: 'array',
1095
+ items: ['inline'],
1096
+ optional: true,
1097
+ allowUnsupportedInline: true
1098
+ }
1099
+ }
1100
+ };
1101
+ var decisionList = exports.decisionList = {
1102
+ props: {
1103
+ type: {
1104
+ type: 'enum',
1105
+ values: ['decisionList']
1106
+ },
1107
+ attrs: {
1108
+ props: {
1109
+ localId: {
1110
+ type: 'string'
1111
+ }
1112
+ }
1113
+ },
1114
+ content: {
1115
+ type: 'array',
1116
+ items: ['decisionItem'],
1117
+ minItems: 1,
1118
+ allowUnsupportedBlock: true
1119
+ }
1120
+ }
1121
+ };
1122
+ var embedCard = exports.embedCard = {
1123
+ props: {
1124
+ type: {
1125
+ type: 'enum',
1126
+ values: ['embedCard']
1127
+ },
1128
+ attrs: {
1129
+ props: {
1130
+ url: {
1131
+ type: 'string',
1132
+ validatorFn: 'safeUrl'
1133
+ },
1134
+ layout: {
1135
+ type: 'enum',
1136
+ values: ['align-end', 'align-start', 'center', 'full-width', 'wide', 'wrap-left', 'wrap-right']
1137
+ },
1138
+ width: {
1139
+ type: 'number',
1140
+ maximum: 100,
1141
+ minimum: 0,
1142
+ optional: true
1143
+ },
1144
+ originalHeight: {
1145
+ type: 'number',
1146
+ optional: true
1147
+ },
1148
+ originalWidth: {
1149
+ type: 'number',
1150
+ optional: true
1151
+ }
1152
+ }
1153
+ }
1154
+ }
1155
+ };
1156
+ var extension = exports.extension = {
1157
+ props: {
1158
+ type: {
1159
+ type: 'enum',
1160
+ values: ['extension']
1161
+ },
1162
+ attrs: {
1163
+ props: {
1164
+ extensionKey: {
1165
+ minLength: 1,
1166
+ type: 'string'
1167
+ },
1168
+ extensionType: {
1169
+ minLength: 1,
1170
+ type: 'string'
1171
+ },
1172
+ parameters: {
1173
+ type: 'object',
1174
+ optional: true
1175
+ },
1176
+ text: {
1177
+ type: 'string',
1178
+ optional: true
1179
+ },
1180
+ layout: {
1181
+ type: 'enum',
1182
+ values: ['default', 'full-width', 'wide'],
1183
+ optional: true
1184
+ },
1185
+ localId: {
1186
+ minLength: 1,
1187
+ type: 'string',
1188
+ optional: true
1189
+ }
1190
+ }
1191
+ },
1192
+ marks: {
1193
+ type: 'array',
1194
+ items: [],
1195
+ optional: true
1196
+ }
1197
+ }
1198
+ };
1199
+ var extension_with_marks = exports.extension_with_marks = ['extension', {
1200
+ props: {
1201
+ marks: {
1202
+ type: 'array',
1203
+ items: [['dataConsumer', 'fragment']],
1204
+ optional: true
1205
+ }
1206
+ }
1207
+ }];
1208
+ var heading = exports.heading = {
1209
+ props: {
1210
+ type: {
1211
+ type: 'enum',
1212
+ values: ['heading']
1213
+ },
1214
+ attrs: {
1215
+ props: {
1216
+ level: {
1217
+ type: 'number',
1218
+ minimum: 1,
1219
+ maximum: 6
1220
+ },
1221
+ localId: {
1222
+ type: 'string',
1223
+ optional: true
1224
+ }
1225
+ }
1226
+ },
1227
+ content: {
1228
+ type: 'array',
1229
+ items: ['inline'],
1230
+ optional: true,
1231
+ allowUnsupportedInline: true
1232
+ },
1233
+ marks: {
1234
+ type: 'array',
1235
+ items: [],
1236
+ optional: true
1237
+ }
1238
+ }
1239
+ };
1240
+ var heading_with_indentation = exports.heading_with_indentation = ['heading', {
1241
+ props: {
1242
+ marks: {
1243
+ type: 'array',
1244
+ items: ['indentation'],
1245
+ optional: true
1246
+ }
1247
+ }
1248
+ }];
1249
+ var heading_with_no_marks = exports.heading_with_no_marks = ['heading', {
1250
+ props: {
1251
+ marks: {
1252
+ type: 'array',
1253
+ maxItems: 0,
1254
+ items: [],
1255
+ optional: true
1256
+ }
1257
+ }
1258
+ }];
1259
+ var heading_with_alignment = exports.heading_with_alignment = ['heading', {
1260
+ props: {
1261
+ marks: {
1262
+ type: 'array',
1263
+ items: ['alignment'],
1264
+ optional: true
1265
+ }
1266
+ }
1267
+ }];
1268
+ var mediaGroup = exports.mediaGroup = {
1269
+ props: {
1270
+ type: {
1271
+ type: 'enum',
1272
+ values: ['mediaGroup']
1273
+ },
1274
+ content: {
1275
+ type: 'array',
1276
+ items: ['media'],
1277
+ minItems: 1,
1278
+ allowUnsupportedBlock: true
1279
+ }
1280
+ }
1281
+ };
1282
+ var rule = exports.rule = {
1283
+ props: {
1284
+ type: {
1285
+ type: 'enum',
1286
+ values: ['rule']
1287
+ }
1288
+ }
1289
+ };
1290
+ var panel = exports.panel = {
1291
+ props: {
1292
+ type: {
1293
+ type: 'enum',
1294
+ values: ['panel']
1295
+ },
1296
+ attrs: {
1297
+ props: {
1298
+ panelType: {
1299
+ type: 'enum',
1300
+ values: ['custom', 'error', 'info', 'note', 'success', 'tip', 'warning']
1301
+ },
1302
+ panelIcon: {
1303
+ type: 'string',
1304
+ optional: true
1305
+ },
1306
+ panelIconId: {
1307
+ type: 'string',
1308
+ optional: true
1309
+ },
1310
+ panelIconText: {
1311
+ type: 'string',
1312
+ optional: true
1313
+ },
1314
+ panelColor: {
1315
+ type: 'string',
1316
+ optional: true
1317
+ }
1318
+ }
1319
+ },
1320
+ content: {
1321
+ type: 'array',
1322
+ items: [['blockCard', 'bulletList', 'codeBlock_with_no_marks', 'decisionList', 'heading_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'orderedList', 'paragraph_with_no_marks', 'rule', 'taskList']],
1323
+ minItems: 1,
1324
+ allowUnsupportedBlock: true
1325
+ }
1326
+ }
1327
+ };
1328
+ var panel_legacy = exports.panel_legacy = ['panel', {
1329
+ props: {
1330
+ content: {
1331
+ type: 'array',
1332
+ items: [['blockCard', 'bulletList', 'heading_with_no_marks', 'orderedList', 'paragraph_with_no_marks']],
1333
+ minItems: 1,
1334
+ allowUnsupportedBlock: true
1335
+ }
1336
+ }
1337
+ }];
1338
+ var nestedExpand_content = exports.nestedExpand_content = {
1339
+ type: 'array',
1340
+ items: [['blockquote', 'bulletList', 'codeBlock_with_no_marks', 'decisionList', 'heading_with_no_marks', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'orderedList', 'panel', 'paragraph_with_no_marks', 'rule', 'taskList']],
1341
+ minItems: 1,
1342
+ allowUnsupportedBlock: true
1343
+ };
1344
+ var nestedExpand_with_no_marks = exports.nestedExpand_with_no_marks = ['nestedExpand', {
1345
+ props: {
1346
+ marks: {
1347
+ type: 'array',
1348
+ maxItems: 0,
1349
+ items: [],
1350
+ optional: true
1351
+ }
1352
+ }
1353
+ }];
1354
+ var alignment = exports.alignment = {
1355
+ props: {
1356
+ type: {
1357
+ type: 'enum',
1358
+ values: ['alignment']
1359
+ },
1360
+ attrs: {
1361
+ props: {
1362
+ align: {
1363
+ type: 'enum',
1364
+ values: ['center', 'end']
1365
+ }
1366
+ }
1367
+ }
1368
+ }
1369
+ };
1370
+ var indentation = exports.indentation = {
1371
+ props: {
1372
+ type: {
1373
+ type: 'enum',
1374
+ values: ['indentation']
1375
+ },
1376
+ attrs: {
1377
+ props: {
1378
+ level: {
1379
+ type: 'number',
1380
+ minimum: 1,
1381
+ maximum: 6
1382
+ }
1383
+ }
1384
+ }
1385
+ }
1386
+ };
1387
+ var dataConsumer = exports.dataConsumer = {
1388
+ props: {
1389
+ type: {
1390
+ type: 'enum',
1391
+ values: ['dataConsumer']
1392
+ },
1393
+ attrs: {
1394
+ props: {
1395
+ sources: {
1396
+ type: 'array',
1397
+ items: [{
1398
+ type: 'string'
1399
+ }],
1400
+ minItems: 1
1401
+ }
1402
+ }
1403
+ }
1404
+ }
1405
+ };
1406
+ var fragment = exports.fragment = {
1407
+ props: {
1408
+ type: {
1409
+ type: 'enum',
1410
+ values: ['fragment']
1411
+ },
1412
+ attrs: {
1413
+ props: {
1414
+ localId: {
1415
+ minLength: 1,
1416
+ type: 'string'
1417
+ },
1418
+ name: {
1419
+ type: 'string',
1420
+ optional: true
1421
+ }
1422
+ }
1423
+ }
1424
+ }
1425
+ };
1426
+ var tableCell = exports.tableCell = {
1427
+ props: {
1428
+ type: {
1429
+ type: 'enum',
1430
+ values: ['tableCell']
1431
+ },
1432
+ attrs: {
1433
+ props: {
1434
+ colspan: {
1435
+ type: 'number',
1436
+ optional: true
1437
+ },
1438
+ rowspan: {
1439
+ type: 'number',
1440
+ optional: true
1441
+ },
1442
+ colwidth: {
1443
+ type: 'array',
1444
+ items: [{
1445
+ type: 'number'
1446
+ }],
1447
+ optional: true
1448
+ },
1449
+ background: {
1450
+ type: 'string',
1451
+ optional: true
1452
+ }
1453
+ },
1454
+ optional: true
1455
+ },
1456
+ content: 'tableCell_content'
1457
+ },
1458
+ required: ['content']
1459
+ };
1460
+ var nestedExpand = exports.nestedExpand = {
1461
+ props: {
1462
+ type: {
1463
+ type: 'enum',
1464
+ values: ['nestedExpand']
1465
+ },
1466
+ attrs: {
1467
+ props: {
1468
+ title: {
1469
+ type: 'string',
1470
+ optional: true
1471
+ }
1472
+ }
1473
+ },
1474
+ content: 'nestedExpand_content'
1475
+ },
1476
+ required: ['content']
1477
+ };
1478
+ var tableHeader = exports.tableHeader = {
1479
+ props: {
1480
+ type: {
1481
+ type: 'enum',
1482
+ values: ['tableHeader']
1483
+ },
1484
+ attrs: {
1485
+ props: {
1486
+ colspan: {
1487
+ type: 'number',
1488
+ optional: true
1489
+ },
1490
+ rowspan: {
1491
+ type: 'number',
1492
+ optional: true
1493
+ },
1494
+ colwidth: {
1495
+ type: 'array',
1496
+ items: [{
1497
+ type: 'number'
1498
+ }],
1499
+ optional: true
1500
+ },
1501
+ background: {
1502
+ type: 'string',
1503
+ optional: true
1504
+ }
1505
+ },
1506
+ optional: true
1507
+ },
1508
+ content: 'tableCell_content'
1509
+ },
1510
+ required: ['content']
1511
+ };
1512
+ var tableCell_content = exports.tableCell_content = {
1513
+ type: 'array',
1514
+ 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']],
1515
+ minItems: 1,
1516
+ allowUnsupportedBlock: true
1517
+ };
1518
+ var tableRow = exports.tableRow = {
1519
+ props: {
1520
+ type: {
1521
+ type: 'enum',
1522
+ values: ['tableRow']
1523
+ },
1524
+ content: {
1525
+ type: 'array',
1526
+ items: [['tableCell', 'tableHeader']]
1527
+ }
1528
+ }
1529
+ };
1530
+ var table = exports.table = {
1531
+ props: {
1532
+ type: {
1533
+ type: 'enum',
1534
+ values: ['table']
1535
+ },
1536
+ attrs: {
1537
+ props: {
1538
+ displayMode: {
1539
+ type: 'enum',
1540
+ values: ['default', 'fixed'],
1541
+ optional: true
1542
+ },
1543
+ isNumberColumnEnabled: {
1544
+ type: 'boolean',
1545
+ optional: true
1546
+ },
1547
+ layout: {
1548
+ type: 'enum',
1549
+ values: ['align-end', 'align-start', 'center', 'default', 'full-width', 'wide'],
1550
+ optional: true
1551
+ },
1552
+ localId: {
1553
+ type: 'string',
1554
+ minLength: 1,
1555
+ optional: true
1556
+ },
1557
+ width: {
1558
+ type: 'number',
1559
+ optional: true
1560
+ }
1561
+ },
1562
+ optional: true
1563
+ },
1564
+ content: {
1565
+ type: 'array',
1566
+ items: ['tableRow'],
1567
+ minItems: 1
1568
+ },
1569
+ marks: {
1570
+ type: 'array',
1571
+ items: ['fragment'],
1572
+ optional: true
1573
+ }
1574
+ }
1575
+ };
1576
+ 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'];
1577
+ var bodiedExtension = exports.bodiedExtension = {
1578
+ props: {
1579
+ type: {
1580
+ type: 'enum',
1581
+ values: ['bodiedExtension']
1582
+ },
1583
+ attrs: {
1584
+ props: {
1585
+ extensionKey: {
1586
+ minLength: 1,
1587
+ type: 'string'
1588
+ },
1589
+ extensionType: {
1590
+ minLength: 1,
1591
+ type: 'string'
1592
+ },
1593
+ parameters: {
1594
+ type: 'object',
1595
+ optional: true
1596
+ },
1597
+ text: {
1598
+ type: 'string',
1599
+ optional: true
1600
+ },
1601
+ layout: {
1602
+ type: 'enum',
1603
+ values: ['default', 'full-width', 'wide'],
1604
+ optional: true
1605
+ },
1606
+ localId: {
1607
+ minLength: 1,
1608
+ type: 'string',
1609
+ optional: true
1610
+ }
1611
+ }
1612
+ },
1613
+ content: {
1614
+ type: 'array',
1615
+ items: ['non_nestable_block_content'],
1616
+ minItems: 1,
1617
+ allowUnsupportedBlock: true
1618
+ },
1619
+ marks: {
1620
+ type: 'array',
1621
+ items: [],
1622
+ optional: true
1623
+ }
1624
+ }
1625
+ };
1626
+ var bodiedExtension_with_marks = exports.bodiedExtension_with_marks = ['bodiedExtension', {
1627
+ props: {
1628
+ marks: {
1629
+ type: 'array',
1630
+ items: [['dataConsumer', 'fragment']],
1631
+ optional: true
1632
+ }
1633
+ }
1634
+ }];
1635
+ var expand = exports.expand = {
1636
+ props: {
1637
+ type: {
1638
+ type: 'enum',
1639
+ values: ['expand']
1640
+ },
1641
+ attrs: {
1642
+ props: {
1643
+ title: {
1644
+ type: 'string',
1645
+ optional: true
1646
+ }
1647
+ }
1648
+ },
1649
+ content: {
1650
+ type: 'array',
1651
+ items: ['non_nestable_block_content'],
1652
+ minItems: 1,
1653
+ allowUnsupportedBlock: true
1654
+ },
1655
+ marks: {
1656
+ type: 'array',
1657
+ items: [],
1658
+ optional: true
1659
+ }
1660
+ }
1661
+ };
1662
+ var expand_with_no_mark = exports.expand_with_no_mark = ['expand', {
1663
+ props: {
1664
+ marks: {
1665
+ type: 'array',
1666
+ maxItems: 0,
1667
+ items: [],
1668
+ optional: true
1669
+ }
1670
+ }
1671
+ }];
1672
+ var expand_with_breakout_mark = exports.expand_with_breakout_mark = ['expand', {
1673
+ props: {
1674
+ marks: {
1675
+ type: 'array',
1676
+ items: ['breakout'],
1677
+ optional: true
1678
+ }
1679
+ }
1680
+ }];
1681
+ var confluenceUnsupportedBlock = exports.confluenceUnsupportedBlock = {
1682
+ props: {
1683
+ type: {
1684
+ type: 'enum',
1685
+ values: ['confluenceUnsupportedBlock']
1686
+ },
1687
+ attrs: {
1688
+ props: {
1689
+ cxhtml: {
1690
+ type: 'string'
1691
+ }
1692
+ }
1693
+ }
1694
+ }
1695
+ };
1696
+ 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'];
1697
+ var layoutColumn = exports.layoutColumn = {
1698
+ props: {
1699
+ type: {
1700
+ type: 'enum',
1701
+ values: ['layoutColumn']
1702
+ },
1703
+ attrs: {
1704
+ props: {
1705
+ width: {
1706
+ type: 'number',
1707
+ minimum: 0,
1708
+ maximum: 100
1709
+ }
1710
+ }
1711
+ },
1712
+ content: {
1713
+ type: 'array',
1714
+ items: ['block_content'],
1715
+ minItems: 1,
1716
+ allowUnsupportedBlock: true
1717
+ }
1718
+ }
1719
+ };
1720
+ var layoutSection = exports.layoutSection = {
1721
+ props: {
1722
+ type: {
1723
+ type: 'enum',
1724
+ values: ['layoutSection']
1725
+ },
1726
+ content: {
1727
+ type: 'array',
1728
+ items: ['layoutColumn']
1729
+ },
1730
+ marks: {
1731
+ type: 'array',
1732
+ items: ['breakout'],
1733
+ optional: true
1734
+ }
1735
+ }
1736
+ };
1737
+ var layoutSection_full = exports.layoutSection_full = ['layoutSection', {
1738
+ props: {
1739
+ content: {
1740
+ type: 'array',
1741
+ items: ['layoutColumn'],
1742
+ minItems: 2,
1743
+ maxItems: 3,
1744
+ allowUnsupportedBlock: true
1745
+ },
1746
+ marks: {
1747
+ type: 'array',
1748
+ items: ['breakout'],
1749
+ optional: true
1750
+ },
1751
+ type: {
1752
+ type: 'enum',
1753
+ values: ['layoutSection']
1754
+ }
1755
+ }
1756
+ }];
1757
+ var layoutSection_with_single_column = exports.layoutSection_with_single_column = ['layoutSection', {
1758
+ props: {
1759
+ content: {
1760
+ type: 'array',
1761
+ items: ['layoutColumn'],
1762
+ minItems: 1,
1763
+ maxItems: 3,
1764
+ allowUnsupportedBlock: true
1765
+ },
1766
+ type: {
1767
+ type: 'enum',
1768
+ values: ['layoutSection']
1769
+ },
1770
+ marks: {
1771
+ items: ['breakout'],
1772
+ optional: true,
1773
+ type: 'array'
1774
+ }
1775
+ }
1776
+ }];
1777
+ var extensionFrame = exports.extensionFrame = {
1778
+ props: {
1779
+ type: {
1780
+ type: 'enum',
1781
+ values: ['extensionFrame']
1782
+ },
1783
+ content: {
1784
+ type: 'array',
1785
+ 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']],
1786
+ minItems: 1
1787
+ },
1788
+ marks: {
1789
+ type: 'array',
1790
+ items: [['dataConsumer', 'fragment']],
1791
+ optional: true
1792
+ }
1793
+ }
1794
+ };
1795
+ var multiBodiedExtension = exports.multiBodiedExtension = {
1796
+ props: {
1797
+ type: {
1798
+ type: 'enum',
1799
+ values: ['multiBodiedExtension']
1800
+ },
1801
+ attrs: {
1802
+ props: {
1803
+ extensionKey: {
1804
+ type: 'string',
1805
+ minLength: 1
1806
+ },
1807
+ extensionType: {
1808
+ type: 'string',
1809
+ minLength: 1
1810
+ },
1811
+ parameters: {
1812
+ type: 'object',
1813
+ optional: true
1814
+ },
1815
+ text: {
1816
+ type: 'string',
1817
+ optional: true
1818
+ },
1819
+ layout: {
1820
+ type: 'enum',
1821
+ values: ['default', 'full-width', 'wide'],
1822
+ optional: true
1823
+ },
1824
+ localId: {
1825
+ type: 'string',
1826
+ optional: true,
1827
+ minLength: 1
1828
+ }
1829
+ }
1830
+ },
1831
+ content: {
1832
+ type: 'array',
1833
+ items: ['extensionFrame']
1834
+ },
1835
+ marks: {
1836
+ type: 'array',
1837
+ items: [],
1838
+ optional: true
1839
+ }
1840
+ }
1841
+ };
1842
+ var blockRootOnly = exports.blockRootOnly = ['multiBodiedExtension'];
1843
+ var breakout = exports.breakout = {
1844
+ props: {
1845
+ type: {
1846
+ type: 'enum',
1847
+ values: ['breakout']
1848
+ },
1849
+ attrs: {
1850
+ props: {
1851
+ mode: {
1852
+ type: 'enum',
1853
+ values: ['full-width', 'wide']
1854
+ }
1855
+ }
1856
+ }
1857
+ }
1858
+ };
1859
+ var doc = exports.doc = {
1860
+ props: {
1861
+ type: {
1862
+ type: 'enum',
1863
+ values: ['doc']
1864
+ },
1865
+ version: {
1866
+ type: 'enum',
1867
+ values: [1]
1868
+ },
1869
+ content: {
1870
+ type: 'array',
1871
+ 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']],
1872
+ allowUnsupportedBlock: true
1873
+ }
1874
+ }
1875
+ };