@atlaskit/editor-core 187.38.2 → 187.38.5

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 (72) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/labs/next/presets/default.js +2 -2
  3. package/dist/cjs/plugins/index.js +0 -7
  4. package/dist/cjs/plugins/media/index.js +2 -2
  5. package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +2 -3
  6. package/dist/cjs/plugins/media/pm-plugins/main.js +11 -12
  7. package/dist/cjs/plugins/media/toolbar/linking.js +4 -2
  8. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +5 -40
  9. package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +28 -1
  10. package/dist/cjs/version-wrapper.js +1 -1
  11. package/dist/es2019/labs/next/presets/default.js +1 -1
  12. package/dist/es2019/plugins/index.js +0 -1
  13. package/dist/es2019/plugins/media/index.js +2 -2
  14. package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +1 -1
  15. package/dist/es2019/plugins/media/pm-plugins/main.js +11 -12
  16. package/dist/es2019/plugins/media/toolbar/linking.js +4 -2
  17. package/dist/es2019/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +6 -39
  18. package/dist/es2019/plugins/media/ui/ResizableMediaSingle/index.js +28 -1
  19. package/dist/es2019/version-wrapper.js +1 -1
  20. package/dist/esm/labs/next/presets/default.js +1 -1
  21. package/dist/esm/plugins/index.js +0 -1
  22. package/dist/esm/plugins/media/index.js +2 -2
  23. package/dist/esm/plugins/media/nodeviews/mediaSingle.js +2 -3
  24. package/dist/esm/plugins/media/pm-plugins/main.js +11 -12
  25. package/dist/esm/plugins/media/toolbar/linking.js +4 -2
  26. package/dist/esm/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +6 -41
  27. package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +28 -1
  28. package/dist/esm/version-wrapper.js +1 -1
  29. package/dist/types/labs/next/presets/default.d.ts +1 -1
  30. package/dist/types/plugins/index.d.ts +0 -1
  31. package/dist/types/plugins/media/commands/linking.d.ts +2 -2
  32. package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
  33. package/dist/types/plugins/media/picker-facade.d.ts +4 -4
  34. package/dist/types/plugins/media/pm-plugins/alt-text/commands.d.ts +1 -1
  35. package/dist/types/plugins/media/pm-plugins/alt-text/keymap.d.ts +1 -1
  36. package/dist/types/plugins/media/pm-plugins/keymap.d.ts +1 -1
  37. package/dist/types/plugins/media/pm-plugins/main.d.ts +4 -4
  38. package/dist/types/plugins/media/toolbar/alt-text.d.ts +1 -1
  39. package/dist/types/plugins/media/toolbar/commands.d.ts +4 -4
  40. package/dist/types/plugins/media/ui/MediaPicker/BrowserWrapper.d.ts +2 -2
  41. package/dist/types/plugins/media/ui/MediaPicker/DropzoneWrapper.d.ts +3 -3
  42. package/dist/types/plugins/media/ui/MediaPicker/PickerFacadeProvider.d.ts +3 -3
  43. package/dist/types/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +1 -4
  44. package/dist/types/plugins/media/ui/ResizableMediaSingle/index.d.ts +1 -0
  45. package/dist/types/plugins/media/utils/media-files.d.ts +2 -2
  46. package/dist/types/plugins/media/utils/media-single.d.ts +1 -1
  47. package/dist/types-ts4.5/labs/next/presets/default.d.ts +1 -1
  48. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  49. package/dist/types-ts4.5/plugins/media/commands/linking.d.ts +2 -2
  50. package/dist/types-ts4.5/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
  51. package/dist/types-ts4.5/plugins/media/picker-facade.d.ts +4 -4
  52. package/dist/types-ts4.5/plugins/media/pm-plugins/alt-text/commands.d.ts +1 -1
  53. package/dist/types-ts4.5/plugins/media/pm-plugins/alt-text/keymap.d.ts +1 -1
  54. package/dist/types-ts4.5/plugins/media/pm-plugins/keymap.d.ts +1 -1
  55. package/dist/types-ts4.5/plugins/media/pm-plugins/main.d.ts +4 -4
  56. package/dist/types-ts4.5/plugins/media/toolbar/alt-text.d.ts +1 -1
  57. package/dist/types-ts4.5/plugins/media/toolbar/commands.d.ts +4 -4
  58. package/dist/types-ts4.5/plugins/media/ui/MediaPicker/BrowserWrapper.d.ts +2 -2
  59. package/dist/types-ts4.5/plugins/media/ui/MediaPicker/DropzoneWrapper.d.ts +3 -3
  60. package/dist/types-ts4.5/plugins/media/ui/MediaPicker/PickerFacadeProvider.d.ts +3 -3
  61. package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +1 -4
  62. package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/index.d.ts +1 -0
  63. package/dist/types-ts4.5/plugins/media/utils/media-files.d.ts +2 -2
  64. package/dist/types-ts4.5/plugins/media/utils/media-single.d.ts +1 -1
  65. package/package.json +7 -6
  66. package/report.api.md +7 -14
  67. package/tmp/api-report-tmp.d.ts +7 -14
  68. package/dist/cjs/plugins/placeholder/index.js +0 -135
  69. package/dist/es2019/plugins/placeholder/index.js +0 -123
  70. package/dist/esm/plugins/placeholder/index.js +0 -124
  71. package/dist/types/plugins/placeholder/index.d.ts +0 -22
  72. package/dist/types-ts4.5/plugins/placeholder/index.d.ts +0 -26
@@ -18,7 +18,7 @@ import floatingToolbarPlugin from '../../../plugins/floating-toolbar';
18
18
  import clipboardPlugin from '../../../plugins/clipboard';
