@atlaskit/editor-core 188.0.12 → 188.1.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 (91) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/plugins/annotation/toolbar.js +5 -23
  3. package/dist/cjs/plugins/code-block/index.js +3 -3
  4. package/dist/cjs/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.js +2 -2
  5. package/dist/cjs/plugins/help-dialog/index.js +3 -3
  6. package/dist/cjs/plugins/help-dialog/ui/index.js +21 -26
  7. package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +4 -4
  8. package/dist/cjs/plugins/media/index.js +12 -6
  9. package/dist/cjs/plugins/media/utils/media-common.js +7 -109
  10. package/dist/cjs/plugins/media/utils/media-single.js +7 -68
  11. package/dist/cjs/plugins/panel/index.js +13 -13
  12. package/dist/cjs/plugins/paste/handlers.js +4 -4
  13. package/dist/cjs/plugins/paste/plugins/media.js +181 -0
  14. package/dist/cjs/plugins/paste/pm-plugins/analytics.js +2 -2
  15. package/dist/cjs/plugins/paste/pm-plugins/main.js +6 -7
  16. package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +3 -3
  17. package/dist/cjs/ui/Alignment/index.js +1 -1
  18. package/dist/cjs/version-wrapper.js +1 -1
  19. package/dist/es2019/plugins/annotation/toolbar.js +2 -18
  20. package/dist/es2019/plugins/code-block/index.js +3 -3
  21. package/dist/es2019/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.js +1 -1
  22. package/dist/es2019/plugins/help-dialog/index.js +1 -1
  23. package/dist/es2019/plugins/help-dialog/ui/index.js +8 -13
  24. package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +1 -1
  25. package/dist/es2019/plugins/media/index.js +13 -6
  26. package/dist/es2019/plugins/media/utils/media-common.js +2 -107
  27. package/dist/es2019/plugins/media/utils/media-single.js +6 -72
  28. package/dist/es2019/plugins/panel/index.js +13 -13
  29. package/dist/es2019/plugins/paste/handlers.js +4 -4
  30. package/dist/es2019/plugins/paste/plugins/media.js +176 -0
  31. package/dist/es2019/plugins/paste/pm-plugins/analytics.js +2 -2
  32. package/dist/es2019/plugins/paste/pm-plugins/main.js +3 -4
  33. package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +3 -3
  34. package/dist/es2019/ui/Alignment/index.js +1 -1
  35. package/dist/es2019/version-wrapper.js +1 -1
  36. package/dist/esm/plugins/annotation/toolbar.js +2 -18
  37. package/dist/esm/plugins/code-block/index.js +3 -3
  38. package/dist/esm/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.js +1 -1
  39. package/dist/esm/plugins/help-dialog/index.js +1 -1
  40. package/dist/esm/plugins/help-dialog/ui/index.js +8 -13
  41. package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +1 -1
  42. package/dist/esm/plugins/media/index.js +13 -6
  43. package/dist/esm/plugins/media/utils/media-common.js +2 -106
  44. package/dist/esm/plugins/media/utils/media-single.js +6 -66
  45. package/dist/esm/plugins/panel/index.js +13 -13
  46. package/dist/esm/plugins/paste/handlers.js +4 -4
  47. package/dist/esm/plugins/paste/plugins/media.js +172 -0
  48. package/dist/esm/plugins/paste/pm-plugins/analytics.js +2 -2
  49. package/dist/esm/plugins/paste/pm-plugins/main.js +3 -4
  50. package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +3 -3
  51. package/dist/esm/ui/Alignment/index.js +1 -1
  52. package/dist/esm/version-wrapper.js +1 -1
  53. package/dist/types/labs/next/presets/default.d.ts +6 -0
  54. package/dist/types/plugins/annotation/toolbar.d.ts +0 -17
  55. package/dist/types/plugins/help-dialog/index.d.ts +2 -15
  56. package/dist/types/plugins/media/next-plugin-type.d.ts +4 -0
  57. package/dist/types/plugins/media/utils/media-common.d.ts +2 -10
  58. package/dist/types/plugins/media/utils/media-single.d.ts +2 -4
  59. package/dist/types/plugins/paste/handlers.d.ts +2 -2
  60. package/dist/types/plugins/paste/index.d.ts +5 -2
  61. package/dist/types/plugins/paste/plugins/media.d.ts +12 -0
  62. package/dist/types/plugins/paste/pm-plugins/analytics.d.ts +2 -2
  63. package/dist/types/plugins/paste/pm-plugins/main.d.ts +2 -2
  64. package/dist/types/ui/Alignment/index.d.ts +2 -2
  65. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  66. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  67. package/dist/types-ts4.5/labs/next/presets/default.d.ts +6 -0
  68. package/dist/types-ts4.5/plugins/annotation/toolbar.d.ts +0 -17
  69. package/dist/types-ts4.5/plugins/help-dialog/index.d.ts +2 -15
  70. package/dist/types-ts4.5/plugins/media/next-plugin-type.d.ts +4 -0
  71. package/dist/types-ts4.5/plugins/media/utils/media-common.d.ts +2 -10
  72. package/dist/types-ts4.5/plugins/media/utils/media-single.d.ts +2 -4
  73. package/dist/types-ts4.5/plugins/paste/handlers.d.ts +2 -2
  74. package/dist/types-ts4.5/plugins/paste/index.d.ts +5 -2
  75. package/dist/types-ts4.5/plugins/paste/plugins/media.d.ts +12 -0
  76. package/dist/types-ts4.5/plugins/paste/pm-plugins/analytics.d.ts +2 -2
  77. package/dist/types-ts4.5/plugins/paste/pm-plugins/main.d.ts +2 -2
  78. package/dist/types-ts4.5/ui/Alignment/index.d.ts +2 -2
  79. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  80. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  81. package/package.json +6 -5
  82. package/dist/cjs/plugins/undo-redo/messages.js +0 -19
  83. package/dist/cjs/ui/Alignment/messages.js +0 -24
  84. package/dist/es2019/plugins/undo-redo/messages.js +0 -13
  85. package/dist/es2019/ui/Alignment/messages.js +0 -18
  86. package/dist/esm/plugins/undo-redo/messages.js +0 -13
  87. package/dist/esm/ui/Alignment/messages.js +0 -18
  88. package/dist/types/plugins/undo-redo/messages.d.ts +0 -12
  89. package/dist/types/ui/Alignment/messages.d.ts +0 -17
  90. package/dist/types-ts4.5/plugins/undo-redo/messages.d.ts +0 -12
  91. package/dist/types-ts4.5/ui/Alignment/messages.d.ts +0 -17
