@atlaskit/editor-core 187.30.9 → 187.31.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 (92) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/index.js +2 -21
  3. package/dist/cjs/plugins/help-dialog/index.js +3 -6
  4. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
  5. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
  6. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +11 -9
  7. package/dist/cjs/plugins/quick-insert/commands.js +6 -10
  8. package/dist/cjs/plugins/quick-insert/index.js +49 -52
  9. package/dist/cjs/plugins/quick-insert/search.js +17 -61
  10. package/dist/cjs/plugins/quick-insert/ui/ModalElementBrowser/index.js +12 -5
  11. package/dist/cjs/plugins/selection/gap-cursor/utils/place-gap-cursor.js +2 -1
  12. package/dist/cjs/plugins/selection/gap-cursor/utils.js +17 -1
  13. package/dist/cjs/ui/ElementBrowser/InsertMenu.js +54 -54
  14. package/dist/cjs/utils/index.js +0 -32
  15. package/dist/cjs/version-wrapper.js +1 -1
  16. package/dist/es2019/index.js +7 -4
  17. package/dist/es2019/plugins/help-dialog/index.js +3 -6
  18. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
  19. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
  20. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +7 -3
  21. package/dist/es2019/plugins/quick-insert/commands.js +6 -9
  22. package/dist/es2019/plugins/quick-insert/index.js +48 -45
  23. package/dist/es2019/plugins/quick-insert/search.js +15 -42
  24. package/dist/es2019/plugins/quick-insert/ui/ModalElementBrowser/index.js +11 -4
  25. package/dist/es2019/plugins/selection/gap-cursor/utils/place-gap-cursor.js +3 -2
  26. package/dist/es2019/plugins/selection/gap-cursor/utils.js +14 -0
  27. package/dist/es2019/ui/ElementBrowser/InsertMenu.js +28 -25
  28. package/dist/es2019/utils/index.js +0 -25
  29. package/dist/es2019/version-wrapper.js +1 -1
  30. package/dist/esm/index.js +7 -4
  31. package/dist/esm/plugins/help-dialog/index.js +3 -6
  32. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
  33. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
  34. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +5 -3
  35. package/dist/esm/plugins/quick-insert/commands.js +6 -10
  36. package/dist/esm/plugins/quick-insert/index.js +49 -46
  37. package/dist/esm/plugins/quick-insert/search.js +15 -56
  38. package/dist/esm/plugins/quick-insert/ui/ModalElementBrowser/index.js +12 -5
  39. package/dist/esm/plugins/selection/gap-cursor/utils/place-gap-cursor.js +3 -2
  40. package/dist/esm/plugins/selection/gap-cursor/utils.js +14 -0
  41. package/dist/esm/ui/ElementBrowser/InsertMenu.js +54 -54
  42. package/dist/esm/utils/index.js +0 -31
  43. package/dist/esm/version-wrapper.js +1 -1
  44. package/dist/types/index.d.ts +6 -3
  45. package/dist/types/labs/next/presets/default.d.ts +32 -0
  46. package/dist/types/plugins/expand/ui/ExpandIconButton.d.ts +1 -1
  47. package/dist/types/plugins/extension/ui/Extension/Extension/index.d.ts +4 -4
  48. package/dist/types/plugins/help-dialog/index.d.ts +5 -1
  49. package/dist/types/plugins/insert-block/types.d.ts +3 -1
  50. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +3 -0
  51. package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.d.ts +3 -0
  52. package/dist/types/plugins/quick-insert/commands.d.ts +2 -2
  53. package/dist/types/plugins/quick-insert/index.d.ts +12 -9
  54. package/dist/types/plugins/quick-insert/search.d.ts +3 -5
  55. package/dist/types/plugins/selection/gap-cursor/utils.d.ts +1 -0
  56. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  57. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  58. package/dist/types/ui/ElementBrowser/InsertMenu.d.ts +1 -1
  59. package/dist/types/ui/ElementBrowser/components/StatelessElementBrowser.d.ts +1 -1
  60. package/dist/types/ui/ElementBrowser/types.d.ts +3 -0
  61. package/dist/types/utils/index.d.ts +0 -1
  62. package/dist/types-ts4.5/index.d.ts +6 -3
  63. package/dist/types-ts4.5/labs/next/presets/default.d.ts +32 -0
  64. package/dist/types-ts4.5/plugins/expand/ui/ExpandIconButton.d.ts +1 -1
  65. package/dist/types-ts4.5/plugins/extension/ui/Extension/Extension/index.d.ts +4 -4
  66. package/dist/types-ts4.5/plugins/help-dialog/index.d.ts +3 -1
  67. package/dist/types-ts4.5/plugins/insert-block/types.d.ts +3 -1
  68. package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +3 -0
  69. package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.d.ts +3 -0
  70. package/dist/types-ts4.5/plugins/quick-insert/commands.d.ts +2 -2
  71. package/dist/types-ts4.5/plugins/quick-insert/index.d.ts +12 -9
  72. package/dist/types-ts4.5/plugins/quick-insert/search.d.ts +3 -5
  73. package/dist/types-ts4.5/plugins/selection/gap-cursor/utils.d.ts +1 -0
  74. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  75. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  76. package/dist/types-ts4.5/ui/ElementBrowser/InsertMenu.d.ts +1 -1
  77. package/dist/types-ts4.5/ui/ElementBrowser/components/StatelessElementBrowser.d.ts +1 -1
  78. package/dist/types-ts4.5/ui/ElementBrowser/types.d.ts +3 -0
  79. package/dist/types-ts4.5/utils/index.d.ts +0 -1
  80. package/package.json +3 -6
  81. package/report.api.md +2 -30
  82. package/tmp/api-report-tmp.d.ts +2 -21
  83. package/dist/cjs/plugins/quick-insert/api.js +0 -23
  84. package/dist/cjs/plugins/quick-insert/types.js +0 -5
  85. package/dist/es2019/plugins/quick-insert/api.js +0 -14
  86. package/dist/es2019/plugins/quick-insert/types.js +0 -1
  87. package/dist/esm/plugins/quick-insert/api.js +0 -16
  88. package/dist/esm/plugins/quick-insert/types.js +0 -1
  89. package/dist/types/plugins/quick-insert/api.d.ts +0 -6
  90. package/dist/types/plugins/quick-insert/types.d.ts +0 -4
  91. package/dist/types-ts4.5/plugins/quick-insert/api.d.ts +0 -6
  92. package/dist/types-ts4.5/plugins/quick-insert/types.d.ts +0 -4