19
19
  import { analyticsPlugin as deprecatedAnalyticsPlugin } from '../../../plugins';
20
20
  import { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
21
- import placeholderPlugin from '../../../plugins/placeholder';
21
+ import { placeholderPlugin } from '@atlaskit/editor-plugin-placeholder';
22
22
  import annotationPlugin from '../../../plugins/annotation';
23
23
  import { compositionPlugin } from '@atlaskit/editor-plugin-composition';
24
24
  import quickInsertPlugin from '../../../plugins/quick-insert';
@@ -18,7 +18,6 @@ export { default as mediaPlugin } from './media';
18
18
  export { default as mentionsPlugin } from './mentions';
19
19
  export { default as panelPlugin } from './panel';
20
20
  export { default as pastePlugin } from './paste';
21
- export { default as placeholderPlugin } from './placeholder';
22
21
  export { default as placeholderTextPlugin } from './placeholder-text';
23
22
  export { default as quickInsertPlugin } from './quick-insert';
24
23
  export { default as saveOnEnterPlugin } from './save-on-enter';
@@ -97,7 +97,7 @@ var mediaPlugin = function mediaPlugin(_ref) {
97
97
  providerFactory: providerFactory,
98
98
  nodeViews: {
99
99
  mediaGroup: ReactMediaGroupNode(portalProviderAPI, eventDispatcher, providerFactory, options, api),
100
- mediaSingle: ReactMediaSingleNode(portalProviderAPI, eventDispatcher, providerFactory, dispatchAnalyticsEvent, options, api),
100
+ mediaSingle: ReactMediaSingleNode(portalProviderAPI, eventDispatcher, providerFactory, api, dispatchAnalyticsEvent, options),
101
101
  media: ReactMediaNode(portalProviderAPI, eventDispatcher, providerFactory, options, api),
102
102
  mediaInline: ReactMediaInlineNode(portalProviderAPI, eventDispatcher, providerFactory, api)
103
103
  },
@@ -107,7 +107,7 @@ var mediaPlugin = function mediaPlugin(_ref) {
107
107
  customDropzoneContainer: options && options.customDropzoneContainer,
108
108
  customMediaPicker: options && options.customMediaPicker,
109
109
  allowResizing: !!(options && options.allowResizing)
110
- }, reactContext, getIntl, dispatch, options, featureFlags.newInsertionBehaviour, api);
110
+ }, reactContext, getIntl, api, dispatch, options, featureFlags.newInsertionBehaviour);
111
111
  }
112
112
  }, {
113
113
  name: 'mediaKeymap',
@@ -598,9 +598,8 @@ var MediaSingleNodeView = /*#__PURE__*/function (_ReactNodeView) {
598
598
  }]);
599
599
  return MediaSingleNodeView;
600
600
  }(ReactNodeView);
