@atlaskit/editor-core 184.0.4 → 185.0.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 (189) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/dist/cjs/create-editor/feature-flags-from-props.js +1 -2
  3. package/dist/cjs/editor-next/index.js +41 -34
  4. package/dist/cjs/editor.js +30 -269
  5. package/dist/cjs/i18n/en_ZZ.js +32 -6
  6. package/dist/cjs/index.js +0 -7
  7. package/dist/cjs/labs/next/presets/default.js +2 -1
  8. package/dist/cjs/plugins/base/index.js +0 -12
  9. package/dist/cjs/plugins/card/nodeviews/blockCard.js +7 -0
  10. package/dist/cjs/plugins/card/nodeviews/embedCard.js +7 -0
  11. package/dist/cjs/plugins/card/nodeviews/inlineCard.js +5 -1
  12. package/dist/cjs/plugins/card/pm-plugins/doc.js +1 -2
  13. package/dist/cjs/plugins/card/toolbar.js +11 -9
  14. package/dist/cjs/plugins/card/ui/LinkToolbarAppearance.js +4 -4
  15. package/dist/cjs/plugins/code-block/index.js +7 -5
  16. package/dist/cjs/plugins/code-block/toolbar.js +5 -5
  17. package/dist/cjs/plugins/copy-button/commands.js +2 -3
  18. package/dist/cjs/plugins/copy-button/toolbar.js +7 -8
  19. package/dist/cjs/plugins/expand/index.js +1 -1
  20. package/dist/cjs/plugins/expand/toolbar.js +40 -39
  21. package/dist/cjs/plugins/extension/index.js +1 -1
  22. package/dist/cjs/plugins/extension/toolbar.js +5 -5
  23. package/dist/cjs/plugins/floating-toolbar/index.js +3 -2
  24. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +2 -4
  25. package/dist/cjs/plugins/layout/index.js +8 -4
  26. package/dist/cjs/plugins/layout/toolbar.js +5 -6
  27. package/dist/cjs/plugins/media/toolbar/index.js +31 -24
  28. package/dist/cjs/plugins/panel/index.js +2 -1
  29. package/dist/cjs/plugins/panel/toolbar.js +7 -7
  30. package/dist/cjs/plugins/placeholder-text/index.js +7 -5
  31. package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +19 -0
  32. package/dist/cjs/ui/CollapsedEditor/index.js +1 -2
  33. package/dist/cjs/ui/ElementBrowser/components/StatelessElementBrowser.js +5 -3
  34. package/dist/cjs/version-wrapper.js +1 -1
  35. package/dist/cjs/version.json +1 -1
  36. package/dist/es2019/create-editor/feature-flags-from-props.js +1 -2
  37. package/dist/es2019/editor-next/index.js +39 -30
  38. package/dist/es2019/editor.js +29 -232
  39. package/dist/es2019/i18n/en_ZZ.js +32 -6
  40. package/dist/es2019/index.js +1 -2
  41. package/dist/es2019/labs/next/presets/default.js +2 -1
  42. package/dist/es2019/plugins/base/index.js +0 -7
  43. package/dist/es2019/plugins/card/nodeviews/blockCard.js +8 -0
  44. package/dist/es2019/plugins/card/nodeviews/embedCard.js +8 -0
  45. package/dist/es2019/plugins/card/nodeviews/inlineCard.js +5 -1
  46. package/dist/es2019/plugins/card/pm-plugins/doc.js +1 -2
  47. package/dist/es2019/plugins/card/toolbar.js +8 -6
  48. package/dist/es2019/plugins/card/ui/LinkToolbarAppearance.js +2 -2
  49. package/dist/es2019/plugins/code-block/index.js +7 -5
  50. package/dist/es2019/plugins/code-block/toolbar.js +5 -6
  51. package/dist/es2019/plugins/copy-button/commands.js +2 -3
  52. package/dist/es2019/plugins/copy-button/toolbar.js +7 -8
  53. package/dist/es2019/plugins/expand/index.js +1 -1
  54. package/dist/es2019/plugins/expand/toolbar.js +5 -6
  55. package/dist/es2019/plugins/extension/index.js +1 -1
  56. package/dist/es2019/plugins/extension/toolbar.js +5 -6
  57. package/dist/es2019/plugins/floating-toolbar/index.js +3 -2
  58. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +2 -4
  59. package/dist/es2019/plugins/layout/index.js +8 -5
  60. package/dist/es2019/plugins/layout/toolbar.js +5 -6
  61. package/dist/es2019/plugins/media/toolbar/index.js +35 -24
  62. package/dist/es2019/plugins/panel/index.js +2 -2
  63. package/dist/es2019/plugins/panel/toolbar.js +7 -8
  64. package/dist/es2019/plugins/placeholder-text/index.js +7 -5
  65. package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +21 -0
  66. package/dist/es2019/ui/CollapsedEditor/index.js +1 -2
  67. package/dist/es2019/ui/ElementBrowser/components/StatelessElementBrowser.js +5 -3
  68. package/dist/es2019/version-wrapper.js +1 -1
  69. package/dist/es2019/version.json +1 -1
  70. package/dist/esm/create-editor/feature-flags-from-props.js +1 -2
  71. package/dist/esm/editor-next/index.js +42 -33
  72. package/dist/esm/editor.js +29 -270
  73. package/dist/esm/i18n/en_ZZ.js +32 -6
  74. package/dist/esm/index.js +1 -2
  75. package/dist/esm/labs/next/presets/default.js +2 -1
  76. package/dist/esm/plugins/base/index.js +0 -9
  77. package/dist/esm/plugins/card/nodeviews/blockCard.js +7 -0
  78. package/dist/esm/plugins/card/nodeviews/embedCard.js +7 -0
  79. package/dist/esm/plugins/card/nodeviews/inlineCard.js +5 -1
  80. package/dist/esm/plugins/card/pm-plugins/doc.js +1 -2
  81. package/dist/esm/plugins/card/toolbar.js +7 -6
  82. package/dist/esm/plugins/card/ui/LinkToolbarAppearance.js +2 -2
  83. package/dist/esm/plugins/code-block/index.js +7 -5
  84. package/dist/esm/plugins/code-block/toolbar.js +5 -5
  85. package/dist/esm/plugins/copy-button/commands.js +2 -3
  86. package/dist/esm/plugins/copy-button/toolbar.js +7 -8
  87. package/dist/esm/plugins/expand/index.js +1 -1
  88. package/dist/esm/plugins/expand/toolbar.js +40 -39
  89. package/dist/esm/plugins/extension/index.js +1 -1
  90. package/dist/esm/plugins/extension/toolbar.js +5 -5
  91. package/dist/esm/plugins/floating-toolbar/index.js +3 -2
  92. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +2 -4
  93. package/dist/esm/plugins/layout/index.js +8 -4
  94. package/dist/esm/plugins/layout/toolbar.js +5 -6
  95. package/dist/esm/plugins/media/toolbar/index.js +31 -24
  96. package/dist/esm/plugins/panel/index.js +2 -1
  97. package/dist/esm/plugins/panel/toolbar.js +7 -7
  98. package/dist/esm/plugins/placeholder-text/index.js +7 -5
  99. package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +19 -0
  100. package/dist/esm/ui/CollapsedEditor/index.js +1 -2
  101. package/dist/esm/ui/ElementBrowser/components/StatelessElementBrowser.js +5 -3
  102. package/dist/esm/version-wrapper.js +1 -1
  103. package/dist/esm/version.json +1 -1
  104. package/dist/types/editor-next/index.d.ts +0 -6
  105. package/dist/types/editor.d.ts +1 -137
  106. package/dist/types/i18n/en_ZZ.d.ts +28 -2
  107. package/dist/types/index.d.ts +0 -1
  108. package/dist/types/labs/next/presets/cxhtml.d.ts +106 -0
  109. package/dist/types/labs/next/presets/default.d.ts +212 -0
  110. package/dist/types/labs/next/presets/mobile.d.ts +106 -0
  111. package/dist/types/plugins/base/index.d.ts +0 -4
  112. package/dist/types/plugins/card/index.d.ts +2 -2
  113. package/dist/types/plugins/card/nodeviews/blockCard.d.ts +3 -0
  114. package/dist/types/plugins/card/nodeviews/embedCard.d.ts +3 -0
  115. package/dist/types/plugins/card/nodeviews/inlineCard.d.ts +1 -0
  116. package/dist/types/plugins/card/pm-plugins/doc.d.ts +1 -1
  117. package/dist/types/plugins/card/pm-plugins/keymap.d.ts +1 -1
  118. package/dist/types/plugins/card/pm-plugins/main.d.ts +1 -2
  119. package/dist/types/plugins/card/toolbar.d.ts +1 -2
  120. package/dist/types/plugins/card/types.d.ts +1 -1
  121. package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +1 -2
  122. package/dist/types/plugins/card/ui/link-toolbar-button-group-options.d.ts +1 -1
  123. package/dist/types/plugins/card/ui/types.d.ts +1 -1
  124. package/dist/types/plugins/code-block/index.d.ts +7 -1
  125. package/dist/types/plugins/code-block/toolbar.d.ts +2 -1
  126. package/dist/types/plugins/copy-button/commands.d.ts +2 -1
  127. package/dist/types/plugins/copy-button/toolbar.d.ts +3 -2
  128. package/dist/types/plugins/expand/index.d.ts +2 -1
  129. package/dist/types/plugins/expand/toolbar.d.ts +2 -1
  130. package/dist/types/plugins/extension/index.d.ts +7 -2
  131. package/dist/types/plugins/extension/toolbar.d.ts +2 -1
  132. package/dist/types/plugins/floating-toolbar/index.d.ts +2 -1
  133. package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +3 -1
  134. package/dist/types/plugins/layout/index.d.ts +7 -1
  135. package/dist/types/plugins/layout/toolbar.d.ts +2 -1
  136. package/dist/types/plugins/media/index.d.ts +3 -1
  137. package/dist/types/plugins/panel/index.d.ts +2 -0
  138. package/dist/types/plugins/panel/toolbar.d.ts +3 -2
  139. package/dist/types/plugins/placeholder-text/index.d.ts +3 -1
  140. package/dist/types/ui/CollapsedEditor/index.d.ts +1 -2
  141. package/dist/types-ts4.5/editor-next/index.d.ts +0 -6
  142. package/dist/types-ts4.5/editor.d.ts +1 -137
  143. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +28 -2
  144. package/dist/types-ts4.5/index.d.ts +0 -1
  145. package/dist/types-ts4.5/labs/next/presets/cxhtml.d.ts +122 -0
  146. package/dist/types-ts4.5/labs/next/presets/default.d.ts +244 -0
  147. package/dist/types-ts4.5/labs/next/presets/mobile.d.ts +122 -0
  148. package/dist/types-ts4.5/plugins/base/index.d.ts +0 -4
  149. package/dist/types-ts4.5/plugins/card/index.d.ts +2 -2
  150. package/dist/types-ts4.5/plugins/card/nodeviews/blockCard.d.ts +3 -0
  151. package/dist/types-ts4.5/plugins/card/nodeviews/embedCard.d.ts +3 -0
  152. package/dist/types-ts4.5/plugins/card/nodeviews/inlineCard.d.ts +1 -0
  153. package/dist/types-ts4.5/plugins/card/pm-plugins/doc.d.ts +1 -1
  154. package/dist/types-ts4.5/plugins/card/pm-plugins/keymap.d.ts +1 -1
  155. package/dist/types-ts4.5/plugins/card/pm-plugins/main.d.ts +1 -2
  156. package/dist/types-ts4.5/plugins/card/toolbar.d.ts +1 -2
  157. package/dist/types-ts4.5/plugins/card/types.d.ts +1 -1
  158. package/dist/types-ts4.5/plugins/card/ui/EditLinkToolbar.d.ts +1 -2
  159. package/dist/types-ts4.5/plugins/card/ui/link-toolbar-button-group-options.d.ts +1 -1
  160. package/dist/types-ts4.5/plugins/card/ui/types.d.ts +1 -1
  161. package/dist/types-ts4.5/plugins/code-block/index.d.ts +7 -1
  162. package/dist/types-ts4.5/plugins/code-block/toolbar.d.ts +2 -1
  163. package/dist/types-ts4.5/plugins/copy-button/commands.d.ts +2 -1
  164. package/dist/types-ts4.5/plugins/copy-button/toolbar.d.ts +3 -2
  165. package/dist/types-ts4.5/plugins/expand/index.d.ts +3 -1
  166. package/dist/types-ts4.5/plugins/expand/toolbar.d.ts +2 -1
  167. package/dist/types-ts4.5/plugins/extension/index.d.ts +4 -2
  168. package/dist/types-ts4.5/plugins/extension/toolbar.d.ts +2 -1
  169. package/dist/types-ts4.5/plugins/floating-toolbar/index.d.ts +3 -1
  170. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Toolbar.d.ts +3 -1
  171. package/dist/types-ts4.5/plugins/layout/index.d.ts +7 -1
  172. package/dist/types-ts4.5/plugins/layout/toolbar.d.ts +2 -1
  173. package/dist/types-ts4.5/plugins/media/index.d.ts +3 -1
  174. package/dist/types-ts4.5/plugins/panel/index.d.ts +4 -0
  175. package/dist/types-ts4.5/plugins/panel/toolbar.d.ts +3 -2
  176. package/dist/types-ts4.5/plugins/placeholder-text/index.d.ts +5 -1
  177. package/dist/types-ts4.5/ui/CollapsedEditor/index.d.ts +1 -2
  178. package/package.json +13 -8
  179. package/report.api.md +5 -93
  180. package/dist/cjs/editor-next/editor-migration-component.js +0 -54
  181. package/dist/cjs/plugins/base/pm-plugins/decoration.js +0 -122
  182. package/dist/es2019/editor-next/editor-migration-component.js +0 -30
  183. package/dist/es2019/plugins/base/pm-plugins/decoration.js +0 -111
  184. package/dist/esm/editor-next/editor-migration-component.js +0 -47
  185. package/dist/esm/plugins/base/pm-plugins/decoration.js +0 -113
  186. package/dist/types/editor-next/editor-migration-component.d.ts +0 -6
  187. package/dist/types/plugins/base/pm-plugins/decoration.d.ts +0 -24
  188. package/dist/types-ts4.5/editor-next/editor-migration-component.d.ts +0 -6
  189. package/dist/types-ts4.5/plugins/base/pm-plugins/decoration.d.ts +0 -24
