@atlaskit/adf-schema 51.5.22 → 52.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 +17 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/next-schema/generated/nodeTypes.js +2 -13
- package/dist/cjs/next-schema/nodes/list.js +4 -9
- package/dist/cjs/schema/default-schema.js +1 -1
- package/dist/cjs/schema/index.js +2 -2
- package/dist/cjs/schema/nodes/index.js +2 -2
- package/dist/cjs/schema/nodes/list-item.js +10 -23
- package/dist/cjs/validator-schema/generated/validatorSpec.js +4 -15
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/next-schema/generated/nodeTypes.js +1 -12
- package/dist/es2019/next-schema/nodes/list.js +4 -9
- package/dist/es2019/schema/default-schema.js +2 -2
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/index.js +1 -1
- package/dist/es2019/schema/nodes/list-item.js +10 -19
- package/dist/es2019/validator-schema/generated/validatorSpec.js +3 -14
- package/dist/esm/index.js +1 -1
- package/dist/esm/next-schema/generated/nodeTypes.js +1 -12
- package/dist/esm/next-schema/nodes/list.js +4 -9
- package/dist/esm/schema/default-schema.js +2 -2
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/index.js +1 -1
- package/dist/esm/schema/nodes/list-item.js +10 -21
- package/dist/esm/validator-schema/generated/validatorSpec.js +3 -14
- package/dist/json-schema/v1/stage-0.json +31 -115
- package/dist/types/index.d.ts +1 -1
- package/dist/types/next-schema/generated/nodeTypes.d.ts +5 -15
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/index.d.ts +1 -1
- package/dist/types/schema/nodes/list-item.d.ts +10 -30
- package/dist/types/validator-schema/generated/validatorSpec.d.ts +1 -12
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/next-schema/generated/nodeTypes.d.ts +5 -15
- package/dist/types-ts4.5/schema/index.d.ts +1 -1
- package/dist/types-ts4.5/schema/nodes/index.d.ts +1 -1
- package/dist/types-ts4.5/schema/nodes/list-item.d.ts +10 -30
- package/dist/types-ts4.5/validator-schema/generated/validatorSpec.d.ts +1 -12
- package/json-schema/v1/stage-0.json +31 -115
- package/package.json +2 -2
package/dist/esm/schema/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/editor/no-re-export */
|
|
2
|
-
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem,
|
|
2
|
+
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithFlexibleFirstChildStage0, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId } from './nodes';
|
|
3
3
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
|
4
4
|
// eslint-disable-next-line @repo/internal/deprecations/deprecation-ticket-required
|
|
5
5
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
|
@@ -15,7 +15,7 @@ export { paragraph } from './paragraph';
|
|
|
15
15
|
export { emoji, emojiWithLocalId } from './emoji';
|
|
16
16
|
export { image } from './image';
|
|
17
17
|
export { mention, toJSON as mentionToJSON } from './mention';
|
|
18
|
-
export { listItem,
|
|
18
|
+
export { listItem, listItemWithFlexibleFirstChildStage0, listItemWithLocalId } from './list-item';
|
|
19
19
|
export { extendedPanel, extendedPanelWithLocalId, PanelType } from './panel';
|
|
20
20
|
export { text } from './text';
|
|
21
21
|
export { default as unknownBlock } from './unknown-block';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
1
|
+
import { listItem as listItemFactory, listItemWithFlexibleFirstChildStage0 as listItemWithFlexibleFirstChildStage0Factory } from '../../next-schema/generated/nodeTypes';
|
|
4
2
|
import { uuid } from '../../utils';
|
|
5
|
-
|
|
3
|
+
|
|
6
4
|
/**
|
|
7
5
|
* @name list_item
|
|
8
6
|
* @description this node allows task-list to be nested inside list-item
|
|
@@ -15,6 +13,11 @@ export var listItem = listItemFactory({
|
|
|
15
13
|
return ['li', 0];
|
|
16
14
|
}
|
|
17
15
|
});
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @name list_item_with_local_id
|
|
19
|
+
* @description this node allows list items to have a localId attribute
|
|
20
|
+
*/
|
|
18
21
|
export var listItemWithLocalId = listItemFactory({
|
|
19
22
|
parseDOM: [{
|
|
20
23
|
tag: 'li',
|
|
@@ -33,24 +36,10 @@ export var listItemWithLocalId = listItemFactory({
|
|
|
33
36
|
});
|
|
34
37
|
|
|
35
38
|
/**
|
|
36
|
-
* @name
|
|
37
|
-
* @description
|
|
39
|
+
* @name list_item_with_flexible_first_child_stage0
|
|
40
|
+
* @description stage0 listItem with flexible first child (see EDITOR-5417)
|
|
38
41
|
*/
|
|
39
|
-
var
|
|
40
|
-
parseDOM: [{
|
|
41
|
-
tag: 'li'
|
|
42
|
-
}],
|
|
43
|
-
toDOM: function toDOM() {
|
|
44
|
-
return ['li', 0];
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
|
|
48
|
-
// Allow list-first content while preserving decisionList support in stage0.
|
|
49
|
-
var listItemStage0Content = '((paragraph | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension) (paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | decisionList | extension)*) | ((paragraph | bulletList | orderedList | taskList | mediaSingle | codeBlock | unsupportedBlock | extension)+)';
|
|
50
|
-
export var listItemWithDecisionStage0 = _objectSpread(_objectSpread({}, listItemWithDecisionStage0Spec), {}, {
|
|
51
|
-
content: listItemStage0Content
|
|
52
|
-
});
|
|
53
|
-
export var listItemWithNestedDecisionAndLocalIdStage0 = listItemWithNestedDecisionStage0Factory({
|
|
42
|
+
export var listItemWithFlexibleFirstChildStage0 = listItemWithFlexibleFirstChildStage0Factory({
|
|
54
43
|
parseDOM: [{
|
|
55
44
|
tag: 'li',
|
|
56
45
|
getAttrs: function getAttrs() {
|
|
@@ -321,7 +321,7 @@ export var bulletList = {
|
|
|
321
321
|
},
|
|
322
322
|
content: {
|
|
323
323
|
type: 'array',
|
|
324
|
-
items: [['listItem', '
|
|
324
|
+
items: [['listItem', 'listItem_with_flexible_first_child']],
|
|
325
325
|
minItems: 1
|
|
326
326
|
}
|
|
327
327
|
}
|
|
@@ -1063,7 +1063,7 @@ export var listItem = {
|
|
|
1063
1063
|
}
|
|
1064
1064
|
}
|
|
1065
1065
|
};
|
|
1066
|
-
export var
|
|
1066
|
+
export var listItem_with_flexible_first_child = ['listItem', {
|
|
1067
1067
|
props: {
|
|
1068
1068
|
content: {
|
|
1069
1069
|
type: 'array',
|
|
@@ -1073,17 +1073,6 @@ export var listItem_flexible_first_child = ['listItem', {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
}
|
|
1075
1075
|
}];
|
|
1076
|
-
export var listItem_with_nested_decision = ['listItem', {
|
|
1077
|
-
props: {
|
|
1078
|
-
content: {
|
|
1079
|
-
type: 'array',
|
|
1080
|
-
isTupleLike: true,
|
|
1081
|
-
items: [['paragraph_with_no_marks', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'decisionList', 'extension_with_marks'], ['paragraph_with_no_marks', 'bulletList', 'orderedList', 'taskList', 'mediaSingle_caption', 'mediaSingle_full', 'codeBlock', 'decisionList', 'extension_with_marks']],
|
|
1082
|
-
minItems: 1,
|
|
1083
|
-
allowUnsupportedBlock: true
|
|
1084
|
-
}
|
|
1085
|
-
}
|
|
1086
|
-
}];
|
|
1087
1076
|
export var media = {
|
|
1088
1077
|
props: {
|
|
1089
1078
|
type: {
|
|
@@ -1466,7 +1455,7 @@ export var orderedList = {
|
|
|
1466
1455
|
},
|
|
1467
1456
|
content: {
|
|
1468
1457
|
type: 'array',
|
|
1469
|
-
items: [['listItem', '
|
|
1458
|
+
items: [['listItem', 'listItem_with_flexible_first_child']],
|
|
1470
1459
|
minItems: 1
|
|
1471
1460
|
}
|
|
1472
1461
|
}
|
|
@@ -593,10 +593,7 @@
|
|
|
593
593
|
"$ref": "#/definitions/listItem_node"
|
|
594
594
|
},
|
|
595
595
|
{
|
|
596
|
-
"$ref": "#/definitions/
|
|
597
|
-
},
|
|
598
|
-
{
|
|
599
|
-
"$ref": "#/definitions/listItem_flexible_first_child_node"
|
|
596
|
+
"$ref": "#/definitions/listItem_with_flexible_first_child_node"
|
|
600
597
|
}
|
|
601
598
|
]
|
|
602
599
|
},
|
|
@@ -1818,57 +1815,6 @@
|
|
|
1818
1815
|
"required": ["type", "attrs"],
|
|
1819
1816
|
"additionalProperties": false
|
|
1820
1817
|
},
|
|
1821
|
-
"listItem_flexible_first_child_node": {
|
|
1822
|
-
"type": "object",
|
|
1823
|
-
"properties": {
|
|
1824
|
-
"type": {
|
|
1825
|
-
"enum": ["listItem"]
|
|
1826
|
-
},
|
|
1827
|
-
"attrs": {
|
|
1828
|
-
"type": "object",
|
|
1829
|
-
"properties": {
|
|
1830
|
-
"localId": {
|
|
1831
|
-
"type": "string"
|
|
1832
|
-
}
|
|
1833
|
-
},
|
|
1834
|
-
"additionalProperties": false
|
|
1835
|
-
},
|
|
1836
|
-
"content": {
|
|
1837
|
-
"type": "array",
|
|
1838
|
-
"items": {
|
|
1839
|
-
"anyOf": [
|
|
1840
|
-
{
|
|
1841
|
-
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
1842
|
-
},
|
|
1843
|
-
{
|
|
1844
|
-
"$ref": "#/definitions/bulletList_node"
|
|
1845
|
-
},
|
|
1846
|
-
{
|
|
1847
|
-
"$ref": "#/definitions/orderedList_node"
|
|
1848
|
-
},
|
|
1849
|
-
{
|
|
1850
|
-
"$ref": "#/definitions/taskList_node"
|
|
1851
|
-
},
|
|
1852
|
-
{
|
|
1853
|
-
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
1854
|
-
},
|
|
1855
|
-
{
|
|
1856
|
-
"$ref": "#/definitions/mediaSingle_full_node"
|
|
1857
|
-
},
|
|
1858
|
-
{
|
|
1859
|
-
"$ref": "#/definitions/codeBlock_node"
|
|
1860
|
-
},
|
|
1861
|
-
{
|
|
1862
|
-
"$ref": "#/definitions/extension_with_marks_node"
|
|
1863
|
-
}
|
|
1864
|
-
]
|
|
1865
|
-
},
|
|
1866
|
-
"minItems": 1
|
|
1867
|
-
}
|
|
1868
|
-
},
|
|
1869
|
-
"additionalProperties": false,
|
|
1870
|
-
"required": ["type", "content"]
|
|
1871
|
-
},
|
|
1872
1818
|
"listItem_node": {
|
|
1873
1819
|
"type": "object",
|
|
1874
1820
|
"properties": {
|
|
@@ -1941,7 +1887,7 @@
|
|
|
1941
1887
|
"additionalProperties": false,
|
|
1942
1888
|
"required": ["type", "content"]
|
|
1943
1889
|
},
|
|
1944
|
-
"
|
|
1890
|
+
"listItem_with_flexible_first_child_node": {
|
|
1945
1891
|
"type": "object",
|
|
1946
1892
|
"properties": {
|
|
1947
1893
|
"type": {
|
|
@@ -1958,61 +1904,34 @@
|
|
|
1958
1904
|
},
|
|
1959
1905
|
"content": {
|
|
1960
1906
|
"type": "array",
|
|
1961
|
-
"items":
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
{
|
|
1990
|
-
"$ref": "#/definitions/bulletList_node"
|
|
1991
|
-
},
|
|
1992
|
-
{
|
|
1993
|
-
"$ref": "#/definitions/orderedList_node"
|
|
1994
|
-
},
|
|
1995
|
-
{
|
|
1996
|
-
"$ref": "#/definitions/taskList_node"
|
|
1997
|
-
},
|
|
1998
|
-
{
|
|
1999
|
-
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
2000
|
-
},
|
|
2001
|
-
{
|
|
2002
|
-
"$ref": "#/definitions/mediaSingle_full_node"
|
|
2003
|
-
},
|
|
2004
|
-
{
|
|
2005
|
-
"$ref": "#/definitions/codeBlock_node"
|
|
2006
|
-
},
|
|
2007
|
-
{
|
|
2008
|
-
"$ref": "#/definitions/decisionList_node"
|
|
2009
|
-
},
|
|
2010
|
-
{
|
|
2011
|
-
"$ref": "#/definitions/extension_with_marks_node"
|
|
2012
|
-
}
|
|
2013
|
-
]
|
|
2014
|
-
}
|
|
2015
|
-
],
|
|
1907
|
+
"items": {
|
|
1908
|
+
"anyOf": [
|
|
1909
|
+
{
|
|
1910
|
+
"$ref": "#/definitions/paragraph_with_no_marks_node"
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
"$ref": "#/definitions/bulletList_node"
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
"$ref": "#/definitions/orderedList_node"
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
"$ref": "#/definitions/taskList_node"
|
|
1920
|
+
},
|
|
1921
|
+
{
|
|
1922
|
+
"$ref": "#/definitions/mediaSingle_caption_node"
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
"$ref": "#/definitions/mediaSingle_full_node"
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
"$ref": "#/definitions/codeBlock_node"
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
"$ref": "#/definitions/extension_with_marks_node"
|
|
1932
|
+
}
|
|
1933
|
+
]
|
|
1934
|
+
},
|
|
2016
1935
|
"minItems": 1
|
|
2017
1936
|
}
|
|
2018
1937
|
},
|
|
@@ -2568,10 +2487,7 @@
|
|
|
2568
2487
|
"$ref": "#/definitions/listItem_node"
|
|
2569
2488
|
},
|
|
2570
2489
|
{
|
|
2571
|
-
"$ref": "#/definitions/
|
|
2572
|
-
},
|
|
2573
|
-
{
|
|
2574
|
-
"$ref": "#/definitions/listItem_flexible_first_child_node"
|
|
2490
|
+
"$ref": "#/definitions/listItem_with_flexible_first_child_node"
|
|
2575
2491
|
}
|
|
2576
2492
|
]
|
|
2577
2493
|
},
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, 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, 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,
|
|
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, listItemWithFlexibleFirstChildStage0, 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, 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';
|
|
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';
|
|
@@ -101,7 +101,7 @@ export type BodiedSyncBlockNode = PMNode & BodiedSyncBlockDefinition;
|
|
|
101
101
|
export declare const bodiedSyncBlock: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BodiedSyncBlockNode>) => import("prosemirror-model").NodeSpec;
|
|
102
102
|
export interface BulletListDefinition {
|
|
103
103
|
type: 'bulletList';
|
|
104
|
-
content: Array<ListItemDefinition |
|
|
104
|
+
content: Array<ListItemDefinition | ListItemWithFlexibleFirstChildStage0Definition>;
|
|
105
105
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
106
106
|
attrs: {
|
|
107
107
|
localId?: string;
|
|
@@ -481,7 +481,7 @@ export interface ListItemDefinition {
|
|
|
481
481
|
}
|
|
482
482
|
export type ListItemNode = PMNode & ListItemDefinition;
|
|
483
483
|
export declare const listItem: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ListItemNode>) => import("prosemirror-model").NodeSpec;
|
|
484
|
-
export interface
|
|
484
|
+
export interface ListItemWithFlexibleFirstChildStage0Definition {
|
|
485
485
|
type: 'listItem';
|
|
486
486
|
content: Array<BulletListDefinition | CodeBlockDefinition | ExtensionWithMarksDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
487
487
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
@@ -489,18 +489,8 @@ export interface ListItemFlexibleFirstChildStage0Definition {
|
|
|
489
489
|
localId?: string;
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
|
-
export type
|
|
493
|
-
export declare const
|
|
494
|
-
export interface ListItemWithNestedDecisionStage0Definition {
|
|
495
|
-
type: 'listItem';
|
|
496
|
-
content: Array<BulletListDefinition | CodeBlockDefinition | CodeBlockDefinition | DecisionListDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | ExtensionWithMarksDefinition | MediaSingleCaptionDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
|
497
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
498
|
-
attrs: {
|
|
499
|
-
localId?: string;
|
|
500
|
-
};
|
|
501
|
-
}
|
|
502
|
-
export type ListItemWithNestedDecisionStage0Node = PMNode & ListItemWithNestedDecisionStage0Definition;
|
|
503
|
-
export declare const listItemWithNestedDecisionStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ListItemWithNestedDecisionStage0Node>) => import("prosemirror-model").NodeSpec;
|
|
492
|
+
export type ListItemWithFlexibleFirstChildStage0Node = PMNode & ListItemWithFlexibleFirstChildStage0Definition;
|
|
493
|
+
export declare const listItemWithFlexibleFirstChildStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ListItemWithFlexibleFirstChildStage0Node>) => import("prosemirror-model").NodeSpec;
|
|
504
494
|
export interface MediaNodeAttributes0 {
|
|
505
495
|
type: 'link' | 'file';
|
|
506
496
|
localId?: string;
|
|
@@ -707,7 +697,7 @@ export type NestedExpandWithNoMarksNode = PMNode & NestedExpandWithNoMarksDefini
|
|
|
707
697
|
export declare const nestedExpandWithNoMarks: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<NestedExpandWithNoMarksNode>) => import("prosemirror-model").NodeSpec;
|
|
708
698
|
export interface OrderedListDefinition {
|
|
709
699
|
type: 'orderedList';
|
|
710
|
-
content: Array<ListItemDefinition |
|
|
700
|
+
content: Array<ListItemDefinition | ListItemWithFlexibleFirstChildStage0Definition>;
|
|
711
701
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
712
702
|
attrs: {
|
|
713
703
|
order?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem,
|
|
1
|
+
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithFlexibleFirstChildStage0, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } 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, 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, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, BlockTaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition, BodiedSyncBlockDefinition, } 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. */
|
|
@@ -26,7 +26,7 @@ export type { EmojiAttributes, EmojiDefinition } from './emoji';
|
|
|
26
26
|
export { image } from './image';
|
|
27
27
|
export { mention, toJSON as mentionToJSON } from './mention';
|
|
28
28
|
export type { MentionAttributes, UserType as MentionUserType, MentionDefinition } from './mention';
|
|
29
|
-
export { listItem,
|
|
29
|
+
export { listItem, listItemWithFlexibleFirstChildStage0, listItemWithLocalId, } from './list-item';
|
|
30
30
|
export type { ListItemArray, ListItemDefinition } from './types/list';
|
|
31
31
|
export { extendedPanel, extendedPanelWithLocalId, PanelType } from './panel';
|
|
32
32
|
export type { PanelAttributes, PanelDefinition } from './panel';
|
|
@@ -1,36 +1,16 @@
|
|
|
1
|
-
import type { NodeSpec
|
|
2
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
1
|
+
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
3
2
|
/**
|
|
4
3
|
* @name list_item
|
|
5
4
|
* @description this node allows task-list to be nested inside list-item
|
|
6
5
|
*/
|
|
7
6
|
export declare const listItem: NodeSpec;
|
|
7
|
+
/**
|
|
8
|
+
* @name list_item_with_local_id
|
|
9
|
+
* @description this node allows list items to have a localId attribute
|
|
10
|
+
*/
|
|
8
11
|
export declare const listItemWithLocalId: NodeSpec;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
code?: boolean;
|
|
15
|
-
content: string;
|
|
16
|
-
defining?: boolean;
|
|
17
|
-
definingAsContext?: boolean;
|
|
18
|
-
definingForContent?: boolean;
|
|
19
|
-
disableDropCursor?: boolean | ((view: EditorView, pos: {
|
|
20
|
-
inside: number;
|
|
21
|
-
pos: number;
|
|
22
|
-
}, event: DragEvent) => boolean);
|
|
23
|
-
draggable?: boolean;
|
|
24
|
-
group?: string;
|
|
25
|
-
inline?: boolean;
|
|
26
|
-
isolating?: boolean;
|
|
27
|
-
leafText?: (node: Node) => string;
|
|
28
|
-
linebreakReplacement?: boolean;
|
|
29
|
-
marks?: string;
|
|
30
|
-
parseDOM?: readonly TagParseRule[];
|
|
31
|
-
selectable?: boolean;
|
|
32
|
-
toDebugString?: (node: Node) => string;
|
|
33
|
-
toDOM?: (node: Node) => DOMOutputSpec;
|
|
34
|
-
whitespace?: 'pre' | 'normal';
|
|
35
|
-
};
|
|
36
|
-
export declare const listItemWithNestedDecisionAndLocalIdStage0: NodeSpec;
|
|
12
|
+
/**
|
|
13
|
+
* @name list_item_with_flexible_first_child_stage0
|
|
14
|
+
* @description stage0 listItem with flexible first child (see EDITOR-5417)
|
|
15
|
+
*/
|
|
16
|
+
export declare const listItemWithFlexibleFirstChildStage0: NodeSpec;
|
|
@@ -1075,7 +1075,7 @@ export declare const listItem: {
|
|
|
1075
1075
|
};
|
|
1076
1076
|
};
|
|
1077
1077
|
};
|
|
1078
|
-
export declare const
|
|
1078
|
+
export declare const listItem_with_flexible_first_child: (string | {
|
|
1079
1079
|
props: {
|
|
1080
1080
|
content: {
|
|
1081
1081
|
type: string;
|
|
@@ -1085,17 +1085,6 @@ export declare const listItem_flexible_first_child: (string | {
|
|
|
1085
1085
|
};
|
|
1086
1086
|
};
|
|
1087
1087
|
})[];
|
|
1088
|
-
export declare const listItem_with_nested_decision: (string | {
|
|
1089
|
-
props: {
|
|
1090
|
-
content: {
|
|
1091
|
-
type: string;
|
|
1092
|
-
isTupleLike: boolean;
|
|
1093
|
-
items: string[][];
|
|
1094
|
-
minItems: number;
|
|
1095
|
-
allowUnsupportedBlock: boolean;
|
|
1096
|
-
};
|
|
1097
|
-
};
|
|
1098
|
-
})[];
|
|
1099
1088
|
export declare const media: {
|
|
1100
1089
|
props: {
|
|
1101
1090
|
type: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, breakout, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, code, codeBlock, codeBlockWithLocalId, 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, 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,
|
|
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, listItemWithFlexibleFirstChildStage0, 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, 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';
|
|
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';
|
|
@@ -101,7 +101,7 @@ export type BodiedSyncBlockNode = PMNode & BodiedSyncBlockDefinition;
|
|
|
101
101
|
export declare const bodiedSyncBlock: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BodiedSyncBlockNode>) => import("prosemirror-model").NodeSpec;
|
|
102
102
|
export interface BulletListDefinition {
|
|
103
103
|
type: 'bulletList';
|
|
104
|
-
content: Array<ListItemDefinition |
|
|
104
|
+
content: Array<ListItemDefinition | ListItemWithFlexibleFirstChildStage0Definition>;
|
|
105
105
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
106
106
|
attrs: {
|
|
107
107
|
localId?: string;
|
|
@@ -481,7 +481,7 @@ export interface ListItemDefinition {
|
|
|
481
481
|
}
|
|
482
482
|
export type ListItemNode = PMNode & ListItemDefinition;
|
|
483
483
|
export declare const listItem: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ListItemNode>) => import("prosemirror-model").NodeSpec;
|
|
484
|
-
export interface
|
|
484
|
+
export interface ListItemWithFlexibleFirstChildStage0Definition {
|
|
485
485
|
type: 'listItem';
|
|
486
486
|
content: Array<BulletListDefinition | CodeBlockDefinition | ExtensionWithMarksDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
|
487
487
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
@@ -489,18 +489,8 @@ export interface ListItemFlexibleFirstChildStage0Definition {
|
|
|
489
489
|
localId?: string;
|
|
490
490
|
};
|
|
491
491
|
}
|
|
492
|
-
export type
|
|
493
|
-
export declare const
|
|
494
|
-
export interface ListItemWithNestedDecisionStage0Definition {
|
|
495
|
-
type: 'listItem';
|
|
496
|
-
content: Array<BulletListDefinition | CodeBlockDefinition | CodeBlockDefinition | DecisionListDefinition | DecisionListDefinition | ExtensionWithMarksDefinition | ExtensionWithMarksDefinition | MediaSingleCaptionDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
|
497
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
498
|
-
attrs: {
|
|
499
|
-
localId?: string;
|
|
500
|
-
};
|
|
501
|
-
}
|
|
502
|
-
export type ListItemWithNestedDecisionStage0Node = PMNode & ListItemWithNestedDecisionStage0Definition;
|
|
503
|
-
export declare const listItemWithNestedDecisionStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ListItemWithNestedDecisionStage0Node>) => import("prosemirror-model").NodeSpec;
|
|
492
|
+
export type ListItemWithFlexibleFirstChildStage0Node = PMNode & ListItemWithFlexibleFirstChildStage0Definition;
|
|
493
|
+
export declare const listItemWithFlexibleFirstChildStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ListItemWithFlexibleFirstChildStage0Node>) => import("prosemirror-model").NodeSpec;
|
|
504
494
|
export interface MediaNodeAttributes0 {
|
|
505
495
|
type: 'link' | 'file';
|
|
506
496
|
localId?: string;
|
|
@@ -707,7 +697,7 @@ export type NestedExpandWithNoMarksNode = PMNode & NestedExpandWithNoMarksDefini
|
|
|
707
697
|
export declare const nestedExpandWithNoMarks: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<NestedExpandWithNoMarksNode>) => import("prosemirror-model").NodeSpec;
|
|
708
698
|
export interface OrderedListDefinition {
|
|
709
699
|
type: 'orderedList';
|
|
710
|
-
content: Array<ListItemDefinition |
|
|
700
|
+
content: Array<ListItemDefinition | ListItemWithFlexibleFirstChildStage0Definition>;
|
|
711
701
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
|
712
702
|
attrs: {
|
|
713
703
|
order?: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem,
|
|
1
|
+
export { PanelType, blockCard, blockCardWithLocalId, blockquote, extendedBlockquote, extendedBlockquoteWithLocalId, bodiedExtension, bulletList, bulletListSelector, bulletListWithLocalId, caption, captionWithLocalId, codeBlock, codeBlockWithLocalId, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, dateWithLocalId, decisionItem, decisionList, decisionListSelector, doc, embedCard, embedCardWithLocalId, emoji, emojiWithLocalId, expandWithNestedExpand, expandWithNestedExpandLocalId, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineCardWithLocalId, inlineExtension, layoutColumn, layoutColumnWithLocalId, layoutSection, layoutSectionWithLocalId, layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId, listItem, listItemWithFlexibleFirstChildStage0, listItemWithLocalId, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleFullWithLocalId, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, nestedExpandWithLocalId, orderedList, orderedListSelector, orderedListWithLocalId, orderedListWithOrder, orderedListWithOrderAndLocalId, extendedPanel, extendedPanelWithLocalId, paragraph, placeholder, placeholderWithLocalId, rule, ruleWithLocalId, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, blockTaskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, syncBlock, bodiedSyncBlock, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, tableRowWithLocalId, tableCellWithLocalId, tableHeaderWithLocalId, tableRowWithNestedTableWithLocalId, tableCellWithNestedTableWithLocalId, tableHeaderWithNestedTableWithLocalId, } 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, 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, TableWithNestedTableDefinition, TableRowWithNestedTableDefinition, TableCellWithNestedTableDefinition, TableHeaderWithNestedTableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, BlockTaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, SyncBlockDefinition, BodiedSyncBlockDefinition, } 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. */
|
|
@@ -26,7 +26,7 @@ export type { EmojiAttributes, EmojiDefinition } from './emoji';
|
|
|
26
26
|
export { image } from './image';
|
|
27
27
|
export { mention, toJSON as mentionToJSON } from './mention';
|
|
28
28
|
export type { MentionAttributes, UserType as MentionUserType, MentionDefinition } from './mention';
|
|
29
|
-
export { listItem,
|
|
29
|
+
export { listItem, listItemWithFlexibleFirstChildStage0, listItemWithLocalId, } from './list-item';
|
|
30
30
|
export type { ListItemArray, ListItemDefinition } from './types/list';
|
|
31
31
|
export { extendedPanel, extendedPanelWithLocalId, PanelType } from './panel';
|
|
32
32
|
export type { PanelAttributes, PanelDefinition } from './panel';
|
|
@@ -1,36 +1,16 @@
|
|
|
1
|
-
import type { NodeSpec
|
|
2
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
1
|
+
import type { NodeSpec } from '@atlaskit/editor-prosemirror/model';
|
|
3
2
|
/**
|
|
4
3
|
* @name list_item
|
|
5
4
|
* @description this node allows task-list to be nested inside list-item
|
|
6
5
|
*/
|
|
7
6
|
export declare const listItem: NodeSpec;
|
|
7
|
+
/**
|
|
8
|
+
* @name list_item_with_local_id
|
|
9
|
+
* @description this node allows list items to have a localId attribute
|
|
10
|
+
*/
|
|
8
11
|
export declare const listItemWithLocalId: NodeSpec;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
code?: boolean;
|
|
15
|
-
content: string;
|
|
16
|
-
defining?: boolean;
|
|
17
|
-
definingAsContext?: boolean;
|
|
18
|
-
definingForContent?: boolean;
|
|
19
|
-
disableDropCursor?: boolean | ((view: EditorView, pos: {
|
|
20
|
-
inside: number;
|
|
21
|
-
pos: number;
|
|
22
|
-
}, event: DragEvent) => boolean);
|
|
23
|
-
draggable?: boolean;
|
|
24
|
-
group?: string;
|
|
25
|
-
inline?: boolean;
|
|
26
|
-
isolating?: boolean;
|
|
27
|
-
leafText?: (node: Node) => string;
|
|
28
|
-
linebreakReplacement?: boolean;
|
|
29
|
-
marks?: string;
|
|
30
|
-
parseDOM?: readonly TagParseRule[];
|
|
31
|
-
selectable?: boolean;
|
|
32
|
-
toDebugString?: (node: Node) => string;
|
|
33
|
-
toDOM?: (node: Node) => DOMOutputSpec;
|
|
34
|
-
whitespace?: 'pre' | 'normal';
|
|
35
|
-
};
|
|
36
|
-
export declare const listItemWithNestedDecisionAndLocalIdStage0: NodeSpec;
|
|
12
|
+
/**
|
|
13
|
+
* @name list_item_with_flexible_first_child_stage0
|
|
14
|
+
* @description stage0 listItem with flexible first child (see EDITOR-5417)
|
|
15
|
+
*/
|
|
16
|
+
export declare const listItemWithFlexibleFirstChildStage0: NodeSpec;
|