@atlaskit/editor-core 187.45.3 → 187.46.1

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/plugins/alignment/ui/ToolbarAlignment/index.js +2 -2
  3. package/dist/cjs/plugins/base/pm-plugins/frozen-editor.js +0 -6
  4. package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +4 -5
  5. package/dist/cjs/plugins/floating-toolbar/index.js +2 -2
  6. package/dist/cjs/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.js +2 -2
  7. package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +2 -2
  8. package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +2 -2
  9. package/dist/cjs/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +1 -1
  10. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +4 -5
  11. package/dist/cjs/plugins/panel/toolbar.js +2 -2
  12. package/dist/cjs/plugins/text-color/pm-plugins/main.js +3 -4
  13. package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +6 -7
  14. package/dist/cjs/ui/Dropdown/index.js +1 -25
  15. package/dist/cjs/utils/index.js +12 -10
  16. package/dist/cjs/version-wrapper.js +1 -1
  17. package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/index.js +1 -1
  18. package/dist/es2019/plugins/base/pm-plugins/frozen-editor.js +0 -6
  19. package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +3 -4
  20. package/dist/es2019/plugins/floating-toolbar/index.js +1 -1
  21. package/dist/es2019/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.js +1 -1
  22. package/dist/es2019/plugins/floating-toolbar/ui/Dropdown.js +1 -1
  23. package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +2 -2
  24. package/dist/es2019/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +1 -1
  25. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +2 -2
  26. package/dist/es2019/plugins/panel/toolbar.js +1 -1
  27. package/dist/es2019/plugins/text-color/pm-plugins/main.js +2 -2
  28. package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +3 -3
  29. package/dist/es2019/ui/Dropdown/index.js +1 -19
  30. package/dist/es2019/utils/index.js +1 -9
  31. package/dist/es2019/version-wrapper.js +1 -1
  32. package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +1 -1
  33. package/dist/esm/plugins/base/pm-plugins/frozen-editor.js +0 -6
  34. package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +3 -4
  35. package/dist/esm/plugins/floating-toolbar/index.js +1 -1
  36. package/dist/esm/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.js +1 -1
  37. package/dist/esm/plugins/floating-toolbar/ui/Dropdown.js +1 -1
  38. package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +2 -2
  39. package/dist/esm/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +1 -1
  40. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +2 -2
  41. package/dist/esm/plugins/panel/toolbar.js +1 -1
  42. package/dist/esm/plugins/text-color/pm-plugins/main.js +2 -2
  43. package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +3 -3
  44. package/dist/esm/ui/Dropdown/index.js +1 -21
  45. package/dist/esm/utils/index.js +1 -9
  46. package/dist/esm/version-wrapper.js +1 -1
  47. package/dist/types/actions/index.d.ts +1 -1
  48. package/dist/types/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +3 -3
  49. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.d.ts +1 -1
  50. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +1 -1
  51. package/dist/types/plugins/text-color/pm-plugins/main.d.ts +1 -1
  52. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  53. package/dist/types/ui/ConfigPanel/Fields/ColorPicker.d.ts +1 -1
  54. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  55. package/dist/types/ui/Dropdown/index.d.ts +2 -6
  56. package/dist/types/utils/index.d.ts +3 -5
  57. package/dist/types-ts4.5/actions/index.d.ts +1 -1
  58. package/dist/types-ts4.5/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +3 -3
  59. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.d.ts +1 -1
  60. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +1 -1
  61. package/dist/types-ts4.5/plugins/text-color/pm-plugins/main.d.ts +1 -1
  62. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  63. package/dist/types-ts4.5/ui/ConfigPanel/Fields/ColorPicker.d.ts +1 -1
  64. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  65. package/dist/types-ts4.5/ui/Dropdown/index.d.ts +2 -6
  66. package/dist/types-ts4.5/utils/index.d.ts +3 -5
  67. package/package.json +6 -2
  68. package/dist/cjs/ui/ColorPickerButton/index.js +0 -205
  69. package/dist/es2019/ui/ColorPickerButton/index.js +0 -213
  70. package/dist/esm/ui/ColorPickerButton/index.js +0 -198
  71. package/dist/types/ui/ColorPickerButton/index.d.ts +0 -28
  72. package/dist/types-ts4.5/ui/ColorPickerButton/index.d.ts +0 -28
