@atlaskit/adf-schema 35.1.1 → 35.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/index.js +12 -0
- package/dist/cjs/schema/create-schema.js +2 -2
- package/dist/cjs/schema/index.js +12 -0
- package/dist/cjs/schema/marks/border.js +5 -3
- package/dist/cjs/schema/nodes/index.js +12 -0
- package/dist/cjs/schema/nodes/list-item.js +20 -2
- package/dist/cjs/schema/nodes/panel.js +33 -2
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/schema/create-schema.js +3 -3
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/marks/border.js +5 -3
- package/dist/es2019/schema/nodes/index.js +2 -2
- package/dist/es2019/schema/nodes/list-item.js +17 -0
- package/dist/es2019/schema/nodes/panel.js +28 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/schema/create-schema.js +3 -3
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/marks/border.js +5 -3
- package/dist/esm/schema/nodes/index.js +2 -2
- package/dist/esm/schema/nodes/list-item.js +17 -0
- package/dist/esm/schema/nodes/panel.js +30 -0
- package/dist/json-schema/v1/full.json +217 -193
- package/dist/json-schema/v1/stage-0.json +224 -200
- package/dist/types/index.d.ts +1 -1
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/index.d.ts +2 -2
- package/dist/types/schema/nodes/list-item.d.ts +5 -0
- package/dist/types/schema/nodes/panel.d.ts +14 -1
- package/dist/types/schema/nodes/types/list.d.ts +2 -1
- package/json-schema/v1/full.json +217 -193
- package/json-schema/v1/stage-0.json +224 -200
- package/package.json +2 -2
@@ -1438,6 +1438,93 @@
|
|
1438
1438
|
}
|
1439
1439
|
]
|
1440
1440
|
},
|
1441
|
+
"taskItem_node": {
|
1442
|
+
"type": "object",
|
1443
|
+
"properties": {
|
1444
|
+
"type": {
|
1445
|
+
"enum": [
|
1446
|
+
"taskItem"
|
1447
|
+
]
|
1448
|
+
},
|
1449
|
+
"content": {
|
1450
|
+
"type": "array",
|
1451
|
+
"items": {
|
1452
|
+
"$ref": "#/definitions/inline_node"
|
1453
|
+
}
|
1454
|
+
},
|
1455
|
+
"attrs": {
|
1456
|
+
"type": "object",
|
1457
|
+
"properties": {
|
1458
|
+
"localId": {
|
1459
|
+
"type": "string"
|
1460
|
+
},
|
1461
|
+
"state": {
|
1462
|
+
"enum": [
|
1463
|
+
"TODO",
|
1464
|
+
"DONE"
|
1465
|
+
]
|
1466
|
+
}
|
1467
|
+
},
|
1468
|
+
"required": [
|
1469
|
+
"localId",
|
1470
|
+
"state"
|
1471
|
+
],
|
1472
|
+
"additionalProperties": false
|
1473
|
+
}
|
1474
|
+
},
|
1475
|
+
"required": [
|
1476
|
+
"type",
|
1477
|
+
"attrs"
|
1478
|
+
],
|
1479
|
+
"additionalProperties": false
|
1480
|
+
},
|
1481
|
+
"taskList_node": {
|
1482
|
+
"type": "object",
|
1483
|
+
"properties": {
|
1484
|
+
"type": {
|
1485
|
+
"enum": [
|
1486
|
+
"taskList"
|
1487
|
+
]
|
1488
|
+
},
|
1489
|
+
"content": {
|
1490
|
+
"type": "array",
|
1491
|
+
"items": [
|
1492
|
+
{
|
1493
|
+
"$ref": "#/definitions/taskItem_node"
|
1494
|
+
},
|
1495
|
+
{
|
1496
|
+
"anyOf": [
|
1497
|
+
{
|
1498
|
+
"$ref": "#/definitions/taskItem_node"
|
1499
|
+
},
|
1500
|
+
{
|
1501
|
+
"$ref": "#/definitions/taskList_node"
|
1502
|
+
}
|
1503
|
+
]
|
1504
|
+
}
|
1505
|
+
],
|
1506
|
+
"minItems": 1
|
1507
|
+
},
|
1508
|
+
"attrs": {
|
1509
|
+
"type": "object",
|
1510
|
+
"properties": {
|
1511
|
+
"localId": {
|
1512
|
+
"type": "string"
|
1513
|
+
}
|
1514
|
+
},
|
1515
|
+
"required": [
|
1516
|
+
"localId"
|
1517
|
+
],
|
1518
|
+
"additionalProperties": false
|
1519
|
+
}
|
1520
|
+
},
|
1521
|
+
"required": [
|
1522
|
+
"type",
|
1523
|
+
"content",
|
1524
|
+
"attrs"
|
1525
|
+
],
|
1526
|
+
"additionalProperties": false
|
1527
|
+
},
|
1441
1528
|
"listItem_node": {
|
1442
1529
|
"type": "object",
|
1443
1530
|
"properties": {
|
@@ -1479,6 +1566,9 @@
|
|
1479
1566
|
{
|
1480
1567
|
"$ref": "#/definitions/mediaSingle_full_node"
|
1481
1568
|
},
|
1569
|
+
{
|
1570
|
+
"$ref": "#/definitions/taskList_node"
|
1571
|
+
},
|
1482
1572
|
{
|
1483
1573
|
"$ref": "#/definitions/bulletList_node"
|
1484
1574
|
},
|
@@ -1644,123 +1734,6 @@
|
|
1644
1734
|
}
|
1645
1735
|
]
|
1646
1736
|
},
|
1647
|
-
"panel_node": {
|
1648
|
-
"type": "object",
|
1649
|
-
"properties": {
|
1650
|
-
"type": {
|
1651
|
-
"enum": [
|
1652
|
-
"panel"
|
1653
|
-
]
|
1654
|
-
},
|
1655
|
-
"attrs": {
|
1656
|
-
"type": "object",
|
1657
|
-
"properties": {
|
1658
|
-
"panelType": {
|
1659
|
-
"enum": [
|
1660
|
-
"info",
|
1661
|
-
"note",
|
1662
|
-
"tip",
|
1663
|
-
"warning",
|
1664
|
-
"error",
|
1665
|
-
"success",
|
1666
|
-
"custom"
|
1667
|
-
]
|
1668
|
-
},
|
1669
|
-
"panelIcon": {
|
1670
|
-
"type": "string"
|
1671
|
-
},
|
1672
|
-
"panelIconId": {
|
1673
|
-
"type": "string"
|
1674
|
-
},
|
1675
|
-
"panelIconText": {
|
1676
|
-
"type": "string"
|
1677
|
-
},
|
1678
|
-
"panelColor": {
|
1679
|
-
"type": "string"
|
1680
|
-
}
|
1681
|
-
},
|
1682
|
-
"required": [
|
1683
|
-
"panelType"
|
1684
|
-
],
|
1685
|
-
"additionalProperties": false
|
1686
|
-
},
|
1687
|
-
"content": {
|
1688
|
-
"type": "array",
|
1689
|
-
"items": {
|
1690
|
-
"anyOf": [
|
1691
|
-
{
|
1692
|
-
"$ref": "#/definitions/blockCard_node"
|
1693
|
-
},
|
1694
|
-
{
|
1695
|
-
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
1696
|
-
},
|
1697
|
-
{
|
1698
|
-
"$ref": "#/definitions/bulletList_node"
|
1699
|
-
},
|
1700
|
-
{
|
1701
|
-
"$ref": "#/definitions/orderedList_node"
|
1702
|
-
},
|
1703
|
-
{
|
1704
|
-
"$ref": "#/definitions/heading_with_no_marks_node"
|
1705
|
-
}
|
1706
|
-
]
|
1707
|
-
},
|
1708
|
-
"minItems": 1
|
1709
|
-
}
|
1710
|
-
},
|
1711
|
-
"required": [
|
1712
|
-
"type",
|
1713
|
-
"attrs",
|
1714
|
-
"content"
|
1715
|
-
],
|
1716
|
-
"additionalProperties": false
|
1717
|
-
},
|
1718
|
-
"blockquote_node": {
|
1719
|
-
"type": "object",
|
1720
|
-
"properties": {
|
1721
|
-
"type": {
|
1722
|
-
"enum": [
|
1723
|
-
"blockquote"
|
1724
|
-
]
|
1725
|
-
},
|
1726
|
-
"content": {
|
1727
|
-
"type": "array",
|
1728
|
-
"items": {
|
1729
|
-
"anyOf": [
|
1730
|
-
{
|
1731
|
-
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
1732
|
-
},
|
1733
|
-
{
|
1734
|
-
"$ref": "#/definitions/bulletList_node"
|
1735
|
-
},
|
1736
|
-
{
|
1737
|
-
"$ref": "#/definitions/orderedList_node"
|
1738
|
-
}
|
1739
|
-
]
|
1740
|
-
},
|
1741
|
-
"minItems": 1
|
1742
|
-
}
|
1743
|
-
},
|
1744
|
-
"required": [
|
1745
|
-
"type",
|
1746
|
-
"content"
|
1747
|
-
],
|
1748
|
-
"additionalProperties": false
|
1749
|
-
},
|
1750
|
-
"rule_node": {
|
1751
|
-
"type": "object",
|
1752
|
-
"properties": {
|
1753
|
-
"type": {
|
1754
|
-
"enum": [
|
1755
|
-
"rule"
|
1756
|
-
]
|
1757
|
-
}
|
1758
|
-
},
|
1759
|
-
"required": [
|
1760
|
-
"type"
|
1761
|
-
],
|
1762
|
-
"additionalProperties": false
|
1763
|
-
},
|
1764
1737
|
"mediaGroup_node": {
|
1765
1738
|
"type": "object",
|
1766
1739
|
"properties": {
|
@@ -1855,90 +1828,141 @@
|
|
1855
1828
|
],
|
1856
1829
|
"additionalProperties": false
|
1857
1830
|
},
|
1858
|
-
"
|
1831
|
+
"rule_node": {
|
1859
1832
|
"type": "object",
|
1860
1833
|
"properties": {
|
1861
1834
|
"type": {
|
1862
1835
|
"enum": [
|
1863
|
-
"
|
1836
|
+
"rule"
|
1837
|
+
]
|
1838
|
+
}
|
1839
|
+
},
|
1840
|
+
"required": [
|
1841
|
+
"type"
|
1842
|
+
],
|
1843
|
+
"additionalProperties": false
|
1844
|
+
},
|
1845
|
+
"panel_node": {
|
1846
|
+
"type": "object",
|
1847
|
+
"properties": {
|
1848
|
+
"type": {
|
1849
|
+
"enum": [
|
1850
|
+
"panel"
|
1864
1851
|
]
|
1865
|
-
},
|
1866
|
-
"content": {
|
1867
|
-
"type": "array",
|
1868
|
-
"items": {
|
1869
|
-
"$ref": "#/definitions/inline_node"
|
1870
|
-
}
|
1871
1852
|
},
|
1872
1853
|
"attrs": {
|
1873
1854
|
"type": "object",
|
1874
1855
|
"properties": {
|
1875
|
-
"
|
1876
|
-
"type": "string"
|
1877
|
-
},
|
1878
|
-
"state": {
|
1856
|
+
"panelType": {
|
1879
1857
|
"enum": [
|
1880
|
-
"
|
1881
|
-
"
|
1858
|
+
"info",
|
1859
|
+
"note",
|
1860
|
+
"tip",
|
1861
|
+
"warning",
|
1862
|
+
"error",
|
1863
|
+
"success",
|
1864
|
+
"custom"
|
1882
1865
|
]
|
1866
|
+
},
|
1867
|
+
"panelIcon": {
|
1868
|
+
"type": "string"
|
1869
|
+
},
|
1870
|
+
"panelIconId": {
|
1871
|
+
"type": "string"
|
1872
|
+
},
|
1873
|
+
"panelIconText": {
|
1874
|
+
"type": "string"
|
1875
|
+
},
|
1876
|
+
"panelColor": {
|
1877
|
+
"type": "string"
|
1883
1878
|
}
|
1884
1879
|
},
|
1885
1880
|
"required": [
|
1886
|
-
"
|
1887
|
-
"state"
|
1881
|
+
"panelType"
|
1888
1882
|
],
|
1889
1883
|
"additionalProperties": false
|
1884
|
+
},
|
1885
|
+
"content": {
|
1886
|
+
"type": "array",
|
1887
|
+
"items": {
|
1888
|
+
"anyOf": [
|
1889
|
+
{
|
1890
|
+
"$ref": "#/definitions/codeBlock_with_no_marks_node"
|
1891
|
+
},
|
1892
|
+
{
|
1893
|
+
"$ref": "#/definitions/blockCard_node"
|
1894
|
+
},
|
1895
|
+
{
|
1896
|
+
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
1897
|
+
},
|
1898
|
+
{
|
1899
|
+
"$ref": "#/definitions/mediaSingle_caption_node"
|
1900
|
+
},
|
1901
|
+
{
|
1902
|
+
"$ref": "#/definitions/mediaSingle_full_node"
|
1903
|
+
},
|
1904
|
+
{
|
1905
|
+
"$ref": "#/definitions/taskList_node"
|
1906
|
+
},
|
1907
|
+
{
|
1908
|
+
"$ref": "#/definitions/bulletList_node"
|
1909
|
+
},
|
1910
|
+
{
|
1911
|
+
"$ref": "#/definitions/orderedList_node"
|
1912
|
+
},
|
1913
|
+
{
|
1914
|
+
"$ref": "#/definitions/heading_with_no_marks_node"
|
1915
|
+
},
|
1916
|
+
{
|
1917
|
+
"$ref": "#/definitions/mediaGroup_node"
|
1918
|
+
},
|
1919
|
+
{
|
1920
|
+
"$ref": "#/definitions/decisionList_node"
|
1921
|
+
},
|
1922
|
+
{
|
1923
|
+
"$ref": "#/definitions/rule_node"
|
1924
|
+
}
|
1925
|
+
]
|
1926
|
+
},
|
1927
|
+
"minItems": 1
|
1890
1928
|
}
|
1891
1929
|
},
|
1892
1930
|
"required": [
|
1893
1931
|
"type",
|
1894
|
-
"attrs"
|
1932
|
+
"attrs",
|
1933
|
+
"content"
|
1895
1934
|
],
|
1896
1935
|
"additionalProperties": false
|
1897
1936
|
},
|
1898
|
-
"
|
1937
|
+
"blockquote_node": {
|
1899
1938
|
"type": "object",
|
1900
1939
|
"properties": {
|
1901
1940
|
"type": {
|
1902
1941
|
"enum": [
|
1903
|
-
"
|
1942
|
+
"blockquote"
|
1904
1943
|
]
|
1905
1944
|
},
|
1906
1945
|
"content": {
|
1907
1946
|
"type": "array",
|
1908
|
-
"items":
|
1909
|
-
|
1910
|
-
|
1911
|
-
|
1912
|
-
|
1913
|
-
|
1914
|
-
|
1915
|
-
|
1916
|
-
|
1917
|
-
|
1918
|
-
|
1919
|
-
|
1920
|
-
]
|
1921
|
-
}
|
1922
|
-
],
|
1923
|
-
"minItems": 1
|
1924
|
-
},
|
1925
|
-
"attrs": {
|
1926
|
-
"type": "object",
|
1927
|
-
"properties": {
|
1928
|
-
"localId": {
|
1929
|
-
"type": "string"
|
1930
|
-
}
|
1947
|
+
"items": {
|
1948
|
+
"anyOf": [
|
1949
|
+
{
|
1950
|
+
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
1951
|
+
},
|
1952
|
+
{
|
1953
|
+
"$ref": "#/definitions/bulletList_node"
|
1954
|
+
},
|
1955
|
+
{
|
1956
|
+
"$ref": "#/definitions/orderedList_node"
|
1957
|
+
}
|
1958
|
+
]
|
1931
1959
|
},
|
1932
|
-
"
|
1933
|
-
"localId"
|
1934
|
-
],
|
1935
|
-
"additionalProperties": false
|
1960
|
+
"minItems": 1
|
1936
1961
|
}
|
1937
1962
|
},
|
1938
1963
|
"required": [
|
1939
1964
|
"type",
|
1940
|
-
"content"
|
1941
|
-
"attrs"
|
1965
|
+
"content"
|
1942
1966
|
],
|
1943
1967
|
"additionalProperties": false
|
1944
1968
|
},
|
@@ -2238,6 +2262,9 @@
|
|
2238
2262
|
{
|
2239
2263
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2240
2264
|
},
|
2265
|
+
{
|
2266
|
+
"$ref": "#/definitions/taskList_node"
|
2267
|
+
},
|
2241
2268
|
{
|
2242
2269
|
"$ref": "#/definitions/bulletList_node"
|
2243
2270
|
},
|
@@ -2254,22 +2281,19 @@
|
|
2254
2281
|
"$ref": "#/definitions/heading_with_indentation_node"
|
2255
2282
|
},
|
2256
2283
|
{
|
2257
|
-
"$ref": "#/definitions/
|
2284
|
+
"$ref": "#/definitions/mediaGroup_node"
|
2258
2285
|
},
|
2259
2286
|
{
|
2260
|
-
"$ref": "#/definitions/
|
2287
|
+
"$ref": "#/definitions/decisionList_node"
|
2261
2288
|
},
|
2262
2289
|
{
|
2263
2290
|
"$ref": "#/definitions/rule_node"
|
2264
2291
|
},
|
2265
2292
|
{
|
2266
|
-
"$ref": "#/definitions/
|
2267
|
-
},
|
2268
|
-
{
|
2269
|
-
"$ref": "#/definitions/decisionList_node"
|
2293
|
+
"$ref": "#/definitions/panel_node"
|
2270
2294
|
},
|
2271
2295
|
{
|
2272
|
-
"$ref": "#/definitions/
|
2296
|
+
"$ref": "#/definitions/blockquote_node"
|
2273
2297
|
},
|
2274
2298
|
{
|
2275
2299
|
"$ref": "#/definitions/extension_with_marks_node"
|
@@ -2379,6 +2403,9 @@
|
|
2379
2403
|
{
|
2380
2404
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2381
2405
|
},
|
2406
|
+
{
|
2407
|
+
"$ref": "#/definitions/taskList_node"
|
2408
|
+
},
|
2382
2409
|
{
|
2383
2410
|
"$ref": "#/definitions/bulletList_node"
|
2384
2411
|
},
|
@@ -2389,22 +2416,19 @@
|
|
2389
2416
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
2390
2417
|
},
|
2391
2418
|
{
|
2392
|
-
"$ref": "#/definitions/
|
2419
|
+
"$ref": "#/definitions/mediaGroup_node"
|
2393
2420
|
},
|
2394
2421
|
{
|
2395
|
-
"$ref": "#/definitions/
|
2422
|
+
"$ref": "#/definitions/decisionList_node"
|
2396
2423
|
},
|
2397
2424
|
{
|
2398
2425
|
"$ref": "#/definitions/rule_node"
|
2399
2426
|
},
|
2400
2427
|
{
|
2401
|
-
"$ref": "#/definitions/
|
2402
|
-
},
|
2403
|
-
{
|
2404
|
-
"$ref": "#/definitions/decisionList_node"
|
2428
|
+
"$ref": "#/definitions/panel_node"
|
2405
2429
|
},
|
2406
2430
|
{
|
2407
|
-
"$ref": "#/definitions/
|
2431
|
+
"$ref": "#/definitions/blockquote_node"
|
2408
2432
|
},
|
2409
2433
|
{
|
2410
2434
|
"$ref": "#/definitions/extension_with_marks_node"
|
@@ -2596,6 +2620,9 @@
|
|
2596
2620
|
{
|
2597
2621
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2598
2622
|
},
|
2623
|
+
{
|
2624
|
+
"$ref": "#/definitions/taskList_node"
|
2625
|
+
},
|
2599
2626
|
{
|
2600
2627
|
"$ref": "#/definitions/bulletList_node"
|
2601
2628
|
},
|
@@ -2612,22 +2639,19 @@
|
|
2612
2639
|
"$ref": "#/definitions/heading_with_indentation_node"
|
2613
2640
|
},
|
2614
2641
|
{
|
2615
|
-
"$ref": "#/definitions/
|
2642
|
+
"$ref": "#/definitions/mediaGroup_node"
|
2616
2643
|
},
|
2617
2644
|
{
|
2618
|
-
"$ref": "#/definitions/
|
2645
|
+
"$ref": "#/definitions/decisionList_node"
|
2619
2646
|
},
|
2620
2647
|
{
|
2621
2648
|
"$ref": "#/definitions/rule_node"
|
2622
2649
|
},
|
2623
2650
|
{
|
2624
|
-
"$ref": "#/definitions/
|
2625
|
-
},
|
2626
|
-
{
|
2627
|
-
"$ref": "#/definitions/decisionList_node"
|
2651
|
+
"$ref": "#/definitions/panel_node"
|
2628
2652
|
},
|
2629
2653
|
{
|
2630
|
-
"$ref": "#/definitions/
|
2654
|
+
"$ref": "#/definitions/blockquote_node"
|
2631
2655
|
},
|
2632
2656
|
{
|
2633
2657
|
"$ref": "#/definitions/extension_with_marks_node"
|
@@ -2809,6 +2833,9 @@
|
|
2809
2833
|
{
|
2810
2834
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2811
2835
|
},
|
2836
|
+
{
|
2837
|
+
"$ref": "#/definitions/taskList_node"
|
2838
|
+
},
|
2812
2839
|
{
|
2813
2840
|
"$ref": "#/definitions/bulletList_node"
|
2814
2841
|
},
|
@@ -2819,22 +2846,19 @@
|
|
2819
2846
|
"$ref": "#/definitions/heading_with_no_marks_node"
|
2820
2847
|
},
|
2821
2848
|
{
|
2822
|
-
"$ref": "#/definitions/
|
2849
|
+
"$ref": "#/definitions/mediaGroup_node"
|
2823
2850
|
},
|
2824
2851
|
{
|
2825
|
-
"$ref": "#/definitions/
|
2852
|
+
"$ref": "#/definitions/decisionList_node"
|
2826
2853
|
},
|
2827
2854
|
{
|
2828
2855
|
"$ref": "#/definitions/rule_node"
|
2829
2856
|
},
|
2830
2857
|
{
|
2831
|
-
"$ref": "#/definitions/
|
2832
|
-
},
|
2833
|
-
{
|
2834
|
-
"$ref": "#/definitions/decisionList_node"
|
2858
|
+
"$ref": "#/definitions/panel_node"
|
2835
2859
|
},
|
2836
2860
|
{
|
2837
|
-
"$ref": "#/definitions/
|
2861
|
+
"$ref": "#/definitions/blockquote_node"
|
2838
2862
|
},
|
2839
2863
|
{
|
2840
2864
|
"$ref": "#/definitions/extension_with_marks_node"
|
@@ -2962,6 +2986,9 @@
|
|
2962
2986
|
{
|
2963
2987
|
"$ref": "#/definitions/mediaSingle_full_node"
|
2964
2988
|
},
|
2989
|
+
{
|
2990
|
+
"$ref": "#/definitions/taskList_node"
|
2991
|
+
},
|
2965
2992
|
{
|
2966
2993
|
"$ref": "#/definitions/bulletList_node"
|
2967
2994
|
},
|
@@ -2978,22 +3005,19 @@
|
|
2978
3005
|
"$ref": "#/definitions/heading_with_indentation_node"
|
2979
3006
|
},
|
2980
3007
|
{
|
2981
|
-
"$ref": "#/definitions/
|
3008
|
+
"$ref": "#/definitions/mediaGroup_node"
|
2982
3009
|
},
|
2983
3010
|
{
|
2984
|
-
"$ref": "#/definitions/
|
3011
|
+
"$ref": "#/definitions/decisionList_node"
|
2985
3012
|
},
|
2986
3013
|
{
|
2987
3014
|
"$ref": "#/definitions/rule_node"
|
2988
3015
|
},
|
2989
3016
|
{
|
2990
|
-
"$ref": "#/definitions/
|
2991
|
-
},
|
2992
|
-
{
|
2993
|
-
"$ref": "#/definitions/decisionList_node"
|
3017
|
+
"$ref": "#/definitions/panel_node"
|
2994
3018
|
},
|
2995
3019
|
{
|
2996
|
-
"$ref": "#/definitions/
|
3020
|
+
"$ref": "#/definitions/blockquote_node"
|
2997
3021
|
},
|
2998
3022
|
{
|
2999
3023
|
"$ref": "#/definitions/extension_with_marks_node"
|
package/dist/types/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
|
2
2
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
|
-
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableWithCustomWidth, 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, border, borderColorPalette, extensionFrame, multiBodiedExtension, } from './schema';
|
3
|
+
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableWithCustomWidth, 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, border, borderColorPalette, extensionFrame, multiBodiedExtension, } 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, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, 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, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, BorderMarkAttributes, BorderMarkDefinition, MultiBodiedExtensionDefinition, ExtensionFrameDefinition, } from './schema';
|
5
5
|
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, getDarkModeLCHColor, } from './utils';
|
6
6
|
export type { Match, NameToEmoji } from './utils';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, blockquoteWithList, 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, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, } from './nodes';
|
1
|
+
export { PanelType, blockCard, blockquote, blockquoteWithList, 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, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, } from './nodes';
|
2
2
|
export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, 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, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, } from './nodes';
|
3
3
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
4
4
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
@@ -27,9 +27,9 @@ export type { EmojiAttributes, EmojiDefinition } from './emoji';
|
|
27
27
|
export { image } from './image';
|
28
28
|
export { mention, toJSON as mentionToJSON } from './mention';
|
29
29
|
export type { MentionAttributes, UserType as MentionUserType, MentionDefinition, } from './mention';
|
30
|
-
export { listItem } from './list-item';
|
30
|
+
export { listItem, listItemWithTask } from './list-item';
|
31
31
|
export type { ListItemArray, ListItemDefinition } from './types/list';
|
32
|
-
export { panel, PanelType } from './panel';
|
32
|
+
export { panel, extendedPanel, PanelType } from './panel';
|
33
33
|
export type { PanelAttributes, PanelDefinition } from './panel';
|
34
34
|
export { text } from './text';
|
35
35
|
export type { TextDefinition } from './text';
|
@@ -1,2 +1,7 @@
|
|
1
1
|
import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
2
2
|
export declare const listItem: NodeSpec;
|
3
|
+
/**
|
4
|
+
* @name list_item_with_task
|
5
|
+
* @description this node allows task-list to be nested inside list-item
|
6
|
+
*/
|
7
|
+
export declare const listItemWithTask: NodeSpec;
|
@@ -4,6 +4,12 @@ import { OrderedListDefinition as OrderedList } from './types/list';
|
|
4
4
|
import { BulletListDefinition as BulletList } from './types/list';
|
5
5
|
import { HeadingDefinition as Heading } from './heading';
|
6
6
|
import { BlockCardDefinition as BlockCard } from './block-card';
|
7
|
+
import { CodeBlockDefinition as CodeBlock } from './code-block';
|
8
|
+
import { MediaGroupDefinition as MediaGroup } from './media-group';
|
9
|
+
import { MediaSingleDefinition as MediaSingle } from './media-single';
|
10
|
+
import { DecisionListDefinition as DecisionList } from './decision-list';
|
11
|
+
import { TaskListDefinition as TaskList } from './task-list';
|
12
|
+
import { RuleDefinition as Rule } from './rule';
|
7
13
|
export declare enum PanelType {
|
8
14
|
INFO = "info",
|
9
15
|
NOTE = "note",
|
@@ -30,9 +36,16 @@ export interface PanelDefinition {
|
|
30
36
|
* @minItems 1
|
31
37
|
* @allowUnsupportedBlock true
|
32
38
|
*/
|
33
|
-
content: Array<Paragraph | Heading | OrderedList | BulletList | BlockCard>;
|
39
|
+
content: Array<Paragraph | Heading | OrderedList | BulletList | BlockCard | CodeBlock | MediaGroup | MediaSingle | DecisionList | TaskList | Rule>;
|
34
40
|
}
|
35
41
|
export interface DOMAttributes {
|
36
42
|
[propName: string]: string;
|
37
43
|
}
|
38
44
|
export declare const panel: (allowCustomPanel: boolean) => NodeSpec;
|
45
|
+
/**
|
46
|
+
* @name extended_panel
|
47
|
+
* @description it allows more content to be nested as compared to panel node.
|
48
|
+
* Specifically, it allows Media, action, code-block, rule and decision nodes in
|
49
|
+
* addition to content allowed inside panel
|
50
|
+
*/
|
51
|
+
export declare const extendedPanel: (allowCustomPanel: boolean) => NodeSpec;
|