@atlaskit/editor-core 187.8.3 → 187.8.7

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 (151) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/create-editor/ReactEditorViewInternal.js +4 -5
  3. package/dist/cjs/plugins/annotation/commands/transform.js +2 -2
  4. package/dist/cjs/plugins/block-type/commands/block-type.js +2 -2
  5. package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/index.js +2 -2
  6. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +2 -2
  7. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -2
  8. package/dist/cjs/plugins/text-color/commands/toggle-color.js +2 -2
  9. package/dist/cjs/plugins/text-formatting/commands/text-formatting.js +9 -9
  10. package/dist/cjs/plugins/text-formatting/commands/transform-to-code.js +2 -2
  11. package/dist/cjs/plugins/text-formatting/pm-plugins/clear-formatting.js +2 -5
  12. package/dist/cjs/plugins/text-formatting/pm-plugins/input-rule.js +2 -2
  13. package/dist/cjs/plugins/text-formatting/pm-plugins/main.js +2 -1
  14. package/dist/cjs/plugins/text-formatting/ui/Toolbar/dropdown-menu.js +2 -2
  15. package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +2 -3
  16. package/dist/cjs/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +2 -2
  17. package/dist/cjs/ui/Appearance/Comment/Comment.js +5 -6
  18. package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -2
  19. package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -2
  20. package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +5 -5
  21. package/dist/cjs/ui/Dropdown/index.js +1 -2
  22. package/dist/cjs/ui/styles.js +3 -5
  23. package/dist/cjs/utils/commands.js +8 -121
  24. package/dist/cjs/utils/index.js +0 -13
  25. package/dist/cjs/version-wrapper.js +1 -1
  26. package/dist/cjs/version.json +1 -1
  27. package/dist/es2019/create-editor/ReactEditorViewInternal.js +3 -6
  28. package/dist/es2019/plugins/annotation/commands/transform.js +1 -1
  29. package/dist/es2019/plugins/block-type/commands/block-type.js +1 -1
  30. package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/index.js +1 -1
  31. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +3 -5
  32. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +1 -1
  33. package/dist/es2019/plugins/text-color/commands/toggle-color.js +1 -1
  34. package/dist/es2019/plugins/text-formatting/commands/text-formatting.js +1 -1
  35. package/dist/es2019/plugins/text-formatting/commands/transform-to-code.js +1 -1
  36. package/dist/es2019/plugins/text-formatting/pm-plugins/clear-formatting.js +2 -2
  37. package/dist/es2019/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
  38. package/dist/es2019/plugins/text-formatting/pm-plugins/main.js +2 -1
  39. package/dist/es2019/plugins/text-formatting/ui/Toolbar/dropdown-menu.js +1 -1
  40. package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +1 -2
  41. package/dist/es2019/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +1 -1
  42. package/dist/es2019/ui/Appearance/Comment/Comment.js +6 -5
  43. package/dist/es2019/ui/Appearance/Comment/Toolbar.js +3 -2
  44. package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +2 -3
  45. package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
  46. package/dist/es2019/ui/Dropdown/index.js +1 -2
  47. package/dist/es2019/ui/ElementBrowser/InsertMenu.js +1 -0
  48. package/dist/es2019/ui/styles.js +0 -5
  49. package/dist/es2019/utils/commands.js +1 -113
  50. package/dist/es2019/utils/index.js +0 -12
  51. package/dist/es2019/version-wrapper.js +1 -1
  52. package/dist/es2019/version.json +1 -1
  53. package/dist/esm/create-editor/ReactEditorViewInternal.js +3 -6
  54. package/dist/esm/plugins/annotation/commands/transform.js +1 -1
  55. package/dist/esm/plugins/block-type/commands/block-type.js +1 -1
  56. package/dist/esm/plugins/block-type/ui/ToolbarBlockType/index.js +1 -1
  57. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +3 -5
  58. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +1 -1
  59. package/dist/esm/plugins/text-color/commands/toggle-color.js +1 -1
  60. package/dist/esm/plugins/text-formatting/commands/text-formatting.js +1 -1
  61. package/dist/esm/plugins/text-formatting/commands/transform-to-code.js +1 -1
  62. package/dist/esm/plugins/text-formatting/pm-plugins/clear-formatting.js +2 -2
  63. package/dist/esm/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
  64. package/dist/esm/plugins/text-formatting/pm-plugins/main.js +2 -1
  65. package/dist/esm/plugins/text-formatting/ui/Toolbar/dropdown-menu.js +1 -1
  66. package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +1 -2
  67. package/dist/esm/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +1 -1
  68. package/dist/esm/ui/Appearance/Comment/Comment.js +4 -5
  69. package/dist/esm/ui/Appearance/Comment/Toolbar.js +3 -2
  70. package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +2 -3
  71. package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
  72. package/dist/esm/ui/Dropdown/index.js +1 -2
  73. package/dist/esm/ui/ElementBrowser/InsertMenu.js +1 -0
  74. package/dist/esm/ui/styles.js +2 -3
  75. package/dist/esm/utils/commands.js +7 -118
  76. package/dist/esm/utils/index.js +0 -12
  77. package/dist/esm/version-wrapper.js +1 -1
  78. package/dist/esm/version.json +1 -1
  79. package/dist/types/create-editor/ReactEditorViewInternal.d.ts +0 -1
  80. package/dist/types/plugins/block-type/commands/block-type.d.ts +1 -2
  81. package/dist/types/plugins/code-block/ide-ux/quote-handling.d.ts +1 -1
  82. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.d.ts +1 -1
  83. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/create-items.d.ts +1 -1
  84. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/item.d.ts +1 -1
  85. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/sort-items.d.ts +1 -1
  86. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +1 -1
  87. package/dist/types/plugins/text-color/commands/toggle-color.d.ts +1 -1
  88. package/dist/types/plugins/text-formatting/pm-plugins/clear-formatting.d.ts +2 -2
  89. package/dist/types/plugins/text-formatting/pm-plugins/smart-input-rule.d.ts +1 -1
  90. package/dist/types/types/editor-appearance-component.d.ts +4 -4
  91. package/dist/types/types/editor-instance.d.ts +1 -1
  92. package/dist/types/types/editor-props.d.ts +5 -8
  93. package/dist/types/ui/Appearance/Comment/Comment.d.ts +2 -2
  94. package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +1 -2
  95. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  96. package/dist/types/ui/ColorPickerButton/index.d.ts +1 -1
  97. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  98. package/dist/types/ui/ElementBrowser/InsertMenu.d.ts +1 -1
  99. package/dist/types/ui/ElementBrowser/components/StatelessElementBrowser.d.ts +1 -1
  100. package/dist/types/ui/ElementBrowser/types.d.ts +1 -1
  101. package/dist/types/ui/styles.d.ts +0 -1
  102. package/dist/types/utils/commands.d.ts +2 -12
  103. package/dist/types/utils/index.d.ts +0 -4
  104. package/dist/types-ts4.5/create-editor/ReactEditorViewInternal.d.ts +0 -1
  105. package/dist/types-ts4.5/plugins/block-type/commands/block-type.d.ts +1 -2
  106. package/dist/types-ts4.5/plugins/code-block/ide-ux/quote-handling.d.ts +1 -1
  107. package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.d.ts +1 -1
  108. package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/create-items.d.ts +1 -1
  109. package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/item.d.ts +1 -1
  110. package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/sort-items.d.ts +1 -1
  111. package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +1 -1
  112. package/dist/types-ts4.5/plugins/text-color/commands/toggle-color.d.ts +1 -1
  113. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/clear-formatting.d.ts +2 -2
  114. package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/smart-input-rule.d.ts +1 -1
  115. package/dist/types-ts4.5/types/editor-appearance-component.d.ts +4 -4
  116. package/dist/types-ts4.5/types/editor-instance.d.ts +1 -1
  117. package/dist/types-ts4.5/types/editor-props.d.ts +5 -8
  118. package/dist/types-ts4.5/ui/Appearance/Comment/Comment.d.ts +2 -2
  119. package/dist/types-ts4.5/ui/Appearance/Comment/Toolbar.d.ts +1 -2
  120. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  121. package/dist/types-ts4.5/ui/ColorPickerButton/index.d.ts +1 -1
  122. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  123. package/dist/types-ts4.5/ui/ElementBrowser/InsertMenu.d.ts +1 -1
  124. package/dist/types-ts4.5/ui/ElementBrowser/components/StatelessElementBrowser.d.ts +1 -1
  125. package/dist/types-ts4.5/ui/ElementBrowser/types.d.ts +1 -1
  126. package/dist/types-ts4.5/ui/styles.d.ts +0 -1
  127. package/dist/types-ts4.5/utils/commands.d.ts +2 -12
  128. package/dist/types-ts4.5/utils/index.d.ts +0 -4
  129. package/package.json +3 -3
  130. package/report.api.md +2 -10
  131. package/tmp/api-report-tmp.d.ts +2 -7
  132. package/dist/cjs/ui/Appearance/FullPage/messages.js +0 -25
  133. package/dist/cjs/ui/DropdownMenu/index.js +0 -31
  134. package/dist/cjs/ui/DropdownMenu/types.js +0 -5
  135. package/dist/cjs/ui/ToolbarArrowKeyNavigationProvider/index.js +0 -218
  136. package/dist/es2019/ui/Appearance/FullPage/messages.js +0 -18
  137. package/dist/es2019/ui/DropdownMenu/index.js +0 -18
  138. package/dist/es2019/ui/DropdownMenu/types.js +0 -1
  139. package/dist/es2019/ui/ToolbarArrowKeyNavigationProvider/index.js +0 -205
  140. package/dist/esm/ui/Appearance/FullPage/messages.js +0 -18
  141. package/dist/esm/ui/DropdownMenu/index.js +0 -20
  142. package/dist/esm/ui/DropdownMenu/types.js +0 -1
  143. package/dist/esm/ui/ToolbarArrowKeyNavigationProvider/index.js +0 -205
  144. package/dist/types/ui/Appearance/FullPage/messages.d.ts +0 -18
  145. package/dist/types/ui/DropdownMenu/index.d.ts +0 -3
  146. package/dist/types/ui/DropdownMenu/types.d.ts +0 -1
  147. package/dist/types/ui/ToolbarArrowKeyNavigationProvider/index.d.ts +0 -31
  148. package/dist/types-ts4.5/ui/Appearance/FullPage/messages.d.ts +0 -18
  149. package/dist/types-ts4.5/ui/DropdownMenu/index.d.ts +0 -3
  150. package/dist/types-ts4.5/ui/DropdownMenu/types.d.ts +0 -1
  151. package/dist/types-ts4.5/ui/ToolbarArrowKeyNavigationProvider/index.d.ts +0 -31