@@ -0,0 +1,172 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
+ import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
+ import { mapSlice, unwrap, removeNestedEmptyEls, walkUpTreeUntil } from '@atlaskit/editor-common/utils';
6
+ import { getBooleanFF } from '@atlaskit/platform-feature-flags';
7
+ import { getRandomHex } from '@atlaskit/media-common';
8
+ export function transformSliceForMedia(slice, schema) {
9
+ var _schema$nodes = schema.nodes,
10
+ mediaSingle = _schema$nodes.mediaSingle,
11
+ layoutSection = _schema$nodes.layoutSection,
12
+ table = _schema$nodes.table,
13
+ bulletList = _schema$nodes.bulletList,
14
+ orderedList = _schema$nodes.orderedList,
15
+ media = _schema$nodes.media,
16
+ mediaInline = _schema$nodes.mediaInline,
17
+ expand = _schema$nodes.expand,
18
+ nestedExpand = _schema$nodes.nestedExpand;
19
+ return function (selection) {
20
+ var newSlice = slice;
21
+ if (hasParentNodeOfType([layoutSection, table, bulletList, orderedList, expand, nestedExpand])(selection)) {
22
+ newSlice = mapSlice(newSlice, function (node) {
23
+ var extendedOrLegacyAttrs = getBooleanFF('platform.editor.media.extended-resize-experience') ? {
24
+ layout: node.attrs.layout,
25
+ widthType: node.attrs.widthType,
26
+ width: node.attrs.width
27
+ } : {
28
+ layout: node.attrs.layout
29
+ };
30
+ var attrs = {};
31
+ if (hasParentNodeOfType([layoutSection, table])(selection)) {
32
+ // Supports layouts
33
+ attrs = _objectSpread({}, extendedOrLegacyAttrs);
34
+ } else if (hasParentNodeOfType([bulletList, orderedList, expand, nestedExpand])(selection)) {
35
+ // does not support other layouts
36
+ attrs = _objectSpread(_objectSpread({}, extendedOrLegacyAttrs), {}, {
37
+ layout: 'center'
38
+ });
39
+ }
40
+ return node.type.name === 'mediaSingle' ? mediaSingle.createChecked(attrs, node.content, node.marks) : node;
41
+ });
42
+ }
43
+ var __mediaTraceId = getRandomHex(8);
44
+ newSlice = mapSlice(newSlice, function (node) {
45
+ // This logic is duplicated in editor-plugin-ai where external images can be inserted
46
+ // from external sources through the use of AI. The editor-plugin-ai package is avoiding
47
+ // sharing dependencies with editor-core to support products using it with various versions
48
+ // of editor packages.
49
+ // The duplication is in the following file:
50
+ // packages/editor/editor-plugin-ai/src/prebuilt/content-transformers/markdown-to-pm/markdown-transformer.ts
51
+ if (node.type.name === 'media') {
52
+ return media.createChecked(_objectSpread(_objectSpread({}, node.attrs), {}, {
53
+ __external: node.attrs.type === 'external',
54
+ __mediaTraceId: node.attrs.type === 'external' ? null : __mediaTraceId
55
+ }), node.content, node.marks);
56
+ }
57
+ if (node.type.name === 'mediaInline') {
58
+ return mediaInline.createChecked(_objectSpread(_objectSpread({}, node.attrs), {}, {
59
+ __mediaTraceId: __mediaTraceId
60
+ }), node.content, node.marks);
61
+ }
62
+ return node;
63
+ });
64
+ return newSlice;
65
+ };
66
+ }
67
+
68
+ // TODO move this to editor-common
69
+ export var isImage = function isImage(fileType) {
70
+ return !!fileType && (fileType.indexOf('image/') > -1 || fileType.indexOf('video/') > -1);
71
+ };
72
+ export var transformSliceToCorrectMediaWrapper = function transformSliceToCorrectMediaWrapper(slice, schema) {
73
+ var _schema$nodes2 = schema.nodes,
74
+ mediaGroup = _schema$nodes2.mediaGroup,
75
+ mediaSingle = _schema$nodes2.mediaSingle,
76
+ media = _schema$nodes2.media;
77
+ return mapSlice(slice, function (node, parent) {
78
+ if (!parent && node.type === media) {
79
+ if (mediaSingle && (isImage(node.attrs.__fileMimeType) || node.attrs.type === 'external')) {
80
+ return mediaSingle.createChecked({}, node);
81
+ } else {
82
+ return mediaGroup.createChecked({}, [node]);
83
+ }
84
+ }
85
+ return node;
86
+ });
87
+ };
88
+
89
+ /**
90
+ * Check base styles to see if an element will be invisible when rendered in a document.
91
+ * @param element
92
+ */
93
+ var isElementInvisible = function isElementInvisible(element) {
94
+ return element.style.opacity === '0' || element.style.display === 'none' || element.style.visibility === 'hidden';
95
+ };
96
+ var VALID_TAGS_CONTAINER = ['DIV', 'TD'];
97
+ function canContainImage(element) {
98
+ if (!element) {
99
+ return false;
100
+ }
101
+ return VALID_TAGS_CONTAINER.indexOf(element.tagName) !== -1;
102
+ }
103
+
104
+ /**
105
+ * Given a html string, we attempt to hoist any nested `<img>` tags,
106
+ * not directly wrapped by a `<div>` as ProseMirror no-op's
107
+ * on those scenarios.
108
+ * @param html
109
+ */
110
+ export var unwrapNestedMediaElements = function unwrapNestedMediaElements(html) {
111
+ var parser = new DOMParser();
112
+ var doc = parser.parseFromString(html, 'text/html');
113
+ var wrapper = doc.body;
114
+
115
+ // Remove Google Doc's wrapper <b> el
116
+ var docsWrapper = wrapper.querySelector('b[id^="docs-internal-guid-"]');
117
+ if (docsWrapper) {
118
+ unwrap(wrapper, docsWrapper);
119
+ }
120
+ var imageTags = wrapper.querySelectorAll('img');
121
+ if (!imageTags.length) {
122
+ return html;
123
+ }
124
+ imageTags.forEach(function (imageTag) {
125
+ // Capture the immediate parent, we may remove the media from here later.
126
+ var mediaParent = imageTag.parentElement;
127
+ if (!mediaParent) {
128
+ return;
129
+ }
130
+
131
+ // If either the parent or the image itself contains styles that would make
132
+ // them invisible on copy, dont paste them.
133
+ if (isElementInvisible(mediaParent) || isElementInvisible(imageTag)) {
134
+ mediaParent.removeChild(imageTag);
135
+ return;
136
+ }
137
+
138
+ // If its wrapped by a valid container we assume its safe to bypass.
139
+ // ProseMirror should handle these cases properly.
140
+ if (canContainImage(mediaParent) || mediaParent instanceof HTMLSpanElement && mediaParent.closest('[class*="emoji-common"]')) {
141
+ return;
142
+ }
143
+
144
+ // Find the top most element that the parent has a valid container for the image.
145
+ // Stop just before found the wrapper
146
+ var insertBeforeElement = walkUpTreeUntil(mediaParent, function (element) {
147
+ // If is at the top just use this element as reference
148
+ if (element.parentElement === wrapper) {
149
+ return true;
150
+ }
151
+ return canContainImage(element.parentElement);
152
+ });
153
+
154
+ // Here we try to insert the media right after its top most valid parent element
155
+ // Unless its the last element in our structure then we will insert above it.
156
+ if (insertBeforeElement && insertBeforeElement.parentElement) {
157
+ // Insert as close as possible to the most closest valid element index in the tree.
158
+ insertBeforeElement.parentElement.insertBefore(imageTag, insertBeforeElement.nextElementSibling || insertBeforeElement);
159
+
160
+ // Attempt to clean up lines left behind by the image
161
+ mediaParent.innerText = mediaParent.innerText.trim();
162
+ // Walk up and delete empty elements left over after removing the image tag
163
+ removeNestedEmptyEls(mediaParent);
164
+ }
165
+ });
166
+
167
+ // If last child is a hardbreak we don't want it
168
+ if (wrapper.lastElementChild && wrapper.lastElementChild.tagName === 'BR') {
169
+ wrapper.removeChild(wrapper.lastElementChild);
170
+ }
171
+ return wrapper.innerHTML;
172
+ };
@@ -239,10 +239,10 @@ export var handleCodeBlockWithAnalytics = function handleCodeBlockWithAnalytics(
239
239
  type: PasteTypes.plain
240
240
  }))(handleCodeBlock(text));