601
- export var ReactMediaSingleNode = function ReactMediaSingleNode(portalProviderAPI, eventDispatcher, providerFactory, dispatchAnalyticsEvent) {
602
- var mediaOptions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
603
- var pluginInjectionApi = arguments.length > 5 ? arguments[5] : undefined;
601
+ export var ReactMediaSingleNode = function ReactMediaSingleNode(portalProviderAPI, eventDispatcher, providerFactory, pluginInjectionApi, dispatchAnalyticsEvent) {
602
+ var mediaOptions = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : {};
604
603
  return function (node, view, getPos) {
605
604
  var hasIntlContext = true;
606
605
  return new MediaSingleNodeView(node, view, getPos, portalProviderAPI, eventDispatcher, {
@@ -55,7 +55,7 @@ var createDropPlaceholder = function createDropPlaceholder(intl, allowDropLine)
55
55
  };
56
56
  var MEDIA_RESOLVED_STATES = ['ready', 'error', 'cancelled'];
57
57
  export var MediaPluginStateImplementation = /*#__PURE__*/function () {
58
- function MediaPluginStateImplementation(_state, options, mediaOptions, newInsertionBehaviour, _dispatch, _pluginInjectionApi) {
58
+ function MediaPluginStateImplementation(_state, options, mediaOptions, newInsertionBehaviour, _dispatch, pluginInjectionApi) {
59
59
  var _this = this;
60
60
  _classCallCheck(this, MediaPluginStateImplementation);
61
61
  _defineProperty(this, "allowsUploads", false);
@@ -208,9 +208,10 @@ export var MediaPluginStateImplementation = /*#__PURE__*/function () {
208
208
  *
209
209
  * called when we insert a new file via the picker (connected via pickerfacade)
210
210
  */
211
- _defineProperty(this, "insertFile", function (mediaState, onMediaStateChanged, pickerType, pluginInjectionApi) {
212
- var _mediaState$collectio, _this$mediaOptions2;
211
+ _defineProperty(this, "insertFile", function (mediaState, onMediaStateChanged, pickerType) {
212
+ var _this$pluginInjection, _this$pluginInjection2, _mediaState$collectio, _this$mediaOptions2;
213
213
  var state = _this.view.state;
214
+ var editorAnalyticsAPI = (_this$pluginInjection = _this.pluginInjectionApi) === null || _this$pluginInjection === void 0 ? void 0 : (_this$pluginInjection2 = _this$pluginInjection.analytics) === null || _this$pluginInjection2 === void 0 ? void 0 : _this$pluginInjection2.actions;
214
215
  var mediaStateWithContext = _objectSpread(_objectSpread({}, mediaState), {}, {
215
216
  contextId: _this.contextIdentifierProvider ? _this.contextIdentifierProvider.objectId : undefined
216
217
  });
@@ -226,16 +227,14 @@ export var MediaPluginStateImplementation = /*#__PURE__*/function () {
226
227
  });
227
228
  }
228
229
  if (isMediaSingle(state.schema, mediaStateWithContext.fileMimeType)) {
229
- var _this$pluginInjection, _pluginInjectionApi$a;
230
+ var _this$pluginInjection3;
230
231
  // read width state right before inserting to get up-to-date and define values
231
- var widthPluginState = (_this$pluginInjection = _this.pluginInjectionApi) === null || _this$pluginInjection === void 0 ? void 0 : _this$pluginInjection.width.sharedState.currentState();
232
- insertMediaSingleNode(_this.view, mediaStateWithContext, _this.getInputMethod(pickerType), collection, _this.mediaOptions && _this.mediaOptions.alignLeftOnInsert, _this.newInsertionBehaviour, widthPluginState, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions);
232
+ var widthPluginState = (_this$pluginInjection3 = _this.pluginInjectionApi) === null || _this$pluginInjection3 === void 0 ? void 0 : _this$pluginInjection3.width.sharedState.currentState();
233
+ insertMediaSingleNode(_this.view, mediaStateWithContext, _this.getInputMethod(pickerType), collection, _this.mediaOptions && _this.mediaOptions.alignLeftOnInsert, _this.newInsertionBehaviour, widthPluginState, editorAnalyticsAPI);
233
234
  } else if (getMediaFeatureFlag('mediaInline', (_this$mediaOptions2 = _this.mediaOptions) === null || _this$mediaOptions2 === void 0 ? void 0 : _this$mediaOptions2.featureFlags) && !isInEmptyLine(state) && (!isInsidePotentialEmptyParagraph(state) || isInListItem(state)) && canInsertMediaInline(state)) {
234
- var _pluginInjectionApi$a2;
235
- insertMediaInlineNode(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.actions)(_this.view, mediaStateWithContext, collection, _this.getInputMethod(pickerType));
235
+ insertMediaInlineNode(editorAnalyticsAPI)(_this.view, mediaStateWithContext, collection, _this.getInputMethod(pickerType));
236
236
  } else {
237
- var _pluginInjectionApi$a3;
238
- insertMediaGroupNode(pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a3 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a3 === void 0 ? void 0 : _pluginInjectionApi$a3.actions)(_this.view, [mediaStateWithContext], collection, _this.getInputMethod(pickerType));
237
+ insertMediaGroupNode(editorAnalyticsAPI)(_this.view, [mediaStateWithContext], collection, _this.getInputMethod(pickerType));
239
238
  }
240
239
 
241
240
  // do events when media state changes
@@ -472,7 +471,7 @@ export var MediaPluginStateImplementation = /*#__PURE__*/function () {
472
471
  this.mediaOptions = mediaOptions;
473
472
  this.newInsertionBehaviour = newInsertionBehaviour;
474
473
  this.dispatch = _dispatch;
475
- this.pluginInjectionApi = _pluginInjectionApi;
474
+ this.pluginInjectionApi = pluginInjectionApi;
476
475
  this.waitForMediaUpload = options.waitForMediaUpload === undefined ? true : options.waitForMediaUpload;
477
476
  var nodes = _state.schema.nodes;
478
477
  assert(nodes.media && (nodes.mediaGroup || nodes.mediaSingle), 'Editor: unable to init media plugin - media or mediaGroup/mediaSingle node absent in schema');
@@ -623,7 +622,7 @@ export var MediaPluginStateImplementation = /*#__PURE__*/function () {
623
622
  export var getMediaPluginState = function getMediaPluginState(state) {
624
623
  return stateKey.getState(state);
625
624
  };
626
- export var createPlugin = function createPlugin(_schema, options, reactContext, getIntl, dispatch, mediaOptions, newInsertionBehaviour, pluginInjectionApi) {
625
+ export var createPlugin = function createPlugin(_schema, options, reactContext, getIntl, pluginInjectionApi, dispatch, mediaOptions, newInsertionBehaviour) {
627
626
  var intl = getIntl();
628
627
  var dropPlaceholder = createDropPlaceholder(intl, mediaOptions && mediaOptions.allowDropzoneDropLine);
629
628
  return new SafePlugin({
@@ -55,7 +55,8 @@ export var getLinkingToolbar = function getLinkingToolbar(toolbarBaseConfig, med
55
55
  },
56
56
  onBack: function onBack(href, meta) {
57
57
  if (href.trim() && meta.inputMethod) {
58
- setUrlToMedia(href, meta.inputMethod)(view.state, view.dispatch, view);
58
+ var _pluginInjectionApi$a2;
59
+ setUrlToMedia(href, meta.inputMethod, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a2 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a2 === void 0 ? void 0 : _pluginInjectionApi$a2.actions)(view.state, view.dispatch, view);
59
60
  }
60
61
  hideLinkingToolbar(view.state, view.dispatch, view);
61
62
  },
@@ -71,7 +72,8 @@ export var getLinkingToolbar = function getLinkingToolbar(toolbarBaseConfig, med
71
72
  dispatch(tr);
72
73
  },
73
74
  onSubmit: function onSubmit(href, meta) {
74
- setUrlToMedia(href, meta.inputMethod)(view.state, view.dispatch, view);
75
+ var _pluginInjectionApi$a3;
76
+ setUrlToMedia(href, meta.inputMethod, pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a3 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a3 === void 0 ? void 0 : _pluginInjectionApi$a3.actions)(view.state, view.dispatch, view);
75
77
  hideLinkingToolbar(view.state, view.dispatch, view);
76
78
  },
77
79
  onBlur: function onBlur() {
@@ -22,23 +22,13 @@ import { wrapperStyle } from './styled';
22
22
  import { ResizerNext } from '@atlaskit/editor-common/resizer';
23
23
  import classnames from 'classnames';
24
24
  import { richMediaClassName, resizerStyles } from '@atlaskit/editor-common/styles';
25
- import { MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH, MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_RESIZE_THROTTLE_TIME, calculateOffsetLeft, DEFAULT_IMAGE_WIDTH, calcMediaSingleMaxWidth } from '@atlaskit/editor-common/media-single';
25
+ import { MEDIA_SINGLE_DEFAULT_MIN_PIXEL_WIDTH, MEDIA_SINGLE_VIDEO_MIN_PIXEL_WIDTH, MEDIA_SINGLE_SNAP_GAP, MEDIA_SINGLE_RESIZE_THROTTLE_TIME, DEFAULT_IMAGE_WIDTH, calcMediaSingleMaxWidth } from '@atlaskit/editor-common/media-single';
26
26
  import { findClosestSnap, getGuidelinesWithHighlights, generateDefaultGuidelines, generateDynamicGuidelines, getGuidelineSnaps, getGuidelineTypeFromKey, getRelativeGuideSnaps, getRelativeGuidelines } from '@atlaskit/editor-common/guideline';
27
27
  import memoizeOne from 'memoize-one';
28
28
  import { getMediaResizeAnalyticsEvent } from '../../utils/analytics';
29
29
  import throttle from 'lodash/throttle';
30
30
  import { MEDIA_PLUGIN_IS_RESIZING_KEY, MEDIA_PLUGIN_RESIZING_WIDTH_KEY } from '../../pm-plugins/main';
31
31
  export var resizerNextTestId = 'mediaSingle.resizerNext.testid';
32
- var handleComponent = {
33
- left: jsx("div", {
34
- "data-testid": "richMedia-resize-handle-left-elem",
35
- contentEditable: false
36
- }),
37
- right: jsx("div", {
38
- "data-testid": "richMedia-resize-handle-right-elem",
39
- contentEditable: false
40
- })
41
- };
42
32
  var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
43
33
  _inherits(ResizableMediaSingleNext, _React$Component);
44
34
  var _super = _createSuper(ResizableMediaSingleNext);
@@ -123,9 +113,6 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
123
113
  height = _this$props3.height;
124
114
  return Math.round(height / width * newWidth);
125
115
  });
126
- _defineProperty(_assertThisInitialized(_this), "saveWrapper", function (wrapper) {
127
- return _this.wrapper = wrapper;
128
- });
129
116
  _defineProperty(_assertThisInitialized(_this), "displayGuideline", function (guidelines) {
130
117
  var _this$props$pluginInj, _this$props$pluginInj2, _this$props$pluginInj3;
131
118
  return (_this$props$pluginInj = _this.props.pluginInjectionApi) === null || _this$props$pluginInj === void 0 ? void 0 : (_this$props$pluginInj2 = _this$props$pluginInj.guideline) === null || _this$props$pluginInj2 === void 0 ? void 0 : (_this$props$pluginInj3 = _this$props$pluginInj2.actions) === null || _this$props$pluginInj3 === void 0 ? void 0 : _this$props$pluginInj3.displayGuideline(_this.props.view)({
@@ -293,8 +280,6 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
293
280
  });
294
281
  var initialWidth = props.mediaSingleWidth || DEFAULT_IMAGE_WIDTH;
295
282
  _this.state = {
296
- offsetLeft: calculateOffsetLeft(_this.insideInlineLike, _this.insideLayout, _this.props.view.dom, undefined),
297
- // We default to true until we resolve the file type
298
283
  isVideoFile: true,
299
284
  isResizing: false,
300
285
  size: {
@@ -310,13 +295,6 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
310
295
  _createClass(ResizableMediaSingleNext, [{
311
296
  key: "componentDidUpdate",
312
297
  value: function componentDidUpdate(prevProps) {
313
- var offsetLeft = calculateOffsetLeft(this.insideInlineLike, this.insideLayout, this.props.view.dom, this.wrapper);
314
- if (offsetLeft !== this.state.offsetLeft && offsetLeft >= 0) {
315
- this.setState({
316
- offsetLeft: offsetLeft
317
- });
318
- }
319
-
320
298
  // Handle undo, when the actual pctWidth changed,
321
299
  // we sync up with the internal state.
322
300
  if (prevProps.pctWidth !== this.props.pctWidth) {
@@ -538,32 +516,19 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
538
516
  'rich-media-wrapped': layout === 'wrap-left' || layout === 'wrap-right'
539
517
  });
540
518
  var resizerNextClassName = classnames(className, resizerStyles);
541
- var maxWidth = !isResizing && this.isNestedNode() ?
519
+ var isNestedNode = this.isNestedNode();
520
+ var maxWidth = !isResizing && isNestedNode ?
542
521
  // set undefined to fall back to 100%
543
522
  undefined : this.calcMaxWidth(lineLength, containerWidth, fullWidthMode);
544
523
  var minWidth = this.calcMinWidth(isVideoFile, lineLength);
545
- var nestedHandleStyles = function nestedHandleStyles(isNestedNode) {
546
- if (!isNestedNode) {
547
- return;
548
- }
549
- return {
550
- left: {
551
- left: "calc(".concat("var(--ds-space-075, 0.375em)", " * -1)")
552
- },
553
- right: {
554
- right: "calc(".concat("var(--ds-space-075, 0.375em)", " * -1)")
555
- }
556
- };
557
- };
558
524
  return jsx("div", {
559
- ref: this.saveWrapper,
560
525
  css: wrapperStyle({
561
526
  layout: layout,
562
527
  isResized: !!pctWidth,
563
528
  containerWidth: containerWidth || origWidth,
564
529
  fullWidthMode: fullWidthMode,
565
530
  mediaSingleWidth: this.state.size.width,
566
- isNestedNode: this.isNestedNode(),
531
+ isNestedNode: isNestedNode,
567
532
  isExtendedResizeExperienceOn: true
568
533
  })
569
534
  }, jsx(ResizerNext, {
@@ -578,10 +543,10 @@ var ResizableMediaSingleNext = /*#__PURE__*/function (_React$Component) {
578
543
  handleResizeStop: this.handleResizeStop,
579
544
  snap: this.state.snaps,
580
545
  resizeRatio: nonWrappedLayouts.includes(layout) ? 2 : 1,
581
- handleComponent: handleComponent,
582
546
  "data-testid": resizerNextTestId,
583
547
  isHandleVisible: selected,
584
- handleStyles: nestedHandleStyles(this.isNestedNode())
548
+ handlePositioning: isNestedNode ? 'adjacent' : undefined,
549
+ handleHighlight: "full-height"
585
550
  }, children));
586
551
  }
587
552
  }]);
@@ -172,6 +172,17 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
172
172
  get: function get() {
173
173
  return wrappedLayouts.indexOf(this.props.layout) > -1;
174
174
  }
175
+
176
+ // check if is inside of a table
177
+ }, {
178
+ key: "isNestedInTable",
179
+ value: function isNestedInTable() {
180
+ var table = this.props.view.state.schema.nodes.table;
181
+ if (!this.$pos) {
182
+ return false;
183
+ }
184
+ return !!findParentNodeOfTypeClosestToPos(this.$pos, table);
185
+ }
175
186
  }, {
176
187
  key: "componentDidMount",
177
188
  value: function () {
@@ -359,6 +370,21 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
359
370
  offsetLeft: this.state.offsetLeft,
360
371
  wrappedLayout: this.wrappedLayout
361
372
  };
373
+ var nestedInTableHandleStyles = function nestedInTableHandleStyles(isNestedInTable) {
374
+ if (!isNestedInTable) {
375
+ return;
376
+ }
377
+ return {
378
+ left: {
379
+ left: "calc(".concat("var(--ds-space-025, 0.125em)", " * -0.5)"),
380
+ paddingLeft: '0px'
381
+ },
382
+ right: {
383
+ right: "calc(".concat("var(--ds-space-025, 0.125em)", " * -0.5)"),
384
+ paddingRight: '0px'
385
+ }
386
+ };
387
+ };
362
388
  return jsx("div", {
363
389
  ref: this.saveWrapper,
364
390
  css: wrapperStyle({
@@ -387,7 +413,8 @@ var ResizableMediaSingle = /*#__PURE__*/function (_React$Component) {
387
413
  return jsx("div", {
388
414
  contentEditable: false
389
415
  });
390
- }
416
+ },
417
+ handleStyles: nestedInTableHandleStyles(this.isNestedInTable())
391
418
  }), children));
392
419
  }
393
420
  }]);
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.38.2";
2
+ export var version = "187.38.5";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -4,7 +4,7 @@ import type { BasePluginOptions } from '../../../plugins/base';
4
4
  import type { EditorProps } from '../../../types/editor-props';
5
5
  import type { EditorPresetProps } from './types';
6
6
  import type { BlockTypePluginOptions } from '../../../plugins/block-type/types';
7
- import type { PlaceholderPluginOptions } from '../../../plugins/placeholder';
7
+ import type { PlaceholderPluginOptions } from '@atlaskit/editor-plugin-placeholder';
8
8
  import type { AnnotationProviders } from '../../../plugins/annotation';
9
9
  import type { TextFormattingOptions, HyperlinkPluginOptions, QuickInsertPluginOptions } from '@atlaskit/editor-common/types';
10
10
  import type { CodeBlockOptions } from '../../../plugins/code-block/types';
@@ -18,7 +18,6 @@ export { default as mediaPlugin } from './media';
18
18
  export { default as mentionsPlugin } from './mentions';
19
19
  export { default as panelPlugin } from './panel';
20
20
  export { default as pastePlugin } from './paste';
21
- export { default as placeholderPlugin } from './placeholder';
22
21
  export { default as placeholderTextPlugin } from './placeholder-text';
23
22
  export { default as quickInsertPlugin } from './quick-insert';
24
23
  export { default as saveOnEnterPlugin } from './save-on-enter';
@@ -6,5 +6,5 @@ import type { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/a
6
6
  export declare const showLinkingToolbar: import("@atlaskit/editor-common/types").Command;
7
7
  export declare const showLinkingToolbarWithMediaTypeCheck: Command;
8
8
  export declare const hideLinkingToolbar: (state: EditorState, dispatch?: CommandDispatch, view?: EditorView, focusFloatingToolbar?: boolean) => void;
9
- export declare const unlink: (editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
10
- export declare const setUrlToMedia: (url: string, inputMethod: INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
9
+ export declare const unlink: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
10
+ export declare const setUrlToMedia: (url: string, inputMethod: INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
@@ -58,5 +58,5 @@ declare class MediaSingleNodeView extends ReactNodeView<MediaSingleNodeViewProps
58
58
  render(props: MediaSingleNodeViewProps, forwardRef?: ForwardRef): jsx.JSX.Element;
59
59
  ignoreMutation(): boolean;
60
60
  }
61
- export declare const ReactMediaSingleNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, mediaOptions?: MediaOptions, pluginInjectionApi?: ExtractInjectionAPI<typeof mediaPlugin>) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaSingleNodeView;
61
+ export declare const ReactMediaSingleNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, mediaOptions?: MediaOptions) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaSingleNodeView;
62
62
  export {};
@@ -1,8 +1,8 @@
1
- import { UploadPreviewUpdateEventPayload, UploadParams, UploadErrorEventPayload, UploadEndEventPayload } from '@atlaskit/media-picker/types';
2
- import { MediaClientConfig } from '@atlaskit/media-core';
1
+ import type { UploadPreviewUpdateEventPayload, UploadParams, UploadErrorEventPayload, UploadEndEventPayload } from '@atlaskit/media-picker/types';
2
+ import type { MediaClientConfig } from '@atlaskit/media-core';
3
3
  import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
4
- import { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
5
- import { MediaState, CustomMediaPicker, MobileUploadEndEventPayload } from './types';
4
+ import type { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
5
+ import type { MediaState, CustomMediaPicker, MobileUploadEndEventPayload } from './types';
6
6
  export type PickerType = 'clipboard' | 'dropzone' | 'customMediaPicker';
7
7
  export type ExtendedComponentConfigs = {
8
8
  customMediaPicker: CustomMediaPicker;
@@ -1,4 +1,4 @@
1
1
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
2
  export declare const closeMediaAltTextMenu: import("@atlaskit/editor-common/types").Command;
3
- export declare const openMediaAltTextMenu: (editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
3
+ export declare const openMediaAltTextMenu: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
4
4
  export declare const updateAltText: (newAltText: string) => import("@atlaskit/editor-common/types").Command;
@@ -1,4 +1,4 @@
1
1
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
- export default function keymapPlugin(schema: Schema, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined): SafePlugin;
4
+ export default function keymapPlugin(schema: Schema, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
@@ -1,5 +1,5 @@
1
1
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import type { MediaOptions } from '../types';
3
3
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
- export declare function keymapPlugin(options?: MediaOptions, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined): SafePlugin;
4
+ export declare function keymapPlugin(options: MediaOptions | undefined, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;
5
5
  export default keymapPlugin;
@@ -53,8 +53,8 @@ export declare class MediaPluginStateImplementation implements MediaPluginState
53
53
  showEditingDialog?: boolean;
54
54
  mediaOptions?: MediaOptions;
55
55
  dispatch?: Dispatch;
56
- pluginInjectionApi?: ExtractInjectionAPI<typeof mediaPlugin>;
57
- constructor(state: EditorState, options: MediaPluginOptions, mediaOptions?: MediaOptions, newInsertionBehaviour?: boolean, dispatch?: Dispatch, pluginInjectionApi?: ExtractInjectionAPI<typeof mediaPlugin>);
56
+ pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined;
57
+ constructor(state: EditorState, options: MediaPluginOptions, mediaOptions: MediaOptions | undefined, newInsertionBehaviour: boolean | undefined, dispatch: Dispatch | undefined, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined);
58
58
  onContextIdentifierProvider: (_name: string, provider?: Promise<ContextIdentifierProvider>) => Promise<void>;
59
59
  setMediaProvider: (mediaProvider?: Promise<MediaProvider>) => Promise<void>;
60
60
  getMediaOptions: () => MediaPluginOptions;
@@ -68,7 +68,7 @@ export declare class MediaPluginStateImplementation implements MediaPluginState
68
68
  *
69
69
  * called when we insert a new file via the picker (connected via pickerfacade)
70
70
  */
71
- insertFile: (mediaState: MediaState, onMediaStateChanged: MediaStateEventSubscriber, pickerType?: string, pluginInjectionApi?: ExtractInjectionAPI<typeof mediaPlugin> | undefined) => void;
71
+ insertFile: (mediaState: MediaState, onMediaStateChanged: MediaStateEventSubscriber, pickerType?: string) => void;
72
72
  addPendingTask: (task: Promise<any>) => void;
73
73
  splitMediaGroup: () => boolean;
74
74
  onPopupPickerClose: () => void;
@@ -115,4 +115,4 @@ export declare class MediaPluginStateImplementation implements MediaPluginState
115
115
  updateAndDispatch(props: Partial<Pick<this, 'allowsUploads' | 'allUploadsFinished' | 'isFullscreen'>>): void;
116
116
  }
117
117
  export declare const getMediaPluginState: (state: EditorState) => MediaPluginState;
118
- export declare const createPlugin: (_schema: Schema, options: MediaPluginOptions, reactContext: () => {}, getIntl: () => IntlShape, dispatch?: Dispatch, mediaOptions?: MediaOptions, newInsertionBehaviour?: boolean, pluginInjectionApi?: ExtractInjectionAPI<typeof mediaPlugin>) => SafePlugin<MediaPluginState>;
118
+ export declare const createPlugin: (_schema: Schema, options: MediaPluginOptions, reactContext: () => {}, getIntl: () => IntlShape, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined, dispatch?: Dispatch, mediaOptions?: MediaOptions, newInsertionBehaviour?: boolean) => SafePlugin<MediaPluginState>;
@@ -5,7 +5,7 @@ import type { MediaToolbarBaseConfig } from '../types';
5
5
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
6
6
  import type { ForceFocusSelector } from '@atlaskit/editor-plugin-floating-toolbar';
7
7
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
8
- export declare const altTextButton: (intl: IntlShape, state: EditorState, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => FloatingToolbarButton<Command>;
8
+ export declare const altTextButton: (intl: IntlShape, state: EditorState, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => FloatingToolbarButton<Command>;
9
9
  export declare const altTextEditComponent: (options?: AltTextToolbarOptions) => FloatingToolbarCustom<Command>;
10
10
  export interface AltTextToolbarOptions {
11
11
  altTextValidator?: (value: string) => string[];
@@ -3,8 +3,8 @@ import type { Command } from '../../../types';
3
3
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
4
  export declare const DEFAULT_BORDER_COLOR = "#091e4224";
5
5
  export declare const DEFAULT_BORDER_SIZE = 2;
6
- export declare const changeInlineToMediaCard: (editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => Command;
7
- export declare const changeMediaCardToInline: (editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => Command;
6
+ export declare const changeInlineToMediaCard: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
7
+ export declare const changeMediaCardToInline: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
8
8
  export declare const removeInlineCard: Command;
9
- export declare const toggleBorderMark: (editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => Command;
10
- export declare const setBorderMark: (editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => (attrs: Partial<BorderMarkAttributes>) => Command;
9
+ export declare const toggleBorderMark: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
10
+ export declare const setBorderMark: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (attrs: Partial<BorderMarkAttributes>) => Command;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { MediaPluginState } from '../../pm-plugins/types';
3
- import { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
2
+ import type { MediaPluginState } from '../../pm-plugins/types';
3
+ import type { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
4
4
  type Props = {
5
5
  mediaState: MediaPluginState;
6
6
  isOpen?: boolean;
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { MediaPluginState } from '../../pm-plugins/types';
3
- import { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
4
- import { EditorAppearance } from '../../../../types/editor-appearance';
2
+ import type { MediaPluginState } from '../../pm-plugins/types';
3
+ import type { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
4
+ import type { EditorAppearance } from '../../../../types/editor-appearance';
5
5
  type Props = {
6
6
  mediaState: MediaPluginState;
7
7
  isActive: boolean;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { ClipboardConfig, BrowserConfig, DropzoneConfig } from '@atlaskit/media-picker/types';
3
- import { MediaClientConfig } from '@atlaskit/media-core';
2
+ import type { ClipboardConfig, BrowserConfig, DropzoneConfig } from '@atlaskit/media-picker/types';
3
+ import type { MediaClientConfig } from '@atlaskit/media-core';
4
4
  import PickerFacade from '../../picker-facade';
5
- import { MediaPluginState } from '../../pm-plugins/types';
5
+ import type { MediaPluginState } from '../../pm-plugins/types';
6
6
  export interface ChildrenProps {
7
7
  config: ClipboardConfig | BrowserConfig | DropzoneConfig;
8
8
  mediaClientConfig: MediaClientConfig;
@@ -7,7 +7,6 @@ import type { Props } from './types';
7
7
  import type { Dimensions, HandleResize, HandleResizeStart, Position, Snap } from '@atlaskit/editor-common/resizer';
8
8
  import type { GuidelineConfig, RelativeGuides, GuidelineSnapsReference } from '@atlaskit/editor-common/guideline';
9
9
  type State = {
10
- offsetLeft: number;
11
10
  isVideoFile: boolean;
12
11
  resizedPctWidth?: number;
13
12
  isResizing: boolean;
@@ -16,11 +15,10 @@ type State = {
16
15
  relativeGuides: RelativeGuides;
17
16
  guidelines: GuidelineConfig[];
18
17
  };
19
- export declare const resizerNextTestId = "mediaSingle.resizerNext.testid";
20
18
  type ResizableMediaSingleNextProps = Props;
19
+ export declare const resizerNextTestId = "mediaSingle.resizerNext.testid";
21
20
  declare class ResizableMediaSingleNext extends React.Component<ResizableMediaSingleNextProps, State> {
22
21
  private lastSnappedGuidelineKeys;
23
- private wrapper?;
24
22
  constructor(props: ResizableMediaSingleNextProps);
25
23
  componentDidUpdate(prevProps: Props): boolean;
26
24
  componentDidMount(): Promise<void>;
@@ -41,7 +39,6 @@ declare class ResizableMediaSingleNext extends React.Component<ResizableMediaSin
41
39
  };
42
40
  calcUnwrappedLayout: (width: number, containerWidth: number, contentWidth: number, fullWidthMode?: boolean, isNestedNode?: boolean) => 'center' | 'wide' | 'full-width';
43
41
  calcPxHeight: (newWidth: number) => number;
44
- private saveWrapper;
45
42
  private displayGuideline;
46
43
  private setIsResizing;
47
44
  private updateSizeInPluginState;
@@ -14,6 +14,7 @@ export default class ResizableMediaSingle extends React.Component<Props, State>
14
14
  componentDidUpdate(prevProps: Props): boolean;
15
15
  private displayGrid;
16
16
  get wrappedLayout(): boolean;
17
+ isNestedInTable(): boolean;
17
18
  componentDidMount(): Promise<void>;
18
19
  UNSAFE_componentWillReceiveProps(nextProps: Props): void;
19
20
  checkVideoFile(viewMediaClientConfig?: MediaClientConfig): Promise<void>;
@@ -14,7 +14,7 @@ export declare const canInsertMediaInline: (state: EditorState) => boolean;
14
14
  * @param mediaState Media file to be added to the editor
15
15
  * @param collection Collection for the media to be added
16
16
  */
17
- export declare const insertMediaInlineNode: (editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => (view: EditorView, mediaState: MediaState, collection: string, inputMethod?: InputMethodInsertMedia) => boolean;
17
+ export declare const insertMediaInlineNode: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (view: EditorView, mediaState: MediaState, collection: string, inputMethod?: InputMethodInsertMedia) => boolean;
18
18
  /**
19
19
  * Insert a media into an existing media group
20
20
  * or create a new media group to insert the new media.
@@ -22,7 +22,7 @@ export declare const insertMediaInlineNode: (editorAnalyticsAPI?: EditorAnalytic
22
22
  * @param mediaStates Media files to be added to the editor
23
23
  * @param collection Collection for the media to be added
24
24
  */
25
- export declare const insertMediaGroupNode: (editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => (view: EditorView, mediaStates: MediaState[], collection: string, inputMethod?: InputMethodInsertMedia) => void;
25
+ export declare const insertMediaGroupNode: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (view: EditorView, mediaStates: MediaState[], collection: string, inputMethod?: InputMethodInsertMedia) => void;
26
26
  /**
27
27
  * Return position of media to be inserted, if it is inside a list
28
28
  * @param content Content to be inserted
@@ -14,7 +14,7 @@ export interface MediaSingleState extends MediaState {
14
14
  contextId?: string;
15
15
  }
16
16
  export declare const isMediaSingle: (schema: Schema, fileMimeType?: string) => boolean;
17
- export declare const insertMediaAsMediaSingle: (view: EditorView, node: PMNode, inputMethod: InputMethodInsertMedia, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => boolean;
17
+ export declare const insertMediaAsMediaSingle: (view: EditorView, node: PMNode, inputMethod: InputMethodInsertMedia, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => boolean;
18
18
  export declare const insertMediaSingleNode: (view: EditorView, mediaState: MediaState, inputMethod?: InputMethodInsertMedia, collection?: string, alignLeftOnInsert?: boolean, newInsertionBehaviour?: boolean, widthPluginState?: WidthPluginState | undefined, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => boolean;
19
19
  export declare const createMediaSingleNode: (schema: Schema, collection: string, maxWidth?: number, minWidth?: number, alignLeftOnInsert?: boolean) => (mediaState: MediaSingleState) => PMNode;
20
20
  export declare function transformSliceForMedia(slice: Slice, schema: Schema): (selection: Selection) => Slice;
@@ -4,7 +4,7 @@ import type { BasePluginOptions } from '../../../plugins/base';
4
4
  import type { EditorProps } from '../../../types/editor-props';
5
5
  import type { EditorPresetProps } from './types';
6
6
  import type { BlockTypePluginOptions } from '../../../plugins/block-type/types';
7
- import type { PlaceholderPluginOptions } from '../../../plugins/placeholder';
7
+ import type { PlaceholderPluginOptions } from '@atlaskit/editor-plugin-placeholder';
8
8
  import type { AnnotationProviders } from '../../../plugins/annotation';
9
9
  import type { TextFormattingOptions, HyperlinkPluginOptions, QuickInsertPluginOptions } from '@atlaskit/editor-common/types';
10
10
  import type { CodeBlockOptions } from '../../../plugins/code-block/types';
@@ -18,7 +18,6 @@ export { default as mediaPlugin } from './media';
18
18
  export { default as mentionsPlugin } from './mentions';
19
19
  export { default as panelPlugin } from './panel';
20
20
  export { default as pastePlugin } from './paste';
21
- export { default as placeholderPlugin } from './placeholder';
22
21
  export { default as placeholderTextPlugin } from './placeholder-text';
23
22
  export { default as quickInsertPlugin } from './quick-insert';
24
23
  export { default as saveOnEnterPlugin } from './save-on-enter';
@@ -6,5 +6,5 @@ import type { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/a
6
6
  export declare const showLinkingToolbar: import("@atlaskit/editor-common/types").Command;
7
7
  export declare const showLinkingToolbarWithMediaTypeCheck: Command;
8
8
  export declare const hideLinkingToolbar: (state: EditorState, dispatch?: CommandDispatch, view?: EditorView, focusFloatingToolbar?: boolean) => void;
9
- export declare const unlink: (editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
10
- export declare const setUrlToMedia: (url: string, inputMethod: INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
9
+ export declare const unlink: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
10
+ export declare const setUrlToMedia: (url: string, inputMethod: INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.MANUAL, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
@@ -58,5 +58,5 @@ declare class MediaSingleNodeView extends ReactNodeView<MediaSingleNodeViewProps
58
58
  render(props: MediaSingleNodeViewProps, forwardRef?: ForwardRef): jsx.JSX.Element;
59
59
  ignoreMutation(): boolean;
60
60
  }
61
- export declare const ReactMediaSingleNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, mediaOptions?: MediaOptions, pluginInjectionApi?: ExtractInjectionAPI<typeof mediaPlugin>) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaSingleNodeView;
61
+ export declare const ReactMediaSingleNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined, dispatchAnalyticsEvent?: DispatchAnalyticsEvent, mediaOptions?: MediaOptions) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaSingleNodeView;
62
62
  export {};
@@ -1,8 +1,8 @@
1
- import { UploadPreviewUpdateEventPayload, UploadParams, UploadErrorEventPayload, UploadEndEventPayload } from '@atlaskit/media-picker/types';
2
- import { MediaClientConfig } from '@atlaskit/media-core';
1
+ import type { UploadPreviewUpdateEventPayload, UploadParams, UploadErrorEventPayload, UploadEndEventPayload } from '@atlaskit/media-picker/types';
2
+ import type { MediaClientConfig } from '@atlaskit/media-core';
3
3
  import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
4
- import { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
5
- import { MediaState, CustomMediaPicker, MobileUploadEndEventPayload } from './types';
4
+ import type { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
5
+ import type { MediaState, CustomMediaPicker, MobileUploadEndEventPayload } from './types';
6
6
  export type PickerType = 'clipboard' | 'dropzone' | 'customMediaPicker';
7
7
  export type ExtendedComponentConfigs = {
8
8
  customMediaPicker: CustomMediaPicker;
@@ -1,4 +1,4 @@
1
1
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
2
  export declare const closeMediaAltTextMenu: import("@atlaskit/editor-common/types").Command;
3
- export declare const openMediaAltTextMenu: (editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
3
+ export declare const openMediaAltTextMenu: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
4
4
  export declare const updateAltText: (newAltText: string) => import("@atlaskit/editor-common/types").Command;
@@ -1,4 +1,4 @@
1
1
  import type { Schema } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
3
3
  import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
4
- export default function keymapPlugin(schema: Schema, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined): SafePlugin;
4
+ export default function keymapPlugin(schema: Schema, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): SafePlugin;