@@ -11,7 +11,6 @@ import ErrorIcon from '@atlaskit/icon/glyph/editor/error';
11
11
  import RemoveEmojiIcon from '@atlaskit/icon/glyph/editor/remove-emoji';
12
12
  import commonMessages from '../../messages';
13
13
  import { removePanel, changePanelType } from './actions';
14
- import { hoverDecoration } from '../base/pm-plugins/decoration';
15
14
  import { panelBackgroundPalette } from '../../ui/ColorPalette/Palettes/panelBackgroundPalette';
16
15
  import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
17
16
  import { findPanel } from './utils';
@@ -39,7 +38,7 @@ export var panelIconMap = (_panelIconMap = {}, _defineProperty(_panelIconMap, Pa
39
38
  shortName: ':tip:',
40
39
  id: 'atlassian-tip'
41
40
  }), _panelIconMap);
42
- export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeType, isCustomPanelEnabled, isCustomPanelEditable, providerFactory, activePanelType, activePanelColor, activePanelIcon, state) {
41
+ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeType, isCustomPanelEnabled, isCustomPanelEditable, providerFactory, hoverDecoration, activePanelType, activePanelColor, activePanelIcon, state) {
43
42
  // TODO: ED-14403 investigate why these titles are not getting translated for the tooltips
44
43
  var items = [{
45
44
  id: 'editor.panel.info',
@@ -242,10 +241,10 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
242
241
  focusEditoronEnter: true,
243
242
  icon: RemoveIcon,
244
243
  onClick: removePanel(),
245
- onMouseEnter: hoverDecoration(panelNodeType, true),
246
- onMouseLeave: hoverDecoration(panelNodeType, false),
247
- onFocus: hoverDecoration(panelNodeType, true),
248
- onBlur: hoverDecoration(panelNodeType, false),
244
+ onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(panelNodeType, true),
245
+ onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(panelNodeType, false),
246
+ onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(panelNodeType, true),
247
+ onBlur: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration(panelNodeType, false),
249
248
  title: formatMessage(commonMessages.remove),
250
249
  tabIndex: null
251
250
  });
@@ -254,6 +253,7 @@ export var getToolbarItems = function getToolbarItems(formatMessage, panelNodeTy
254
253
  export var getToolbarConfig = function getToolbarConfig(state, intl) {
255
254
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
256
255
  var providerFactory = arguments.length > 3 ? arguments[3] : undefined;
256
+ var hoverDecoration = arguments.length > 4 ? arguments[4] : undefined;
257
257
  var formatMessage = intl.formatMessage;
258
258
  var panelObject = findPanel(state);
259
259
  if (panelObject) {
@@ -267,7 +267,7 @@ export var getToolbarConfig = function getToolbarConfig(state, intl) {
267
267
  };
268
268
 
269
269
  // force toolbar to be turned on
270
- var items = getToolbarItems(formatMessage, nodeType, options.allowCustomPanel || false, options.allowCustomPanel && options.allowCustomPanelEdit || false, providerFactory, panelType, options.allowCustomPanel ? panelColor : undefined, options.allowCustomPanel ? panelIcon || isStandardPanel(panelType) : undefined, state);
270
+ var items = getToolbarItems(formatMessage, nodeType, options.allowCustomPanel || false, options.allowCustomPanel && options.allowCustomPanelEdit || false, providerFactory, hoverDecoration, panelType, options.allowCustomPanel ? panelColor : undefined, options.allowCustomPanel ? panelIcon || isStandardPanel(panelType) : undefined, state);
271
271
  var getDomRef = function getDomRef(editorView) {
272
272
  var domAtPos = editorView.domAtPos.bind(editorView);
273
273
  var element = findDomRefAtPos(panelObject.pos, domAtPos);
@@ -10,7 +10,7 @@ import PlaceholderFloatingToolbar from './ui/PlaceholderFloatingToolbar';
10
10
  import { hidePlaceholderFloatingToolbar, insertPlaceholderTextAtSelection } from './actions';
11
11
  import { PlaceholderTextNodeView } from './placeholder-text-nodeview';
12
12
  import { pluginKey } from './plugin-key';
13
- import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, addAnalytics, EVENT_TYPE, INPUT_METHOD } from '../analytics';
13
+ import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
14
14
  import { messages } from '../insert-block/ui/ToolbarInsertBlock/messages';
15
15
  import { isSelectionAtPlaceholder } from './selection-utils';
16
16
  import { createInternalTypeAheadTools } from '../type-ahead/api';
@@ -186,7 +186,7 @@ var basePlaceholderTextPlugin = function basePlaceholderTextPlugin(options) {
186
186
  }
187
187
  };
188
188
  };
189
- var decorateWithPluginOptions = function decorateWithPluginOptions(plugin, options) {
189
+ var decorateWithPluginOptions = function decorateWithPluginOptions(plugin, options, api) {
190
190
  if (!options.allowInserting) {
191
191
  return plugin;
192
192
  }
@@ -205,11 +205,12 @@ var decorateWithPluginOptions = function decorateWithPluginOptions(plugin, optio
205
205
  });
206
206
  },
207
207
  action: function action(insert, state) {
208
+ var _api$dependencies$ana;
208
209
  var tr = state.tr;
209
210
  tr.setMeta(pluginKey, {
210
211
  showInsertPanelAt: tr.selection.anchor
211
212
  });
212
- return addAnalytics(state, tr, {
213
+ api === null || api === void 0 ? void 0 : (_api$dependencies$ana = api.dependencies.analytics) === null || _api$dependencies$ana === void 0 ? void 0 : _api$dependencies$ana.actions.attachAnalyticsEvent({
213
214
  action: ACTION.INSERTED,
214
215
  actionSubject: ACTION_SUBJECT.DOCUMENT,
215
216
  actionSubjectId: ACTION_SUBJECT_ID.PLACEHOLDER_TEXT,
@@ -217,7 +218,8 @@ var decorateWithPluginOptions = function decorateWithPluginOptions(plugin, optio
217
218
  inputMethod: INPUT_METHOD.QUICK_INSERT
218
219
  },
219
220
  eventType: EVENT_TYPE.TRACK
220
- });
221
+ })(tr);
222
+ return tr;
221
223
  }
222
224
  }];