@@ -15,18 +15,16 @@ import { themed } from '@atlaskit/theme/components';
15
15
  import { DN50, N0, N30A, N60A } from '@atlaskit/theme/colors';
16
16
  import { IconCode, IconDate, IconDecision, IconDivider, IconExpand, IconPanel, IconQuote, IconStatus } from '@atlaskit/editor-common/quick-insert';
17
17
  import withOuterListeners from '../with-outer-listeners';
18
- import WithPluginState from '../WithPluginState';
19
- import { pluginKey } from '../../plugins/quick-insert/plugin-key';
20
- import { getFeaturedQuickInsertItems, searchQuickInsertItems } from '../../plugins/quick-insert/search';
21
- import { insertItem } from '../../plugins/quick-insert/commands';
22
18
  import ElementBrowser from './components/ElementBrowserLoader';
23
19
  import { ELEMENT_ITEM_HEIGHT } from './constants';
24
20
  var InsertMenu = function InsertMenu(_ref) {
21
+ var _pluginInjectionApi$d10, _pluginInjectionApi$d11, _pluginInjectionApi$d12, _pluginInjectionApi$d13;
25
22
  var editorView = _ref.editorView,
26
23
  dropdownItems = _ref.dropdownItems,
27
24
  showElementBrowserLink = _ref.showElementBrowserLink,
28
25
  onInsert = _ref.onInsert,
29
- toggleVisiblity = _ref.toggleVisiblity;
26
+ toggleVisiblity = _ref.toggleVisiblity,
27
+ pluginInjectionApi = _ref.pluginInjectionApi;
30
28
  var _useState = useState(0),
31
29
  _useState2 = _slicedToArray(_useState, 2),
32
30
  itemCount = _useState2[0],
@@ -58,62 +56,64 @@ var InsertMenu = function InsertMenu(_ref) {
58
56
  var quickInsertDropdownItems = dropdownItems.map(transform);
59
57
  var viewMoreItem = showElementBrowserLink ? quickInsertDropdownItems.pop() : undefined;
60
58
  var onInsertItem = useCallback(function (item) {
59
+ var _pluginInjectionApi$d;
61
60
  toggleVisiblity();
62
61
  if (!editorView.hasFocus()) {
63
62
  editorView.focus();
64
63
  }
65
- insertItem(item)(editorView.state, editorView.dispatch);
66
- }, [editorView, toggleVisiblity]);
67
- var getItems = useCallback(function (quickInsertState) {
68
- return function (query, category) {
69
- var result;
70
- /**
71
- * @warning The results if there is a query are not the same as the results if there is no query.
72
- * For example: If you have a typed panel and then select the panel item then it will call a different action
73
- * than is specified on the editor plugins quick insert
74
- * @see above transform function for more details.
75
- */
76
- if (query) {
77
- result = searchQuickInsertItems(quickInsertState, {})(query, category);
78
- } else {
79
- result = quickInsertDropdownItems.concat(getFeaturedQuickInsertItems(quickInsertState, {})());
80
- }
81
- setItemCount(result.length);
82
- return result;
83
- };
84
- }, [quickInsertDropdownItems]);
85
- var render = useCallback(function (_ref2) {
86
- var quickInsertState = _ref2.quickInsertState;
87
- return jsx(ElementBrowserWrapper, {
88
- handleClickOutside: toggleVisiblity,
89
- handleEscapeKeydown: toggleVisiblity,
90
- closeOnTab: true
91
- }, jsx(ElementBrowser, {
92
- mode: "inline",
93
- getItems: getItems(quickInsertState),
94
- emptyStateHandler: quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.emptyStateHandler,
95
- onInsertItem: onInsertItem,
96
- showSearch: true,
97
- showCategories: false
98
- // On page resize we want the InlineElementBrowser to show updated tools/overflow items
99
- ,
100
- key: quickInsertDropdownItems.length,
101
- viewMoreItem: viewMoreItem
102
- }));
103
- }, [getItems, onInsertItem, quickInsertDropdownItems.length, toggleVisiblity, viewMoreItem]);
64
+ pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d = pluginInjectionApi.dependencies.quickInsert) === null || _pluginInjectionApi$d === void 0 ? void 0 : _pluginInjectionApi$d.actions.insertItem(item)(editorView.state, editorView.dispatch);
65
+ }, [editorView, toggleVisiblity, pluginInjectionApi]);
66
+ var getItems = useCallback(function (query, category) {
67
+ var result;
68
+ /**
69
+ * @warning The results if there is a query are not the same as the results if there is no query.
70
+ * For example: If you have a typed panel and then select the panel item then it will call a different action
71
+ * than is specified on the editor plugins quick insert
72
+ * @see above transform function for more details.
73
+ */
74
+ if (query) {
75
+ var _pluginInjectionApi$d2, _pluginInjectionApi$d3, _pluginInjectionApi$d4, _pluginInjectionApi$d5;
76
+ pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.dependencies.core.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d2 = pluginInjectionApi.dependencies.quickInsert) === null || _pluginInjectionApi$d2 === void 0 ? void 0 : _pluginInjectionApi$d2.commands.search({
77
+ query: query,
78
+ category: category
79
+ }));
80
+ result = (_pluginInjectionApi$d3 = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d4 = pluginInjectionApi.dependencies.quickInsert) === null || _pluginInjectionApi$d4 === void 0 ? void 0 : (_pluginInjectionApi$d5 = _pluginInjectionApi$d4.sharedState.currentState()) === null || _pluginInjectionApi$d5 === void 0 ? void 0 : _pluginInjectionApi$d5.suggestions) !== null && _pluginInjectionApi$d3 !== void 0 ? _pluginInjectionApi$d3 : [];
81
+ } else {
82
+ var _pluginInjectionApi$d6, _pluginInjectionApi$d7, _pluginInjectionApi$d8, _pluginInjectionApi$d9;
83
+ pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.dependencies.core.actions.execute(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d6 = pluginInjectionApi.dependencies.quickInsert) === null || _pluginInjectionApi$d6 === void 0 ? void 0 : _pluginInjectionApi$d6.commands.search({
84
+ category: category,
85
+ featuredItems: true
86
+ }));
87
+ var featuredQuickInsertSuggestions = (_pluginInjectionApi$d7 = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d8 = pluginInjectionApi.dependencies.quickInsert) === null || _pluginInjectionApi$d8 === void 0 ? void 0 : (_pluginInjectionApi$d9 = _pluginInjectionApi$d8.sharedState.currentState()) === null || _pluginInjectionApi$d9 === void 0 ? void 0 : _pluginInjectionApi$d9.suggestions) !== null && _pluginInjectionApi$d7 !== void 0 ? _pluginInjectionApi$d7 : [];
88
+ result = quickInsertDropdownItems.concat(featuredQuickInsertSuggestions);
89
+ }
90
+ setItemCount(result.length);
91
+ return result;
92
+ }, [pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : pluginInjectionApi.dependencies.core.actions, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d10 = pluginInjectionApi.dependencies.quickInsert) === null || _pluginInjectionApi$d10 === void 0 ? void 0 : _pluginInjectionApi$d10.commands, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d11 = pluginInjectionApi.dependencies.quickInsert) === null || _pluginInjectionApi$d11 === void 0 ? void 0 : _pluginInjectionApi$d11.sharedState, quickInsertDropdownItems]);
93
+ var emptyStateHandler = pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$d12 = pluginInjectionApi.dependencies.quickInsert) === null || _pluginInjectionApi$d12 === void 0 ? void 0 : (_pluginInjectionApi$d13 = _pluginInjectionApi$d12.sharedState.currentState()) === null || _pluginInjectionApi$d13 === void 0 ? void 0 : _pluginInjectionApi$d13.emptyStateHandler;
104
94
  return jsx("div", {
105
95
  css: function css(theme) {
106
96
  return insertMenuWrapper(theme, itemCount);
107
97
  }
108
- }, jsx(WithPluginState, {
109
- plugins: {
110
- quickInsertState: pluginKey
111
- },
112
- render: render
113
- }));
98
+ }, jsx(ElementBrowserWrapper, {
99
+ handleClickOutside: toggleVisiblity,
100
+ handleEscapeKeydown: toggleVisiblity,
101
+ closeOnTab: true
102
+ }, jsx(ElementBrowser, {
103
+ mode: "inline",
104
+ getItems: getItems,
105
+ emptyStateHandler: emptyStateHandler,
106
+ onInsertItem: onInsertItem,
107
+ showSearch: true,
108
+ showCategories: false
109
+ // On page resize we want the InlineElementBrowser to show updated tools/overflow items
110
+ ,
111
+ key: quickInsertDropdownItems.length,
112
+ viewMoreItem: viewMoreItem
113
+ })));
114
114
  };
