@atlaskit/adf-schema 48.0.0 → 49.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 +6 -0
- package/dist/cjs/index.js +0 -42
- package/dist/cjs/next-schema/generated/nodeTypes.js +1 -58
- package/dist/cjs/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/cjs/next-schema/groups/blockGroup.js +1 -1
- package/dist/cjs/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/cjs/next-schema/nodes/blockquote.js +0 -8
- package/dist/cjs/next-schema/nodes/expand.js +1 -1
- package/dist/cjs/next-schema/nodes/list.js +2 -6
- package/dist/cjs/next-schema/nodes/nestedExpand.js +0 -6
- package/dist/cjs/next-schema/nodes/panel.js +0 -4
- package/dist/cjs/schema/create-schema.js +1 -1
- package/dist/cjs/schema/index.js +0 -42
- package/dist/cjs/schema/nodes/blockquote.js +2 -34
- package/dist/cjs/schema/nodes/index.js +0 -42
- package/dist/cjs/schema/nodes/list-item.js +1 -19
- package/dist/cjs/schema/nodes/nested-expand.js +2 -32
- package/dist/cjs/schema/nodes/panel.js +1 -4
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/next-schema/generated/nodeTypes.js +0 -57
- package/dist/es2019/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/es2019/next-schema/groups/blockGroup.js +1 -1
- package/dist/es2019/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/es2019/next-schema/nodes/blockquote.js +0 -8
- package/dist/es2019/next-schema/nodes/expand.js +1 -1
- package/dist/es2019/next-schema/nodes/list.js +2 -6
- package/dist/es2019/next-schema/nodes/nestedExpand.js +0 -6
- package/dist/es2019/next-schema/nodes/panel.js +0 -4
- package/dist/es2019/schema/create-schema.js +2 -2
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/blockquote.js +2 -34
- package/dist/es2019/schema/nodes/index.js +4 -4
- package/dist/es2019/schema/nodes/list-item.js +1 -19
- package/dist/es2019/schema/nodes/nested-expand.js +2 -32
- package/dist/es2019/schema/nodes/panel.js +2 -3
- package/dist/esm/index.js +2 -2
- package/dist/esm/next-schema/generated/nodeTypes.js +0 -57
- package/dist/esm/next-schema/groups/blockContentGroup.js +1 -1
- package/dist/esm/next-schema/groups/blockGroup.js +1 -1
- package/dist/esm/next-schema/groups/tableCellContentPseudoGroup.js +1 -1
- package/dist/esm/next-schema/nodes/blockquote.js +0 -8
- package/dist/esm/next-schema/nodes/expand.js +1 -1
- package/dist/esm/next-schema/nodes/list.js +2 -6
- package/dist/esm/next-schema/nodes/nestedExpand.js +0 -6
- package/dist/esm/next-schema/nodes/panel.js +0 -4
- package/dist/esm/schema/create-schema.js +2 -2
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/blockquote.js +2 -34
- package/dist/esm/schema/nodes/index.js +4 -4
- package/dist/esm/schema/nodes/list-item.js +1 -19
- package/dist/esm/schema/nodes/nested-expand.js +2 -32
- package/dist/esm/schema/nodes/panel.js +1 -4
- package/dist/types/index.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeGroupTypes.d.ts +2 -2
- package/dist/types/next-schema/generated/nodeTypes.d.ts +8 -53
- package/dist/types/next-schema/groups/nonNestableBlockContentGroup.d.ts +1 -11
- package/dist/types/next-schema/groups/tableCellContentPseudoGroup.d.ts +1 -17
- package/dist/types/next-schema/nodes/blockquote.d.ts +1 -7
- package/dist/types/next-schema/nodes/nestedExpand.d.ts +1 -7
- package/dist/types/next-schema/nodes/panel.d.ts +1 -5
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/blockquote.d.ts +0 -15
- package/dist/types/schema/nodes/index.d.ts +4 -4
- package/dist/types/schema/nodes/list-item.d.ts +0 -10
- package/dist/types/schema/nodes/nested-expand.d.ts +0 -5
- package/dist/types/schema/nodes/panel.d.ts +0 -1
- package/package.json +1 -1
package/dist/esm/schema/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote,
|
1
|
+
export { PanelType, blockCard, blockquote, extendedBlockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expandWithNestedExpand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable } from './nodes';
|
2
2
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
3
|
colorPaletteExtended, confluenceInlineComment, dataConsumer, dataConsumerToJSON, em, fragment, fragmentToJSON, indentation, link, linkToJSON, strike, strong, subsup, textColor, typeAheadQuery, underline, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, backgroundColor, backgroundColorPalette } from './marks';
|
4
4
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { blockquote as blockquoteFactory } from '../../next-schema/generated/nodeTypes';
|
2
|
-
import { blockquoteLegacy as blockquoteLegacyFactory
|
2
|
+
import { blockquoteLegacy as blockquoteLegacyFactory } from '../../next-schema/generated/nodeTypes';
|
3
3
|
|
4
4
|
/**
|
5
5
|
* @name blockquote_node
|
@@ -15,40 +15,8 @@ var nodeSpecOptions = {
|
|
15
15
|
};
|
16
16
|
export var blockquote = blockquoteLegacyFactory(nodeSpecOptions);
|
17
17
|
|
18
|
-
/**
|
19
|
-
* @name blockquoteWithNestedCodeblockOrMedia
|
20
|
-
* @deprecated use extentedBlockquote instead
|
21
|
-
*/
|
22
|
-
export var blockquoteWithNestedCodeblockOrMedia = blockquoteWithoutNonBodiedMacrosFactory(nodeSpecOptions);
|
23
|
-
|
24
18
|
/**
|
25
19
|
* @name extentedBlockquote
|
26
20
|
* @description the block quote node with nested code block, media, and extension
|
27
21
|
*/
|
28
|
-
export var extendedBlockquote = blockquoteFactory(nodeSpecOptions);
|
29
|
-
|
30
|
-
/**
|
31
|
-
* @name blockquote_with_list_node
|
32
|
-
* @deprecated use extentedBlockquote instead
|
33
|
-
* TODO: remove this node in the next major version
|
34
|
-
*/
|
35
|
-
export var blockquoteWithList = blockquoteWithoutNestedCodeblockOrMediaFactory({
|
36
|
-
parseDOM: [{
|
37
|
-
tag: 'blockquote'
|
38
|
-
}],
|
39
|
-
toDOM: function toDOM() {
|
40
|
-
return ['blockquote', 0];
|
41
|
-
}
|
42
|
-
});
|
43
|
-
|
44
|
-
/**
|
45
|
-
* @name blockquote_without_non_bodied_macros_node
|
46
|
-
*/
|
47
|
-
export var blockquoteWithoutNonBodiedMacros = blockquoteWithoutNonBodiedMacrosFactory({
|
48
|
-
parseDOM: [{
|
49
|
-
tag: 'blockquote'
|
50
|
-
}],
|
51
|
-
toDOM: function toDOM() {
|
52
|
-
return ['blockquote', 0];
|
53
|
-
}
|
54
|
-
});
|
22
|
+
export var extendedBlockquote = blockquoteFactory(nodeSpecOptions);
|
@@ -3,7 +3,7 @@ export { confluenceJiraIssue } from './confluence-jira-issue';
|
|
3
3
|
export { confluenceUnsupportedBlock } from './confluence-unsupported-block';
|
4
4
|
export { confluenceUnsupportedInline } from './confluence-unsupported-inline';
|
5
5
|
export { doc } from './doc';
|
6
|
-
export { blockquote,
|
6
|
+
export { blockquote, extendedBlockquote } from './blockquote';
|
7
7
|
export { bulletList, bulletListSelector } from './bullet-list';
|
8
8
|
export { codeBlock, toJSON as codeBlockToJSON } from './code-block';
|
9
9
|
export { hardBreak } from './hard-break';
|
@@ -14,8 +14,8 @@ export { paragraph } from './paragraph';
|
|
14
14
|
export { emoji } from './emoji';
|
15
15
|
export { image } from './image';
|
16
16
|
export { mention, toJSON as mentionToJSON } from './mention';
|
17
|
-
export { listItem,
|
18
|
-
export { extendedPanel,
|
17
|
+
export { listItem, listItemWithDecisionStage0 } from './list-item';
|
18
|
+
export { extendedPanel, PanelType } from './panel';
|
19
19
|
export { text } from './text';
|
20
20
|
export { default as unknownBlock } from './unknown-block';
|
21
21
|
export { caption } from './caption';
|
@@ -37,7 +37,7 @@ export { blockCard } from './block-card';
|
|
37
37
|
export { unsupportedBlock } from './unsupported-block';
|
38
38
|
export { unsupportedInline } from './unsupported-inline';
|
39
39
|
export { status } from './status';
|
40
|
-
export { nestedExpand
|
40
|
+
export { nestedExpand } from './nested-expand';
|
41
41
|
export { embedCard } from './embed-card';
|
42
42
|
// Extensions
|
43
43
|
export { extension } from './extension';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { listItem as listItemFactory, listItemWithNestedDecisionStage0 as listItemWithNestedDecisionStage0Factory
|
1
|
+
import { listItem as listItemFactory, listItemWithNestedDecisionStage0 as listItemWithNestedDecisionStage0Factory } from '../../next-schema/generated/nodeTypes';
|
2
2
|
|
3
3
|
/**
|
4
4
|
* @name list_item
|
@@ -13,12 +13,6 @@ export var listItem = listItemFactory({
|
|
13
13
|
}
|
14
14
|
});
|
15
15
|
|
16
|
-
/**
|
17
|
-
* @name list_item_with_task
|
18
|
-
* @description this node allows task-list to be nested inside list-item
|
19
|
-
*/
|
20
|
-
export var listItemWithTask = listItem;
|
21
|
-
|
22
16
|
/**
|
23
17
|
* @name list_item_with_decision_stage0
|
24
18
|
* @description this node allows decisions to be nested inside list-item
|
@@ -30,16 +24,4 @@ export var listItemWithDecisionStage0 = listItemWithNestedDecisionStage0Factory(
|
|
30
24
|
toDOM: function toDOM() {
|
31
25
|
return ['li', 0];
|
32
26
|
}
|
33
|
-
});
|
34
|
-
/**
|
35
|
-
* @name list_item_without_non_bodied_macros
|
36
|
-
* @description this node does not allow extension inside list-item
|
37
|
-
*/
|
38
|
-
export var listItemWithoutNonBodiedMacros = listItemWithoutNonBodiedMacrosFactory({
|
39
|
-
parseDOM: [{
|
40
|
-
tag: 'li'
|
41
|
-
}],
|
42
|
-
toDOM: function toDOM() {
|
43
|
-
return ['li', 0];
|
44
|
-
}
|
45
27
|
});
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { nestedExpand as nestedExpandFactory
|
1
|
+
import { nestedExpand as nestedExpandFactory } from '../../next-schema/generated/nodeTypes';
|
2
2
|
|
3
3
|
/**
|
4
4
|
* @name nestedExpand_content
|
@@ -45,39 +45,9 @@ var nestedExpandFactoryOptions = {
|
|
45
45
|
return ['div', attrs, 0];
|
46
46
|
}
|
47
47
|
};
|
48
|
-
var nestedExpandWithoutNonBodiedMacrosFactoryOptions = {
|
49
|
-
parseDOM: [{
|
50
|
-
context: 'nestedExpand//',
|
51
|
-
tag: '[data-node-type="nestedExpand"]',
|
52
|
-
getAttrs: getExpandAttrs
|
53
|
-
}, {
|
54
|
-
tag: '[data-node-type="nestedExpand"] button',
|
55
|
-
ignore: true
|
56
|
-
}, {
|
57
|
-
tag: '[data-node-type="expand"] button',
|
58
|
-
ignore: true
|
59
|
-
}, {
|
60
|
-
tag: 'div[data-node-type="nestedExpand"]',
|
61
|
-
getAttrs: getExpandAttrs
|
62
|
-
}],
|
63
|
-
toDOM: function toDOM(node) {
|
64
|
-
var attrs = {
|
65
|
-
'data-node-type': 'nestedExpand',
|
66
|
-
'data-title': node.attrs.title,
|
67
|
-
'data-expanded': node.attrs.__expanded
|
68
|
-
};
|
69
|
-
return ['div', attrs, 0];
|
70
|
-
}
|
71
|
-
};
|
72
48
|
|
73
49
|
/**
|
74
50
|
* @name nestedExpand
|
75
51
|
* @description an expand that can be nested (eg. inside table, layout).
|
76
52
|
*/
|
77
|
-
export var nestedExpand = nestedExpandFactory(nestedExpandFactoryOptions);
|
78
|
-
|
79
|
-
/**
|
80
|
-
* @name nestedExpandWithNonBodiedMacros
|
81
|
-
* @description an expand that can be nested (eg. inside table, layout).
|
82
|
-
*/
|
83
|
-
export var nestedExpandWithoutNonBodiedMacros = nestedExpandWithoutNonBodiedMacrosFactory(nestedExpandWithoutNonBodiedMacrosFactoryOptions);
|
53
|
+
export var nestedExpand = nestedExpandFactory(nestedExpandFactoryOptions);
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
2
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
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; }
|
4
|
-
import { panel as panelFactory
|
4
|
+
import { panel as panelFactory } from '../../next-schema/generated/nodeTypes';
|
5
5
|
export var PanelType = /*#__PURE__*/function (PanelType) {
|
6
6
|
PanelType["INFO"] = "info";
|
7
7
|
PanelType["NOTE"] = "note";
|
@@ -69,7 +69,4 @@ var createPanelNodeSpecOptions = function createPanelNodeSpecOptions(allowCustom
|
|
69
69
|
*/
|
70
70
|
export var extendedPanel = function extendedPanel(allowCustomPanel) {
|
71
71
|
return panelFactory(createPanelNodeSpecOptions(allowCustomPanel));
|
72
|
-
};
|
73
|
-
export var panelWithoutNestedNonBodiedMacros = function panelWithoutNestedNonBodiedMacros(allowCustomPanel) {
|
74
|
-
return panelWithoutNestedNonBodiedMacrosFactory(createPanelNodeSpecOptions(allowCustomPanel));
|
75
72
|
};
|
package/dist/types/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote,
|
1
|
+
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, extendedBlockquote, 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, expandWithNestedExpand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem,
|
3
|
+
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expandWithNestedExpand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableStage0, 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, backgroundColor, backgroundColorPalette, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, } 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, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableDisplayMode, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, 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';
|
@@ -3,8 +3,8 @@
|
|
3
3
|
* DO NOT MODIFY IT BY HAND. Instead, modify the source files in "packages/adf-schema/src/next-schema" ,
|
4
4
|
* and run "yarn workspace @atlaskit/adf-schema build:schema:all" to regenerate this file.
|
5
5
|
*/
|
6
|
-
import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition,
|
7
|
-
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition |
|
6
|
+
import type { BlockCardDefinition, BlockquoteDefinition, BlockquoteLegacyDefinition, BodiedExtensionDefinition, BodiedExtensionWithMarksDefinition, BulletListDefinition, CodeBlockDefinition, ConfluenceJiraIssueDefinition, ConfluenceUnsupportedBlockDefinition, ConfluenceUnsupportedInlineDefinition, DateDefinition, DateStage0Definition, DecisionListDefinition, EmbedCardDefinition, EmojiDefinition, EmojiStage0Definition, ExpandDefinition, ExtensionDefinition, ExtensionWithMarksDefinition, HardBreakDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithNoMarksDefinition, ImageDefinition, InlineCardDefinition, InlineCardStage0Definition, InlineExtensionDefinition, InlineExtensionWithMarksDefinition, MediaGroupDefinition, MediaInlineDefinition, MediaSingleCaptionDefinition, MediaSingleDefinition, MediaSingleFullDefinition, MediaSingleWidthTypeDefinition, MentionDefinition, MentionStage0Definition, MultiBodiedExtensionStage0Definition, OrderedListDefinition, PanelDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithNoMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StatusStage0Definition, TableDefinition, TableWithNestedTableDefinition, TaskListDefinition, TextCodeInlineDefinition, TextDefinition, TextFormattedDefinition, UnsupportedBlockDefinition, UnsupportedInlineDefinition } from './nodeTypes';
|
7
|
+
export type BlockDefinition = Array<BlockCardDefinition | CodeBlockDefinition | MediaSingleDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleWidthTypeDefinition | ParagraphDefinition | ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | OrderedListDefinition | BulletListDefinition | BlockquoteDefinition | BlockquoteLegacyDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionDefinition | ExtensionWithMarksDefinition | HeadingDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | HeadingWithAlignmentDefinition | MediaGroupDefinition | RuleDefinition | PanelDefinition | TableDefinition | TableWithNestedTableDefinition | BodiedExtensionDefinition | BodiedExtensionWithMarksDefinition | ExpandDefinition | ConfluenceUnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
8
8
|
export type BlockRootOnlyDefinition = Array<MultiBodiedExtensionStage0Definition>;
|
9
9
|
export type InlineDefinition = Array<TextDefinition | TextFormattedDefinition | TextCodeInlineDefinition | DateDefinition | DateStage0Definition | EmojiDefinition | EmojiStage0Definition | HardBreakDefinition | InlineCardDefinition | InlineCardStage0Definition | MentionDefinition | MentionStage0Definition | PlaceholderDefinition | StatusDefinition | StatusStage0Definition | InlineExtensionDefinition | InlineExtensionWithMarksDefinition | MediaInlineDefinition | ImageDefinition | ConfluenceJiraIssueDefinition | ConfluenceUnsupportedInlineDefinition | UnsupportedInlineDefinition>;
|
10
10
|
export type NonNestableBlockContentDefinition = Array<ParagraphWithNoMarksDefinition | PanelDefinition | BlockquoteDefinition | OrderedListDefinition | BulletListDefinition | RuleDefinition | HeadingWithNoMarksDefinition | CodeBlockDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | DecisionListDefinition | TaskListDefinition | TableDefinition | TableWithNestedTableDefinition | BlockCardDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | UnsupportedBlockDefinition>;
|
@@ -39,20 +39,6 @@ export interface BlockquoteLegacyDefinition {
|
|
39
39
|
}
|
40
40
|
export type BlockquoteLegacyNode = PMNode & BlockquoteLegacyDefinition;
|
41
41
|
export declare const blockquoteLegacy: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BlockquoteLegacyNode>) => import("prosemirror-model").NodeSpec;
|
42
|
-
export interface BlockquoteWithoutNestedCodeblockOrMediaDefinition {
|
43
|
-
type: 'blockquote';
|
44
|
-
content: Array<BulletListDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | UnsupportedBlockDefinition>;
|
45
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
46
|
-
}
|
47
|
-
export type BlockquoteWithoutNestedCodeblockOrMediaNode = PMNode & BlockquoteWithoutNestedCodeblockOrMediaDefinition;
|
48
|
-
export declare const blockquoteWithoutNestedCodeblockOrMedia: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BlockquoteWithoutNestedCodeblockOrMediaNode>) => import("prosemirror-model").NodeSpec;
|
49
|
-
export interface BlockquoteWithoutNonBodiedMacrosDefinition {
|
50
|
-
type: 'blockquote';
|
51
|
-
content: Array<BulletListDefinition | CodeBlockDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | UnsupportedBlockDefinition>;
|
52
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
53
|
-
}
|
54
|
-
export type BlockquoteWithoutNonBodiedMacrosNode = PMNode & BlockquoteWithoutNonBodiedMacrosDefinition;
|
55
|
-
export declare const blockquoteWithoutNonBodiedMacros: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BlockquoteWithoutNonBodiedMacrosNode>) => import("prosemirror-model").NodeSpec;
|
56
42
|
export interface BodiedExtensionDefinition {
|
57
43
|
type: 'bodiedExtension';
|
58
44
|
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
@@ -84,7 +70,7 @@ export type BodiedExtensionWithMarksNode = PMNode & BodiedExtensionWithMarksDefi
|
|
84
70
|
export declare const bodiedExtensionWithMarks: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<BodiedExtensionWithMarksNode>) => import("prosemirror-model").NodeSpec;
|
85
71
|
export interface BulletListDefinition {
|
86
72
|
type: 'bulletList';
|
87
|
-
content: Array<ListItemDefinition | ListItemWithNestedDecisionStage0Definition
|
73
|
+
content: Array<ListItemDefinition | ListItemWithNestedDecisionStage0Definition>;
|
88
74
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
89
75
|
}
|
90
76
|
export type BulletListNode = PMNode & BulletListDefinition;
|
@@ -227,7 +213,7 @@ export type EmojiStage0Node = PMNode & EmojiStage0Definition;
|
|
227
213
|
export declare const emojiStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<EmojiStage0Node>) => import("prosemirror-model").NodeSpec;
|
228
214
|
export interface ExpandDefinition {
|
229
215
|
type: 'expand';
|
230
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition |
|
216
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
231
217
|
attrs: {
|
232
218
|
title?: string;
|
233
219
|
__expanded?: boolean;
|
@@ -237,7 +223,7 @@ export type ExpandNode = PMNode & ExpandDefinition;
|
|
237
223
|
export declare const expand: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ExpandNode>) => import("prosemirror-model").NodeSpec;
|
238
224
|
export interface ExpandRootOnlyDefinition {
|
239
225
|
type: 'expand';
|
240
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition |
|
226
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TableWithNestedTableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
241
227
|
marks: Array<BreakoutMark | UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
242
228
|
attrs: {
|
243
229
|
title?: string;
|
@@ -440,13 +426,6 @@ export interface ListItemWithNestedDecisionStage0Definition {
|
|
440
426
|
}
|
441
427
|
export type ListItemWithNestedDecisionStage0Node = PMNode & ListItemWithNestedDecisionStage0Definition;
|
442
428
|
export declare const listItemWithNestedDecisionStage0: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ListItemWithNestedDecisionStage0Node>) => import("prosemirror-model").NodeSpec;
|
443
|
-
export interface ListItemWithoutNonBodiedMacrosDefinition {
|
444
|
-
type: 'listItem';
|
445
|
-
content: Array<BulletListDefinition | CodeBlockDefinition | CodeBlockDefinition | MediaSingleCaptionDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | ParagraphWithNoMarksDefinition | TaskListDefinition | UnsupportedBlockDefinition | UnsupportedBlockDefinition>;
|
446
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
447
|
-
}
|
448
|
-
export type ListItemWithoutNonBodiedMacrosNode = PMNode & ListItemWithoutNonBodiedMacrosDefinition;
|
449
|
-
export declare const listItemWithoutNonBodiedMacros: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<ListItemWithoutNonBodiedMacrosNode>) => import("prosemirror-model").NodeSpec;
|
450
429
|
export interface MediaNodeAttributes0 {
|
451
430
|
type: 'link' | 'file';
|
452
431
|
id: string;
|
@@ -638,19 +617,9 @@ export interface NestedExpandWithNoMarksDefinition {
|
|
638
617
|
}
|
639
618
|
export type NestedExpandWithNoMarksNode = PMNode & NestedExpandWithNoMarksDefinition;
|
640
619
|
export declare const nestedExpandWithNoMarks: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<NestedExpandWithNoMarksNode>) => import("prosemirror-model").NodeSpec;
|
641
|
-
export interface NestedExpandWithoutNonBodiedMacrosDefinition {
|
642
|
-
type: 'nestedExpand';
|
643
|
-
content: Array<BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
644
|
-
attrs: {
|
645
|
-
title?: string;
|
646
|
-
__expanded?: boolean;
|
647
|
-
};
|
648
|
-
}
|
649
|
-
export type NestedExpandWithoutNonBodiedMacrosNode = PMNode & NestedExpandWithoutNonBodiedMacrosDefinition;
|
650
|
-
export declare const nestedExpandWithoutNonBodiedMacros: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<NestedExpandWithoutNonBodiedMacrosNode>) => import("prosemirror-model").NodeSpec;
|
651
620
|
export interface OrderedListDefinition {
|
652
621
|
type: 'orderedList';
|
653
|
-
content: Array<ListItemDefinition | ListItemWithNestedDecisionStage0Definition
|
622
|
+
content: Array<ListItemDefinition | ListItemWithNestedDecisionStage0Definition>;
|
654
623
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
655
624
|
attrs: {
|
656
625
|
order?: number;
|
@@ -672,20 +641,6 @@ export interface PanelDefinition {
|
|
672
641
|
}
|
673
642
|
export type PanelNode = PMNode & PanelDefinition;
|
674
643
|
export declare const panel: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<PanelNode>) => import("prosemirror-model").NodeSpec;
|
675
|
-
export interface PanelWithoutNestedNonBodiedMacrosDefinition {
|
676
|
-
type: 'panel';
|
677
|
-
content: Array<BlockCardDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | OrderedListDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
678
|
-
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
679
|
-
attrs: {
|
680
|
-
panelType: 'info' | 'note' | 'tip' | 'warning' | 'error' | 'success' | 'custom';
|
681
|
-
panelIcon?: string;
|
682
|
-
panelIconId?: string;
|
683
|
-
panelIconText?: string;
|
684
|
-
panelColor?: string;
|
685
|
-
};
|
686
|
-
}
|
687
|
-
export type PanelWithoutNestedNonBodiedMacrosNode = PMNode & PanelWithoutNestedNonBodiedMacrosDefinition;
|
688
|
-
export declare const panelWithoutNestedNonBodiedMacros: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<PanelWithoutNestedNonBodiedMacrosNode>) => import("prosemirror-model").NodeSpec;
|
689
644
|
export interface ParagraphDefinition {
|
690
645
|
type: 'paragraph';
|
691
646
|
content: Array<InlineDefinition>;
|
@@ -792,7 +747,7 @@ export type TableWithNestedTableNode = PMNode & TableWithNestedTableDefinition;
|
|
792
747
|
export declare const tableWithNestedTable: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableWithNestedTableNode>) => import("prosemirror-model").NodeSpec;
|
793
748
|
export interface TableCellDefinition {
|
794
749
|
type: 'tableCell';
|
795
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition |
|
750
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
796
751
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
797
752
|
attrs: {
|
798
753
|
colspan?: number;
|
@@ -805,7 +760,7 @@ export type TableCellNode = PMNode & TableCellDefinition;
|
|
805
760
|
export declare const tableCell: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableCellNode>) => import("prosemirror-model").NodeSpec;
|
806
761
|
export interface TableCellWithNestedTableDefinition {
|
807
762
|
type: 'tableCell';
|
808
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition |
|
763
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition | UnsupportedBlockDefinition>;
|
809
764
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
810
765
|
attrs: {
|
811
766
|
colspan?: number;
|
@@ -818,7 +773,7 @@ export type TableCellWithNestedTableNode = PMNode & TableCellWithNestedTableDefi
|
|
818
773
|
export declare const tableCellWithNestedTable: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableCellWithNestedTableNode>) => import("prosemirror-model").NodeSpec;
|
819
774
|
export interface TableHeaderDefinition {
|
820
775
|
type: 'tableHeader';
|
821
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition |
|
776
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TaskListDefinition>;
|
822
777
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
823
778
|
attrs: {
|
824
779
|
colspan?: number;
|
@@ -831,7 +786,7 @@ export type TableHeaderNode = PMNode & TableHeaderDefinition;
|
|
831
786
|
export declare const tableHeader: ({ parseDOM, toDOM, toDebugString }: import("../../schema/createPMSpecFactory").NodeSpecOptions<TableHeaderNode>) => import("prosemirror-model").NodeSpec;
|
832
787
|
export interface TableHeaderWithNestedTableDefinition {
|
833
788
|
type: 'tableHeader';
|
834
|
-
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition |
|
789
|
+
content: Array<BlockCardDefinition | BlockquoteDefinition | BulletListDefinition | CodeBlockDefinition | DecisionListDefinition | EmbedCardDefinition | ExtensionWithMarksDefinition | HeadingWithAlignmentDefinition | HeadingWithIndentationDefinition | HeadingWithNoMarksDefinition | MediaGroupDefinition | MediaSingleCaptionDefinition | MediaSingleFullDefinition | NestedExpandDefinition | NestedExpandWithNoMarksDefinition | OrderedListDefinition | PanelDefinition | ParagraphWithAlignmentDefinition | ParagraphWithNoMarksDefinition | RuleDefinition | TableDefinition | TaskListDefinition>;
|
835
790
|
marks: Array<UnsupportedMarkMark | UnsupportedNodeAttributeMark>;
|
836
791
|
attrs: {
|
837
792
|
colspan?: number;
|
@@ -2,19 +2,9 @@ export declare const nonNestableBlockContent: (import("@atlaskit/adf-schema-gene
|
|
2
2
|
marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
|
3
3
|
noMarks: false;
|
4
4
|
noExtend: true;
|
5
|
-
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy"
|
5
|
+
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
6
6
|
ignore: ("json-schema" | "validator-spec")[];
|
7
7
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
8
|
-
} & {
|
9
|
-
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
10
|
-
ignore: ("json-schema" | "validator-spec")[];
|
11
|
-
} & {
|
12
|
-
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
13
|
-
ignore: ("json-schema" | "validator-spec")[];
|
14
|
-
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "without_nested_non_bodied_macros"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
15
|
-
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
16
|
-
noExtend: true;
|
17
|
-
ignore: ("json-schema" | "validator-spec")[];
|
18
8
|
}>)[];
|
19
9
|
/**
|
20
10
|
* @DSLCompatibilityException
|
@@ -56,31 +56,15 @@ export declare const tableCellContentNodes: (import("@atlaskit/adf-schema-genera
|
|
56
56
|
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<any, import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
57
57
|
marks: import("@atlaskit/adf-schema-generator/dist/types/adfMark").ADFMark<import("@atlaskit/adf-schema-generator/dist/types/types/ADFMarkSpec").ADFMarkSpec>[];
|
58
58
|
ignore: any[];
|
59
|
-
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy"
|
59
|
+
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
60
60
|
ignore: ("json-schema" | "validator-spec")[];
|
61
61
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
62
|
-
} & {
|
63
|
-
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
64
|
-
ignore: ("json-schema" | "validator-spec")[];
|
65
|
-
} & {
|
66
|
-
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
67
|
-
ignore: ("json-schema" | "validator-spec")[];
|
68
|
-
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "without_nested_non_bodied_macros"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
69
|
-
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
70
|
-
noExtend: true;
|
71
|
-
ignore: ("json-schema" | "validator-spec")[];
|
72
62
|
}> | import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<any, import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
73
63
|
ignore: "pm-spec"[];
|
74
64
|
} & {
|
75
65
|
marks: any[];
|
76
66
|
content: any[];
|
77
67
|
noMarks: true;
|
78
|
-
} & {
|
79
|
-
marks: any[];
|
80
|
-
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
81
|
-
noMarks: true;
|
82
|
-
noExtend: true;
|
83
|
-
ignore: ("json-schema" | "validator-spec")[];
|
84
68
|
}>)[];
|
85
69
|
export declare const tableCellContentPseudoGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec;
|
86
70
|
export declare const tableHeaderContentPseudoGroup: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec;
|
@@ -1,10 +1,4 @@
|
|
1
|
-
export declare const blockquote: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy"
|
1
|
+
export declare const blockquote: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "legacy"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
2
2
|
ignore: ("json-schema" | "validator-spec")[];
|
3
3
|
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
4
|
-
} & {
|
5
|
-
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
6
|
-
ignore: ("json-schema" | "validator-spec")[];
|
7
|
-
} & {
|
8
|
-
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
9
|
-
ignore: ("json-schema" | "validator-spec")[];
|
10
4
|
}>;
|
@@ -1,13 +1,7 @@
|
|
1
|
-
export declare const nestedExpand: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "content", "with_no_marks"
|
1
|
+
export declare const nestedExpand: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string, "content", "with_no_marks"], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec & {
|
2
2
|
ignore: "pm-spec"[];
|
3
3
|
} & {
|
4
4
|
marks: any[];
|
5
5
|
content: any[];
|
6
6
|
noMarks: true;
|
7
|
-
} & {
|
8
|
-
marks: any[];
|
9
|
-
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
10
|
-
noMarks: true;
|
11
|
-
noExtend: true;
|
12
|
-
ignore: ("json-schema" | "validator-spec")[];
|
13
7
|
}>;
|
@@ -1,5 +1 @@
|
|
1
|
-
export declare const panel: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string
|
2
|
-
content: import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFNodeContentOneOrMoreSpec[];
|
3
|
-
noExtend: true;
|
4
|
-
ignore: ("json-schema" | "validator-spec")[];
|
5
|
-
}>;
|
1
|
+
export declare const panel: import("@atlaskit/adf-schema-generator/dist/types/adfNode").ADFNode<[string], import("@atlaskit/adf-schema-generator/dist/types/types/ADFNodeSpec").ADFCommonNodeSpec>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote,
|
1
|
+
export { PanelType, blockCard, blockquote, extendedBlockquote, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expandWithNestedExpand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithDecisionStage0, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, extendedPanel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableStage0, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, tableWithNestedTable, tableRowWithNestedTable, tableCellWithNestedTable, tableHeaderWithNestedTable, } 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, 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. */
|
@@ -17,23 +17,8 @@ export interface BlockQuoteDefinition {
|
|
17
17
|
content: Array<Paragraph | OrderedList | BulletList | CodeBlock | MediaGroup | MediaSingle | Extension>;
|
18
18
|
}
|
19
19
|
export declare const blockquote: import("prosemirror-model").NodeSpec;
|
20
|
-
/**
|
21
|
-
* @name blockquoteWithNestedCodeblockOrMedia
|
22
|
-
* @deprecated use extentedBlockquote instead
|
23
|
-
*/
|
24
|
-
export declare const blockquoteWithNestedCodeblockOrMedia: import("prosemirror-model").NodeSpec;
|
25
20
|
/**
|
26
21
|
* @name extentedBlockquote
|
27
22
|
* @description the block quote node with nested code block, media, and extension
|
28
23
|
*/
|
29
24
|
export declare const extendedBlockquote: import("prosemirror-model").NodeSpec;
|
30
|
-
/**
|
31
|
-
* @name blockquote_with_list_node
|
32
|
-
* @deprecated use extentedBlockquote instead
|
33
|
-
* TODO: remove this node in the next major version
|
34
|
-
*/
|
35
|
-
export declare const blockquoteWithList: import("prosemirror-model").NodeSpec;
|
36
|
-
/**
|
37
|
-
* @name blockquote_without_non_bodied_macros_node
|
38
|
-
*/
|
39
|
-
export declare const blockquoteWithoutNonBodiedMacros: import("prosemirror-model").NodeSpec;
|
@@ -5,7 +5,7 @@ export { confluenceUnsupportedBlock } from './confluence-unsupported-block';
|
|
5
5
|
export { confluenceUnsupportedInline } from './confluence-unsupported-inline';
|
6
6
|
export { doc } from './doc';
|
7
7
|
export type { DocNode } from './doc';
|
8
|
-
export { blockquote,
|
8
|
+
export { blockquote, extendedBlockquote } from './blockquote';
|
9
9
|
export type { BlockQuoteDefinition } from './blockquote';
|
10
10
|
export { bulletList, bulletListSelector } from './bullet-list';
|
11
11
|
export type { BulletListDefinition } from './types/list';
|
@@ -26,9 +26,9 @@ 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, listItemWithDecisionStage0 } from './list-item';
|
30
30
|
export type { ListItemArray, ListItemDefinition } from './types/list';
|
31
|
-
export { extendedPanel,
|
31
|
+
export { extendedPanel, PanelType } from './panel';
|
32
32
|
export type { PanelAttributes, PanelDefinition } from './panel';
|
33
33
|
export { text } from './text';
|
34
34
|
export type { TextDefinition } from './text';
|
@@ -69,7 +69,7 @@ export { unsupportedBlock } from './unsupported-block';
|
|
69
69
|
export { unsupportedInline } from './unsupported-inline';
|
70
70
|
export { status } from './status';
|
71
71
|
export type { StatusDefinition } from './status';
|
72
|
-
export { nestedExpand
|
72
|
+
export { nestedExpand } from './nested-expand';
|
73
73
|
export type { NestedExpandDefinition } from './nested-expand';
|
74
74
|
export type { NoMark } from './types/mark';
|
75
75
|
export type { MarksObject } from './types/mark';
|
@@ -3,18 +3,8 @@
|
|
3
3
|
* @description this node allows task-list to be nested inside list-item
|
4
4
|
*/
|
5
5
|
export declare const listItem: import("prosemirror-model").NodeSpec;
|
6
|
-
/**
|
7
|
-
* @name list_item_with_task
|
8
|
-
* @description this node allows task-list to be nested inside list-item
|
9
|
-
*/
|
10
|
-
export declare const listItemWithTask: import("prosemirror-model").NodeSpec;
|
11
6
|
/**
|
12
7
|
* @name list_item_with_decision_stage0
|
13
8
|
* @description this node allows decisions to be nested inside list-item
|
14
9
|
*/
|
15
10
|
export declare const listItemWithDecisionStage0: import("prosemirror-model").NodeSpec;
|
16
|
-
/**
|
17
|
-
* @name list_item_without_non_bodied_macros
|
18
|
-
* @description this node does not allow extension inside list-item
|
19
|
-
*/
|
20
|
-
export declare const listItemWithoutNonBodiedMacros: import("prosemirror-model").NodeSpec;
|
@@ -36,8 +36,3 @@ export type NestedExpandDefinition = NestedExpandBaseDefinition & NoMark;
|
|
36
36
|
* @description an expand that can be nested (eg. inside table, layout).
|
37
37
|
*/
|
38
38
|
export declare const nestedExpand: import("prosemirror-model").NodeSpec;
|
39
|
-
/**
|
40
|
-
* @name nestedExpandWithNonBodiedMacros
|
41
|
-
* @description an expand that can be nested (eg. inside table, layout).
|
42
|
-
*/
|
43
|
-
export declare const nestedExpandWithoutNonBodiedMacros: import("prosemirror-model").NodeSpec;
|
@@ -47,4 +47,3 @@ export interface DOMAttributes {
|
|
47
47
|
* addition to content allowed inside panel
|
48
48
|
*/
|
49
49
|
export declare const extendedPanel: (allowCustomPanel: boolean) => import("prosemirror-model").NodeSpec;
|
50
|
-
export declare const panelWithoutNestedNonBodiedMacros: (allowCustomPanel: boolean) => import("prosemirror-model").NodeSpec;
|
package/package.json
CHANGED