241
241
  };
242
- export var handleMediaSingleWithAnalytics = function handleMediaSingleWithAnalytics(view, event, slice, type, editorAnalyticsAPI) {
242
+ export var handleMediaSingleWithAnalytics = function handleMediaSingleWithAnalytics(view, event, slice, type, insertMediaAsMediaSingle) {
243
243
  return injectAnalyticsPayloadBeforeCommand(createPasteAnalyticsPayloadBySelection(event, slice, {
244
244
  type: type
245
- }))(handleMediaSingle(INPUT_METHOD.CLIPBOARD, editorAnalyticsAPI)(slice));
245
+ }))(handleMediaSingle(INPUT_METHOD.CLIPBOARD, insertMediaAsMediaSingle)(slice));
246
246
  };
247
247
  export var handlePastePreservingMarksWithAnalytics = function handlePastePreservingMarksWithAnalytics(view, event, slice, type, pluginInjectionApi) {
248
248
  var _pluginInjectionApi$c2;
@@ -8,7 +8,7 @@ import { addLinkMetadata } from '@atlaskit/editor-common/card';
8
8
  import { mapChildren } from '../../../utils/slice';
9
9
  import { getExtensionAutoConvertersFromProvider } from '@atlaskit/editor-common/extensions';
10
10
  import { isPastedFile as isPastedFileFromEvent } from '@atlaskit/editor-common/paste';
11
- import { transformSliceForMedia } from '../../media/utils/media-single';
11
+ import { transformSliceForMedia, transformSliceToCorrectMediaWrapper, unwrapNestedMediaElements } from '../plugins/media';
12
12
  import { escapeLinks, htmlContainsSingleFile, isPastedFromWord, isPastedFromExcel, htmlHasInvalidLinkTags, removeDuplicateInvalidLinks, transformUnsupportedBlockCardToInline } from '../util';
13
13
  import { linkifyContent } from '@atlaskit/editor-common/utils';
14
14
  import { transformSliceNestedExpandToExpand } from '../../expand/utils';
@@ -18,7 +18,6 @@ import { createPasteMeasurePayload, getContentNodeTypes, handlePasteAsPlainTextW
18
18
  import { ACTION, analyticsPluginKey, INPUT_METHOD, PasteTypes } from '../../analytics';
19
19
  import { isInsideBlockQuote, insideTable, measurements } from '../../../utils';
20
20
  import { measureRender } from '@atlaskit/editor-common/utils';
21
- import { transformSliceToCorrectMediaWrapper, unwrapNestedMediaElements } from '../../media/utils/media-common';
22
21
  import { upgradeTextToLists, splitParagraphs } from '../commands';
23
22
  import { md } from '@atlaskit/editor-common/paste';
24
23
  import { transformSliceToDecisionList } from '../../tasks-and-decisions/utils';
@@ -102,7 +101,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
102
101
  }
103
102
  },
