@atlaskit/editor-common 77.0.1 → 77.0.3

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 (39) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/analytics/types/paste-events.js +1 -0
  3. package/dist/cjs/analytics/types/smart-links.js +1 -0
  4. package/dist/cjs/extensions/module-helpers.js +1 -1
  5. package/dist/cjs/monitoring/error.js +1 -1
  6. package/dist/cjs/rank.js +1 -3
  7. package/dist/cjs/ui/DropList/index.js +1 -1
  8. package/dist/cjs/ui-menu/ColorPickerButton/index.js +1 -0
  9. package/dist/cjs/utils/count-nodes.js +2 -2
  10. package/dist/cjs/utils/nodes.js +9 -28
  11. package/dist/es2019/analytics/types/paste-events.js +1 -0
  12. package/dist/es2019/analytics/types/smart-links.js +1 -0
  13. package/dist/es2019/extensions/module-helpers.js +1 -1
  14. package/dist/es2019/monitoring/error.js +1 -1
  15. package/dist/es2019/rank.js +1 -3
  16. package/dist/es2019/ui/DropList/index.js +1 -1
  17. package/dist/es2019/ui-menu/ColorPickerButton/index.js +1 -0
  18. package/dist/es2019/utils/count-nodes.js +2 -2
  19. package/dist/es2019/utils/nodes.js +7 -25
  20. package/dist/esm/analytics/types/paste-events.js +1 -0
  21. package/dist/esm/analytics/types/smart-links.js +1 -0
  22. package/dist/esm/extensions/module-helpers.js +1 -1
  23. package/dist/esm/monitoring/error.js +1 -1
  24. package/dist/esm/rank.js +1 -3
  25. package/dist/esm/ui/DropList/index.js +1 -1
  26. package/dist/esm/ui-menu/ColorPickerButton/index.js +1 -0
  27. package/dist/esm/utils/count-nodes.js +2 -2
  28. package/dist/esm/utils/nodes.js +9 -28
  29. package/dist/types/analytics/types/paste-events.d.ts +1 -1
  30. package/dist/types/analytics/types/smart-links.d.ts +1 -1
  31. package/dist/types/provider-factory/macro-provider.d.ts +4 -4
  32. package/dist/types/types/floating-toolbar.d.ts +1 -0
  33. package/dist/types/ui-menu/ColorPickerButton/index.d.ts +2 -1
  34. package/dist/types-ts4.5/analytics/types/paste-events.d.ts +1 -1
  35. package/dist/types-ts4.5/analytics/types/smart-links.d.ts +1 -1
  36. package/dist/types-ts4.5/provider-factory/macro-provider.d.ts +4 -4
  37. package/dist/types-ts4.5/types/floating-toolbar.d.ts +1 -0
  38. package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +2 -1
  39. package/package.json +1 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 77.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#68088](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68088) [`ce6f5787f89a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ce6f5787f89a) - Cleanup FF platform.editor.find-changed-nodes-from-transaction-optimisation
