@atlaskit/editor-core 193.5.0 → 193.5.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 (48) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/composable-editor/package.json +1 -1
  3. package/dist/cjs/ui/Appearance/Comment/Comment.js +6 -6
  4. package/dist/cjs/ui/ContextPanel/index.js +25 -21
  5. package/dist/cjs/ui/WithHelpTrigger/index.js +2 -1
  6. package/dist/cjs/version-wrapper.js +1 -1
  7. package/dist/es2019/ui/Appearance/Comment/Comment.js +6 -6
  8. package/dist/es2019/ui/ContextPanel/index.js +27 -23
  9. package/dist/es2019/version-wrapper.js +1 -1
  10. package/dist/esm/ui/Appearance/Comment/Comment.js +6 -6
  11. package/dist/esm/ui/ContextPanel/index.js +25 -21
  12. package/dist/esm/ui/WithHelpTrigger/index.js +2 -1
  13. package/dist/esm/version-wrapper.js +1 -1
  14. package/dist/types/create-editor/ReactEditorView.d.ts +3 -2
  15. package/dist/types/create-editor/WithEditorView.d.ts +1 -1
  16. package/dist/types/create-editor/create-preset.d.ts +238 -18
  17. package/dist/types/presets/default.d.ts +190 -14
  18. package/dist/types/presets/universal.d.ts +238 -18
  19. package/dist/types/presets/useUniversalPreset.d.ts +872 -652
  20. package/dist/types/ui/Appearance/Comment/Comment.d.ts +2 -2
  21. package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +2 -2
  22. package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
  23. package/dist/types/ui/ChromeCollapsed/index.d.ts +2 -2
  24. package/dist/types/ui/ToolbarHelp/index.d.ts +2 -2
  25. package/dist/types/ui/WithHelpTrigger/index.d.ts +4 -0
  26. package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +3 -2
  27. package/dist/types-ts4.5/create-editor/WithEditorView.d.ts +1 -1
  28. package/dist/types-ts4.5/create-editor/create-preset.d.ts +273 -13
  29. package/dist/types-ts4.5/presets/default.d.ts +218 -10
  30. package/dist/types-ts4.5/presets/universal.d.ts +273 -13
  31. package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +920 -660
  32. package/dist/types-ts4.5/ui/Appearance/Comment/Comment.d.ts +2 -2
  33. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +2 -2
  34. package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
  35. package/dist/types-ts4.5/ui/ChromeCollapsed/index.d.ts +2 -2
  36. package/dist/types-ts4.5/ui/ToolbarHelp/index.d.ts +2 -2
  37. package/dist/types-ts4.5/ui/WithHelpTrigger/index.d.ts +4 -0
  38. package/editor/package.json +1 -1
  39. package/editor-context/package.json +1 -1
  40. package/element-browser/package.json +1 -1
  41. package/labs-next/package.json +1 -1
  42. package/messages/package.json +1 -1
  43. package/package.json +8 -8
  44. package/preset-default/package.json +1 -1
  45. package/preset-universal/package.json +1 -1
  46. package/test-utils/package.json +1 -1
  47. package/use-preset/package.json +1 -1
  48. package/version-wrapper/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-core
2
2
 
3
+ ## 193.5.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83044](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83044) [`cdab77009f9e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/cdab77009f9e) - Fix leftover react 18 type issues in editor-core, editor-plugin-extension and date
8
+
9
+ ## 193.5.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
14
+
3
15
  ## 193.5.0
4
16
 
5
17
  ### Minor Changes
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/composable-editor.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/composable-editor.d.ts"
12
12
  ]
@@ -42,7 +42,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
42
42
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
43
43
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
44
44
  var CommentEditorMargin = 14;