@@ -1,20 +1,2 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import { Dropdown as DropdownComponent, KeyDownHandlerContext } from '@atlaskit/editor-common/ui-menu';
3
- import React, { useContext } from 'react';
4
- const Dropdown = /*#__PURE__*/React.memo(({
5
- ...props
6
- }) => {
7
- const keyDownHandlerContext = useContext(KeyDownHandlerContext);
8
- return (
9
- /*#__PURE__*/
10
- //This context is to handle the tab, Arrow Right/Left key events for dropdown.
11
- //Default context has the void callbacks for above key events
12
- React.createElement(DropdownComponent, _extends({
13
- arrowKeyNavigationProviderOptions: {
14
- ...props.arrowKeyNavigationProviderOptions,
15
- keyDownHandlerContext
16
- }
17
- }, props))
18
- );
19
- });
1
+ import { DropdownContainer as Dropdown } from '@atlaskit/editor-common/ui-menu';
20
2
  export default Dropdown;
@@ -1,8 +1,7 @@
1
1
  import { toggleMark } from '@atlaskit/editor-prosemirror/commands';
2
- import { JSONTransformer } from '@atlaskit/editor-json-transformer';
3
2
  import { FakeTextCursorSelection } from '../plugins/fake-text-cursor/cursor';
4
3
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
- export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem } from '@atlaskit/editor-common/utils';
4
+ export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem, toJSON, nodeToJSON } from '@atlaskit/editor-common/utils';
6
5
  export { insideTable } from '@atlaskit/editor-common/core-utils';
7
6
  export { findFarthestParentNode, nodesBetweenChanged, getNodesCount } from './document';
8
7
  export { isParagraph, isText, isLinkMark } from './nodes';
@@ -61,13 +60,6 @@ export function isMarkTypeAllowedInCurrentSelection(markType, state) {
61
60
  return allowedInActiveMarks;
62
61
  });
63
62
  }
64
- const transformer = new JSONTransformer();
65
- export function toJSON(node) {
66
- return transformer.encode(node);
67
- }
68
- export function nodeToJSON(node) {
69
- return transformer.encodeNode(node);
70
- }
71
63
 