@@ -1,7 +1,5 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import { TextSelection, NodeSelection } from '@atlaskit/editor-prosemirror/state';
3
- import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
4
- import { transformSmartCharsMentionsAndEmojis } from '../plugins/text-formatting/commands/transform-to-code';
5
3
  import { GapCursorSelection } from '@atlaskit/editor-common/selection';
6
4
  import { isEmptyParagraph } from '@atlaskit/editor-common/utils';
7
5
  var isEmptySelectionAtStart = function isEmptySelectionAtStart(state) {
@@ -60,115 +58,6 @@ function findCutBefore($pos) {
60
58
  }
61
59
  return null;
62
60
  }
63
- var applyMarkOnRange = function applyMarkOnRange(from, to, removeMark, mark, tr) {
64
- var schema = tr.doc.type.schema;
65
- var code = schema.marks.code;
66
- if (mark.type === code) {
67
- transformSmartCharsMentionsAndEmojis(from, to, tr);
68
- }
69
- tr.doc.nodesBetween(tr.mapping.map(from), tr.mapping.map(to), function (node, pos) {
70
- if (!node.isText) {
71
- return true;
72
- }
73
-
74
- // This is an issue when the user selects some text.
75
- // We need to check if the current node position is less than the range selection from.
76
- // If it’s true, that means we should apply the mark using the range selection,
77
- // not the current node position.
78
- var nodeBetweenFrom = Math.max(pos, tr.mapping.map(from));
79
- var nodeBetweenTo = Math.min(pos + node.nodeSize, tr.mapping.map(to));
80
- if (removeMark) {
81
- tr.removeMark(nodeBetweenFrom, nodeBetweenTo, mark);
82
- } else {
83
- tr.addMark(nodeBetweenFrom, nodeBetweenTo, mark);
84
- }
85
- return true;
86
- });
87
- return tr;
88
- };
89
- var entireSelectionContainsMark = function entireSelectionContainsMark(mark, doc, fromPos, toPos) {
90
- var onlyContainsMark = true;
91
- doc.nodesBetween(fromPos, toPos, function (node) {
92
- // Skip recursion once we've found text which doesn't include the mark
93
- if (!onlyContainsMark) {
94
- return false;
95
- }
96
- if (node.isText) {
97
- onlyContainsMark && (onlyContainsMark = mark.isInSet(node.marks));
98
- }
99
- });
100
- return onlyContainsMark;
101
- };
102
- var toggleMarkInRange = function toggleMarkInRange(mark) {
103
- return function (state, dispatch) {
104
- var tr = state.tr;
105
- if (state.selection instanceof CellSelection) {
106
- var removeMark = true;
107
- var cells = [];
108
- state.selection.forEachCell(function (cell, cellPos) {
109
- cells.push({
110
- node: cell,
111
- pos: cellPos
112
- });
113
- var from = cellPos;
114
- var to = cellPos + cell.nodeSize;
115
- removeMark && (removeMark = entireSelectionContainsMark(mark, state.doc, from, to));
116
- });
117
- for (var i = cells.length - 1; i >= 0; i--) {
118
- var cell = cells[i];
119
- var from = cell.pos;
120
- var to = from + cell.node.nodeSize;
121
- applyMarkOnRange(from, to, removeMark, mark, tr);
122
- }
123
- } else {
124
- var _state$selection3 = state.selection,
125
- $from = _state$selection3.$from,
126
- $to = _state$selection3.$to;
127
- // We decide to remove the mark only if the entire selection contains the mark
128
- // Examples with *bold* text
129
- // Scenario 1: Selection contains both bold and non-bold text -> bold entire selection
130
- // Scenario 2: Selection contains only bold text -> un-bold entire selection
131
- // Scenario 3: Selection contains no bold text -> bold entire selection
132
- var _removeMark = entireSelectionContainsMark(mark, state.doc, $from.pos, $to.pos);
133
- applyMarkOnRange($from.pos, $to.pos, _removeMark, mark, tr);
134
- }
135
- if (tr.docChanged) {
136
- if (dispatch) {
137
- dispatch(tr);
138
- }
139
- return true;
140
- }
141
- return false;
142
- };
143
- };
144
-
145
- /**
146
- * A wrapper over the default toggleMark, except when we have a selection
147
- * we only toggle marks on text nodes rather than inline nodes.
148
- * @param markType
149
- * @param attrs
150
- */
151
- var toggleMark = function toggleMark(markType, attrs) {
152
- return function (state, dispatch) {
153
- var mark = markType.create(attrs);
154
-
155
- // For cursor selections we can use the default behaviour.
156
- if (state.selection instanceof TextSelection && state.selection.$cursor) {
157
- var tr = state.tr;
158
- if (mark.isInSet(state.storedMarks || state.selection.$cursor.marks())) {
159
- tr.removeStoredMark(mark);
160
- } else {
161
- tr.addStoredMark(mark);
162
- }
163
- if (dispatch) {
164
- dispatch(tr);
165
- return true;
166
- }
167
- return false;
168
- }
169
- return toggleMarkInRange(mark)(state, dispatch);
170
- };
171
- };
172
61
  var withScrollIntoView = function withScrollIntoView(command) {
173
62
  return function (state, dispatch, view) {
174
63
  return command(state, function (tr) {
@@ -261,12 +150,12 @@ var selectNode = function selectNode(pos) {
261
150
  */
262
151
  var deleteEmptyParagraphAndMoveBlockUp = function deleteEmptyParagraphAndMoveBlockUp(canNextNodeMoveUp) {
263
152
  return function (state, dispatch, view) {
264
- var _state$selection4 = state.selection,
265
- _state$selection4$$fr = _state$selection4.$from,
266
- pos = _state$selection4$$fr.pos,
267
- parent = _state$selection4$$fr.parent,
268
- $head = _state$selection4.$head,
269
- empty = _state$selection4.empty,
153
+ var _state$selection3 = state.selection,
154
+ _state$selection3$$fr = _state$selection3.$from,
155
+ pos = _state$selection3$$fr.pos,
156
+ parent = _state$selection3$$fr.parent,
157
+ $head = _state$selection3.$head,
158
+ empty = _state$selection3.empty,
270
159
  tr = state.tr,
271
160
  doc = state.doc;
272
161
  var _walkNextNode = walkNextNode($head),
@@ -282,4 +171,4 @@ var deleteEmptyParagraphAndMoveBlockUp = function deleteEmptyParagraphAndMoveBlo
282
171
  return false;
283
172
  };
284
173
  };
285
- export { isEmptySelectionAtStart, isEmptySelectionAtEnd, isFirstChildOfParent, isNthParentOfType, findCutBefore, toggleMark, applyMarkOnRange, withScrollIntoView, walkNextNode, walkPrevNode, insertContentDeleteRange, selectNode, deleteEmptyParagraphAndMoveBlockUp };
174
+ export { isEmptySelectionAtStart, isEmptySelectionAtEnd, isFirstChildOfParent, isNthParentOfType, findCutBefore, withScrollIntoView, walkNextNode, walkPrevNode, insertContentDeleteRange, selectNode, deleteEmptyParagraphAndMoveBlockUp };
@@ -284,18 +284,6 @@ export var isInsideBlockQuote = function isInsideBlockQuote(state) {
284
284
  var blockquote = state.schema.nodes.blockquote;
285
285
  return hasParentNodeOfType(blockquote)(state.selection);
286
286
  };
287
- export function filterChildrenBetween(doc, from, to, predicate) {
288
- var results = [];
289
- doc.nodesBetween(from, to, function (node, pos, parent) {
290
- if (predicate(node, pos, parent)) {
291
- results.push({
292
- node: node,
293
- pos: pos
294
- });
295
- }
296
- });
297
- return results;
298
- }
299
287
  export function dedupe() {
300
288
  var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
301
289
  var iteratee = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (p) {
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.8.3";
2
+ export var version = "187.8.7";
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.8.3",
3
+ "version": "187.8.7",
4
4
  "sideEffects": false
5
5
  }
@@ -57,7 +57,6 @@ interface CreateEditorStateOptions {
57
57
  resetting?: boolean;
58
58
  selectionAtStart?: boolean;
59
59
  }
60
- export declare const EDIT_AREA_ID = "ak-editor-textarea";
61
60
  export declare class ReactEditorView<T = {}> extends React.Component<EditorViewProps & WrappedComponentProps & T, {}, EditorReactContext> {
62
61
  view?: EditorView;
63
62
  eventDispatcher: EventDispatcher;
@@ -4,8 +4,7 @@ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
4
4
  import type { NodeType } from '@atlaskit/editor-prosemirror/model';
5
5
  import type { Command } from '../../../types';
6
6
  import type { HeadingLevelsAndNormalText } from '@atlaskit/editor-common/types';
7
- import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
8
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
7
+ import type { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
9
8
  export type InputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
10
9
  export declare function setBlockType(name: string): Command;
11
10
  export declare function setBlockTypeWithAnalytics(name: string, inputMethod: InputMethod): Command;
@@ -6,7 +6,7 @@ export declare const QUOTE_MAP: {
6
6
  export type QuoteMapKey = keyof typeof QUOTE_MAP;
7
7
  export declare const shouldAutoCloseQuote: (before: string, after: string) => boolean;
8
8
  export declare const getAutoClosingQuoteInfo: (before: string, after: string) => {
9
- left: "\"" | "'" | "`" | undefined;
9
+ left: "'" | "\"" | "`" | undefined;
10
10
  right: string | undefined;
11
11
  hasTrailingMatchingQuote: boolean;
12
12
  };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { BlockMenuItem } from './create-items';
2
+ import type { BlockMenuItem } from './create-items';
3
3
  export interface BlockInsertMenuLegacyProps {
4
4
  disabled: boolean;
5
5
  spacing: 'none' | 'default';
@@ -3,7 +3,7 @@ import type { WrappedComponentProps } from 'react-intl-next';
3
3
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { EmojiProvider } from '@atlaskit/emoji/resource';
5
5
  import type { BlockType } from '../../../block-type/types';
6
- import type { MenuItem } from '../../../../ui/DropdownMenu/types';
6
+ import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
7
7
  import type { MacroProvider } from '../../../macro';
8
8
  export interface CreateItemsConfig {
9
9
  isTypeAheadAllowed?: boolean;
@@ -1,6 +1,6 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { MenuItem } from '../../../../ui/DropdownMenu/types';
3
+ import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
4
4
  export interface CreateInit {
5
5
  content: string;
6
6
  disabled: boolean;
@@ -1,2 +1,2 @@
1
- import { MenuItem } from '../../../../ui/DropdownMenu/types';
1
+ import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
2
2
  export declare const sortItems: (items: MenuItem[]) => MenuItem[];
@@ -4,7 +4,7 @@ import type { EditorActionsOptions as EditorActions, FeatureFlags, ExtractInject
4
4
  import type { EmojiProvider } from '@atlaskit/emoji';
5
5
  import type { BlockType } from '../../../block-type/types';
6
6
  import type { MacroProvider } from '@atlaskit/editor-common/provider-factory';
7
- import type { MenuItem } from '../../../../ui/DropdownMenu/types';
7
+ import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
8
8
  import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
9
9
  import type { BlockMenuItem } from './create-items';
10
10
  import type insertBlockPlugin from '../../index';
@@ -1,2 +1,2 @@
1
- import { Command } from '../../../types';
1
+ import type { Command } from '../../../types';
2
2
  export declare const toggleColor: (color: string) => Command;
@@ -1,8 +1,8 @@
1
- import * as safePlugin from '@atlaskit/editor-common/safe-plugin';
1
+ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
4
4
  export interface ClearFormattingState {
5
5
  formattingIsPresent?: boolean;
6
6
  }
7
7
  export declare const pluginKey: PluginKey<ClearFormattingState>;
8
- export declare const plugin: (dispatch: Dispatch) => safePlugin.SafePlugin<ClearFormattingState>;
8
+ export declare const plugin: (dispatch: Dispatch) => SafePlugin<ClearFormattingState>;
@@ -1,3 +1,3 @@
1
- import type { FeatureFlags } from '../../../types/feature-flags';
1
+ import type { FeatureFlags } from '@atlaskit/editor-common/types';
2
2
  declare const _default: (featureFlags: FeatureFlags) => import("@atlaskit/editor-common/safe-plugin").SafePlugin<any>;
3
3
  export default _default;
@@ -1,5 +1,4 @@
1
- import type { RefObject } from 'react';
2
- import type { ReactElement } from 'react';
1
+ import type { RefObject, ReactElement } from 'react';
3
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
3
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
5
4
  import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
@@ -8,9 +7,10 @@ import type { ReactHookFactory } from '@atlaskit/editor-common/types';
8
7
  import type EditorActions from '../actions';
9
8
  import type { EventDispatcher } from '../event-dispatcher';
10
9
  import type { CollabEditOptions } from '../plugins/collab-edit/types';
11
- import type { PrimaryToolbarComponents, ReactComponents, UseStickyToolbarType } from '../types/editor-props';
10
+ import type { PrimaryToolbarComponents, ReactComponents } from '../types/editor-props';
11
+ import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
12
12
  import type { UIComponentFactory } from '../types/ui-components';
13
- import type { MenuItem } from '../ui/DropdownMenu/types';
13
+ import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
14
14
  import type { ToolbarUIComponentFactory } from '../ui/Toolbar/types';
15
15
  import type { EditorAppearance } from './editor-appearance';
16
16
  import type { FeatureFlags } from './feature-flags';
@@ -1,7 +1,7 @@
1
1
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
2
  import type { OnEditorViewStateUpdated } from '../create-editor/get-plugins';
3
3
  import type { EventDispatcher } from '../event-dispatcher';
4
- import type { MenuItem } from '../ui/DropdownMenu/types';
4
+ import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
5
5
  import type { ToolbarUIComponentFactory } from '../ui/Toolbar/types';
6
6
  import type { UIComponentFactory } from './ui-components';
7
7
  export interface EditorInstance {
@@ -1,4 +1,4 @@
1
- import type { ReactElement, RefObject } from 'react';
1
+ import type { ReactElement } from 'react';
2
2
  import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { ActivityProvider } from '@atlaskit/activity-provider';
@@ -6,8 +6,7 @@ import type { CardOptions } from '@atlaskit/editor-common/card';
6
6
  import type { ExtensionHandlers, ExtensionProvider } from '@atlaskit/editor-common/extensions';
7
7
  import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
8
8
  import type { ContextIdentifierProvider, Providers, SearchProvider } from '@atlaskit/editor-common/provider-factory';
9
- import type { AllEditorPresetPluginTypes, Transformer } from '@atlaskit/editor-common/types';
10
- import type { LinkingOptions } from '@atlaskit/editor-common/types';
9
+ import type { AllEditorPresetPluginTypes, Transformer, LinkingOptions } from '@atlaskit/editor-common/types';
11
10
  import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
12
11
  import type { PluginConfig as TablesPluginConfig } from '@atlaskit/editor-plugin-table/types';
13
12
  import type { MentionProvider } from '@atlaskit/mention/resource';
@@ -27,13 +26,15 @@ import type { PlaceholderTextOptions } from '../plugins/placeholder-text/types';
27
26
  import type { QuickInsertOptions } from '../plugins/quick-insert/types';
28
27
  import type { TextColorPluginConfig } from '../plugins/text-color/pm-plugins/main';
29
28
  import type { TextFormattingOptions } from '../plugins/text-formatting/types';
30
- import type { MenuItem } from '../ui/DropdownMenu/types';
29
+ import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
31
30
  import type { EditorAppearance } from './editor-appearance';
32
31
  import type { EditorOnChangeHandler } from './editor-onchange';
33
32
  import type { EditorPlugin } from './editor-plugin';
34
33
  import type { EmptyStateHandler } from './empty-state-handler';
35
34
  import type { ExtensionConfig } from './extension-config';
36
35
  import type { PerformanceTracking } from './performance-tracking';
36
+ import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
37
+ export type { UseStickyToolbarType };
37
38
  export type ReactComponents = ReactElement<any> | ReactElement<any>[];
38
39
  type ExtensionProviders = (ExtensionProvider | Promise<ExtensionProvider>)[];
39
40
  type ExtensionProvidersWithEditorAction = (editorActions?: EditorActions) => ExtensionProviders;
@@ -52,9 +53,6 @@ export type BeforeAndAfterToolbarComponents = {
52
53
  after: ReactComponents;
53
54
  };
54
55
  export type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactComponents;
55
- export type UseStickyToolbarType = boolean | RefObject<HTMLElement> | {
56
- offsetTop: number;
57
- };
58
56
  interface EditorBaseProps {
59
57
  appearance?: EditorAppearance;
60
58
  contentComponents?: ReactComponents;
@@ -257,4 +255,3 @@ export interface EditorPluginFeatureProps {
257
255
  extensionHandlers?: ExtensionHandlers;
258
256
  allowTextColor?: boolean | TextColorPluginConfig;
259
257
  }
260
- export {};
@@ -1,7 +1,7 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { EditorAppearanceComponentProps } from '../../../types';
4
- import { WrappedComponentProps } from 'react-intl-next';
3
+ import type { EditorAppearanceComponentProps } from '../../../types';
4
+ import type { WrappedComponentProps } from 'react-intl-next';
5
5
  export declare const CommentEditorWithIntl: React.FC<import("react-intl-next").WithIntlProps<EditorAppearanceComponentProps & WrappedComponentProps<"intl">>> & {
6
6
  WrappedComponent: React.ComponentType<EditorAppearanceComponentProps & WrappedComponentProps<"intl">>;
7
7
  };
@@ -1,6 +1,5 @@
1
- /** @jsx jsx */
2
1
  import React from 'react';
3
- import { UseStickyToolbarType } from '../../../types/editor-props';
2
+ import type { UseStickyToolbarType } from '@atlaskit/editor-common/ui';
4
3
  export declare const TableControlsPadding = 20;
5
4
  type MainToolbarProps = {
6
5
  useStickyToolbar?: UseStickyToolbarType;
@@ -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" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "default" | "action" | "disabled" | "children" | "property" | "aria-hidden" | "size" | "start" | "list" | "className" | "role" | "id" | "wrap" | "step" | "accessKey" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "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-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "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" | "multiple" | "target" | "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" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "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" | "useMap" | "wmode" | keyof {
6
+ } & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "default" | "action" | "disabled" | "children" | "property" | "aria-hidden" | "size" | "start" | "aria-label" | "aria-expanded" | "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" | "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>>;
@@ -25,5 +25,5 @@ type Props = WithAnalyticsEventsProps & {
25
25
  */
26
26
  skipFocusButtonAfterPick?: boolean;
27
27
  };
28
- declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "title" | "key" | "onChange" | "size" | "currentColor" | "cols" | "analyticsContext" | "alignX" | "colorPalette" | "placement" | "mountPoint" | "setDisableParentScroll" | "hexToPaletteColor" | "showSomewhatSemanticTooltips" | "paletteColorTooltipMessages" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
28
+ declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "title" | "key" | "onChange" | "size" | "cols" | "analyticsContext" | "currentColor" | "alignX" | "colorPalette" | "placement" | "mountPoint" | "setDisableParentScroll" | "hexToPaletteColor" | "showSomewhatSemanticTooltips" | "paletteColorTooltipMessages" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
29
29
  export default _default;
@@ -8,6 +8,6 @@ type ContentStylesProps = {
8
8
  featureFlags?: FeatureFlags;
9
9
  };
10
10
  type Props = ContentStylesProps & React.HTMLProps<HTMLDivElement>;
11
- export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "default" | "action" | "disabled" | "children" | "property" | "aria-hidden" | "size" | "start" | "list" | "className" | "role" | "id" | "wrap" | "step" | "accessKey" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "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-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "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" | "multiple" | "target" | "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" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "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" | "useMap" | "wmode" | keyof ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
12
- declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "default" | "action" | "disabled" | "children" | "property" | "aria-hidden" | "size" | "start" | "list" | "className" | "role" | "id" | "wrap" | "step" | "accessKey" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "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-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "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" | "multiple" | "target" | "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" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "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" | "useMap" | "wmode" | keyof ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
11
+ export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "default" | "action" | "disabled" | "children" | "property" | "aria-hidden" | "size" | "start" | "aria-label" | "aria-expanded" | "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" | "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 ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
12
+ declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "key" | "dir" | "color" | "content" | "height" | "width" | "media" | "mediaGroup" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "default" | "action" | "disabled" | "children" | "property" | "aria-hidden" | "size" | "start" | "aria-label" | "aria-expanded" | "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" | "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 ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
13
13
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { jsx } from '@emotion/react';
2
- import { InsertMenuProps } from './types';
2
+ import type { InsertMenuProps } from './types';
3
3
  declare const InsertMenu: ({ editorView, dropdownItems, showElementBrowserLink, onInsert, toggleVisiblity, }: InsertMenuProps) => jsx.JSX.Element;
4
4
  export default InsertMenu;
@@ -19,5 +19,5 @@ export type StatelessElementBrowserProps = {
19
19
  emptyStateHandler?: EmptyStateHandler;
20
20
  viewMoreItem?: QuickInsertItem;
21
21
  } & WithAnalyticsEventsProps;
22
- declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Omit<StatelessElementBrowserProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "mode" | "items" | "analyticsContext" | "categories" | "emptyStateHandler" | "selectedCategory" | "searchTerm" | "onInsertItem" | "onSelectCategory" | "onSearch" | "onSelectItem" | "viewMoreItem" | "showCategories" | "showSearch"> & React.RefAttributes<any>>>;
22
+ declare const MemoizedElementBrowser: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<Omit<StatelessElementBrowserProps, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "mode" | "analyticsContext" | "items" | "categories" | "emptyStateHandler" | "selectedCategory" | "searchTerm" | "onInsertItem" | "onSelectCategory" | "onSearch" | "onSelectItem" | "viewMoreItem" | "showCategories" | "showSearch"> & React.RefAttributes<any>>>;
23
23
  export default MemoizedElementBrowser;
@@ -1,7 +1,7 @@
1
1
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
2
2
  import type { Transaction } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { BlockMenuItem } from '../../plugins/insert-block/ui/ToolbarInsertBlock/create-items';
4
- import type { MenuItem } from '../DropdownMenu/types';
4
+ import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
5
5
  type SimpleEventHandler<T> = (event?: T) => void;
6
6
  export type Category = {
7
7
  title: string;