@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
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-core",
3
- "version": "187.47.9",
3
+ "version": "187.48.2",
4
4
  "description": "A package contains Atlassian editor core functionality",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -55,11 +55,12 @@
55
55
  "@atlaskit/code": "^14.6.0",
56
56
  "@atlaskit/date": "^0.10.0",
57
57
  "@atlaskit/datetime-picker": "^12.10.0",
58
- "@atlaskit/editor-common": "^75.8.0",
58
+ "@atlaskit/editor-common": "^76.1.0",
59
59
  "@atlaskit/editor-json-transformer": "^8.10.0",
60
60
  "@atlaskit/editor-markdown-transformer": "^5.2.5",
61
61
  "@atlaskit/editor-palette": "1.5.1",
62
62
  "@atlaskit/editor-plugin-analytics": "^0.2.0",
63
+ "@atlaskit/editor-plugin-base": "^0.1.0",
63
64
  "@atlaskit/editor-plugin-block-type": "^1.0.0",
64
65
  "@atlaskit/editor-plugin-card": "^0.8.0",
65
66
  "@atlaskit/editor-plugin-composition": "^0.1.0",
@@ -81,7 +82,7 @@
81
82
  "@atlaskit/editor-plugin-placeholder": "^0.1.0",
82
83
  "@atlaskit/editor-plugin-quick-insert": "^0.1.0",
83
84
  "@atlaskit/editor-plugin-rule": "^0.1.0",
84
- "@atlaskit/editor-plugin-table": "^3.2.0",
85
+ "@atlaskit/editor-plugin-table": "^4.0.0",
85
86
  "@atlaskit/editor-plugin-text-formatting": "^0.4.0",
86
87
  "@atlaskit/editor-plugin-type-ahead": "^0.3.0",
87
88
  "@atlaskit/editor-plugin-unsupported-content": "^0.2.0",
@@ -153,10 +154,10 @@
153
154
  "@af/integration-testing": "*",
154
155
  "@af/visual-regression": "*",
155
156
  "@atlaskit/code": "^14.6.0",
156
- "@atlaskit/collab-provider": "9.12.3",
157
+ "@atlaskit/collab-provider": "9.12.4",
157
158
  "@atlaskit/dropdown-menu": "^11.14.0",
158
159
  "@atlaskit/editor-extension-dropbox": "^0.4.0",
159
- "@atlaskit/editor-plugin-table": "^3.2.0",
160
+ "@atlaskit/editor-plugin-table": "^4.0.0",
160
161
  "@atlaskit/flag": "^15.2.0",
161
162
  "@atlaskit/icon-object": "^6.3.0",
162
163
  "@atlaskit/inline-dialog": "^13.6.0",
@@ -178,11 +179,12 @@
178
179
  "@atlaskit/util-data-test": "^17.8.0",
179
180
  "@atlaskit/visual-regression": "*",
180
181
  "@atlaskit/webdriver-runner": "*",
182
+ "@atlassian/adf-schema-json": "^1.0.7",
181
183
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
182
184
  "@atlassian/editor-extension-link-create": "^0.4.0",
183
185
  "@atlassian/feature-flags-test-utils": "^0.1.1",
184
186
  "@atlassian/link-picker-plugins": "^23.0.0",
185
- "@atlassian/search-provider": "2.4.7",
187
+ "@atlassian/search-provider": "2.4.8",
186
188
  "@atlassian/ufo": "^0.2.0",
187
189
  "@emotion/jest": "^11.8.0",
188
190
  "@storybook/addon-knobs": "^5.3.18",
@@ -270,9 +272,6 @@
270
272
  "type": "boolean",
271
273
  "referenceOnly": "true"
272
274
  },
273
- "platform.editor.disable-chrome-88-selection-fix_uk53m": {
274
- "type": "boolean"
275
- },
276
275
  "platform.linking-platform.datasource-jira_issues": {
277
276
  "type": "boolean"
278
277
  },
