@atlaskit/adf-schema 45.1.0 → 46.0.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 +19 -0
- package/dist/cjs/next-schema/full-schema.adf.js +1 -1
- package/dist/cjs/next-schema/generated/nodeTypes.js +6 -4
- package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -3
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/codeBlock.js +1 -18
- package/dist/cjs/next-schema/nodes/expand.js +4 -10
- package/dist/cjs/next-schema/nodes/text.js +3 -0
- package/dist/cjs/schema/nodes/expand.js +1 -1
- package/dist/cjs/validator-schema/generated/validatorSpec.js +15 -29
- package/dist/es2019/next-schema/full-schema.adf.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +5 -3
- package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -3
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/codeBlock.js +1 -18
- package/dist/es2019/next-schema/nodes/expand.js +4 -10
- package/dist/es2019/next-schema/nodes/text.js +3 -0
- package/dist/es2019/schema/nodes/expand.js +1 -1
- package/dist/es2019/validator-schema/generated/validatorSpec.js +14 -28
- package/dist/esm/next-schema/full-schema.adf.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +5 -3
- package/dist/esm/next-schema/groups/blockContentGroup.js +1 -3
- package/dist/esm/next-schema/groups/blockGroup.js +1 -1
- package/dist/esm/next-schema/nodes/codeBlock.js +1 -18
- package/dist/esm/next-schema/nodes/expand.js +4 -10
- package/dist/esm/next-schema/nodes/text.js +3 -0
- package/dist/esm/schema/nodes/expand.js +1 -1
- package/dist/esm/validator-schema/generated/validatorSpec.js +14 -28
- package/dist/json-schema/v1/full.json +56 -63
- package/dist/json-schema/v1/stage-0.json +56 -63
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +13 -8
- package/dist/types/next-schema/groups/blockContentGroup.d.ts +0 -2
- package/dist/types/next-schema/nodes/expand.d.ts +3 -8
- package/dist/types/next-schema/nodes/text.d.ts +4 -1
- package/dist/types/schema/nodes/doc.d.ts +2 -2
- package/dist/types/schema/nodes/expand.d.ts +2 -3
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +12 -26
- package/json-schema/v1/full.json +56 -63
- package/json-schema/v1/stage-0.json +56 -63
- package/package.json +2 -2
@@ -7,8 +7,7 @@ import { nonNestableBlockContentGroup } from '../groups/nonNestableBlockContentG
|
|
7
7
|
export var expand = adfNode('expand').define({
|
8
8
|
isolating: true,
|
9
9
|
selectable: true,
|
10
|
-
|
11
|
-
hasEmptyMarks: true,
|
10
|
+
noMarks: true,
|
12
11
|
attrs: {
|
13
12
|
title: {
|
14
13
|
type: 'string',
|
@@ -33,13 +32,8 @@ export var expand = adfNode('expand').define({
|
|
33
32
|
}).variant('without_nested_expand', {
|
34
33
|
content: [$onePlus($or(nonNestableBlockContentGroup))],
|
35
34
|
ignore: ['json-schema', 'validator-spec']
|
36
|
-
}).variant('
|
35
|
+
}).variant('root_only', {
|
37
36
|
marks: [breakout, unsupportedMark, unsupportedNodeAttribute],
|
38
|
-
|
39
|
-
|
40
|
-
}).variant('with_no_mark', {
|
41
|
-
content: [],
|
42
|
-
marks: [],
|
43
|
-
noMarks: true,
|
44
|
-
ignore: []
|
37
|
+
noMarks: false,
|
38
|
+
noExtend: true
|
45
39
|
});
|
@@ -15,6 +15,9 @@ import { confluenceInlineComment } from '../marks/confluenceInlineComment';
|
|
15
15
|
export var text = adfNode('text').define({
|
16
16
|
marks: [],
|
17
17
|
hasEmptyMarks: true
|
18
|
+
}).variant('with_no_marks', {
|
19
|
+
marks: [],
|
20
|
+
noMarks: true
|
18
21
|
}).variant('link_inline', {
|
19
22
|
marks: [link],
|
20
23
|
ignore: ['pm-spec', 'json-schema']
|
@@ -49,7 +49,7 @@ export var backgroundColor = {
|
|
49
49
|
}
|
50
50
|
}
|
51
51
|
};
|
52
|
-
export var block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', '
|
52
|
+
export var block_content = ['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks'];
|
53
53
|
export var blockCard = {
|
54
54
|
props: {
|
55
55
|
type: {
|
@@ -285,16 +285,7 @@ export var codeBlock = {
|
|
285
285
|
},
|
286
286
|
content: {
|
287
287
|
type: 'array',
|
288
|
-
items: [
|
289
|
-
props: {
|
290
|
-
marks: {
|
291
|
-
items: [],
|
292
|
-
maxItems: 0,
|
293
|
-
optional: true,
|
294
|
-
type: 'array'
|
295
|
-
}
|
296
|
-
}
|
297
|
-
}]],
|
288
|
+
items: ['text_with_no_marks'],
|
298
289
|
optional: true,
|
299
290
|
allowUnsupportedInline: true
|
300
291
|
}
|
@@ -421,7 +412,7 @@ export var doc = {
|
|
421
412
|
},
|
422
413
|
content: {
|
423
414
|
type: 'array',
|
424
|
-
items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', '
|
415
|
+
items: [['blockCard', 'paragraph_with_no_marks', 'paragraph_with_alignment', 'paragraph_with_indentation', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'taskList', 'bulletList', 'orderedList', 'heading_with_no_marks', 'heading_with_alignment', 'heading_with_indentation', 'mediaGroup', 'decisionList', 'rule', 'panel', 'panel_with_nested_blockquote', 'blockquote', 'extension_with_marks', 'embedCard', 'table', 'expand', 'bodiedExtension_with_marks', 'codeBlock_root_only', 'layoutSection_with_single_column', 'layoutSection_full', 'multiBodiedExtension', 'expand_root_only']],
|
425
416
|
allowUnsupportedBlock: true
|
426
417
|
}
|
427
418
|
}
|
@@ -515,15 +506,10 @@ export var expand = {
|
|
515
506
|
items: [['paragraph_with_no_marks', 'panel', 'blockquote', 'orderedList', 'bulletList', 'rule', 'heading_with_no_marks', 'codeBlock', 'mediaGroup', 'mediaSingle_caption', 'mediaSingle_full', 'decisionList', 'taskList', 'table', 'blockCard', 'embedCard', 'extension_with_marks', 'nestedExpand_with_no_marks']],
|
516
507
|
minItems: 1,
|
517
508
|
allowUnsupportedBlock: true
|
518
|
-
},
|
519
|
-
marks: {
|
520
|
-
type: 'array',
|
521
|
-
items: [],
|
522
|
-
optional: true
|
523
509
|
}
|
524
510
|
}
|
525
511
|
};
|
526
|
-
export var
|
512
|
+
export var expand_root_only = ['expand', {
|
527
513
|
props: {
|
528
514
|
marks: {
|
529
515
|
type: 'array',
|
@@ -532,16 +518,6 @@ export var expand_with_breakout_mark = ['expand', {
|
|
532
518
|
}
|
533
519
|
}
|
534
520
|
}];
|
535
|
-
export var expand_with_no_mark = ['expand', {
|
536
|
-
props: {
|
537
|
-
marks: {
|
538
|
-
type: 'array',
|
539
|
-
maxItems: 0,
|
540
|
-
items: [],
|
541
|
-
optional: true
|
542
|
-
}
|
543
|
-
}
|
544
|
-
}];
|
545
521
|
export var extension = {
|
546
522
|
props: {
|
547
523
|
type: {
|
@@ -1723,6 +1699,16 @@ export var text_link_inline = ['text', {
|
|
1723
1699
|
}
|
1724
1700
|
}
|
1725
1701
|
}];
|
1702
|
+
export var text_with_no_marks = ['text', {
|
1703
|
+
props: {
|
1704
|
+
marks: {
|
1705
|
+
type: 'array',
|
1706
|
+
maxItems: 0,
|
1707
|
+
items: [],
|
1708
|
+
optional: true
|
1709
|
+
}
|
1710
|
+
}
|
1711
|
+
}];
|
1726
1712
|
export var textColor = {
|
1727
1713
|
props: {
|
1728
1714
|
type: {
|
@@ -133,7 +133,7 @@
|
|
133
133
|
"$ref": "#/definitions/table_node"
|
134
134
|
},
|
135
135
|
{
|
136
|
-
"$ref": "#/definitions/
|
136
|
+
"$ref": "#/definitions/expand_node"
|
137
137
|
},
|
138
138
|
{
|
139
139
|
"$ref": "#/definitions/bodiedExtension_with_marks_node"
|
@@ -507,21 +507,7 @@
|
|
507
507
|
"content": {
|
508
508
|
"type": "array",
|
509
509
|
"items": {
|
510
|
-
"
|
511
|
-
{
|
512
|
-
"$ref": "#/definitions/text_node"
|
513
|
-
},
|
514
|
-
{
|
515
|
-
"type": "object",
|
516
|
-
"properties": {
|
517
|
-
"marks": {
|
518
|
-
"type": "array",
|
519
|
-
"maxItems": 0
|
520
|
-
}
|
521
|
-
},
|
522
|
-
"additionalProperties": true
|
523
|
-
}
|
524
|
-
]
|
510
|
+
"$ref": "#/definitions/text_with_no_marks_node"
|
525
511
|
}
|
526
512
|
}
|
527
513
|
},
|
@@ -555,21 +541,7 @@
|
|
555
541
|
"content": {
|
556
542
|
"type": "array",
|
557
543
|
"items": {
|
558
|
-
"
|
559
|
-
{
|
560
|
-
"$ref": "#/definitions/text_node"
|
561
|
-
},
|
562
|
-
{
|
563
|
-
"type": "object",
|
564
|
-
"properties": {
|
565
|
-
"marks": {
|
566
|
-
"type": "array",
|
567
|
-
"maxItems": 0
|
568
|
-
}
|
569
|
-
},
|
570
|
-
"additionalProperties": true
|
571
|
-
}
|
572
|
-
]
|
544
|
+
"$ref": "#/definitions/text_with_no_marks_node"
|
573
545
|
}
|
574
546
|
}
|
575
547
|
},
|
@@ -754,16 +726,16 @@
|
|
754
726
|
"$ref": "#/definitions/bodiedExtension_with_marks_node"
|
755
727
|
},
|
756
728
|
{
|
757
|
-
"$ref": "#/definitions/
|
758
|
-
},
|
759
|
-
{
|
760
|
-
"$ref": "#/definitions/expand_with_breakout_mark_node"
|
729
|
+
"$ref": "#/definitions/expand_node"
|
761
730
|
},
|
762
731
|
{
|
763
732
|
"$ref": "#/definitions/codeBlock_root_only_node"
|
764
733
|
},
|
765
734
|
{
|
766
735
|
"$ref": "#/definitions/layoutSection_full_node"
|
736
|
+
},
|
737
|
+
{
|
738
|
+
"$ref": "#/definitions/expand_root_only_node"
|
767
739
|
}
|
768
740
|
]
|
769
741
|
}
|
@@ -860,7 +832,8 @@
|
|
860
832
|
"enum": ["expand"]
|
861
833
|
},
|
862
834
|
"marks": {
|
863
|
-
"type": "array"
|
835
|
+
"type": "array",
|
836
|
+
"maxItems": 0
|
864
837
|
},
|
865
838
|
"attrs": {
|
866
839
|
"type": "object",
|
@@ -889,41 +862,44 @@
|
|
889
862
|
"additionalProperties": false,
|
890
863
|
"required": ["type", "content", "attrs"]
|
891
864
|
},
|
892
|
-
"
|
893
|
-
"
|
894
|
-
|
895
|
-
|
865
|
+
"expand_root_only_node": {
|
866
|
+
"type": "object",
|
867
|
+
"properties": {
|
868
|
+
"type": {
|
869
|
+
"enum": ["expand"]
|
896
870
|
},
|
897
|
-
{
|
871
|
+
"marks": {
|
872
|
+
"type": "array",
|
873
|
+
"items": {
|
874
|
+
"$ref": "#/definitions/breakout_mark"
|
875
|
+
}
|
876
|
+
},
|
877
|
+
"attrs": {
|
898
878
|
"type": "object",
|
899
879
|
"properties": {
|
900
|
-
"
|
901
|
-
"type": "
|
902
|
-
"items": {
|
903
|
-
"$ref": "#/definitions/breakout_mark"
|
904
|
-
}
|
880
|
+
"title": {
|
881
|
+
"type": "string"
|
905
882
|
}
|
906
883
|
},
|
907
|
-
"additionalProperties":
|
908
|
-
}
|
909
|
-
]
|
910
|
-
},
|
911
|
-
"expand_with_no_mark_node": {
|
912
|
-
"allOf": [
|
913
|
-
{
|
914
|
-
"$ref": "#/definitions/expand_node"
|
884
|
+
"additionalProperties": false
|
915
885
|
},
|
916
|
-
{
|
917
|
-
"type": "
|
918
|
-
"
|
919
|
-
"
|
920
|
-
|
921
|
-
|
922
|
-
|
886
|
+
"content": {
|
887
|
+
"type": "array",
|
888
|
+
"items": {
|
889
|
+
"anyOf": [
|
890
|
+
{
|
891
|
+
"$ref": "#/definitions/non_nestable_block_content"
|
892
|
+
},
|
893
|
+
{
|
894
|
+
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
895
|
+
}
|
896
|
+
]
|
923
897
|
},
|
924
|
-
"
|
898
|
+
"minItems": 1
|
925
899
|
}
|
926
|
-
|
900
|
+
},
|
901
|
+
"additionalProperties": false,
|
902
|
+
"required": ["type", "content"]
|
927
903
|
},
|
928
904
|
"extension_node": {
|
929
905
|
"type": "object",
|
@@ -2532,6 +2508,23 @@
|
|
2532
2508
|
"additionalProperties": false,
|
2533
2509
|
"required": ["type", "text"]
|
2534
2510
|
},
|
2511
|
+
"text_with_no_marks_node": {
|
2512
|
+
"allOf": [
|
2513
|
+
{
|
2514
|
+
"$ref": "#/definitions/text_node"
|
2515
|
+
},
|
2516
|
+
{
|
2517
|
+
"type": "object",
|
2518
|
+
"properties": {
|
2519
|
+
"marks": {
|
2520
|
+
"type": "array",
|
2521
|
+
"maxItems": 0
|
2522
|
+
}
|
2523
|
+
},
|
2524
|
+
"additionalProperties": true
|
2525
|
+
}
|
2526
|
+
]
|
2527
|
+
},
|
2535
2528
|
"textColor_mark": {
|
2536
2529
|
"type": "object",
|
2537
2530
|
"properties": {
|
@@ -136,7 +136,7 @@
|
|
136
136
|
"$ref": "#/definitions/table_node"
|
137
137
|
},
|
138
138
|
{
|
139
|
-
"$ref": "#/definitions/
|
139
|
+
"$ref": "#/definitions/expand_node"
|
140
140
|
},
|
141
141
|
{
|
142
142
|
"$ref": "#/definitions/bodiedExtension_with_marks_node"
|
@@ -517,21 +517,7 @@
|
|
517
517
|
"content": {
|
518
518
|
"type": "array",
|
519
519
|
"items": {
|
520
|
-
"
|
521
|
-
{
|
522
|
-
"$ref": "#/definitions/text_node"
|
523
|
-
},
|
524
|
-
{
|
525
|
-
"type": "object",
|
526
|
-
"properties": {
|
527
|
-
"marks": {
|
528
|
-
"type": "array",
|
529
|
-
"maxItems": 0
|
530
|
-
}
|
531
|
-
},
|
532
|
-
"additionalProperties": true
|
533
|
-
}
|
534
|
-
]
|
520
|
+
"$ref": "#/definitions/text_with_no_marks_node"
|
535
521
|
}
|
536
522
|
}
|
537
523
|
},
|
@@ -565,21 +551,7 @@
|
|
565
551
|
"content": {
|
566
552
|
"type": "array",
|
567
553
|
"items": {
|
568
|
-
"
|
569
|
-
{
|
570
|
-
"$ref": "#/definitions/text_node"
|
571
|
-
},
|
572
|
-
{
|
573
|
-
"type": "object",
|
574
|
-
"properties": {
|
575
|
-
"marks": {
|
576
|
-
"type": "array",
|
577
|
-
"maxItems": 0
|
578
|
-
}
|
579
|
-
},
|
580
|
-
"additionalProperties": true
|
581
|
-
}
|
582
|
-
]
|
554
|
+
"$ref": "#/definitions/text_with_no_marks_node"
|
583
555
|
}
|
584
556
|
}
|
585
557
|
},
|
@@ -773,10 +745,7 @@
|
|
773
745
|
"$ref": "#/definitions/bodiedExtension_with_marks_node"
|
774
746
|
},
|
775
747
|
{
|
776
|
-
"$ref": "#/definitions/
|
777
|
-
},
|
778
|
-
{
|
779
|
-
"$ref": "#/definitions/expand_with_breakout_mark_node"
|
748
|
+
"$ref": "#/definitions/expand_node"
|
780
749
|
},
|
781
750
|
{
|
782
751
|
"$ref": "#/definitions/codeBlock_root_only_node"
|
@@ -789,6 +758,9 @@
|
|
789
758
|
},
|
790
759
|
{
|
791
760
|
"$ref": "#/definitions/multiBodiedExtension_node"
|
761
|
+
},
|
762
|
+
{
|
763
|
+
"$ref": "#/definitions/expand_root_only_node"
|
792
764
|
}
|
793
765
|
]
|
794
766
|
}
|
@@ -891,7 +863,8 @@
|
|
891
863
|
"enum": ["expand"]
|
892
864
|
},
|
893
865
|
"marks": {
|
894
|
-
"type": "array"
|
866
|
+
"type": "array",
|
867
|
+
"maxItems": 0
|
895
868
|
},
|
896
869
|
"attrs": {
|
897
870
|
"type": "object",
|
@@ -920,41 +893,44 @@
|
|
920
893
|
"additionalProperties": false,
|
921
894
|
"required": ["type", "content", "attrs"]
|
922
895
|
},
|
923
|
-
"
|
924
|
-
"
|
925
|
-
|
926
|
-
|
896
|
+
"expand_root_only_node": {
|
897
|
+
"type": "object",
|
898
|
+
"properties": {
|
899
|
+
"type": {
|
900
|
+
"enum": ["expand"]
|
927
901
|
},
|
928
|
-
{
|
902
|
+
"marks": {
|
903
|
+
"type": "array",
|
904
|
+
"items": {
|
905
|
+
"$ref": "#/definitions/breakout_mark"
|
906
|
+
}
|
907
|
+
},
|
908
|
+
"attrs": {
|
929
909
|
"type": "object",
|
930
910
|
"properties": {
|
931
|
-
"
|
932
|
-
"type": "
|
933
|
-
"items": {
|
934
|
-
"$ref": "#/definitions/breakout_mark"
|
935
|
-
}
|
911
|
+
"title": {
|
912
|
+
"type": "string"
|
936
913
|
}
|
937
914
|
},
|
938
|
-
"additionalProperties":
|
939
|
-
}
|
940
|
-
]
|
941
|
-
},
|
942
|
-
"expand_with_no_mark_node": {
|
943
|
-
"allOf": [
|
944
|
-
{
|
945
|
-
"$ref": "#/definitions/expand_node"
|
915
|
+
"additionalProperties": false
|
946
916
|
},
|
947
|
-
{
|
948
|
-
"type": "
|
949
|
-
"
|
950
|
-
"
|
951
|
-
|
952
|
-
|
953
|
-
|
917
|
+
"content": {
|
918
|
+
"type": "array",
|
919
|
+
"items": {
|
920
|
+
"anyOf": [
|
921
|
+
{
|
922
|
+
"$ref": "#/definitions/non_nestable_block_content"
|
923
|
+
},
|
924
|
+
{
|
925
|
+
"$ref": "#/definitions/nestedExpand_with_no_marks_node"
|
926
|
+
}
|
927
|
+
]
|
954
928
|
},
|
955
|
-
"
|
929
|
+
"minItems": 1
|
956
930
|
}
|
957
|
-
|
931
|
+
},
|
932
|
+
"additionalProperties": false,
|
933
|
+
"required": ["type", "content"]
|
958
934
|
},
|
959
935
|
"extension_node": {
|
960
936
|
"type": "object",
|
@@ -2901,6 +2877,23 @@
|
|
2901
2877
|
"additionalProperties": false,
|
2902
2878
|
"required": ["type", "text"]
|
2903
2879
|
},
|
2880
|
+
"text_with_no_marks_node": {
|
2881
|
+
"allOf": [
|
2882
|
+
{
|
2883
|
+
"$ref": "#/definitions/text_node"
|
2884
|
+
},
|
2885
|
+
{
|
2886
|
+
"type": "object",
|
2887
|
+
"properties": {
|
2888
|
+
"marks": {
|
2889
|
+
"type": "array",
|
2890
|
+
"maxItems": 0
|
2891
|
+
}
|
2892
|
+
},
|
2893
|
+
"additionalProperties": true
|
2894
|
+
}
|
2895
|
+
]
|
2896
|
+
},
|
2904
2897
|
"textColor_mark": {
|
2905
2898
|
"type": "object",
|
2906
2899
|
"properties": {
|
@@ -3,8 +3,8 @@
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source files in "packages/adf-schema/src/next-schema" ,
|
4
4
|
* and run "yarn workspace @atlaskit/adf-schema build:schema:all" to regenerate this file.
|
5
5
|
*/
|
6
|
-
import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BlockquoteWithoutNestedCodeblockOrMediaDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition,
|
7
|
-
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BlockquoteWithoutNestedCodeblockOrMediaDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | PanelWithNestedBlockquoteStage0Definition | TableDefinition | TableWithNestedTableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition |
|
6
|
+
import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BlockquoteWithoutNestedCodeblockOrMediaDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExpandWithoutNestedExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelDefinition, PanelWithNestedBlockquoteStage0Definition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StatusStage0Definition, TableDefinition, TableWithNestedTableDefinition, TaskListDefinition, TextCodeInlineDefinition, TextDefinition, TextFormattedDefinition, UnsupportedBlockDefinition, UnsupportedInlineDefinition } from './nodeTypes';
|
7
|
+
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | BlockquoteWithoutNestedCodeblockOrMediaDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | PanelWithNestedBlockquoteStage0Definition | TableDefinition | TableWithNestedTableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ExpandWithoutNestedExpandDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
8
8
|
export type BlockRootOnlyDefinition = Array<MultiBodiedExtensionStage0Definition>;
|
9
9
|
export type InlineDefinition = Array<TextDefinition | TextFormattedDefinition | TextCodeInlineDefinition | DateDefinition | DateStage0Definition | EmojiDefinition | EmojiStage0Definition | HardBreakDefinition | InlineCardDefinition | InlineCardStage0Definition | MentionDefinition | MentionStage0Definition | PlaceholderDefinition | StatusDefinition | StatusStage0Definition | InlineExtensionDefinition | InlineExtensionWithMarksDefinition | MediaInlineDefinition | ImageDefinition | ConfluenceJiraIssueDefinition | ConfluenceUnsupportedInlineDefinition | UnsupportedInlineDefinition>;
|
10
10
|
export type NonNestableBlockContentDefinition = Array<ParagraphWithNoMarksDefinition | PanelDefinition | BlockquoteDefinition | OrderedListDefinition | BulletListDefinition | RuleDefinition | HeadingWithNoMarksDefinition | CodeBlockDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | DecisionListDefinition | TaskListDefinition | TableDefinition | TableWithNestedTableDefinition | BlockCardDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | UnsupportedBlockDefinition>;
|
@@ -91,7 +91,7 @@ export type CaptionNode = PMNode & CaptionDefinition;
|
|
91
91
|
export declare const caption: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<CaptionNode>) => import("prosemirror-model").NodeSpec;
|
92
92
|
export interface CodeBlockDefinition {
|
93
93
|
type: 'codeBlock';
|
94
|
-
content: Array<
|
94
|
+
content: Array<TextWithNoMarksDefinition | UnsupportedInlineDefinition>;
|
95
95
|
attrs: {
|
96
96
|
language?: string;
|
97
97
|
uniqueId?: string;
|
@@ -101,7 +101,7 @@ export type CodeBlockNode = PMNode & CodeBlockDefinition;
|
|
101
101
|
export declare const codeBlock: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<CodeBlockNode>) => import("prosemirror-model").NodeSpec;
|
102
102
|
export interface CodeBlockRootOnlyDefinition {
|
103
103
|
type: 'codeBlock';
|
104
|
-
content: Array<
|
104
|
+
content: Array<TextWithNoMarksDefinition | UnsupportedInlineDefinition>;
|
105
105
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
106
106
|
attrs: {
|
107
107
|
language?: string;
|
@@ -179,7 +179,7 @@ export type DecisionListNode = PMNode & DecisionListDefinition;
|
|
179
179
|
export declare const decisionList: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<DecisionListNode>) => import("prosemirror-model").NodeSpec;
|
180
180
|
export interface DocDefinition {
|
181
181
|
type: 'doc';
|
182
|
-
content: Array<BlockDefinition | BlockRootOnlyDefinition | CodeBlockRootOnlyDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition>;
|
182
|
+
content: Array<BlockDefinition | BlockRootOnlyDefinition | CodeBlockRootOnlyDefinition | ExpandRootOnlyDefinition | LayoutSectionDefinition | LayoutSectionFullDefinition | LayoutSectionWithSingleColumnStage0Definition>;
|
183
183
|
}
|
184
184
|
export type DocNode = PMNode & DocDefinition;
|
185
185
|
export declare const doc: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<DocNode>) => import("prosemirror-model").NodeSpec;
|
@@ -221,7 +221,6 @@ export declare const emojiStage0: ({ parseDOM, toDOM, toDebugString }: import(".
|
|
221
221
|
export interface ExpandDefinition {
|
222
222
|
type: 'expand';
|
223
223
|
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
224
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
225
224
|
attrs: {
|
226
225
|
title?: string;
|
227
226
|
__expanded?: boolean;
|
@@ -229,19 +228,20 @@ export interface ExpandDefinition {
|
|
229
228
|
}
|
230
229
|
export type ExpandNode = PMNode & ExpandDefinition;
|
231
230
|
export declare const expand: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ExpandNode>) => import("prosemirror-model").NodeSpec;
|
232
|
-
export interface
|
231
|
+
export interface ExpandRootOnlyDefinition {
|
233
232
|
type: 'expand';
|
233
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
234
|
+
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
234
235
|
attrs: {
|
235
236
|
title?: string;
|
236
237
|
__expanded?: boolean;
|
237
238
|
};
|
238
239
|
}
|
239
|
-
export type
|
240
|
-
export declare const
|
240
|
+
export type ExpandRootOnlyNode = PMNode & ExpandRootOnlyDefinition;
|
241
|
+
export declare const expandRootOnly: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ExpandRootOnlyNode>) => import("prosemirror-model").NodeSpec;
|
241
242
|
export interface ExpandWithoutNestedExpandDefinition {
|
242
243
|
type: 'expand';
|
243
244
|
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
244
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
245
245
|
attrs: {
|
246
246
|
title?: string;
|
247
247
|
__expanded?: boolean;
|
@@ -880,6 +880,11 @@ export interface TextFormattedDefinition {
|
|
880
880
|
}
|
881
881
|
export type TextFormattedNode = PMNode & TextFormattedDefinition;
|
882
882
|
export declare const textFormatted: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TextFormattedNode>) => import("prosemirror-model").NodeSpec;
|
883
|
+
export interface TextWithNoMarksDefinition {
|
884
|
+
type: 'text';
|
885
|
+
}
|
886
|
+
export type TextWithNoMarksNode = PMNode & TextWithNoMarksDefinition;
|
887
|
+
export declare const textWithNoMarks: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TextWithNoMarksNode>) => import("prosemirror-model").NodeSpec;
|
883
888
|
export interface UnsupportedBlockDefinition {
|
884
889
|
type: 'unsupportedBlock';
|
885
890
|
attrs: {
|
@@ -5,10 +5,8 @@
|
|
5
5
|
*
|
6
6
|
* Has slight differences from the original blockGroup:
|
7
7
|
* - no base paragraph
|
8
|
-
* - no base codeBlock
|
9
8
|
* - no base extension
|
10
9
|
* - no base mediaSingle
|
11
10
|
* - no base heading
|
12
|
-
* - no base expand
|
13
11
|
*/
|
14
12
|
export declare const blockContentGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeGroup").ADFNodeGroup;
|
@@ -1,13 +1,8 @@
|
|
1
|
-
export declare const expand: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "without_nested_expand", "
|
1
|
+
export declare const expand: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "without_nested_expand", "root_only"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
2
2
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
3
3
|
ignore: ("json-schema" | "validator-spec")[];
|
4
4
|
} & {
|
5
5
|
marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
|
6
|
-
|
7
|
-
|
8
|
-
} & {
|
9
|
-
content: any[];
|
10
|
-
marks: any[];
|
11
|
-
noMarks: true;
|
12
|
-
ignore: any[];
|
6
|
+
noMarks: false;
|
7
|
+
noExtend: true;
|
13
8
|
}>;
|
@@ -1,4 +1,7 @@
|
|
1
|
-
export declare const text: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "link_inline", "formatted", "code_inline"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
1
|
+
export declare const text: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "with_no_marks", "link_inline", "formatted", "code_inline"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
2
|
+
marks: any[];
|
3
|
+
noMarks: true;
|
4
|
+
} & {
|
2
5
|
marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
|
3
6
|
ignore: ("pm-spec" | "json-schema")[];
|
4
7
|
} & {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CodeBlockWithMarksDefinition as CodeBlockWithMarks } from './code-block';
|
2
|
-
import {
|
2
|
+
import { ExpandRootOnlyDefinition as ExpandRootOnly } from './expand';
|
3
3
|
import { LayoutSectionDefinition as LayoutSection } from './layout-section';
|
4
4
|
import { ParagraphWithIndentationDefinition } from './paragraph';
|
5
5
|
import { BlockContent } from './types/block-content';
|
@@ -13,6 +13,6 @@ export interface DocNode {
|
|
13
13
|
/**
|
14
14
|
* @allowUnsupportedBlock true
|
15
15
|
*/
|
16
|
-
content: Array<BlockContent | LayoutSection | CodeBlockWithMarks |
|
16
|
+
content: Array<BlockContent | LayoutSection | CodeBlockWithMarks | ExpandRootOnly | ParagraphWithIndentationDefinition | MultiBodiedExtension>;
|
17
17
|
}
|
18
18
|
export declare const doc: import("prosemirror-model").NodeSpec;
|