72
64
  /**
73
65
  * Repeating string for multiple times
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "187.45.3";
2
+ export const version = "187.46.1";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -15,7 +15,7 @@ import { jsx } from '@emotion/react';
15
15
  import { injectIntl } from 'react-intl-next';
16
16
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
17
17
  import ToolbarButton from '../../../../ui/ToolbarButton';
18
- import Dropdown from '../../../../ui/Dropdown';
18
+ import { DropdownContainer as Dropdown } from '@atlaskit/editor-common/ui-menu';
19
19
  import Alignment from '../../../../ui/Alignment';
20
20
  import { expandIconWrapper, triggerWrapper, wrapper } from './styles';
21
21
  import { separatorStyles } from '@atlaskit/editor-common/styles';
@@ -6,7 +6,6 @@ import { PluginKey } from '@atlaskit/editor-prosemirror/state';
6
6
  import { isPerformanceObserverAvailable, isPerformanceAPIAvailable, getAnalyticsEventSeverity, countNodes } from '@atlaskit/editor-common/utils';
7
7
  import { EditorExperience, ExperienceStore } from '@atlaskit/editor-common/ufo';
8
8
  import { ACTION, ACTION_SUBJECT, BROWSER_FREEZE_INTERACTION_TYPE, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
9
- import { getParticipantsCount } from '../../collab-edit/get-participants-count';
10
9
  import { getContextIdentifier } from './context-identifier';
11
10
  import { setInteractionType } from '../utils/frozen-editor';
12
11
  import InputLatencyTracker from '../utils/input-latency-tracking';
@@ -31,7 +30,6 @@ var dispatchLongTaskEvent = function dispatchLongTaskEvent(dispatchAnalyticsEven
31
30
  freezeTime: time,
32
31
  nodeSize: state.doc.nodeSize
33
32
  }, nodesCount), {}, {
34
- participants: getParticipantsCount(view.state),
35
33
  interactionType: interactionType,
36
34
  severity: severity
37
35
  }),
@@ -78,7 +76,6 @@ export default (function (dispatchAnalyticsEvent, inputTracking, browserFreezeTr
78
76
  time: time,
79
77
  nodeSize: state.doc.nodeSize
80
78
  }, nodesCount), {}, {
81
- participants: getParticipantsCount(state),
82
79
  objectId: (_getContextIdentifier2 = getContextIdentifier(state)) === null || _getContextIdentifier2 === void 0 ? void 0 : _getContextIdentifier2.objectId,
83
80
  severity: shouldTrackSeverity ? severity : undefined
84
81
  }),
@@ -105,7 +102,6 @@ export default (function (dispatchAnalyticsEvent, inputTracking, browserFreezeTr
105
102
  }, nodeCount), {}, {
106
103
  nodeSize: state.doc.nodeSize,
107
104
  severity: shouldTrackSeverity ? severity : undefined,
108
- participants: getParticipantsCount(state),
109
105
  objectId: (_getContextIdentifier3 = getContextIdentifier(state)) === null || _getContextIdentifier3 === void 0 ? void 0 : _getContextIdentifier3.objectId
110
106
  }),
111
107
  eventType: EVENT_TYPE.OPERATIONAL
@@ -181,7 +177,6 @@ export default (function (dispatchAnalyticsEvent, inputTracking, browserFreezeTr
181
177
  experienceStore === null || experienceStore === void 0 ? void 0 : experienceStore.success(EditorExperience.typing, _objectSpread(_objectSpread({
182
178
  nodeSize: state.doc.nodeSize
183
179
  }, nodesCount), {}, {
184
- participants: getParticipantsCount(state),
185
180
  objectId: (_getContextIdentifier4 = getContextIdentifier(state)) === null || _getContextIdentifier4 === void 0 ? void 0 : _getContextIdentifier4.objectId,
186
181
  time: time,
187
182
  severity: shouldTrackSeverity ? severity : undefined
@@ -200,7 +195,6 @@ export default (function (dispatchAnalyticsEvent, inputTracking, browserFreezeTr
200
195
  time: time,
201
196
  nodeSize: state.doc.nodeSize
202
197
  }, nodesCount), {}, {
203
- participants: getParticipantsCount(state),
204
198
  objectId: (_getContextIdentifier5 = getContextIdentifier(state)) === null || _getContextIdentifier5 === void 0 ? void 0 : _getContextIdentifier5.objectId
205
199
  }),
206
200
  eventType: EVENT_TYPE.OPERATIONAL
@@ -14,16 +14,15 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
14
14
  import React from 'react';
15
15
  import { css, jsx } from '@emotion/react';
16
16
  import { defineMessages, injectIntl } from 'react-intl-next';
17
- import EditorSearchIcon from '@atlaskit/icon/glyph/editor/search';
18
17
  import { akEditorFloatingPanelZIndex, akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
19
18
  import ToolbarButton, { TOOLBAR_BUTTON } from '../../../ui/ToolbarButton';
20
- import Dropdown from '../../../ui/Dropdown';
19
+ import { Dropdown, ArrowKeyNavigationType } from '@atlaskit/editor-common/ui-menu';
20
+ import EditorSearchIcon from '@atlaskit/icon/glyph/editor/search';
21
21
  import FindReplace from './FindReplace';
22
22
  import { TRIGGER_METHOD } from '../../analytics/types';
23
23
  import { ToolTipContent, findKeymapByDescription, tooltip } from '../../../keymaps';
24
24
  import { getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
25
- import { ArrowKeyNavigationType } from '@atlaskit/editor-common/ui-menu';
26
- var toolbarButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex: 1 1 auto;\n flex-grow: 0;\n justify-content: flex-end;\n align-items: center;\n padding: 0 8px;\n @media (max-width: ", "px) {\n justify-content: center;\n padding: 0;\n }\n"])), akEditorMobileMaxWidth);
25
+ var toolbarButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex: 1 1 auto;\n flex-grow: 0;\n justify-content: flex-end;\n align-items: center;\n padding: 0 ", ";\n @media (max-width: ", "px) {\n justify-content: center;\n padding: 0;\n }\n"])), "var(--ds-space-100, 8px)", akEditorMobileMaxWidth);
27
26
  var toolbarButtonWrapperFullWith = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex-grow: 1;\n"])));
28
27
  var wrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n"])));
29
28
  var messages = defineMessages({
@@ -18,7 +18,7 @@ import { hideConfirmDialog } from './pm-plugins/toolbar-data/commands';
18
18
  import { ConfirmationModal } from './ui/ConfirmationModal';
19
19
  import { ToolbarLoader } from './ui/ToolbarLoader';
20
20
  import { findNode } from './utils';
21
- import { ErrorBoundary } from '../../ui/ErrorBoundary';
21
+ import { ErrorBoundary } from '@atlaskit/editor-common/error-boundary';
22
22
  import forceFocusPlugin, { forceFocusSelector } from './pm-plugins/force-focus';
23
23
  export var getRelevantConfig = function getRelevantConfig(selection, configs) {
24
24
  // node selections always take precedence, see if
@@ -1,4 +1,4 @@
1
- import { pluginFactory } from '../../../../utils/plugin-state-factory';
1
+ import { pluginFactory } from '@atlaskit/editor-common/utils';
2
2
  import { pluginKey } from './plugin-key';
3
3
  import { reducer } from './reducer';
4
4
  var _pluginFactory = pluginFactory(pluginKey, reducer),
@@ -16,7 +16,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
16
16
  import React, { Component } from 'react';
17
17
  import { css, jsx } from '@emotion/react';
18
18
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
19
- import UiDropdown from '../../../ui/Dropdown';
19
+ import { DropdownContainer as UiDropdown } from '@atlaskit/editor-common/ui-menu';
20
20
  import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
21
21
  import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
22
22
  var dropdownExpandContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin: 0px ", ";\n"])), "var(--ds-space-negative-050, -4px)");
@@ -10,11 +10,11 @@ import { Popup } from '@atlaskit/editor-common/ui';
10
10
  import { EmojiPicker } from '@atlaskit/emoji';
11
11
  import Tooltip from '@atlaskit/tooltip';
12
12
  import EditorEmojiAddIcon from './EditorEmojiAddIcon';
13
- import withOuterListeners from '../../../ui/with-outer-listeners';
13
+ import { withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
14
14
 
15
15
  // helps adjusts position of popup
16
16
  var emojiPickerButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"])));
17
- var EmojiPickerWithListener = withOuterListeners(EmojiPicker);
17
+ var EmojiPickerWithListener = withReactEditorViewOuterListeners(EmojiPicker);
18
18
  export var EmojiPickerButton = function EmojiPickerButton(props) {
19
19
  var buttonRef = React.useRef(null);
20
20
  var _React$useState = React.useState(false),
@@ -5,7 +5,7 @@ import React, { useEffect, useState } from 'react';
5
5
  import Loadable from 'react-loadable';
6
6
  import { getContextualToolbarItemsFromModule } from '@atlaskit/editor-common/extensions';
7
7
  import ButtonGroup from '@atlaskit/button/button-group';
8
- import { nodeToJSON } from '../../../utils';
8
+ import { nodeToJSON } from '@atlaskit/editor-common/utils';
9
9
  import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
10
10
  import Separator from './Separator';
11
11
  var noop = function noop() {
@@ -26,8 +26,8 @@ import Select from './Select';
26
26
  import Separator from './Separator';
27
27
  import Input from './Input';
28
28
  import { ExtensionsPlaceholder } from './ExtensionsPlaceholder';
29
- import ColorPickerButton from '../../../ui/ColorPickerButton';
30
- import { backgroundPaletteTooltipMessages } from '../../../ui/ColorPalette';
29
+ import { ColorPickerButton } from '@atlaskit/editor-common/ui-menu';
30
+ import { backgroundPaletteTooltipMessages } from '@atlaskit/editor-common/ui-color';
31
31
  import { EmojiPickerButton } from './EmojiPickerButton';
32
32
  import { injectIntl } from 'react-intl-next';
33
33
  import messages from './messages';
@@ -15,7 +15,7 @@ import { panelBackgroundPalette } from '../../ui/ColorPalette/Palettes/panelBack
15
15
  import { getPanelTypeBackgroundNoTokens } from '@atlaskit/editor-common/panel';
16
16
  import { findPanel } from './utils';
17
17
  import { findDomRefAtPos } from '@atlaskit/editor-prosemirror/utils';
18
- import { DEFAULT_BORDER_COLOR } from '../../ui/ColorPalette/Palettes';
18
+ import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
19
19
  import { PanelType } from '@atlaskit/adf-schema';
20
20
  import { ACTION, ACTION_SUBJECT, EVENT_TYPE, ACTION_SUBJECT_ID, withAnalytics } from '../analytics';
21
21
  import { messages } from './message';
@@ -4,8 +4,8 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
4
4
  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; }
5
5
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
6
6
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
7
- import { textColorPalette } from '../../../ui/ColorPalette/Palettes/textColorPalette';
8
- import { DEFAULT_BORDER_COLOR } from '../../../ui/ColorPalette/Palettes/common';
7
+ import { textColorPalette } from '@atlaskit/editor-common/ui-color';
8
+ import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
9
9
  import { DEFAULT_COLOR, getActiveColor } from '../utils/color';
10
10
  import { getDisabledState } from '../utils/disabled';
11
11
  export { DEFAULT_COLOR } from '../utils/color';
@@ -7,13 +7,13 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
7
7
  import { jsx, css } from '@emotion/react';
8
8
  import { Fragment } from 'react';
9
9
  import { Field } from '@atlaskit/form';
10
- import { DEFAULT_BORDER_COLOR } from '../../../ui/ColorPalette/Palettes/common';
10
+ import { DEFAULT_BORDER_COLOR } from '@atlaskit/editor-common/ui-color';
11
11
  import { validate as _validate } from '../utils';
12
12
  import { requiredIndicator } from './common/RequiredIndicator';
13
13
  import { headingSizes } from '@atlaskit/theme/typography';
14
14
  import FieldMessages from '../FieldMessages';
15
- import ColorPickerButton from '../../ColorPickerButton';
16
- import { chartsColorPaletteTooltipMessages } from '../../../ui/ColorPalette';
15
+ import { ColorPickerButton } from '@atlaskit/editor-common/ui-menu';
16
+ import { chartsColorPaletteTooltipMessages } from '@atlaskit/editor-common/ui-color';
17
17
  /*
18
18
  NOTE: color used here are not yet in atlaskit code
19
19
  this is part of extended color pack from ADG, which is yet to be release
@@ -1,22 +1,2 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import _objectDestructuringEmpty from "@babel/runtime/helpers/objectDestructuringEmpty";
3
- import _extends from "@babel/runtime/helpers/extends";
4
- 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; }
5
- 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; }
6
- import { Dropdown as DropdownComponent, KeyDownHandlerContext } from '@atlaskit/editor-common/ui-menu';
7
- import React, { useContext } from 'react';
8
- var Dropdown = /*#__PURE__*/React.memo(function (_ref) {
9
- var props = _extends({}, (_objectDestructuringEmpty(_ref), _ref));
10
- var keyDownHandlerContext = useContext(KeyDownHandlerContext);
11
- return (
12
- /*#__PURE__*/
13
- //This context is to handle the tab, Arrow Right/Left key events for dropdown.
14
- //Default context has the void callbacks for above key events
15
- React.createElement(DropdownComponent, _extends({
16
- arrowKeyNavigationProviderOptions: _objectSpread(_objectSpread({}, props.arrowKeyNavigationProviderOptions), {}, {
17
- keyDownHandlerContext: keyDownHandlerContext
18
- })
19
- }, props))
20
- );
21
- });
1
+ import { DropdownContainer as Dropdown } from '@atlaskit/editor-common/ui-menu';
22
2
  export default Dropdown;