8
+
9
+ ## 77.0.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#68501](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68501) [`c813e900fdde`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c813e900fdde) - ED-21735: Added extension config panel support for MBE
14
+ - [#67948](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67948) [`28fcdf6793a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/28fcdf6793a4) - Expand/collapse for panel and table color pickers
15
+
3
16
  ## 77.0.1
4
17
 
5
18
  ### Patch Changes
@@ -35,6 +35,7 @@ var PasteContents = exports.PasteContents = {
35
35
  blockquote: 'blockquote',
36
36
  blockCard: 'blockCard',
37
37
  bodiedExtension: 'bodiedExtension',
38
+ multiBodiedExtension: 'multiBodiedExtension',
38
39
  bulletList: 'bulletList',
39
40
  codeBlock: 'codeBlock',
40
41
  decisionList: 'decisionList',
@@ -12,6 +12,7 @@ var SmartLinkNodeContexts = exports.SmartLinkNodeContexts = {
12
12
  decisionList: 'decisionList',
13
13
  taskList: 'taskList',
14
14
  bodiedExtension: 'bodiedExtension',
15
+ multiBodiedExtension: 'multiBodiedExtension',
15
16
  listItem: 'listItem',
16
17
  panel: 'panel',
17
18
  mixed: 'mixed'
@@ -260,7 +260,7 @@ function shouldAddExtensionItemForNode(item, node) {
260
260
  if (item.context.type === 'node' && item.context.nodeType === node.type) {
261
261
  return true;
262
262
  }
263
- // for other cases should be an extension and match the nodeType ("extension" | "inlineExtension" | "bodiedExtension")
263
+ // for other cases should be an extension and match the nodeType ("extension" | "inlineExtension" | "bodiedExtension" | "multiBodiedExtension")
264
264
  if (item.context.type !== 'extension' || node.type !== item.context.nodeType) {
265
265
  return false;
266
266
  }
@@ -16,7 +16,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
16
16
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
18
18
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
19
- var packageVersion = "77.0.1";
19
+ var packageVersion = "77.0.3";
20
20
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
21
21
  // Remove URL as it has UGC
22
22
  // TODO: Sanitise the URL instead of just removing it
package/dist/cjs/rank.js CHANGED
@@ -24,9 +24,7 @@ var rankEditorPlugins = exports.rankEditorPlugins = {
24
24
  // selection keymap needs to be above gap cursor keymap so it can set node selections from
25
25
  // left/right arrows
26
26
  'selectionKeymap', 'gapCursorKeymap', 'gapCursor', 'syncUrlText', 'fakeCursorToolbarPlugin', 'hyperLink', 'table', 'tableDecorations', 'hyperlinkInputRule', 'tablePMColResizing', 'hyperlinkKeymap', 'tableColResizing', 'undoRedoKeyMap', 'blockTypeKeyMap', 'tableEditing', 'filterStepsPlugin', 'pmCollab', 'collab', 'ruleInputRule', 'ruleKeymap', 'panel', 'media', 'mediaSingleKeymap', 'mediaEditor', 'unsupportedContent', 'jiraIssue', 'helpDialog', 'helpDialogKeymap', 'macro', 'expand', 'extension', 'layout', 'contextPanel', 'selectionToolbar', 'floatingToolbar', 'clearMarksOnChange', 'reactNodeView', 'history', 'undoRedoPlugin', 'codeBlockIndent', 'placeholder', 'width', 'maxContentSize', 'multilineContent', 'grid', 'mobileDimensions', 'scrollGutterPlugin', 'analytics', 'findReplace', 'selection', 'avatarGroup', 'viewUpdateSubscription', 'beforePrimaryToolbar', 'inlineCode'],
27
- nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'rule', 'panel', 'mention', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'unsupportedBlock', 'unsupportedInline', 'confluenceJiraIssue', 'hardBreak', 'emoji', 'placeholder', 'mediaSingle', 'mediaGroup', 'table', 'expand', 'nestedExpand', 'media', 'tableHeader', 'decisionList', 'tableRow', 'decisionItem', 'tableCell', 'taskList', 'taskItem', 'extension', 'bodiedExtension', 'multiBodiedExtension',
28
- // Check with Lego Team if there is a different file to include the ranks, since this file is deprecated
29
- 'inlineExtension', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard'],
27
+ nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'rule', 'panel', 'mention', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'unsupportedBlock', 'unsupportedInline', 'confluenceJiraIssue', 'hardBreak', 'emoji', 'placeholder', 'mediaSingle', 'mediaGroup', 'table', 'expand', 'nestedExpand', 'media', 'tableHeader', 'decisionList', 'tableRow', 'decisionItem', 'tableCell', 'taskList', 'taskItem', 'extension', 'bodiedExtension', 'multiBodiedExtension', 'inlineExtension', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard'],
30
28
  marks: [
31
29
  // Fragment mark is both for inline and block elements
32
30
  'fragment',
@@ -22,7 +22,7 @@ var _templateObject, _templateObject2, _templateObject3;
22
22
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
23
23
  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; } } /** @jsx jsx */
24
24
  var packageName = "@atlaskit/editor-common";
25
- var packageVersion = "77.0.1";
25
+ var packageVersion = "77.0.3";
26
26
  var halfFocusRing = 1;
27
27
  var dropOffset = '0, 8';
28
28
  var DropList = /*#__PURE__*/function (_Component) {
@@ -174,6 +174,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
174
174
  }, (0, _react2.jsx)(_button.default, {
175
175
  ref: buttonRef,
176
176
  "aria-label": title,
177
+ "aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
177
178
  spacing: "compact",
178
179
  onClick: togglePopup,
179
180
  onKeyDown: function onKeyDown(event) {
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.countNodes = countNodes;
7
7
  function countNodes(state) {
8
- var _nodeTypes$extension, _nodeTypes$inlineExte, _nodeTypes$bodiedExte;
8
+ var _nodeTypes$extension, _nodeTypes$inlineExte, _nodeTypes$bodiedExte, _nodeTypes$multiBodie;
9
9
  var nodeCount = {};
10
10
  var extensionNodeCount = {};
11
11
  var nodeTypes = state.schema.nodes;
12
- var extensionNodeTypes = [(_nodeTypes$extension = nodeTypes.extension) === null || _nodeTypes$extension === void 0 ? void 0 : _nodeTypes$extension.name, (_nodeTypes$inlineExte = nodeTypes.inlineExtension) === null || _nodeTypes$inlineExte === void 0 ? void 0 : _nodeTypes$inlineExte.name, (_nodeTypes$bodiedExte = nodeTypes.bodiedExtension) === null || _nodeTypes$bodiedExte === void 0 ? void 0 : _nodeTypes$bodiedExte.name];
12
+ var extensionNodeTypes = [(_nodeTypes$extension = nodeTypes.extension) === null || _nodeTypes$extension === void 0 ? void 0 : _nodeTypes$extension.name, (_nodeTypes$inlineExte = nodeTypes.inlineExtension) === null || _nodeTypes$inlineExte === void 0 ? void 0 : _nodeTypes$inlineExte.name, (_nodeTypes$bodiedExte = nodeTypes.bodiedExtension) === null || _nodeTypes$bodiedExte === void 0 ? void 0 : _nodeTypes$bodiedExte.name, (_nodeTypes$multiBodie = nodeTypes.multiBodiedExtension) === null || _nodeTypes$multiBodie === void 0 ? void 0 : _nodeTypes$multiBodie.name];
13
13
  state.doc.descendants(function (node) {
14
14
  var _node$attrs;
15
15
  var nodeName = node.type.name;
@@ -9,7 +9,6 @@ exports.toJSON = toJSON;
9
9
  exports.validateNodes = exports.validNode = void 0;
10
10
  var _editorJsonTransformer = require("@atlaskit/editor-json-transformer");
11
11
  var _utils = require("@atlaskit/editor-prosemirror/utils");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
12
  /**
14
13
  * Finds all top level nodes affected by the transaction
15
14
  * Uses from/to positions in transaction's steps to work out which nodes will
@@ -18,36 +17,18 @@ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
18
17
  var findChangedNodesFromTransaction = exports.findChangedNodesFromTransaction = function findChangedNodesFromTransaction(tr) {
19
18
  var nodes = [];
20
19
  var steps = tr.steps || [];
21
- if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.find-changed-nodes-from-transaction-optimisation')) {
22
- steps.forEach(function (step) {
23
- step.getMap().forEach(function (oldStart, oldEnd, newStart, newEnd) {
24
- tr.doc.nodesBetween(newStart, Math.min(newEnd, tr.doc.content.size), function (node) {
20
+ steps.forEach(function (step) {
21
+ step.getMap().forEach(function (oldStart, oldEnd, newStart, newEnd) {
22
+ tr.doc.nodesBetween(newStart, Math.min(newEnd, tr.doc.content.size), function (node) {
23
+ if (!nodes.find(function (n) {
24
+ return n === node;
25
+ })) {
25
26
  nodes.push(node);
26
- return false;
27
- });
28
- });
29
- });
30
- } else {
31
- steps.forEach(function (step) {
32
- var to = step.to,
33
- from = step.from,
34
- slice = step.slice;
35
- var size = slice && slice.content ? slice.content.size : 0;
36
- var _loop = function _loop() {
37
- if (i <= tr.doc.content.size) {
38
- var topLevelNode = tr.doc.resolve(i).node(1);
39
- if (topLevelNode && !nodes.find(function (n) {
40
- return n === topLevelNode;
41
- })) {
42
- nodes.push(topLevelNode);
43
- }
44
27
  }
45
- };
46
- for (var i = from; i <= to + size; i++) {
47
- _loop();
48
- }
28
+ return false;
29
+ });
49
30
  });
50
- }
31
+ });
51
32
  return nodes;
52
33
  };
53
34
  var validNode = exports.validNode = function validNode(node) {
@@ -29,6 +29,7 @@ export const PasteContents = {
29
29
  blockquote: 'blockquote',
30
30
  blockCard: 'blockCard',
31
31
  bodiedExtension: 'bodiedExtension',
32
+ multiBodiedExtension: 'multiBodiedExtension',
32
33
  bulletList: 'bulletList',
33
34
  codeBlock: 'codeBlock',
34
35
  decisionList: 'decisionList',
@@ -6,6 +6,7 @@ export const SmartLinkNodeContexts = {
6
6
  decisionList: 'decisionList',
7
7
  taskList: 'taskList',
8
8
  bodiedExtension: 'bodiedExtension',
9
+ multiBodiedExtension: 'multiBodiedExtension',
9
10
  listItem: 'listItem',
10
11
  panel: 'panel',
11
12
  mixed: 'mixed'
@@ -156,7 +156,7 @@ function shouldAddExtensionItemForNode(item, node) {
156
156
  if (item.context.type === 'node' && item.context.nodeType === node.type) {
157
157
  return true;
158
158
  }
159
- // for other cases should be an extension and match the nodeType ("extension" | "inlineExtension" | "bodiedExtension")
159
+ // for other cases should be an extension and match the nodeType ("extension" | "inlineExtension" | "bodiedExtension" | "multiBodiedExtension")
160
160
  if (item.context.type !== 'extension' || node.type !== item.context.nodeType) {
161
161
  return false;
162
162
  }
@@ -1,6 +1,6 @@
1
1
  const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
2
2
  const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
3
- const packageVersion = "77.0.1";
3
+ const packageVersion = "77.0.3";
4
4
  const sanitiseSentryEvents = (data, _hint) => {
5
5
  // Remove URL as it has UGC
6
6
  // TODO: Sanitise the URL instead of just removing it
@@ -16,9 +16,7 @@ export const rankEditorPlugins = {
16
16
  // selection keymap needs to be above gap cursor keymap so it can set node selections from
17
17
  // left/right arrows
18
18
  'selectionKeymap', 'gapCursorKeymap', 'gapCursor', 'syncUrlText', 'fakeCursorToolbarPlugin', 'hyperLink', 'table', 'tableDecorations', 'hyperlinkInputRule', 'tablePMColResizing', 'hyperlinkKeymap', 'tableColResizing', 'undoRedoKeyMap', 'blockTypeKeyMap', 'tableEditing', 'filterStepsPlugin', 'pmCollab', 'collab', 'ruleInputRule', 'ruleKeymap', 'panel', 'media', 'mediaSingleKeymap', 'mediaEditor', 'unsupportedContent', 'jiraIssue', 'helpDialog', 'helpDialogKeymap', 'macro', 'expand', 'extension', 'layout', 'contextPanel', 'selectionToolbar', 'floatingToolbar', 'clearMarksOnChange', 'reactNodeView', 'history', 'undoRedoPlugin', 'codeBlockIndent', 'placeholder', 'width', 'maxContentSize', 'multilineContent', 'grid', 'mobileDimensions', 'scrollGutterPlugin', 'analytics', 'findReplace', 'selection', 'avatarGroup', 'viewUpdateSubscription', 'beforePrimaryToolbar', 'inlineCode'],
19
- nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'rule', 'panel', 'mention', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'unsupportedBlock', 'unsupportedInline', 'confluenceJiraIssue', 'hardBreak', 'emoji', 'placeholder', 'mediaSingle', 'mediaGroup', 'table', 'expand', 'nestedExpand', 'media', 'tableHeader', 'decisionList', 'tableRow', 'decisionItem', 'tableCell', 'taskList', 'taskItem', 'extension', 'bodiedExtension', 'multiBodiedExtension',
20
- // Check with Lego Team if there is a different file to include the ranks, since this file is deprecated
21
- 'inlineExtension', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard'],
19
+ nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'rule', 'panel', 'mention', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'unsupportedBlock', 'unsupportedInline', 'confluenceJiraIssue', 'hardBreak', 'emoji', 'placeholder', 'mediaSingle', 'mediaGroup', 'table', 'expand', 'nestedExpand', 'media', 'tableHeader', 'decisionList', 'tableRow', 'decisionItem', 'tableCell', 'taskList', 'taskItem', 'extension', 'bodiedExtension', 'multiBodiedExtension', 'inlineExtension', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard'],
22
20
  marks: [
23
21
  // Fragment mark is both for inline and block elements
24
22
  'fragment',
@@ -7,7 +7,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
7
7
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
8
8
  import Layer from '../Layer';
9
9
  const packageName = "@atlaskit/editor-common";
10
- const packageVersion = "77.0.1";
10
+ const packageVersion = "77.0.3";
11
11
  const halfFocusRing = 1;
12
12
  const dropOffset = '0, 8';
13
13
  class DropList extends Component {
@@ -183,6 +183,7 @@ const ColorPickerButton = props => {
183
183
  }, jsx(Button, {
184
184
  ref: buttonRef,
185
185
  "aria-label": title,
186
+ "aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
186
187
  spacing: "compact",
187
188
  onClick: togglePopup,
188
189
  onKeyDown: event => {
@@ -1,9 +1,9 @@
1
1
  export function countNodes(state) {
2
- var _nodeTypes$extension, _nodeTypes$inlineExte, _nodeTypes$bodiedExte;
2
+ var _nodeTypes$extension, _nodeTypes$inlineExte, _nodeTypes$bodiedExte, _nodeTypes$multiBodie;
3
3
  const nodeCount = {};
4
4
  const extensionNodeCount = {};
5
5
  const nodeTypes = state.schema.nodes;
6
- const extensionNodeTypes = [(_nodeTypes$extension = nodeTypes.extension) === null || _nodeTypes$extension === void 0 ? void 0 : _nodeTypes$extension.name, (_nodeTypes$inlineExte = nodeTypes.inlineExtension) === null || _nodeTypes$inlineExte === void 0 ? void 0 : _nodeTypes$inlineExte.name, (_nodeTypes$bodiedExte = nodeTypes.bodiedExtension) === null || _nodeTypes$bodiedExte === void 0 ? void 0 : _nodeTypes$bodiedExte.name];
6
+ const extensionNodeTypes = [(_nodeTypes$extension = nodeTypes.extension) === null || _nodeTypes$extension === void 0 ? void 0 : _nodeTypes$extension.name, (_nodeTypes$inlineExte = nodeTypes.inlineExtension) === null || _nodeTypes$inlineExte === void 0 ? void 0 : _nodeTypes$inlineExte.name, (_nodeTypes$bodiedExte = nodeTypes.bodiedExtension) === null || _nodeTypes$bodiedExte === void 0 ? void 0 : _nodeTypes$bodiedExte.name, (_nodeTypes$multiBodie = nodeTypes.multiBodiedExtension) === null || _nodeTypes$multiBodie === void 0 ? void 0 : _nodeTypes$multiBodie.name];
7
7
  state.doc.descendants(node => {
8
8
  var _node$attrs;
9
9
  const nodeName = node.type.name;
@@ -1,6 +1,5 @@
1
1
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
2
2
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
3
  /**
5
4
  * Finds all top level nodes affected by the transaction
6
5
  * Uses from/to positions in transaction's steps to work out which nodes will
@@ -9,33 +8,16 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
9
8
  export const findChangedNodesFromTransaction = tr => {
10
9
  const nodes = [];
11
10
  const steps = tr.steps || [];
12
- if (getBooleanFF('platform.editor.find-changed-nodes-from-transaction-optimisation')) {
13
- steps.forEach(step => {
14
- step.getMap().forEach((oldStart, oldEnd, newStart, newEnd) => {
15
- tr.doc.nodesBetween(newStart, Math.min(newEnd, tr.doc.content.size), node => {
11
+ steps.forEach(step => {
12
+ step.getMap().forEach((oldStart, oldEnd, newStart, newEnd) => {
13
+ tr.doc.nodesBetween(newStart, Math.min(newEnd, tr.doc.content.size), node => {
14
+ if (!nodes.find(n => n === node)) {
16
15
  nodes.push(node);
17
- return false;
18
- });
19
- });
20
- });
21
- } else {
22
- steps.forEach(step => {
23
- const {
24
- to,
25
- from,
26
- slice
27
- } = step;
28
- const size = slice && slice.content ? slice.content.size : 0;
29
- for (let i = from; i <= to + size; i++) {
30
- if (i <= tr.doc.content.size) {
31
- const topLevelNode = tr.doc.resolve(i).node(1);
32
- if (topLevelNode && !nodes.find(n => n === topLevelNode)) {
33
- nodes.push(topLevelNode);
34
- }
35
16
  }
36
- }
17
+ return false;
18
+ });
37
19
  });
38
- }
20
+ });
39
21
  return nodes;
40
22
  };
41
23
  export const validNode = node => {
@@ -29,6 +29,7 @@ export var PasteContents = {
29
29
  blockquote: 'blockquote',
30
30
  blockCard: 'blockCard',
31
31
  bodiedExtension: 'bodiedExtension',
32
+ multiBodiedExtension: 'multiBodiedExtension',
32
33
  bulletList: 'bulletList',
33
34
  codeBlock: 'codeBlock',
34
35
  decisionList: 'decisionList',
@@ -6,6 +6,7 @@ export var SmartLinkNodeContexts = {
6
6
  decisionList: 'decisionList',
7
7
  taskList: 'taskList',
8
8
  bodiedExtension: 'bodiedExtension',
9
+ multiBodiedExtension: 'multiBodiedExtension',
9
10
  listItem: 'listItem',
10
11
  panel: 'panel',
11
12
  mixed: 'mixed'
@@ -248,7 +248,7 @@ function shouldAddExtensionItemForNode(item, node) {
248
248
  if (item.context.type === 'node' && item.context.nodeType === node.type) {
249
249
  return true;
250
250
  }
251
- // for other cases should be an extension and match the nodeType ("extension" | "inlineExtension" | "bodiedExtension")
251
+ // for other cases should be an extension and match the nodeType ("extension" | "inlineExtension" | "bodiedExtension" | "multiBodiedExtension")
252
252
  if (item.context.type !== 'extension' || node.type !== item.context.nodeType) {
253
253
  return false;
254
254
  }
@@ -6,7 +6,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
6
6
  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; }
7
7
  var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
8
8
  var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
9
- var packageVersion = "77.0.1";
9
+ var packageVersion = "77.0.3";
10
10
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
11
11
  // Remove URL as it has UGC
12
12
  // TODO: Sanitise the URL instead of just removing it
package/dist/esm/rank.js CHANGED
@@ -16,9 +16,7 @@ export var rankEditorPlugins = {
16
16
  // selection keymap needs to be above gap cursor keymap so it can set node selections from
17
17
  // left/right arrows
18
18
  'selectionKeymap', 'gapCursorKeymap', 'gapCursor', 'syncUrlText', 'fakeCursorToolbarPlugin', 'hyperLink', 'table', 'tableDecorations', 'hyperlinkInputRule', 'tablePMColResizing', 'hyperlinkKeymap', 'tableColResizing', 'undoRedoKeyMap', 'blockTypeKeyMap', 'tableEditing', 'filterStepsPlugin', 'pmCollab', 'collab', 'ruleInputRule', 'ruleKeymap', 'panel', 'media', 'mediaSingleKeymap', 'mediaEditor', 'unsupportedContent', 'jiraIssue', 'helpDialog', 'helpDialogKeymap', 'macro', 'expand', 'extension', 'layout', 'contextPanel', 'selectionToolbar', 'floatingToolbar', 'clearMarksOnChange', 'reactNodeView', 'history', 'undoRedoPlugin', 'codeBlockIndent', 'placeholder', 'width', 'maxContentSize', 'multilineContent', 'grid', 'mobileDimensions', 'scrollGutterPlugin', 'analytics', 'findReplace', 'selection', 'avatarGroup', 'viewUpdateSubscription', 'beforePrimaryToolbar', 'inlineCode'],
19
- nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'rule', 'panel', 'mention', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'unsupportedBlock', 'unsupportedInline', 'confluenceJiraIssue', 'hardBreak', 'emoji', 'placeholder', 'mediaSingle', 'mediaGroup', 'table', 'expand', 'nestedExpand', 'media', 'tableHeader', 'decisionList', 'tableRow', 'decisionItem', 'tableCell', 'taskList', 'taskItem', 'extension', 'bodiedExtension', 'multiBodiedExtension',
20
- // Check with Lego Team if there is a different file to include the ranks, since this file is deprecated
21
- 'inlineExtension', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard'],
19
+ nodes: ['doc', 'paragraph', 'text', 'bulletList', 'orderedList', 'listItem', 'heading', 'blockquote', 'codeBlock', 'rule', 'panel', 'mention', 'confluenceUnsupportedBlock', 'confluenceUnsupportedInline', 'unsupportedBlock', 'unsupportedInline', 'confluenceJiraIssue', 'hardBreak', 'emoji', 'placeholder', 'mediaSingle', 'mediaGroup', 'table', 'expand', 'nestedExpand', 'media', 'tableHeader', 'decisionList', 'tableRow', 'decisionItem', 'tableCell', 'taskList', 'taskItem', 'extension', 'bodiedExtension', 'multiBodiedExtension', 'inlineExtension', 'layoutSection', 'layoutColumn', 'inlineCard', 'blockCard', 'embedCard'],
22
20
  marks: [
23
21
  // Fragment mark is both for inline and block elements
24
22
  'fragment',
@@ -17,7 +17,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
17
17
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
18
18
  import Layer from '../Layer';
19
19
  var packageName = "@atlaskit/editor-common";
20
- var packageVersion = "77.0.1";
20
+ var packageVersion = "77.0.3";
21
21
  var halfFocusRing = 1;
22
22
  var dropOffset = '0, 8';
23
23
  var DropList = /*#__PURE__*/function (_Component) {
@@ -168,6 +168,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
168
168
  }, jsx(Button, {
169
169
  ref: buttonRef,
170
170
  "aria-label": title,
171
+ "aria-expanded": props.isAriaExpanded ? isPopupOpen : undefined,
171
172
  spacing: "compact",
172
173
  onClick: togglePopup,
173
174
  onKeyDown: function onKeyDown(event) {
@@ -1,9 +1,9 @@
1
1
  export function countNodes(state) {
2
- var _nodeTypes$extension, _nodeTypes$inlineExte, _nodeTypes$bodiedExte;
2
+ var _nodeTypes$extension, _nodeTypes$inlineExte, _nodeTypes$bodiedExte, _nodeTypes$multiBodie;
3
3
  var nodeCount = {};
4
4
  var extensionNodeCount = {};
5
5
  var nodeTypes = state.schema.nodes;
6
- var extensionNodeTypes = [(_nodeTypes$extension = nodeTypes.extension) === null || _nodeTypes$extension === void 0 ? void 0 : _nodeTypes$extension.name, (_nodeTypes$inlineExte = nodeTypes.inlineExtension) === null || _nodeTypes$inlineExte === void 0 ? void 0 : _nodeTypes$inlineExte.name, (_nodeTypes$bodiedExte = nodeTypes.bodiedExtension) === null || _nodeTypes$bodiedExte === void 0 ? void 0 : _nodeTypes$bodiedExte.name];
6
+ var extensionNodeTypes = [(_nodeTypes$extension = nodeTypes.extension) === null || _nodeTypes$extension === void 0 ? void 0 : _nodeTypes$extension.name, (_nodeTypes$inlineExte = nodeTypes.inlineExtension) === null || _nodeTypes$inlineExte === void 0 ? void 0 : _nodeTypes$inlineExte.name, (_nodeTypes$bodiedExte = nodeTypes.bodiedExtension) === null || _nodeTypes$bodiedExte === void 0 ? void 0 : _nodeTypes$bodiedExte.name, (_nodeTypes$multiBodie = nodeTypes.multiBodiedExtension) === null || _nodeTypes$multiBodie === void 0 ? void 0 : _nodeTypes$multiBodie.name];
7
7
  state.doc.descendants(function (node) {
8
8
  var _node$attrs;
9
9
  var nodeName = node.type.name;
@@ -1,6 +1,5 @@
1
1
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
2
2
  import { findParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
3
- import { getBooleanFF } from '@atlaskit/platform-feature-flags';
4
3
  /**
5
4
  * Finds all top level nodes affected by the transaction
6
5
  * Uses from/to positions in transaction's steps to work out which nodes will
@@ -9,36 +8,18 @@ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
9
8
  export var findChangedNodesFromTransaction = function findChangedNodesFromTransaction(tr) {
10
9
  var nodes = [];
11
10
  var steps = tr.steps || [];
12
- if (getBooleanFF('platform.editor.find-changed-nodes-from-transaction-optimisation')) {
13
- steps.forEach(function (step) {
14
- step.getMap().forEach(function (oldStart, oldEnd, newStart, newEnd) {
15
- tr.doc.nodesBetween(newStart, Math.min(newEnd, tr.doc.content.size), function (node) {
11
+ steps.forEach(function (step) {
12
+ step.getMap().forEach(function (oldStart, oldEnd, newStart, newEnd) {
13
+ tr.doc.nodesBetween(newStart, Math.min(newEnd, tr.doc.content.size), function (node) {
14
+ if (!nodes.find(function (n) {
15
+ return n === node;
16
+ })) {
16
17
  nodes.push(node);
17
- return false;
18
- });
19
- });
20
- });
21
- } else {
22
- steps.forEach(function (step) {
23
- var to = step.to,
24
- from = step.from,
25
- slice = step.slice;
26
- var size = slice && slice.content ? slice.content.size : 0;
27
- var _loop = function _loop() {
28
- if (i <= tr.doc.content.size) {
29
- var topLevelNode = tr.doc.resolve(i).node(1);
30
- if (topLevelNode && !nodes.find(function (n) {
31
- return n === topLevelNode;
32
- })) {
33
- nodes.push(topLevelNode);
34
- }
35
18
  }
36
- };
37
- for (var i = from; i <= to + size; i++) {
38
- _loop();
39
- }
19
+ return false;
20
+ });
40
21
  });
41
- }
22
+ });
42
23
  return nodes;
43
24
  };
44
25
  export var validNode = function validNode(node) {
@@ -11,7 +11,7 @@ export type PasteSource = 'fabric-editor' | 'apple-pages' | 'google-spreadsheets
11
11
  export declare const PasteContents: {
12
12
  [P in PasteContent]: P;
13
13
  };
14
- export type PasteContent = 'text' | 'url' | 'code' | 'mediaSingle' | 'mediaCard' | 'mediaGroup' | 'blockquote' | 'blockCard' | 'bodiedExtension' | 'bulletList' | 'codeBlock' | 'decisionList' | 'decisionItem' | 'extension' | 'heading' | 'layoutSection' | 'tableCells' | 'table' | 'expand' | 'nestedExpand' | 'orderedList' | 'panel' | 'rule' | 'tableHeader' | 'tableRow' | 'taskItem' | 'uncategorized' | 'mixed';
14
+ export type PasteContent = 'text' | 'url' | 'code' | 'mediaSingle' | 'mediaCard' | 'mediaGroup' | 'blockquote' | 'blockCard' | 'bodiedExtension' | 'multiBodiedExtension' | 'bulletList' | 'codeBlock' | 'decisionList' | 'decisionItem' | 'extension' | 'heading' | 'layoutSection' | 'tableCells' | 'table' | 'expand' | 'nestedExpand' | 'orderedList' | 'panel' | 'rule' | 'tableHeader' | 'tableRow' | 'taskItem' | 'uncategorized' | 'mixed';
15
15
  export type PASTE_ACTION_SUBJECT_ID = ACTION_SUBJECT_ID.PASTE_BLOCKQUOTE | ACTION_SUBJECT_ID.PASTE_BLOCK_CARD | ACTION_SUBJECT_ID.PASTE_BODIED_EXTENSION | ACTION_SUBJECT_ID.PASTE_BULLET_LIST | ACTION_SUBJECT_ID.PASTE_CODE_BLOCK | ACTION_SUBJECT_ID.PASTE_DECISION_LIST | ACTION_SUBJECT_ID.PASTE_EXTENSION | ACTION_SUBJECT_ID.PASTE_HEADING | ACTION_SUBJECT_ID.PASTE_MEDIA_GROUP | ACTION_SUBJECT_ID.PASTE_MEDIA_SINGLE | ACTION_SUBJECT_ID.PASTE_ORDERED_LIST | ACTION_SUBJECT_ID.PASTE_PANEL | ACTION_SUBJECT_ID.PASTE_PARAGRAPH | ACTION_SUBJECT_ID.PASTE_RULE | ACTION_SUBJECT_ID.PASTE_TABLE | ACTION_SUBJECT_ID.PASTE_TABLE_CELL | ACTION_SUBJECT_ID.PASTE_TABLE_HEADER | ACTION_SUBJECT_ID.PASTE_TABLE_ROW | ACTION_SUBJECT_ID.PASTE_TASK_LIST | ACTION_SUBJECT_ID.PASTE_EXPAND | ACTION_SUBJECT_ID.PASTE_NESTED_EXPAND;
16
16
  type PasteBaseAEP<Action, Attributes, NonPrivacySafeAttributes> = TrackAEP<Action, ACTION_SUBJECT.DOCUMENT, PASTE_ACTION_SUBJECT_ID, Attributes, NonPrivacySafeAttributes>;
17
17
  type PasteBaseOperationalAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.EDITOR, PASTE_ACTION_SUBJECT_ID, Attributes>;
@@ -1,6 +1,6 @@
1
1
  import type { ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
2
2
  import type { InsertAEP } from './utils';
3
- export type SmartLinkNodeContext = 'doc' | 'blockquote' | 'tableCell' | 'tableHeader' | 'decisionList' | 'listItem' | 'bodiedExtension' | 'panel' | 'taskList' | 'mixed';
3
+ export type SmartLinkNodeContext = 'doc' | 'blockquote' | 'tableCell' | 'tableHeader' | 'decisionList' | 'listItem' | 'bodiedExtension' | 'multiBodiedExtension' | 'panel' | 'taskList' | 'mixed';
4
4
  export declare const SmartLinkNodeContexts: {
5
5
  [P in SmartLinkNodeContext]: P;
6
6
  };
@@ -1,6 +1,6 @@
1
- import { ExtensionLayout } from '@atlaskit/adf-schema';
2
- import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
- export type ExtensionType = 'extension' | 'bodiedExtension' | 'inlineExtension';
1
+ import type { ExtensionLayout } from '@atlaskit/adf-schema';
2
+ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
+ export type ExtensionType = 'extension' | 'bodiedExtension' | 'inlineExtension' | 'multiBodiedExtension';
4
4
  export interface MacroAttributes {
5
5
  type: ExtensionType;
6
6
  attrs: {
@@ -21,5 +21,5 @@ export interface MacroProvider {
21
21
  * If "macro" param is passed in, it will open macro browser for editing the macro
22
22
  */
23
23
  openMacroBrowser(macroNode?: PmNode): Promise<MacroAttributes>;
24
- autoConvert(link: String): MacroAttributes | null;
24
+ autoConvert(link: string): MacroAttributes | null;
25
25
  }
@@ -151,6 +151,7 @@ type FloatingToolbarSelectBase<T extends {}, V = SelectOption> = {
151
151
  type: 'select';
152
152
  selectType: 'list' | 'emoji' | 'date' | 'color';
153
153
  title?: string;
154
+ isAriaExpanded?: boolean;
154
155
  options: V[];
155
156
  hidden?: boolean;
156
157
  hideExpandIcon?: boolean;
@@ -6,6 +6,7 @@ import type { Position as PopupPosition } from '../../ui/Popup/utils';
6
6
  type Props = WithAnalyticsEventsProps & {
7
7
  currentColor?: string;
8
8
  title?: string;
9
+ isAriaExpanded?: boolean;
9
10
  onChange?: (color: PaletteColor) => void;
10
11
  colorPalette: PaletteColor[];
11
12
  placement: string;
@@ -26,5 +27,5 @@ type Props = WithAnalyticsEventsProps & {
26
27
  skipFocusButtonAfterPick?: boolean;
27
28
  absoluteOffset?: PopupPosition;
28
29
  };
29
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
30
+ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "isAriaExpanded" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
30
31
  export default _default;
@@ -11,7 +11,7 @@ export type PasteSource = 'fabric-editor' | 'apple-pages' | 'google-spreadsheets
11
11
  export declare const PasteContents: {
12
12
  [P in PasteContent]: P;
13
13
  };
14
- export type PasteContent = 'text' | 'url' | 'code' | 'mediaSingle' | 'mediaCard' | 'mediaGroup' | 'blockquote' | 'blockCard' | 'bodiedExtension' | 'bulletList' | 'codeBlock' | 'decisionList' | 'decisionItem' | 'extension' | 'heading' | 'layoutSection' | 'tableCells' | 'table' | 'expand' | 'nestedExpand' | 'orderedList' | 'panel' | 'rule' | 'tableHeader' | 'tableRow' | 'taskItem' | 'uncategorized' | 'mixed';
14
+ export type PasteContent = 'text' | 'url' | 'code' | 'mediaSingle' | 'mediaCard' | 'mediaGroup' | 'blockquote' | 'blockCard' | 'bodiedExtension' | 'multiBodiedExtension' | 'bulletList' | 'codeBlock' | 'decisionList' | 'decisionItem' | 'extension' | 'heading' | 'layoutSection' | 'tableCells' | 'table' | 'expand' | 'nestedExpand' | 'orderedList' | 'panel' | 'rule' | 'tableHeader' | 'tableRow' | 'taskItem' | 'uncategorized' | 'mixed';
15
15
  export type PASTE_ACTION_SUBJECT_ID = ACTION_SUBJECT_ID.PASTE_BLOCKQUOTE | ACTION_SUBJECT_ID.PASTE_BLOCK_CARD | ACTION_SUBJECT_ID.PASTE_BODIED_EXTENSION | ACTION_SUBJECT_ID.PASTE_BULLET_LIST | ACTION_SUBJECT_ID.PASTE_CODE_BLOCK | ACTION_SUBJECT_ID.PASTE_DECISION_LIST | ACTION_SUBJECT_ID.PASTE_EXTENSION | ACTION_SUBJECT_ID.PASTE_HEADING | ACTION_SUBJECT_ID.PASTE_MEDIA_GROUP | ACTION_SUBJECT_ID.PASTE_MEDIA_SINGLE | ACTION_SUBJECT_ID.PASTE_ORDERED_LIST | ACTION_SUBJECT_ID.PASTE_PANEL | ACTION_SUBJECT_ID.PASTE_PARAGRAPH | ACTION_SUBJECT_ID.PASTE_RULE | ACTION_SUBJECT_ID.PASTE_TABLE | ACTION_SUBJECT_ID.PASTE_TABLE_CELL | ACTION_SUBJECT_ID.PASTE_TABLE_HEADER | ACTION_SUBJECT_ID.PASTE_TABLE_ROW | ACTION_SUBJECT_ID.PASTE_TASK_LIST | ACTION_SUBJECT_ID.PASTE_EXPAND | ACTION_SUBJECT_ID.PASTE_NESTED_EXPAND;
16
16
  type PasteBaseAEP<Action, Attributes, NonPrivacySafeAttributes> = TrackAEP<Action, ACTION_SUBJECT.DOCUMENT, PASTE_ACTION_SUBJECT_ID, Attributes, NonPrivacySafeAttributes>;
17
17
  type PasteBaseOperationalAEP<Action, Attributes> = OperationalAEP<Action, ACTION_SUBJECT.EDITOR, PASTE_ACTION_SUBJECT_ID, Attributes>;
@@ -1,6 +1,6 @@
1
1
  import type { ACTION_SUBJECT_ID, INPUT_METHOD } from './enums';
2
2
  import type { InsertAEP } from './utils';
3
- export type SmartLinkNodeContext = 'doc' | 'blockquote' | 'tableCell' | 'tableHeader' | 'decisionList' | 'listItem' | 'bodiedExtension' | 'panel' | 'taskList' | 'mixed';
3
+ export type SmartLinkNodeContext = 'doc' | 'blockquote' | 'tableCell' | 'tableHeader' | 'decisionList' | 'listItem' | 'bodiedExtension' | 'multiBodiedExtension' | 'panel' | 'taskList' | 'mixed';
4
4
  export declare const SmartLinkNodeContexts: {
5
5
  [P in SmartLinkNodeContext]: P;
6
6
  };
@@ -1,6 +1,6 @@
1
- import { ExtensionLayout } from '@atlaskit/adf-schema';
2
- import { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
- export type ExtensionType = 'extension' | 'bodiedExtension' | 'inlineExtension';
1
+ import type { ExtensionLayout } from '@atlaskit/adf-schema';
2
+ import type { Node as PmNode } from '@atlaskit/editor-prosemirror/model';
3
+ export type ExtensionType = 'extension' | 'bodiedExtension' | 'inlineExtension' | 'multiBodiedExtension';
4
4
  export interface MacroAttributes {
5
5
  type: ExtensionType;
6
6
  attrs: {
@@ -21,5 +21,5 @@ export interface MacroProvider {
21
21
  * If "macro" param is passed in, it will open macro browser for editing the macro
22
22
  */
23
23
  openMacroBrowser(macroNode?: PmNode): Promise<MacroAttributes>;
24
- autoConvert(link: String): MacroAttributes | null;
24
+ autoConvert(link: string): MacroAttributes | null;
25
25
  }
@@ -151,6 +151,7 @@ type FloatingToolbarSelectBase<T extends {}, V = SelectOption> = {
151
151
  type: 'select';
152
152
  selectType: 'list' | 'emoji' | 'date' | 'color';
153
153
  title?: string;
154
+ isAriaExpanded?: boolean;
154
155
  options: V[];
155
156
  hidden?: boolean;
156
157
  hideExpandIcon?: boolean;
@@ -6,6 +6,7 @@ import type { Position as PopupPosition } from '../../ui/Popup/utils';
6
6
  type Props = WithAnalyticsEventsProps & {
7
7
  currentColor?: string;
8
8
  title?: string;
9
+ isAriaExpanded?: boolean;
9
10
  onChange?: (color: PaletteColor) => void;
10
11
  colorPalette: PaletteColor[];
11
12
  placement: string;
@@ -26,5 +27,5 @@ type Props = WithAnalyticsEventsProps & {
26
27
  skipFocusButtonAfterPick?: boolean;
27
28
  absoluteOffset?: PopupPosition;
28
29
  };
29
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
30
+ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "isAriaExpanded" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
30
31
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "77.0.1",
3
+ "version": "77.0.3",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -220,9 +220,6 @@
220
220
  "platform.editor.menu.group-items": {
221
221
  "type": "boolean"
222
222
  },
223
- "platform.editor.find-changed-nodes-from-transaction-optimisation": {
224
- "type": "boolean"
225
- },
226
223
  "platform.editor.ordered-list-auto-join-improvements_mrlv5": {
227
224
  "type": "boolean"
228
225
  }