@atlaskit/editor-core 187.19.1 → 187.20.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 (76) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/plugins/emoji/commands/insert-emoji.js +21 -20
  3. package/dist/cjs/plugins/emoji/index.js +16 -5
  4. package/dist/cjs/plugins/index.js +2 -2
  5. package/dist/cjs/plugins/insert-block/index.js +3 -7
  6. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +4 -3
  7. package/dist/cjs/plugins/media/pm-plugins/main.js +13 -1
  8. package/dist/cjs/plugins/media/toolbar/index.js +21 -8
  9. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +15 -3
  10. package/dist/cjs/plugins/text-color/commands/toggle-color.js +3 -2
  11. package/dist/cjs/utils/document.js +6 -24
  12. package/dist/cjs/utils/index.js +33 -105
  13. package/dist/cjs/utils/prosemirror/position.js +33 -41
  14. package/dist/cjs/version-wrapper.js +1 -1
  15. package/dist/cjs/version.json +1 -1
  16. package/dist/es2019/plugins/emoji/commands/insert-emoji.js +24 -20
  17. package/dist/es2019/plugins/emoji/index.js +14 -4
  18. package/dist/es2019/plugins/index.js +1 -1
  19. package/dist/es2019/plugins/insert-block/index.js +3 -7
  20. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +6 -3
  21. package/dist/es2019/plugins/media/pm-plugins/main.js +9 -0
  22. package/dist/es2019/plugins/media/toolbar/index.js +22 -10
  23. package/dist/es2019/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +17 -4
  24. package/dist/es2019/plugins/text-color/commands/toggle-color.js +3 -2
  25. package/dist/es2019/utils/document.js +1 -20
  26. package/dist/es2019/utils/index.js +1 -99
  27. package/dist/es2019/utils/prosemirror/position.js +1 -51
  28. package/dist/es2019/version-wrapper.js +1 -1
  29. package/dist/es2019/version.json +1 -1
  30. package/dist/esm/plugins/emoji/commands/insert-emoji.js +21 -20
  31. package/dist/esm/plugins/emoji/index.js +14 -4
  32. package/dist/esm/plugins/index.js +1 -1
  33. package/dist/esm/plugins/insert-block/index.js +3 -7
  34. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +4 -3
  35. package/dist/esm/plugins/media/pm-plugins/main.js +11 -0
  36. package/dist/esm/plugins/media/toolbar/index.js +23 -10
  37. package/dist/esm/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +16 -4
  38. package/dist/esm/plugins/text-color/commands/toggle-color.js +3 -2
  39. package/dist/esm/utils/document.js +1 -22
  40. package/dist/esm/utils/index.js +1 -97
  41. package/dist/esm/utils/prosemirror/position.js +1 -39
  42. package/dist/esm/version-wrapper.js +1 -1
  43. package/dist/esm/version.json +1 -1
  44. package/dist/types/labs/next/presets/default.d.ts +32 -32
  45. package/dist/types/plugins/emoji/commands/insert-emoji.d.ts +2 -2
  46. package/dist/types/plugins/emoji/index.d.ts +9 -4
  47. package/dist/types/plugins/index.d.ts +1 -1
  48. package/dist/types/plugins/insert-block/index.d.ts +3 -1
  49. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +0 -1
  50. package/dist/types/plugins/media/pm-plugins/main.d.ts +3 -0
  51. package/dist/types/plugins/media/pm-plugins/types.d.ts +2 -0
  52. package/dist/types/plugins/media/toolbar/index.d.ts +1 -2
  53. package/dist/types/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +1 -0
  54. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  55. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  56. package/dist/types/utils/document.d.ts +2 -7
  57. package/dist/types/utils/index.d.ts +2 -6
  58. package/dist/types/utils/prosemirror/position.d.ts +1 -8
  59. package/dist/types-ts4.5/labs/next/presets/default.d.ts +32 -32
  60. package/dist/types-ts4.5/plugins/emoji/commands/insert-emoji.d.ts +2 -2
  61. package/dist/types-ts4.5/plugins/emoji/index.d.ts +9 -4
  62. package/dist/types-ts4.5/plugins/index.d.ts +1 -1
  63. package/dist/types-ts4.5/plugins/insert-block/index.d.ts +3 -1
  64. package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +0 -1
  65. package/dist/types-ts4.5/plugins/media/pm-plugins/main.d.ts +3 -0
  66. package/dist/types-ts4.5/plugins/media/pm-plugins/types.d.ts +2 -0
  67. package/dist/types-ts4.5/plugins/media/toolbar/index.d.ts +1 -2
  68. package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +1 -0
  69. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  70. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  71. package/dist/types-ts4.5/utils/document.d.ts +2 -7
  72. package/dist/types-ts4.5/utils/index.d.ts +2 -6
  73. package/dist/types-ts4.5/utils/prosemirror/position.d.ts +1 -8
  74. package/package.json +4 -4
  75. package/report.api.md +4 -0
  76. package/tmp/api-report-tmp.d.ts +4 -0