@@ -1,8 +1,7 @@
1
1
  import { toggleMark } from '@atlaskit/editor-prosemirror/commands';
2
- import { JSONTransformer } from '@atlaskit/editor-json-transformer';
3
2
  import { FakeTextCursorSelection } from '../plugins/fake-text-cursor/cursor';
4
3
  import { hasParentNodeOfType } from '@atlaskit/editor-prosemirror/utils';
5
- export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem } from '@atlaskit/editor-common/utils';
4
+ export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem, toJSON, nodeToJSON } from '@atlaskit/editor-common/utils';
6
5
  export { insideTable } from '@atlaskit/editor-common/core-utils';
7
6
  export { findFarthestParentNode, nodesBetweenChanged, getNodesCount } from './document';
8
7
  export { isParagraph, isText, isLinkMark } from './nodes';
@@ -61,13 +60,6 @@ export function isMarkTypeAllowedInCurrentSelection(markType, state) {
61
60
  return allowedInActiveMarks;
62
61
  });
63
62
  }
64
- var transformer = new JSONTransformer();
65
- export function toJSON(node) {
66
- return transformer.encode(node);
67
- }
68
- export function nodeToJSON(node) {
69
- return transformer.encodeNode(node);
70
- }
71
63
 
72
64
  /**
73
65
  * Repeating string for multiple times
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.45.3";
2
+ export var version = "187.46.1";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -22,7 +22,7 @@ export default class EditorActions<T = any> implements EditorActionsOptions<T> {
22
22
  blur(): boolean;
23
23
  clear(): boolean;
24
24
  __temporaryFixForConfigPanel(): Promise<void>;
25
- getValue(): Promise<import("@atlaskit/editor-json-transformer/types").JSONDocNode | T | undefined>;
25
+ getValue(): Promise<T | import("@atlaskit/editor-json-transformer/types").JSONDocNode | undefined>;
26
26
  getNodeByLocalId(id: string): Node | undefined;
27
27
  getNodeByFragmentLocalId(id: string): Node | undefined;
28
28
  /**
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { WrappedComponentProps } from 'react-intl-next';
4
- import { FindReplaceProps } from './FindReplace';
5
- import { DispatchAnalyticsEvent } from '../../analytics/types';
3
+ import type { WrappedComponentProps } from 'react-intl-next';
4
+ import type { FindReplaceProps } from './FindReplace';
5
+ import type { DispatchAnalyticsEvent } from '../../analytics/types';
6
6
  export interface FindReplaceToolbarButtonProps extends Omit<FindReplaceProps, 'count'> {
7
7
  index: number;
8
8
  numMatches: number;
@@ -1,3 +1,3 @@
1
- import { Command } from '../../../../types/command';
1
+ import { Command } from '@atlaskit/editor-common/types';
2
2
  export declare const showConfirmDialog: (buttonIndex: number) => Command;
3
3
  export declare const hideConfirmDialog: () => Command;
@@ -1,3 +1,3 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { Dispatch } from '../../../../event-dispatcher';
2
+ import { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
3
  export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData>;
@@ -1,7 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { Dispatch } from '../../../event-dispatcher';
4
- import type { PaletteColor } from '../../../ui/ColorPalette/Palettes/type';
4
+ import type { PaletteColor } from '@atlaskit/editor-common/ui-color';
5
5
  export { DEFAULT_COLOR } from '../utils/color';
6
6
  export type TextColorPluginState = {
7
7
  palette: Array<PaletteColor>;
@@ -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" | "media" | "property" | "aria-hidden" | "size" | "start" | "accessKey" | "as" | "css" | "list" | "step" | "wrap" | "preload" | "mediaGroup" | "hidden" | "aria-label" | "aria-haspopup" | "aria-keyshortcuts" | "className" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-invalid" | "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" | "multiple" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "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" | "media" | "property" | "aria-hidden" | "start" | "accessKey" | "as" | "css" | "list" | "size" | "step" | "wrap" | "preload" | "mediaGroup" | "hidden" | "aria-label" | "aria-haspopup" | "aria-keyshortcuts" | "className" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-invalid" | "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" | "multiple" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | keyof {
7
7
  theme?: any;
8
8
  featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
9
9
  }> & import("react").RefAttributes<HTMLDivElement>>;
@@ -2,7 +2,7 @@
2
2
  import { jsx } from '@emotion/react';
3
3
  import type { ColorField } from '@atlaskit/editor-common/extensions';
4
4
  import type { FeatureFlags } from '@atlaskit/editor-common/types';
5
- import type { PaletteColor } from '../../../ui/ColorPalette/Palettes';
5
+ import type { PaletteColor } from '@atlaskit/editor-common/ui-color';
6
6
  import type { OnFieldChange } from '../types';
7
7
  export declare const colorPalette: PaletteColor[];
8
8
  /**
@@ -9,6 +9,6 @@ type ContentStylesProps = {
9
9
  };
10
10
  export declare const placeholderStyles: SerializedStyles;
11
11
  type Props = ContentStylesProps & React.HTMLProps<HTMLDivElement>;
12
- export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "key" | "dir" | "color" | "content" | "height" | "translate" | "width" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "onKeyDown" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "media" | "property" | "aria-hidden" | "size" | "start" | "accessKey" | "as" | "css" | "list" | "step" | "wrap" | "preload" | "mediaGroup" | "hidden" | "aria-label" | "aria-haspopup" | "aria-keyshortcuts" | "className" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-invalid" | "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" | "multiple" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | keyof ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
13
- declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "key" | "dir" | "color" | "content" | "height" | "translate" | "width" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "onKeyDown" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "media" | "property" | "aria-hidden" | "size" | "start" | "accessKey" | "as" | "css" | "list" | "step" | "wrap" | "preload" | "mediaGroup" | "hidden" | "aria-label" | "aria-haspopup" | "aria-keyshortcuts" | "className" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-invalid" | "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" | "multiple" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | keyof ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "key" | "dir" | "color" | "content" | "height" | "translate" | "width" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "onKeyDown" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "media" | "property" | "aria-hidden" | "start" | "accessKey" | "as" | "css" | "list" | "size" | "step" | "wrap" | "preload" | "mediaGroup" | "hidden" | "aria-label" | "aria-haspopup" | "aria-keyshortcuts" | "className" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-invalid" | "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" | "multiple" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | keyof ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "key" | "dir" | "color" | "content" | "height" | "translate" | "width" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "onKeyDown" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "media" | "property" | "aria-hidden" | "start" | "accessKey" | "as" | "css" | "list" | "size" | "step" | "wrap" | "preload" | "mediaGroup" | "hidden" | "aria-label" | "aria-haspopup" | "aria-keyshortcuts" | "className" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "id" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-invalid" | "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" | "multiple" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "classID" | "cols" | "colSpan" | "controls" | "coords" | "crossOrigin" | "dateTime" | "defer" | "download" | "encType" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | keyof ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
14
14
  export default _default;
@@ -1,7 +1,3 @@
1
- import React from 'react';
2
- declare const Dropdown: React.FC<any>;
3
- export type OpenChangedEvent = {
4
- isOpen: boolean;
5
- event: MouseEvent | KeyboardEvent;
6
- };
1
+ import { DropdownContainer as Dropdown } from '@atlaskit/editor-common/ui-menu';
2
+ export type { OpenChangedEvent } from '@atlaskit/editor-common/ui';
7
3
  export default Dropdown;
@@ -1,7 +1,7 @@
1
- import type { MarkType, Node, ResolvedPos, Slice } from '@atlaskit/editor-prosemirror/model';
1
+ import type { MarkType, ResolvedPos, Slice } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
3
- import type { JSONDocNode, JSONNode } from '@atlaskit/editor-json-transformer';
4
- export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem, } from '@atlaskit/editor-common/utils';
3
+ import type { JSONDocNode } from '@atlaskit/editor-json-transformer';
4
+ export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem, toJSON, nodeToJSON, } from '@atlaskit/editor-common/utils';
5
5
  export { insideTable } from '@atlaskit/editor-common/core-utils';
6
6
  export { findFarthestParentNode, nodesBetweenChanged, getNodesCount, } from './document';
7
7
  export { isParagraph, isText, isLinkMark } from './nodes';
@@ -16,8 +16,6 @@ export declare function getCursor(selection: Selection): ResolvedPos | undefined
16
16
  * allowed.
17
17
  */