104
103
  handlePaste: function handlePaste(view, rawEvent, slice) {
105
- var _text, _analyticsPlugin$perf, _schema$nodes, _schema$nodes2, _schema$nodes3, _pluginInjectionApi$a;
104
+ var _text, _analyticsPlugin$perf, _schema$nodes, _schema$nodes2, _schema$nodes3, _pluginInjectionApi$m;
106
105
  var event = rawEvent;
107
106
  if (!event.clipboardData) {
108
107
  return false;
@@ -266,7 +265,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
266
265
  if (handleCodeBlockWithAnalytics(view, event, slice, text)(state, dispatch)) {
267
266
  return true;
268
267
  }
269
- if (handleMediaSingleWithAnalytics(view, event, slice, isPastedFile ? PasteTypes.binary : PasteTypes.richText, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a === void 0 ? void 0 : _pluginInjectionApi$a.actions)(state, dispatch, view)) {
268
+ if (handleMediaSingleWithAnalytics(view, event, slice, isPastedFile ? PasteTypes.binary : PasteTypes.richText, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$m = pluginInjectionApi.media) === null || _pluginInjectionApi$m === void 0 ? void 0 : _pluginInjectionApi$m.actions.insertMediaAsMediaSingle)(state, dispatch, view)) {
270
269
  return true;
271
270
  }
272
271
  if (handleSelectedTableWithAnalytics(view, event, slice)(state, dispatch)) {
@@ -14,7 +14,7 @@ import RedoIcon from '@atlaskit/icon/glyph/redo';
14
14
  import { undo as undoKeymap, redo as redoKeymap, ToolTipContent, tooltip } from '../../../../keymaps';
15
15
  import { separatorStyles, buttonGroupStyle } from '@atlaskit/editor-common/styles';
16
16
  import ToolbarButton, { TOOLBAR_BUTTON } from '../../../../ui/ToolbarButton';
17
- import { messages } from '../../messages';
17
+ import { undoRedoMessages } from '@atlaskit/editor-common/messages';
18
18
  import { createTypeAheadTools } from '../../../type-ahead/api';
19
19
  import { undoFromToolbar, redoFromToolbar } from '../../commands';
20
20
  import { getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
@@ -64,8 +64,8 @@ export var ToolbarUndoRedo = /*#__PURE__*/function (_PureComponent) {
64
64
  var handleRedo = function handleRedo() {
65
65
  forceFocus(editorView)(redoFromToolbar);
66
66
  };
67
- var labelUndo = formatMessage(messages.undo);
68
- var labelRedo = formatMessage(messages.redo);
67
+ var labelUndo = formatMessage(undoRedoMessages.undo);
68
+ var labelRedo = formatMessage(undoRedoMessages.redo);
69
69
  var canUndo = historyState.canUndo,
70
70
  canRedo = historyState.canRedo;
71
71
  return jsx("span", {
@@ -11,7 +11,7 @@ import { PureComponent } from 'react';
11
11
  import { injectIntl } from 'react-intl-next';
12
12
  import { IconMap } from '../../plugins/alignment/ui/ToolbarAlignment/icon-map';
13
13
  import AlignmentButton from './AlignmentButton';
14
- import { alignmentMessages } from './messages';
14
+ import { alignmentMessages } from '@atlaskit/editor-common/messages';
15
15
  import { alignmentWrapper } from './styles';
16
16
  import { alignLeft } from '../../keymaps';
17
17
  var alignmentOptions = [{
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "188.0.12";
2
+ export var version = "188.1.0";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -259,6 +259,9 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
259
259
  };
260
260
  }, undefined>];
261
261
  sharedState: import("../../../plugins/media/pm-plugins/types").MediaPluginState | null;
262
+ actions: {
263
+ insertMediaAsMediaSingle: import("../../../plugins/media/utils/media-single").InsertMediaAsMediaSingle;
264
+ };
262
265
  }, import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined>>];
263
266
  }, ((editorView: import("prosemirror-view").EditorView) => void) | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
264
267
  sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
@@ -586,6 +589,9 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
586
589
  };
587
590
  }, undefined>];
