@atlaskit/editor-core 187.47.9 → 187.48.2

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 (190) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/{editor-next → composable-editor}/editor-internal.js +2 -22
  3. package/dist/cjs/{editor-next/index.js → composable-editor/editor.js} +16 -10
  4. package/dist/cjs/composable-editor.js +2 -3
  5. package/dist/cjs/editor.js +4 -4
  6. package/dist/cjs/index.js +7 -7
  7. package/dist/cjs/labs/next/presets/default.js +2 -2
  8. package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +3 -70
  9. package/dist/cjs/plugins/floating-toolbar/utils.js +0 -41
  10. package/dist/cjs/plugins/index.js +0 -7
  11. package/dist/cjs/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.js +28 -11
  12. package/dist/cjs/test-utils.js +2 -2
  13. package/dist/cjs/ui/CollapsedEditor/index.js +3 -3
  14. package/dist/cjs/version-wrapper.js +1 -1
  15. package/dist/es2019/{editor-next → composable-editor}/editor-internal.js +1 -23
  16. package/dist/es2019/{editor-next/index.js → composable-editor/editor.js} +15 -7
  17. package/dist/es2019/composable-editor.js +1 -1
  18. package/dist/es2019/editor.js +4 -4
  19. package/dist/es2019/index.js +1 -1
  20. package/dist/es2019/labs/next/presets/default.js +1 -1
  21. package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +1 -52
  22. package/dist/es2019/plugins/floating-toolbar/utils.js +0 -36
  23. package/dist/es2019/plugins/index.js +0 -1
  24. package/dist/es2019/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.js +21 -4
  25. package/dist/es2019/test-utils.js +1 -1
  26. package/dist/es2019/ui/CollapsedEditor/index.js +3 -3
  27. package/dist/es2019/version-wrapper.js +1 -1
  28. package/dist/esm/{editor-next → composable-editor}/editor-internal.js +1 -20
  29. package/dist/esm/{editor-next/index.js → composable-editor/editor.js} +15 -7
  30. package/dist/esm/composable-editor.js +1 -1
  31. package/dist/esm/editor.js +4 -4
  32. package/dist/esm/index.js +1 -1
  33. package/dist/esm/labs/next/presets/default.js +1 -1
  34. package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +1 -66
  35. package/dist/esm/plugins/floating-toolbar/utils.js +0 -37
  36. package/dist/esm/plugins/index.js +0 -1
  37. package/dist/esm/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.js +21 -4
  38. package/dist/esm/test-utils.js +1 -1
  39. package/dist/esm/ui/CollapsedEditor/index.js +3 -3
  40. package/dist/esm/version-wrapper.js +1 -1
  41. package/dist/{types-ts4.5/editor-next → types/composable-editor}/editor-internal.d.ts +4 -13
  42. package/dist/{types-ts4.5/editor-next/index.d.ts → types/composable-editor/editor.d.ts} +2 -4
  43. package/dist/types/{editor-next → composable-editor}/hooks/useMeasureEditorMountTime.d.ts +3 -3
  44. package/dist/types/{editor-next → composable-editor}/utils/getBaseFontSize.d.ts +1 -1
  45. package/dist/{types-ts4.5/editor-next → types/composable-editor}/utils/getProvidersFromEditorProps.d.ts +2 -2
  46. package/dist/types/{editor-next → composable-editor}/utils/sendDurationAnalytics.d.ts +4 -4
  47. package/dist/{types-ts4.5/editor-next → types/composable-editor}/utils/trackEditorActions.d.ts +3 -3
  48. package/dist/types/composable-editor.d.ts +1 -1
  49. package/dist/types/create-editor/create-plugins-list.d.ts +1 -1
  50. package/dist/types/index.d.ts +1 -1
  51. package/dist/types/labs/next/presets/default.d.ts +1 -1
  52. package/dist/types/plugins/code-block/ide-ux/quote-handling.d.ts +1 -1
  53. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.d.ts +1 -1
  54. package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +1 -1
  55. package/dist/types/plugins/floating-toolbar/ui/Select.d.ts +1 -1
  56. package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +3 -4
  57. package/dist/types/plugins/floating-toolbar/utils.d.ts +0 -2
  58. package/dist/types/plugins/index.d.ts +0 -1
  59. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  60. package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
  61. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  62. package/dist/{types/editor-next → types-ts4.5/composable-editor}/editor-internal.d.ts +4 -13
  63. package/dist/{types/editor-next/index.d.ts → types-ts4.5/composable-editor/editor.d.ts} +2 -4
  64. package/dist/types-ts4.5/{editor-next → composable-editor}/hooks/useMeasureEditorMountTime.d.ts +3 -3
  65. package/dist/types-ts4.5/{editor-next → composable-editor}/utils/getBaseFontSize.d.ts +1 -1
  66. package/dist/{types/editor-next → types-ts4.5/composable-editor}/utils/getProvidersFromEditorProps.d.ts +2 -2
  67. package/dist/types-ts4.5/{editor-next → composable-editor}/utils/sendDurationAnalytics.d.ts +4 -4
  68. package/dist/{types/editor-next → types-ts4.5/composable-editor}/utils/trackEditorActions.d.ts +3 -3
  69. package/dist/types-ts4.5/composable-editor.d.ts +1 -1
  70. package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +1 -1
  71. package/dist/types-ts4.5/index.d.ts +1 -1
  72. package/dist/types-ts4.5/labs/next/presets/default.d.ts +1 -1
  73. package/dist/types-ts4.5/plugins/code-block/ide-ux/quote-handling.d.ts +1 -1
  74. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/commands.d.ts +1 -1
  75. package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +1 -1
  76. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Select.d.ts +1 -1
  77. package/dist/types-ts4.5/plugins/floating-toolbar/ui/Toolbar.d.ts +3 -4
  78. package/dist/types-ts4.5/plugins/floating-toolbar/utils.d.ts +0 -2
  79. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  80. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  81. package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
  82. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  83. package/package.json +8 -9
  84. package/report.api.md +3 -26
  85. package/tmp/api-report-tmp.d.ts +3 -26
  86. package/dist/cjs/plugins/base/commands.js +0 -20
  87. package/dist/cjs/plugins/base/index.js +0 -13
  88. package/dist/cjs/plugins/base/plugin.js +0 -143
  89. package/dist/cjs/plugins/base/pm-plugins/context-identifier.js +0 -58
  90. package/dist/cjs/plugins/base/pm-plugins/disable-spell-checking.js +0 -63
  91. package/dist/cjs/plugins/base/pm-plugins/filter-steps.js +0 -34
  92. package/dist/cjs/plugins/base/pm-plugins/fix-chrome-88-selection.js +0 -34
  93. package/dist/cjs/plugins/base/pm-plugins/frozen-editor.js +0 -265
  94. package/dist/cjs/plugins/base/pm-plugins/inline-cursor-target.js +0 -183
  95. package/dist/cjs/plugins/base/pm-plugins/newline-preserve-marks.js +0 -34
  96. package/dist/cjs/plugins/base/pm-plugins/scroll-gutter/index.js +0 -262
  97. package/dist/cjs/plugins/base/pm-plugins/scroll-gutter/plugin-key.js +0 -15
  98. package/dist/cjs/plugins/base/utils/frozen-editor.js +0 -11
  99. package/dist/cjs/plugins/base/utils/input-latency-tracking.js +0 -134
  100. package/dist/es2019/plugins/base/commands.js +0 -13
  101. package/dist/es2019/plugins/base/index.js +0 -2
  102. package/dist/es2019/plugins/base/plugin.js +0 -113
  103. package/dist/es2019/plugins/base/pm-plugins/context-identifier.js +0 -43
  104. package/dist/es2019/plugins/base/pm-plugins/disable-spell-checking.js +0 -54
  105. package/dist/es2019/plugins/base/pm-plugins/filter-steps.js +0 -23
  106. package/dist/es2019/plugins/base/pm-plugins/fix-chrome-88-selection.js +0 -24
  107. package/dist/es2019/plugins/base/pm-plugins/frozen-editor.js +0 -258
  108. package/dist/es2019/plugins/base/pm-plugins/inline-cursor-target.js +0 -186
  109. package/dist/es2019/plugins/base/pm-plugins/newline-preserve-marks.js +0 -20
  110. package/dist/es2019/plugins/base/pm-plugins/scroll-gutter/index.js +0 -242
  111. package/dist/es2019/plugins/base/pm-plugins/scroll-gutter/plugin-key.js +0 -7
  112. package/dist/es2019/plugins/base/utils/frozen-editor.js +0 -2
  113. package/dist/es2019/plugins/base/utils/input-latency-tracking.js +0 -104
  114. package/dist/esm/plugins/base/commands.js +0 -13
  115. package/dist/esm/plugins/base/index.js +0 -2
  116. package/dist/esm/plugins/base/plugin.js +0 -131
  117. package/dist/esm/plugins/base/pm-plugins/context-identifier.js +0 -48
  118. package/dist/esm/plugins/base/pm-plugins/disable-spell-checking.js +0 -56
  119. package/dist/esm/plugins/base/pm-plugins/filter-steps.js +0 -27
  120. package/dist/esm/plugins/base/pm-plugins/fix-chrome-88-selection.js +0 -26
  121. package/dist/esm/plugins/base/pm-plugins/frozen-editor.js +0 -251
  122. package/dist/esm/plugins/base/pm-plugins/inline-cursor-target.js +0 -174
  123. package/dist/esm/plugins/base/pm-plugins/newline-preserve-marks.js +0 -26
  124. package/dist/esm/plugins/base/pm-plugins/scroll-gutter/index.js +0 -254
  125. package/dist/esm/plugins/base/pm-plugins/scroll-gutter/plugin-key.js +0 -7
  126. package/dist/esm/plugins/base/utils/frozen-editor.js +0 -4
  127. package/dist/esm/plugins/base/utils/input-latency-tracking.js +0 -128
  128. package/dist/types/plugins/base/commands.d.ts +0 -2
  129. package/dist/types/plugins/base/index.d.ts +0 -5
  130. package/dist/types/plugins/base/plugin.d.ts +0 -25
  131. package/dist/types/plugins/base/pm-plugins/context-identifier.d.ts +0 -13
  132. package/dist/types/plugins/base/pm-plugins/disable-spell-checking.d.ts +0 -4
  133. package/dist/types/plugins/base/pm-plugins/filter-steps.d.ts +0 -4
  134. package/dist/types/plugins/base/pm-plugins/fix-chrome-88-selection.d.ts +0 -5
  135. package/dist/types/plugins/base/pm-plugins/frozen-editor.d.ts +0 -12
  136. package/dist/types/plugins/base/pm-plugins/inline-cursor-target.d.ts +0 -17
  137. package/dist/types/plugins/base/pm-plugins/newline-preserve-marks.d.ts +0 -5
  138. package/dist/types/plugins/base/pm-plugins/scroll-gutter/index.d.ts +0 -22
  139. package/dist/types/plugins/base/pm-plugins/scroll-gutter/plugin-key.d.ts +0 -7
  140. package/dist/types/plugins/base/utils/frozen-editor.d.ts +0 -2
  141. package/dist/types/plugins/base/utils/input-latency-tracking.d.ts +0 -42
  142. package/dist/types-ts4.5/plugins/base/commands.d.ts +0 -2
  143. package/dist/types-ts4.5/plugins/base/index.d.ts +0 -5
  144. package/dist/types-ts4.5/plugins/base/plugin.d.ts +0 -27
  145. package/dist/types-ts4.5/plugins/base/pm-plugins/context-identifier.d.ts +0 -13
  146. package/dist/types-ts4.5/plugins/base/pm-plugins/disable-spell-checking.d.ts +0 -4
  147. package/dist/types-ts4.5/plugins/base/pm-plugins/filter-steps.d.ts +0 -4
  148. package/dist/types-ts4.5/plugins/base/pm-plugins/fix-chrome-88-selection.d.ts +0 -5
  149. package/dist/types-ts4.5/plugins/base/pm-plugins/frozen-editor.d.ts +0 -12
  150. package/dist/types-ts4.5/plugins/base/pm-plugins/inline-cursor-target.d.ts +0 -17
  151. package/dist/types-ts4.5/plugins/base/pm-plugins/newline-preserve-marks.d.ts +0 -5
  152. package/dist/types-ts4.5/plugins/base/pm-plugins/scroll-gutter/index.d.ts +0 -22
  153. package/dist/types-ts4.5/plugins/base/pm-plugins/scroll-gutter/plugin-key.d.ts +0 -7
  154. package/dist/types-ts4.5/plugins/base/utils/frozen-editor.d.ts +0 -2
  155. package/dist/types-ts4.5/plugins/base/utils/input-latency-tracking.d.ts +0 -42
  156. /package/dist/cjs/{editor-next → composable-editor}/hooks/useEditorMeasuresConstructor.js +0 -0
  157. /package/dist/cjs/{editor-next → composable-editor}/hooks/useMeasureEditorMountTime.js +0 -0
  158. /package/dist/cjs/{editor-next → composable-editor}/hooks/useProviderFactory.js +0 -0
  159. /package/dist/cjs/{editor-next → composable-editor}/utils/editorMeasureTTICallback.js +0 -0
  160. /package/dist/cjs/{editor-next → composable-editor}/utils/getBaseFontSize.js +0 -0
  161. /package/dist/cjs/{editor-next → composable-editor}/utils/getProvidersFromEditorProps.js +0 -0
  162. /package/dist/cjs/{editor-next → composable-editor}/utils/handleProviders.js +0 -0
  163. /package/dist/cjs/{editor-next → composable-editor}/utils/sendDurationAnalytics.js +0 -0
  164. /package/dist/cjs/{editor-next → composable-editor}/utils/trackEditorActions.js +0 -0
  165. /package/dist/es2019/{editor-next → composable-editor}/hooks/useEditorMeasuresConstructor.js +0 -0
  166. /package/dist/es2019/{editor-next → composable-editor}/hooks/useMeasureEditorMountTime.js +0 -0
  167. /package/dist/es2019/{editor-next → composable-editor}/hooks/useProviderFactory.js +0 -0
  168. /package/dist/es2019/{editor-next → composable-editor}/utils/editorMeasureTTICallback.js +0 -0
  169. /package/dist/es2019/{editor-next → composable-editor}/utils/getBaseFontSize.js +0 -0
  170. /package/dist/es2019/{editor-next → composable-editor}/utils/getProvidersFromEditorProps.js +0 -0
  171. /package/dist/es2019/{editor-next → composable-editor}/utils/handleProviders.js +0 -0
  172. /package/dist/es2019/{editor-next → composable-editor}/utils/sendDurationAnalytics.js +0 -0
  173. /package/dist/es2019/{editor-next → composable-editor}/utils/trackEditorActions.js +0 -0
  174. /package/dist/esm/{editor-next → composable-editor}/hooks/useEditorMeasuresConstructor.js +0 -0
  175. /package/dist/esm/{editor-next → composable-editor}/hooks/useMeasureEditorMountTime.js +0 -0
  176. /package/dist/esm/{editor-next → composable-editor}/hooks/useProviderFactory.js +0 -0
  177. /package/dist/esm/{editor-next → composable-editor}/utils/editorMeasureTTICallback.js +0 -0
  178. /package/dist/esm/{editor-next → composable-editor}/utils/getBaseFontSize.js +0 -0
  179. /package/dist/esm/{editor-next → composable-editor}/utils/getProvidersFromEditorProps.js +0 -0
  180. /package/dist/esm/{editor-next → composable-editor}/utils/handleProviders.js +0 -0
  181. /package/dist/esm/{editor-next → composable-editor}/utils/sendDurationAnalytics.js +0 -0
  182. /package/dist/esm/{editor-next → composable-editor}/utils/trackEditorActions.js +0 -0
  183. /package/dist/types/{editor-next → composable-editor}/hooks/useEditorMeasuresConstructor.d.ts +0 -0
  184. /package/dist/types/{editor-next → composable-editor}/hooks/useProviderFactory.d.ts +0 -0
  185. /package/dist/types/{editor-next → composable-editor}/utils/editorMeasureTTICallback.d.ts +0 -0
  186. /package/dist/types/{editor-next → composable-editor}/utils/handleProviders.d.ts +0 -0
  187. /package/dist/types-ts4.5/{editor-next → composable-editor}/hooks/useEditorMeasuresConstructor.d.ts +0 -0
  188. /package/dist/types-ts4.5/{editor-next → composable-editor}/hooks/useProviderFactory.d.ts +0 -0
  189. /package/dist/types-ts4.5/{editor-next → composable-editor}/utils/editorMeasureTTICallback.d.ts +0 -0
  190. /package/dist/types-ts4.5/{editor-next → composable-editor}/utils/handleProviders.d.ts +0 -0