@@ -23,9 +23,11 @@ import { ResizerNext } from '@atlaskit/editor-common/resizer';
23
23
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
24
24
  import classnames from 'classnames';
25
25
  import { richMediaClassName, resizerStyles } from '@atlaskit/editor-common/styles';
26
- import { MEDIA_SINGLE_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, calculateOffsetLeft, DEFAULT_IMAGE_WIDTH, calcMediaSingleMaxWidth } from '@atlaskit/editor-common/media-single';
26
+ import { MEDIA_SINGLE_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_RESIZE_THROTTLE_TIME, calculateOffsetLeft, DEFAULT_IMAGE_WIDTH, calcMediaSingleMaxWidth } from '@atlaskit/editor-common/media-single';
27
27
  import { findClosestSnap, getGuidelinesWithHighlights, generateDefaultGuidelines, generateDynamicGuidelines, getGuidelineSnaps } from '@atlaskit/editor-common/guideline';
28
28
  import memoizeOne from 'memoize-one';
29
+ import throttle from 'lodash/throttle';
30
+ import { MEDIA_PLUGIN_IS_RESIZING_KEY, MEDIA_PLUGIN_RESIZING_WIDTH_KEY } from '../../pm-plugins/main';
29
31
  export var resizerNextTestId = 'mediaSingle.resizerNext.testid';
30
32
 
31
33
  // TODO: Create new fixed image size event
@@ -130,7 +132,15 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
130
132
  state = _this$props$view.state,
131
133
  dispatch = _this$props$view.dispatch;
132
134
  var tr = state.tr;
133
- tr.setMeta('mediaSinglePlugin.isResizing', isResizing);
135
+ tr.setMeta(MEDIA_PLUGIN_IS_RESIZING_KEY, isResizing);
136
+ return dispatch(tr);
137
+ });
138
+ _defineProperty(_assertThisInitialized(_this), "updateSizeInPluginState", function (width) {
139
+ var _this$props$view2 = _this.props.view,
140
+ state = _this$props$view2.state,
141
+ dispatch = _this$props$view2.dispatch;
142
+ var tr = state.tr;
143
+ tr.setMeta(MEDIA_PLUGIN_RESIZING_WIDTH_KEY, width);
134
144
  return dispatch(tr);
135
145
  });
136
146
  _defineProperty(_assertThisInitialized(_this), "calcMaxWidth", memoizeOne(function (contentWidth, containerWidth, fullWidthMode) {
@@ -184,11 +194,12 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
184
194
  });
185
195
  _this.selectCurrentMediaNode();
186
196
  _this.setIsResizing(true);
197
+ _this.updateSizeInPluginState(_this.state.size.width);
187
198
  // re-calucate guidelines
188
199
  _this.guidelines = _this.getAllGuidelines();
189
200
  return 0;
190
201
  });