588
591
  sharedState: import("../../../plugins/media/pm-plugins/types").MediaPluginState | null;
592
+ actions: {
593
+ insertMediaAsMediaSingle: import("../../../plugins/media/utils/media-single").InsertMediaAsMediaSingle;
594
+ };
589
595
  }, import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined>>];
590
596
  }, ((editorView: import("prosemirror-view").EditorView) => void) | undefined>, import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
591
597
  sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
@@ -1,21 +1,4 @@
1
1
  import type { IntlShape } from 'react-intl-next';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
4
- export declare const annotationMessages: {
5
- createComment: {
6
- id: string;
7
- defaultMessage: string;
8
- description: string;
9
- };
10
- createCommentInvalid: {
11
- id: string;
12
- defaultMessage: string;
13
- description: string;
14
- };
15
- toolbar: {
16
- id: string;
17
- defaultMessage: string;
18
- description: string;
19
- };
20
- };
21
4
  export declare const buildToolbar: (state: EditorState, intl: IntlShape, isToolbarAbove?: boolean) => FloatingToolbarConfig | undefined;
@@ -1,18 +1,5 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
3
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
- import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
2
+ import type { HelpDialogPlugin } from '@atlaskit/editor-plugin-help-dialog';
5
3
  export declare function createPlugin(dispatch: Function, imageEnabled: boolean): SafePlugin<any>;
