@atlaskit/adf-schema 35.7.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.
Files changed (123) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/index.js +6 -0
  3. package/dist/cjs/schema/bitbucket-schema.js +2 -3
  4. package/dist/cjs/schema/confluence-schema.js +3 -5
  5. package/dist/cjs/schema/create-schema.js +1 -2
  6. package/dist/cjs/schema/default-schema.js +5 -7
  7. package/dist/cjs/schema/groups.js +6 -12
  8. package/dist/cjs/schema/index.js +6 -0
  9. package/dist/cjs/schema/inline-nodes.js +4 -5
  10. package/dist/cjs/schema/marks/alignment.js +4 -5
  11. package/dist/cjs/schema/marks/annotation.js +4 -7
  12. package/dist/cjs/schema/marks/border.js +3 -5
  13. package/dist/cjs/schema/marks/breakout.js +2 -3
  14. package/dist/cjs/schema/marks/code.js +2 -3
  15. package/dist/cjs/schema/marks/confluence-inline-comment.js +2 -3
  16. package/dist/cjs/schema/marks/data-consumer.js +3 -5
  17. package/dist/cjs/schema/marks/em.js +2 -3
  18. package/dist/cjs/schema/marks/fragment.js +3 -5
  19. package/dist/cjs/schema/marks/indentation.js +2 -3
  20. package/dist/cjs/schema/marks/link.js +4 -7
  21. package/dist/cjs/schema/marks/strike.js +2 -3
  22. package/dist/cjs/schema/marks/strong.js +2 -3
  23. package/dist/cjs/schema/marks/subsup.js +2 -3
  24. package/dist/cjs/schema/marks/text-color.js +5 -9
  25. package/dist/cjs/schema/marks/type-ahead-query.js +2 -3
  26. package/dist/cjs/schema/marks/underline.js +2 -3
  27. package/dist/cjs/schema/marks/unsupported-mark.js +2 -3
  28. package/dist/cjs/schema/marks/unsupported-node-attributes.js +2 -3
  29. package/dist/cjs/schema/nodes/block-card.js +2 -3
  30. package/dist/cjs/schema/nodes/blockquote.js +2 -4
  31. package/dist/cjs/schema/nodes/bodied-extension.js +1 -2
  32. package/dist/cjs/schema/nodes/bullet-list.js +3 -5
  33. package/dist/cjs/schema/nodes/caption.js +2 -3
  34. package/dist/cjs/schema/nodes/code-block.js +3 -5
  35. package/dist/cjs/schema/nodes/confluence-jira-issue.js +2 -3
  36. package/dist/cjs/schema/nodes/confluence-unsupported-block.js +2 -3
  37. package/dist/cjs/schema/nodes/confluence-unsupported-inline.js +2 -3
  38. package/dist/cjs/schema/nodes/date.js +2 -3
  39. package/dist/cjs/schema/nodes/decision-item.js +2 -3
  40. package/dist/cjs/schema/nodes/decision-list.js +3 -5
  41. package/dist/cjs/schema/nodes/doc.js +2 -3
  42. package/dist/cjs/schema/nodes/embed-card.js +2 -3
  43. package/dist/cjs/schema/nodes/emoji.js +2 -3
  44. package/dist/cjs/schema/nodes/expand.js +3 -5
  45. package/dist/cjs/schema/nodes/extension.js +1 -2
  46. package/dist/cjs/schema/nodes/hard-break.js +2 -3
  47. package/dist/cjs/schema/nodes/heading.js +2 -3
  48. package/dist/cjs/schema/nodes/image.js +2 -3
  49. package/dist/cjs/schema/nodes/index.js +6 -0
  50. package/dist/cjs/schema/nodes/inline-card.js +2 -3
  51. package/dist/cjs/schema/nodes/inline-extension.js +1 -2
  52. package/dist/cjs/schema/nodes/layout-column.js +2 -3
  53. package/dist/cjs/schema/nodes/layout-section.js +3 -5
  54. package/dist/cjs/schema/nodes/list-item.js +3 -5
  55. package/dist/cjs/schema/nodes/media-group.js +2 -3
  56. package/dist/cjs/schema/nodes/media-inline.js +1 -2
  57. package/dist/cjs/schema/nodes/media-single.js +8 -15
  58. package/dist/cjs/schema/nodes/media.js +7 -13
  59. package/dist/cjs/schema/nodes/mention.js +4 -7
  60. package/dist/cjs/schema/nodes/multi-bodied-extension.js +3 -7
  61. package/dist/cjs/schema/nodes/nested-expand.js +2 -4
  62. package/dist/cjs/schema/nodes/ordered-list.js +4 -7
  63. package/dist/cjs/schema/nodes/panel.js +4 -7
  64. package/dist/cjs/schema/nodes/paragraph.js +5 -3
  65. package/dist/cjs/schema/nodes/placeholder.js +2 -3
  66. package/dist/cjs/schema/nodes/rule.js +2 -3
  67. package/dist/cjs/schema/nodes/status.js +2 -3
  68. package/dist/cjs/schema/nodes/tableNodes.js +32 -42
  69. package/dist/cjs/schema/nodes/task-item.js +2 -3
  70. package/dist/cjs/schema/nodes/task-list.js +3 -5
  71. package/dist/cjs/schema/nodes/text.js +2 -3
  72. package/dist/cjs/schema/nodes/types/rich-media-common.js +2 -3
  73. package/dist/cjs/schema/nodes/unknown-block.js +2 -3
  74. package/dist/cjs/schema/nodes/unsupported-block.js +2 -3
  75. package/dist/cjs/schema/nodes/unsupported-inline.js +2 -3
  76. package/dist/cjs/schema/unsupported.js +1 -2
  77. package/dist/cjs/steps/analytics.js +11 -17
  78. package/dist/cjs/steps/link-meta-step.js +9 -14
  79. package/dist/cjs/steps/override-document-step.js +10 -15
  80. package/dist/cjs/steps/set-attrs.js +7 -10
  81. package/dist/cjs/steps/type-ahead.js +9 -14
  82. package/dist/cjs/utils/colors.js +50 -99
  83. package/dist/cjs/utils/editor-palette.js +4 -7
  84. package/dist/cjs/utils/extensions.js +3 -5
  85. package/dist/cjs/utils/lch-color-inversion.js +3 -5
  86. package/dist/cjs/utils/parseDOM.js +2 -3
  87. package/dist/cjs/utils/url.js +4 -8
  88. package/dist/cjs/utils/uuid.js +4 -5
  89. package/dist/es2019/index.js +1 -1
  90. package/dist/es2019/schema/default-schema.js +3 -2
  91. package/dist/es2019/schema/index.js +1 -1
  92. package/dist/es2019/schema/nodes/heading.js +2 -0
  93. package/dist/es2019/schema/nodes/index.js +1 -1
  94. package/dist/es2019/schema/nodes/layout-section.js +3 -0
  95. package/dist/es2019/schema/nodes/multi-bodied-extension.js +0 -3
  96. package/dist/es2019/schema/nodes/paragraph.js +3 -0
  97. package/dist/es2019/schema/nodes/tableNodes.js +13 -4
  98. package/dist/es2019/utils/colors.js +0 -1
  99. package/dist/esm/index.js +1 -1
  100. package/dist/esm/schema/default-schema.js +3 -2
  101. package/dist/esm/schema/index.js +1 -1
  102. package/dist/esm/schema/marks/link.js +1 -2
  103. package/dist/esm/schema/nodes/heading.js +2 -0
  104. package/dist/esm/schema/nodes/index.js +1 -1
  105. package/dist/esm/schema/nodes/layout-section.js +3 -0
  106. package/dist/esm/schema/nodes/multi-bodied-extension.js +0 -3
  107. package/dist/esm/schema/nodes/paragraph.js +3 -0
  108. package/dist/esm/schema/nodes/tableNodes.js +12 -3
  109. package/dist/esm/steps/analytics.js +8 -11
  110. package/dist/esm/steps/link-meta-step.js +6 -8
  111. package/dist/esm/steps/override-document-step.js +8 -11
  112. package/dist/esm/steps/set-attrs.js +6 -8
  113. package/dist/esm/steps/type-ahead.js +6 -8
  114. package/dist/esm/utils/colors.js +0 -1
  115. package/dist/json-schema/v1/stage-0.json +8 -6
  116. package/dist/types/index.d.ts +1 -1
  117. package/dist/types/schema/index.d.ts +1 -1
  118. package/dist/types/schema/nodes/index.d.ts +1 -1
  119. package/dist/types/schema/nodes/multi-bodied-extension.d.ts +2 -2
  120. package/dist/types/schema/nodes/tableNodes.d.ts +6 -0
  121. package/dist/types/schema/nodes/types/extensions.d.ts +0 -6
  122. package/json-schema/v1/stage-0.json +8 -6
  123. package/package.json +1 -1