191
- _defineProperty(_assertThisInitialized(_this), "handleResize", function (size, delta) {
202
+ _defineProperty(_assertThisInitialized(_this), "handleResize", throttle(function (size, delta) {
192
203
  var _this$props4 = _this.props,
193
204
  originalWidth = _this$props4.width,
194
205
  originalHeight = _this$props4.height,
@@ -208,10 +219,11 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
208
219
  },
209
220
  snaps: guidelineSnaps.snaps
210
221
  });
222
+ _this.updateSizeInPluginState(width);
211
223
  if (calculatedWidthWithLayout.layout !== layout) {
212
224
  updateSize(width, calculatedWidthWithLayout.layout);
213
225
  }
214
- });
226
+ }, MEDIA_SINGLE_RESIZE_THROTTLE_TIME));
215
227
  _defineProperty(_assertThisInitialized(_this), "handleResizeStop", function (size, delta) {
216
228
  var _this$props5 = _this.props,
217
229
  originalWidth = _this$props5.width,
@@ -1,6 +1,7 @@
1
1
  import { toggleMark } from '@atlaskit/editor-common/mark';
2
2
  import { ACTIONS, pluginKey } from '../pm-plugins/main';
3
3
  import { getDisabledState } from '../utils/disabled';
4
+ import { pluginCommandToPMCommand } from '@atlaskit/editor-common/preset';
4
5
  export var toggleColor = function toggleColor(color) {
5
6
  return function (state, dispatch) {
6
7
  var textColor = state.schema.marks.textColor;
@@ -20,9 +21,9 @@ export var toggleColor = function toggleColor(color) {
20
21
  color: color
21
22
  });
22
23
  state.tr.scrollIntoView();
23
- toggleMark(textColor, {
24
+ pluginCommandToPMCommand(toggleMark(textColor, {
24
25
  color: color
25
- })(state, dispatch);
26
+ }))(state, dispatch);
26
27
  }
27
28
  return true;
28
29
  };
@@ -2,6 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import { Fragment } from '@atlaskit/editor-prosemirror/model';
3
3
  import { getBreakoutMode } from './node-width';
4
4
  import { processRawValue, hasDocAsParent, getStepRange, isEmptyParagraph } from '@atlaskit/editor-common/utils';
5
+ export { findFarthestParentNode } from '@atlaskit/editor-common/utils';
5
6
 
6
7
  /**
7
8
  * Checks if a node has any content. Ignores node that only contain empty block nodes.
@@ -50,28 +51,6 @@ export function processRawFragmentValue(schema, value, providerFactory, sanitize
50
51
  }
51
52
  return Fragment.from(adfEntities);
52
53
  }
53
-
54
- /**
55
- * Find the farthest node given a condition
56
- * @param predicate Function to check the node
57
- */
58
- export var findFarthestParentNode = function findFarthestParentNode(predicate) {
59
- return function ($pos) {
60
- var candidate = null;
61
- for (var i = $pos.depth; i > 0; i--) {
62
- var _node = $pos.node(i);
63
- if (predicate(_node)) {
64
- candidate = {
65
- pos: i > 0 ? $pos.before(i) : 0,
66
- start: $pos.start(i),
67
- depth: i,
68
- node: _node
69
- };
70
- }
71
- }
72
- return candidate;
73
- };
74
- };
75
54
  export var isSelectionEndOfParagraph = function isSelectionEndOfParagraph(state) {
76
55
  return state.selection.$to.parent.type === state.schema.nodes.paragraph && state.selection.$to.pos === state.doc.resolve(state.selection.$to.pos).end();
77
56
  };
@@ -2,7 +2,7 @@ import { toggleMark } from '@atlaskit/editor-prosemirror/commands';
2
2
  import { JSONTransformer } from '@atlaskit/editor-json-transformer';
3
3
  import { FakeTextCursorSelection } from '../plugins/fake-text-cursor/cursor';
4
4
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
- import { isNodeEmpty } from './document';
5
+ export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem } from '@atlaskit/editor-common/utils';
6
6
  export { insideTable } from '@atlaskit/editor-common/core-utils';
7
7
  export { isNodeEmpty, findFarthestParentNode, isSelectionEndOfParagraph, nodesBetweenChanged, getNodesCount } from './document';
8
8
  export { sanitiseMarksInSelection } from './mark';
@@ -15,11 +15,6 @@ function isMarkTypeCompatibleWithMark(markType, mark) {
15
15
  function isMarkTypeAllowedInNode(markType, state) {
16
16
  return toggleMark(markType)(state);
17
17
  }
18
- export function isSelectionInsideLastNodeInDocument(selection) {
19
- var docNode = selection.$anchor.node(0);
20
- var rootNode = selection.$anchor.node(1);
21
- return docNode.lastChild === rootNode;
22
- }
23
18
  export function getCursor(selection) {
24
19
  return selection.$cursor || undefined;
25
20
  }
@@ -67,36 +62,6 @@ export function isMarkTypeAllowedInCurrentSelection(markType, state) {
67
62
  return allowedInActiveMarks;
68
63
  });