6
- interface HelpDialogSharedState {
7
- isVisible: boolean;
8
- imageEnabled: boolean;
9
- }
10
- declare const helpDialog: NextEditorPlugin<'helpDialog', {
11
- dependencies: [
12
- OptionalPlugin<AnalyticsPlugin>,
13
- OptionalPlugin<QuickInsertPlugin>
14
- ];
15
- pluginConfiguration: boolean;
16
- sharedState: HelpDialogSharedState | null;
17
- }>;
4
+ declare const helpDialog: HelpDialogPlugin;
18
5
  export default helpDialog;
@@ -9,6 +9,7 @@ import type { FloatingToolbarPlugin } from '@atlaskit/editor-plugin-floating-too
9
9
  import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
10
10
  import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
11
11
  import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
12
+ import type { InsertMediaAsMediaSingle } from './utils/media-single';
12
13
  import type { MediaOptions } from './types';
13
14
  export type MediaNextEditorPluginType = NextEditorPlugin<'media', {
14
15
  pluginConfiguration: MediaOptions | undefined;
@@ -24,4 +25,7 @@ export type MediaNextEditorPluginType = NextEditorPlugin<'media', {
24
25
  FocusPlugin
25
26
  ];
26
27
  sharedState: MediaPluginState | null;
28
+ actions: {
29
+ insertMediaAsMediaSingle: InsertMediaAsMediaSingle;
30
+ };
27
31
  }>;
@@ -1,8 +1,8 @@
1
- import type { Node as PMNode, ResolvedPos, Slice, Schema } from '@atlaskit/editor-prosemirror/model';
1
+ import type { MediaADFAttrs } from '@atlaskit/adf-schema';
2
+ import type { Node as PMNode, ResolvedPos } from '@atlaskit/editor-prosemirror/model';
2
3
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
4
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
5
  import type { getPosHandler as ProsemirrorGetPosHandler, MediaState } from '../types';
5
- import type { MediaADFAttrs } from '@atlaskit/adf-schema';
6
6
  export declare const isMediaBlobUrlFromAttrs: (attrs: MediaADFAttrs) => boolean;
7
7
  export declare const posOfMediaGroupNearby: (state: EditorState) => number | undefined;
8
8
  export declare const isSelectionNonMediaBlockNode: (state: EditorState) => boolean;