223
225
  }
@@ -225,6 +227,6 @@ var decorateWithPluginOptions = function decorateWithPluginOptions(plugin, optio
225
227
  return plugin;
226
228
  };
227
229
  var placeholderTextPlugin = function placeholderTextPlugin(options, api) {
228
- return decorateWithPluginOptions(basePlaceholderTextPlugin(options, api), options);
230
+ return decorateWithPluginOptions(basePlaceholderTextPlugin(options, api), options, api);
229
231
  };
230
232
  export default placeholderTextPlugin;
@@ -171,6 +171,25 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
171
171
  element === null || element === void 0 ? void 0 : element.removeEventListener('focusout', focusOut);
172
172
  };
173
173
  }, [ref, cancel]);
174
+
175
+ // ED-17443 When you press escape on typeahead panel, it should remove focus and close the panel
176
+ // This is the expected keyboard behaviour advised by the Accessibility team
177
+ useLayoutEffect(function () {
178
+ var escape = function escape(event) {
179
+ if (event.key === 'Escape') {
180
+ cancel({
181
+ addPrefixTrigger: true,
182
+ setSelectionAt: CloseSelectionOptions.AFTER_TEXT_INSERTED,
183
+ forceFocusOnEditor: true
184
+ });
185
+ }
186
+ };
187
+ var element = ref.current;
188
+ element === null || element === void 0 ? void 0 : element.addEventListener('keydown', escape);
189
+ return function () {
190
+ element === null || element === void 0 ? void 0 : element.removeEventListener('keydown', escape);
191
+ };
192
+ }, [ref, cancel]);
174
193
  return jsx(Popup, {
175
194
  zIndex: akEditorFloatingDialogZIndex,
176
195
  target: anchorElement,
@@ -11,7 +11,6 @@ import { IntlProviderIfMissingWrapper } from '@atlaskit/editor-common/ui';
11
11
  import React from 'react';
12
12
  import Editor from '../../editor';
13
13
  import EditorNext from '../../editor-next';
14
- import EditorMigrationComponent from '../../editor-next/editor-migration-component';
15
14
  import EditorWithActions from '../../labs/EditorWithActions';
16
15
  import ChromeCollapsed from '../ChromeCollapsed';
17
16
  var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
@@ -46,7 +45,7 @@ var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
46
45
  value: function render() {
47
46
  var _this2 = this;
48
47
  var child = React.Children.only(this.props.children);
49
- if (child.type !== Editor && child.type !== EditorWithActions && child.type !== EditorNext && child.type !== EditorMigrationComponent) {
48
+ if (child.type !== Editor && child.type !== EditorWithActions && child.type !== EditorNext) {
50
49
  throw new Error('Expected child to be of type `Editor`');
51
50
  }
52
51
  if (!this.props.isExpanded) {
@@ -74,18 +74,20 @@ function StatelessElementBrowser(props) {
74
74
  /* Only for hitting enter to select item when focused on search bar,
75
75
  * The actual enter key press is handled on individual items level.
76
76
  */
77
+ var selectedItem = items[selectedItemIndex];
77
78
  var onItemsEnterKeyPress = useCallback(function (e) {
78
79
  if (e.key !== 'Enter') {
79
80
  return;
80
81
  }
81
- props.onInsertItem(items[selectedItemIndex]);
82
- }, [props, items, selectedItemIndex]);
82
+ if (onSelectItem && selectedItem != null) {
83
+ onSelectItem(selectedItem);
84
+ }
85
+ }, [onSelectItem, selectedItem]);
83
86
 
84
87
  /**
85
88
  * On arrow key selection and clicks the selectedItemIndex will change.
86
89
  * Making sure to update parent component.
87
90
  */
88
- var selectedItem = items[selectedItemIndex];
89
91
  useEffect(function () {
90
92
  if (onSelectItem && selectedItem != null) {
91
93
  onSelectItem(selectedItem);
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "184.0.4";
2
+ export var version = "185.0.0";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "184.0.4",
3
+ "version": "185.0.0",
4
4
  "sideEffects": false
5
5
  }
@@ -4,11 +4,6 @@ import React from 'react';
4
4
  import { EditorNextProps } from '../types/editor-props';
5
5
  import { Context } from './utils/editorPropTypes';
6
6
  export default class EditorNext extends React.Component<EditorNextProps> {
7
- /**
8
- * WARNING: Code should be shared between Editor + EditorNext
9
- * If you are making changes that affect both, consider making them
10
- * in editor-next/editor-internal.tsx or editor-next/editor-utils.ts
11
- */
12
7
  static defaultProps: import("../types/editor-props").EditorProps;
13
8
  static contextTypes: {
14
9
  editorActions: PropTypes.Requireable<object>;
@@ -19,7 +14,6 @@ export default class EditorNext extends React.Component<EditorNextProps> {
19
14
  };
20
15
  private editorActions;
21
16
  private createAnalyticsEvent?;
22
- private editorSessionId;
23
17
  private experienceStore?;
24
18
  private startTime?;
25
19
  constructor(props: EditorNextProps, context: Context);
@@ -1,146 +1,10 @@
1
1
  /** @jsx jsx */
2
2
  import { jsx } from '@emotion/react';
3
- import PropTypes from 'prop-types';
4
- import { EditorView } from 'prosemirror-view';
5
3
  import React from 'react';
6
- import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
7
- import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
8
- import type { Transformer, AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
9
- import EditorActions from './actions';
10
- import { Context } from './editor-next/utils/editorPropTypes';
11
- import { EventDispatcher } from './event-dispatcher';
12
- import { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
13
- import { QuickInsertOptions, QuickInsertProvider } from './plugins/quick-insert/types';
14
4
  import { EditorProps } from './types/editor-props';
15
- import { ProviderFactoryState } from './editor-next/hooks/useProviderFactory';
16
5
  export type { AllowedBlockTypes, Command, CommandDispatch, DomAtPos, EditorAppearance, EditorAppearanceComponentProps, EditorConfig, EditorInstance, EditorPlugin, EditorProps, ExtensionConfig, ExtensionProvidersProp, FeedbackInfo, MarkConfig, MessageDescriptor, NodeConfig, NodeViewConfig, PluginsOptions, PMPlugin, PMPluginCreateConfig, PMPluginFactory, PMPluginFactoryParams, ReactComponents, ToolbarUIComponentFactory, ToolbarUiComponentFactoryParams, UIComponentFactory, UiComponentFactoryParams, } from './types';
17
- type PresetState = {
18
- preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
19
- };
20
- export default class Editor extends React.Component<EditorProps, ProviderFactoryState & PresetState> {
21
- /**
22
- * WARNING: Code should be shared between Editor + EditorNext
23
- * If you are making changes that affect both, consider making them
24
- * in editor-next/editor-internal.tsx or editor-next/editor-utils.ts
25
- */
6
+ export default class Editor extends React.Component<EditorProps> {
26
7
  static defaultProps: EditorProps;
27
- static contextTypes: {
28
- editorActions: PropTypes.Requireable<object>;
29
- };
30
- static propTypes: {
31
- minHeight: ({ appearance, minHeight, }: Pick<EditorProps, "appearance" | "minHeight">) => Error | null;
32
- };
33
- private providerFactory;
34
- private editorActions;
35
- private createAnalyticsEvent?;
36
8
  private editorSessionId;
37
- private experienceStore?;
38
- private startTime?;
39
- constructor(props: EditorProps, context: Context);
40
- /**
41
- * Consider any changes here to corresponding file for `EditorNext` in
42
- * `useProviderFactory` (editor-next/hooks/useProviderFactory.ts) and
43
- * `useMeasureEditorMountTime` (editor-next/hooks/useMeasureEditorMountTime.ts)
44
- */
45
- componentDidMount(): void;
46
- /**
47
- * Consider any changes here to corresponding file for `EditorNext` in
48
- * `useProviderFactory` (editor-next/hooks/useProviderFactory.ts)
49
- */
50
- componentDidUpdate(prevProps: EditorProps): void;
51
- /**
52
- * Consider any changes here to corresponding file for `EditorNext` in
53
- * `useProviderFactory` (editor-next/hooks/useProviderFactory.ts) and
54
- * `useMeasureEditorMountTime` (editor-next/hooks/useMeasureEditorMountTime.ts)
55
- */
56
- componentWillUnmount(): void;
57
- /**
58
- * @private
59
- * @deprecated - Do not override this at all, this is an anti-pattern.
60
- * Please reach out to the Editor team if you were previously using this
61
- * and need to find a workaround.
62
- */
63
- trackEditorActions(editorActions: EditorActions & {
64
- _contentRetrievalTracking?: {
65
- getValueTracked: boolean;
66
- samplingCounters: {
67
- success: number;
68
- failure: number;
69
- };
70
- };
71
- }, props: EditorProps): EditorActions<any> & {
72
- _contentRetrievalTracking?: {
73
- getValueTracked: boolean;
74
- samplingCounters: {
75
- success: number;
76
- failure: number;
77
- };
78
- } | undefined;
79
- };
80
- /**
81
- * @private
82
- * @deprecated - Do not override this at all, this is an antipattern.
83
- * Please reach out to the Editor team if you were previously using this
84
- * and need to find a workaround.
85
- */
86
- prepareExtensionProvider: (extensionProviders?: import("./types").ExtensionProvidersProp | undefined) => ExtensionProvider<any> | undefined;
87
- /**
88
- * @private
89
- * @deprecated - Do not override this at all, this is an antipattern.
90
- * Please reach out to the Editor team if you were previously using this
91
- * and need to find a workaround.
92
- */
93
- prepareQuickInsertProvider: (extensionProvider?: ExtensionProvider, quickInsert?: QuickInsertOptions) => Promise<QuickInsertProvider> | undefined;
94
- /**
95
- * @private
96
- * @deprecated - Do not override this at all, this is an antipattern.
97
- * Please reach out to the Editor team if you were previously using this
98
- * and need to find a workaround.
99
- */
100
- onEditorCreated(instance: {
101
- view: EditorView;
102
- eventDispatcher: EventDispatcher;
103
- transformer?: Transformer<string>;
104
- }): void;
105
- /**
106
- * @private
107
- * @deprecated - Do not override this at all, this is an antipattern.
108
- * Please reach out to the Editor team if you were previously using this
109
- * and need to find a workaround.
110
- */
111
- onEditorDestroyed(_instance: {
112
- view: EditorView;
113
- transformer?: Transformer<string>;
114
- }): void;
115
- /**
116
- * @private
117
- * @deprecated - Do not override this at all, this is an antipattern.
118
- * Please reach out to the Editor team if you were previously using this
119
- * and need to find a workaround.
120
- */
121
- handleSave: (view: EditorView) => void;
122
- /**
123
- * @private
124
- * @deprecated - Do not override this at all, this is an antipattern.
125
- * Please reach out to the Editor team if you were previously using this
126
- * and need to find a workaround.
127
- */
128
- handleAnalyticsEvent: FireAnalyticsCallback;
129
- /**
130
- * @private
131
- * @deprecated - Do not override this at all, this is an antipattern.
132
- * Please reach out to the Editor team if you were previously using this
133
- * and need to find a workaround.
134
- */
135
- registerEditorForActions(editorView: EditorView, eventDispatcher: EventDispatcher, contentTransformer?: Transformer<string>): void;
136
- private getFeatureFlags;
137
- /**
138
- * @private
139
- * @deprecated - Do not override this at all, this is an antipattern.
140
- * Please reach out to the Editor team if you were previously using this
141
- * and need to find a workaround.
142
- */
143
- unregisterEditorFromActions(): void;
144
- private getExperienceStore;
145
9
  render(): jsx.JSX.Element;
146
10
  }
@@ -6,13 +6,13 @@
6
6
  */
7
7
  declare const _default: {
8
8
  'fabric.editor.addAltText': string;
9
+ 'fabric.editor.addImageBorder': string;
9
10
  'fabric.editor.alignCenter': string;
10
11
  'fabric.editor.alignLeft': string;
11
12
  'fabric.editor.alignRight': string;
12
13
  'fabric.editor.alignment': string;
13
14
  'fabric.editor.altText': string;
14
15
  'fabric.editor.alttext.validation': string;
15
- 'fabric.editor.annotate': string;
16
16
  'fabric.editor.annotationToolbar': string;
17
17
  'fabric.editor.backLink': string;
18
18
  'fabric.editor.blockCardUnavailable': string;
@@ -60,6 +60,7 @@ declare const _default: {
60
60
  'fabric.editor.customPanel.description': string;
61
61
  'fabric.editor.decisionPlaceholder': string;
62
62
  'fabric.editor.defaultAltText': string;
63
+ 'fabric.editor.description': string;
63
64
  'fabric.editor.displayBlock': string;
64
65
  'fabric.editor.displayEmbed': string;
65
66
  'fabric.editor.displayInline': string;
@@ -75,6 +76,7 @@ declare const _default: {
75
76
  'fabric.editor.editStatusColor': string;
76
77
  'fabric.editor.editStatusText': string;
77
78
  'fabric.editor.editableContentLabel': string;
79
+ 'fabric.editor.editorAssistiveLabel': string;
78
80
  'fabric.editor.editorHelp': string;
79
81
  'fabric.editor.editors': string;
80
82
  'fabric.editor.elementBrowser.help': string;
@@ -101,12 +103,16 @@ declare const _default: {
101
103
  'fabric.editor.errorPanel.description': string;
102
104
  'fabric.editor.extension.confirmDeleteLinkedModalMessage': string;
103
105
  'fabric.editor.extension.confirmDeleteLinkedModalOKButton': string;
106
+ 'fabric.editor.extension.deleteElementTitle': string;
107
+ 'fabric.editor.extension.sourceNoTitledName': string;
104
108
  'fabric.editor.extensions.config-panel.save-indicator': string;
105
109
  'fabric.editor.find': string;
106
110
  'fabric.editor.findNext': string;
107
111
  'fabric.editor.findPrevious': string;
108
112
  'fabric.editor.findReplaceToolbarButton': string;
109
113
  'fabric.editor.floatingToolbar.confirmModalCancel': string;
114
+ 'fabric.editor.floatingToolbar.confirmModalCheckboxLabel': string;
115
+ 'fabric.editor.floatingToolbar.confirmModalConnectedUnit': string;
110
116
  'fabric.editor.floatingToolbar.confirmModalHeading': string;
111
117
  'fabric.editor.floatingToolbar.confirmModalOK': string;
112
118
  'fabric.editor.floatingToolbar.floatingToolbarAnnouncer': string;
@@ -137,6 +143,12 @@ declare const _default: {
137
143
  'fabric.editor.hyperlink.searchLinkAriaDescription': string;
138
144
  'fabric.editor.hyperlink.searchLinkResults': string;
139
145
  'fabric.editor.hyperlinkToolbarPlaceholder': string;
146
+ 'fabric.editor.imageBorderBold': string;
147
+ 'fabric.editor.imageBorderColor': string;
148
+ 'fabric.editor.imageBorderMedium': string;
149
+ 'fabric.editor.imageBorderOptions': string;
150
+ 'fabric.editor.imageBorderSize': string;
151
+ 'fabric.editor.imageBorderSubtle': string;
140
152
  'fabric.editor.improvement': string;
141
153
  'fabric.editor.indent': string;
142
154
  'fabric.editor.info': string;
@@ -158,9 +170,12 @@ declare const _default: {
158
170
  'fabric.editor.matchCase': string;
159
171
  'fabric.editor.mediaAddLink': string;
160
172
  'fabric.editor.mediaGroupDeleteLabel': string;
173
+ 'fabric.editor.mentionNode.label': string;
161
174
  'fabric.editor.mentionsAddLabel': string;
162
175
  'fabric.editor.mentionsIconLabel': string;
163
176
  'fabric.editor.moreFormatting': string;
177
+ 'fabric.editor.navigate.toolbar.editor': string;
178
+ 'fabric.editor.navigate.toolbar.floating': string;
164
179
  'fabric.editor.noResultsFound': string;
165
180
  'fabric.editor.noSearchResults': string;
166
181
  'fabric.editor.normal': string;
@@ -181,6 +196,7 @@ declare const _default: {
181
196
  'fabric.editor.placeholderTextPlaceholder': string;
182
197
  'fabric.editor.quickInsert': string;
183
198
  'fabric.editor.redo': string;
199
+ 'fabric.editor.removeImageBorder': string;
184
200
  'fabric.editor.replace': string;
185
201
  'fabric.editor.replaceAll': string;
186
202
  'fabric.editor.replaceWith': string;
@@ -189,6 +205,7 @@ declare const _default: {
189
205
  'fabric.editor.searchResults': string;
190
206
  'fabric.editor.selectLanguage': string;
191
207
  'fabric.editor.settingsLinks': string;
208
+ 'fabric.editor.shortcut': string;
192
209
  'fabric.editor.single': string;
193
210
  'fabric.editor.statusPlaceholder': string;
194
211
  'fabric.editor.story': string;
@@ -212,7 +229,15 @@ declare const _default: {
212
229
  'fabric.editor.toolbarLabel': string;
213
230
  'fabric.editor.toolbarMediaTitle': string;
214
231
  'fabric.editor.twoColumns': string;
215
- 'fabric.editor.typeAheadResultLabel': string;
232
+ 'fabric.editor.typeAhead.popupLabel': string;
233
+ 'fabric.editor.typeAhead.quickInsertInputLabel': string;
234
+ 'fabric.editor.typeAhead.quickInsertPopupLabel': string;
235
+ 'fabric.editor.typeahead.emojiInputLabel': string;
236
+ 'fabric.editor.typeahead.emojiListItemLabel': string;
237
+ 'fabric.editor.typeahead.emojiPopupLabel': string;
238
+ 'fabric.editor.typeahead.mentionInputLabel': string;
239
+ 'fabric.editor.typeahead.mentionPopupLabel': string;
240
+ 'fabric.editor.typeahead.metionListItemLabel': string;
216
241
  'fabric.editor.unableToOpenLink': string;
217
242
  'fabric.editor.underline': string;
218
243
  'fabric.editor.undo': string;
@@ -227,5 +252,6 @@ declare const _default: {
227
252
  'fabric.editor.warningPanel.description': string;
228
253
  'fabric.editor.wrapLeft': string;
229
254
  'fabric.editor.wrapRight': string;
255
+ 'fabric.emoji.label': string;
230
256
  };
231
257
  export default _default;
@@ -89,4 +89,3 @@ export { DEFAULT_BORDER_COLOR } from './ui/ColorPalette/Palettes/common';
89
89
  export { default as messages, statusMessages, dateMessages } from './messages';
90
90
  export { createTypeAheadTools } from './plugins/type-ahead/api';
91
91
  export { createQuickInsertTools } from './plugins/quick-insert/api';
92
- export { default as EditorMigrationComponent } from './editor-next/editor-migration-component';
@@ -10,8 +10,90 @@ export type EditorPresetCXHTMLProps = {
10
10
  } & EditorPresetProps;
11
11
  export declare function useCXHTMLPreset({ mentionProvider, mediaProvider, placeholder, featureFlags, }: EditorPresetCXHTMLProps): import("@atlaskit/editor-common/preset").EditorPresetBuilder<[...string[], "hyperlink", "textFormatting", "width", "quickInsert", "typeAhead", "unsupportedContent", "editorDisabled", "submitEditor", "fakeTextCursor", "floatingToolbar", "selection", "codeBlock"], [(config: import("../../../plugins/code-block/types").CodeBlockOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"codeBlock", {
12
12
  pluginConfiguration: import("../../../plugins/code-block/types").CodeBlockOptions;
13
+ dependencies: [(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
14
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
15
+ actions: {
16
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
17
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
18
+ };
19
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
20
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
21
+ actions: {
22
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
23
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
24
+ };
25
+ }>, import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
26
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
27
+ sharedState: {
28
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
29
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
30
+ };
31
+ dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
32
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
33
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
34
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
35
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
36
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
37
+ }>];
38
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
39
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
40
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
41
+ sharedState: {
42
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
43
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
44
+ };
45
+ dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
46
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
47
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
48
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
49
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
50
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
51
+ }>];
52
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
53
+ }>>];
13
54
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"codeBlock", {
14
55
  pluginConfiguration: import("../../../plugins/code-block/types").CodeBlockOptions;
56
+ dependencies: [(config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
57
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
58
+ actions: {
59
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
60
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
61
+ };
62
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
63
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
64
+ actions: {
65
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
66
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
67
+ };
68
+ }>, import("@atlaskit/editor-common/types").OptionalPlugin<(config: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"analytics", {
69
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
70
+ sharedState: {
71
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
72
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
73
+ };
74
+ dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
75
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
76
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
77
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
78
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
79
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
80
+ }>];
81
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
82
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"analytics", {
83
+ pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
84
+ sharedState: {
85
+ createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
86
+ attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
87
+ };
88
+ dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
89
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
90
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
91
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
92
+ pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
93
+ sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
94
+ }>];
95
+ actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
96
+ }>>];
15
97
  }>, (config?: import("../../../plugins/selection/types").SelectionPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"selection", {
16
98
  pluginConfiguration: import("../../../plugins/selection/types").SelectionPluginOptions | undefined;
17
99
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"selection", {
@@ -23,6 +105,18 @@ export declare function useCXHTMLPreset({ mentionProvider, mediaProvider, placeh
23
105
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
24
106
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
25
107
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
108
+ }>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
109
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
110
+ actions: {
111
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
112
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
113
+ };
114
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
115
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
116
+ actions: {
117
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
118
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
119
+ };
26
120
  }>];
27
121
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"floatingToolbar", {
28
122
  dependencies: [(config: import("@atlaskit/editor-common/types").FeatureFlags, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"featureFlags", {
@@ -31,6 +125,18 @@ export declare function useCXHTMLPreset({ mentionProvider, mediaProvider, placeh
31
125
  }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"featureFlags", {
32
126
  pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
33
127
  sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
128
+ }>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"decorations", {
129
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
130
+ actions: {
131
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
132
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
133
+ };
134
+ }> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"decorations", {
135
+ sharedState: import("@atlaskit/editor-plugin-decorations").DecorationState;
136
+ actions: {
137
+ hoverDecoration: (nodeType: import("prosemirror-model").NodeType<any> | import("prosemirror-model").NodeType<any>[], add: boolean, className?: string | undefined) => import("@atlaskit/editor-common/types").Command;
138
+ removeDecoration: import("@atlaskit/editor-common/types").Command;
139
+ };
34
140
  }>];
35
141
  }>, (config?: undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"fakeTextCursor", {}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"fakeTextCursor", {}>, (config?: ((editorView: import("prosemirror-view").EditorView<any>) => void) | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"submitEditor", {
36
142
  pluginConfiguration: ((editorView: import("prosemirror-view").EditorView<any>) => void) | undefined;