@@ -130,7 +130,6 @@ export function rgbToHex(value) {
130
130
  return '#' + (blue | green << 8 | red << 16 | 1 << 24).toString(16).slice(1) // eslint-disable-line no-bitwise
131
131
  ;
132
132
  }
133
-
134
133
  return null;
135
134
  }
136
135
  export function isRgb(color) {
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);
@@ -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), {}, (_objectSpread2 = {}, _defineProperty(_objectSpread2, 'data-block-link', 'true'), _defineProperty(_objectSpread2, "class", 'blockLink'), _objectSpread2)), 0];
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'];
@@ -10,9 +10,11 @@
10
10
  /**
11
11
  * @name heading_with_alignment_node
12
12
  */
13
+
13
14
  /**
14
15
  * @name heading_with_indentation_node
15
16
  */
17
+
16
18
  export var heading = {
17
19
  attrs: {
18
20
  level: {
@@ -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',
@@ -57,9 +57,6 @@ var createMultiBodiedExtensionNodeSpec = function createMultiBodiedExtensionNode
57
57
  extensionType: {
58
58
  default: ''
59
59
  },
60
- maxFrames: {
61
- default: 5
62
- },
63
60
  parameters: {
64
61
  default: null
65
62
  },
@@ -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: 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 _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
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 = _super.call(this);
65
- _defineProperty(_assertThisInitialized(_this), "analyticsEvents", []);
66
- _defineProperty(_assertThisInitialized(_this), "actionsToIgnore", []);
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
- _createClass(AnalyticsStep, [{
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 _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
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 = _super.call(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
- _createClass(LinkMetaStep, [{
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 _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
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 = _super.call(this);
19
- _defineProperty(_assertThisInitialized(_this), "inverted", false);
20
- _defineProperty(_assertThisInitialized(_this), "oldDocumentSize", 0);
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
- _createClass(OverrideDocumentStep, [{
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 _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
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 = _super.call(this);
23
+ _this = _callSuper(this, SetAttrsStep);
26
24
  _this.pos = pos;
27
25
  _this.attrs = attrs;
28
26
  return _this;
29
27
  }
30
- _createClass(SetAttrsStep, [{
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
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
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 = _super.call(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
- _createClass(InsertTypeAheadStep, [{
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 */
@@ -141,7 +141,6 @@ export function rgbToHex(value) {
141
141
  return '#' + (blue | green << 8 | red << 16 | 1 << 24).toString(16).slice(1) // eslint-disable-line no-bitwise
142
142
  ;
143
143
  }
144
-
145
144
  return null;
146
145
  }
147
146
  export function isRgb(color) {
@@ -2224,6 +2224,12 @@
2224
2224
  },
2225
2225
  "width": {
2226
2226
  "type": "number"
2227
+ },
2228
+ "displayMode": {
2229
+ "enum": [
2230
+ "default",
2231
+ "fixed"
2232
+ ]
2227
2233
  }
2228
2234
  },
2229
2235
  "additionalProperties": false
@@ -2943,10 +2949,6 @@
2943
2949
  "attrs": {
2944
2950
  "type": "object",
2945
2951
  "properties": {
2946
- "maxFrames": {
2947
- "type": "number",
2948
- "default": 5
2949
- },
2950
2952
  "extensionKey": {
2951
2953
  "type": "string",
2952
2954
  "minLength": 1
@@ -2971,11 +2973,11 @@
2971
2973
  "minLength": 1
2972
2974
  }
2973
2975
  },
2974
- "additionalProperties": false,
2975
2976
  "required": [
2976
2977
  "extensionKey",
2977
2978
  "extensionType"
2978
- ]
2979
+ ],
2980
+ "additionalProperties": false
2979
2981
  },
2980
2982
  "marks": {
2981
2983
  "type": "array"
@@ -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';
@@ -1,5 +1,5 @@
1
1
  import { NodeSpec } from '@atlaskit/editor-prosemirror/model';
2
- import { MultiBodiedExtensionAttributes } from './types/extensions';
2
+ import { ExtensionAttributes } from './types/extensions';
3
3
  import { BodiedExtensionDefinition as BodiedExtension } from './bodied-extension';
4
4
  import { PanelDefinition as Panel } from './panel';
5
5
  import { ParagraphDefinition as Paragraph } from './paragraph';
@@ -42,7 +42,7 @@ export declare const extensionFrame: NodeSpec;
42
42
  */
43
43
  export interface MultiBodiedExtensionDefinition {
44
44
  type: 'multiBodiedExtension';
45
- attrs: MultiBodiedExtensionAttributes;
45
+ attrs: ExtensionAttributes;
46
46
  marks?: Array<any>;
47
47
  /**
48
48
  * @minLength 1
@@ -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
  };
@@ -32,9 +32,3 @@ export interface InlineExtensionAttributes {
32
32
  */
33
33
  localId?: string;
34
34
  }
35
- export interface MultiBodiedExtensionAttributes extends ExtensionAttributes {
36
- /**
37
- * @default 5
38
- */
39
- maxFrames?: number;
40
- }