@atlaskit/adf-schema 35.13.0 → 36.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 +14 -0
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/schema/create-schema.js +2 -2
- package/dist/cjs/schema/index.js +6 -6
- package/dist/cjs/schema/nodes/index.js +6 -6
- package/dist/cjs/schema/nodes/nested-expand.js +6 -13
- package/dist/cjs/schema/nodes/paragraph.js +16 -3
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/schema/create-schema.js +3 -3
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/index.js +2 -2
- package/dist/es2019/schema/nodes/nested-expand.js +5 -12
- package/dist/es2019/schema/nodes/paragraph.js +15 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/schema/create-schema.js +3 -3
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/nodes/index.js +2 -2
- package/dist/esm/schema/nodes/nested-expand.js +5 -12
- package/dist/esm/schema/nodes/paragraph.js +15 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/nodes/index.d.ts +2 -2
- package/dist/types/schema/nodes/nested-expand.d.ts +3 -6
- package/dist/types/schema/nodes/paragraph.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,19 @@
|
|
1
1
|
# @atlaskit/adf-schema
|
2
2
|
|
3
|
+
## 36.0.0
|
4
|
+
|
5
|
+
### Major Changes
|
6
|
+
|
7
|
+
- e83fa9b: [ED-22282] [Breaking change] A transition ProseMirror node `extendedNestedExpand` was introduced for the changes in the node nesting project. Now that it's fully rolled out, the old `nestedExpand` isn't used anymore and we can clean them up. `nestedExpand` now contains the functionality of what was the transitional `extendedNestedExpand`.
|
8
|
+
|
9
|
+
Any usage of `extendedNestedExpand` should be updated to `nestedExpand` now.
|
10
|
+
|
11
|
+
## 35.14.0
|
12
|
+
|
13
|
+
### Minor Changes
|
14
|
+
|
15
|
+
- e5e99e7: Separately exported the node spec for paragraph with localId so its use can be feature flagged
|
16
|
+
|
3
17
|
## 35.13.0
|
4
18
|
|
5
19
|
### Minor Changes
|
package/dist/cjs/index.js
CHANGED
@@ -543,12 +543,6 @@ Object.defineProperty(exports, "expandToJSON", {
|
|
543
543
|
return _schema.expandToJSON;
|
544
544
|
}
|
545
545
|
});
|
546
|
-
Object.defineProperty(exports, "extendedNestedExpand", {
|
547
|
-
enumerable: true,
|
548
|
-
get: function get() {
|
549
|
-
return _schema.extendedNestedExpand;
|
550
|
-
}
|
551
|
-
});
|
552
546
|
Object.defineProperty(exports, "extendedPanel", {
|
553
547
|
enumerable: true,
|
554
548
|
get: function get() {
|
@@ -861,6 +855,12 @@ Object.defineProperty(exports, "paragraph", {
|
|
861
855
|
return _schema.paragraph;
|
862
856
|
}
|
863
857
|
});
|
858
|
+
Object.defineProperty(exports, "paragraphStage0", {
|
859
|
+
enumerable: true,
|
860
|
+
get: function get() {
|
861
|
+
return _schema.paragraphStage0;
|
862
|
+
}
|
863
|
+
});
|
864
864
|
Object.defineProperty(exports, "placeholder", {
|
865
865
|
enumerable: true,
|
866
866
|
get: function get() {
|
@@ -69,7 +69,7 @@ var nodesInOrder = [{
|
|
69
69
|
spec: _nodes.doc
|
70
70
|
}, {
|
71
71
|
name: 'paragraph',
|
72
|
-
spec: _nodes.
|
72
|
+
spec: _nodes.paragraphStage0
|
73
73
|
}, {
|
74
74
|
name: 'text',
|
75
75
|
spec: _nodes.text
|
@@ -177,7 +177,7 @@ var nodesInOrder = [{
|
|
177
177
|
spec: _nodes.expand
|
178
178
|
}, {
|
179
179
|
name: 'nestedExpand',
|
180
|
-
spec: _nodes.
|
180
|
+
spec: _nodes.nestedExpand
|
181
181
|
}, {
|
182
182
|
name: 'extension',
|
183
183
|
spec: _nodes.extension
|
package/dist/cjs/schema/index.js
CHANGED
@@ -255,12 +255,6 @@ Object.defineProperty(exports, "expandToJSON", {
|
|
255
255
|
return _nodes.expandToJSON;
|
256
256
|
}
|
257
257
|
});
|
258
|
-
Object.defineProperty(exports, "extendedNestedExpand", {
|
259
|
-
enumerable: true,
|
260
|
-
get: function get() {
|
261
|
-
return _nodes.extendedNestedExpand;
|
262
|
-
}
|
263
|
-
});
|
264
258
|
Object.defineProperty(exports, "extendedPanel", {
|
265
259
|
enumerable: true,
|
266
260
|
get: function get() {
|
@@ -501,6 +495,12 @@ Object.defineProperty(exports, "paragraph", {
|
|
501
495
|
return _nodes.paragraph;
|
502
496
|
}
|
503
497
|
});
|
498
|
+
Object.defineProperty(exports, "paragraphStage0", {
|
499
|
+
enumerable: true,
|
500
|
+
get: function get() {
|
501
|
+
return _nodes.paragraphStage0;
|
502
|
+
}
|
503
|
+
});
|
504
504
|
Object.defineProperty(exports, "placeholder", {
|
505
505
|
enumerable: true,
|
506
506
|
get: function get() {
|
@@ -142,12 +142,6 @@ Object.defineProperty(exports, "expandToJSON", {
|
|
142
142
|
return _expand.toJSON;
|
143
143
|
}
|
144
144
|
});
|
145
|
-
Object.defineProperty(exports, "extendedNestedExpand", {
|
146
|
-
enumerable: true,
|
147
|
-
get: function get() {
|
148
|
-
return _nestedExpand.extendedNestedExpand;
|
149
|
-
}
|
150
|
-
});
|
151
145
|
Object.defineProperty(exports, "extendedPanel", {
|
152
146
|
enumerable: true,
|
153
147
|
get: function get() {
|
@@ -352,6 +346,12 @@ Object.defineProperty(exports, "paragraph", {
|
|
352
346
|
return _paragraph.paragraph;
|
353
347
|
}
|
354
348
|
});
|
349
|
+
Object.defineProperty(exports, "paragraphStage0", {
|
350
|
+
enumerable: true,
|
351
|
+
get: function get() {
|
352
|
+
return _paragraph.paragraphStage0;
|
353
|
+
}
|
354
|
+
});
|
355
355
|
Object.defineProperty(exports, "placeholder", {
|
356
356
|
enumerable: true,
|
357
357
|
get: function get() {
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.nestedExpand =
|
6
|
+
exports.nestedExpand = void 0;
|
7
7
|
/**
|
8
8
|
* @name nestedExpand_content
|
9
9
|
* @minItems 1
|
@@ -18,7 +18,7 @@ exports.nestedExpand = exports.extendedNestedExpand = void 0;
|
|
18
18
|
* @name nestedExpand_with_no_marks_node
|
19
19
|
*/
|
20
20
|
|
21
|
-
var createNestedExpandSpec = function createNestedExpandSpec(
|
21
|
+
var createNestedExpandSpec = function createNestedExpandSpec() {
|
22
22
|
var nestedExpandSpec = {
|
23
23
|
inline: false,
|
24
24
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
@@ -61,19 +61,12 @@ var createNestedExpandSpec = function createNestedExpandSpec(isExtended) {
|
|
61
61
|
return ['div', attrs, 0];
|
62
62
|
}
|
63
63
|
};
|
64
|
-
|
65
|
-
nestedExpandSpec.content = '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock)+';
|
66
|
-
} else {
|
67
|
-
nestedExpandSpec.content = '(paragraph | heading | mediaSingle | mediaGroup | unsupportedBlock)+';
|
68
|
-
}
|
64
|
+
nestedExpandSpec.content = '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock)+';
|
69
65
|
return nestedExpandSpec;
|
70
66
|
};
|
71
|
-
var nestedExpand = exports.nestedExpand = createNestedExpandSpec(false);
|
72
67
|
|
73
68
|
/**
|
74
|
-
* @name
|
75
|
-
* @description
|
76
|
-
* Specifically, it allows codeBlock, bulletList, orderedList, taskList, decisionList, rule, panel, blockquote nodes in
|
77
|
-
* addition to content allowed inside nestedExpand
|
69
|
+
* @name nestedExpand
|
70
|
+
* @description an expand that can be nested (eg. inside table, layout).
|
78
71
|
*/
|
79
|
-
var
|
72
|
+
var nestedExpand = exports.nestedExpand = createNestedExpandSpec();
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.paragraph = void 0;
|
6
|
+
exports.paragraphStage0 = exports.paragraph = void 0;
|
7
7
|
/**
|
8
8
|
* @name paragraph_node
|
9
9
|
*/
|
@@ -29,7 +29,7 @@ exports.paragraph = void 0;
|
|
29
29
|
* @name paragraph_with_indentation_node
|
30
30
|
*/
|
31
31
|
|
32
|
-
var
|
32
|
+
var paragraphStage0 = exports.paragraphStage0 = {
|
33
33
|
selectable: false,
|
34
34
|
content: 'inline*',
|
35
35
|
group: 'block',
|
@@ -42,9 +42,10 @@ var paragraph = exports.paragraph = {
|
|
42
42
|
parseDOM: [{
|
43
43
|
tag: 'p',
|
44
44
|
getAttrs: function getAttrs(domNode) {
|
45
|
+
var _paragraph$attrs;
|
45
46
|
var dom = domNode;
|
46
47
|
var attrs = {
|
47
|
-
localId: dom.getAttribute('data-local-id') || paragraph.attrs.localId.default
|
48
|
+
localId: dom.getAttribute('data-local-id') || ((_paragraph$attrs = paragraph.attrs) === null || _paragraph$attrs === void 0 ? void 0 : _paragraph$attrs.localId.default)
|
48
49
|
};
|
49
50
|
return attrs;
|
50
51
|
}
|
@@ -56,4 +57,16 @@ var paragraph = exports.paragraph = {
|
|
56
57
|
} : undefined;
|
57
58
|
return ['p', attrs, 0];
|
58
59
|
}
|
60
|
+
};
|
61
|
+
var paragraph = exports.paragraph = {
|
62
|
+
selectable: false,
|
63
|
+
content: 'inline*',
|
64
|
+
group: 'block',
|
65
|
+
marks: 'strong code em link border strike subsup textColor backgroundColor typeAheadQuery underline confluenceInlineComment action annotation unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
66
|
+
parseDOM: [{
|
67
|
+
tag: 'p'
|
68
|
+
}],
|
69
|
+
toDOM: function toDOM() {
|
70
|
+
return ['p', 0];
|
71
|
+
}
|
59
72
|
};
|
package/dist/es2019/index.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
2
|
-
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand,
|
2
|
+
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, paragraphStage0, 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 } from './schema';
|
3
3
|
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, getDarkModeLCHColor } from './utils';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
2
2
|
import { COLOR, FONT_STYLE, SEARCH_QUERY, LINK } from './groups';
|
3
3
|
import { link, em, strong, textColor, strike, subsup, underline, code, typeAheadQuery, confluenceInlineComment, breakout, alignment, indentation, annotation, unsupportedMark, unsupportedNodeAttribute, dataConsumer, fragment, border, backgroundColor } from './marks';
|
4
|
-
import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc,
|
4
|
+
import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraphStage0, text, bulletList, orderedListWithOrder, listItemWithTask, heading, blockquoteWithList, codeBlock, extendedPanel, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expand, nestedExpand, embedCard, caption } from './nodes';
|
5
5
|
function addItems(builtInItems, config, customSpecs = {}) {
|
6
6
|
if (!config) {
|
7
7
|
return {};
|
@@ -54,7 +54,7 @@ const nodesInOrder = [{
|
|
54
54
|
spec: doc
|
55
55
|
}, {
|
56
56
|
name: 'paragraph',
|
57
|
-
spec:
|
57
|
+
spec: paragraphStage0
|
58
58
|
}, {
|
59
59
|
name: 'text',
|
60
60
|
spec: text
|
@@ -162,7 +162,7 @@ const nodesInOrder = [{
|
|
162
162
|
spec: expand
|
163
163
|
}, {
|
164
164
|
name: 'nestedExpand',
|
165
|
-
spec:
|
165
|
+
spec: nestedExpand
|
166
166
|
}, {
|
167
167
|
name: 'extension',
|
168
168
|
spec: extension
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand,
|
1
|
+
export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, paragraphStage0, 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 } 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';
|
@@ -11,7 +11,7 @@ export { hardBreak } from './hard-break';
|
|
11
11
|
export { heading } from './heading';
|
12
12
|
export { rule } from './rule';
|
13
13
|
export { orderedList, orderedListSelector, orderedListWithOrder } from './ordered-list';
|
14
|
-
export { paragraph } from './paragraph';
|
14
|
+
export { paragraph, paragraphStage0 } from './paragraph';
|
15
15
|
export { emoji } from './emoji';
|
16
16
|
export { image } from './image';
|
17
17
|
export { mention, toJSON as mentionToJSON } from './mention';
|
@@ -38,7 +38,7 @@ export { blockCard } from './block-card';
|
|
38
38
|
export { unsupportedBlock } from './unsupported-block';
|
39
39
|
export { unsupportedInline } from './unsupported-inline';
|
40
40
|
export { status } from './status';
|
41
|
-
export { nestedExpand
|
41
|
+
export { nestedExpand } from './nested-expand';
|
42
42
|
export { embedCard } from './embed-card';
|
43
43
|
// Extensions
|
44
44
|
export { extension } from './extension';
|
@@ -12,7 +12,7 @@
|
|
12
12
|
* @name nestedExpand_with_no_marks_node
|
13
13
|
*/
|
14
14
|
|
15
|
-
const createNestedExpandSpec =
|
15
|
+
const createNestedExpandSpec = () => {
|
16
16
|
const nestedExpandSpec = {
|
17
17
|
inline: false,
|
18
18
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
@@ -55,19 +55,12 @@ const createNestedExpandSpec = isExtended => {
|
|
55
55
|
return ['div', attrs, 0];
|
56
56
|
}
|
57
57
|
};
|
58
|
-
|
59
|
-
nestedExpandSpec.content = '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock)+';
|
60
|
-
} else {
|
61
|
-
nestedExpandSpec.content = '(paragraph | heading | mediaSingle | mediaGroup | unsupportedBlock)+';
|
62
|
-
}
|
58
|
+
nestedExpandSpec.content = '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock)+';
|
63
59
|
return nestedExpandSpec;
|
64
60
|
};
|
65
|
-
export const nestedExpand = createNestedExpandSpec(false);
|
66
61
|
|
67
62
|
/**
|
68
|
-
* @name
|
69
|
-
* @description
|
70
|
-
* Specifically, it allows codeBlock, bulletList, orderedList, taskList, decisionList, rule, panel, blockquote nodes in
|
71
|
-
* addition to content allowed inside nestedExpand
|
63
|
+
* @name nestedExpand
|
64
|
+
* @description an expand that can be nested (eg. inside table, layout).
|
72
65
|
*/
|
73
|
-
export const
|
66
|
+
export const nestedExpand = createNestedExpandSpec();
|
@@ -23,7 +23,7 @@
|
|
23
23
|
* @name paragraph_with_indentation_node
|
24
24
|
*/
|
25
25
|
|
26
|
-
export const
|
26
|
+
export const paragraphStage0 = {
|
27
27
|
selectable: false,
|
28
28
|
content: 'inline*',
|
29
29
|
group: 'block',
|
@@ -36,9 +36,10 @@ export const paragraph = {
|
|
36
36
|
parseDOM: [{
|
37
37
|
tag: 'p',
|
38
38
|
getAttrs: domNode => {
|
39
|
+
var _paragraph$attrs;
|
39
40
|
const dom = domNode;
|
40
41
|
const attrs = {
|
41
|
-
localId: dom.getAttribute('data-local-id') || paragraph.attrs.localId.default
|
42
|
+
localId: dom.getAttribute('data-local-id') || ((_paragraph$attrs = paragraph.attrs) === null || _paragraph$attrs === void 0 ? void 0 : _paragraph$attrs.localId.default)
|
42
43
|
};
|
43
44
|
return attrs;
|
44
45
|
}
|
@@ -52,4 +53,16 @@ export const paragraph = {
|
|
52
53
|
} : undefined;
|
53
54
|
return ['p', attrs, 0];
|
54
55
|
}
|
56
|
+
};
|
57
|
+
export const paragraph = {
|
58
|
+
selectable: false,
|
59
|
+
content: 'inline*',
|
60
|
+
group: 'block',
|
61
|
+
marks: 'strong code em link border strike subsup textColor backgroundColor typeAheadQuery underline confluenceInlineComment action annotation unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
62
|
+
parseDOM: [{
|
63
|
+
tag: 'p'
|
64
|
+
}],
|
65
|
+
toDOM() {
|
66
|
+
return ['p', 0];
|
67
|
+
}
|
55
68
|
};
|
package/dist/esm/index.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette, /** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
2
|
-
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand,
|
2
|
+
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, paragraphStage0, 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 } from './schema';
|
3
3
|
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, getDarkModeLCHColor } from './utils';
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
4
4
|
import { Schema } from '@atlaskit/editor-prosemirror/model';
|
5
5
|
import { COLOR, FONT_STYLE, SEARCH_QUERY, LINK } from './groups';
|
6
6
|
import { link, em, strong, textColor, strike, subsup, underline, code, typeAheadQuery, confluenceInlineComment, breakout, alignment, indentation, annotation, unsupportedMark, unsupportedNodeAttribute, dataConsumer, fragment, border, backgroundColor } from './marks';
|
7
|
-
import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc,
|
7
|
+
import { confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, doc, paragraphStage0, text, bulletList, orderedListWithOrder, listItemWithTask, heading, blockquoteWithList, codeBlock, extendedPanel, rule, image, mention, media, mediaInline, mediaSingleFull, mediaGroup, hardBreak, emoji, table, tableCell, tableHeader, tableRow, decisionList, decisionItem, taskList, taskItem, unknownBlock, extension, inlineExtension, bodiedExtension, multiBodiedExtension, extensionFrame, date, placeholder, layoutSection, layoutColumn, inlineCard, blockCard, unsupportedBlock, unsupportedInline, status, expand, nestedExpand, embedCard, caption } from './nodes';
|
8
8
|
function addItems(builtInItems, config) {
|
9
9
|
var customSpecs = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
10
10
|
if (!config) {
|
@@ -59,7 +59,7 @@ var nodesInOrder = [{
|
|
59
59
|
spec: doc
|
60
60
|
}, {
|
61
61
|
name: 'paragraph',
|
62
|
-
spec:
|
62
|
+
spec: paragraphStage0
|
63
63
|
}, {
|
64
64
|
name: 'text',
|
65
65
|
spec: text
|
@@ -167,7 +167,7 @@ var nodesInOrder = [{
|
|
167
167
|
spec: expand
|
168
168
|
}, {
|
169
169
|
name: 'nestedExpand',
|
170
|
-
spec:
|
170
|
+
spec: nestedExpand
|
171
171
|
}, {
|
172
172
|
name: 'extension',
|
173
173
|
spec: extension
|
package/dist/esm/schema/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand,
|
1
|
+
export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, paragraphStage0, 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 } 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';
|
@@ -11,7 +11,7 @@ export { hardBreak } from './hard-break';
|
|
11
11
|
export { heading } from './heading';
|
12
12
|
export { rule } from './rule';
|
13
13
|
export { orderedList, orderedListSelector, orderedListWithOrder } from './ordered-list';
|
14
|
-
export { paragraph } from './paragraph';
|
14
|
+
export { paragraph, paragraphStage0 } from './paragraph';
|
15
15
|
export { emoji } from './emoji';
|
16
16
|
export { image } from './image';
|
17
17
|
export { mention, toJSON as mentionToJSON } from './mention';
|
@@ -38,7 +38,7 @@ export { blockCard } from './block-card';
|
|
38
38
|
export { unsupportedBlock } from './unsupported-block';
|
39
39
|
export { unsupportedInline } from './unsupported-inline';
|
40
40
|
export { status } from './status';
|
41
|
-
export { nestedExpand
|
41
|
+
export { nestedExpand } from './nested-expand';
|
42
42
|
export { embedCard } from './embed-card';
|
43
43
|
// Extensions
|
44
44
|
export { extension } from './extension';
|
@@ -12,7 +12,7 @@
|
|
12
12
|
* @name nestedExpand_with_no_marks_node
|
13
13
|
*/
|
14
14
|
|
15
|
-
var createNestedExpandSpec = function createNestedExpandSpec(
|
15
|
+
var createNestedExpandSpec = function createNestedExpandSpec() {
|
16
16
|
var nestedExpandSpec = {
|
17
17
|
inline: false,
|
18
18
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
@@ -55,19 +55,12 @@ var createNestedExpandSpec = function createNestedExpandSpec(isExtended) {
|
|
55
55
|
return ['div', attrs, 0];
|
56
56
|
}
|
57
57
|
};
|
58
|
-
|
59
|
-
nestedExpandSpec.content = '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock)+';
|
60
|
-
} else {
|
61
|
-
nestedExpandSpec.content = '(paragraph | heading | mediaSingle | mediaGroup | unsupportedBlock)+';
|
62
|
-
}
|
58
|
+
nestedExpandSpec.content = '(paragraph | heading | mediaSingle | mediaGroup | codeBlock | bulletList | orderedList | taskList | decisionList | rule | panel | blockquote | unsupportedBlock)+';
|
63
59
|
return nestedExpandSpec;
|
64
60
|
};
|
65
|
-
export var nestedExpand = createNestedExpandSpec(false);
|
66
61
|
|
67
62
|
/**
|
68
|
-
* @name
|
69
|
-
* @description
|
70
|
-
* Specifically, it allows codeBlock, bulletList, orderedList, taskList, decisionList, rule, panel, blockquote nodes in
|
71
|
-
* addition to content allowed inside nestedExpand
|
63
|
+
* @name nestedExpand
|
64
|
+
* @description an expand that can be nested (eg. inside table, layout).
|
72
65
|
*/
|
73
|
-
export var
|
66
|
+
export var nestedExpand = createNestedExpandSpec();
|
@@ -23,7 +23,7 @@
|
|
23
23
|
* @name paragraph_with_indentation_node
|
24
24
|
*/
|
25
25
|
|
26
|
-
export var
|
26
|
+
export var paragraphStage0 = {
|
27
27
|
selectable: false,
|
28
28
|
content: 'inline*',
|
29
29
|
group: 'block',
|
@@ -36,9 +36,10 @@ export var paragraph = {
|
|
36
36
|
parseDOM: [{
|
37
37
|
tag: 'p',
|
38
38
|
getAttrs: function getAttrs(domNode) {
|
39
|
+
var _paragraph$attrs;
|
39
40
|
var dom = domNode;
|
40
41
|
var attrs = {
|
41
|
-
localId: dom.getAttribute('data-local-id') || paragraph.attrs.localId.default
|
42
|
+
localId: dom.getAttribute('data-local-id') || ((_paragraph$attrs = paragraph.attrs) === null || _paragraph$attrs === void 0 ? void 0 : _paragraph$attrs.localId.default)
|
42
43
|
};
|
43
44
|
return attrs;
|
44
45
|
}
|
@@ -50,4 +51,16 @@ export var paragraph = {
|
|
50
51
|
} : undefined;
|
51
52
|
return ['p', attrs, 0];
|
52
53
|
}
|
54
|
+
};
|
55
|
+
export var paragraph = {
|
56
|
+
selectable: false,
|
57
|
+
content: 'inline*',
|
58
|
+
group: 'block',
|
59
|
+
marks: 'strong code em link border strike subsup textColor backgroundColor typeAheadQuery underline confluenceInlineComment action annotation unsupportedMark unsupportedNodeAttribute dataConsumer fragment',
|
60
|
+
parseDOM: [{
|
61
|
+
tag: 'p'
|
62
|
+
}],
|
63
|
+
toDOM: function toDOM() {
|
64
|
+
return ['p', 0];
|
65
|
+
}
|
53
66
|
};
|
package/dist/types/index.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
export { PanelType, AnnotationTypes, alignment, alignmentPositionMap, annotation, blockCard, blockquote, blockquoteWithList, bodiedExtension, breakout, bulletList, bulletListSelector, caption, code, codeBlock, codeBlockToJSON, colorPalette,
|
2
2
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
3
|
-
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand,
|
3
|
+
colorPaletteExtended, confluenceInlineComment, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, createSchema, dataConsumer, dataConsumerToJSON, date, decisionItem, decisionList, decisionListSelector, doc, em, embedCard, emoji, expand, expandToJSON, extension, fragment, fragmentToJSON, hardBreak, heading, image, indentation, inlineCard, inlineExtension, inlineNodes, layoutColumn, layoutSection, link, linkToJSON, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleSpec, mediaInline, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, paragraphStage0, 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, } from './schema';
|
4
4
|
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, 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';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand,
|
1
|
+
export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, paragraphStage0, 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, } from './nodes';
|
2
2
|
export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, 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. */
|
@@ -20,7 +20,7 @@ export { rule } from './rule';
|
|
20
20
|
export type { RuleDefinition } from './rule';
|
21
21
|
export { orderedList, orderedListSelector, orderedListWithOrder, } from './ordered-list';
|
22
22
|
export type { OrderedListDefinition } from './types/list';
|
23
|
-
export { paragraph } from './paragraph';
|
23
|
+
export { paragraph, paragraphStage0 } from './paragraph';
|
24
24
|
export type { ParagraphDefinition, ParagraphBaseDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, } from './paragraph';
|
25
25
|
export { emoji } from './emoji';
|
26
26
|
export type { EmojiAttributes, EmojiDefinition } from './emoji';
|
@@ -70,7 +70,7 @@ export { unsupportedBlock } from './unsupported-block';
|
|
70
70
|
export { unsupportedInline } from './unsupported-inline';
|
71
71
|
export { status } from './status';
|
72
72
|
export type { StatusDefinition } from './status';
|
73
|
-
export { nestedExpand
|
73
|
+
export { nestedExpand } from './nested-expand';
|
74
74
|
export type { NestedExpandDefinition } from './nested-expand';
|
75
75
|
export type { NoMark } from './types/mark';
|
76
76
|
export type { MarksObject } from './types/mark';
|
@@ -31,11 +31,8 @@ export interface NestedExpandBaseDefinition {
|
|
31
31
|
* @name nestedExpand_with_no_marks_node
|
32
32
|
*/
|
33
33
|
export type NestedExpandDefinition = NestedExpandBaseDefinition & NoMark;
|
34
|
-
export declare const nestedExpand: NodeSpec;
|
35
34
|
/**
|
36
|
-
* @name
|
37
|
-
* @description
|
38
|
-
* Specifically, it allows codeBlock, bulletList, orderedList, taskList, decisionList, rule, panel, blockquote nodes in
|
39
|
-
* addition to content allowed inside nestedExpand
|
35
|
+
* @name nestedExpand
|
36
|
+
* @description an expand that can be nested (eg. inside table, layout).
|
40
37
|
*/
|
41
|
-
export declare const
|
38
|
+
export declare const nestedExpand: NodeSpec;
|
@@ -44,4 +44,5 @@ export type ParagraphWithAlignmentDefinition = ParagraphBaseDefinition & MarksOb
|
|
44
44
|
*/
|
45
45
|
export type ParagraphWithIndentationDefinition = ParagraphBaseDefinition & MarksObject<IndentationMarkDefinition>;
|
46
46
|
export type ParagraphWithMarksDefinition = ParagraphWithAlignmentDefinition | ParagraphWithIndentationDefinition;
|
47
|
+
export declare const paragraphStage0: NodeSpec;
|
47
48
|
export declare const paragraph: NodeSpec;
|
package/package.json
CHANGED