@atlaskit/editor-core 189.3.24 → 189.3.26

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 (61) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/plugins/extension/actions.js +15 -1
  3. package/dist/cjs/plugins/extension/index.js +7 -2
  4. package/dist/cjs/plugins/index.js +0 -7
  5. package/dist/cjs/plugins/toolbar-lists-indentation/index.js +2 -13
  6. package/dist/cjs/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.js +0 -3
  7. package/dist/cjs/presets/universal.js +2 -1
  8. package/dist/cjs/ui/ConfigPanel/LoadingState.js +3 -2
  9. package/dist/cjs/version-wrapper.js +1 -1
  10. package/dist/es2019/plugins/extension/actions.js +16 -0
  11. package/dist/es2019/plugins/extension/index.js +7 -2
  12. package/dist/es2019/plugins/index.js +0 -1
  13. package/dist/es2019/plugins/toolbar-lists-indentation/index.js +2 -11
  14. package/dist/es2019/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.js +0 -2
  15. package/dist/es2019/presets/universal.js +2 -1
  16. package/dist/es2019/ui/ConfigPanel/LoadingState.js +3 -2
  17. package/dist/es2019/version-wrapper.js +1 -1
  18. package/dist/esm/plugins/extension/actions.js +14 -0
  19. package/dist/esm/plugins/extension/index.js +7 -2
  20. package/dist/esm/plugins/index.js +0 -1
  21. package/dist/esm/plugins/toolbar-lists-indentation/index.js +2 -11
  22. package/dist/esm/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.js +0 -2
  23. package/dist/esm/presets/universal.js +2 -1
  24. package/dist/esm/ui/ConfigPanel/LoadingState.js +3 -2
  25. package/dist/esm/version-wrapper.js +1 -1
  26. package/dist/types/plugins/extension/actions.d.ts +6 -0
  27. package/dist/types/plugins/index.d.ts +0 -1
  28. package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +1 -3
  29. package/dist/types/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.d.ts +0 -2
  30. package/dist/types/presets/default.d.ts +4 -0
  31. package/dist/types-ts4.5/plugins/extension/actions.d.ts +6 -0
  32. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  33. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/index.d.ts +1 -3
  34. package/dist/types-ts4.5/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.d.ts +0 -2
  35. package/dist/types-ts4.5/presets/default.d.ts +4 -0
  36. package/package.json +3 -2
  37. package/dist/cjs/plugins/indentation/commands/index.js +0 -140
  38. package/dist/cjs/plugins/indentation/commands/utils.js +0 -92
  39. package/dist/cjs/plugins/indentation/getAttrsWithChangesRecorder.js +0 -38
  40. package/dist/cjs/plugins/indentation/index.js +0 -54
  41. package/dist/cjs/plugins/indentation/pm-plugins/keymap.js +0 -26
  42. package/dist/es2019/plugins/indentation/commands/index.js +0 -130
  43. package/dist/es2019/plugins/indentation/commands/utils.js +0 -89
  44. package/dist/es2019/plugins/indentation/getAttrsWithChangesRecorder.js +0 -32
  45. package/dist/es2019/plugins/indentation/index.js +0 -55
  46. package/dist/es2019/plugins/indentation/pm-plugins/keymap.js +0 -21
  47. package/dist/esm/plugins/indentation/commands/index.js +0 -133
  48. package/dist/esm/plugins/indentation/commands/utils.js +0 -85
  49. package/dist/esm/plugins/indentation/getAttrsWithChangesRecorder.js +0 -32
  50. package/dist/esm/plugins/indentation/index.js +0 -48
  51. package/dist/esm/plugins/indentation/pm-plugins/keymap.js +0 -19
  52. package/dist/types/plugins/indentation/commands/index.d.ts +0 -8
  53. package/dist/types/plugins/indentation/commands/utils.d.ts +0 -37
  54. package/dist/types/plugins/indentation/getAttrsWithChangesRecorder.d.ts +0 -23
  55. package/dist/types/plugins/indentation/index.d.ts +0 -18
  56. package/dist/types/plugins/indentation/pm-plugins/keymap.d.ts +0 -4
  57. package/dist/types-ts4.5/plugins/indentation/commands/index.d.ts +0 -8
  58. package/dist/types-ts4.5/plugins/indentation/commands/utils.d.ts +0 -37
  59. package/dist/types-ts4.5/plugins/indentation/getAttrsWithChangesRecorder.d.ts +0 -23
  60. package/dist/types-ts4.5/plugins/indentation/index.d.ts +0 -20
  61. package/dist/types-ts4.5/plugins/indentation/pm-plugins/keymap.d.ts +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 189.3.26
