@atlaskit/adf-schema 19.3.1 → 20.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 +26 -0
- package/dist/cjs/index.js +12 -6
- package/dist/cjs/schema/create-schema.js +5 -2
- package/dist/cjs/schema/default-schema.js +7 -13
- package/dist/cjs/schema/index.js +12 -6
- package/dist/cjs/schema/jira-schema.js +1 -1
- package/dist/cjs/schema/marks/fragment.js +77 -0
- package/dist/cjs/schema/marks/index.js +15 -1
- package/dist/cjs/schema/marks/unsupported-mark.js +1 -0
- package/dist/cjs/schema/nodes/bodied-extension.js +1 -1
- package/dist/cjs/schema/nodes/caption.js +0 -1
- package/dist/cjs/schema/nodes/doc.js +1 -1
- package/dist/cjs/schema/nodes/expand.js +1 -1
- package/dist/cjs/schema/nodes/index.js +0 -6
- package/dist/cjs/schema/nodes/layout-column.js +1 -1
- package/dist/cjs/schema/nodes/media-single.js +1 -1
- package/dist/cjs/schema/nodes/panel.js +2 -28
- package/dist/cjs/schema/nodes/paragraph.js +1 -1
- package/dist/cjs/schema/nodes/tableNodes.js +3 -3
- package/dist/cjs/utils/url.js +7 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/schema/create-schema.js +7 -4
- package/dist/es2019/schema/default-schema.js +7 -11
- package/dist/es2019/schema/index.js +2 -2
- package/dist/es2019/schema/jira-schema.js +1 -1
- package/dist/es2019/schema/marks/fragment.js +59 -0
- package/dist/es2019/schema/marks/index.js +2 -1
- package/dist/es2019/schema/marks/unsupported-mark.js +1 -0
- package/dist/es2019/schema/nodes/bodied-extension.js +1 -1
- package/dist/es2019/schema/nodes/caption.js +0 -1
- package/dist/es2019/schema/nodes/doc.js +1 -1
- package/dist/es2019/schema/nodes/expand.js +1 -1
- package/dist/es2019/schema/nodes/index.js +1 -1
- package/dist/es2019/schema/nodes/layout-column.js +1 -1
- package/dist/es2019/schema/nodes/media-single.js +1 -1
- package/dist/es2019/schema/nodes/panel.js +1 -28
- package/dist/es2019/schema/nodes/paragraph.js +1 -1
- package/dist/es2019/schema/nodes/tableNodes.js +3 -3
- package/dist/es2019/utils/url.js +7 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/schema/create-schema.js +7 -4
- package/dist/esm/schema/default-schema.js +7 -11
- package/dist/esm/schema/index.js +2 -2
- package/dist/esm/schema/jira-schema.js +1 -1
- package/dist/esm/schema/marks/fragment.js +64 -0
- package/dist/esm/schema/marks/index.js +2 -1
- package/dist/esm/schema/marks/unsupported-mark.js +1 -0
- package/dist/esm/schema/nodes/bodied-extension.js +1 -1
- package/dist/esm/schema/nodes/caption.js +0 -1
- package/dist/esm/schema/nodes/doc.js +1 -1
- package/dist/esm/schema/nodes/expand.js +1 -1
- package/dist/esm/schema/nodes/index.js +1 -1
- package/dist/esm/schema/nodes/layout-column.js +1 -1
- package/dist/esm/schema/nodes/media-single.js +1 -1
- package/dist/esm/schema/nodes/panel.js +1 -26
- package/dist/esm/schema/nodes/paragraph.js +1 -1
- package/dist/esm/schema/nodes/tableNodes.js +3 -3
- package/dist/esm/utils/url.js +7 -1
- package/dist/esm/version.json +1 -1
- package/dist/json-schema/v1/full.json +108 -73
- package/dist/json-schema/v1/stage-0.json +63 -26
- package/dist/types/index.d.ts +2 -2
- package/dist/types/schema/index.d.ts +3 -3
- package/dist/types/schema/marks/fragment.d.ts +30 -0
- package/dist/types/schema/marks/index.d.ts +2 -0
- package/dist/types/schema/marks/link.d.ts +3 -0
- package/dist/types/schema/nodes/block-card.d.ts +3 -0
- package/dist/types/schema/nodes/bodied-extension.d.ts +7 -5
- package/dist/types/schema/nodes/caption.d.ts +0 -1
- package/dist/types/schema/nodes/embed-card.d.ts +3 -0
- package/dist/types/schema/nodes/extension.d.ts +7 -5
- package/dist/types/schema/nodes/index.d.ts +1 -1
- package/dist/types/schema/nodes/inline-card.d.ts +0 -9
- package/dist/types/schema/nodes/inline-extension.d.ts +7 -5
- package/dist/types/schema/nodes/media-single.d.ts +0 -1
- package/dist/types/schema/nodes/panel.d.ts +1 -11
- package/json-schema/v1/full.json +108 -73
- package/json-schema/v1/stage-0.json +63 -26
- package/package.json +11 -8
- package/test-helpers/schema.ts +1 -0
@@ -569,23 +569,6 @@
|
|
569
569
|
],
|
570
570
|
"additionalProperties": false
|
571
571
|
},
|
572
|
-
"inlineExtension_with_no_marks_node": {
|
573
|
-
"allOf": [
|
574
|
-
{
|
575
|
-
"$ref": "#/definitions/inlineExtension_node"
|
576
|
-
},
|
577
|
-
{
|
578
|
-
"type": "object",
|
579
|
-
"properties": {
|
580
|
-
"marks": {
|
581
|
-
"type": "array",
|
582
|
-
"maxItems": 0
|
583
|
-
}
|
584
|
-
},
|
585
|
-
"additionalProperties": true
|
586
|
-
}
|
587
|
-
]
|
588
|
-
},
|
589
572
|
"inlineExtension_with_marks_node": {
|
590
573
|
"allOf": [
|
591
574
|
{
|
@@ -960,9 +943,6 @@
|
|
960
943
|
{
|
961
944
|
"$ref": "#/definitions/emoji_node"
|
962
945
|
},
|
963
|
-
{
|
964
|
-
"$ref": "#/definitions/inlineExtension_with_no_marks_node"
|
965
|
-
},
|
966
946
|
{
|
967
947
|
"$ref": "#/definitions/inlineExtension_with_marks_node"
|
968
948
|
},
|
@@ -1086,6 +1066,56 @@
|
|
1086
1066
|
],
|
1087
1067
|
"additionalProperties": false
|
1088
1068
|
},
|
1069
|
+
"caption_node": {
|
1070
|
+
"type": "object",
|
1071
|
+
"properties": {
|
1072
|
+
"type": {
|
1073
|
+
"enum": [
|
1074
|
+
"caption"
|
1075
|
+
]
|
1076
|
+
},
|
1077
|
+
"content": {
|
1078
|
+
"type": "array",
|
1079
|
+
"items": {
|
1080
|
+
"anyOf": [
|
1081
|
+
{
|
1082
|
+
"$ref": "#/definitions/hardBreak_node"
|
1083
|
+
},
|
1084
|
+
{
|
1085
|
+
"$ref": "#/definitions/mention_node"
|
1086
|
+
},
|
1087
|
+
{
|
1088
|
+
"$ref": "#/definitions/emoji_node"
|
1089
|
+
},
|
1090
|
+
{
|
1091
|
+
"$ref": "#/definitions/date_node"
|
1092
|
+
},
|
1093
|
+
{
|
1094
|
+
"$ref": "#/definitions/placeholder_node"
|
1095
|
+
},
|
1096
|
+
{
|
1097
|
+
"$ref": "#/definitions/inlineCard_node"
|
1098
|
+
},
|
1099
|
+
{
|
1100
|
+
"$ref": "#/definitions/status_node"
|
1101
|
+
},
|
1102
|
+
{
|
1103
|
+
"$ref": "#/definitions/formatted_text_inline_node"
|
1104
|
+
},
|
1105
|
+
{
|
1106
|
+
"$ref": "#/definitions/code_inline_node"
|
1107
|
+
}
|
1108
|
+
]
|
1109
|
+
},
|
1110
|
+
"minItems": 0
|
1111
|
+
}
|
1112
|
+
},
|
1113
|
+
"required": [
|
1114
|
+
"type",
|
1115
|
+
"content"
|
1116
|
+
],
|
1117
|
+
"additionalProperties": false
|
1118
|
+
},
|
1089
1119
|
"mediaSingle_node": {
|
1090
1120
|
"type": "object",
|
1091
1121
|
"properties": {
|
@@ -1155,6 +1185,35 @@
|
|
1155
1185
|
}
|
1156
1186
|
]
|
1157
1187
|
},
|
1188
|
+
"mediaSingle_caption_node": {
|
1189
|
+
"allOf": [
|
1190
|
+
{
|
1191
|
+
"$ref": "#/definitions/mediaSingle_node"
|
1192
|
+
},
|
1193
|
+
{
|
1194
|
+
"type": "object",
|
1195
|
+
"properties": {
|
1196
|
+
"content": {
|
1197
|
+
"type": "array",
|
1198
|
+
"items": [
|
1199
|
+
{
|
1200
|
+
"$ref": "#/definitions/media_node"
|
1201
|
+
},
|
1202
|
+
{
|
1203
|
+
"$ref": "#/definitions/caption_node"
|
1204
|
+
}
|
1205
|
+
],
|
1206
|
+
"minItems": 1,
|
1207
|
+
"maxItems": 2
|
1208
|
+
}
|
1209
|
+
},
|
1210
|
+
"required": [
|
1211
|
+
"content"
|
1212
|
+
],
|
1213
|
+
"additionalProperties": true
|
1214
|
+
}
|
1215
|
+
]
|
1216
|
+
},
|
1158
1217
|
"listItem_node": {
|
1159
1218
|
"type": "object",
|
1160
1219
|
"properties": {
|
@@ -1176,6 +1235,9 @@
|
|
1176
1235
|
},
|
1177
1236
|
{
|
1178
1237
|
"$ref": "#/definitions/mediaSingle_full_node"
|
1238
|
+
},
|
1239
|
+
{
|
1240
|
+
"$ref": "#/definitions/mediaSingle_caption_node"
|
1179
1241
|
}
|
1180
1242
|
]
|
1181
1243
|
},
|
@@ -1193,6 +1255,9 @@
|
|
1193
1255
|
{
|
1194
1256
|
"$ref": "#/definitions/mediaSingle_full_node"
|
1195
1257
|
},
|
1258
|
+
{
|
1259
|
+
"$ref": "#/definitions/mediaSingle_caption_node"
|
1260
|
+
},
|
1196
1261
|
{
|
1197
1262
|
"$ref": "#/definitions/orderedList_node"
|
1198
1263
|
}
|
@@ -1354,8 +1419,15 @@
|
|
1354
1419
|
"tip",
|
1355
1420
|
"warning",
|
1356
1421
|
"error",
|
1357
|
-
"success"
|
1422
|
+
"success",
|
1423
|
+
"custom"
|
1358
1424
|
]
|
1425
|
+
},
|
1426
|
+
"panelIcon": {
|
1427
|
+
"type": "string"
|
1428
|
+
},
|
1429
|
+
"panelColor": {
|
1430
|
+
"type": "string"
|
1359
1431
|
}
|
1360
1432
|
},
|
1361
1433
|
"required": [
|
@@ -1662,23 +1734,6 @@
|
|
1662
1734
|
],
|
1663
1735
|
"additionalProperties": false
|
1664
1736
|
},
|
1665
|
-
"extension_with_no_marks_node": {
|
1666
|
-
"allOf": [
|
1667
|
-
{
|
1668
|
-
"$ref": "#/definitions/extension_node"
|
1669
|
-
},
|
1670
|
-
{
|
1671
|
-
"type": "object",
|
1672
|
-
"properties": {
|
1673
|
-
"marks": {
|
1674
|
-
"type": "array",
|
1675
|
-
"maxItems": 0
|
1676
|
-
}
|
1677
|
-
},
|
1678
|
-
"additionalProperties": true
|
1679
|
-
}
|
1680
|
-
]
|
1681
|
-
},
|
1682
1737
|
"extension_with_marks_node": {
|
1683
1738
|
"allOf": [
|
1684
1739
|
{
|
@@ -1758,6 +1813,9 @@
|
|
1758
1813
|
{
|
1759
1814
|
"$ref": "#/definitions/mediaSingle_full_node"
|
1760
1815
|
},
|
1816
|
+
{
|
1817
|
+
"$ref": "#/definitions/mediaSingle_caption_node"
|
1818
|
+
},
|
1761
1819
|
{
|
1762
1820
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
1763
1821
|
},
|
@@ -1905,6 +1963,9 @@
|
|
1905
1963
|
{
|
1906
1964
|
"$ref": "#/definitions/mediaSingle_full_node"
|
1907
1965
|
},
|
1966
|
+
{
|
1967
|
+
"$ref": "#/definitions/mediaSingle_caption_node"
|
1968
|
+
},
|
1908
1969
|
{
|
1909
1970
|
"$ref": "#/definitions/orderedList_node"
|
1910
1971
|
},
|
@@ -1935,9 +1996,6 @@
|
|
1935
1996
|
{
|
1936
1997
|
"$ref": "#/definitions/taskList_node"
|
1937
1998
|
},
|
1938
|
-
{
|
1939
|
-
"$ref": "#/definitions/extension_with_no_marks_node"
|
1940
|
-
},
|
1941
1999
|
{
|
1942
2000
|
"$ref": "#/definitions/extension_with_marks_node"
|
1943
2001
|
},
|
@@ -2046,6 +2104,9 @@
|
|
2046
2104
|
{
|
2047
2105
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2048
2106
|
},
|
2107
|
+
{
|
2108
|
+
"$ref": "#/definitions/mediaSingle_caption_node"
|
2109
|
+
},
|
2049
2110
|
{
|
2050
2111
|
"$ref": "#/definitions/orderedList_node"
|
2051
2112
|
},
|
@@ -2070,9 +2131,6 @@
|
|
2070
2131
|
{
|
2071
2132
|
"$ref": "#/definitions/taskList_node"
|
2072
2133
|
},
|
2073
|
-
{
|
2074
|
-
"$ref": "#/definitions/extension_with_no_marks_node"
|
2075
|
-
},
|
2076
2134
|
{
|
2077
2135
|
"$ref": "#/definitions/extension_with_marks_node"
|
2078
2136
|
},
|
@@ -2214,23 +2272,6 @@
|
|
2214
2272
|
],
|
2215
2273
|
"additionalProperties": false
|
2216
2274
|
},
|
2217
|
-
"bodiedExtension_with_no_marks_node": {
|
2218
|
-
"allOf": [
|
2219
|
-
{
|
2220
|
-
"$ref": "#/definitions/bodiedExtension_node"
|
2221
|
-
},
|
2222
|
-
{
|
2223
|
-
"type": "object",
|
2224
|
-
"properties": {
|
2225
|
-
"marks": {
|
2226
|
-
"type": "array",
|
2227
|
-
"maxItems": 0
|
2228
|
-
}
|
2229
|
-
},
|
2230
|
-
"additionalProperties": true
|
2231
|
-
}
|
2232
|
-
]
|
2233
|
-
},
|
2234
2275
|
"bodiedExtension_with_marks_node": {
|
2235
2276
|
"allOf": [
|
2236
2277
|
{
|
@@ -2270,6 +2311,9 @@
|
|
2270
2311
|
{
|
2271
2312
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2272
2313
|
},
|
2314
|
+
{
|
2315
|
+
"$ref": "#/definitions/mediaSingle_caption_node"
|
2316
|
+
},
|
2273
2317
|
{
|
2274
2318
|
"$ref": "#/definitions/orderedList_node"
|
2275
2319
|
},
|
@@ -2300,9 +2344,6 @@
|
|
2300
2344
|
{
|
2301
2345
|
"$ref": "#/definitions/taskList_node"
|
2302
2346
|
},
|
2303
|
-
{
|
2304
|
-
"$ref": "#/definitions/extension_with_no_marks_node"
|
2305
|
-
},
|
2306
2347
|
{
|
2307
2348
|
"$ref": "#/definitions/extension_with_marks_node"
|
2308
2349
|
},
|
@@ -2315,9 +2356,6 @@
|
|
2315
2356
|
{
|
2316
2357
|
"$ref": "#/definitions/expand_with_no_mark_node"
|
2317
2358
|
},
|
2318
|
-
{
|
2319
|
-
"$ref": "#/definitions/bodiedExtension_with_no_marks_node"
|
2320
|
-
},
|
2321
2359
|
{
|
2322
2360
|
"$ref": "#/definitions/bodiedExtension_with_marks_node"
|
2323
2361
|
}
|
@@ -2464,6 +2502,9 @@
|
|
2464
2502
|
{
|
2465
2503
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2466
2504
|
},
|
2505
|
+
{
|
2506
|
+
"$ref": "#/definitions/mediaSingle_caption_node"
|
2507
|
+
},
|
2467
2508
|
{
|
2468
2509
|
"$ref": "#/definitions/orderedList_node"
|
2469
2510
|
},
|
@@ -2494,9 +2535,6 @@
|
|
2494
2535
|
{
|
2495
2536
|
"$ref": "#/definitions/taskList_node"
|
2496
2537
|
},
|
2497
|
-
{
|
2498
|
-
"$ref": "#/definitions/extension_with_no_marks_node"
|
2499
|
-
},
|
2500
2538
|
{
|
2501
2539
|
"$ref": "#/definitions/extension_with_marks_node"
|
2502
2540
|
},
|
@@ -2512,9 +2550,6 @@
|
|
2512
2550
|
{
|
2513
2551
|
"$ref": "#/definitions/expand_with_breakout_mark_node"
|
2514
2552
|
},
|
2515
|
-
{
|
2516
|
-
"$ref": "#/definitions/bodiedExtension_with_no_marks_node"
|
2517
|
-
},
|
2518
2553
|
{
|
2519
2554
|
"$ref": "#/definitions/bodiedExtension_with_marks_node"
|
2520
2555
|
},
|
@@ -427,6 +427,37 @@
|
|
427
427
|
],
|
428
428
|
"additionalProperties": false
|
429
429
|
},
|
430
|
+
"fragment_mark": {
|
431
|
+
"type": "object",
|
432
|
+
"properties": {
|
433
|
+
"type": {
|
434
|
+
"enum": [
|
435
|
+
"fragment"
|
436
|
+
]
|
437
|
+
},
|
438
|
+
"attrs": {
|
439
|
+
"type": "object",
|
440
|
+
"properties": {
|
441
|
+
"localId": {
|
442
|
+
"type": "string",
|
443
|
+
"minLength": 1
|
444
|
+
},
|
445
|
+
"name": {
|
446
|
+
"type": "string"
|
447
|
+
}
|
448
|
+
},
|
449
|
+
"required": [
|
450
|
+
"localId"
|
451
|
+
],
|
452
|
+
"additionalProperties": false
|
453
|
+
}
|
454
|
+
},
|
455
|
+
"required": [
|
456
|
+
"type",
|
457
|
+
"attrs"
|
458
|
+
],
|
459
|
+
"additionalProperties": false
|
460
|
+
},
|
430
461
|
"hardBreak_node": {
|
431
462
|
"type": "object",
|
432
463
|
"properties": {
|
@@ -569,7 +600,7 @@
|
|
569
600
|
],
|
570
601
|
"additionalProperties": false
|
571
602
|
},
|
572
|
-
"
|
603
|
+
"inlineExtension_with_marks_node": {
|
573
604
|
"allOf": [
|
574
605
|
{
|
575
606
|
"$ref": "#/definitions/inlineExtension_node"
|
@@ -579,14 +610,16 @@
|
|
579
610
|
"properties": {
|
580
611
|
"marks": {
|
581
612
|
"type": "array",
|
582
|
-
"
|
613
|
+
"items": {
|
614
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
615
|
+
}
|
583
616
|
}
|
584
617
|
},
|
585
618
|
"additionalProperties": true
|
586
619
|
}
|
587
620
|
]
|
588
621
|
},
|
589
|
-
"
|
622
|
+
"inlineExtension_with_experimental_marks_node": {
|
590
623
|
"allOf": [
|
591
624
|
{
|
592
625
|
"$ref": "#/definitions/inlineExtension_node"
|
@@ -597,7 +630,7 @@
|
|
597
630
|
"marks": {
|
598
631
|
"type": "array",
|
599
632
|
"items": {
|
600
|
-
"$ref": "#/definitions/
|
633
|
+
"$ref": "#/definitions/fragment_mark"
|
601
634
|
}
|
602
635
|
}
|
603
636
|
},
|
@@ -1013,10 +1046,10 @@
|
|
1013
1046
|
"$ref": "#/definitions/emoji_node"
|
1014
1047
|
},
|
1015
1048
|
{
|
1016
|
-
"$ref": "#/definitions/
|
1049
|
+
"$ref": "#/definitions/inlineExtension_with_marks_node"
|
1017
1050
|
},
|
1018
1051
|
{
|
1019
|
-
"$ref": "#/definitions/
|
1052
|
+
"$ref": "#/definitions/inlineExtension_with_experimental_marks_node"
|
1020
1053
|
},
|
1021
1054
|
{
|
1022
1055
|
"$ref": "#/definitions/date_node"
|
@@ -1809,7 +1842,7 @@
|
|
1809
1842
|
],
|
1810
1843
|
"additionalProperties": false
|
1811
1844
|
},
|
1812
|
-
"
|
1845
|
+
"extension_with_marks_node": {
|
1813
1846
|
"allOf": [
|
1814
1847
|
{
|
1815
1848
|
"$ref": "#/definitions/extension_node"
|
@@ -1819,14 +1852,16 @@
|
|
1819
1852
|
"properties": {
|
1820
1853
|
"marks": {
|
1821
1854
|
"type": "array",
|
1822
|
-
"
|
1855
|
+
"items": {
|
1856
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
1857
|
+
}
|
1823
1858
|
}
|
1824
1859
|
},
|
1825
1860
|
"additionalProperties": true
|
1826
1861
|
}
|
1827
1862
|
]
|
1828
1863
|
},
|
1829
|
-
"
|
1864
|
+
"extension_with_experimental_marks_node": {
|
1830
1865
|
"allOf": [
|
1831
1866
|
{
|
1832
1867
|
"$ref": "#/definitions/extension_node"
|
@@ -1837,7 +1872,7 @@
|
|
1837
1872
|
"marks": {
|
1838
1873
|
"type": "array",
|
1839
1874
|
"items": {
|
1840
|
-
"$ref": "#/definitions/
|
1875
|
+
"$ref": "#/definitions/fragment_mark"
|
1841
1876
|
}
|
1842
1877
|
}
|
1843
1878
|
},
|
@@ -2089,10 +2124,10 @@
|
|
2089
2124
|
"$ref": "#/definitions/taskList_node"
|
2090
2125
|
},
|
2091
2126
|
{
|
2092
|
-
"$ref": "#/definitions/
|
2127
|
+
"$ref": "#/definitions/extension_with_marks_node"
|
2093
2128
|
},
|
2094
2129
|
{
|
2095
|
-
"$ref": "#/definitions/
|
2130
|
+
"$ref": "#/definitions/extension_with_experimental_marks_node"
|
2096
2131
|
},
|
2097
2132
|
{
|
2098
2133
|
"$ref": "#/definitions/embedCard_node"
|
@@ -2227,10 +2262,10 @@
|
|
2227
2262
|
"$ref": "#/definitions/taskList_node"
|
2228
2263
|
},
|
2229
2264
|
{
|
2230
|
-
"$ref": "#/definitions/
|
2265
|
+
"$ref": "#/definitions/extension_with_marks_node"
|
2231
2266
|
},
|
2232
2267
|
{
|
2233
|
-
"$ref": "#/definitions/
|
2268
|
+
"$ref": "#/definitions/extension_with_experimental_marks_node"
|
2234
2269
|
},
|
2235
2270
|
{
|
2236
2271
|
"$ref": "#/definitions/embedCard_node"
|
@@ -2370,7 +2405,7 @@
|
|
2370
2405
|
],
|
2371
2406
|
"additionalProperties": false
|
2372
2407
|
},
|
2373
|
-
"
|
2408
|
+
"bodiedExtension_with_marks_node": {
|
2374
2409
|
"allOf": [
|
2375
2410
|
{
|
2376
2411
|
"$ref": "#/definitions/bodiedExtension_node"
|
@@ -2380,14 +2415,16 @@
|
|
2380
2415
|
"properties": {
|
2381
2416
|
"marks": {
|
2382
2417
|
"type": "array",
|
2383
|
-
"
|
2418
|
+
"items": {
|
2419
|
+
"$ref": "#/definitions/dataConsumer_mark"
|
2420
|
+
}
|
2384
2421
|
}
|
2385
2422
|
},
|
2386
2423
|
"additionalProperties": true
|
2387
2424
|
}
|
2388
2425
|
]
|
2389
2426
|
},
|
2390
|
-
"
|
2427
|
+
"bodiedExtension_with_experimental_marks_node": {
|
2391
2428
|
"allOf": [
|
2392
2429
|
{
|
2393
2430
|
"$ref": "#/definitions/bodiedExtension_node"
|
@@ -2398,7 +2435,7 @@
|
|
2398
2435
|
"marks": {
|
2399
2436
|
"type": "array",
|
2400
2437
|
"items": {
|
2401
|
-
"$ref": "#/definitions/
|
2438
|
+
"$ref": "#/definitions/fragment_mark"
|
2402
2439
|
}
|
2403
2440
|
}
|
2404
2441
|
},
|
@@ -2460,10 +2497,10 @@
|
|
2460
2497
|
"$ref": "#/definitions/taskList_node"
|
2461
2498
|
},
|
2462
2499
|
{
|
2463
|
-
"$ref": "#/definitions/
|
2500
|
+
"$ref": "#/definitions/extension_with_marks_node"
|
2464
2501
|
},
|
2465
2502
|
{
|
2466
|
-
"$ref": "#/definitions/
|
2503
|
+
"$ref": "#/definitions/extension_with_experimental_marks_node"
|
2467
2504
|
},
|
2468
2505
|
{
|
2469
2506
|
"$ref": "#/definitions/embedCard_node"
|
@@ -2475,10 +2512,10 @@
|
|
2475
2512
|
"$ref": "#/definitions/expand_with_no_mark_node"
|
2476
2513
|
},
|
2477
2514
|
{
|
2478
|
-
"$ref": "#/definitions/
|
2515
|
+
"$ref": "#/definitions/bodiedExtension_with_marks_node"
|
2479
2516
|
},
|
2480
2517
|
{
|
2481
|
-
"$ref": "#/definitions/
|
2518
|
+
"$ref": "#/definitions/bodiedExtension_with_experimental_marks_node"
|
2482
2519
|
}
|
2483
2520
|
]
|
2484
2521
|
},
|
@@ -2693,10 +2730,10 @@
|
|
2693
2730
|
"$ref": "#/definitions/taskList_node"
|
2694
2731
|
},
|
2695
2732
|
{
|
2696
|
-
"$ref": "#/definitions/
|
2733
|
+
"$ref": "#/definitions/extension_with_marks_node"
|
2697
2734
|
},
|
2698
2735
|
{
|
2699
|
-
"$ref": "#/definitions/
|
2736
|
+
"$ref": "#/definitions/extension_with_experimental_marks_node"
|
2700
2737
|
},
|
2701
2738
|
{
|
2702
2739
|
"$ref": "#/definitions/embedCard_node"
|
@@ -2711,10 +2748,10 @@
|
|
2711
2748
|
"$ref": "#/definitions/expand_with_breakout_mark_node"
|
2712
2749
|
},
|
2713
2750
|
{
|
2714
|
-
"$ref": "#/definitions/
|
2751
|
+
"$ref": "#/definitions/bodiedExtension_with_marks_node"
|
2715
2752
|
},
|
2716
2753
|
{
|
2717
|
-
"$ref": "#/definitions/
|
2754
|
+
"$ref": "#/definitions/bodiedExtension_with_experimental_marks_node"
|
2718
2755
|
},
|
2719
2756
|
{
|
2720
2757
|
"$ref": "#/definitions/layoutSection_full_node"
|
package/dist/types/index.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { AnnotationTypes, PanelType, alignment, alignmentPositionMap, annotation, bitbucketSchema, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceSchema, confluenceSchemaWithMediaSingle, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createJIRASchema, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, defaultSchema, defaultSchemaConfig, doc, em, embedCard, emoji, expand, expandToJSON, extension, getSchemaBasedOnStage, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, isSchemaWithAdvancedTextFormattingMarks, isSchemaWithBlockQuotes, isSchemaWithCodeBlock, isSchemaWithEmojis, isSchemaWithLinks, isSchemaWithLists, isSchemaWithMedia, isSchemaWithMentions, isSchemaWithSubSupMark, isSchemaWithTables, isSchemaWithTextColor, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, panel,
|
2
|
-
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, 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, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, } from './schema';
|
1
|
+
export { AnnotationTypes, PanelType, alignment, alignmentPositionMap, annotation, bitbucketSchema, blockCard, blockquote, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceSchema, confluenceSchemaWithMediaSingle, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createJIRASchema, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, defaultSchema, defaultSchemaConfig, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, getSchemaBasedOnStage, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, isSchemaWithAdvancedTextFormattingMarks, isSchemaWithBlockQuotes, isSchemaWithCodeBlock, isSchemaWithEmojis, isSchemaWithLinks, isSchemaWithLists, isSchemaWithMedia, isSchemaWithMentions, isSchemaWithSubSupMark, isSchemaWithTables, isSchemaWithTextColor, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, } from './schema';
|
2
|
+
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, 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, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, } from './schema';
|
3
3
|
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, } from './utils';
|
4
4
|
export type { Match, NameToEmoji } from './utils';
|
@@ -1,7 +1,7 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, media, mediaGroup, mediaSingle, mediaInline, mediaSingleWithCaption, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, panel,
|
1
|
+
export { PanelType, blockCard, blockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, media, mediaGroup, mediaSingle, mediaInline, mediaSingleWithCaption, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, panel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, } from './nodes';
|
2
2
|
export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, 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, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, RichMediaLayout, CellDomAttrs, } from './nodes';
|
3
|
-
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, } from './marks';
|
4
|
-
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, CodeDefinition, EmDefinition, IndentationMarkAttributes, IndentationMarkDefinition, LinkAttributes, LinkDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TextColorAttributes, TextColorDefinition, UnderlineDefinition, AnnotationId, AnnotationDataAttributes, DataConsumerAttributes, DataConsumerDefinition, } from './marks';
|
3
|
+
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, } from './marks';
|
4
|
+
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, CodeDefinition, EmDefinition, FragmentAttributes, FragmentDefinition, IndentationMarkAttributes, IndentationMarkDefinition, LinkAttributes, LinkDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TextColorAttributes, TextColorDefinition, UnderlineDefinition, AnnotationId, AnnotationDataAttributes, DataConsumerAttributes, DataConsumerDefinition, } from './marks';
|
5
5
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
6
6
|
export { inlineNodes } from './inline-nodes';
|
7
7
|
export { sanitizeNodes, createSchema } from './create-schema';
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { Mark, MarkSpec } from 'prosemirror-model';
|
2
|
+
export declare type LocalId = string;
|
3
|
+
export interface FragmentAttributes {
|
4
|
+
/**
|
5
|
+
* @minLength 1
|
6
|
+
*/
|
7
|
+
localId: LocalId;
|
8
|
+
name?: string;
|
9
|
+
}
|
10
|
+
/**
|
11
|
+
* @stage 0
|
12
|
+
* @name fragment_mark
|
13
|
+
* @description Indicates that the elements decorated with this mark belong to a "fragment" entity, which represents a collection of ADF nodes.
|
14
|
+
* This entity can be referred to later by its `localId` attribute.
|
15
|
+
*/
|
16
|
+
export interface FragmentDefinition {
|
17
|
+
type: 'fragment';
|
18
|
+
attrs: FragmentAttributes;
|
19
|
+
}
|
20
|
+
export interface FragmentMark extends Mark {
|
21
|
+
attrs: FragmentAttributes;
|
22
|
+
}
|
23
|
+
export declare const fragment: MarkSpec;
|
24
|
+
export declare const toJSON: (mark: Mark) => {
|
25
|
+
type: string;
|
26
|
+
attrs: {
|
27
|
+
name?: any;
|
28
|
+
localId: any;
|
29
|
+
};
|
30
|
+
};
|
@@ -28,3 +28,5 @@ export { unsupportedMark } from './unsupported-mark';
|
|
28
28
|
export { unsupportedNodeAttribute } from './unsupported-node-attributes';
|
29
29
|
export type { DataConsumerAttributes, DataConsumerDefinition, } from './data-consumer';
|
30
30
|
export { dataConsumer, toJSON as dataConsumerToJSON } from './data-consumer';
|
31
|
+
export type { FragmentAttributes, FragmentDefinition, LocalId, } from './fragment';
|
32
|
+
export { fragment, toJSON as fragmentToJSON } from './fragment';
|