@@ -17,12 +17,4 @@ export declare const posOfParentMediaGroup: (state: EditorState, $pos?: Resolved
17
17
  export declare const removeMediaNode: (view: EditorView, node: PMNode, getPos: ProsemirrorGetPosHandler) => void;
18
18
  export declare const splitMediaGroup: (view: EditorView) => boolean;
19
19
  export declare const copyOptionalAttrsFromMediaState: (mediaState: MediaState, node: PMNode) => void;
20
- export declare const transformSliceToCorrectMediaWrapper: (slice: Slice, schema: Schema) => Slice;
21
- /**
22
- * Given a html string, we attempt to hoist any nested `<img>` tags,
23
- * not directly wrapped by a `<div>` as ProseMirror no-op's
24
- * on those scenarios.
25
- * @param html
26
- */
27
- export declare const unwrapNestedMediaElements: (html: string) => string;
28
20
  export declare const getMediaNodeFromSelection: (state: EditorState) => PMNode | null;
@@ -1,9 +1,7 @@
1
1
  import type { Node as PMNode, Schema } from '@atlaskit/editor-prosemirror/model';
2
- import { Slice } from '@atlaskit/editor-prosemirror/model';
3
2
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
+ import type { EditorAnalyticsAPI, InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
5
4
  import type { MediaState } from '../types';
6
- import type { InputMethodInsertMedia, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
7
5
  import type { WidthPluginState } from '@atlaskit/editor-plugin-width';
8
6
  export interface MediaSingleState extends MediaState {
9
7
  dimensions: {
@@ -14,9 +12,9 @@ export interface MediaSingleState extends MediaState {
14
12
  contextId?: string;
15
13
  }
16
14
  export declare const isMediaSingle: (schema: Schema, fileMimeType?: string) => boolean;
15
+ export type InsertMediaAsMediaSingle = (view: EditorView, node: PMNode, inputMethod: InputMethodInsertMedia) => boolean;
17
16
  export declare const insertMediaAsMediaSingle: (view: EditorView, node: PMNode, inputMethod: InputMethodInsertMedia, editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => boolean;
18
17
  export declare const insertMediaSingleNode: (view: EditorView, mediaState: MediaState, inputMethod?: InputMethodInsertMedia, collection?: string, alignLeftOnInsert?: boolean, newInsertionBehaviour?: boolean, widthPluginState?: WidthPluginState | undefined, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => boolean;
19
18
  export declare const createMediaSingleNode: (schema: Schema, collection: string, maxWidth?: number, minWidth?: number, alignLeftOnInsert?: boolean) => (mediaState: MediaSingleState) => PMNode;
20
- export declare function transformSliceForMedia(slice: Slice, schema: Schema): (selection: Selection) => Slice;
21
19
  export declare function isCaptionNode(editorView: EditorView): boolean;
22
20
  export declare const isVideo: (fileType?: string) => boolean;
@@ -4,8 +4,8 @@ import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state'
4
4
  import type { ExtensionAutoConvertHandler } from '@atlaskit/editor-common/extensions';
5
5
  import type { Command } from '../../types';
6
6
  import type { InputMethodInsertMedia } from '../analytics';
7
+ import type { InsertMediaAsMediaSingle } from '../media/utils/media-single';
7
8
  import type { QueueCardsFromTransactionAction, CardOptions } from '@atlaskit/editor-common/card';
8
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
9
9
  import type { FindRootParentListNode } from '@atlaskit/editor-plugin-list';
10
10
  export declare function handleMention(slice: Slice, schema: Schema): Slice;
11
11
  export declare function handlePasteIntoTaskOrDecisionOrPanel(slice: Slice, queueCardsFromChangedTr: QueueCardsFromTransactionAction | undefined): Command;
@@ -17,7 +17,7 @@ export declare function handlePasteAsPlainText(slice: Slice, _event: ClipboardEv
17
17
  export declare function handlePastePreservingMarks(slice: Slice, queueCardsFromChangedTr: QueueCardsFromTransactionAction | undefined): Command;
18
18
  export declare function handleMacroAutoConvert(text: string, slice: Slice, queueCardsFromChangedTr: QueueCardsFromTransactionAction | undefined, cardsOptions?: CardOptions, extensionAutoConverter?: ExtensionAutoConvertHandler): Command;
19
19
  export declare function handleCodeBlock(text: string): Command;
20
- export declare function handleMediaSingle(inputMethod: InputMethodInsertMedia, editorAnalyticsAPI: EditorAnalyticsAPI | undefined): (slice: Slice) => Command;
20
+ export declare function handleMediaSingle(inputMethod: InputMethodInsertMedia, insertMediaAsMediaSingle: InsertMediaAsMediaSingle | undefined): (slice: Slice) => Command;
21
21
  export declare function handleExpandPasteInTable(slice: Slice): Command;
22
22
  export declare function handleMarkdown(markdownSlice: Slice, queueCardsFromChangedTr: QueueCardsFromTransactionAction | undefined, from?: number, to?: number): Command;
23
23
  export declare function handleParagraphBlockMarks(state: EditorState, slice: Slice): Slice;
@@ -5,18 +5,21 @@ import type { cardPlugin } from '@atlaskit/editor-plugin-card';
5
5
  import type betterTypeHistoryPlugin from '../better-type-history';
6
6
  import type { listPlugin } from '@atlaskit/editor-plugin-list';
7
7
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
8
+ import type { MediaNextEditorPluginType } from '../media/next-plugin-type';
8
9
  export type PastePluginOptions = {
9
10
  cardOptions?: CardOptions;
10
11
  sanitizePrivateContent?: boolean;
11
12
  };
12
- declare const pastePlugin: NextEditorPlugin<'paste', {
13
+ export type PastePlugin = NextEditorPlugin<'paste', {
13
14
  pluginConfiguration: PastePluginOptions;
14
15
  dependencies: [
15
16
  FeatureFlagsPlugin,
16
17
  OptionalPlugin<typeof listPlugin>,
17
18
  typeof betterTypeHistoryPlugin,
18
19
  OptionalPlugin<typeof cardPlugin>,
19
- OptionalPlugin<typeof analyticsPlugin>
20
+ OptionalPlugin<typeof analyticsPlugin>,
21
+ OptionalPlugin<MediaNextEditorPluginType>
20
22
  ];
21
23
  }>;
24
+ declare const pastePlugin: PastePlugin;
22
25
  export default pastePlugin;
@@ -0,0 +1,12 @@
1
+ import type { Slice, Schema } from '@atlaskit/editor-prosemirror/model';
2
+ import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
+ export declare function transformSliceForMedia(slice: Slice, schema: Schema): (selection: Selection) => Slice;
4
+ export declare const isImage: (fileType?: string) => boolean;
5
+ export declare const transformSliceToCorrectMediaWrapper: (slice: Slice, schema: Schema) => Slice;
6
+ /**
7
+ * Given a html string, we attempt to hoist any nested `<img>` tags,
8
+ * not directly wrapped by a `<div>` as ProseMirror no-op's
9
+ * on those scenarios.
10
+ * @param html
11
+ */
12
+ export declare const unwrapNestedMediaElements: (html: string) => string;
@@ -3,7 +3,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
3
  import type { Slice, Fragment, Schema } from '@atlaskit/editor-prosemirror/model';
4
4
  import type { ExtractInjectionAPI, Command } from '@atlaskit/editor-common/types';
5
5
  import type pastePlugin from '../';
6
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
6
+ import type { InsertMediaAsMediaSingle } from '../../media/utils/media-single';
7
7
  import type { FindRootParentListNode } from '@atlaskit/editor-plugin-list';
8
8
  type PasteContext = {
9
9
  type: PasteType;
@@ -26,7 +26,7 @@ export declare const handlePasteAsPlainTextWithAnalytics: (view: EditorView, eve
26
26
  export declare const handlePasteIntoTaskAndDecisionWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType, pluginInjectionApi: ExtractInjectionAPI<typeof pastePlugin> | undefined) => Command;
27
27
  export declare const handlePasteIntoCaptionWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType) => Command;
28
28
  export declare const handleCodeBlockWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, text: string) => Command;
29
- export declare const handleMediaSingleWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => Command;
29
+ export declare const handleMediaSingleWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType, insertMediaAsMediaSingle: InsertMediaAsMediaSingle | undefined) => Command;
30
30
  export declare const handlePastePreservingMarksWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType, pluginInjectionApi: ExtractInjectionAPI<typeof pastePlugin> | undefined) => Command;
31
31
  export declare const handleMarkdownWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, pluginInjectionApi: ExtractInjectionAPI<typeof pastePlugin> | undefined) => Command;
32
32
  export declare const handleRichTextWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, pluginInjectionApi: ExtractInjectionAPI<typeof pastePlugin> | undefined) => Command;
@@ -6,5 +6,5 @@ import type { DispatchAnalyticsEvent } from '../../analytics';
6
6
  export { pluginKey as stateKey } from './plugin-factory';
7
7
  import type { Dispatch } from '../../../event-dispatcher';
8
8
  import type { FeatureFlags, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
9
- import type pastePlugin from '../';
10
- export declare function createPlugin(schema: Schema, dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, featureFlags: FeatureFlags, pluginInjectionApi: ExtractInjectionAPI<typeof pastePlugin> | undefined, cardOptions?: CardOptions, sanitizePrivateContent?: boolean, providerFactory?: ProviderFactory): SafePlugin<import("../types").PastePluginState>;
9
+ import type { PastePlugin } from '../';
10
+ export declare function createPlugin(schema: Schema, dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, featureFlags: FeatureFlags, pluginInjectionApi: ExtractInjectionAPI<PastePlugin> | undefined, cardOptions?: CardOptions, sanitizePrivateContent?: boolean, providerFactory?: ProviderFactory): SafePlugin<import("../types").PastePluginState>;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { WrappedComponentProps } from 'react-intl-next';
3
- import { AlignmentState } from '../../plugins/alignment/pm-plugins/types';
2
+ import type { WrappedComponentProps } from 'react-intl-next';
3
+ import type { AlignmentState } from '../../plugins/alignment/pm-plugins/types';
4
4
  export interface Props {
5
5
  selectedAlignment?: string;
6
6
  onClick: (value: AlignmentState) => void;
@@ -3,7 +3,7 @@ export declare const fullPageEditorWrapper: import("@emotion/react").SerializedS
3
3
  export declare const ScrollContainer: import("react").ForwardRefExoticComponent<Pick<{
4
4
  theme?: any;
5
5
  featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
6
- } & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "key" | "dir" | "color" | "content" | "height" | "translate" | "width" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "onKeyDown" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "property" | "media" | "list" | "mediaGroup" | "size" | "id" | "hidden" | "href" | "className" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "start" | "wrap" | "multiple" | "target" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "required" | "src" | "step" | "nonce" | "as" | "preload" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "async" | "autoPlay" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "dateTime" | "defer" | "download" | "encType" | "frameBorder" | "high" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | keyof {
6
+ } & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "key" | "dir" | "color" | "content" | "height" | "translate" | "width" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "onKeyDown" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "property" | "media" | "list" | "mediaGroup" | "size" | "hidden" | "id" | "href" | "className" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "start" | "wrap" | "multiple" | "target" | "accept" | "alt" | "autoComplete" | "capture" | "checked" | "crossOrigin" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "max" | "maxLength" | "min" | "minLength" | "readOnly" | "required" | "src" | "step" | "nonce" | "as" | "preload" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "async" | "autoPlay" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "dateTime" | "defer" | "download" | "encType" | "frameBorder" | "high" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | keyof {
7
7
  theme?: any;
8
8
  featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
9
9
  }> & import("react").RefAttributes<HTMLDivElement>>;