@atlaskit/editor-core 187.47.9 → 187.48.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/cjs/editor-next/index.js +2 -2
  3. package/dist/cjs/index.js +7 -7
  4. package/dist/cjs/labs/next/presets/default.js +2 -2
  5. package/dist/cjs/plugins/index.js +0 -7
  6. package/dist/cjs/test-utils.js +2 -2
  7. package/dist/cjs/version-wrapper.js +1 -1
  8. package/dist/es2019/editor-next/index.js +1 -1
  9. package/dist/es2019/index.js +1 -1
  10. package/dist/es2019/labs/next/presets/default.js +1 -1
  11. package/dist/es2019/plugins/index.js +0 -1
  12. package/dist/es2019/test-utils.js +1 -1
  13. package/dist/es2019/version-wrapper.js +1 -1
  14. package/dist/esm/editor-next/index.js +1 -1
  15. package/dist/esm/index.js +1 -1
  16. package/dist/esm/labs/next/presets/default.js +1 -1
  17. package/dist/esm/plugins/index.js +0 -1
  18. package/dist/esm/test-utils.js +1 -1
  19. package/dist/esm/version-wrapper.js +1 -1
  20. package/dist/types/create-editor/create-plugins-list.d.ts +1 -1
  21. package/dist/types/index.d.ts +1 -1
  22. package/dist/types/labs/next/presets/default.d.ts +1 -1
  23. package/dist/types/plugins/code-block/ide-ux/quote-handling.d.ts +1 -1
  24. package/dist/types/plugins/index.d.ts +0 -1
  25. package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  26. package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
  27. package/dist/types/ui/ContentStyles/index.d.ts +2 -2
  28. package/dist/types-ts4.5/create-editor/create-plugins-list.d.ts +1 -1
  29. package/dist/types-ts4.5/index.d.ts +1 -1
  30. package/dist/types-ts4.5/labs/next/presets/default.d.ts +1 -1
  31. package/dist/types-ts4.5/plugins/code-block/ide-ux/quote-handling.d.ts +1 -1
  32. package/dist/types-ts4.5/plugins/index.d.ts +0 -1
  33. package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
  34. package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
  35. package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
  36. package/package.json +8 -9
  37. package/report.api.md +3 -26
  38. package/tmp/api-report-tmp.d.ts +3 -26
  39. package/dist/cjs/plugins/base/commands.js +0 -20
  40. package/dist/cjs/plugins/base/index.js +0 -13
  41. package/dist/cjs/plugins/base/plugin.js +0 -143
  42. package/dist/cjs/plugins/base/pm-plugins/context-identifier.js +0 -58
  43. package/dist/cjs/plugins/base/pm-plugins/disable-spell-checking.js +0 -63
  44. package/dist/cjs/plugins/base/pm-plugins/filter-steps.js +0 -34
  45. package/dist/cjs/plugins/base/pm-plugins/fix-chrome-88-selection.js +0 -34
  46. package/dist/cjs/plugins/base/pm-plugins/frozen-editor.js +0 -265
  47. package/dist/cjs/plugins/base/pm-plugins/inline-cursor-target.js +0 -183
  48. package/dist/cjs/plugins/base/pm-plugins/newline-preserve-marks.js +0 -34
  49. package/dist/cjs/plugins/base/pm-plugins/scroll-gutter/index.js +0 -262
  50. package/dist/cjs/plugins/base/pm-plugins/scroll-gutter/plugin-key.js +0 -15
  51. package/dist/cjs/plugins/base/utils/frozen-editor.js +0 -11
  52. package/dist/cjs/plugins/base/utils/input-latency-tracking.js +0 -134
  53. package/dist/es2019/plugins/base/commands.js +0 -13
  54. package/dist/es2019/plugins/base/index.js +0 -2
  55. package/dist/es2019/plugins/base/plugin.js +0 -113
  56. package/dist/es2019/plugins/base/pm-plugins/context-identifier.js +0 -43
  57. package/dist/es2019/plugins/base/pm-plugins/disable-spell-checking.js +0 -54
  58. package/dist/es2019/plugins/base/pm-plugins/filter-steps.js +0 -23
  59. package/dist/es2019/plugins/base/pm-plugins/fix-chrome-88-selection.js +0 -24
  60. package/dist/es2019/plugins/base/pm-plugins/frozen-editor.js +0 -258
  61. package/dist/es2019/plugins/base/pm-plugins/inline-cursor-target.js +0 -186
  62. package/dist/es2019/plugins/base/pm-plugins/newline-preserve-marks.js +0 -20
  63. package/dist/es2019/plugins/base/pm-plugins/scroll-gutter/index.js +0 -242
  64. package/dist/es2019/plugins/base/pm-plugins/scroll-gutter/plugin-key.js +0 -7
  65. package/dist/es2019/plugins/base/utils/frozen-editor.js +0 -2
  66. package/dist/es2019/plugins/base/utils/input-latency-tracking.js +0 -104
  67. package/dist/esm/plugins/base/commands.js +0 -13
  68. package/dist/esm/plugins/base/index.js +0 -2
  69. package/dist/esm/plugins/base/plugin.js +0 -131
  70. package/dist/esm/plugins/base/pm-plugins/context-identifier.js +0 -48
  71. package/dist/esm/plugins/base/pm-plugins/disable-spell-checking.js +0 -56
  72. package/dist/esm/plugins/base/pm-plugins/filter-steps.js +0 -27
  73. package/dist/esm/plugins/base/pm-plugins/fix-chrome-88-selection.js +0 -26
  74. package/dist/esm/plugins/base/pm-plugins/frozen-editor.js +0 -251
  75. package/dist/esm/plugins/base/pm-plugins/inline-cursor-target.js +0 -174
  76. package/dist/esm/plugins/base/pm-plugins/newline-preserve-marks.js +0 -26
  77. package/dist/esm/plugins/base/pm-plugins/scroll-gutter/index.js +0 -254
  78. package/dist/esm/plugins/base/pm-plugins/scroll-gutter/plugin-key.js +0 -7
  79. package/dist/esm/plugins/base/utils/frozen-editor.js +0 -4
  80. package/dist/esm/plugins/base/utils/input-latency-tracking.js +0 -128
  81. package/dist/types/plugins/base/commands.d.ts +0 -2
  82. package/dist/types/plugins/base/index.d.ts +0 -5
  83. package/dist/types/plugins/base/plugin.d.ts +0 -25
  84. package/dist/types/plugins/base/pm-plugins/context-identifier.d.ts +0 -13
  85. package/dist/types/plugins/base/pm-plugins/disable-spell-checking.d.ts +0 -4
  86. package/dist/types/plugins/base/pm-plugins/filter-steps.d.ts +0 -4
  87. package/dist/types/plugins/base/pm-plugins/fix-chrome-88-selection.d.ts +0 -5
  88. package/dist/types/plugins/base/pm-plugins/frozen-editor.d.ts +0 -12
  89. package/dist/types/plugins/base/pm-plugins/inline-cursor-target.d.ts +0 -17
  90. package/dist/types/plugins/base/pm-plugins/newline-preserve-marks.d.ts +0 -5
  91. package/dist/types/plugins/base/pm-plugins/scroll-gutter/index.d.ts +0 -22
  92. package/dist/types/plugins/base/pm-plugins/scroll-gutter/plugin-key.d.ts +0 -7
  93. package/dist/types/plugins/base/utils/frozen-editor.d.ts +0 -2
  94. package/dist/types/plugins/base/utils/input-latency-tracking.d.ts +0 -42
  95. package/dist/types-ts4.5/plugins/base/commands.d.ts +0 -2
  96. package/dist/types-ts4.5/plugins/base/index.d.ts +0 -5
  97. package/dist/types-ts4.5/plugins/base/plugin.d.ts +0 -27
  98. package/dist/types-ts4.5/plugins/base/pm-plugins/context-identifier.d.ts +0 -13
  99. package/dist/types-ts4.5/plugins/base/pm-plugins/disable-spell-checking.d.ts +0 -4
  100. package/dist/types-ts4.5/plugins/base/pm-plugins/filter-steps.d.ts +0 -4
  101. package/dist/types-ts4.5/plugins/base/pm-plugins/fix-chrome-88-selection.d.ts +0 -5
  102. package/dist/types-ts4.5/plugins/base/pm-plugins/frozen-editor.d.ts +0 -12
  103. package/dist/types-ts4.5/plugins/base/pm-plugins/inline-cursor-target.d.ts +0 -17
  104. package/dist/types-ts4.5/plugins/base/pm-plugins/newline-preserve-marks.d.ts +0 -5
  105. package/dist/types-ts4.5/plugins/base/pm-plugins/scroll-gutter/index.d.ts +0 -22
  106. package/dist/types-ts4.5/plugins/base/pm-plugins/scroll-gutter/plugin-key.d.ts +0 -7
  107. package/dist/types-ts4.5/plugins/base/utils/frozen-editor.d.ts +0 -2
  108. package/dist/types-ts4.5/plugins/base/utils/input-latency-tracking.d.ts +0 -42