69
64
  }
70
- export function checkNodeDown(selection, doc, filter) {
71
- var ancestorDepth = findAncestorPosition(doc, selection.$to).depth;
72
-
73
- // Top level node
74
- if (ancestorDepth === 0) {
75
- return false;
76
- }
77
- var res = doc.resolve(selection.$to.after(ancestorDepth));
78
- return res.nodeAfter ? filter(res.nodeAfter) : false;
79
- }
80
-
81
- /**
82
- * Traverse the document until an "ancestor" is found. Any nestable block can be an ancestor.
83
- */
84
- function findAncestorPosition(doc, pos) {
85
- var nestableBlocks = ['blockquote', 'bulletList', 'orderedList'];
86
- if (pos.depth === 1) {
87
- return pos;
88
- }
89
- var node = pos.node(pos.depth);
90
- var newPos = pos;
91
- while (pos.depth >= 1) {
92
- pos = doc.resolve(pos.before(pos.depth));
93
- node = pos.node(pos.depth);
94
- if (node && nestableBlocks.indexOf(node.type.name) !== -1) {
95
- newPos = pos;
96
- }
97
- }
98
- return newPos;
99
- }
100
65
  var transformer = new JSONTransformer();
101
66
  export function toJSON(node) {
102
67
  return transformer.encode(node);
@@ -142,67 +107,6 @@ export function whichTransitionEvent() {
142
107
  export var isTemporary = function isTemporary(id) {
143
108
  return id.indexOf('temporary:') === 0;
144
109
  };
145
- export var isEmptyNode = function isEmptyNode(schema) {
146
- var _schema$nodes = schema.nodes,
147
- doc = _schema$nodes.doc,
148
- paragraph = _schema$nodes.paragraph,
149
- codeBlock = _schema$nodes.codeBlock,
150
- blockquote = _schema$nodes.blockquote,
151
- panel = _schema$nodes.panel,
152
- heading = _schema$nodes.heading,
153
- listItem = _schema$nodes.listItem,
154
- bulletList = _schema$nodes.bulletList,
155
- orderedList = _schema$nodes.orderedList,
156
- taskList = _schema$nodes.taskList,
157
- taskItem = _schema$nodes.taskItem,
158
- decisionList = _schema$nodes.decisionList,
159
- decisionItem = _schema$nodes.decisionItem,
160
- media = _schema$nodes.media,
161
- mediaGroup = _schema$nodes.mediaGroup,
162
- mediaSingle = _schema$nodes.mediaSingle;
163
- var innerIsEmptyNode = function innerIsEmptyNode(node) {
164
- switch (node.type) {
165
- case media:
166
- case mediaGroup:
167
- case mediaSingle:
168
- return false;
169
- case paragraph:
170
- case codeBlock:
171
- case heading:
172
- case taskItem:
173
- case decisionItem:
174
- return node.content.size === 0;
175
- case blockquote:
176
- case panel:
177
- case listItem:
178
- return node.content.size === 2 && innerIsEmptyNode(node.content.firstChild);
179
- case bulletList:
180
- case orderedList:
181
- return node.content.size === 4 && innerIsEmptyNode(node.content.firstChild);
182
- case taskList:
183
- case decisionList:
184
- return node.content.size === 2 && innerIsEmptyNode(node.content.firstChild);
185
- case doc:
186
- var isEmpty = true;
187
- node.content.forEach(function (child) {
188
- isEmpty = isEmpty && innerIsEmptyNode(child);
189
- });
190
- return isEmpty;
191
- default:
192
- return isNodeEmpty(node);
193
- }
194
- };
195
- return innerIsEmptyNode;
196
- };
197
- export var insideTableCell = function insideTableCell(state) {
198
- var _state$schema$nodes = state.schema.nodes,
199
- tableCell = _state$schema$nodes.tableCell,
200
- tableHeader = _state$schema$nodes.tableHeader;
201
- return hasParentNodeOfType([tableCell, tableHeader])(state.selection);
202
- };
203
- export var isInListItem = function isInListItem(state) {
204
- return hasParentNodeOfType(state.schema.nodes.listItem)(state.selection);
205
- };
206
110
  export var hasOpenEnd = function hasOpenEnd(slice) {
207
111
  return slice.openStart > 0 || slice.openEnd > 0;
208
112
  };
@@ -1,39 +1 @@
1
- import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
2
- import { GapCursorSelection } from '../../plugins/selection/gap-cursor/selection';
3
- export function atTheEndOfDoc(state) {
4
- var selection = state.selection,
5
- doc = state.doc;
6
- return doc.nodeSize - selection.$to.pos - 2 === selection.$to.depth;
7
- }
8
- export function atTheBeginningOfDoc(state) {
9
- var selection = state.selection;
10
- return selection.$from.pos === selection.$from.depth;
11
- }
12
- export function atTheEndOfBlock(state) {
13
- var selection = state.selection;
14
- var $to = selection.$to;
15
- if (selection instanceof GapCursorSelection) {
16
- return false;
17
- }
18
- if (selection instanceof NodeSelection && selection.node.isBlock) {
19
- return true;
20
- }
21
- return endPositionOfParent($to) === $to.pos + 1;
22
- }
23
- export function atTheBeginningOfBlock(state) {
24
- var selection = state.selection;
25
- var $from = selection.$from;
26
- if (selection instanceof GapCursorSelection) {
27
- return false;
28
- }
29
- if (selection instanceof NodeSelection && selection.node.isBlock) {
30
- return true;
31
- }
32
- return startPositionOfParent($from) === $from.pos;
33
- }
34
- export function startPositionOfParent(resolvedPos) {
35
- return resolvedPos.start(resolvedPos.depth);
36
- }
37
- export function endPositionOfParent(resolvedPos) {
38
- return resolvedPos.end(resolvedPos.depth) + 1;
39
- }
1
+ export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, endPositionOfParent, startPositionOfParent } from '@atlaskit/editor-common/selection';
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.19.1";
2
+ export var version = "187.20.0";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.19.1",
3
+ "version": "187.20.0",
4
4
  "sideEffects": false
5
5
  }
