@atlaskit/adf-schema 49.0.5 → 49.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/index.js +114 -0
- package/dist/cjs/next-schema/generated/nodeTypes.js +118 -1
- package/dist/cjs/next-schema/nodes/blockCard.js +15 -0
- package/dist/cjs/next-schema/nodes/blockquote.js +16 -2
- package/dist/cjs/next-schema/nodes/caption.js +7 -0
- package/dist/cjs/next-schema/nodes/codeBlock.js +5 -0
- package/dist/cjs/next-schema/nodes/date.js +5 -0
- package/dist/cjs/next-schema/nodes/embedCard.js +5 -0
- package/dist/cjs/next-schema/nodes/emoji.js +5 -0
- package/dist/cjs/next-schema/nodes/expand.js +5 -0
- package/dist/cjs/next-schema/nodes/hardBreak.js +5 -0
- package/dist/cjs/next-schema/nodes/inlineCard.js +10 -0
- package/dist/cjs/next-schema/nodes/layoutColumn.js +5 -0
- package/dist/cjs/next-schema/nodes/layoutSection.js +12 -0
- package/dist/cjs/next-schema/nodes/list.js +20 -1
- package/dist/cjs/next-schema/nodes/media.js +10 -0
- package/dist/cjs/next-schema/nodes/mediaInline.js +5 -0
- package/dist/cjs/next-schema/nodes/mediaSingle.js +10 -0
- package/dist/cjs/next-schema/nodes/nestedExpand.js +5 -0
- package/dist/cjs/next-schema/nodes/panel.js +5 -0
- package/dist/cjs/next-schema/nodes/placeholder.js +5 -0
- package/dist/cjs/next-schema/nodes/rule.js +9 -1
- package/dist/cjs/schema/index.js +120 -0
- package/dist/cjs/schema/marks/background-color.js +9 -9
- package/dist/cjs/schema/nodes/block-card.js +48 -1
- package/dist/cjs/schema/nodes/blockquote.js +20 -2
- package/dist/cjs/schema/nodes/bullet-list.js +20 -1
- package/dist/cjs/schema/nodes/caption.js +20 -1
- package/dist/cjs/schema/nodes/code-block.js +72 -2
- package/dist/cjs/schema/nodes/date.js +22 -1
- package/dist/cjs/schema/nodes/embed-card.js +36 -1
- package/dist/cjs/schema/nodes/emoji.js +73 -1
- package/dist/cjs/schema/nodes/expand.js +56 -1
- package/dist/cjs/schema/nodes/hard-break.js +18 -1
- package/dist/cjs/schema/nodes/index.js +120 -0
- package/dist/cjs/schema/nodes/inline-card.js +46 -1
- package/dist/cjs/schema/nodes/layout-column.js +37 -1
- package/dist/cjs/schema/nodes/layout-section.js +31 -1
- package/dist/cjs/schema/nodes/list-item.js +34 -1
- package/dist/cjs/schema/nodes/media-inline.js +12 -2
- package/dist/cjs/schema/nodes/media-single.js +22 -2
- package/dist/cjs/schema/nodes/media.js +21 -4
- package/dist/cjs/schema/nodes/nested-expand.js +34 -7
- package/dist/cjs/schema/nodes/ordered-list.js +54 -3
- package/dist/cjs/schema/nodes/panel.js +13 -5
- package/dist/cjs/schema/nodes/placeholder.js +24 -1
- package/dist/cjs/schema/nodes/rule.js +18 -1
- package/dist/cjs/validator-schema/generated/validatorSpec.js +142 -0
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/next-schema/generated/nodeTypes.js +118 -1
- package/dist/es2019/next-schema/nodes/blockCard.js +15 -0
- package/dist/es2019/next-schema/nodes/blockquote.js +16 -2
- package/dist/es2019/next-schema/nodes/caption.js +7 -0
- package/dist/es2019/next-schema/nodes/codeBlock.js +5 -0
- package/dist/es2019/next-schema/nodes/date.js +5 -0
- package/dist/es2019/next-schema/nodes/embedCard.js +5 -0
- package/dist/es2019/next-schema/nodes/emoji.js +5 -0
- package/dist/es2019/next-schema/nodes/expand.js +5 -0
- package/dist/es2019/next-schema/nodes/hardBreak.js +5 -0
- package/dist/es2019/next-schema/nodes/inlineCard.js +10 -0
- package/dist/es2019/next-schema/nodes/layoutColumn.js +5 -0
- package/dist/es2019/next-schema/nodes/layoutSection.js +12 -0
- package/dist/es2019/next-schema/nodes/list.js +20 -1
- package/dist/es2019/next-schema/nodes/media.js +10 -0
- package/dist/es2019/next-schema/nodes/mediaInline.js +5 -0
- package/dist/es2019/next-schema/nodes/mediaSingle.js +10 -0
- package/dist/es2019/next-schema/nodes/nestedExpand.js +5 -0
- package/dist/es2019/next-schema/nodes/panel.js +5 -0
- package/dist/es2019/next-schema/nodes/placeholder.js +5 -0
- package/dist/es2019/next-schema/nodes/rule.js +9 -1
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/marks/background-color.js +9 -9
- package/dist/es2019/schema/nodes/block-card.js +50 -0
- package/dist/es2019/schema/nodes/blockquote.js +19 -1
- package/dist/es2019/schema/nodes/bullet-list.js +19 -0
- package/dist/es2019/schema/nodes/caption.js +19 -0
- package/dist/es2019/schema/nodes/code-block.js +68 -0
- package/dist/es2019/schema/nodes/date.js +19 -0
- package/dist/es2019/schema/nodes/embed-card.js +34 -0
- package/dist/es2019/schema/nodes/emoji.js +71 -0
- package/dist/es2019/schema/nodes/expand.js +59 -0
- package/dist/es2019/schema/nodes/hard-break.js +15 -0
- package/dist/es2019/schema/nodes/index.js +19 -19
- package/dist/es2019/schema/nodes/inline-card.js +45 -0
- package/dist/es2019/schema/nodes/layout-column.js +38 -0
- package/dist/es2019/schema/nodes/layout-section.js +32 -0
- package/dist/es2019/schema/nodes/list-item.js +29 -0
- package/dist/es2019/schema/nodes/media-inline.js +8 -1
- package/dist/es2019/schema/nodes/media-single.js +20 -1
- package/dist/es2019/schema/nodes/media.js +17 -4
- package/dist/es2019/schema/nodes/nested-expand.js +21 -6
- package/dist/es2019/schema/nodes/ordered-list.js +51 -2
- package/dist/es2019/schema/nodes/panel.js +11 -5
- package/dist/es2019/schema/nodes/placeholder.js +23 -0
- package/dist/es2019/schema/nodes/rule.js +15 -0
- package/dist/es2019/validator-schema/generated/validatorSpec.js +142 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +118 -1
- package/dist/esm/next-schema/nodes/blockCard.js +15 -0
- package/dist/esm/next-schema/nodes/blockquote.js +16 -2
- package/dist/esm/next-schema/nodes/caption.js +7 -0
- package/dist/esm/next-schema/nodes/codeBlock.js +5 -0
- package/dist/esm/next-schema/nodes/date.js +5 -0
- package/dist/esm/next-schema/nodes/embedCard.js +5 -0
- package/dist/esm/next-schema/nodes/emoji.js +5 -0
- package/dist/esm/next-schema/nodes/expand.js +5 -0
- package/dist/esm/next-schema/nodes/hardBreak.js +5 -0
- package/dist/esm/next-schema/nodes/inlineCard.js +10 -0
- package/dist/esm/next-schema/nodes/layoutColumn.js +5 -0
- package/dist/esm/next-schema/nodes/layoutSection.js +12 -0
- package/dist/esm/next-schema/nodes/list.js +20 -1
- package/dist/esm/next-schema/nodes/media.js +10 -0
- package/dist/esm/next-schema/nodes/mediaInline.js +5 -0
- package/dist/esm/next-schema/nodes/mediaSingle.js +10 -0
- package/dist/esm/next-schema/nodes/nestedExpand.js +5 -0
- package/dist/esm/next-schema/nodes/panel.js +5 -0
- package/dist/esm/next-schema/nodes/placeholder.js +5 -0
- package/dist/esm/next-schema/nodes/rule.js +9 -1
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/marks/background-color.js +9 -9
- package/dist/esm/schema/nodes/block-card.js +47 -0
- package/dist/esm/schema/nodes/blockquote.js +19 -1
- package/dist/esm/schema/nodes/bullet-list.js +19 -0
- package/dist/esm/schema/nodes/caption.js +19 -0
- package/dist/esm/schema/nodes/code-block.js +71 -1
- package/dist/esm/schema/nodes/date.js +21 -0
- package/dist/esm/schema/nodes/embed-card.js +35 -0
- package/dist/esm/schema/nodes/emoji.js +71 -0
- package/dist/esm/schema/nodes/expand.js +55 -0
- package/dist/esm/schema/nodes/hard-break.js +17 -0
- package/dist/esm/schema/nodes/index.js +19 -19
- package/dist/esm/schema/nodes/inline-card.js +45 -0
- package/dist/esm/schema/nodes/layout-column.js +36 -0
- package/dist/esm/schema/nodes/layout-section.js +30 -0
- package/dist/esm/schema/nodes/list-item.js +33 -0
- package/dist/esm/schema/nodes/media-inline.js +10 -1
- package/dist/esm/schema/nodes/media-single.js +21 -1
- package/dist/esm/schema/nodes/media.js +19 -3
- package/dist/esm/schema/nodes/nested-expand.js +32 -6
- package/dist/esm/schema/nodes/ordered-list.js +53 -2
- package/dist/esm/schema/nodes/panel.js +12 -4
- package/dist/esm/schema/nodes/placeholder.js +23 -0
- package/dist/esm/schema/nodes/rule.js +17 -0
- package/dist/esm/validator-schema/generated/validatorSpec.js +142 -0
- package/dist/json-schema/v1/full.json +125 -2
- package/dist/json-schema/v1/stage-0.json +137 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +62 -0
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +7 -0
- package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +7 -0
- package/dist/types/next-schema/nodes/blockquote.d.ts +7 -0
- package/dist/types/next-schema/nodes/layoutSection.d.ts +5 -0
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/block-card.d.ts +4 -0
- package/dist/types/schema/nodes/blockquote.d.ts +4 -0
- package/dist/types/schema/nodes/bullet-list.d.ts +1 -0
- package/dist/types/schema/nodes/caption.d.ts +4 -0
- package/dist/types/schema/nodes/code-block.d.ts +2 -0
- package/dist/types/schema/nodes/date.d.ts +2 -0
- package/dist/types/schema/nodes/embed-card.d.ts +2 -0
- package/dist/types/schema/nodes/emoji.d.ts +2 -0
- package/dist/types/schema/nodes/expand.d.ts +2 -0
- package/dist/types/schema/nodes/hard-break.d.ts +2 -0
- package/dist/types/schema/nodes/index.d.ts +19 -19
- package/dist/types/schema/nodes/inline-card.d.ts +1 -0
- package/dist/types/schema/nodes/layout-column.d.ts +2 -0
- package/dist/types/schema/nodes/layout-section.d.ts +4 -0
- package/dist/types/schema/nodes/list-item.d.ts +2 -0
- package/dist/types/schema/nodes/media-inline.d.ts +1 -0
- package/dist/types/schema/nodes/media-single.d.ts +3 -1
- package/dist/types/schema/nodes/media.d.ts +3 -1
- package/dist/types/schema/nodes/nested-expand.d.ts +2 -0
- package/dist/types/schema/nodes/ordered-list.d.ts +2 -0
- package/dist/types/schema/nodes/panel.d.ts +2 -0
- package/dist/types/schema/nodes/placeholder.d.ts +2 -0
- package/dist/types/schema/nodes/rule.d.ts +4 -0
- package/dist/types/schema/nodes/types/list.d.ts +7 -0
- package/dist/types/schema/nodes/types/rich-media-common.d.ts +1 -0
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +142 -0
- package/json-schema/v1/full.json +125 -2
- package/json-schema/v1/stage-0.json +137 -2
- package/package.json +2 -2
- package/schema-generators/__tests__/unit/adfToValidatorSpec.unit.ts +1 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 49.1.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- d090050: Added optional localId attribute to nodes and marks
|
8
|
+
|
9
|
+
## 49.0.6
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- 243f95a: [ED-28432] Reorder background color palette swatches
|
14
|
+
|
3
15
|
## 49.0.5
|
4
16
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
@@ -345,6 +345,12 @@ Object.defineProperty(exports, "blockCard", {
|
|
345
345
|
return _schema.blockCard;
|
346
346
|
}
|
347
347
|
});
|
348
|
+
Object.defineProperty(exports, "blockCardWithLocalId", {
|
349
|
+
enumerable: true,
|
350
|
+
get: function get() {
|
351
|
+
return _schema.blockCardWithLocalId;
|
352
|
+
}
|
353
|
+
});
|
348
354
|
Object.defineProperty(exports, "blockquote", {
|
349
355
|
enumerable: true,
|
350
356
|
get: function get() {
|
@@ -393,12 +399,24 @@ Object.defineProperty(exports, "bulletListSelector", {
|
|
393
399
|
return _schema.bulletListSelector;
|
394
400
|
}
|
395
401
|
});
|
402
|
+
Object.defineProperty(exports, "bulletListWithLocalId", {
|
403
|
+
enumerable: true,
|
404
|
+
get: function get() {
|
405
|
+
return _schema.bulletListWithLocalId;
|
406
|
+
}
|
407
|
+
});
|
396
408
|
Object.defineProperty(exports, "caption", {
|
397
409
|
enumerable: true,
|
398
410
|
get: function get() {
|
399
411
|
return _schema.caption;
|
400
412
|
}
|
401
413
|
});
|
414
|
+
Object.defineProperty(exports, "captionWithLocalId", {
|
415
|
+
enumerable: true,
|
416
|
+
get: function get() {
|
417
|
+
return _schema.captionWithLocalId;
|
418
|
+
}
|
419
|
+
});
|
402
420
|
Object.defineProperty(exports, "code", {
|
403
421
|
enumerable: true,
|
404
422
|
get: function get() {
|
@@ -417,6 +435,12 @@ Object.defineProperty(exports, "codeBlockToJSON", {
|
|
417
435
|
return _schema.codeBlockToJSON;
|
418
436
|
}
|
419
437
|
});
|
438
|
+
Object.defineProperty(exports, "codeBlockWithLocalId", {
|
439
|
+
enumerable: true,
|
440
|
+
get: function get() {
|
441
|
+
return _schema.codeBlockWithLocalId;
|
442
|
+
}
|
443
|
+
});
|
420
444
|
Object.defineProperty(exports, "colorPalette", {
|
421
445
|
enumerable: true,
|
422
446
|
get: function get() {
|
@@ -495,6 +519,12 @@ Object.defineProperty(exports, "date", {
|
|
495
519
|
return _schema.date;
|
496
520
|
}
|
497
521
|
});
|
522
|
+
Object.defineProperty(exports, "dateWithLocalId", {
|
523
|
+
enumerable: true,
|
524
|
+
get: function get() {
|
525
|
+
return _schema.dateWithLocalId;
|
526
|
+
}
|
527
|
+
});
|
498
528
|
Object.defineProperty(exports, "decisionItem", {
|
499
529
|
enumerable: true,
|
500
530
|
get: function get() {
|
@@ -531,6 +561,12 @@ Object.defineProperty(exports, "embedCard", {
|
|
531
561
|
return _schema.embedCard;
|
532
562
|
}
|
533
563
|
});
|
564
|
+
Object.defineProperty(exports, "embedCardWithLocalId", {
|
565
|
+
enumerable: true,
|
566
|
+
get: function get() {
|
567
|
+
return _schema.embedCardWithLocalId;
|
568
|
+
}
|
569
|
+
});
|
534
570
|
Object.defineProperty(exports, "emoji", {
|
535
571
|
enumerable: true,
|
536
572
|
get: function get() {
|
@@ -543,6 +579,12 @@ Object.defineProperty(exports, "emojiIdToAcName", {
|
|
543
579
|
return _utils.emojiIdToAcName;
|
544
580
|
}
|
545
581
|
});
|
582
|
+
Object.defineProperty(exports, "emojiWithLocalId", {
|
583
|
+
enumerable: true,
|
584
|
+
get: function get() {
|
585
|
+
return _schema.emojiWithLocalId;
|
586
|
+
}
|
587
|
+
});
|
546
588
|
Object.defineProperty(exports, "expandToJSON", {
|
547
589
|
enumerable: true,
|
548
590
|
get: function get() {
|
@@ -555,18 +597,36 @@ Object.defineProperty(exports, "expandWithNestedExpand", {
|
|
555
597
|
return _schema.expandWithNestedExpand;
|
556
598
|
}
|
557
599
|
});
|
600
|
+
Object.defineProperty(exports, "expandWithNestedExpandLocalId", {
|
601
|
+
enumerable: true,
|
602
|
+
get: function get() {
|
603
|
+
return _schema.expandWithNestedExpandLocalId;
|
604
|
+
}
|
605
|
+
});
|
558
606
|
Object.defineProperty(exports, "extendedBlockquote", {
|
559
607
|
enumerable: true,
|
560
608
|
get: function get() {
|
561
609
|
return _schema.extendedBlockquote;
|
562
610
|
}
|
563
611
|
});
|
612
|
+
Object.defineProperty(exports, "extendedBlockquoteWithLocalId", {
|
613
|
+
enumerable: true,
|
614
|
+
get: function get() {
|
615
|
+
return _schema.extendedBlockquoteWithLocalId;
|
616
|
+
}
|
617
|
+
});
|
564
618
|
Object.defineProperty(exports, "extendedPanel", {
|
565
619
|
enumerable: true,
|
566
620
|
get: function get() {
|
567
621
|
return _schema.extendedPanel;
|
568
622
|
}
|
569
623
|
});
|
624
|
+
Object.defineProperty(exports, "extendedPanelWithLocalId", {
|
625
|
+
enumerable: true,
|
626
|
+
get: function get() {
|
627
|
+
return _schema.extendedPanelWithLocalId;
|
628
|
+
}
|
629
|
+
});
|
570
630
|
Object.defineProperty(exports, "extension", {
|
571
631
|
enumerable: true,
|
572
632
|
get: function get() {
|
@@ -633,6 +693,12 @@ Object.defineProperty(exports, "hardBreak", {
|
|
633
693
|
return _schema.hardBreak;
|
634
694
|
}
|
635
695
|
});
|
696
|
+
Object.defineProperty(exports, "hardBreakWithLocalId", {
|
697
|
+
enumerable: true,
|
698
|
+
get: function get() {
|
699
|
+
return _schema.hardBreakWithLocalId;
|
700
|
+
}
|
701
|
+
});
|
636
702
|
Object.defineProperty(exports, "heading", {
|
637
703
|
enumerable: true,
|
638
704
|
get: function get() {
|
@@ -669,6 +735,12 @@ Object.defineProperty(exports, "inlineCard", {
|
|
669
735
|
return _schema.inlineCard;
|
670
736
|
}
|
671
737
|
});
|
738
|
+
Object.defineProperty(exports, "inlineCardWithLocalId", {
|
739
|
+
enumerable: true,
|
740
|
+
get: function get() {
|
741
|
+
return _schema.inlineCardWithLocalId;
|
742
|
+
}
|
743
|
+
});
|
672
744
|
Object.defineProperty(exports, "inlineExtension", {
|
673
745
|
enumerable: true,
|
674
746
|
get: function get() {
|
@@ -705,6 +777,12 @@ Object.defineProperty(exports, "layoutColumn", {
|
|
705
777
|
return _schema.layoutColumn;
|
706
778
|
}
|
707
779
|
});
|
780
|
+
Object.defineProperty(exports, "layoutColumnWithLocalId", {
|
781
|
+
enumerable: true,
|
782
|
+
get: function get() {
|
783
|
+
return _schema.layoutColumnWithLocalId;
|
784
|
+
}
|
785
|
+
});
|
708
786
|
Object.defineProperty(exports, "layoutSection", {
|
709
787
|
enumerable: true,
|
710
788
|
get: function get() {
|
@@ -777,6 +855,12 @@ Object.defineProperty(exports, "mediaSingleFull", {
|
|
777
855
|
return _schema.mediaSingleFull;
|
778
856
|
}
|
779
857
|
});
|
858
|
+
Object.defineProperty(exports, "mediaSingleFullWithLocalId", {
|
859
|
+
enumerable: true,
|
860
|
+
get: function get() {
|
861
|
+
return _schema.mediaSingleFullWithLocalId;
|
862
|
+
}
|
863
|
+
});
|
780
864
|
Object.defineProperty(exports, "mediaSingleSpec", {
|
781
865
|
enumerable: true,
|
782
866
|
get: function get() {
|
@@ -831,6 +915,12 @@ Object.defineProperty(exports, "nestedExpand", {
|
|
831
915
|
return _schema.nestedExpand;
|
832
916
|
}
|
833
917
|
});
|
918
|
+
Object.defineProperty(exports, "nestedExpandWithLocalId", {
|
919
|
+
enumerable: true,
|
920
|
+
get: function get() {
|
921
|
+
return _schema.nestedExpandWithLocalId;
|
922
|
+
}
|
923
|
+
});
|
834
924
|
Object.defineProperty(exports, "normalizeHexColor", {
|
835
925
|
enumerable: true,
|
836
926
|
get: function get() {
|
@@ -855,12 +945,24 @@ Object.defineProperty(exports, "orderedListSelector", {
|
|
855
945
|
return _schema.orderedListSelector;
|
856
946
|
}
|
857
947
|
});
|
948
|
+
Object.defineProperty(exports, "orderedListWithLocalId", {
|
949
|
+
enumerable: true,
|
950
|
+
get: function get() {
|
951
|
+
return _schema.orderedListWithLocalId;
|
952
|
+
}
|
953
|
+
});
|
858
954
|
Object.defineProperty(exports, "orderedListWithOrder", {
|
859
955
|
enumerable: true,
|
860
956
|
get: function get() {
|
861
957
|
return _schema.orderedListWithOrder;
|
862
958
|
}
|
863
959
|
});
|
960
|
+
Object.defineProperty(exports, "orderedListWithOrderAndLocalId", {
|
961
|
+
enumerable: true,
|
962
|
+
get: function get() {
|
963
|
+
return _schema.orderedListWithOrderAndLocalId;
|
964
|
+
}
|
965
|
+
});
|
864
966
|
Object.defineProperty(exports, "paragraph", {
|
865
967
|
enumerable: true,
|
866
968
|
get: function get() {
|
@@ -873,6 +975,12 @@ Object.defineProperty(exports, "placeholder", {
|
|
873
975
|
return _schema.placeholder;
|
874
976
|
}
|
875
977
|
});
|
978
|
+
Object.defineProperty(exports, "placeholderWithLocalId", {
|
979
|
+
enumerable: true,
|
980
|
+
get: function get() {
|
981
|
+
return _schema.placeholderWithLocalId;
|
982
|
+
}
|
983
|
+
});
|
876
984
|
Object.defineProperty(exports, "rgbToHex", {
|
877
985
|
enumerable: true,
|
878
986
|
get: function get() {
|
@@ -885,6 +993,12 @@ Object.defineProperty(exports, "rule", {
|
|
885
993
|
return _schema.rule;
|
886
994
|
}
|
887
995
|
});
|
996
|
+
Object.defineProperty(exports, "ruleWithLocalId", {
|
997
|
+
enumerable: true,
|
998
|
+
get: function get() {
|
999
|
+
return _schema.ruleWithLocalId;
|
1000
|
+
}
|
1001
|
+
});
|
888
1002
|
Object.defineProperty(exports, "sanitizeNodes", {
|
889
1003
|
enumerable: true,
|
890
1004
|
get: function get() {
|
@@ -14,6 +14,9 @@ var _createPMSpecFactory = require("../../schema/createPMSpecFactory");
|
|
14
14
|
var blockCard = exports.blockCard = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
15
15
|
group: 'block',
|
16
16
|
attrs: {
|
17
|
+
localId: {
|
18
|
+
default: null
|
19
|
+
},
|
17
20
|
url: {
|
18
21
|
default: null
|
19
22
|
},
|
@@ -37,6 +40,11 @@ var blockquote = exports.blockquote = (0, _createPMSpecFactory.createPMNodeSpecF
|
|
37
40
|
content: '(paragraph | orderedList | bulletList | unsupportedBlock | codeBlock | mediaSingle | mediaGroup | extension)+',
|
38
41
|
marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
39
42
|
group: 'block',
|
43
|
+
attrs: {
|
44
|
+
localId: {
|
45
|
+
default: null
|
46
|
+
}
|
47
|
+
},
|
40
48
|
selectable: true,
|
41
49
|
defining: true
|
42
50
|
});
|
@@ -44,6 +52,11 @@ var blockquoteLegacy = exports.blockquoteLegacy = (0, _createPMSpecFactory.creat
|
|
44
52
|
content: '(paragraph | unsupportedBlock)+',
|
45
53
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
46
54
|
group: 'block',
|
55
|
+
attrs: {
|
56
|
+
localId: {
|
57
|
+
default: null
|
58
|
+
}
|
59
|
+
},
|
47
60
|
selectable: true,
|
48
61
|
defining: true
|
49
62
|
});
|
@@ -106,11 +119,21 @@ var bulletList = exports.bulletList = (0, _createPMSpecFactory.createPMNodeSpecF
|
|
106
119
|
content: 'listItem+',
|
107
120
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
108
121
|
group: 'block',
|
122
|
+
attrs: {
|
123
|
+
localId: {
|
124
|
+
default: null
|
125
|
+
}
|
126
|
+
},
|
109
127
|
selectable: false
|
110
128
|
});
|
111
129
|
var caption = exports.caption = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
112
130
|
content: '(hardBreak | mention | emoji | date | placeholder | inlineCard | status | text | unsupportedInline)*',
|
113
131
|
marks: '_',
|
132
|
+
attrs: {
|
133
|
+
localId: {
|
134
|
+
default: null
|
135
|
+
}
|
136
|
+
},
|
114
137
|
selectable: false,
|
115
138
|
isolating: true
|
116
139
|
});
|
@@ -124,6 +147,9 @@ var codeBlock = exports.codeBlock = (0, _createPMSpecFactory.createPMNodeSpecFac
|
|
124
147
|
},
|
125
148
|
uniqueId: {
|
126
149
|
default: null
|
150
|
+
},
|
151
|
+
localId: {
|
152
|
+
default: null
|
127
153
|
}
|
128
154
|
},
|
129
155
|
code: true,
|
@@ -138,6 +164,9 @@ var codeBlockRootOnly = exports.codeBlockRootOnly = (0, _createPMSpecFactory.cre
|
|
138
164
|
},
|
139
165
|
uniqueId: {
|
140
166
|
default: null
|
167
|
+
},
|
168
|
+
localId: {
|
169
|
+
default: null
|
141
170
|
}
|
142
171
|
},
|
143
172
|
code: true,
|
@@ -189,6 +218,9 @@ var date = exports.date = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
189
218
|
attrs: {
|
190
219
|
timestamp: {
|
191
220
|
default: ''
|
221
|
+
},
|
222
|
+
localId: {
|
223
|
+
default: null
|
192
224
|
}
|
193
225
|
},
|
194
226
|
selectable: true
|
@@ -199,6 +231,9 @@ var dateStage0 = exports.dateStage0 = (0, _createPMSpecFactory.createPMNodeSpecF
|
|
199
231
|
attrs: {
|
200
232
|
timestamp: {
|
201
233
|
default: ''
|
234
|
+
},
|
235
|
+
localId: {
|
236
|
+
default: null
|
202
237
|
}
|
203
238
|
},
|
204
239
|
selectable: true
|
@@ -249,6 +284,9 @@ var embedCard = exports.embedCard = (0, _createPMSpecFactory.createPMNodeSpecFac
|
|
249
284
|
},
|
250
285
|
originalWidth: {
|
251
286
|
default: null
|
287
|
+
},
|
288
|
+
localId: {
|
289
|
+
default: null
|
252
290
|
}
|
253
291
|
},
|
254
292
|
selectable: true
|
@@ -265,6 +303,9 @@ var emoji = exports.emoji = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
265
303
|
},
|
266
304
|
text: {
|
267
305
|
default: ''
|
306
|
+
},
|
307
|
+
localId: {
|
308
|
+
default: null
|
268
309
|
}
|
269
310
|
},
|
270
311
|
selectable: true
|
@@ -281,6 +322,9 @@ var emojiStage0 = exports.emojiStage0 = (0, _createPMSpecFactory.createPMNodeSpe
|
|
281
322
|
},
|
282
323
|
text: {
|
283
324
|
default: ''
|
325
|
+
},
|
326
|
+
localId: {
|
327
|
+
default: null
|
284
328
|
}
|
285
329
|
},
|
286
330
|
selectable: true
|
@@ -295,6 +339,9 @@ var expand = exports.expand = (0, _createPMSpecFactory.createPMNodeSpecFactory)(
|
|
295
339
|
},
|
296
340
|
__expanded: {
|
297
341
|
default: true
|
342
|
+
},
|
343
|
+
localId: {
|
344
|
+
default: null
|
298
345
|
}
|
299
346
|
},
|
300
347
|
selectable: true,
|
@@ -309,6 +356,9 @@ var expandRootOnly = exports.expandRootOnly = (0, _createPMSpecFactory.createPMN
|
|
309
356
|
},
|
310
357
|
__expanded: {
|
311
358
|
default: true
|
359
|
+
},
|
360
|
+
localId: {
|
361
|
+
default: null
|
312
362
|
}
|
313
363
|
},
|
314
364
|
selectable: true,
|
@@ -379,6 +429,9 @@ var hardBreak = exports.hardBreak = (0, _createPMSpecFactory.createPMNodeSpecFac
|
|
379
429
|
attrs: {
|
380
430
|
text: {
|
381
431
|
default: '\n'
|
432
|
+
},
|
433
|
+
localId: {
|
434
|
+
default: null
|
382
435
|
}
|
383
436
|
},
|
384
437
|
selectable: false,
|
@@ -461,6 +514,9 @@ var inlineCard = exports.inlineCard = (0, _createPMSpecFactory.createPMNodeSpecF
|
|
461
514
|
url: {
|
462
515
|
default: null
|
463
516
|
},
|
517
|
+
localId: {
|
518
|
+
default: null
|
519
|
+
},
|
464
520
|
data: {
|
465
521
|
default: null
|
466
522
|
}
|
@@ -475,6 +531,9 @@ var inlineCardStage0 = exports.inlineCardStage0 = (0, _createPMSpecFactory.creat
|
|
475
531
|
url: {
|
476
532
|
default: null
|
477
533
|
},
|
534
|
+
localId: {
|
535
|
+
default: null
|
536
|
+
},
|
478
537
|
data: {
|
479
538
|
default: null
|
480
539
|
}
|
@@ -532,6 +591,9 @@ var layoutColumn = exports.layoutColumn = (0, _createPMSpecFactory.createPMNodeS
|
|
532
591
|
attrs: {
|
533
592
|
width: {
|
534
593
|
default: undefined
|
594
|
+
},
|
595
|
+
localId: {
|
596
|
+
default: null
|
535
597
|
}
|
536
598
|
},
|
537
599
|
selectable: false,
|
@@ -540,11 +602,21 @@ var layoutColumn = exports.layoutColumn = (0, _createPMSpecFactory.createPMNodeS
|
|
540
602
|
var layoutSection = exports.layoutSection = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
541
603
|
content: '(layoutColumn | unsupportedBlock){1,3} unsupportedBlock*',
|
542
604
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
605
|
+
attrs: {
|
606
|
+
localId: {
|
607
|
+
default: null
|
608
|
+
}
|
609
|
+
},
|
543
610
|
isolating: true
|
544
611
|
});
|
545
612
|
var layoutSectionFull = exports.layoutSectionFull = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
546
613
|
content: '(layoutColumn | unsupportedBlock){2,3}',
|
547
614
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
615
|
+
attrs: {
|
616
|
+
localId: {
|
617
|
+
default: null
|
618
|
+
}
|
619
|
+
},
|
548
620
|
isolating: true
|
549
621
|
});
|
550
622
|
var layoutSectionWithSingleColumnStage0 = exports.layoutSectionWithSingleColumnStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
@@ -553,6 +625,9 @@ var layoutSectionWithSingleColumnStage0 = exports.layoutSectionWithSingleColumnS
|
|
553
625
|
attrs: {
|
554
626
|
columnRuleStyle: {
|
555
627
|
default: null
|
628
|
+
},
|
629
|
+
localId: {
|
630
|
+
default: null
|
556
631
|
}
|
557
632
|
},
|
558
633
|
isolating: true
|
@@ -560,12 +635,22 @@ var layoutSectionWithSingleColumnStage0 = exports.layoutSectionWithSingleColumnS
|
|
560
635
|
var listItem = exports.listItem = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
561
636
|
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock | extension) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | extension)*',
|
562
637
|
marks: 'dataConsumer fragment unsupportedMark unsupportedNodeAttribute',
|
638
|
+
attrs: {
|
639
|
+
localId: {
|
640
|
+
default: null
|
641
|
+
}
|
642
|
+
},
|
563
643
|
selectable: false,
|
564
644
|
defining: true
|
565
645
|
});
|
566
646
|
var listItemWithNestedDecisionStage0 = exports.listItemWithNestedDecisionStage0 = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
567
647
|
content: '(paragraph | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension)*',
|
568
648
|
marks: 'unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
649
|
+
attrs: {
|
650
|
+
localId: {
|
651
|
+
default: null
|
652
|
+
}
|
653
|
+
},
|
569
654
|
selectable: false,
|
570
655
|
defining: true
|
571
656
|
});
|
@@ -574,6 +659,9 @@ var media = exports.media = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
574
659
|
type: {
|
575
660
|
default: 'file'
|
576
661
|
},
|
662
|
+
localId: {
|
663
|
+
default: null
|
664
|
+
},
|
577
665
|
id: {
|
578
666
|
default: ''
|
579
667
|
},
|
@@ -633,6 +721,9 @@ var mediaInline = exports.mediaInline = (0, _createPMSpecFactory.createPMNodeSpe
|
|
633
721
|
type: {
|
634
722
|
default: 'file'
|
635
723
|
},
|
724
|
+
localId: {
|
725
|
+
default: null
|
726
|
+
},
|
636
727
|
url: {
|
637
728
|
default: null
|
638
729
|
},
|
@@ -714,6 +805,9 @@ var mediaSingleFull = exports.mediaSingleFull = (0, _createPMSpecFactory.createP
|
|
714
805
|
group: 'block',
|
715
806
|
atom: false,
|
716
807
|
attrs: {
|
808
|
+
localId: {
|
809
|
+
default: null
|
810
|
+
},
|
717
811
|
width: {
|
718
812
|
default: null
|
719
813
|
},
|
@@ -732,6 +826,9 @@ var mediaSingleWidthType = exports.mediaSingleWidthType = (0, _createPMSpecFacto
|
|
732
826
|
group: 'block',
|
733
827
|
atom: true,
|
734
828
|
attrs: {
|
829
|
+
localId: {
|
830
|
+
default: null
|
831
|
+
},
|
735
832
|
width: {
|
736
833
|
default: null
|
737
834
|
},
|
@@ -824,6 +921,9 @@ var nestedExpand = exports.nestedExpand = (0, _createPMSpecFactory.createPMNodeS
|
|
824
921
|
},
|
825
922
|
__expanded: {
|
826
923
|
default: true
|
924
|
+
},
|
925
|
+
localId: {
|
926
|
+
default: null
|
827
927
|
}
|
828
928
|
},
|
829
929
|
selectable: true,
|
@@ -836,6 +936,9 @@ var nestedExpandWithNoMarks = exports.nestedExpandWithNoMarks = (0, _createPMSpe
|
|
836
936
|
},
|
837
937
|
__expanded: {
|
838
938
|
default: true
|
939
|
+
},
|
940
|
+
localId: {
|
941
|
+
default: null
|
839
942
|
}
|
840
943
|
},
|
841
944
|
selectable: true,
|
@@ -848,6 +951,9 @@ var orderedList = exports.orderedList = (0, _createPMSpecFactory.createPMNodeSpe
|
|
848
951
|
attrs: {
|
849
952
|
order: {
|
850
953
|
default: 1
|
954
|
+
},
|
955
|
+
localId: {
|
956
|
+
default: null
|
851
957
|
}
|
852
958
|
},
|
853
959
|
selectable: false
|
@@ -871,6 +977,9 @@ var panel = exports.panel = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
|
871
977
|
},
|
872
978
|
panelColor: {
|
873
979
|
default: null
|
980
|
+
},
|
981
|
+
localId: {
|
982
|
+
default: null
|
874
983
|
}
|
875
984
|
},
|
876
985
|
selectable: true
|
@@ -920,12 +1029,20 @@ var placeholder = exports.placeholder = (0, _createPMSpecFactory.createPMNodeSpe
|
|
920
1029
|
attrs: {
|
921
1030
|
text: {
|
922
1031
|
default: ''
|
1032
|
+
},
|
1033
|
+
localId: {
|
1034
|
+
default: null
|
923
1035
|
}
|
924
1036
|
},
|
925
1037
|
selectable: false
|
926
1038
|
});
|
927
1039
|
var rule = exports.rule = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
928
|
-
group: 'block'
|
1040
|
+
group: 'block',
|
1041
|
+
attrs: {
|
1042
|
+
localId: {
|
1043
|
+
default: null
|
1044
|
+
}
|
1045
|
+
}
|
929
1046
|
});
|
930
1047
|
var status = exports.status = (0, _createPMSpecFactory.createPMNodeSpecFactory)({
|
931
1048
|
group: 'inline',
|
@@ -13,6 +13,11 @@ var blockCard = exports.blockCard = (0, _adfSchemaGenerator.adfNode)('blockCard'
|
|
13
13
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
14
14
|
attrs: {
|
15
15
|
anyOf: [{
|
16
|
+
localId: {
|
17
|
+
type: 'string',
|
18
|
+
default: null,
|
19
|
+
optional: true
|
20
|
+
},
|
16
21
|
url: {
|
17
22
|
type: 'string',
|
18
23
|
optional: true,
|
@@ -68,11 +73,21 @@ var blockCard = exports.blockCard = (0, _adfSchemaGenerator.adfNode)('blockCard'
|
|
68
73
|
url: {
|
69
74
|
type: 'string',
|
70
75
|
validatorFn: 'safeUrl'
|
76
|
+
},
|
77
|
+
localId: {
|
78
|
+
type: 'string',
|
79
|
+
default: null,
|
80
|
+
optional: true
|
71
81
|
}
|
72
82
|
}, {
|
73
83
|
data: {
|
74
84
|
type: 'object',
|
75
85
|
default: null
|
86
|
+
},
|
87
|
+
localId: {
|
88
|
+
type: 'string',
|
89
|
+
default: null,
|
90
|
+
optional: true
|
76
91
|
}
|
77
92
|
}]
|
78
93
|
}
|
@@ -19,8 +19,22 @@ var blockquote = exports.blockquote = (0, _adfSchemaGenerator.adfNode)('blockquo
|
|
19
19
|
defining: true,
|
20
20
|
selectable: true,
|
21
21
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
22
|
-
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, blockQuoteContent))]
|
22
|
+
content: [(0, _adfSchemaGenerator.$onePlus)(_adfSchemaGenerator.$or.apply(void 0, blockQuoteContent))],
|
23
|
+
attrs: {
|
24
|
+
localId: {
|
25
|
+
type: 'string',
|
26
|
+
default: null,
|
27
|
+
optional: true
|
28
|
+
}
|
29
|
+
}
|
23
30
|
}).variant('legacy', {
|
24
31
|
ignore: ['json-schema', 'validator-spec'],
|
25
|
-
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph, _unsupportedBlock.unsupportedBlock))]
|
32
|
+
content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_paragraph.paragraph, _unsupportedBlock.unsupportedBlock))],
|
33
|
+
attrs: {
|
34
|
+
localId: {
|
35
|
+
type: 'string',
|
36
|
+
default: null,
|
37
|
+
optional: true
|
38
|
+
}
|
39
|
+
}
|
26
40
|
});
|
@@ -21,5 +21,12 @@ var caption = exports.caption = (0, _adfSchemaGenerator.adfNode)('caption').defi
|
|
21
21
|
selectable: false,
|
22
22
|
marks: [_unsupportedMark.unsupportedMark, _unsupportedNodeAttribute.unsupportedNodeAttribute],
|
23
23
|
allowAnyChildMark: true,
|
24
|
+
attrs: {
|
25
|
+
localId: {
|
26
|
+
type: 'string',
|
27
|
+
default: null,
|
28
|
+
optional: true
|
29
|
+
}
|
30
|
+
},
|
24
31
|
content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_hardBreak.hardBreak, _mention.mention, _emoji.emoji, _date.date, _placeholder.placeholder, _inlineCard.inlineCard, _status.status, _text.text.use('formatted'), _text.text.use('code_inline'), _unsupportedInline.unsupportedInline))]
|
25
32
|
});
|