@@ -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.0",
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.0.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;
@@ -1,58 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.stateKey = exports.getContextIdentifier = exports.default = void 0;
8
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
10
- var _state = require("@atlaskit/editor-prosemirror/state");
11
- 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; }
12
- 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; }
13
- var stateKey = new _state.PluginKey('contextIdentiferPlugin');
14
- exports.stateKey = stateKey;
15
- var getContextIdentifier = function getContextIdentifier(state) {
16
- if (state) {
17
- var _stateKey$getState;
18
- return (_stateKey$getState = stateKey.getState(state)) === null || _stateKey$getState === void 0 ? void 0 : _stateKey$getState.contextIdentifierProvider;
19
- }
20
- };
21
- exports.getContextIdentifier = getContextIdentifier;
22
- var _default = function _default(dispatch, providerFactory) {
23
- return new _safePlugin.SafePlugin({
24
- key: stateKey,
25
- state: {
26
- init: function init() {
27
- return {};
28
- },
29
- apply: function apply(tr, pluginState) {
30
- if (tr.getMeta(stateKey)) {
31
- return tr.getMeta(stateKey);
32
- }
33
- return pluginState;
34
- }
35
- },
36
- view: function view(_view) {
37
- var providerPromiseHandler = function providerPromiseHandler(name, providerPromise) {
38
- if (providerPromise && name === 'contextIdentifierProvider') {
39
- providerPromise.then(function (provider) {
40
- var tr = _view.state.tr.setMeta(stateKey, {
41
- contextIdentifierProvider: _objectSpread({}, provider)
42
- });
43
- _view.dispatch(tr);
44
- });
45
- }
46
- };
47
- if (providerFactory) {
48
- providerFactory.subscribe('contextIdentifierProvider', providerPromiseHandler);
49
- }
50
- return {
51
- destroy: function destroy() {
52
- providerFactory && providerFactory.unsubscribe('contextIdentifierProvider', providerPromiseHandler);
53
- }
54
- };
55
- }
56
- });
57
- };
58
- exports.default = _default;
@@ -1,63 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
8
- var _state = require("@atlaskit/editor-prosemirror/state");
9
- var _utils = require("@atlaskit/editor-common/utils");
10
- function getCurrentBrowserAndVersion() {
11
- switch (true) {
12
- case _utils.browser.chrome === true:
13
- return {
14
- browser: 'chrome',
15
- version: _utils.browser.chrome_version
16
- };
17
- case _utils.browser.ie === true:
18
- return {
19
- browser: 'ie',
20
- version: _utils.browser.ie_version
21
- };
22
- case _utils.browser.gecko === true:
23
- return {
24
- browser: 'gecko',
25
- version: _utils.browser.gecko_version
26
- };
27
- case _utils.browser.safari === true:
28
- return {
29
- browser: 'safari',
30
- version: _utils.browser.safari_version
31
- };
32
- }
33
- return undefined;
34
- }
35
- var _default = function _default(featureFlags) {
36
- return new _safePlugin.SafePlugin({
37
- key: new _state.PluginKey('disableSpellchecking'),
38
- props: {
39
- attributes: function attributes(editorState) {
40
- if (!featureFlags) {
41
- return {};
42
- }
43
- var browserConfigFeatureFlag = featureFlags.disableSpellcheckByBrowser;
44
- var userCurrentBrowserAndVersion = getCurrentBrowserAndVersion();
45
- if (!userCurrentBrowserAndVersion || !browserConfigFeatureFlag) {
46
- return {};
47
- }
48
- var browserVersionDisableRange = browserConfigFeatureFlag[userCurrentBrowserAndVersion.browser];
49
- if (!browserVersionDisableRange || !_utils.browser[userCurrentBrowserAndVersion.browser]) {
50
- return {};
51
- }
52
- var shouldDisableSpellcheck = !!browserVersionDisableRange.maximum ? userCurrentBrowserAndVersion.version >= browserVersionDisableRange.minimum && userCurrentBrowserAndVersion.version <= browserVersionDisableRange.maximum : _utils.browser[userCurrentBrowserAndVersion.browser] && userCurrentBrowserAndVersion.version >= browserVersionDisableRange.minimum;
53
- if (shouldDisableSpellcheck) {
54
- return {
55
- spellcheck: 'false'
56
- };
57
- }
58
- return {};
59
- }
60
- }
61
- });
62
- };
63
- exports.default = _default;
@@ -1,34 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
8
- var _analytics = require("@atlaskit/editor-common/analytics");
9
- var hasInvalidSteps = function hasInvalidSteps(tr) {
10
- return (tr.steps || []).some(function (step) {
11
- return step.from > step.to;
12
- });
13
- };
14
- var _default = function _default(dispatchAnalyticsEvent) {
15
- return new _safePlugin.SafePlugin({
16
- filterTransaction: function filterTransaction(transaction) {
17
- if (hasInvalidSteps(transaction)) {
18
- // eslint-disable-next-line no-console
19
- console.warn('The transaction was blocked because it contains invalid steps', transaction.steps);
20
- dispatchAnalyticsEvent({
21
- action: _analytics.ACTION.DISCARDED_INVALID_STEPS_FROM_TRANSACTION,
22
- actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
23
- attributes: {
24
- analyticsEventPayloads: (0, _analytics.getAnalyticsEventsFromTransaction)(transaction)
25
- },
26
- eventType: _analytics.EVENT_TYPE.OPERATIONAL
27
- });
28
- return false;
29
- }
30
- return true;
31
- }
32
- });
33
- };
34
- exports.default = _default;