@@ -262,14 +262,14 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
262
262
  }>];
263
263
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
264
264
  }>>];
265
- actions: {
266
- toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
267
- toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
268
- toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
269
- toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
270
- toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
271
- toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
272
- toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
265
+ commands: {
266
+ toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
267
+ toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
268
+ toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
269
+ toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
270
+ toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
271
+ toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
272
+ toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
273
273
  };
274
274
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
275
275
  pluginConfiguration: TextFormattingOptions | undefined;
@@ -302,14 +302,14 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
302
302
  }>];
303
303
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
304
304
  }>>];
305
- actions: {
306
- toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
307
- toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
308
- toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
309
- toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
310
- toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
311
- toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
312
- toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
305
+ commands: {
306
+ toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
307
+ toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
308
+ toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
309
+ toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
310
+ toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
311
+ toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
312
+ toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
313
313
  };
314
314
  }>, (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
315
315
  pluginConfiguration: HyperlinkPluginOptions | undefined;
@@ -633,14 +633,14 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
633
633
  }>];
634
634
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
635
635
  }>>];
636
- actions: {
637
- toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
638
- toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
639
- toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
640
- toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
641
- toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
642
- toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
643
- toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
636
+ commands: {
637
+ toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
638
+ toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
639
+ toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
640
+ toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
641
+ toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
642
+ toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
643
+ toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
644
644
  };
645
645
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
646
646
  pluginConfiguration: TextFormattingOptions | undefined;
@@ -673,14 +673,14 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
673
673
  }>];
674
674
  actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
675
675
  }>>];