45
- var commentEditorStyle = (0, _react2.css)({
45
+ var commentEditorStyles = (0, _react2.css)({
46
46
  display: 'flex',
47
47
  flexDirection: 'column',
48
48
  '.less-margin .ProseMirror': {
@@ -72,7 +72,7 @@ var ContentArea = (0, _ContentStyles.createEditorContentStyle)((0, _react2.css)(
72
72
  padding: "var(--ds-space-250, 20px)"
73
73
  }, _commonStyles.tableCommentEditorStyles));
74
74
  ContentArea.displayName = 'ContentArea';
75
- var secondaryToolbarStyle = (0, _react2.css)({
75
+ var secondaryToolbarStyles = (0, _react2.css)({
76
76
  boxSizing: 'border-box',
77
77
  justifyContent: 'flex-end',
78
78
  alignItems: 'center',
@@ -146,7 +146,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
146
146
  return (0, _react2.jsx)(_WithFlash.default, {
147
147
  animate: maxContentSizeReached
148
148
  }, (0, _react2.jsx)("div", {
149
- css: [commentEditorStyle, (0, _react2.css)({
149
+ css: [commentEditorStyles, (0, _react2.css)({
150
150
  minHeight: "".concat(minHeight, "px")
151
151
  })],
152
152
  className: "akEditor",
@@ -211,7 +211,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
211
211
  pluginHooks: pluginHooks
212
212
  }), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
213
213
  }))), showSecondaryToolbar && (0, _react2.jsx)("div", {
214
- css: secondaryToolbarStyle,
214
+ css: secondaryToolbarStyles,
215
215
  "data-testid": "ak-editor-secondary-toolbar"
216
216
  }, (0, _react2.jsx)(_buttonGroup.default, null, !!onSave && (0, _react2.jsx)(_customThemeButton.default, {
217
217
  appearance: "primary",
@@ -330,7 +330,7 @@ var EditorNext = function EditorNext(props) {
330
330
  return (0, _react2.jsx)(_WithFlash.default, {
331
331
  animate: maxContentSizeReached
332
332
  }, (0, _react2.jsx)("div", {
333
- css: [commentEditorStyle, (0, _react2.css)({
333
+ css: [commentEditorStyles, (0, _react2.css)({
334
334
  minHeight: "".concat(minHeight, "px")
335
335
  })],
336
336
  className: "akEditor",
@@ -395,7 +395,7 @@ var EditorNext = function EditorNext(props) {
395
395
  pluginHooks: pluginHooks
396
396
  }), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
397
397
  }))), showSecondaryToolbar && (0, _react2.jsx)("div", {
398
- css: secondaryToolbarStyle,
398
+ css: secondaryToolbarStyles,
399
399
  "data-testid": "ak-editor-secondary-toolbar"
400
400
  }, (0, _react2.jsx)(_buttonGroup.default, null, !!onSave && (0, _react2.jsx)(_customThemeButton.default, {
401
401
  appearance: "primary",
@@ -233,27 +233,31 @@ function ContextPanelWithActions(_ref2) {
233
233
  editorView: editorView
234
234
  }, props));
235
235
  }
236
- return (0, _react2.jsx)(_WithPluginState.default, {
237
- eventDispatcher: eventDispatcher,
238
- plugins: {
239
- contextPanel: contextPanelPluginKey,
240
- widthState: widthPluginKey
241
- },
242
- render: function render(_ref3) {
243
- var contextPanel = _ref3.contextPanel,
244
- widthState = _ref3.widthState;
245
- var firstContent = contextPanel && contextPanel.contents.find(Boolean);
246
- var editorWidth = _objectSpread(_objectSpread({}, widthState), {}, {
247
- containerWidth: width,
248
- contentBreakoutModes: editorView ? (0, _document.getChildBreakoutModes)(editorView.state.doc, editorView.state.schema) : []
249
- });
250
- return (0, _react2.jsx)(SwappableContentArea, (0, _extends2.default)({}, props, {
251
- editorView: editorView,
252
- pluginContent: firstContent,
253
- editorWidth: editorWidth
254
- }));
255
- }
256
- });
236
+ return (
237
+ // @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
238
+ // This error was introduced after upgrading to TypeScript 5
239
+ (0, _react2.jsx)(_WithPluginState.default, {
240
+ eventDispatcher: eventDispatcher,
241
+ plugins: {
242
+ contextPanel: contextPanelPluginKey,
243
+ widthState: widthPluginKey
244
+ },
245
+ render: function render(_ref3) {
246
+ var contextPanel = _ref3.contextPanel,
247
+ widthState = _ref3.widthState;
248
+ var firstContent = contextPanel && contextPanel.contents.find(Boolean);
249
+ var editorWidth = _objectSpread(_objectSpread({}, widthState), {}, {
250
+ containerWidth: width,
251
+ contentBreakoutModes: editorView ? (0, _document.getChildBreakoutModes)(editorView.state.doc, editorView.state.schema) : []
252
+ });
253
+ return (0, _react2.jsx)(SwappableContentArea, (0, _extends2.default)({}, props, {
254
+ editorView: editorView,
255
+ pluginContent: firstContent,
256
+ editorWidth: editorWidth
257
+ }));
258
+ }
259
+ })
260
+ );
257
261
  }
258
262
  function ContextPanel(props) {
259
263
  return (0, _react2.jsx)(_WithEditorActions.default, {
@@ -31,7 +31,8 @@ var WithHelpTrigger = exports.default = /*#__PURE__*/function (_React$Component)
31
31
  }
32
32
  _this = _super.call.apply(_super, [this].concat(args));
33
33
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "openHelp", function () {
34
- var editorActions = _this.context.editorActions;
34
+ var _ref = _this.context,
35
+ editorActions = _ref.editorActions;
35
36
  var dispatch = (0, _eventDispatcher.createDispatch)(editorActions.eventDispatcher);
36
37
  dispatch(_utils.analyticsEventKey, {
37
38
  payload: {
@@ -5,4 +5,4 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/editor-core";
8
- var version = exports.version = "193.5.0";
8
+ var version = exports.version = "193.5.5";
@@ -24,7 +24,7 @@ import Toolbar from '../../Toolbar';
24
24
  import WithFlash from '../../WithFlash';
25
25
  import { MainToolbar, mainToolbarCustomComponentsSlotStyle } from './Toolbar';
26
26
  const CommentEditorMargin = 14;
27
- const commentEditorStyle = css({
27
+ const commentEditorStyles = css({
28
28
  display: 'flex',
29
29
  flexDirection: 'column',
30
30
  '.less-margin .ProseMirror': {
@@ -54,7 +54,7 @@ const ContentArea = createEditorContentStyle(css({
54
54
  padding: "var(--ds-space-250, 20px)"
55
55
  }, tableCommentEditorStyles));
56
56
  ContentArea.displayName = 'ContentArea';
57
- const secondaryToolbarStyle = css({
57
+ const secondaryToolbarStyles = css({
58
58
  boxSizing: 'border-box',
59
59
  justifyContent: 'flex-end',
60
60
  alignItems: 'center',
@@ -125,7 +125,7 @@ class Editor extends React.Component {
125
125
  return jsx(WithFlash, {
126
126
  animate: maxContentSizeReached
127
127
  }, jsx("div", {
128
- css: [commentEditorStyle, css({
128
+ css: [commentEditorStyles, css({
129
129
  minHeight: `${minHeight}px`
130
130
  })],
131
131
  className: "akEditor",
@@ -189,7 +189,7 @@ class Editor extends React.Component {
189
189
  pluginHooks: pluginHooks
190
190
  }), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
191
191
  }))), showSecondaryToolbar && jsx("div", {
192
- css: secondaryToolbarStyle,
192
+ css: secondaryToolbarStyles,
193
193
  "data-testid": "ak-editor-secondary-toolbar"
194
194
  }, jsx(ButtonGroup, null, !!onSave && jsx(Button, {
195
195
  appearance: "primary",
@@ -300,7 +300,7 @@ const EditorNext = props => {
300
300
  return jsx(WithFlash, {
301
301
  animate: maxContentSizeReached
302
302
  }, jsx("div", {
303
- css: [commentEditorStyle, css({
303
+ css: [commentEditorStyles, css({
304
304
  minHeight: `${minHeight}px`
305
305
  })],
306
306
  className: "akEditor",
@@ -364,7 +364,7 @@ const EditorNext = props => {
364
364
  pluginHooks: pluginHooks
365
365
  }), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
366
366
  }))), showSecondaryToolbar && jsx("div", {
367
- css: secondaryToolbarStyle,
367
+ css: secondaryToolbarStyles,
368
368
  "data-testid": "ak-editor-secondary-toolbar"
369
369
  }, jsx(ButtonGroup, null, !!onSave && jsx(Button, {
370
370
  appearance: "primary",
@@ -206,29 +206,33 @@ function ContextPanelWithActions({
206
206
  editorView: editorView
207
207
  }, props));
208
208
  }
209
- return jsx(WithPluginState, {
210
- eventDispatcher: eventDispatcher,
211
- plugins: {
212
- contextPanel: contextPanelPluginKey,
213
- widthState: widthPluginKey
214
- },
215
- render: ({
216
- contextPanel,
217
- widthState
218
- }) => {
219
- const firstContent = contextPanel && contextPanel.contents.find(Boolean);
220
- const editorWidth = {
221
- ...widthState,
222
- containerWidth: width,
223
- contentBreakoutModes: editorView ? getChildBreakoutModes(editorView.state.doc, editorView.state.schema) : []
224
- };
225
- return jsx(SwappableContentArea, _extends({}, props, {
226
- editorView: editorView,
227
- pluginContent: firstContent,
228
- editorWidth: editorWidth
229
- }));
230
- }
231
- });
209
+ return (
210
+ // @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
211
+ // This error was introduced after upgrading to TypeScript 5
212
+ jsx(WithPluginState, {
213
+ eventDispatcher: eventDispatcher,
214
+ plugins: {
215
+ contextPanel: contextPanelPluginKey,
216
+ widthState: widthPluginKey
217
+ },
218
+ render: ({
219
+ contextPanel,
220
+ widthState
221
+ }) => {
222
+ const firstContent = contextPanel && contextPanel.contents.find(Boolean);
223
+ const editorWidth = {
224
+ ...widthState,
225
+ containerWidth: width,
226
+ contentBreakoutModes: editorView ? getChildBreakoutModes(editorView.state.doc, editorView.state.schema) : []
227
+ };
228
+ return jsx(SwappableContentArea, _extends({}, props, {
229
+ editorView: editorView,
230
+ pluginContent: firstContent,
231
+ editorWidth: editorWidth
232
+ }));
233
+ }
234
+ })
235
+ );
232
236
  }
233
237
  export default function ContextPanel(props) {
234
238
  return jsx(WithEditorActions, {
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "193.5.0";
2
+ export const version = "193.5.5";
@@ -33,7 +33,7 @@ import Toolbar from '../../Toolbar';
33
33
  import WithFlash from '../../WithFlash';
34
34
  import { MainToolbar, mainToolbarCustomComponentsSlotStyle } from './Toolbar';
35
35
  var CommentEditorMargin = 14;
36
- var commentEditorStyle = css({
36
+ var commentEditorStyles = css({
37
37
  display: 'flex',
38
38
  flexDirection: 'column',
39
39
  '.less-margin .ProseMirror': {
@@ -63,7 +63,7 @@ var ContentArea = createEditorContentStyle(css({
63
63
  padding: "var(--ds-space-250, 20px)"
64
64
  }, tableCommentEditorStyles));
65
65
  ContentArea.displayName = 'ContentArea';
66
- var secondaryToolbarStyle = css({
66
+ var secondaryToolbarStyles = css({
67
67
  boxSizing: 'border-box',
68
68
  justifyContent: 'flex-end',
69
69
  alignItems: 'center',
@@ -137,7 +137,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
137
137
  return jsx(WithFlash, {
138
138
  animate: maxContentSizeReached
139
139
  }, jsx("div", {
140
- css: [commentEditorStyle, css({
140
+ css: [commentEditorStyles, css({
141
141
  minHeight: "".concat(minHeight, "px")
142
142
  })],
143
143
  className: "akEditor",
@@ -202,7 +202,7 @@ var Editor = /*#__PURE__*/function (_React$Component) {
202
202
  pluginHooks: pluginHooks
203
203
  }), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
204
204
  }))), showSecondaryToolbar && jsx("div", {
205
- css: secondaryToolbarStyle,
205
+ css: secondaryToolbarStyles,
206
206
  "data-testid": "ak-editor-secondary-toolbar"
207
207
  }, jsx(ButtonGroup, null, !!onSave && jsx(Button, {
208
208
  appearance: "primary",
@@ -321,7 +321,7 @@ var EditorNext = function EditorNext(props) {
321
321
  return jsx(WithFlash, {
322
322
  animate: maxContentSizeReached
323
323
  }, jsx("div", {
324
- css: [commentEditorStyle, css({
324
+ css: [commentEditorStyles, css({
325
325
  minHeight: "".concat(minHeight, "px")
326
326
  })],
327
327
  className: "akEditor",
@@ -386,7 +386,7 @@ var EditorNext = function EditorNext(props) {
386
386
  pluginHooks: pluginHooks
387
387
  }), editorDOMElement, customContentComponents && 'after' in customContentComponents ? customContentComponents.after : null);
388
388
  }))), showSecondaryToolbar && jsx("div", {
389
- css: secondaryToolbarStyle,
389
+ css: secondaryToolbarStyles,
390
390
  "data-testid": "ak-editor-secondary-toolbar"
391
391
  }, jsx(ButtonGroup, null, !!onSave && jsx(Button, {
392
392
  appearance: "primary",
@@ -225,27 +225,31 @@ function ContextPanelWithActions(_ref2) {
225
225
  editorView: editorView
226
226
  }, props));
227
227
  }
228
- return jsx(WithPluginState, {
229
- eventDispatcher: eventDispatcher,
230
- plugins: {
231
- contextPanel: contextPanelPluginKey,
232
- widthState: widthPluginKey
233
- },
234
- render: function render(_ref3) {
235
- var contextPanel = _ref3.contextPanel,
236
- widthState = _ref3.widthState;
237
- var firstContent = contextPanel && contextPanel.contents.find(Boolean);
238
- var editorWidth = _objectSpread(_objectSpread({}, widthState), {}, {
239
- containerWidth: width,
240
- contentBreakoutModes: editorView ? getChildBreakoutModes(editorView.state.doc, editorView.state.schema) : []
241
- });
242
- return jsx(SwappableContentArea, _extends({}, props, {
243
- editorView: editorView,
244
- pluginContent: firstContent,
245
- editorWidth: editorWidth
246
- }));
247
- }
248
- });
228
+ return (
229
+ // @ts-ignore - 'WithPluginState' cannot be used as a JSX component.
230
+ // This error was introduced after upgrading to TypeScript 5
231
+ jsx(WithPluginState, {
232
+ eventDispatcher: eventDispatcher,
233
+ plugins: {
234
+ contextPanel: contextPanelPluginKey,
235
+ widthState: widthPluginKey
236
+ },
237
+ render: function render(_ref3) {
238
+ var contextPanel = _ref3.contextPanel,
239
+ widthState = _ref3.widthState;
240
+ var firstContent = contextPanel && contextPanel.contents.find(Boolean);
241
+ var editorWidth = _objectSpread(_objectSpread({}, widthState), {}, {
242
+ containerWidth: width,
243
+ contentBreakoutModes: editorView ? getChildBreakoutModes(editorView.state.doc, editorView.state.schema) : []
244
+ });
245
+ return jsx(SwappableContentArea, _extends({}, props, {
246
+ editorView: editorView,
247
+ pluginContent: firstContent,
248
+ editorWidth: editorWidth
249
+ }));
250
+ }
251
+ })
252
+ );
249
253
  }
250
254
  export default function ContextPanel(props) {
251
255
  return jsx(WithEditorActions, {
@@ -24,7 +24,8 @@ var WithHelpTrigger = /*#__PURE__*/function (_React$Component) {
24
24
  }
25
25
  _this = _super.call.apply(_super, [this].concat(args));
26
26
  _defineProperty(_assertThisInitialized(_this), "openHelp", function () {
27
- var editorActions = _this.context.editorActions;
27
+ var _ref = _this.context,
28
+ editorActions = _ref.editorActions;
28
29
  var dispatch = createDispatch(editorActions.eventDispatcher);
29
30
  dispatch(analyticsEventKey, {
30
31
  payload: {
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "193.5.0";
2
+ export var version = "193.5.5";
@@ -74,6 +74,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
74
74
  static contextTypes: {
75
75
  getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<(...args: any[]) => any>;
76
76
  };
77
+ context: EditorReactContext;
77
78
  private canDispatchTransactions;
78
79
  private focusTimeoutId?;
79
80
  private reliabilityInterval?;
@@ -116,7 +117,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
116
117
  private editor;
117
118
  render(): JSX.Element;
118
119
  }
119
- declare const _default: React.FC<import("react-intl-next").WithIntlProps<EditorViewProps & WrappedComponentProps<"intl">>> & {
120
- WrappedComponent: React.ComponentType<EditorViewProps & WrappedComponentProps<"intl">>;
120
+ declare const _default: React.FC<import("react-intl-next").WithIntlProps<EditorViewProps & WrappedComponentProps>> & {
121
+ WrappedComponent: React.ComponentType<EditorViewProps & WrappedComponentProps>;
121
122
  };
122
123
  export default _default;
@@ -3,4 +3,4 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  export interface WithEditorViewInternalProps {
4
4
  editorView?: EditorView | undefined;
5
5
  }
6
- export declare const WithEditorView: <P extends WithEditorViewInternalProps>(WrappedComponent: React.ComponentType<React.PropsWithChildren<P>>) => (props: React.PropsWithChildren<Omit<P, "editorView">>) => JSX.Element;
6
+ export declare const WithEditorView: <P extends WithEditorViewInternalProps>(WrappedComponent: React.ComponentType<React.PropsWithChildren<P>>) => (props: React.PropsWithChildren<Omit<P, keyof WithEditorViewInternalProps>>) => JSX.Element;