package/report.api.md CHANGED
@@ -29,8 +29,8 @@ import type { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit
29
29
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
30
30
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
31
31
  import type { AnnotationTypes } from '@atlaskit/adf-schema';
32
+ import type { BasePluginOptions } from '@atlaskit/editor-plugin-base';
32
33
  import type { BlockTypePluginOptions } from '@atlaskit/editor-plugin-block-type';
33
- import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
34
34
  import type { CardOptions } from '@atlaskit/editor-common/card';
35
35
  import { CardProvider } from '@atlaskit/editor-common/provider-factory';
36
36
  import { clearEditorContent } from '@atlaskit/editor-common/commands';
@@ -90,7 +90,6 @@ import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
90
90
  import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
91
91
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
92
92
  import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
93
- import { InputTracking } from '@atlaskit/editor-common/types';
94
93
  import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
95
94
  import { jsx } from '@emotion/react';
96
95
  import { lightModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
@@ -146,6 +145,7 @@ import type { Schema } from '@atlaskit/editor-prosemirror/model';
146
145
  import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
147
146
  import type { SelectionPluginOptions } from '@atlaskit/editor-common/selection';
148
147
  import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
148
+ import { setKeyboardHeight } from '@atlaskit/editor-plugin-base';
149
149
  import { setTextSelection } from '@atlaskit/editor-common/utils';
150
150
  import type { SEVERITY } from '@atlaskit/editor-common/utils';
151
151
  import type { TaskDecisionProvider } from '@atlaskit/task-decision';
@@ -258,20 +258,6 @@ export class AnnotationUpdateEmitter extends EventEmitter_2 {
258
258
  on(event: UpdateEvent, listener: (annotationId: string) => void): this;
259
259
  }
260
260
 
261
- // @public (undocumented)
262
- interface BasePluginOptions {
263
- // (undocumented)
264
- allowInlineCursorTarget?: boolean;
265
- // (undocumented)
266
- allowScrollGutter?: ScrollGutterPluginOptions;
267
- // (undocumented)
268
- browserFreezeTracking?: BrowserFreezetracking;
269
- // (undocumented)
270
- inputTracking?: InputTracking;
271
- // (undocumented)
272
- ufo?: boolean;
273
- }
274
-
275
261
  // @public (undocumented)
276
262
  export class BaseReactEditorView<T = {}> extends ReactEditorView_2<T> {}
277
263
 
@@ -1820,14 +1806,6 @@ interface RectData {
1820
1806
  // @public (undocumented)
1821
1807
  export const removeStatus: (showStatusPickerAt: number) => Command;
1822
1808
 
1823
- // @public (undocumented)
1824
- type ScrollGutterPluginOptions = {
1825
- getScrollElement?: (view: EditorView) => HTMLElement | null;
1826
- allowCustomScrollHandler?: boolean;
1827
- persistScrollGutter?: boolean;
1828
- gutterSize?: number;
1829
- };
1830
-
1831
1809
  // @public (undocumented)
1832
1810
  export type SelectionData =
1833
1811
  | AllSelectionData
@@ -1857,8 +1835,7 @@ type SetEditorAPI = (editorApi: PublicPluginAPI<any>) => void;
1857
1835
  // @public (undocumented)
1858
1836
  export const setIsExpanded: (isExpanded: boolean) => Command_2;
1859
1837
 
1860
- // @public (undocumented)
1861
- export const setKeyboardHeight: (keyboardHeight: number) => Command_2;
1838
+ export { setKeyboardHeight };
1862
1839
 
1863
1840
  // @public (undocumented)
1864
1841
  export const setMobilePaddingTop: (paddingTop: number) => Command_2;
@@ -18,8 +18,8 @@ import type { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit
18
18
  import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
19
19
  import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
20
20
  import type { AnnotationTypes } from '@atlaskit/adf-schema';
21
+ import type { BasePluginOptions } from '@atlaskit/editor-plugin-base';
21
22
  import type { BlockTypePluginOptions } from '@atlaskit/editor-plugin-block-type';
22
- import { BrowserFreezetracking } from '@atlaskit/editor-common/types';
23
23
  import type { CardOptions } from '@atlaskit/editor-common/card';
24
24
  import { CardProvider } from '@atlaskit/editor-common/provider-factory';
25
25
  import { clearEditorContent } from '@atlaskit/editor-common/commands';
@@ -79,7 +79,6 @@ import type { GuidelinePlugin } from '@atlaskit/editor-plugin-guideline';
79
79
  import type { HyperlinkPluginOptions } from '@atlaskit/editor-common/types';
80
80
  import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
81
81
  import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
82
- import { InputTracking } from '@atlaskit/editor-common/types';
83
82
  import { JSONDocNode } from '@atlaskit/editor-json-transformer/types';
84
83
  import { jsx } from '@emotion/react';
85
84
  import { lightModeStatusColorPalette } from '@atlaskit/editor-common/ui-color';
@@ -135,6 +134,7 @@ import type { Schema } from '@atlaskit/editor-prosemirror/model';
135
134
  import type { SearchProvider } from '@atlaskit/editor-common/provider-factory';
136
135
  import type { SelectionPluginOptions } from '@atlaskit/editor-common/selection';
137
136
  import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
137
+ import { setKeyboardHeight } from '@atlaskit/editor-plugin-base';
138
138
  import { setTextSelection } from '@atlaskit/editor-common/utils';
139
139
  import type { SEVERITY } from '@atlaskit/editor-common/utils';
140
140
  import type { TaskDecisionProvider } from '@atlaskit/task-decision';
@@ -243,20 +243,6 @@ export class AnnotationUpdateEmitter extends EventEmitter_2 {
243
243
  on(event: UpdateEvent, listener: (annotationId: string) => void): this;
244
244
  }
245
245
 
246
- // @public (undocumented)
247
- interface BasePluginOptions {
248
- // (undocumented)
249
- allowInlineCursorTarget?: boolean;
250
- // (undocumented)
251
- allowScrollGutter?: ScrollGutterPluginOptions;
252
- // (undocumented)
253
- browserFreezeTracking?: BrowserFreezetracking;
254
- // (undocumented)
255
- inputTracking?: InputTracking;
256
- // (undocumented)
257
- ufo?: boolean;
258
- }
259
-
260
246
  // @public (undocumented)
261
247
  export class BaseReactEditorView<T = {}> extends ReactEditorView_2<T> {
262
248
  }
@@ -1636,14 +1622,6 @@ interface RectData {
1636
1622
  // @public (undocumented)
1637
1623
  export const removeStatus: (showStatusPickerAt: number) => Command;
1638
1624
 
1639
- // @public (undocumented)
1640
- type ScrollGutterPluginOptions = {
1641
- getScrollElement?: (view: EditorView) => HTMLElement | null;
1642
- allowCustomScrollHandler?: boolean;
1643
- persistScrollGutter?: boolean;
1644
- gutterSize?: number;
1645
- };
1646
-
1647
1625
  // @public (undocumented)
1648
1626
  export type SelectionData = AllSelectionData | CellSelectionData | GapSelectionData | NodeSelectionData | TextSelectionData;
1649
1627
 
@@ -1668,8 +1646,7 @@ type SetEditorAPI = (editorApi: PublicPluginAPI<any>) => void;
1668
1646
  // @public (undocumented)
1669
1647
  export const setIsExpanded: (isExpanded: boolean) => Command_2;
1670
1648
 
1671
- // @public (undocumented)
1672
- export const setKeyboardHeight: (keyboardHeight: number) => Command_2;
1649
+ export { setKeyboardHeight }
1673
1650
 
1674
1651
  // @public (undocumented)
1675
1652
  export const setMobilePaddingTop: (paddingTop: number) => Command_2;
@@ -1,20 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.setKeyboardHeight = void 0;
7
- var _pluginKey = require("./pm-plugins/scroll-gutter/plugin-key");
8
- var setKeyboardHeight = function setKeyboardHeight(keyboardHeight) {
9
- return function (state, dispatch) {
10
- var tr = state.tr;
11
- tr.setMeta(_pluginKey.scrollGutterPluginKey, {
12
- keyboardHeight: keyboardHeight
13
- });
14
- if (dispatch) {
15
- dispatch(tr);
16
- }
17
- return true;
18
- };
19
- };
20
- exports.setKeyboardHeight = setKeyboardHeight;
@@ -1,13 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- Object.defineProperty(exports, "basePlugin", {
8
- enumerable: true,
9
- get: function get() {
10
- return _plugin.default;
11
- }
12
- });
13
- var _plugin = _interopRequireDefault(require("./plugin"));
@@ -1,143 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- var _typeof = require("@babel/runtime/helpers/typeof");
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- exports.isChromeWithSelectionBug = exports.default = void 0;
9
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
- var _commands = require("@atlaskit/editor-prosemirror/commands");
11
- var _history = require("@atlaskit/editor-prosemirror/history");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
- var _utils = require("@atlaskit/editor-common/utils");
14
- var _adfSchema = require("@atlaskit/adf-schema");
15
- var _filterSteps = _interopRequireDefault(require("./pm-plugins/filter-steps"));
16
- var _fixChrome88Selection = _interopRequireDefault(require("./pm-plugins/fix-chrome-88-selection"));
17
- var _disableSpellChecking = _interopRequireDefault(require("./pm-plugins/disable-spell-checking"));
18
- var _contextIdentifier = _interopRequireWildcard(require("./pm-plugins/context-identifier"));
19
- var _newlinePreserveMarks = _interopRequireDefault(require("./pm-plugins/newline-preserve-marks"));
20
- var _inlineCursorTarget = _interopRequireDefault(require("./pm-plugins/inline-cursor-target"));
21
- var _scrollGutter = _interopRequireWildcard(require("./pm-plugins/scroll-gutter"));
22
- var _keymaps = require("@atlaskit/editor-common/keymaps");
23
- var _frozenEditor = _interopRequireDefault(require("./pm-plugins/frozen-editor"));
24
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
26
- 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; }
27
- 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) { (0, _defineProperty2.default)(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; }
28
- // Chrome >= 88
29
- var isChromeWithSelectionBug = _utils.browser.chrome && _utils.browser.chrome_version >= 88;
30
- exports.isChromeWithSelectionBug = isChromeWithSelectionBug;
31
- var basePlugin = function basePlugin(_ref) {
32
- var _api$featureFlags;
33
- var options = _ref.config,
34
- api = _ref.api;
35
- var featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
36
- return {
37
- name: 'base',
38
- getSharedState: function getSharedState(editorState) {
39
- return {
40
- contextIdentifier: (0, _contextIdentifier.getContextIdentifier)(editorState),
41
- keyboardHeight: (0, _scrollGutter.getKeyboardHeight)(editorState)
42
- };
43
- },
44
- pmPlugins: function pmPlugins() {
45
- var plugins = [{
46
- name: 'filterStepsPlugin',
47
- plugin: function plugin(_ref2) {
48
- var dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent;
49
- return (0, _filterSteps.default)(dispatchAnalyticsEvent);
50
- }
51
- }];
52
-
53
- // In Chrome, when the selection is placed between adjacent nodes which are not contenteditatble
54
- // the cursor appears at the right most point of the parent container.
55
- // In Firefox, when the selection is placed between adjacent nodes which are not contenteditatble
56
- // no cursor is presented to users.
57
- // In Safari, when the selection is placed between adjacent nodes which are not contenteditatble
58
- // it is not possible to navigate with arrow keys.
59
- // This plugin works around the issues by inserting decorations between
60
- // inline nodes which are set as contenteditable, and have a zero width space.
61
- plugins.push({
62
- name: 'inlineCursorTargetPlugin',
63
- plugin: function plugin() {
64
- return options && options.allowInlineCursorTarget ? (0, _inlineCursorTarget.default)() : undefined;
65
- }
66
- });
67
- plugins.push({
68
- name: 'newlinePreserveMarksPlugin',
69
- plugin: _newlinePreserveMarks.default
70
- }, {
71
- name: 'frozenEditor',
72
- plugin: function plugin(_ref3) {
73
- var _options$inputTrackin;
74
- var dispatchAnalyticsEvent = _ref3.dispatchAnalyticsEvent;
75
- return options !== null && options !== void 0 && (_options$inputTrackin = options.inputTracking) !== null && _options$inputTrackin !== void 0 && _options$inputTrackin.enabled || options !== null && options !== void 0 && options.ufo ? (0, _frozenEditor.default)(dispatchAnalyticsEvent, options.inputTracking, options.browserFreezeTracking, options.ufo) : undefined;
76
- }
77
- }, {
78
- name: 'history',
79
- plugin: function plugin() {
80
- return (0, _history.history)();
81
- }
82
- },
83
- // should be last :(
84
- {
85
- name: 'codeBlockIndent',
86
- plugin: function plugin() {
87
- return (0, _keymaps.keymap)(_objectSpread(_objectSpread({}, _commands.baseKeymap), {}, {
88
- 'Mod-[': function Mod() {
89
- return true;
90
- },
91
- 'Mod-]': function Mod() {
92
- return true;
93
- }
94
- }));
95
- }
96
- }, {
97
- name: 'contextIdentifier',
98
- plugin: function plugin(_ref4) {
99
- var dispatch = _ref4.dispatch,
100
- providerFactory = _ref4.providerFactory;
101
- return (0, _contextIdentifier.default)(dispatch, providerFactory);
102
- }
103
- });
104
- if (options && options.allowScrollGutter) {
105
- plugins.push({
106
- name: 'scrollGutterPlugin',
107
- plugin: function plugin() {
108
- return (0, _scrollGutter.default)(options.allowScrollGutter);
109
- }
110
- });
111
- }
112
- if (isChromeWithSelectionBug && !(0, _platformFeatureFlags.getBooleanFF)('platform.editor.disable-chrome-88-selection-fix_uk53m')) {
113
- plugins.push({
114
- name: 'fixChrome88SelectionPlugin',
115
- plugin: function plugin() {
116
- return (0, _fixChrome88Selection.default)();
117
- }
118
- });
119
- }
120
- plugins.push({
121
- name: 'disableSpellcheckingPlugin',
122
- plugin: function plugin() {
123
- return (0, _disableSpellChecking.default)(featureFlags);
124
- }
125
- });
126
- return plugins;
127
- },
128
- nodes: function nodes() {
129
- return [{
130
- name: 'doc',
131
- node: _adfSchema.doc
132
- }, {
133
- name: 'paragraph',
134
- node: _adfSchema.paragraph
135
- }, {
136
- name: 'text',
137
- node: _adfSchema.text
138
- }];
139
- }
140
- };
141
- };
142
- var _default = basePlugin;
143
- exports.default = _default;