@@ -10,7 +10,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
10
10
  import { IntlProviderIfMissingWrapper } from '@atlaskit/editor-common/ui';
11
11
  import React from 'react';
12
12
  import Editor from '../../editor';
13
- import EditorNext from '../../editor-next';
13
+ import { ComposableEditor } from '../../composable-editor';
14
14
  import EditorWithActions from '../../labs/EditorWithActions';
15
15
  import ChromeCollapsed from '../ChromeCollapsed';
16
16
  var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
@@ -45,10 +45,10 @@ var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
45
45
  value: function render() {
46
46
  var _this2 = this;
47
47
  var child = React.Children.only(this.props.children);
48
- if (child.type !== Editor && child.type !== EditorWithActions && child.type !== EditorNext) {
48
+ if (child.type !== Editor && child.type !== EditorWithActions && child.type !== ComposableEditor) {
49
49
  throw new Error('Expected child to be of type `Editor`');
50
50
  }
51
- this.functionalEditor = child.type === EditorNext;
51
+ this.functionalEditor = child.type === ComposableEditor;
52
52
  if (!this.props.isExpanded) {
53
53
  return /*#__PURE__*/React.createElement(IntlProviderIfMissingWrapper, null, /*#__PURE__*/React.createElement(ChromeCollapsed, {
54
54
  onFocus: this.props.onFocus,
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "187.47.9";
2
+ export var version = "187.48.2";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -5,17 +5,15 @@ import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
5
5
  import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
6
6
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
7
  import type { AllEditorPresetPluginTypes, Transformer } from '@atlaskit/editor-common/types';
8
- import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
9
8
  import type EditorActions from '../actions';
10
9
  import type { EventDispatcher } from '../event-dispatcher';
11
- import type { EditorNextProps, EditorProps } from '../types/editor-props';
12
- interface Props<PropsType> {
13
- props: PropsType;
10
+ import type { EditorNextProps } from '../types/editor-props';
11
+ interface InternalProps {
12
+ props: EditorNextProps;
14
13
  handleAnalyticsEvent: FireAnalyticsCallback;
15
14
  createAnalyticsEvent: CreateUIAnalyticsEvent;
16
15
  handleSave: (view: EditorView) => void;
17
16
  editorActions: EditorActions;
18
- getExperienceStore: () => ExperienceStore | undefined;
19
17
  onEditorCreated: (instance: {
20
18
  view: EditorView;
21
19
  eventDispatcher: EventDispatcher;
@@ -26,18 +24,11 @@ interface Props<PropsType> {
26
24
  transformer?: Transformer<string>;
27
25
  }) => void;
28
26
  preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
29
- }
30
- interface InternalProps extends Omit<Props<EditorNextProps | EditorProps>, 'getExperienceStore'> {
31
27
  providerFactory: ProviderFactory;
32
28
  }
33
- /**
34
- * EditorInternal is used for the internal editor react component
35
- * with the lifecycle methods extracted into hooks.
36
- */
37
- export default function EditorInternal(props: Props<EditorNextProps>): jsx.JSX.Element;
38
29
  /**
39
30
  * EditorInternalComponent is used to capture the common component
40
31
  * from the `render` method of `Editor` and share it with `EditorNext`.
41
32
  */
42
- export declare function EditorInternalWithoutHooks({ props, handleAnalyticsEvent, createAnalyticsEvent, handleSave, editorActions, providerFactory, onEditorCreated, onEditorDestroyed, preset, }: InternalProps): jsx.JSX.Element;
33
+ export declare function EditorInternal({ props, handleAnalyticsEvent, createAnalyticsEvent, handleSave, editorActions, providerFactory, onEditorCreated, onEditorDestroyed, preset, }: InternalProps): jsx.JSX.Element;
43
34
  export {};
@@ -1,11 +1,9 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import type { EditorNextProps } from '../types/editor-props';
3
- export declare function Editor(passedProps: EditorNextProps): jsx.JSX.Element;
4
- declare function EditorNext(props: EditorNextProps): jsx.JSX.Element;
5
- declare namespace EditorNext {
3
+ export declare function ComposableEditor(props: EditorNextProps): jsx.JSX.Element;
4
+ export declare namespace ComposableEditor {
6
5
  var propTypes: {
7
6
  minHeight: ({ appearance, minHeight, }: Pick<EditorNextProps, "appearance" | "minHeight">) => Error | null;
8
7
  preset: ({ preset }: Pick<EditorNextProps, "preset">) => Error | null;
9
8
  };
10
9
  }
11
- export default EditorNext;
@@ -1,6 +1,6 @@
1
- import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- import { ExperienceStore } from '@atlaskit/editor-common/ufo';
3
- import { EditorNextProps, EditorProps } from '../../types/editor-props';
1
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
3
+ import type { EditorNextProps, EditorProps } from '../../types/editor-props';
4
4
  /**
5
5
  *
6
6
  * Hook to run the analytics for the Editor component.
@@ -1,4 +1,4 @@
1
- import { EditorAppearance } from '@atlaskit/editor-common/types';
1
+ import type { EditorAppearance } from '@atlaskit/editor-common/types';
2
2
  /**
3
3
  * @param appearance
4
4
  * @returns default font size if valid
@@ -1,5 +1,5 @@
1
- import { Providers } from '@atlaskit/editor-common/provider-factory';
2
- import { EditorProps } from '../../types/editor-props';
1
+ import type { Providers } from '@atlaskit/editor-common/provider-factory';
2
+ import type { EditorProps } from '../../types/editor-props';
3
3
  type Complete<T> = {
4
4
  [P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : T[P] | undefined;
5
5
  };
@@ -1,7 +1,7 @@
1
- import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- import { ACTION } from '@atlaskit/editor-common/analytics';
3
- import { ExperienceStore } from '@atlaskit/editor-common/ufo';
4
- import { EditorProps } from '../../types/editor-props';
1
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import type { ACTION } from '@atlaskit/editor-common/analytics';
3
+ import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
4
+ import type { EditorProps } from '../../types/editor-props';
5
5
  /**
6
6
  *
7
7
  * Util function to be used with the Editor component to send duration analytics
@@ -1,6 +1,6 @@
1
- import { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
2
- import EditorActions from '../../actions';
3
- import { PerformanceTracking } from '../../types/performance-tracking';
1
+ import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
2
+ import type EditorActions from '../../actions';
3
+ import type { PerformanceTracking } from '../../types/performance-tracking';
4
4
  /**
5
5
  *
6
6
  * Util function to be used with the Editor to track the EditorActions prop
@@ -1 +1 @@
1
- export { default as ComposableEditor } from './editor-next';
1
+ export { ComposableEditor } from './composable-editor/editor';
@@ -1,7 +1,7 @@
1
1
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import type { EditorPlugin, EditorProps } from '../types';
3
3
  import type { EditorPluginFeatureProps } from '../types/editor-props';
4
- import type { ScrollGutterPluginOptions } from '../plugins/base/pm-plugins/scroll-gutter';
4
+ import type { ScrollGutterPluginOptions } from '@atlaskit/editor-plugin-base';
5
5
  import type { DefaultPresetPluginOptions } from '../labs/next/presets/default';
6
6
  import type { EditorPresetProps } from '../labs/next/presets/types';
7
7
  import type { EditorPresetBuilder, EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
@@ -61,7 +61,7 @@ QuickInsertProvider, } from '@atlaskit/editor-common/provider-factory';
61
61
  export { historyPluginKey } from './plugins/history';
62
62
  export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, } from '@atlaskit/editor-common/analytics';
63
63
  export type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
64
- export { setKeyboardHeight } from './plugins/base/commands';
64
+ export { setKeyboardHeight } from '@atlaskit/editor-plugin-base';
65
65
  export { setMobilePaddingTop, setIsExpanded, } from './plugins/mobile-dimensions/commands';
66
66
  export { setTextSelection, getNodesCount, measurements } from './utils';
67
67
  export {
@@ -1,6 +1,6 @@
1
1
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import type { PastePluginOptions } from '../../../plugins/paste';
3
- import type { BasePluginOptions } from '../../../plugins/base';
3
+ import type { BasePluginOptions } from '@atlaskit/editor-plugin-base';
4
4
  import type { EditorProps } from '../../../types/editor-props';
5
5
  import type { EditorPresetProps } from './types';
6
6
  import type { BlockTypePluginOptions } from '@atlaskit/editor-plugin-block-type';
@@ -6,7 +6,7 @@ export declare const QUOTE_MAP: {
6
6
  export type QuoteMapKey = keyof typeof QUOTE_MAP;
7
7
  export declare const shouldAutoCloseQuote: (before: string, after: string) => boolean;
8
8
  export declare const getAutoClosingQuoteInfo: (before: string, after: string) => {
9
- left: "'" | "\"" | "`" | undefined;
9
+ left: "`" | "'" | "\"" | undefined;
10
10
  right: string | undefined;
11
11
  hasTrailingMatchingQuote: boolean;
12
12
  };
@@ -1,3 +1,3 @@
1
- import { Command } from '@atlaskit/editor-common/types';
1
+ import type { 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 '@atlaskit/editor-common/event-dispatcher';
2
+ import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
3
  export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ValueType } from '@atlaskit/select';
2
+ import type { ValueType } from '@atlaskit/select';
3
3
  import type { RenderOptionsPropsT, SelectOption } from '@atlaskit/editor-common/types';
4
4
  export type { RenderOptionsPropsT, SelectOption };
5
5
  export interface Props {
@@ -6,11 +6,12 @@ import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
6
6
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
7
  import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
8
8
  import type { WrappedComponentProps } from 'react-intl-next';
9
- import type { FloatingToolbarItem, FeatureFlags, PluginInjectionAPIWithDependencies, OptionalPlugin } from '@atlaskit/editor-common/types';
9
+ import type { FeatureFlags, PluginInjectionAPIWithDependencies, OptionalPlugin } from '@atlaskit/editor-common/types';
10
10
  import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
11
11
  import type { contextPanelPlugin } from '@atlaskit/editor-plugin-context-panel';
12
12
  import type { ExtensionPlugin } from '@atlaskit/editor-plugin-extension';
13
- export type Item = FloatingToolbarItem<Function>;
13
+ import type { Item } from '@atlaskit/editor-common/floating-toolbar';
14
+ export type { Item };
14
15
  export interface Props {
15
16
  items: Array<Item>;
16
17
  dispatchCommand: (command?: Function) => void;
@@ -33,8 +34,6 @@ export interface Props {
33
34
  OptionalPlugin<ExtensionPlugin>
34
35
  ]> | undefined;
35
36
  }
36
- export declare const isSameItem: (leftItem: Item, rightItem: Item) => boolean;
37
- export declare const areSameItems: (leftArr?: Array<Item>, rightArr?: Array<Item>) => boolean;
38
37
  export interface State {
39
38
  scrollDisabled: boolean;
40
39
  mounted: boolean;
@@ -1,4 +1,2 @@
1
1
  import type { Node } from '@atlaskit/editor-prosemirror/model';
2
- export declare const shallowEqual: (objA?: Object, objB?: Object) => boolean;
3
- export declare const compareArrays: <T extends any[]>(left: T[], right: T[], compareFn?: (left: T, right: T) => boolean) => boolean;
4
2
  export declare function findNode(parent: Node, predicate: (node: Node) => boolean): Node | undefined;
@@ -1,4 +1,3 @@
1
- export { basePlugin } from './base';
2
1
  export { default as betterTypeHistoryPlugin } from './better-type-history';
3
2
  export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-marks-on-change-to-empty-document';
4
3
  export { default as codeBlockPlugin } from './code-block';
@@ -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" | "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 {
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" | "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" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "as" | "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" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "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>>;
@@ -12,5 +12,5 @@ interface Props {
12
12
  export declare const FormErrorBoundaryImpl: React.FC<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps<"intl">>> & {
13
13
  WrappedComponent: React.ComponentType<Props & WithAnalyticsEventsProps & WrappedComponentProps<"intl">>;
14
14
  };
15
- export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps<"intl">>>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "analyticsContext" | "forwardedRef" | keyof Props> & React.RefAttributes<any>>;
15
+ export declare const FormErrorBoundary: React.ForwardRefExoticComponent<Pick<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<Props & WithAnalyticsEventsProps & WrappedComponentProps<"intl">>>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "key" | "forwardedRef" | "analyticsContext" | keyof Props> & React.RefAttributes<any>>;
16
16
  export {};
@@ -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" | "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>>;
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" | "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" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "as" | "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" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "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" | "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" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "as" | "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" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "rel" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "srcDoc" | "srcLang" | "srcSet" | "useMap" | "wmode" | keyof ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
14
14
  export default _default;
@@ -5,17 +5,15 @@ import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
5
5
  import type { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
6
6
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
7
7
  import type { AllEditorPresetPluginTypes, Transformer } from '@atlaskit/editor-common/types';
8
- import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
9
8
  import type EditorActions from '../actions';
10
9
  import type { EventDispatcher } from '../event-dispatcher';
11
- import type { EditorNextProps, EditorProps } from '../types/editor-props';
12
- interface Props<PropsType> {
13
- props: PropsType;
10
+ import type { EditorNextProps } from '../types/editor-props';
11
+ interface InternalProps {
12
+ props: EditorNextProps;
14
13
  handleAnalyticsEvent: FireAnalyticsCallback;
15
14
  createAnalyticsEvent: CreateUIAnalyticsEvent;
16
15
  handleSave: (view: EditorView) => void;
17
16
  editorActions: EditorActions;
18
- getExperienceStore: () => ExperienceStore | undefined;
19
17
  onEditorCreated: (instance: {
20
18
  view: EditorView;
21
19
  eventDispatcher: EventDispatcher;
@@ -26,18 +24,11 @@ interface Props<PropsType> {
26
24
  transformer?: Transformer<string>;
27
25
  }) => void;
28
26
  preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
29
- }
30
- interface InternalProps extends Omit<Props<EditorNextProps | EditorProps>, 'getExperienceStore'> {
31
27
  providerFactory: ProviderFactory;
32
28
  }
33
- /**
34
- * EditorInternal is used for the internal editor react component
35
- * with the lifecycle methods extracted into hooks.
36
- */
37
- export default function EditorInternal(props: Props<EditorNextProps>): jsx.JSX.Element;
38
29
  /**
39
30
  * EditorInternalComponent is used to capture the common component
40
31
  * from the `render` method of `Editor` and share it with `EditorNext`.
41
32
  */
42
- export declare function EditorInternalWithoutHooks({ props, handleAnalyticsEvent, createAnalyticsEvent, handleSave, editorActions, providerFactory, onEditorCreated, onEditorDestroyed, preset, }: InternalProps): jsx.JSX.Element;
33
+ export declare function EditorInternal({ props, handleAnalyticsEvent, createAnalyticsEvent, handleSave, editorActions, providerFactory, onEditorCreated, onEditorDestroyed, preset, }: InternalProps): jsx.JSX.Element;
43
34
  export {};
@@ -1,11 +1,9 @@
1
1
  import { jsx } from '@emotion/react';
2
2
  import type { EditorNextProps } from '../types/editor-props';
3
- export declare function Editor(passedProps: EditorNextProps): jsx.JSX.Element;
4
- declare function EditorNext(props: EditorNextProps): jsx.JSX.Element;
5
- declare namespace EditorNext {
3
+ export declare function ComposableEditor(props: EditorNextProps): jsx.JSX.Element;
4
+ export declare namespace ComposableEditor {
6
5
  var propTypes: {
7
6
  minHeight: ({ appearance, minHeight, }: Pick<EditorNextProps, "appearance" | "minHeight">) => Error | null;
8
7
  preset: ({ preset }: Pick<EditorNextProps, "preset">) => Error | null;
9
8
  };
10
9
  }
11
- export default EditorNext;
@@ -1,6 +1,6 @@
1
- import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- import { ExperienceStore } from '@atlaskit/editor-common/ufo';
3
- import { EditorNextProps, EditorProps } from '../../types/editor-props';
1
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
3
+ import type { EditorNextProps, EditorProps } from '../../types/editor-props';
4
4
  /**
5
5
  *
6
6
  * Hook to run the analytics for the Editor component.
@@ -1,4 +1,4 @@
1
- import { EditorAppearance } from '@atlaskit/editor-common/types';
1
+ import type { EditorAppearance } from '@atlaskit/editor-common/types';
2
2
  /**
3
3
  * @param appearance
4
4
  * @returns default font size if valid
@@ -1,5 +1,5 @@
1
- import { Providers } from '@atlaskit/editor-common/provider-factory';
2
- import { EditorProps } from '../../types/editor-props';
1
+ import type { Providers } from '@atlaskit/editor-common/provider-factory';
2
+ import type { EditorProps } from '../../types/editor-props';
3
3
  type Complete<T> = {
4
4
  [P in keyof Required<T>]: Pick<T, P> extends Required<Pick<T, P>> ? T[P] : T[P] | undefined;
5
5
  };
@@ -1,7 +1,7 @@
1
- import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- import { ACTION } from '@atlaskit/editor-common/analytics';
3
- import { ExperienceStore } from '@atlaskit/editor-common/ufo';
4
- import { EditorProps } from '../../types/editor-props';
1
+ import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
+ import type { ACTION } from '@atlaskit/editor-common/analytics';
3
+ import type { ExperienceStore } from '@atlaskit/editor-common/ufo';
4
+ import type { EditorProps } from '../../types/editor-props';
5
5
  /**
6
6
  *
7
7
  * Util function to be used with the Editor component to send duration analytics
@@ -1,6 +1,6 @@
1
- import { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
2
- import EditorActions from '../../actions';
3
- import { PerformanceTracking } from '../../types/performance-tracking';
1
+ import type { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
2
+ import type EditorActions from '../../actions';
3
+ import type { PerformanceTracking } from '../../types/performance-tracking';
4
4
  /**
5
5
  *
6
6
  * Util function to be used with the Editor to track the EditorActions prop
@@ -1 +1 @@
1
- export { default as ComposableEditor } from './editor-next';
1
+ export { ComposableEditor } from './composable-editor/editor';
@@ -1,7 +1,7 @@
1
1
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import type { EditorPlugin, EditorProps } from '../types';
3
3
  import type { EditorPluginFeatureProps } from '../types/editor-props';
4
- import type { ScrollGutterPluginOptions } from '../plugins/base/pm-plugins/scroll-gutter';
4
+ import type { ScrollGutterPluginOptions } from '@atlaskit/editor-plugin-base';
5
5
  import type { DefaultPresetPluginOptions } from '../labs/next/presets/default';
6
6
  import type { EditorPresetProps } from '../labs/next/presets/types';
7
7
  import type { EditorPresetBuilder, EditorPluginInjectionAPI } from '@atlaskit/editor-common/preset';
@@ -61,7 +61,7 @@ QuickInsertProvider, } from '@atlaskit/editor-common/provider-factory';
61
61
  export { historyPluginKey } from './plugins/history';
62
62
  export { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, } from '@atlaskit/editor-common/analytics';
63
63
  export type { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
64
- export { setKeyboardHeight } from './plugins/base/commands';
64
+ export { setKeyboardHeight } from '@atlaskit/editor-plugin-base';
65
65
  export { setMobilePaddingTop, setIsExpanded, } from './plugins/mobile-dimensions/commands';
66
66
  export { setTextSelection, getNodesCount, measurements } from './utils';
67
67
  export {
@@ -1,6 +1,6 @@
1
1
  import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
2
  import type { PastePluginOptions } from '../../../plugins/paste';
3
- import type { BasePluginOptions } from '../../../plugins/base';
3
+ import type { BasePluginOptions } from '@atlaskit/editor-plugin-base';
4
4
  import type { EditorProps } from '../../../types/editor-props';
5
5
  import type { EditorPresetProps } from './types';
6
6
  import type { BlockTypePluginOptions } from '@atlaskit/editor-plugin-block-type';
@@ -6,7 +6,7 @@ export declare const QUOTE_MAP: {
6
6
  export type QuoteMapKey = keyof typeof QUOTE_MAP;
7
7
  export declare const shouldAutoCloseQuote: (before: string, after: string) => boolean;
8
8
  export declare const getAutoClosingQuoteInfo: (before: string, after: string) => {
9
- left: "'" | "\"" | "`" | undefined;
9
+ left: "`" | "'" | "\"" | undefined;
10
10
  right: string | undefined;
11
11
  hasTrailingMatchingQuote: boolean;
12
12
  };
@@ -1,3 +1,3 @@
1
- import { Command } from '@atlaskit/editor-common/types';
1
+ import type { 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 '@atlaskit/editor-common/event-dispatcher';
2
+ import type { Dispatch } from '@atlaskit/editor-common/event-dispatcher';
3
3
  export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<import("@atlaskit/editor-plugin-floating-toolbar").FloatingToolbarPluginData>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ValueType } from '@atlaskit/select';
2
+ import type { ValueType } from '@atlaskit/select';
3
3
  import type { RenderOptionsPropsT, SelectOption } from '@atlaskit/editor-common/types';
4
4
  export type { RenderOptionsPropsT, SelectOption };
5
5
  export interface Props {