@atlaskit/adf-schema 35.8.0 → 35.9.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 +6 -0
- package/dist/cjs/schema/bitbucket-schema.js +2 -3
- package/dist/cjs/schema/confluence-schema.js +3 -5
- package/dist/cjs/schema/create-schema.js +1 -2
- package/dist/cjs/schema/default-schema.js +5 -7
- package/dist/cjs/schema/groups.js +6 -12
- package/dist/cjs/schema/index.js +6 -0
- package/dist/cjs/schema/inline-nodes.js +4 -5
- package/dist/cjs/schema/marks/alignment.js +4 -5
- package/dist/cjs/schema/marks/annotation.js +4 -7
- package/dist/cjs/schema/marks/border.js +3 -5
- package/dist/cjs/schema/marks/breakout.js +2 -3
- package/dist/cjs/schema/marks/code.js +2 -3
- package/dist/cjs/schema/marks/confluence-inline-comment.js +2 -3
- package/dist/cjs/schema/marks/data-consumer.js +3 -5
- package/dist/cjs/schema/marks/em.js +2 -3
- package/dist/cjs/schema/marks/fragment.js +3 -5
- package/dist/cjs/schema/marks/indentation.js +2 -3
- package/dist/cjs/schema/marks/link.js +4 -7
- package/dist/cjs/schema/marks/strike.js +2 -3
- package/dist/cjs/schema/marks/strong.js +2 -3
- package/dist/cjs/schema/marks/subsup.js +2 -3
- package/dist/cjs/schema/marks/text-color.js +5 -9
- package/dist/cjs/schema/marks/type-ahead-query.js +2 -3
- package/dist/cjs/schema/marks/underline.js +2 -3
- package/dist/cjs/schema/marks/unsupported-mark.js +2 -3
- package/dist/cjs/schema/marks/unsupported-node-attributes.js +2 -3
- package/dist/cjs/schema/nodes/block-card.js +2 -3
- package/dist/cjs/schema/nodes/blockquote.js +2 -4
- package/dist/cjs/schema/nodes/bodied-extension.js +1 -2
- package/dist/cjs/schema/nodes/bullet-list.js +3 -5
- package/dist/cjs/schema/nodes/caption.js +2 -3
- package/dist/cjs/schema/nodes/code-block.js +3 -5
- package/dist/cjs/schema/nodes/confluence-jira-issue.js +2 -3
- package/dist/cjs/schema/nodes/confluence-unsupported-block.js +2 -3
- package/dist/cjs/schema/nodes/confluence-unsupported-inline.js +2 -3
- package/dist/cjs/schema/nodes/date.js +2 -3
- package/dist/cjs/schema/nodes/decision-item.js +2 -3
- package/dist/cjs/schema/nodes/decision-list.js +3 -5
- package/dist/cjs/schema/nodes/doc.js +2 -3
- package/dist/cjs/schema/nodes/embed-card.js +2 -3
- package/dist/cjs/schema/nodes/emoji.js +2 -3
- package/dist/cjs/schema/nodes/expand.js +3 -5
- package/dist/cjs/schema/nodes/extension.js +1 -2
- package/dist/cjs/schema/nodes/hard-break.js +2 -3
- package/dist/cjs/schema/nodes/heading.js +2 -3
- package/dist/cjs/schema/nodes/image.js +2 -3
- package/dist/cjs/schema/nodes/index.js +6 -0
- package/dist/cjs/schema/nodes/inline-card.js +2 -3
- package/dist/cjs/schema/nodes/inline-extension.js +1 -2
- package/dist/cjs/schema/nodes/layout-column.js +2 -3
- package/dist/cjs/schema/nodes/layout-section.js +3 -5
- package/dist/cjs/schema/nodes/list-item.js +3 -5
- package/dist/cjs/schema/nodes/media-group.js +2 -3
- package/dist/cjs/schema/nodes/media-inline.js +1 -2
- package/dist/cjs/schema/nodes/media-single.js +8 -15
- package/dist/cjs/schema/nodes/media.js +7 -13
- package/dist/cjs/schema/nodes/mention.js +4 -7
- package/dist/cjs/schema/nodes/multi-bodied-extension.js +3 -4
- package/dist/cjs/schema/nodes/nested-expand.js +2 -4
- package/dist/cjs/schema/nodes/ordered-list.js +4 -7
- package/dist/cjs/schema/nodes/panel.js +4 -7
- package/dist/cjs/schema/nodes/paragraph.js +5 -3
- package/dist/cjs/schema/nodes/placeholder.js +2 -3
- package/dist/cjs/schema/nodes/rule.js +2 -3
- package/dist/cjs/schema/nodes/status.js +2 -3
- package/dist/cjs/schema/nodes/tableNodes.js +32 -42
- package/dist/cjs/schema/nodes/task-item.js +2 -3
- package/dist/cjs/schema/nodes/task-list.js +3 -5
- package/dist/cjs/schema/nodes/text.js +2 -3
- package/dist/cjs/schema/nodes/types/rich-media-common.js +2 -3
- package/dist/cjs/schema/nodes/unknown-block.js +2 -3
- package/dist/cjs/schema/nodes/unsupported-block.js +2 -3
- package/dist/cjs/schema/nodes/unsupported-inline.js +2 -3
- package/dist/cjs/schema/unsupported.js +1 -2
- package/dist/cjs/steps/analytics.js +11 -17
- package/dist/cjs/steps/link-meta-step.js +9 -14
- package/dist/cjs/steps/override-document-step.js +10 -15
- package/dist/cjs/steps/set-attrs.js +7 -10
- package/dist/cjs/steps/type-ahead.js +9 -14
- package/dist/cjs/utils/colors.js +50 -99
- package/dist/cjs/utils/editor-palette.js +4 -7
- package/dist/cjs/utils/extensions.js +3 -5
- package/dist/cjs/utils/lch-color-inversion.js +3 -5
- package/dist/cjs/utils/parseDOM.js +2 -3
- package/dist/cjs/utils/url.js +4 -8
- package/dist/cjs/utils/uuid.js +4 -5
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/schema/default-schema.js +3 -2
- package/dist/es2019/schema/index.js +1 -1
- package/dist/es2019/schema/nodes/heading.js +2 -0
- package/dist/es2019/schema/nodes/index.js +1 -1
- package/dist/es2019/schema/nodes/layout-section.js +3 -0
- package/dist/es2019/schema/nodes/paragraph.js +3 -0
- package/dist/es2019/schema/nodes/tableNodes.js +13 -4
- package/dist/es2019/utils/colors.js +0 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/schema/default-schema.js +3 -2
- package/dist/esm/schema/index.js +1 -1
- package/dist/esm/schema/marks/link.js +1 -2
- package/dist/esm/schema/nodes/heading.js +2 -0
- package/dist/esm/schema/nodes/index.js +1 -1
- package/dist/esm/schema/nodes/layout-section.js +3 -0
- package/dist/esm/schema/nodes/paragraph.js +3 -0
- package/dist/esm/schema/nodes/tableNodes.js +12 -3
- package/dist/esm/steps/analytics.js +8 -11
- package/dist/esm/steps/link-meta-step.js +6 -8
- package/dist/esm/steps/override-document-step.js +8 -11
- package/dist/esm/steps/set-attrs.js +6 -8
- package/dist/esm/steps/type-ahead.js +6 -8
- package/dist/esm/utils/colors.js +0 -1
- package/dist/json-schema/v1/stage-0.json +6 -0
- 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 +1 -1
- package/dist/types/schema/nodes/tableNodes.d.ts +6 -0
- package/json-schema/v1/stage-0.json +6 -0
- package/package.json +1 -1
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, extendedNestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension } from './schema';
|
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, extendedNestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, 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 } 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,5 +1,5 @@
|
|
1
1
|
import memoizeOne from 'memoize-one';
|
2
|
-
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension } from './nodes';
|
2
|
+
import { extensionFrame, layoutSectionWithSingleColumn, multiBodiedExtension, tableStage0 } from './nodes';
|
3
3
|
import { createSchema } from './create-schema';
|
4
4
|
var getDefaultSchemaConfig = function getDefaultSchemaConfig() {
|
5
5
|
var defaultSchemaConfig = {
|
@@ -18,7 +18,8 @@ export var getSchemaBasedOnStage = memoizeOne(function () {
|
|
18
18
|
defaultSchemaConfig.customNodeSpecs = {
|
19
19
|
layoutSection: layoutSectionWithSingleColumn,
|
20
20
|
multiBodiedExtension: multiBodiedExtension,
|
21
|
-
extensionFrame: extensionFrame
|
21
|
+
extensionFrame: extensionFrame,
|
22
|
+
table: tableStage0
|
22
23
|
};
|
23
24
|
}
|
24
25
|
return createSchema(defaultSchemaConfig);
|
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, extendedNestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension } from './nodes';
|
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, extendedNestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, 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 } 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 } from './marks';
|
4
4
|
export { unsupportedNodeTypesForMediaCards } from './unsupported';
|
@@ -53,7 +53,6 @@ export var link = {
|
|
53
53
|
getAttrs: getLinkAttrs('href')
|
54
54
|
}],
|
55
55
|
toDOM: function toDOM(node, isInline) {
|
56
|
-
var _objectSpread2;
|
57
56
|
var attrs = Object.keys(node.attrs).reduce(function (attrs, key) {
|
58
57
|
if (key === '__confluenceMetadata') {
|
59
58
|
if (node.attrs[key] !== null) {
|
@@ -69,7 +68,7 @@ export var link = {
|
|
69
68
|
if (isInline) {
|
70
69
|
return ['a', attrs];
|
71
70
|
}
|
72
|
-
return ['a', _objectSpread(_objectSpread({}, attrs), {}, (
|
71
|
+
return ['a', _objectSpread(_objectSpread({}, attrs), {}, _defineProperty(_defineProperty({}, 'data-block-link', 'true'), "class", 'blockLink')), 0];
|
73
72
|
}
|
74
73
|
};
|
75
74
|
var OPTIONAL_ATTRS = ['title', 'id', 'collection', 'occurrenceKey', '__confluenceMetadata'];
|
@@ -24,7 +24,7 @@ export { media, copyPrivateAttributes as copyPrivateMediaAttributes, toJSON as m
|
|
24
24
|
export { mediaGroup } from './media-group';
|
25
25
|
export { mediaInline } from './media-inline';
|
26
26
|
export { mediaSingle, mediaSingleSpec, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, toJSON as mediaSingleToJSON } from './media-single';
|
27
|
-
export { table, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector } from './tableNodes';
|
27
|
+
export { table, tableStage0, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector } from './tableNodes';
|
28
28
|
export { decisionList, decisionListSelector } from './decision-list';
|
29
29
|
export { decisionItem } from './decision-item';
|
30
30
|
export { taskList, taskListSelector } from './task-list';
|
@@ -5,13 +5,16 @@
|
|
5
5
|
/**
|
6
6
|
* Need duplicate `type` and `marks` to make both validator and json-schema satisfied
|
7
7
|
*/
|
8
|
+
|
8
9
|
/**
|
9
10
|
* @name layoutSection_full_node
|
10
11
|
*/
|
12
|
+
|
11
13
|
/**
|
12
14
|
* @stage 0
|
13
15
|
* @name layoutSection_with_single_column_node
|
14
16
|
*/
|
17
|
+
|
15
18
|
export var layoutSection = {
|
16
19
|
content: '(layoutColumn | unsupportedBlock){1,3} unsupportedBlock* | unsupportedBlock+',
|
17
20
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
@@ -14,12 +14,15 @@
|
|
14
14
|
* type T1 = X | Y
|
15
15
|
* type T2 = A | T1 | B // T2 = A | X | Y | B
|
16
16
|
*/
|
17
|
+
|
17
18
|
/**
|
18
19
|
* @name paragraph_with_alignment_node
|
19
20
|
*/
|
21
|
+
|
20
22
|
/**
|
21
23
|
* @name paragraph_with_indentation_node
|
22
24
|
*/
|
25
|
+
|
23
26
|
var pDOM = ['p', 0];
|
24
27
|
export var paragraph = {
|
25
28
|
selectable: false,
|
@@ -196,6 +196,7 @@ export var tableBackgroundColorNames = new Map();
|
|
196
196
|
|
197
197
|
// TODO: Fix any, potential issue. ED-5048
|
198
198
|
var createTableSpec = function createTableSpec() {
|
199
|
+
var allowPreserveTableWidth = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
199
200
|
var attrs = {
|
200
201
|
isNumberColumnEnabled: {
|
201
202
|
default: false
|
@@ -213,9 +214,14 @@ var createTableSpec = function createTableSpec() {
|
|
213
214
|
default: null
|
214
215
|
}
|
215
216
|
};
|
217
|
+
var finalAttrs = allowPreserveTableWidth ? _objectSpread(_objectSpread({}, attrs), {}, {
|
218
|
+
displayMode: {
|
219
|
+
default: null
|
220
|
+
}
|
221
|
+
}) : attrs;
|
216
222
|
var tableNodeSpec = {
|
217
223
|
content: 'tableRow+',
|
218
|
-
attrs:
|
224
|
+
attrs: finalAttrs,
|
219
225
|
marks: 'unsupportedMark unsupportedNodeAttribute',
|
220
226
|
tableRole: 'table',
|
221
227
|
isolating: true,
|
@@ -235,7 +241,8 @@ var createTableSpec = function createTableSpec() {
|
|
235
241
|
breakoutWrapper === null || breakoutWrapper === void 0 ? void 0 : breakoutWrapper.getAttribute('data-layout')) || 'default',
|
236
242
|
__autoSize: dom.getAttribute('data-autosize') === 'true',
|
237
243
|
localId: dom.getAttribute('data-table-local-id') || uuid.generate(),
|
238
|
-
width: Number(dom.getAttribute('data-table-width')) || null
|
244
|
+
width: Number(dom.getAttribute('data-table-width')) || null,
|
245
|
+
displayMode: dom.getAttribute('data-table-display-mode') || null
|
239
246
|
};
|
240
247
|
}
|
241
248
|
}],
|
@@ -245,7 +252,8 @@ var createTableSpec = function createTableSpec() {
|
|
245
252
|
'data-layout': node.attrs.layout,
|
246
253
|
'data-autosize': node.attrs.__autoSize,
|
247
254
|
'data-table-local-id': node.attrs.localId,
|
248
|
-
'data-table-width': node.attrs.width
|
255
|
+
'data-table-width': node.attrs.width,
|
256
|
+
'data-table-display-mode': node.attrs.displayMode
|
249
257
|
};
|
250
258
|
return ['table', attrs, ['tbody', 0]];
|
251
259
|
}
|
@@ -258,6 +266,7 @@ var createTableSpec = function createTableSpec() {
|
|
258
266
|
export var table = createTableSpec();
|
259
267
|
/** @deprecated Do not use, instead use the regular `table` export */
|
260
268
|
export var tableWithCustomWidth = createTableSpec();
|
269
|
+
export var tableStage0 = createTableSpec(true);
|
261
270
|
var shouldIncludeAttribute = function shouldIncludeAttribute(key, value) {
|
262
271
|
return !key.startsWith('__') && (key !== 'localId' || !!value);
|
263
272
|
};
|
@@ -1,13 +1,12 @@
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
4
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
5
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
6
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
7
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
6
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
8
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
9
|
-
function
|
10
|
-
function _isNativeReflectConstruct() {
|
8
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
11
10
|
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; }
|
12
11
|
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; }
|
13
12
|
import { Step, StepResult, StepMap, ReplaceStep } from '@atlaskit/editor-prosemirror/transform';
|
@@ -53,17 +52,15 @@ function isHistoryAnalyticsEvent(event) {
|
|
53
52
|
* undo/redo events for free
|
54
53
|
*/
|
55
54
|
export var AnalyticsStep = /*#__PURE__*/function (_Step) {
|
56
|
-
_inherits(AnalyticsStep, _Step);
|
57
|
-
var _super = _createSuper(AnalyticsStep);
|
58
55
|
function AnalyticsStep(analyticsEvents) {
|
59
56
|
var _this;
|
60
57
|
var actionsToIgnore = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
61
58
|
var pos // Used to create the map, prevent splitting history.
|
62
59
|
= arguments.length > 2 ? arguments[2] : undefined;
|
63
60
|
_classCallCheck(this, AnalyticsStep);
|
64
|
-
_this =
|
65
|
-
_defineProperty(
|
66
|
-
_defineProperty(
|
61
|
+
_this = _callSuper(this, AnalyticsStep);
|
62
|
+
_defineProperty(_this, "analyticsEvents", []);
|
63
|
+
_defineProperty(_this, "actionsToIgnore", []);
|
67
64
|
_this.analyticsEvents = analyticsEvents;
|
68
65
|
_this.actionsToIgnore = actionsToIgnore;
|
69
66
|
_this.pos = pos;
|
@@ -73,7 +70,8 @@ export var AnalyticsStep = /*#__PURE__*/function (_Step) {
|
|
73
70
|
/**
|
74
71
|
* Generate new undo/redo analytics event when step is inverted
|
75
72
|
*/
|
76
|
-
|
73
|
+
_inherits(AnalyticsStep, _Step);
|
74
|
+
return _createClass(AnalyticsStep, [{
|
77
75
|
key: "invert",
|
78
76
|
value: function invert() {
|
79
77
|
var _this2 = this;
|
@@ -133,7 +131,6 @@ export var AnalyticsStep = /*#__PURE__*/function (_Step) {
|
|
133
131
|
return new ReplaceStep(0, 0, Slice.empty);
|
134
132
|
}
|
135
133
|
}]);
|
136
|
-
return AnalyticsStep;
|
137
134
|
}(Step);
|
138
135
|
|
139
136
|
/** Register this step with Prosemirror */
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
3
3
|
import _createClass from "@babel/runtime/helpers/createClass";
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
5
4
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
6
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
6
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
7
7
|
var _excluded = ["sourceEvent"];
|
8
|
-
function
|
9
|
-
function _isNativeReflectConstruct() {
|
8
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
9
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
10
10
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
11
11
|
import { ReplaceStep, Step, StepMap, StepResult } from '@atlaskit/editor-prosemirror/transform';
|
12
12
|
export var stepType = 'editor-linking-meta';
|
@@ -17,19 +17,18 @@ export var invertStepType = 'editor-linking-meta-invert';
|
|
17
17
|
* firing events on history change
|
18
18
|
*/
|
19
19
|
export var LinkMetaStep = /*#__PURE__*/function (_Step) {
|
20
|
-
_inherits(LinkMetaStep, _Step);
|
21
|
-
var _super = _createSuper(LinkMetaStep);
|
22
20
|
function LinkMetaStep(pos, metadata) {
|
23
21
|
var _this;
|
24
22
|
var isInverted = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
25
23
|
_classCallCheck(this, LinkMetaStep);
|
26
|
-
_this =
|
24
|
+
_this = _callSuper(this, LinkMetaStep);
|
27
25
|
_this.pos = pos;
|
28
26
|
_this.metadata = metadata;
|
29
27
|
_this.isInverted = isInverted;
|
30
28
|
return _this;
|
31
29
|
}
|
32
|
-
|
30
|
+
_inherits(LinkMetaStep, _Step);
|
31
|
+
return _createClass(LinkMetaStep, [{
|
33
32
|
key: "getMetadata",
|
34
33
|
value: function getMetadata() {
|
35
34
|
return this.metadata;
|
@@ -97,7 +96,6 @@ export var LinkMetaStep = /*#__PURE__*/function (_Step) {
|
|
97
96
|
return new ReplaceStep(0, 0, Slice.empty);
|
98
97
|
}
|
99
98
|
}]);
|
100
|
-
return LinkMetaStep;
|
101
99
|
}(Step);
|
102
100
|
|
103
101
|
/** Register this step with Prosemirror */
|
@@ -1,23 +1,20 @@
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
5
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
6
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
7
6
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
8
|
-
function
|
9
|
-
function _isNativeReflectConstruct() {
|
7
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
8
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
10
9
|
import { Step, StepResult, StepMap } from '@atlaskit/editor-prosemirror/transform';
|
11
10
|
export var overrideDocumentStepType = 'override-document';
|
12
11
|
export var OverrideDocumentStep = /*#__PURE__*/function (_Step) {
|
13
|
-
_inherits(OverrideDocumentStep, _Step);
|
14
|
-
var _super = _createSuper(OverrideDocumentStep);
|
15
12
|
function OverrideDocumentStep(opts) {
|
16
13
|
var _this;
|
17
14
|
_classCallCheck(this, OverrideDocumentStep);
|
18
|
-
_this =
|
19
|
-
_defineProperty(
|
20
|
-
_defineProperty(
|
15
|
+
_this = _callSuper(this, OverrideDocumentStep);
|
16
|
+
_defineProperty(_this, "inverted", false);
|
17
|
+
_defineProperty(_this, "oldDocumentSize", 0);
|
21
18
|
var inverted = opts.inverted,
|
22
19
|
nextDocument = opts.nextDocument;
|
23
20
|
if (nextDocument.type.name !== 'doc') {
|
@@ -27,7 +24,8 @@ export var OverrideDocumentStep = /*#__PURE__*/function (_Step) {
|
|
27
24
|
_this.inverted = Boolean(inverted);
|
28
25
|
return _this;
|
29
26
|
}
|
30
|
-
|
27
|
+
_inherits(OverrideDocumentStep, _Step);
|
28
|
+
return _createClass(OverrideDocumentStep, [{
|
31
29
|
key: "apply",
|
32
30
|
value: function apply(doc) {
|
33
31
|
this.oldDocumentSize = doc.content.size;
|
@@ -80,6 +78,5 @@ export var OverrideDocumentStep = /*#__PURE__*/function (_Step) {
|
|
80
78
|
});
|
81
79
|
}
|
82
80
|
}]);
|
83
|
-
return OverrideDocumentStep;
|
84
81
|
}(Step);
|
85
82
|
Step.jsonID(overrideDocumentStepType, OverrideDocumentStep);
|
@@ -2,13 +2,13 @@ import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
4
4
|
import _createClass from "@babel/runtime/helpers/createClass";
|
5
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
6
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
7
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
7
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
8
8
|
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; }
|
9
9
|
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; }
|
10
|
-
function
|
11
|
-
function _isNativeReflectConstruct() {
|
10
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
11
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
12
12
|
import { Step, StepResult } from '@atlaskit/editor-prosemirror/transform';
|
13
13
|
import { Slice, Fragment } from '@atlaskit/editor-prosemirror/model';
|
14
14
|
|
@@ -17,17 +17,16 @@ import { Slice, Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
17
17
|
* @see https://discuss.prosemirror.net/t/preventing-image-placeholder-replacement-from-being-undone/1394
|
18
18
|
*/
|
19
19
|
export var SetAttrsStep = /*#__PURE__*/function (_Step) {
|
20
|
-
_inherits(SetAttrsStep, _Step);
|
21
|
-
var _super = _createSuper(SetAttrsStep);
|
22
20
|
function SetAttrsStep(pos, attrs) {
|
23
21
|
var _this;
|
24
22
|
_classCallCheck(this, SetAttrsStep);
|
25
|
-
_this =
|
23
|
+
_this = _callSuper(this, SetAttrsStep);
|
26
24
|
_this.pos = pos;
|
27
25
|
_this.attrs = attrs;
|
28
26
|
return _this;
|
29
27
|
}
|
30
|
-
|
28
|
+
_inherits(SetAttrsStep, _Step);
|
29
|
+
return _createClass(SetAttrsStep, [{
|
31
30
|
key: "apply",
|
32
31
|
value: function apply(doc) {
|
33
32
|
var target = doc.nodeAt(this.pos);
|
@@ -72,6 +71,5 @@ export var SetAttrsStep = /*#__PURE__*/function (_Step) {
|
|
72
71
|
return new SetAttrsStep(json.pos, json.attrs);
|
73
72
|
}
|
74
73
|
}]);
|
75
|
-
return SetAttrsStep;
|
76
74
|
}(Step);
|
77
75
|
Step.jsonID('setAttrs', SetAttrsStep);
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
|
2
2
|
import _createClass from "@babel/runtime/helpers/createClass";
|
3
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
4
3
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
5
4
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
6
|
-
|
7
|
-
function
|
5
|
+
import _inherits from "@babel/runtime/helpers/inherits";
|
6
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
7
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
8
8
|
import { Slice } from '@atlaskit/editor-prosemirror/model';
|
9
9
|
import { ReplaceStep, Step, StepMap, StepResult } from '@atlaskit/editor-prosemirror/transform';
|
10
10
|
export var insertTypeAheadStepType = 'atlaskit-insert-type-ahead';
|
@@ -14,8 +14,6 @@ export var InsertTypeAheadStages = /*#__PURE__*/function (InsertTypeAheadStages)
|
|
14
14
|
return InsertTypeAheadStages;
|
15
15
|
}({});
|
16
16
|
export var InsertTypeAheadStep = /*#__PURE__*/function (_Step) {
|
17
|
-
_inherits(InsertTypeAheadStep, _Step);
|
18
|
-
var _super = _createSuper(InsertTypeAheadStep);
|
19
17
|
function InsertTypeAheadStep(_ref) {
|
20
18
|
var _this;
|
21
19
|
var stage = _ref.stage,
|
@@ -24,7 +22,7 @@ export var InsertTypeAheadStep = /*#__PURE__*/function (_Step) {
|
|
24
22
|
selectedIndex = _ref.selectedIndex;
|
25
23
|
var isInvertStep = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
26
24
|
_classCallCheck(this, InsertTypeAheadStep);
|
27
|
-
_this =
|
25
|
+
_this = _callSuper(this, InsertTypeAheadStep);
|
28
26
|
_this.isInvertStep = isInvertStep;
|
29
27
|
_this.stage = stage;
|
30
28
|
_this.query = query;
|
@@ -32,7 +30,8 @@ export var InsertTypeAheadStep = /*#__PURE__*/function (_Step) {
|
|
32
30
|
_this.selectedIndex = selectedIndex;
|
33
31
|
return _this;
|
34
32
|
}
|
35
|
-
|
33
|
+
_inherits(InsertTypeAheadStep, _Step);
|
34
|
+
return _createClass(InsertTypeAheadStep, [{
|
36
35
|
key: "invert",
|
37
36
|
value: function invert() {
|
38
37
|
var config = {
|
@@ -98,7 +97,6 @@ export var InsertTypeAheadStep = /*#__PURE__*/function (_Step) {
|
|
98
97
|
return new ReplaceStep(0, 0, Slice.empty);
|
99
98
|
}
|
100
99
|
}]);
|
101
|
-
return InsertTypeAheadStep;
|
102
100
|
}(Step);
|
103
101
|
|
104
102
|
/** Register this step with Prosemirror */
|
package/dist/esm/utils/colors.js
CHANGED
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, extendedNestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, placeholder, rule, sanitizeNodes, getCellAttrs, getCellDomAttrs, status, strike, strong, subsup, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, textColor, toJSONTableCell, toJSONTableHeader, typeAheadQuery, underline, unknownBlock, unsupportedBlock, unsupportedInline, unsupportedNodeTypesForMediaCards, buildAnnotationMarkDataAttributes, AnnotationMarkStates, unsupportedMark, unsupportedNodeAttribute, border, borderColorPalette, extensionFrame, multiBodiedExtension, } from './schema';
|
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, extendedNestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, 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, } from './schema';
|
4
4
|
export type { AlignmentAttributes, AlignmentMarkDefinition, AnnotationMarkAttributes, AnnotationMarkDefinition, BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BreakoutMarkAttrs, BreakoutMarkDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, CodeDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataConsumerAttributes, DataConsumerDefinition, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmDefinition, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, FragmentAttributes, FragmentDefinition, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, IndentationMarkAttributes, IndentationMarkDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, LinkAttributes, LinkDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, StrikeDefinition, StrongDefinition, SubSupAttributes, SubSupDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextColorAttributes, TextColorDefinition, TextDefinition, UnderlineDefinition, UrlType, AnnotationId, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, AnnotationDataAttributes, CellDomAttrs, BorderMarkAttributes, BorderMarkDefinition, MultiBodiedExtensionDefinition, ExtensionFrameDefinition, } from './schema';
|
5
5
|
export { B100, B400, B50, B500, B75, G200, G300, G400, G50, G500, G75, N0, N20, N200, N30, N300, N40, N50, N500, N60, N80, N800, N90, P100, P300, P400, P50, P500, P75, R100, R300, R400, R50, R500, R75, T100, T300, T50, T500, T75, Y200, Y400, Y50, Y500, Y75, acNameToEmoji, acShortcutToEmoji, emojiIdToAcName, generateUuid, getEmojiAcName, getLinkMatch, hexToRgb, hexToRgba, isHex, isRgb, isSafeUrl, linkify, linkifyMatch, normalizeHexColor, normalizeUrl, rgbToHex, uuid, getDarkModeLCHColor, } from './utils';
|
6
6
|
export type { Match, NameToEmoji } from './utils';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { PanelType, blockCard, blockquote, blockquoteWithList, bodiedExtension, bulletList, bulletListSelector, caption, codeBlock, codeBlockToJSON, confluenceJiraIssue, confluenceUnsupportedBlock, confluenceUnsupportedInline, copyPrivateMediaAttributes, date, decisionItem, decisionList, decisionListSelector, doc, embedCard, emoji, expand, expandToJSON, extension, hardBreak, heading, image, inlineCard, inlineExtension, layoutColumn, layoutSection, layoutSectionWithSingleColumn, listItem, listItemWithTask, media, mediaGroup, mediaSingle, mediaSingleSpec, mediaInline, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, mediaSingleToJSON, mediaToJSON, mention, mentionToJSON, nestedExpand, extendedNestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, extendedPanel, paragraph, placeholder, rule, getCellAttrs, getCellDomAttrs, status, table, tableWithCustomWidth, tableBackgroundBorderColor, tableBackgroundColorNames, tableBackgroundColorPalette, tableCell, tableCellContentDomSelector, tableCellContentWrapperSelector, tableCellSelector, tableHeader, tableHeaderSelector, tablePrefixSelector, tableRow, tableToJSON, taskItem, taskList, taskListSelector, text, toJSONTableCell, toJSONTableHeader, unknownBlock, unsupportedBlock, unsupportedInline, extensionFrame, multiBodiedExtension, } from './nodes';
|
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, extendedNestedExpand, orderedList, orderedListSelector, orderedListWithOrder, panel, 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, } from './nodes';
|
2
2
|
export type { BlockCardDefinition, BlockContent, BlockQuoteDefinition, BodiedExtensionDefinition, BulletListDefinition, CaptionDefinition, CardAttributes, CellAttributes, CodeBlockAttrs, CodeBlockBaseDefinition, CodeBlockDefinition, CodeBlockWithMarksDefinition, DatasourceAttributes, DatasourceAttributeProperties, DataType, DateDefinition, DecisionItemDefinition, DecisionListDefinition, DocNode, EmbedCardDefinition, EmbedCardAttributes, EmojiAttributes, EmojiDefinition, ExpandDefinition, ExtensionDefinition, ExtensionLayout, ExternalMediaAttributes, HardBreakDefinition, HeadingBaseDefinition, HeadingDefinition, HeadingWithAlignmentDefinition, HeadingWithIndentationDefinition, HeadingWithMarksDefinition, Inline, InlineAtomic, InlineCardDefinition, InlineCode, InlineExtensionDefinition, InlineFormattedText, InlineLinkText, LayoutColumnDefinition, LayoutSectionDefinition, LayoutSectionBaseDefinition, LayoutSectionFullDefinition, LayoutSectionWithSingleColumnDefinition, ListItemArray, ListItemDefinition, MarksObject, MediaADFAttrs, MediaAttributes, MediaInlineAttributes, MediaInlineDefinition, MediaBaseAttributes, MediaDefinition, MediaDisplayType, MediaGroupDefinition, MediaSingleDefinition, MediaType, MentionAttributes, MentionDefinition, MentionUserType, NestedExpandContent, NestedExpandDefinition, NoMark, NonNestableBlockContent, OrderedListDefinition, PanelAttributes, PanelDefinition, ParagraphBaseDefinition, ParagraphDefinition, ParagraphWithAlignmentDefinition, ParagraphWithIndentationDefinition, ParagraphWithMarksDefinition, PlaceholderDefinition, RuleDefinition, StatusDefinition, TableAttributes, TableCellDefinition, TableDefinition, TableHeaderDefinition, TableLayout, TableRowDefinition, TaskItemDefinition, TaskListContent, TaskListDefinition, TextDefinition, UrlType, RichMediaAttributes, ExtendedMediaAttributes, RichMediaLayout, CellDomAttrs, ExtensionFrameDefinition, MultiBodiedExtensionDefinition, } from './nodes';
|
3
3
|
export { AnnotationTypes, alignment, alignmentPositionMap, annotation, breakout, code, colorPalette,
|
4
4
|
/** @deprecated [ED-15849] The extended palette is now rolled into the main one. Use `colorPalette` instead. */
|
@@ -44,7 +44,7 @@ export type { MediaInlineAttributes, MediaInlineDefinition, } from './media-inli
|
|
44
44
|
export type { MediaGroupDefinition } from './media-group';
|
45
45
|
export { mediaSingle, mediaSingleSpec, mediaSingleWithCaption, mediaSingleWithWidthType, mediaSingleFull, toJSON as mediaSingleToJSON, } from './media-single';
|
46
46
|
export type { MediaSingleDefinition } from './media-single';
|
47
|
-
export { table, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector, } from './tableNodes';
|
47
|
+
export { table, tableStage0, tableWithCustomWidth, tableToJSON, tableCell, toJSONTableCell, tableHeader, toJSONTableHeader, tableRow, tableBackgroundColorPalette, tableBackgroundBorderColor, tableBackgroundColorNames, getCellAttrs, getCellDomAttrs, tablePrefixSelector, tableCellSelector, tableHeaderSelector, tableCellContentWrapperSelector, tableCellContentDomSelector, } from './tableNodes';
|
48
48
|
export type { TableAttributes, CellAttributes, Layout as TableLayout, TableDefinition, TableCell as TableCellDefinition, TableHeader as TableHeaderDefinition, TableRow as TableRowDefinition, CellDomAttrs, } from './tableNodes';
|
49
49
|
export { decisionList, decisionListSelector } from './decision-list';
|
50
50
|
export type { DecisionListDefinition } from './decision-list';
|
@@ -52,6 +52,7 @@ export declare const tableBackgroundColorPalette: Map<string, string>;
|
|
52
52
|
export declare const tableBackgroundBorderColor: string;
|
53
53
|
export declare const tableBackgroundColorNames: Map<string, string>;
|
54
54
|
export type Layout = 'default' | 'full-width' | 'wide';
|
55
|
+
export type DisplayMode = 'default' | 'fixed';
|
55
56
|
export interface TableAttributes {
|
56
57
|
isNumberColumnEnabled?: boolean;
|
57
58
|
layout?: Layout;
|
@@ -61,6 +62,10 @@ export interface TableAttributes {
|
|
61
62
|
*/
|
62
63
|
localId?: string;
|
63
64
|
width?: number;
|
65
|
+
/**
|
66
|
+
* @stage 0
|
67
|
+
*/
|
68
|
+
displayMode?: DisplayMode;
|
64
69
|
}
|
65
70
|
/**
|
66
71
|
* @name table_node
|
@@ -107,6 +112,7 @@ export interface TableHeader {
|
|
107
112
|
export declare const table: NodeSpec;
|
108
113
|
/** @deprecated Do not use, instead use the regular `table` export */
|
109
114
|
export declare const tableWithCustomWidth: NodeSpec;
|
115
|
+
export declare const tableStage0: NodeSpec;
|
110
116
|
export declare const tableToJSON: (node: PmNode) => {
|
111
117
|
attrs: import("prosemirror-model").Attrs;
|
112
118
|
};
|
package/package.json
CHANGED