18
18
  export declare function isMarkTypeAllowedInCurrentSelection(markType: MarkType, state: EditorState): boolean;
19
- export declare function toJSON(node: Node): JSONDocNode;
20
- export declare function nodeToJSON(node: Node): JSONNode;
21
19
  /**
22
20
  * Repeating string for multiple times
23
21
  */
@@ -22,7 +22,7 @@ export default class EditorActions<T = any> implements EditorActionsOptions<T> {
22
22
  blur(): boolean;
23
23
  clear(): boolean;
24
24
  __temporaryFixForConfigPanel(): Promise<void>;
25
- getValue(): Promise<import("@atlaskit/editor-json-transformer/types").JSONDocNode | T | undefined>;
25
+ getValue(): Promise<T | import("@atlaskit/editor-json-transformer/types").JSONDocNode | undefined>;
26
26
  getNodeByLocalId(id: string): Node | undefined;
27
27
  getNodeByFragmentLocalId(id: string): Node | undefined;
28
28
  /**
@@ -1,8 +1,8 @@
1
1
  /** @jsx jsx */
2
2
  import React from 'react';
3
- import { WrappedComponentProps } from 'react-intl-next';
4
- import { FindReplaceProps } from './FindReplace';
5
- import { DispatchAnalyticsEvent } from '../../analytics/types';
3
+ import type { WrappedComponentProps } from 'react-intl-next';
4
+ import type { FindReplaceProps } from './FindReplace';
5
+ import type { DispatchAnalyticsEvent } from '../../analytics/types';
6
6
  export interface FindReplaceToolbarButtonProps extends Omit<FindReplaceProps, 'count'> {
7
7
  index: number;
8
8
  numMatches: number;
@@ -1,3 +1,3 @@
1
- import { Command } from '../../../../types/command';
1
+ import { Command } from '@atlaskit/editor-common/types';
2
2
  export declare const showConfirmDialog: (buttonIndex: number) => Command;
3
3
  export declare const hideConfirmDialog: () => Command;
@@ -1,3 +1,3 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import { Dispatch } from '../../../../event-dispatcher';
2
+ import { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
3
  export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData>;
@@ -1,7 +1,7 @@
1
1
  import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
2
  import { PluginKey } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { Dispatch } from '../../../event-dispatcher';
4
- import type { PaletteColor } from '../../../ui/ColorPalette/Palettes/type';
4
+ import type { PaletteColor } from '@atlaskit/editor-common/ui-color';
5
5
  export { DEFAULT_COLOR } from '../utils/color';
6
6
  export type TextColorPluginState = {
7
7
  palette: Array<PaletteColor>;