676
- actions: {
677
- toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
678
- toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
679
- toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
680
- toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
681
- toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
682
- toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
683
- toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkWithAnalyticsCommand;
676
+ commands: {
677
+ toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
678
+ toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
679
+ toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
680
+ toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
681
+ toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
682
+ toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
683
+ toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
684
684
  };
685
685
  }>, (config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
686
686
  pluginConfiguration: HyperlinkPluginOptions | undefined;
@@ -1,4 +1,4 @@
1
1
  import type { EmojiId } from '@atlaskit/emoji';
2
- import type { Command } from '../../../types';
2
+ import type { PluginCommand } from '@atlaskit/editor-common/types';
3
3
  import type { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
- export declare const insertEmoji: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (emojiId: EmojiId, inputMethod?: INPUT_METHOD.PICKER | INPUT_METHOD.ASCII | INPUT_METHOD.TYPEAHEAD) => Command;
4
+ export declare const insertEmoji: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (emojiId: EmojiId, inputMethod?: INPUT_METHOD.PICKER | INPUT_METHOD.ASCII | INPUT_METHOD.TYPEAHEAD) => PluginCommand;
@@ -1,8 +1,9 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
4
- import type { EmojiDescription, EmojiProvider } from '@atlaskit/emoji';
5
- import type { Command, NextEditorPlugin, PMPluginFactoryParams, OptionalPlugin } from '@atlaskit/editor-common/types';
4
+ import type { EmojiDescription, EmojiProvider, EmojiId } from '@atlaskit/emoji';
5
+ import type { Command, NextEditorPlugin, PMPluginFactoryParams, OptionalPlugin, PluginCommand } from '@atlaskit/editor-common/types';
6
+ import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
6
7
  import type { TypeAheadItem } from '../type-ahead/types';
7
8
  import type { EmojiPluginOptions, EmojiPluginState } from './types';
8
9
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
@@ -12,11 +13,15 @@ export declare function memoize<ResultFn extends (emoji: EmojiDescription, emoji
12
13
  clear(): void;
13
14
  };
14
15
  export declare const defaultListLimit = 50;
15
- declare const emojiPlugin: NextEditorPlugin<'emoji', {
16
+ export type EmojiPlugin = NextEditorPlugin<'emoji', {
16
17
  pluginConfiguration: EmojiPluginOptions | undefined;
17
18
  dependencies: [OptionalPlugin<typeof analyticsPlugin>];
19
+ sharedState: EmojiPluginState | undefined;
20
+ commands: {
21
+ insertEmoji: (emojiId: EmojiId, inputMethod?: INPUT_METHOD.PICKER | INPUT_METHOD.ASCII | INPUT_METHOD.TYPEAHEAD) => PluginCommand;
22
+ };
18
23
  }>;
19
- export default emojiPlugin;
24
+ export declare const emojiPlugin: EmojiPlugin;
20
25
  /**
21
26
  * Actions
22
27
  */
@@ -7,7 +7,7 @@ export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-mark
7
7
  export { default as codeBlockPlugin } from './code-block';
8
8
  export { default as collabEditPlugin } from './collab-edit';
9
9
  export { default as datePlugin } from './date';
10
- export { default as emojiPlugin } from './emoji';
10
+ export { emojiPlugin } from './emoji';
11
11
  export { default as extensionPlugin } from './extension';
12
12
  export { default as fakeTextCursorPlugin } from './fake-text-cursor';
13
13
  export { default as helpDialogPlugin } from './help-dialog';
@@ -1,5 +1,6 @@
1
1
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
2
  import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
3
+ import type { EmojiPlugin } from '../emoji';
3
4
  import type datePlugin from '../date';
4
5
  import type { tablesPlugin } from '@atlaskit/editor-plugin-table';
5
6
  import type { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
@@ -24,7 +25,8 @@ declare const insertBlockPlugin: NextEditorPlugin<'insertBlock', {
24
25
  OptionalPlugin<typeof datePlugin>,
25
26
  OptionalPlugin<typeof analyticsPlugin>,
26
27
  OptionalPlugin<ImageUploadPlugin>,
27
- OptionalPlugin<typeof mentionsPlugin>
28
+ OptionalPlugin<typeof mentionsPlugin>,
29
+ OptionalPlugin<EmojiPlugin>
28
30
  ];
29
31
  }>;
30
32
  export default insertBlockPlugin;
@@ -7,7 +7,6 @@ export declare class ToolbarInsertBlock extends React.PureComponent<Props & Wrap
7
7
  private dropdownButtonRef?;
8
8
  private emojiButtonRef?;
9
9
  private plusButtonRef?;
10
- private editorAnalyticsAPI;
11
10
  state: State;
12
11
  static getDerivedStateFromProps(props: Props & WrappedComponentProps, state: State): State | null;
13
12
  componentDidUpdate(prevProps: Props): void;
@@ -19,6 +19,7 @@ export type { MediaState, MediaProvider, MediaStateStatus };
19
19
  export { stateKey } from './plugin-key';
20
20
  export declare const MEDIA_CONTENT_WRAP_CLASS_NAME = "media-content-wrap";
21
21
  export declare const MEDIA_PLUGIN_IS_RESIZING_KEY = "mediaSinglePlugin.isResizing";
22
+ export declare const MEDIA_PLUGIN_RESIZING_WIDTH_KEY = "mediaSinglePlugin.resizing-width";
22
23
  export declare class MediaPluginStateImplementation implements MediaPluginState {
23
24
  allowsUploads: boolean;
24
25
  mediaClientConfig?: MediaClientConfig;
@@ -35,6 +36,7 @@ export declare class MediaPluginStateImplementation implements MediaPluginState
35
36
  mediaProvider?: MediaProvider;
36
37
  newInsertionBehaviour?: boolean;
37
38
  isResizing: boolean;
39
+ resizingWidth: number;
38
40
  private view;
39
41
  private destroyed;
40
42
  private contextIdentifierProvider?;
@@ -57,6 +59,7 @@ export declare class MediaPluginStateImplementation implements MediaPluginState
57
59
  setMediaProvider: (mediaProvider?: Promise<MediaProvider>) => Promise<void>;
58
60
  getMediaOptions: () => MediaPluginOptions;
59
61
  setIsResizing(isResizing: boolean): void;
62
+ setResizingWidth(width: number): void;
60
63
  updateElement(): void;
61
64
  private isMediaSchemaNode;
62
65
  private getDomElement;
@@ -33,6 +33,7 @@ export interface MediaPluginState {
33
33
  showEditingDialog?: boolean;
34
34
  mediaOptions?: MediaOptions;
35
35
  isResizing: boolean;
36
+ resizingWidth: number;
36
37
  dispatch?: Dispatch;
37
38
  onContextIdentifierProvider: (_name: string, provider?: Promise<ContextIdentifierProvider>) => Promise<void>;
38
39
  setMediaProvider: (mediaProvider?: Promise<MediaProvider>) => Promise<void>;
@@ -56,6 +57,7 @@ export interface MediaPluginState {
56
57
  handleDrag: (dragState: 'enter' | 'leave') => void;
57
58
  updateElement(): void;
58
59
  setIsResizing(isResizing: boolean): void;
60
+ setResizingWidth(width: number): void;
59
61
  setView(view: EditorView): void;
60
62
  destroy(): void;
61
63
  updateAndDispatch(props: Partial<Pick<this, 'allowsUploads' | 'allUploadsFinished' | 'isFullscreen'>>): void;
@@ -1,7 +1,6 @@
1
1
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
2
2
  import type { IntlShape } from 'react-intl-next';
3
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
- import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
3
+ import type { ExtractInjectionAPI, FloatingToolbarConfig } from '@atlaskit/editor-common/types';
5
4
  import type { MediaFloatingToolbarOptions } from '../types';
6
5
  import type mediaPlugin from '../index';
7
6
  export declare const floatingToolbar: (state: EditorState, intl: IntlShape, options: MediaFloatingToolbarOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined) => FloatingToolbarConfig | undefined;
@@ -52,6 +52,7 @@ declare class ResizableMediaSingleNext extends React.Component<ResizableMediaSin
52
52
  private saveWrapper;
53
53
  private displayGuideline;
54
54
  private setIsResizing;
55
+ private updateSizeInPluginState;
55
56
  private calcMaxWidth;
56
57
  updateActiveGuidelines: (width: number | undefined, guidelines: GuidelineConfig[], guidelineSnapsReference: GuidelineSnapsReference) => void;
57
58
  roundPixelValue: (value: number) => number;
@@ -3,7 +3,7 @@ export declare const fullPageEditorWrapper: import("@emotion/react").SerializedS
3
3
  export declare const ScrollContainer: import("react").ForwardRefExoticComponent<Pick<{
4
4
  theme?: any;
5
5
  featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
6
- } & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "property" | "aria-hidden" | "size" | "aria-expanded" | "aria-label" | "className" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | keyof {
6
+ } & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "key" | "dir" | "color" | "content" | "height" | "width" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "media" | "property" | "aria-hidden" | "size" | "aria-expanded" | "aria-label" | "className" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | keyof {
7
7
  theme?: any;
8
8
  featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
9
9
  }> & import("react").RefAttributes<HTMLDivElement>>;