4
+
5
+ ### Patch Changes
6
+
7
+ - [#43164](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43164) [`3aeedf55e29`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3aeedf55e29) - [ED-20068] Move editSelectedExtension to ExtensionPluginActions
8
+ - Updated dependencies
9
+
10
+ ## 189.3.25
11
+
12
+ ### Patch Changes
13
+
14
+ - [#43274](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43274) [`d162c359ccf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d162c359ccf) - Move indentation plugin code from editor-core to editor-plugin-indentation.
15
+ - Updated dependencies
16
+
3
17
  ## 189.3.24
4
18
 
5
19
  ### Patch Changes
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.performNodeUpdate = exports.editSelectedExtension = exports.editExtension = exports.buildExtensionNode = void 0;
7
+ exports.performNodeUpdate = exports.editSelectedExtension = exports.editExtension = exports.createEditSelectedExtensionAction = exports.buildExtensionNode = void 0;
8
8
  Object.defineProperty(exports, "transformSliceToRemoveOpenBodiedExtension", {
9
9
  enumerable: true,
10
10
  get: function get() {
@@ -216,4 +216,18 @@ var editExtension = exports.editExtension = function editExtension(macroProvider
216
216
  }
217
217
  return true;
218
218
  };
219
+ };
220
+ var createEditSelectedExtensionAction = exports.createEditSelectedExtensionAction = function createEditSelectedExtensionAction(_ref2) {
221
+ var editorViewRef = _ref2.editorViewRef,
222
+ editorAnalyticsAPI = _ref2.editorAnalyticsAPI;
223
+ return function () {
224
+ var view = editorViewRef.current;
225
+ if (!view) {
226
+ return false;
227
+ }
228
+ var _getPluginState3 = (0, _main.getPluginState)(view.state),
229
+ updateExtension = _getPluginState3.updateExtension,
230
+ applyChangeToContextPanel = _getPluginState3.applyChangeToContextPanel;
231
+ return editExtension(null, applyChangeToContextPanel, editorAnalyticsAPI, updateExtension)(view.state, view.dispatch, view);
232
+ };
219
233
  };
@@ -15,8 +15,9 @@ var _uniqueId = require("./pm-plugins/unique-id");
15
15
  var _toolbar = require("./toolbar");
16
16
  var _contextPanel = require("./context-panel");
17
17
  var _extensionApi = require("./extension-api");
18
+ var _actions2 = require("./actions");
18
19
  var extensionPlugin = function extensionPlugin(_ref) {
19
- var _api$featureFlags, _api$analytics2, _api$contextPanel3, _api$analytics3, _api$contextPanel4;
20
+ var _api$featureFlags, _api$analytics2, _api$analytics3, _api$contextPanel3, _api$analytics4, _api$contextPanel4;
20
21
  var _ref$config = _ref.config,
21
22
  options = _ref$config === void 0 ? {} : _ref$config,
22
23
  _api = _ref.api;
@@ -97,6 +98,10 @@ var extensionPlugin = function extensionPlugin(_ref) {
97
98
  });
98
99
  },
99
100
  insertMacroFromMacroBrowser: (0, _actions.insertMacroFromMacroBrowser)(_api === null || _api === void 0 || (_api$analytics2 = _api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions),
101
+ editSelectedExtension: (0, _actions2.createEditSelectedExtensionAction)({
102
+ editorViewRef: editorViewRef,
103
+ editorAnalyticsAPI: _api === null || _api === void 0 || (_api$analytics3 = _api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions
104
+ }),
100
105
  runMacroAutoConvert: _actions.runMacroAutoConvert
101
106
  },
102
107
  pluginsOptions: {
@@ -104,7 +109,7 @@ var extensionPlugin = function extensionPlugin(_ref) {
104
109
  breakoutEnabled: options.breakoutEnabled,
105
110
  hoverDecoration: _api === null || _api === void 0 ? void 0 : _api.decorations.actions.hoverDecoration,
106
111
  applyChangeToContextPanel: _api === null || _api === void 0 || (_api$contextPanel3 = _api.contextPanel) === null || _api$contextPanel3 === void 0 ? void 0 : _api$contextPanel3.actions.applyChange,
107
- editorAnalyticsAPI: _api === null || _api === void 0 || (_api$analytics3 = _api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions
112
+ editorAnalyticsAPI: _api === null || _api === void 0 || (_api$analytics4 = _api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions
108
113
  }),
109
114
  contextPanel: (0, _contextPanel.getContextPanel)(function () {
110
115
  var _editorViewRef$curren;
@@ -82,12 +82,6 @@ Object.defineProperty(exports, "findReplacePlugin", {
82
82
  return _findReplace.default;
83
83
  }
84
84
  });
85
- Object.defineProperty(exports, "indentationPlugin", {
86
- enumerable: true,
87
- get: function get() {
88
- return _indentation.default;
89
- }
90
- });
91
85
  Object.defineProperty(exports, "insertBlockPlugin", {
92
86
  enumerable: true,
93
87
  get: function get() {
@@ -153,7 +147,6 @@ var _tasksAndDecisions = _interopRequireDefault(require("./tasks-and-decisions")
153
147
  var _breakout = _interopRequireDefault(require("./breakout"));
154
148
  var _alignment = _interopRequireDefault(require("./alignment"));
155
149
  var _dataConsumer = _interopRequireDefault(require("./data-consumer"));
156
- var _indentation = _interopRequireDefault(require("./indentation"));
157
150
  var _annotation = _interopRequireDefault(require("./annotation"));
158
151
  var _customAutoformat = _interopRequireDefault(require("./custom-autoformat"));
159
152
  var _feedbackDialog = _interopRequireDefault(require("./feedback-dialog"));
@@ -1,19 +1,16 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.PrimaryToolbarComponent = PrimaryToolbarComponent;
9
8
  exports.default = void 0;
10
- var _react = _interopRequireWildcard(require("react"));
9
+ var _react = _interopRequireDefault(require("react"));
11
10
  var _hooks = require("@atlaskit/editor-common/hooks");
12
11
  var _ui = _interopRequireDefault(require("./ui"));
13
12
  var _types = require("../../ui/Toolbar/types");
14
13
  var _indentationButtons = require("./pm-plugins/indentation-buttons");
15
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
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
14
  var toolbarListsIndentationPlugin = function toolbarListsIndentationPlugin(_ref) {
18
15
  var _api$featureFlags;
19
16
  var config = _ref.config,
@@ -26,12 +23,6 @@ var toolbarListsIndentationPlugin = function toolbarListsIndentationPlugin(_ref)
26
23
  var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
27
24
  return {
28
25
  name: 'toolbarListsIndentation',
29
- getSharedState: function getSharedState(editorState) {
30
- if (!editorState) {
31
- return undefined;
32
- }
33
- return _indentationButtons.pluginKey.getState(editorState);
34
- },
35
26
  primaryToolbarComponent: function primaryToolbarComponent(_ref3) {
36
27
  var editorView = _ref3.editorView,
37
28
  popupsMountPoint = _ref3.popupsMountPoint,
@@ -73,9 +64,7 @@ function PrimaryToolbarComponent(_ref4) {
73
64
  listState = _useSharedPluginState.listState,
74
65
  indentationState = _useSharedPluginState.indentationState,
75
66
  taskDecisionState = _useSharedPluginState.taskDecisionState;
76
- var toolbarListsIndentationState = (0, _react.useMemo)(function () {
77
- return (0, _indentationButtons.getIndentationButtonsState)(editorView.state, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.actions.isInsideListItem);
78
- }, [editorView.state, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.actions.isInsideListItem]);
67
+ var toolbarListsIndentationState = (0, _indentationButtons.getIndentationButtonsState)(editorView.state, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.actions.isInsideListItem);
79
68
  if (!listState) {
80
69
  return null;
81
70
  }
@@ -4,12 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.getIndentationButtonsState = getIndentationButtonsState;
7
- exports.pluginKey = void 0;
8
- var _state = require("@atlaskit/editor-prosemirror/state");
9
7
  var _utils = require("@atlaskit/editor-prosemirror/utils");
10
8
  var _lists = require("@atlaskit/editor-common/lists");
11
9
  var _indentation = require("@atlaskit/editor-common/indentation");
12
- var pluginKey = exports.pluginKey = new _state.PluginKey('indentationButtonsPlugin');
13
10
  function getIndentationButtonsState(editorState, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, isInsideListItem) {
14
11
  var _indentationState$isI;
15
12
  var state = {
@@ -12,6 +12,7 @@ var _plugins = require("../plugins");
12
12
  var _editorPluginPanel = require("@atlaskit/editor-plugin-panel");
13
13
  var _editorPluginTextColor = require("@atlaskit/editor-plugin-text-color");
14
14
  var _editorPluginHistory = require("@atlaskit/editor-plugin-history");
15
+ var _editorPluginIndentation = require("@atlaskit/editor-plugin-indentation");
15
16
  var _editorPluginStatus = require("@atlaskit/editor-plugin-status");
16
17
  var _editorPluginDate = require("@atlaskit/editor-plugin-date");
17
18
  var _editorPluginMaxContentSize = require("@atlaskit/editor-plugin-max-content-size");
@@ -329,7 +330,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
329
330
  }]);
330
331
  }
331
332
  return builder;
332
- }).maybeAdd(_plugins.indentationPlugin, function (plugin, builder) {
333
+ }).maybeAdd(_editorPluginIndentation.indentationPlugin, function (plugin, builder) {
333
334
  if (props.allowIndentation) {
334
335
  return builder.add(plugin);
335
336
  }
@@ -10,10 +10,11 @@ var _react = require("@emotion/react");
10
10
  var _spinner = _interopRequireDefault(require("@atlaskit/spinner"));
11
11
  var _templateObject;
12
12
  /** @jsx jsx */
13
- var spinnerWrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n margin-top: 64px;\n"])));
13
+ var spinnerWrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center;\n margin-top: ", ";\n"])), "var(--ds-space-800, 64px)");
14
14
  var LoadingState = function LoadingState() {
15
15
  return (0, _react.jsx)("div", {
16
- css: spinnerWrapper
16
+ css: spinnerWrapper,
17
+ "data-testid": "ConfigPanelLoading"
17
18
  }, (0, _react.jsx)(_spinner.default, {
18
19
  size: "small"
19
20
  }));
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "189.3.24";
8
+ var version = exports.version = "189.3.26";
@@ -181,4 +181,20 @@ export const editExtension = (macroProvider, applyChangeToContextPanel, editorAn
181
181
  editInLegacyMacroBrowser();
182
182
  }
183
183
  return true;
184
+ };
185
+ export const createEditSelectedExtensionAction = ({
186
+ editorViewRef,
187
+ editorAnalyticsAPI
188
+ }) => () => {
189
+ const {
190
+ current: view
191
+ } = editorViewRef;
192
+ if (!view) {
193
+ return false;
194
+ }
195
+ const {
196
+ updateExtension,
197
+ applyChangeToContextPanel
198
+ } = getPluginState(view.state);
199
+ return editExtension(null, applyChangeToContextPanel, editorAnalyticsAPI, updateExtension)(view.state, view.dispatch, view);
184
200
  };
@@ -8,11 +8,12 @@ import { createPlugin as createUniqueIdPlugin } from './pm-plugins/unique-id';
8
8
  import { getToolbarConfig } from './toolbar';
9
9
  import { getContextPanel } from './context-panel';
10
10
  import { createExtensionAPI } from './extension-api';
11
+ import { createEditSelectedExtensionAction } from './actions';
11
12
  const extensionPlugin = ({
12
13
  config: options = {},
13
14
  api
14
15
  }) => {
15
- var _api$featureFlags, _api$analytics2, _api$contextPanel3, _api$analytics3, _api$contextPanel4;
16
+ var _api$featureFlags, _api$analytics2, _api$analytics3, _api$contextPanel3, _api$analytics4, _api$contextPanel4;
16
17
  const featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
17
18
  //Note: This is a hack to get the editor view reference in the plugin. Copied from table plugin.
18
19
  //This is needed to get the current selection in the editor
@@ -88,6 +89,10 @@ const extensionPlugin = ({
88
89
  });
89
90
  },
90
91
  insertMacroFromMacroBrowser: insertMacroFromMacroBrowser(api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions),
92
+ editSelectedExtension: createEditSelectedExtensionAction({
93
+ editorViewRef,
94
+ editorAnalyticsAPI: api === null || api === void 0 ? void 0 : (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions
95
+ }),
91
96
  runMacroAutoConvert
92
97
  },
93
98
  pluginsOptions: {
@@ -95,7 +100,7 @@ const extensionPlugin = ({
95
100
  breakoutEnabled: options.breakoutEnabled,
96
101
  hoverDecoration: api === null || api === void 0 ? void 0 : api.decorations.actions.hoverDecoration,
97
102
  applyChangeToContextPanel: api === null || api === void 0 ? void 0 : (_api$contextPanel3 = api.contextPanel) === null || _api$contextPanel3 === void 0 ? void 0 : _api$contextPanel3.actions.applyChange,
98
- editorAnalyticsAPI: api === null || api === void 0 ? void 0 : (_api$analytics3 = api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions
103
+ editorAnalyticsAPI: api === null || api === void 0 ? void 0 : (_api$analytics4 = api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions
99
104
  }),
100
105
  contextPanel: getContextPanel(() => {
101
106
  var _editorViewRef$curren;
@@ -9,7 +9,6 @@ export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
9
9
  export { default as breakoutPlugin } from './breakout';
10
10
  export { default as alignmentPlugin } from './alignment';
11
11
  export { default as dataConsumerMarkPlugin } from './data-consumer';
12
- export { default as indentationPlugin } from './indentation';
13
12
  export { default as annotationPlugin } from './annotation';
14
13
  export { default as customAutoformatPlugin } from './custom-autoformat';
15
14
  export { default as feedbackDialogPlugin } from './feedback-dialog';
@@ -1,9 +1,8 @@
1
- import React, { useMemo } from 'react';
1
+ import React from 'react';
2
2
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
3
3
  import ToolbarListsIndentation from './ui';
4
4
  import { ToolbarSize } from '../../ui/Toolbar/types';
5
5
  import { getIndentationButtonsState } from './pm-plugins/indentation-buttons';
6
- import { pluginKey as indentationButtonPluginKey } from './pm-plugins/indentation-buttons';
7
6
  const toolbarListsIndentationPlugin = ({
8
7
  config,
9
8
  api
@@ -16,12 +15,6 @@ const toolbarListsIndentationPlugin = ({
16
15
  const featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
17
16
  return {
18
17
  name: 'toolbarListsIndentation',
19
- getSharedState(editorState) {
20
- if (!editorState) {
21
- return undefined;
22
- }
23
- return indentationButtonPluginKey.getState(editorState);
24
- },
25
18
  primaryToolbarComponent({
26
19
  editorView,
27
20
  popupsMountPoint,
@@ -66,9 +59,7 @@ export function PrimaryToolbarComponent({
66
59
  indentationState,
67
60
  taskDecisionState
68
61
  } = useSharedPluginState(pluginInjectionApi, ['list', 'indentation', 'taskDecision']);
69
- const toolbarListsIndentationState = useMemo(() => {
70
- return getIndentationButtonsState(editorView.state, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.actions.isInsideListItem);
71
- }, [editorView.state, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.actions.isInsideListItem]);
62
+ const toolbarListsIndentationState = getIndentationButtonsState(editorView.state, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.actions.isInsideListItem);
72
63
  if (!listState) {
73
64
  return null;
74
65
  }
@@ -1,8 +1,6 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
1
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
3
2
  import { getListItemAttributes } from '@atlaskit/editor-common/lists';
4
3
  import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
5
- export const pluginKey = new PluginKey('indentationButtonsPlugin');
6
4
  export function getIndentationButtonsState(editorState, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, isInsideListItem) {
7
5
  var _indentationState$isI;
8
6
  const state = {
@@ -1,7 +1,8 @@
1
- import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, insertBlockPlugin, jiraIssuePlugin, toolbarListsIndentationPlugin, tasksAndDecisionsPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin } from '../plugins';
1
+ import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, insertBlockPlugin, jiraIssuePlugin, toolbarListsIndentationPlugin, tasksAndDecisionsPlugin, alignmentPlugin, customAutoformatPlugin, feedbackDialogPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin } from '../plugins';
2
2
  import { panelPlugin } from '@atlaskit/editor-plugin-panel';
3
3
  import { textColorPlugin } from '@atlaskit/editor-plugin-text-color';
4
4
  import { historyPlugin } from '@atlaskit/editor-plugin-history';
5
+ import { indentationPlugin } from '@atlaskit/editor-plugin-indentation';
5
6
  import { statusPlugin } from '@atlaskit/editor-plugin-status';
6
7
  import { datePlugin } from '@atlaskit/editor-plugin-date';
7
8
  import { maxContentSizePlugin } from '@atlaskit/editor-plugin-max-content-size';
@@ -4,10 +4,11 @@ import Spinner from '@atlaskit/spinner';
4
4
  const spinnerWrapper = css`
5
5
  display: flex;
6
6
  justify-content: center;
7
- margin-top: 64px;
7
+ margin-top: ${"var(--ds-space-800, 64px)"};
8
8
  `;
9
9
  const LoadingState = () => jsx("div", {
10
- css: spinnerWrapper
10
+ css: spinnerWrapper,
11
+ "data-testid": "ConfigPanelLoading"
11
12
  }, jsx(Spinner, {
12
13
  size: "small"
13
14
  }));
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "189.3.24";
2
+ export const version = "189.3.26";
@@ -203,4 +203,18 @@ export var editExtension = function editExtension(macroProvider, applyChangeToCo
203
203
  }
204
204
  return true;
205
205
  };
206
+ };
207
+ export var createEditSelectedExtensionAction = function createEditSelectedExtensionAction(_ref2) {
208
+ var editorViewRef = _ref2.editorViewRef,
209
+ editorAnalyticsAPI = _ref2.editorAnalyticsAPI;
210
+ return function () {
211
+ var view = editorViewRef.current;
212
+ if (!view) {
213
+ return false;
214
+ }
215
+ var _getPluginState3 = getPluginState(view.state),
216
+ updateExtension = _getPluginState3.updateExtension,
217
+ applyChangeToContextPanel = _getPluginState3.applyChangeToContextPanel;
218
+ return editExtension(null, applyChangeToContextPanel, editorAnalyticsAPI, updateExtension)(view.state, view.dispatch, view);
219
+ };
206
220
  };
@@ -8,8 +8,9 @@ import { createPlugin as createUniqueIdPlugin } from './pm-plugins/unique-id';
8
8
  import { getToolbarConfig } from './toolbar';
9
9
  import { getContextPanel } from './context-panel';
10
10
  import { createExtensionAPI } from './extension-api';
11
+ import { createEditSelectedExtensionAction } from './actions';
11
12
  var extensionPlugin = function extensionPlugin(_ref) {
12
- var _api$featureFlags, _api$analytics2, _api$contextPanel3, _api$analytics3, _api$contextPanel4;
13
+ var _api$featureFlags, _api$analytics2, _api$analytics3, _api$contextPanel3, _api$analytics4, _api$contextPanel4;
13
14
  var _ref$config = _ref.config,
14
15
  options = _ref$config === void 0 ? {} : _ref$config,
15
16
  _api = _ref.api;
@@ -90,6 +91,10 @@ var extensionPlugin = function extensionPlugin(_ref) {
90
91
  });
91
92
  },
92
93
  insertMacroFromMacroBrowser: insertMacroFromMacroBrowser(_api === null || _api === void 0 || (_api$analytics2 = _api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions),
94
+ editSelectedExtension: createEditSelectedExtensionAction({
95
+ editorViewRef: editorViewRef,
96
+ editorAnalyticsAPI: _api === null || _api === void 0 || (_api$analytics3 = _api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions
97
+ }),
93
98
  runMacroAutoConvert: runMacroAutoConvert
94
99
  },
95
100
  pluginsOptions: {
@@ -97,7 +102,7 @@ var extensionPlugin = function extensionPlugin(_ref) {
97
102
  breakoutEnabled: options.breakoutEnabled,
98
103
  hoverDecoration: _api === null || _api === void 0 ? void 0 : _api.decorations.actions.hoverDecoration,
99
104
  applyChangeToContextPanel: _api === null || _api === void 0 || (_api$contextPanel3 = _api.contextPanel) === null || _api$contextPanel3 === void 0 ? void 0 : _api$contextPanel3.actions.applyChange,
100
- editorAnalyticsAPI: _api === null || _api === void 0 || (_api$analytics3 = _api.analytics) === null || _api$analytics3 === void 0 ? void 0 : _api$analytics3.actions
105
+ editorAnalyticsAPI: _api === null || _api === void 0 || (_api$analytics4 = _api.analytics) === null || _api$analytics4 === void 0 ? void 0 : _api$analytics4.actions
101
106
  }),
102
107
  contextPanel: getContextPanel(function () {
103
108
  var _editorViewRef$curren;
@@ -9,7 +9,6 @@ export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
9
9
  export { default as breakoutPlugin } from './breakout';
10
10
  export { default as alignmentPlugin } from './alignment';
11
11
  export { default as dataConsumerMarkPlugin } from './data-consumer';
12
- export { default as indentationPlugin } from './indentation';
13
12
  export { default as annotationPlugin } from './annotation';
14
13
  export { default as customAutoformatPlugin } from './custom-autoformat';
15
14
  export { default as feedbackDialogPlugin } from './feedback-dialog';
@@ -1,9 +1,8 @@
1
- import React, { useMemo } from 'react';
1
+ import React from 'react';
2
2
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
3
3
  import ToolbarListsIndentation from './ui';
4
4
  import { ToolbarSize } from '../../ui/Toolbar/types';
5
5
  import { getIndentationButtonsState } from './pm-plugins/indentation-buttons';
6
- import { pluginKey as indentationButtonPluginKey } from './pm-plugins/indentation-buttons';
7
6
  var toolbarListsIndentationPlugin = function toolbarListsIndentationPlugin(_ref) {
8
7
  var _api$featureFlags;
9
8
  var config = _ref.config,
@@ -16,12 +15,6 @@ var toolbarListsIndentationPlugin = function toolbarListsIndentationPlugin(_ref)
16
15
  var featureFlags = (api === null || api === void 0 || (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
17
16
  return {
18
17
  name: 'toolbarListsIndentation',
19
- getSharedState: function getSharedState(editorState) {
20
- if (!editorState) {
21
- return undefined;
22
- }
23
- return indentationButtonPluginKey.getState(editorState);
24
- },
25
18
  primaryToolbarComponent: function primaryToolbarComponent(_ref3) {
26
19
  var editorView = _ref3.editorView,
27
20
  popupsMountPoint = _ref3.popupsMountPoint,
@@ -63,9 +56,7 @@ export function PrimaryToolbarComponent(_ref4) {
63
56
  listState = _useSharedPluginState.listState,
64
57
  indentationState = _useSharedPluginState.indentationState,
65
58
  taskDecisionState = _useSharedPluginState.taskDecisionState;
66
- var toolbarListsIndentationState = useMemo(function () {
67
- return getIndentationButtonsState(editorView.state, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.actions.isInsideListItem);
68
- }, [editorView.state, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.actions.isInsideListItem]);
59
+ var toolbarListsIndentationState = getIndentationButtonsState(editorView.state, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.list.actions.isInsideListItem);
69
60
  if (!listState) {
70
61
  return null;
71
62
  }
@@ -1,8 +1,6 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
1
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
3
2
  import { getListItemAttributes } from '@atlaskit/editor-common/lists';
4
3
  import { MAX_INDENTATION_LEVEL } from '@atlaskit/editor-common/indentation';
5
- export var pluginKey = new PluginKey('indentationButtonsPlugin');
6
4
  export function getIndentationButtonsState(editorState, allowHeadingAndParagraphIndentation, taskDecisionState, indentationState, isInsideListItem) {
7
5
  var _indentationState$isI;
8
6
  var state = {
@@ -2,10 +2,11 @@ import _typeof from "@babel/runtime/helpers/typeof";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  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; }
4
4
  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; }
5
- import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, insertBlockPlugin, jiraIssuePlugin, toolbarListsIndentationPlugin, tasksAndDecisionsPlugin, alignmentPlugin, indentationPlugin, customAutoformatPlugin, feedbackDialogPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin } from '../plugins';
5
+ import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, insertBlockPlugin, jiraIssuePlugin, toolbarListsIndentationPlugin, tasksAndDecisionsPlugin, alignmentPlugin, customAutoformatPlugin, feedbackDialogPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin, codeBidiWarningPlugin } from '../plugins';
6
6
  import { panelPlugin } from '@atlaskit/editor-plugin-panel';
7
7
  import { textColorPlugin } from '@atlaskit/editor-plugin-text-color';
8
8
  import { historyPlugin } from '@atlaskit/editor-plugin-history';
9
+ import { indentationPlugin } from '@atlaskit/editor-plugin-indentation';
9
10
  import { statusPlugin } from '@atlaskit/editor-plugin-status';
10
11
  import { datePlugin } from '@atlaskit/editor-plugin-date';
11
12
  import { maxContentSizePlugin } from '@atlaskit/editor-plugin-max-content-size';
@@ -3,10 +3,11 @@ var _templateObject;
3
3
  /** @jsx jsx */
4
4
  import { css, jsx } from '@emotion/react';
5
5
  import Spinner from '@atlaskit/spinner';
6
- var spinnerWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n margin-top: 64px;\n"])));
6
+ var spinnerWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n margin-top: ", ";\n"])), "var(--ds-space-800, 64px)");
7
7
  var LoadingState = function LoadingState() {
8
8
  return jsx("div", {
9
- css: spinnerWrapper
9
+ css: spinnerWrapper,
10
+ "data-testid": "ConfigPanelLoading"
10
11
  }, jsx(Spinner, {
11
12
  size: "small"
12
13
  }));
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "189.3.24";
2
+ export var version = "189.3.26";
@@ -1,3 +1,4 @@
1
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
1
2
  import type { Schema, Node as PmNode, Fragment, Mark } from '@atlaskit/editor-prosemirror/model';
2
3
  import type { UpdateExtension } from '@atlaskit/editor-common/extensions';
3
4
  import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
@@ -10,3 +11,8 @@ export declare const buildExtensionNode: <S extends Schema<any, any>>(type: 'inl
10
11
  export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type: 'inlineExtension' | 'extension' | 'bodiedExtension', newAttrs: object, content: Fragment, marks: readonly Mark[], shouldScrollIntoView: boolean) => Command;
11
12
  export declare const editSelectedExtension: (editorActions: EditorActions) => boolean;
12
13
  export declare const editExtension: (macroProvider: MacroProvider | null | undefined, applyChangeToContextPanel: ApplyChangeHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
14
+ type Props = {
15
+ editorViewRef: Record<'current', EditorView | null>;
16
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
17
+ };
18
+ export declare const createEditSelectedExtensionAction: ({ editorViewRef, editorAnalyticsAPI }: Props) => () => boolean;
@@ -9,7 +9,6 @@ export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
9
9
  export { default as breakoutPlugin } from './breakout';
10
10
  export { default as alignmentPlugin } from './alignment';
11
11
  export { default as dataConsumerMarkPlugin } from './data-consumer';
12
- export { default as indentationPlugin } from './indentation';
13
12
  export { default as annotationPlugin } from './annotation';
14
13
  export { default as customAutoformatPlugin } from './custom-autoformat';
15
14
  export { default as feedbackDialogPlugin } from './feedback-dialog';
@@ -3,10 +3,9 @@ import type { FeatureFlags, NextEditorPlugin, OptionalPlugin } from '@atlaskit/e
3
3
  import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
4
4
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
5
5
  import type { ListPlugin } from '@atlaskit/editor-plugin-list';
6
- import type { IndentationButtons } from './pm-plugins/indentation-buttons';
7
6
  import type { ToolbarUiComponentFactoryParams } from '../../types';
8
7
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
- import type { IndentationPlugin } from '../indentation';
8
+ import type { IndentationPlugin } from '@atlaskit/editor-plugin-indentation';
10
9
  import type { TaskAndDecisionsPlugin } from '../tasks-and-decisions/types';
11
10
  type Config = {
12
11
  showIndentationButtons: boolean;
@@ -21,7 +20,6 @@ type ToolbarListsIndentationPlugin = NextEditorPlugin<'toolbarListsIndentation',
21
20
  OptionalPlugin<TaskAndDecisionsPlugin>,
22
21
  OptionalPlugin<AnalyticsPlugin>
23
22
  ];
24
- sharedState: IndentationButtons | undefined;
25
23
  }>;
26
24
  declare const toolbarListsIndentationPlugin: ToolbarListsIndentationPlugin;
27
25
  type PrimaryToolbarComponentProps = Pick<ToolbarUiComponentFactoryParams, 'editorView' | 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement' | 'disabled' | 'isToolbarReducedSpacing'> & {
@@ -1,12 +1,10 @@
1
1
  import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
2
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
2
  export type IndentationButtonNode = null | 'paragraph_heading' | 'list' | 'taskList';
4
3
  export interface IndentationButtons {
5
4
  indentDisabled: boolean;
6
5
  outdentDisabled: boolean;
7
6
  node: IndentationButtonNode;
8
7
  }
9
- export declare const pluginKey: PluginKey<IndentationButtons>;
10
8
  interface TaskDecisionState {
11
9
  isInsideTask: boolean;
12
10
  indentDisabled: boolean;
@@ -112,6 +112,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
112
112
  };
113
113
  }, undefined>>];
114
114
  actions: {
115
+ editSelectedExtension: () => boolean;
115
116
  api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI<import("@atlaskit/editor-common/extensions").Parameters>;
116
117
  insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
117
118
  runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
@@ -253,6 +254,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
253
254
  };
254
255
  }, undefined>>];
255
256
  actions: {
257
+ editSelectedExtension: () => boolean;
256
258
  api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI<import("@atlaskit/editor-common/extensions").Parameters>;
257
259
  insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
258
260
  runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
@@ -601,6 +603,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
601
603
  };
602
604
  }, undefined>>];
603
605
  actions: {
606
+ editSelectedExtension: () => boolean;
604
607
  api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI<import("@atlaskit/editor-common/extensions").Parameters>;
605
608
  insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
606
609
  runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
@@ -742,6 +745,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
742
745
  };
743
746
  }, undefined>>];
744
747
  actions: {
748
+ editSelectedExtension: () => boolean;
745
749
  api: () => import("@atlaskit/editor-common/extensions").ExtensionAPI<import("@atlaskit/editor-common/extensions").Parameters>;
746
750
  insertMacroFromMacroBrowser: (macroProvider: import("@atlaskit/editor-common/provider-factory").MacroProvider, macroNode?: import("prosemirror-model").Node | undefined, isEditing?: boolean | undefined) => (view: import("prosemirror-view").EditorView) => Promise<boolean>;
747
751
  runMacroAutoConvert: import("@atlaskit/editor-plugin-extension").RunMacroAutoConvert;
@@ -1,3 +1,4 @@
1
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
1
2
  import type { Schema, Node as PmNode, Fragment, Mark } from '@atlaskit/editor-prosemirror/model';
2
3
  import type { UpdateExtension } from '@atlaskit/editor-common/extensions';
3
4
  import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
@@ -10,3 +11,8 @@ export declare const buildExtensionNode: <S extends Schema<any, any>>(type: 'inl
10
11
  export declare const performNodeUpdate: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (type: 'inlineExtension' | 'extension' | 'bodiedExtension', newAttrs: object, content: Fragment, marks: readonly Mark[], shouldScrollIntoView: boolean) => Command;
11
12
  export declare const editSelectedExtension: (editorActions: EditorActions) => boolean;
12
13
  export declare const editExtension: (macroProvider: MacroProvider | null | undefined, applyChangeToContextPanel: ApplyChangeHandler | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
14
+ type Props = {
15
+ editorViewRef: Record<'current', EditorView | null>;
16
+ editorAnalyticsAPI: EditorAnalyticsAPI | undefined;
17
+ };
18
+ export declare const createEditSelectedExtensionAction: ({ editorViewRef, editorAnalyticsAPI }: Props) => () => boolean;
@@ -9,7 +9,6 @@ export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
9
9
  export { default as breakoutPlugin } from './breakout';
10
10
  export { default as alignmentPlugin } from './alignment';
11
11
  export { default as dataConsumerMarkPlugin } from './data-consumer';
12
- export { default as indentationPlugin } from './indentation';
13
12
  export { default as annotationPlugin } from './annotation';
14
13
  export { default as customAutoformatPlugin } from './custom-autoformat';
15
14
  export { default as feedbackDialogPlugin } from './feedback-dialog';