115
- var getSvgIconForItem = function getSvgIconForItem(_ref3) {
116
- var name = _ref3.name;
115
+ var getSvgIconForItem = function getSvgIconForItem(_ref2) {
116
+ var name = _ref2.name;
117
117
  var Icon = {
118
118
  codeblock: IconCode,
119
119
  panel: IconPanel,
@@ -128,8 +128,8 @@ var getSvgIconForItem = function getSvgIconForItem(_ref3) {
128
128
  label: ""
129
129
  }) : undefined;
130
130
  };
131
- var getInsertMenuHeight = function getInsertMenuHeight(_ref4) {
132
- var itemCount = _ref4.itemCount;
131
+ var getInsertMenuHeight = function getInsertMenuHeight(_ref3) {
132
+ var itemCount = _ref3.itemCount;
133
133
  // Figure based on visuals to exclude the searchbar, padding/margin, and the ViewMore item.
134
134
  var EXTRA_SPACE_EXCLUDING_ELEMENTLIST = 112;
135
135
  if (itemCount > 0 && itemCount < 6) {
@@ -113,37 +113,6 @@ export var isInsideBlockQuote = function isInsideBlockQuote(state) {
113
113
  var blockquote = state.schema.nodes.blockquote;
114
114
  return hasParentNodeOfType(blockquote)(state.selection);
115
115
  };
116
- export function dedupe() {
117
- var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
118
- var iteratee = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (p) {
119
- return p;
120
- };
121
- /**
122
- .,
123
- . _,'f----.._
124
- |\ ,-'"/ | ,'
125
- |,_ ,--. /
126
- /,-. ,'`. (_
127
- f o| o|__ "`-.
128
- ,-._.,--'_ `. _.,-`
129
- `"' ___.,'` j,-'
130
- `-.__.,--'
131
- Gotta go fast!
132
- */
133
-
134
- var seen = new Set();
135
- list.forEach(function (l) {
136
- return seen.add(iteratee(l));
137
- });
138
- return list.filter(function (l) {
139
- var it = iteratee(l);
140
- if (seen.has(it)) {
141
- seen.delete(it);
142
- return true;
143
- }
144
- return false;
145
- });
146
- }
147
116
  export { isTextSelection, isElementInTableCell, isLastItemMediaGroup, nonNullable } from '@atlaskit/editor-common/utils';
148
117
 
149
118
  /** Helper type for single arg function */
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.30.9";
2
+ export var version = "187.31.0";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -44,7 +44,6 @@ export { pluginKey as datePluginKey } from './plugins/date/pm-plugins/plugin-key
44
44
  export { commitStatusPicker, setStatusPickerAt, updateStatus, updateStatusWithAnalytics, removeStatus, } from './plugins/status/actions';
45
45
  export { typeAheadPluginKey } from './plugins/type-ahead';
46
46
  export type { TypeAheadPluginState } from './plugins/type-ahead';
47
- export { pluginKey as quickInsertPluginKey, memoProcessItems as processQuickInsertItems, } from './plugins/quick-insert';
48
47
  export type { TypeAheadItem } from '@atlaskit/editor-common/provider-factory';
49
48
  export type {
50
49
  /**
@@ -59,7 +58,12 @@ export { historyPluginKey } from './plugins/history';
59
58
  export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, } from '@atlaskit/editor-common/analytics';
60
59
  export type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
61
60
  export { setKeyboardHeight, setMobilePaddingTop, setIsExpanded, } from './plugins/mobile-dimensions/commands';
62
- export { setTextSelection, dedupe, getNodesCount, measurements } from './utils';
61
+ export { setTextSelection, getNodesCount, measurements } from './utils';
62
+ export {
63
+ /**
64
+ * @deprecated Use dedupe from @atlaskit/editor-common/utils instead
65
+ */
66
+ dedupe, } from '@atlaskit/editor-common/utils';
63
67
  export { ReactEditorView, BaseReactEditorView } from './create-editor';
64
68
  export { getDefaultPresetOptionsFromEditorProps } from './create-editor';
65
69
  export type { Command, EditorPlugin, EditorProps, EditorInstance, CommandDispatch, } from './types';
@@ -79,4 +83,3 @@ export type { PaletteColor } from './ui/ColorPalette/Palettes/type';
79
83
  export { DEFAULT_BORDER_COLOR } from './ui/ColorPalette/Palettes/common';
80
84
  export { default as messages, statusMessages, dateMessages } from './messages';
81
85
  export { createTypeAheadTools } from './plugins/type-ahead/api';
82
- export { createQuickInsertTools } from './plugins/quick-insert/api';
@@ -238,8 +238,24 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
238
238
  };
239
239
  }>, (config?: QuickInsertPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"quickInsert", {
240
240
  pluginConfiguration: QuickInsertPluginOptions | undefined;
241
+ sharedState: import("@atlaskit/editor-common/types").QuickInsertSharedState | null;
242
+ actions: {
243
+ insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("../../..").Command;
244
+ };
245
+ commands: {
246
+ search: import("../../../plugins/quick-insert/search").QuickInsertSearch;
247
+ openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
248
+ };
241
249
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"quickInsert", {
242
250
  pluginConfiguration: QuickInsertPluginOptions | undefined;
251
+ sharedState: import("@atlaskit/editor-common/types").QuickInsertSharedState | null;
252
+ actions: {
253
+ insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("../../..").Command;
254
+ };
255
+ commands: {
256
+ search: import("../../../plugins/quick-insert/search").QuickInsertSearch;
257
+ openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
258
+ };
243
259
  }>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"width", {
244
260
  sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
245
261
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"width", {
@@ -625,8 +641,24 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
625
641
  };
626
642
  }>, (config?: QuickInsertPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"quickInsert", {
627
643
  pluginConfiguration: QuickInsertPluginOptions | undefined;
644
+ sharedState: import("@atlaskit/editor-common/types").QuickInsertSharedState | null;
645
+ actions: {
646
+ insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("../../..").Command;
647
+ };
648
+ commands: {
649
+ search: import("../../../plugins/quick-insert/search").QuickInsertSearch;
650
+ openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
651
+ };
628
652
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"quickInsert", {
629
653
  pluginConfiguration: QuickInsertPluginOptions | undefined;
654
+ sharedState: import("@atlaskit/editor-common/types").QuickInsertSharedState | null;
655
+ actions: {
656
+ insertItem: (item: import("@atlaskit/editor-common/provider-factory").QuickInsertItem) => import("../../..").Command;
657
+ };
658
+ commands: {
659
+ search: import("../../../plugins/quick-insert/search").QuickInsertSearch;
660
+ openElementBrowserModal: import("@atlaskit/editor-common/types").EditorCommand;
661
+ };
630
662
  }>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"width", {
631
663
  sharedState: import("@atlaskit/editor-common/types").EditorContainerWidth | undefined;
632
664
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"width", {
@@ -15,7 +15,7 @@ export declare const withTooltip: (WrapperComponent: React.ElementType) => {
15
15
  render(): jsx.JSX.Element;
16
16
  context: any;
17
17
  setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<ExpandIconButtonWithLabelProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
18
- forceUpdate(callBack?: (() => void) | undefined): void;
18
+ forceUpdate(callback?: (() => void) | undefined): void;
19
19
  readonly props: Readonly<ExpandIconButtonWithLabelProps> & Readonly<{
20
20
  children?: React.ReactNode;
21
21
  }>;
@@ -22,7 +22,7 @@ export interface Props {
22
22
  * End workaround
23
23
  */
24
24
  declare const _default: {
25
- new (props: Readonly<Props>): {
25
+ new (props: Props | Readonly<Props>): {
26
26
  overflowContainer?: HTMLElement | null | undefined;
27
27
  container?: HTMLElement | undefined;
28
28
  shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver | undefined;
@@ -45,7 +45,7 @@ declare const _default: {
45
45
  render(): JSX.Element;
46
46
  context: any;
47
47
  setState<K extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
48
- forceUpdate(callBack?: (() => void) | undefined): void;
48
+ forceUpdate(callback?: (() => void) | undefined): void;
49
49
  readonly props: Readonly<Props> & Readonly<{
50
50
  children?: React.ReactNode;
51
51
  }>;
@@ -63,7 +63,7 @@ declare const _default: {
63
63
  componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
64
64
  UNSAFE_componentWillUpdate?(nextProps: Readonly<Props>, nextState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, nextContext: any): void;
65
65
  };
66
- new (props: Props, context?: any): {
66
+ new (props: Props, context: any): {
67
67
  overflowContainer?: HTMLElement | null | undefined;
68
68
  container?: HTMLElement | undefined;
69
69
  shadowObserver?: import("@atlaskit/editor-common/ui").ShadowObserver | undefined;
@@ -86,7 +86,7 @@ declare const _default: {
86
86
  render(): JSX.Element;
87
87
  context: any;
88
88
  setState<K_1 extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null, callback?: (() => void) | undefined): void;
89
- forceUpdate(callBack?: (() => void) | undefined): void;
89
+ forceUpdate(callback?: (() => void) | undefined): void;
90
90
  readonly props: Readonly<Props> & Readonly<{
91
91
  children?: React.ReactNode;
92
92
  }>;
@@ -1,9 +1,13 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
3
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
+ import type quickInsertPlugin from '../quick-insert';
4
5
  export declare function createPlugin(dispatch: Function, imageEnabled: boolean): SafePlugin<any>;
5
6
  declare const helpDialog: NextEditorPlugin<'helpDialog', {
6
- dependencies: [OptionalPlugin<typeof analyticsPlugin>];
7
+ dependencies: [
8
+ OptionalPlugin<typeof analyticsPlugin>,
9
+ OptionalPlugin<typeof quickInsertPlugin>
10
+ ];
7
11
  pluginConfiguration: boolean;
8
12
  }>;
9
13
  export default helpDialog;
@@ -7,6 +7,7 @@ import type { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
7
7
  import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
8
8
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
9
9
  import type mentionsPlugin from '../mentions';
10
+ import type quickInsertPlugin from '../quick-insert';
10
11
  export type InsertBlockPluginDependencies = [
11
12
  typeof featureFlagsPlugin,
12
13
  OptionalPlugin<typeof tablesPlugin>,
@@ -15,5 +16,6 @@ export type InsertBlockPluginDependencies = [
15
16
  OptionalPlugin<typeof analyticsPlugin>,
16
17
  OptionalPlugin<ImageUploadPlugin>,
17
18
  OptionalPlugin<typeof mentionsPlugin>,
18
- OptionalPlugin<EmojiPlugin>
19
+ OptionalPlugin<EmojiPlugin>,
20
+ OptionalPlugin<typeof quickInsertPlugin>
19
21
  ];
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  import type { BlockMenuItem } from './create-items';
4
4
  import type { OnInsert } from '../../../../ui/ElementBrowser/types';
5
+ import type { PluginInjectionAPIWithDependencies } from '@atlaskit/editor-common/types';
6
+ import type { InsertBlockPluginDependencies } from '../../types';
5
7
  type SimpleEventHandler<T> = (event?: T) => void;
6
8
  export interface BlockInsertElementBrowserProps {
7
9
  disabled: boolean;
@@ -20,6 +22,7 @@ export interface BlockInsertElementBrowserProps {
20
22
  onKeyDown?: React.KeyboardEventHandler;
21
23
  onInsert: OnInsert;
22
24
  togglePlusMenuVisibility: SimpleEventHandler<MouseEvent | KeyboardEvent>;
25
+ pluginInjectionApi: PluginInjectionAPIWithDependencies<InsertBlockPluginDependencies> | undefined;
23
26
  }
24
27
  export declare const BlockInsertElementBrowser: React.FC<BlockInsertElementBrowserProps>;
25
28
  export {};
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  import type { OnInsert } from '../../../../ui/ElementBrowser/types';
4
4
  import type { BlockMenuItem } from './create-items';
5
+ import type { PluginInjectionAPIWithDependencies } from '@atlaskit/editor-common/types';
6
+ import type { InsertBlockPluginDependencies } from '../../types';
5
7
  export interface BlockInsertMenuProps {
6
8
  disabled: boolean;
7
9
  editorView: EditorView;
@@ -23,5 +25,6 @@ export interface BlockInsertMenuProps {
23
25
  onOpenChange(attrs: any): void;
24
26
  togglePlusMenuVisibility(): void;
25
27
  onKeyDown?: React.KeyboardEventHandler;
28
+ pluginInjectionApi: PluginInjectionAPIWithDependencies<InsertBlockPluginDependencies> | undefined;
26
29
  }
27
30
  export declare const BlockInsertMenu: React.FC<BlockInsertMenuProps>;
@@ -1,5 +1,5 @@
1
1
  import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
2
- import type { Command } from '../../types';
3
- export declare const openElementBrowserModal: () => Command;
2
+ import type { EditorCommand, Command } from '@atlaskit/editor-common/types';
3
+ export declare const openElementBrowserModal: EditorCommand;
4
4
  export declare const closeElementBrowserModal: () => Command;
5
5
  export declare const insertItem: (item: QuickInsertItem) => Command;
@@ -1,14 +1,17 @@
1
- import type { IntlShape } from 'react-intl-next';
2
1
  import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
3
- import type { NextEditorPlugin } from '../../types';
4
- import { pluginKey } from './plugin-key';
5
- import type { QuickInsertHandler } from './types';
6
- import type { QuickInsertPluginOptions } from '@atlaskit/editor-common/types';
7
- export type { QuickInsertHandler, QuickInsertPluginOptions };
8
- export { pluginKey };
2
+ import type { NextEditorPlugin, Command } from '../../types';
3
+ import type { QuickInsertSearch } from './search';
4
+ import type { QuickInsertPluginOptions, QuickInsertSharedState, EditorCommand } from '@atlaskit/editor-common/types';
5
+ export type { QuickInsertPluginOptions };
9
6
  declare const quickInsertPlugin: NextEditorPlugin<'quickInsert', {
10
7
  pluginConfiguration: QuickInsertPluginOptions | undefined;
8
+ sharedState: QuickInsertSharedState | null;
9
+ actions: {
10
+ insertItem: (item: QuickInsertItem) => Command;
11
+ };
12
+ commands: {
13
+ search: QuickInsertSearch;
14
+ openElementBrowserModal: EditorCommand;
15
+ };
11
16
  }>;
12
17
  export default quickInsertPlugin;
13
- declare const processItems: (items: Array<QuickInsertHandler | QuickInsertItem>, intl: IntlShape, extendedActions?: Record<string, Function>) => QuickInsertItem[];
14
- export declare const memoProcessItems: typeof processItems;
@@ -1,5 +1,3 @@
1
- import type { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
2
- import type { QuickInsertPluginState, QuickInsertPluginOptions } from '@atlaskit/editor-common/types';
3
- export declare function find(query: string, items: QuickInsertItem[]): QuickInsertItem[];
4
- export declare const searchQuickInsertItems: (quickInsertState?: QuickInsertPluginState, options?: QuickInsertPluginOptions) => (query?: string, category?: string) => QuickInsertItem[];
5
- export declare const getFeaturedQuickInsertItems: ({ providedItems, lazyDefaultItems }: QuickInsertPluginState, options?: QuickInsertPluginOptions) => () => QuickInsertItem[];
1
+ import type { EditorCommand, QuickInsertSearchOptions } from '@atlaskit/editor-common/types';
2
+ export type QuickInsertSearch = (searchOptions: QuickInsertSearchOptions) => EditorCommand;
3
+ export declare const search: QuickInsertSearch;
@@ -5,3 +5,4 @@ export declare function getMediaNearPos(doc: PMNode, $pos: ResolvedPos, schema:
5
5
  export declare const isTextBlockNearPos: (doc: PMNode, schema: Schema, $pos: ResolvedPos, dir: number) => boolean;
6
6
  export declare function getLayoutModeFromTargetNode(node: PMNode): string;
7
7
  export declare const isIgnoredClick: (elem: HTMLElement) => boolean;
8
+ export declare const getComputedStyleForLayoutMode: (dom: HTMLElement, node: PMNode | undefined | null, style: CSSStyleDeclaration) => CSSStyleDeclaration;
@@ -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" | "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 {
6
+ } & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "key" | "dir" | "color" | "content" | "height" | "translate" | "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" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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>>;
@@ -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" | "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 ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
12
- declare const _default: React.ForwardRefExoticComponent<Pick<Props, "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 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" | "default" | "key" | "dir" | "color" | "content" | "height" | "translate" | "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" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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" | "default" | "key" | "dir" | "color" | "content" | "height" | "translate" | "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" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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
2
  import type { InsertMenuProps } from './types';
3
- declare const InsertMenu: ({ editorView, dropdownItems, showElementBrowserLink, onInsert, toggleVisiblity, }: InsertMenuProps) => jsx.JSX.Element;
3
+ declare const InsertMenu: ({ editorView, dropdownItems, showElementBrowserLink, onInsert, toggleVisiblity, pluginInjectionApi, }: 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" | "analyticsContext" | "items" | "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" | "emptyStateHandler" | "selectedCategory" | "searchTerm" | "onInsertItem" | "categories" | "onSelectCategory" | "onSearch" | "onSelectItem" | "viewMoreItem" | "showCategories" | "showSearch"> & React.RefAttributes<any>>>;
23
23
  export default MemoizedElementBrowser;