@atlaskit/adf-schema 52.7.1 → 52.9.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 +18 -0
- package/dist/cjs/index.js +6 -0
- package/dist/cjs/next-schema/full-schema.adf.js +1 -1
- package/dist/cjs/next-schema/generated/nodeTypes.js +56 -27
- package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
- package/dist/cjs/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/cjs/next-schema/marks/fontSize.js +1 -2
- package/dist/cjs/next-schema/nodes/bodiedSyncBlock.js +1 -1
- package/dist/cjs/next-schema/nodes/codeBlock.js +65 -0
- package/dist/cjs/next-schema/nodes/paragraph.js +3 -14
- package/dist/cjs/schema/createPMSpecFactory.js +4 -0
- package/dist/cjs/schema/default-schema.js +3 -6
- package/dist/cjs/schema/index.js +6 -0
- package/dist/cjs/schema/nodes/code-block.js +110 -2
- package/dist/cjs/schema/nodes/index.js +6 -0
- package/dist/cjs/validator-schema/generated/validatorSpec.js +867 -822
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/next-schema/full-schema.adf.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +55 -26
- package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
- package/dist/es2019/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/es2019/next-schema/marks/fontSize.js +1 -2
- package/dist/es2019/next-schema/nodes/bodiedSyncBlock.js +1 -1
- package/dist/es2019/next-schema/nodes/codeBlock.js +65 -0
- package/dist/es2019/next-schema/nodes/paragraph.js +3 -14
- package/dist/es2019/schema/createPMSpecFactory.js +4 -0
- package/dist/es2019/schema/default-schema.js +4 -7
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/code-block.js +107 -3
- package/dist/es2019/schema/nodes/index.js +1 -1
- package/dist/es2019/validator-schema/generated/validatorSpec.js +866 -821
- package/dist/esm/index.js +1 -1
- package/dist/esm/next-schema/full-schema.adf.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +55 -26
- package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/esm/next-schema/groups/blockGroup.js +1 -1
- package/dist/esm/next-schema/groups/nonNestableBlockContentGroup.js +1 -1
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/esm/next-schema/marks/fontSize.js +1 -2
- package/dist/esm/next-schema/nodes/bodiedSyncBlock.js +1 -1
- package/dist/esm/next-schema/nodes/codeBlock.js +65 -0
- package/dist/esm/next-schema/nodes/paragraph.js +3 -14
- package/dist/esm/schema/createPMSpecFactory.js +4 -0
- package/dist/esm/schema/default-schema.js +4 -7
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/code-block.js +109 -2
- package/dist/esm/schema/nodes/index.js +1 -1
- package/dist/esm/validator-schema/generated/validatorSpec.js +866 -821
- package/dist/json-schema/v1/full.json +73 -2
- package/dist/json-schema/v1/stage-0.json +107 -67
- package/dist/types/index.d.ts +1 -1
- package/dist/types/next-schema/generated/markTypes.d.ts +22 -21
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +3 -3
- package/dist/types/next-schema/generated/nodeTypes.d.ts +128 -118
- package/dist/types/next-schema/nodes/codeBlock.d.ts +3 -1
- package/dist/types/next-schema/nodes/paragraph.d.ts +1 -14
- package/dist/types/schema/createPMSpecFactory.d.ts +4 -0
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/code-block.d.ts +10 -0
- package/dist/types/schema/nodes/index.d.ts +1 -1
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +697 -652
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/next-schema/generated/markTypes.d.ts +22 -21
- package/dist/types-ts4.5/next-schema/generated/nodeGroupTypes.d.ts +3 -3
- package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +128 -118
- package/dist/types-ts4.5/next-schema/nodes/codeBlock.d.ts +3 -1
- package/dist/types-ts4.5/next-schema/nodes/paragraph.d.ts +1 -14
- package/dist/types-ts4.5/schema/createPMSpecFactory.d.ts +4 -0
- package/dist/types-ts4.5/schema/index.d.ts +1 -1
- package/dist/types-ts4.5/schema/nodes/code-block.d.ts +10 -0
- package/dist/types-ts4.5/schema/nodes/index.d.ts +1 -1
- package/dist/types-ts4.5/validator-schema/generated/validatorSpec.d.ts +697 -652
- package/json-schema/v1/full.json +73 -2
- package/json-schema/v1/stage-0.json +107 -67
- package/package.json +2 -2
- package/schema-generators/validator-full-schema.ts +59 -1
|
@@ -309,6 +309,9 @@
|
|
|
309
309
|
{
|
|
310
310
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
311
311
|
},
|
|
312
|
+
{
|
|
313
|
+
"$ref": "#/definitions/paragraph_with_font_size_node"
|
|
314
|
+
},
|
|
312
315
|
{
|
|
313
316
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
314
317
|
}
|
|
@@ -319,6 +322,9 @@
|
|
|
319
322
|
{
|
|
320
323
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
321
324
|
},
|
|
325
|
+
{
|
|
326
|
+
"$ref": "#/definitions/paragraph_with_font_size_node"
|
|
327
|
+
},
|
|
322
328
|
{
|
|
323
329
|
"$ref": "#/definitions/extension_with_marks_node"
|
|
324
330
|
}
|
|
@@ -1196,6 +1202,26 @@
|
|
|
1196
1202
|
}
|
|
1197
1203
|
]
|
|
1198
1204
|
},
|
|
1205
|
+
"fontSize_mark": {
|
|
1206
|
+
"type": "object",
|
|
1207
|
+
"properties": {
|
|
1208
|
+
"type": {
|
|
1209
|
+
"enum": ["fontSize"]
|
|
1210
|
+
},
|
|
1211
|
+
"attrs": {
|
|
1212
|
+
"type": "object",
|
|
1213
|
+
"properties": {
|
|
1214
|
+
"fontSize": {
|
|
1215
|
+
"enum": ["small"]
|
|
1216
|
+
}
|
|
1217
|
+
},
|
|
1218
|
+
"required": ["fontSize"],
|
|
1219
|
+
"additionalProperties": false
|
|
1220
|
+
}
|
|
1221
|
+
},
|
|
1222
|
+
"required": ["type", "attrs"],
|
|
1223
|
+
"additionalProperties": false
|
|
1224
|
+
},
|
|
1199
1225
|
"formatted_text_inline_node": {
|
|
1200
1226
|
"allOf": [
|
|
1201
1227
|
{
|
|
@@ -1679,6 +1705,9 @@
|
|
|
1679
1705
|
"type": "array",
|
|
1680
1706
|
"items": {
|
|
1681
1707
|
"anyOf": [
|
|
1708
|
+
{
|
|
1709
|
+
"$ref": "#/definitions/paragraph_with_font_size_node"
|
|
1710
|
+
},
|
|
1682
1711
|
{
|
|
1683
1712
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
1684
1713
|
},
|
|
@@ -2047,6 +2076,9 @@
|
|
|
2047
2076
|
{
|
|
2048
2077
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
2049
2078
|
},
|
|
2079
|
+
{
|
|
2080
|
+
"$ref": "#/definitions/paragraph_with_font_size_node"
|
|
2081
|
+
},
|
|
2050
2082
|
{
|
|
2051
2083
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
2052
2084
|
},
|
|
@@ -2137,6 +2169,9 @@
|
|
|
2137
2169
|
{
|
|
2138
2170
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
2139
2171
|
},
|
|
2172
|
+
{
|
|
2173
|
+
"$ref": "#/definitions/paragraph_with_font_size_node"
|
|
2174
|
+
},
|
|
2140
2175
|
{
|
|
2141
2176
|
"$ref": "#/definitions/panel_node"
|
|
2142
2177
|
},
|
|
@@ -2263,6 +2298,9 @@
|
|
|
2263
2298
|
{
|
|
2264
2299
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
2265
2300
|
},
|
|
2301
|
+
{
|
|
2302
|
+
"$ref": "#/definitions/paragraph_with_font_size_node"
|
|
2303
|
+
},
|
|
2266
2304
|
{
|
|
2267
2305
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
|
2268
2306
|
},
|
|
@@ -2346,7 +2384,33 @@
|
|
|
2346
2384
|
"marks": {
|
|
2347
2385
|
"type": "array",
|
|
2348
2386
|
"items": {
|
|
2349
|
-
"
|
|
2387
|
+
"anyOf": [
|
|
2388
|
+
{
|
|
2389
|
+
"$ref": "#/definitions/fontSize_mark"
|
|
2390
|
+
},
|
|
2391
|
+
{
|
|
2392
|
+
"$ref": "#/definitions/alignment_mark"
|
|
2393
|
+
}
|
|
2394
|
+
]
|
|
2395
|
+
}
|
|
2396
|
+
}
|
|
2397
|
+
},
|
|
2398
|
+
"additionalProperties": true
|
|
2399
|
+
}
|
|
2400
|
+
]
|
|
2401
|
+
},
|
|
2402
|
+
"paragraph_with_font_size_node": {
|
|
2403
|
+
"allOf": [
|
|
2404
|
+
{
|
|
2405
|
+
"$ref": "#/definitions/paragraph_node"
|
|
2406
|
+
},
|
|
2407
|
+
{
|
|
2408
|
+
"type": "object",
|
|
2409
|
+
"properties": {
|
|
2410
|
+
"marks": {
|
|
2411
|
+
"type": "array",
|
|
2412
|
+
"items": {
|
|
2413
|
+
"$ref": "#/definitions/fontSize_mark"
|
|
2350
2414
|
}
|
|
2351
2415
|
}
|
|
2352
2416
|
},
|
|
@@ -2365,7 +2429,14 @@
|
|
|
2365
2429
|
"marks": {
|
|
2366
2430
|
"type": "array",
|
|
2367
2431
|
"items": {
|
|
2368
|
-
"
|
|
2432
|
+
"anyOf": [
|
|
2433
|
+
{
|
|
2434
|
+
"$ref": "#/definitions/fontSize_mark"
|
|
2435
|
+
},
|
|
2436
|
+
{
|
|
2437
|
+
"$ref": "#/definitions/indentation_mark"
|
|
2438
|
+
}
|
|
2439
|
+
]
|
|
2369
2440
|
}
|
|
2370
2441
|
}
|
|
2371
2442
|
},
|
|
@@ -81,12 +81,6 @@
|
|
|
81
81
|
{
|
|
82
82
|
"$ref": "#/definitions/paragraph_with_indentation_node"
|
|
83
83
|
},
|
|
84
|
-
{
|
|
85
|
-
"$ref": "#/definitions/paragraph_with_font_size_and_alignment_node"
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"$ref": "#/definitions/paragraph_with_font_size_and_indentation_node"
|
|
89
|
-
},
|
|
90
84
|
{
|
|
91
85
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
92
86
|
},
|
|
@@ -96,6 +90,9 @@
|
|
|
96
90
|
{
|
|
97
91
|
"$ref": "#/definitions/codeBlock_node"
|
|
98
92
|
},
|
|
93
|
+
{
|
|
94
|
+
"$ref": "#/definitions/codeBlock_with_extended_attributes_node"
|
|
95
|
+
},
|
|
99
96
|
{
|
|
100
97
|
"$ref": "#/definitions/taskList_node"
|
|
101
98
|
},
|
|
@@ -453,12 +450,6 @@
|
|
|
453
450
|
{
|
|
454
451
|
"$ref": "#/definitions/paragraph_with_indentation_node"
|
|
455
452
|
},
|
|
456
|
-
{
|
|
457
|
-
"$ref": "#/definitions/paragraph_with_font_size_and_alignment_node"
|
|
458
|
-
},
|
|
459
|
-
{
|
|
460
|
-
"$ref": "#/definitions/paragraph_with_font_size_and_indentation_node"
|
|
461
|
-
},
|
|
462
453
|
{
|
|
463
454
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
464
455
|
},
|
|
@@ -778,6 +769,90 @@
|
|
|
778
769
|
"additionalProperties": false,
|
|
779
770
|
"required": ["type"]
|
|
780
771
|
},
|
|
772
|
+
"codeBlock_root_only_with_extended_attributes_node": {
|
|
773
|
+
"type": "object",
|
|
774
|
+
"properties": {
|
|
775
|
+
"type": {
|
|
776
|
+
"enum": ["codeBlock"]
|
|
777
|
+
},
|
|
778
|
+
"marks": {
|
|
779
|
+
"type": "array",
|
|
780
|
+
"items": {
|
|
781
|
+
"$ref": "#/definitions/breakout_mark"
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
"attrs": {
|
|
785
|
+
"type": "object",
|
|
786
|
+
"properties": {
|
|
787
|
+
"language": {
|
|
788
|
+
"type": "string"
|
|
789
|
+
},
|
|
790
|
+
"uniqueId": {
|
|
791
|
+
"type": "string"
|
|
792
|
+
},
|
|
793
|
+
"localId": {
|
|
794
|
+
"type": "string"
|
|
795
|
+
},
|
|
796
|
+
"wrap": {
|
|
797
|
+
"type": "boolean"
|
|
798
|
+
},
|
|
799
|
+
"hideLineNumbers": {
|
|
800
|
+
"type": "boolean"
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
"additionalProperties": false
|
|
804
|
+
},
|
|
805
|
+
"content": {
|
|
806
|
+
"type": "array",
|
|
807
|
+
"items": {
|
|
808
|
+
"$ref": "#/definitions/text_with_no_marks_node"
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
"additionalProperties": false,
|
|
813
|
+
"required": ["type"]
|
|
814
|
+
},
|
|
815
|
+
"codeBlock_with_extended_attributes_node": {
|
|
816
|
+
"type": "object",
|
|
817
|
+
"properties": {
|
|
818
|
+
"type": {
|
|
819
|
+
"enum": ["codeBlock"]
|
|
820
|
+
},
|
|
821
|
+
"marks": {
|
|
822
|
+
"type": "array",
|
|
823
|
+
"maxItems": 0
|
|
824
|
+
},
|
|
825
|
+
"attrs": {
|
|
826
|
+
"type": "object",
|
|
827
|
+
"properties": {
|
|
828
|
+
"language": {
|
|
829
|
+
"type": "string"
|
|
830
|
+
},
|
|
831
|
+
"uniqueId": {
|
|
832
|
+
"type": "string"
|
|
833
|
+
},
|
|
834
|
+
"localId": {
|
|
835
|
+
"type": "string"
|
|
836
|
+
},
|
|
837
|
+
"wrap": {
|
|
838
|
+
"type": "boolean"
|
|
839
|
+
},
|
|
840
|
+
"hideLineNumbers": {
|
|
841
|
+
"type": "boolean"
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
"additionalProperties": false
|
|
845
|
+
},
|
|
846
|
+
"content": {
|
|
847
|
+
"type": "array",
|
|
848
|
+
"items": {
|
|
849
|
+
"$ref": "#/definitions/text_with_no_marks_node"
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
"additionalProperties": false,
|
|
854
|
+
"required": ["type"]
|
|
855
|
+
},
|
|
781
856
|
"dataConsumer_mark": {
|
|
782
857
|
"type": "object",
|
|
783
858
|
"properties": {
|
|
@@ -904,6 +979,9 @@
|
|
|
904
979
|
{
|
|
905
980
|
"$ref": "#/definitions/codeBlock_node"
|
|
906
981
|
},
|
|
982
|
+
{
|
|
983
|
+
"$ref": "#/definitions/codeBlock_with_extended_attributes_node"
|
|
984
|
+
},
|
|
907
985
|
{
|
|
908
986
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
909
987
|
},
|
|
@@ -916,12 +994,6 @@
|
|
|
916
994
|
{
|
|
917
995
|
"$ref": "#/definitions/paragraph_with_indentation_node"
|
|
918
996
|
},
|
|
919
|
-
{
|
|
920
|
-
"$ref": "#/definitions/paragraph_with_font_size_and_alignment_node"
|
|
921
|
-
},
|
|
922
|
-
{
|
|
923
|
-
"$ref": "#/definitions/paragraph_with_font_size_and_indentation_node"
|
|
924
|
-
},
|
|
925
997
|
{
|
|
926
998
|
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
927
999
|
},
|
|
@@ -976,6 +1048,9 @@
|
|
|
976
1048
|
{
|
|
977
1049
|
"$ref": "#/definitions/codeBlock_root_only_node"
|
|
978
1050
|
},
|
|
1051
|
+
{
|
|
1052
|
+
"$ref": "#/definitions/codeBlock_root_only_with_extended_attributes_node"
|
|
1053
|
+
},
|
|
979
1054
|
{
|
|
980
1055
|
"$ref": "#/definitions/layoutSection_with_single_column_node"
|
|
981
1056
|
},
|
|
@@ -2414,6 +2489,9 @@
|
|
|
2414
2489
|
{
|
|
2415
2490
|
"$ref": "#/definitions/codeBlock_node"
|
|
2416
2491
|
},
|
|
2492
|
+
{
|
|
2493
|
+
"$ref": "#/definitions/codeBlock_with_extended_attributes_node"
|
|
2494
|
+
},
|
|
2417
2495
|
{
|
|
2418
2496
|
"$ref": "#/definitions/mediaGroup_node"
|
|
2419
2497
|
},
|
|
@@ -2595,25 +2673,6 @@
|
|
|
2595
2673
|
"required": ["type"]
|
|
2596
2674
|
},
|
|
2597
2675
|
"paragraph_with_alignment_node": {
|
|
2598
|
-
"allOf": [
|
|
2599
|
-
{
|
|
2600
|
-
"$ref": "#/definitions/paragraph_node"
|
|
2601
|
-
},
|
|
2602
|
-
{
|
|
2603
|
-
"type": "object",
|
|
2604
|
-
"properties": {
|
|
2605
|
-
"marks": {
|
|
2606
|
-
"type": "array",
|
|
2607
|
-
"items": {
|
|
2608
|
-
"$ref": "#/definitions/alignment_mark"
|
|
2609
|
-
}
|
|
2610
|
-
}
|
|
2611
|
-
},
|
|
2612
|
-
"additionalProperties": true
|
|
2613
|
-
}
|
|
2614
|
-
]
|
|
2615
|
-
},
|
|
2616
|
-
"paragraph_with_font_size_and_alignment_node": {
|
|
2617
2676
|
"allOf": [
|
|
2618
2677
|
{
|
|
2619
2678
|
"$ref": "#/definitions/paragraph_node"
|
|
@@ -2639,32 +2698,6 @@
|
|
|
2639
2698
|
}
|
|
2640
2699
|
]
|
|
2641
2700
|
},
|
|
2642
|
-
"paragraph_with_font_size_and_indentation_node": {
|
|
2643
|
-
"allOf": [
|
|
2644
|
-
{
|
|
2645
|
-
"$ref": "#/definitions/paragraph_node"
|
|
2646
|
-
},
|
|
2647
|
-
{
|
|
2648
|
-
"type": "object",
|
|
2649
|
-
"properties": {
|
|
2650
|
-
"marks": {
|
|
2651
|
-
"type": "array",
|
|
2652
|
-
"items": {
|
|
2653
|
-
"anyOf": [
|
|
2654
|
-
{
|
|
2655
|
-
"$ref": "#/definitions/fontSize_mark"
|
|
2656
|
-
},
|
|
2657
|
-
{
|
|
2658
|
-
"$ref": "#/definitions/indentation_mark"
|
|
2659
|
-
}
|
|
2660
|
-
]
|
|
2661
|
-
}
|
|
2662
|
-
}
|
|
2663
|
-
},
|
|
2664
|
-
"additionalProperties": true
|
|
2665
|
-
}
|
|
2666
|
-
]
|
|
2667
|
-
},
|
|
2668
2701
|
"paragraph_with_font_size_node": {
|
|
2669
2702
|
"allOf": [
|
|
2670
2703
|
{
|
|
@@ -2695,7 +2728,14 @@
|
|
|
2695
2728
|
"marks": {
|
|
2696
2729
|
"type": "array",
|
|
2697
2730
|
"items": {
|
|
2698
|
-
"
|
|
2731
|
+
"anyOf": [
|
|
2732
|
+
{
|
|
2733
|
+
"$ref": "#/definitions/fontSize_mark"
|
|
2734
|
+
},
|
|
2735
|
+
{
|
|
2736
|
+
"$ref": "#/definitions/indentation_mark"
|
|
2737
|
+
}
|
|
2738
|
+
]
|
|
2699
2739
|
}
|
|
2700
2740
|
}
|
|
2701
2741
|
},
|
|
@@ -2877,9 +2917,6 @@
|
|
|
2877
2917
|
{
|
|
2878
2918
|
"$ref": "#/definitions/paragraph_with_alignment_node"
|
|
2879
2919
|
},
|
|
2880
|
-
{
|
|
2881
|
-
"$ref": "#/definitions/paragraph_with_font_size_and_alignment_node"
|
|
2882
|
-
},
|
|
2883
2920
|
{
|
|
2884
2921
|
"$ref": "#/definitions/panel_node"
|
|
2885
2922
|
},
|
|
@@ -2907,6 +2944,9 @@
|
|
|
2907
2944
|
{
|
|
2908
2945
|
"$ref": "#/definitions/codeBlock_node"
|
|
2909
2946
|
},
|
|
2947
|
+
{
|
|
2948
|
+
"$ref": "#/definitions/codeBlock_with_extended_attributes_node"
|
|
2949
|
+
},
|
|
2910
2950
|
{
|
|
2911
2951
|
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
2912
2952
|
},
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, fontSize, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockToJSON, colorPalette,
|
|
1
|
+
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, fontSize, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, codeBlockWithExtendedAttributes, codeBlockToJSON, colorPalette,
|
|
2
2
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
|
3
3
|
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineCardWithLocalId, inlineExtension, inlineNodes, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, link, linkToJSON, listItem, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, backgroundColor, backgroundColorPalette, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } from './schema';
|
|
4
4
|
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FontSizeMarkAttrs, FontSizeMarkDefinition, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StrikeDefinition, StrongDefinition, SyncBlockDefinition, BodiedSyncBlockDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, BlockTaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, BorderMarkAttributes, BorderMarkDefinition, MultiBodiedExtensionDefinition, ExtensionFrameDefinition, BackgroundColorDefinition, } from './schema';
|
|
@@ -3,6 +3,7 @@
|
|
|
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 PMMarkSpecFactoryInstance } from '../../schema/createPMSpecFactory';
|
|
6
7
|
import type { Mark } from '@atlaskit/editor-prosemirror/model';
|
|
7
8
|
export interface AlignmentMarkAttributes {
|
|
8
9
|
align: 'center' | 'end';
|
|
@@ -14,7 +15,7 @@ export interface AlignmentDefinition {
|
|
|
14
15
|
export interface AlignmentMark extends Mark {
|
|
15
16
|
attrs: AlignmentMarkAttributes;
|
|
16
17
|
}
|
|
17
|
-
export declare const alignment:
|
|
18
|
+
export declare const alignment: PMMarkSpecFactoryInstance<AlignmentMark>;
|
|
18
19
|
export interface AnnotationMarkAttributes {
|
|
19
20
|
id: string;
|
|
20
21
|
annotationType: 'inlineComment';
|
|
@@ -26,7 +27,7 @@ export interface AnnotationDefinition {
|
|
|
26
27
|
export interface AnnotationMark extends Mark {
|
|
27
28
|
attrs: AnnotationMarkAttributes;
|
|
28
29
|
}
|
|
29
|
-
export declare const annotation:
|
|
30
|
+
export declare const annotation: PMMarkSpecFactoryInstance<AnnotationMark>;
|
|
30
31
|
export interface BackgroundColorMarkAttributes {
|
|
31
32
|
color: string;
|
|
32
33
|
}
|
|
@@ -37,7 +38,7 @@ export interface BackgroundColorDefinition {
|
|
|
37
38
|
export interface BackgroundColorMark extends Mark {
|
|
38
39
|
attrs: BackgroundColorMarkAttributes;
|
|
39
40
|
}
|
|
40
|
-
export declare const backgroundColor:
|
|
41
|
+
export declare const backgroundColor: PMMarkSpecFactoryInstance<BackgroundColorMark>;
|
|
41
42
|
export interface BorderMarkAttributes {
|
|
42
43
|
size: number;
|
|
43
44
|
color: string;
|
|
@@ -49,7 +50,7 @@ export interface BorderDefinition {
|
|
|
49
50
|
export interface BorderMark extends Mark {
|
|
50
51
|
attrs: BorderMarkAttributes;
|
|
51
52
|
}
|
|
52
|
-
export declare const border:
|
|
53
|
+
export declare const border: PMMarkSpecFactoryInstance<BorderMark>;
|
|
53
54
|
export interface BreakoutMarkAttributes {
|
|
54
55
|
mode: 'wide' | 'full-width';
|
|
55
56
|
width?: number;
|
|
@@ -61,12 +62,12 @@ export interface BreakoutDefinition {
|
|
|
61
62
|
export interface BreakoutMark extends Mark {
|
|
62
63
|
attrs: BreakoutMarkAttributes;
|
|
63
64
|
}
|
|
64
|
-
export declare const breakout:
|
|
65
|
+
export declare const breakout: PMMarkSpecFactoryInstance<BreakoutMark>;
|
|
65
66
|
export interface CodeDefinition {
|
|
66
67
|
type: 'code';
|
|
67
68
|
}
|
|
68
69
|
export type CodeMark = Mark;
|
|
69
|
-
export declare const code:
|
|
70
|
+
export declare const code: PMMarkSpecFactoryInstance<Mark>;
|
|
70
71
|
export interface ConfluenceInlineCommentMarkAttributes {
|
|
71
72
|
reference: string;
|
|
72
73
|
}
|
|
@@ -77,7 +78,7 @@ export interface ConfluenceInlineCommentDefinition {
|
|
|
77
78
|
export interface ConfluenceInlineCommentMark extends Mark {
|
|
78
79
|
attrs: ConfluenceInlineCommentMarkAttributes;
|
|
79
80
|
}
|
|
80
|
-
export declare const confluenceInlineComment:
|
|
81
|
+
export declare const confluenceInlineComment: PMMarkSpecFactoryInstance<ConfluenceInlineCommentMark>;
|
|
81
82
|
export interface DataConsumerMarkAttributes {
|
|
82
83
|
sources: Array<string>;
|
|
83
84
|
}
|
|
@@ -88,12 +89,12 @@ export interface DataConsumerDefinition {
|
|
|
88
89
|
export interface DataConsumerMark extends Mark {
|
|
89
90
|
attrs: DataConsumerMarkAttributes;
|
|
90
91
|
}
|
|
91
|
-
export declare const dataConsumer:
|
|
92
|
+
export declare const dataConsumer: PMMarkSpecFactoryInstance<DataConsumerMark>;
|
|
92
93
|
export interface EmDefinition {
|
|
93
94
|
type: 'em';
|
|
94
95
|
}
|
|
95
96
|
export type EmMark = Mark;
|
|
96
|
-
export declare const em:
|
|
97
|
+
export declare const em: PMMarkSpecFactoryInstance<Mark>;
|
|
97
98
|
export interface FontSizeMarkAttributes {
|
|
98
99
|
fontSize: 'small';
|
|
99
100
|
}
|
|
@@ -104,7 +105,7 @@ export interface FontSizeDefinition {
|
|
|
104
105
|
export interface FontSizeMark extends Mark {
|
|
105
106
|
attrs: FontSizeMarkAttributes;
|
|
106
107
|
}
|
|
107
|
-
export declare const fontSize:
|
|
108
|
+
export declare const fontSize: PMMarkSpecFactoryInstance<FontSizeMark>;
|
|
108
109
|
export interface FragmentMarkAttributes {
|
|
109
110
|
localId: string;
|
|
110
111
|
name?: string;
|
|
@@ -116,7 +117,7 @@ export interface FragmentDefinition {
|
|
|
116
117
|
export interface FragmentMark extends Mark {
|
|
117
118
|
attrs: FragmentMarkAttributes;
|
|
118
119
|
}
|
|
119
|
-
export declare const fragment:
|
|
120
|
+
export declare const fragment: PMMarkSpecFactoryInstance<FragmentMark>;
|
|
120
121
|
export interface IndentationMarkAttributes {
|
|
121
122
|
level: number;
|
|
122
123
|
}
|
|
@@ -127,7 +128,7 @@ export interface IndentationDefinition {
|
|
|
127
128
|
export interface IndentationMark extends Mark {
|
|
128
129
|
attrs: IndentationMarkAttributes;
|
|
129
130
|
}
|
|
130
|
-
export declare const indentation:
|
|
131
|
+
export declare const indentation: PMMarkSpecFactoryInstance<IndentationMark>;
|
|
131
132
|
export interface LinkMarkAttributes {
|
|
132
133
|
href: string;
|
|
133
134
|
title?: string;
|
|
@@ -143,17 +144,17 @@ export interface LinkDefinition {
|
|
|
143
144
|
export interface LinkMark extends Mark {
|
|
144
145
|
attrs: LinkMarkAttributes;
|
|
145
146
|
}
|
|
146
|
-
export declare const link:
|
|
147
|
+
export declare const link: PMMarkSpecFactoryInstance<LinkMark>;
|
|
147
148
|
export interface StrikeDefinition {
|
|
148
149
|
type: 'strike';
|
|
149
150
|
}
|
|
150
151
|
export type StrikeMark = Mark;
|
|
151
|
-
export declare const strike:
|
|
152
|
+
export declare const strike: PMMarkSpecFactoryInstance<Mark>;
|
|
152
153
|
export interface StrongDefinition {
|
|
153
154
|
type: 'strong';
|
|
154
155
|
}
|
|
155
156
|
export type StrongMark = Mark;
|
|
156
|
-
export declare const strong:
|
|
157
|
+
export declare const strong: PMMarkSpecFactoryInstance<Mark>;
|
|
157
158
|
export interface SubsupMarkAttributes {
|
|
158
159
|
type: 'sub' | 'sup';
|
|
159
160
|
}
|
|
@@ -164,7 +165,7 @@ export interface SubsupDefinition {
|
|
|
164
165
|
export interface SubsupMark extends Mark {
|
|
165
166
|
attrs: SubsupMarkAttributes;
|
|
166
167
|
}
|
|
167
|
-
export declare const subsup:
|
|
168
|
+
export declare const subsup: PMMarkSpecFactoryInstance<SubsupMark>;
|
|
168
169
|
export interface TextColorMarkAttributes {
|
|
169
170
|
color: string;
|
|
170
171
|
}
|
|
@@ -175,7 +176,7 @@ export interface TextColorDefinition {
|
|
|
175
176
|
export interface TextColorMark extends Mark {
|
|
176
177
|
attrs: TextColorMarkAttributes;
|
|
177
178
|
}
|
|
178
|
-
export declare const textColor:
|
|
179
|
+
export declare const textColor: PMMarkSpecFactoryInstance<TextColorMark>;
|
|
179
180
|
export interface TypeAheadQueryMarkAttributes {
|
|
180
181
|
trigger: string;
|
|
181
182
|
}
|
|
@@ -186,12 +187,12 @@ export interface TypeAheadQueryDefinition {
|
|
|
186
187
|
export interface TypeAheadQueryMark extends Mark {
|
|
187
188
|
attrs: TypeAheadQueryMarkAttributes;
|
|
188
189
|
}
|
|
189
|
-
export declare const typeAheadQuery:
|
|
190
|
+
export declare const typeAheadQuery: PMMarkSpecFactoryInstance<TypeAheadQueryMark>;
|
|
190
191
|
export interface UnderlineDefinition {
|
|
191
192
|
type: 'underline';
|
|
192
193
|
}
|
|
193
194
|
export type UnderlineMark = Mark;
|
|
194
|
-
export declare const underline:
|
|
195
|
+
export declare const underline: PMMarkSpecFactoryInstance<Mark>;
|
|
195
196
|
export interface UnsupportedMarkMarkAttributes {
|
|
196
197
|
originalValue: Record<string, unknown>;
|
|
197
198
|
}
|
|
@@ -202,7 +203,7 @@ export interface UnsupportedMarkDefinition {
|
|
|
202
203
|
export interface UnsupportedMarkMark extends Mark {
|
|
203
204
|
attrs: UnsupportedMarkMarkAttributes;
|
|
204
205
|
}
|
|
205
|
-
export declare const unsupportedMark:
|
|
206
|
+
export declare const unsupportedMark: PMMarkSpecFactoryInstance<UnsupportedMarkMark>;
|
|
206
207
|
export interface UnsupportedNodeAttributeMarkAttributes {
|
|
207
208
|
unsupported: Record<string, unknown>;
|
|
208
209
|
type: string;
|
|
@@ -214,4 +215,4 @@ export interface UnsupportedNodeAttributeDefinition {
|
|
|
214
215
|
export interface UnsupportedNodeAttributeMark extends Mark {
|
|
215
216
|
attrs: UnsupportedNodeAttributeMarkAttributes;
|
|
216
217
|
}
|
|
217
|
-
export declare const unsupportedNodeAttribute:
|
|
218
|
+
export declare const unsupportedNodeAttribute: PMMarkSpecFactoryInstance<UnsupportedNodeAttributeMark>;
|
|
@@ -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, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition,
|
|
7
|
-
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition |
|
|
6
|
+
import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, CodeBlockWithExtendedAttributesStage0Definition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithFontSizeDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StatusStage0Definition, TableDefinition, TableWithNestedTableDefinition, TaskListDefinition, TextCodeInlineDefinition, TextDefinition, TextFormattedDefinition, UnsupportedBlockDefinition, UnsupportedInlineDefinition } from './nodeTypes';
|
|
7
|
+
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | TableDefinition | TableWithNestedTableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | 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
|
-
export type NonNestableBlockContentDefinition = Array<ParagraphWithNoMarksDefinition |
|
|
10
|
+
export type NonNestableBlockContentDefinition = Array<ParagraphWithNoMarksDefinition | ParagraphWithFontSizeDefinition | PanelDefinition | BlockquoteDefinition | OrderedListDefinition | BulletListDefinition | RuleDefinition | HeadingWithNoMarksDefinition | CodeBlockDefinition | CodeBlockWithExtendedAttributesStage0Definition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | DecisionListDefinition | TaskListDefinition | TableDefinition | TableWithNestedTableDefinition | BlockCardDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | UnsupportedBlockDefinition>;
|