@atlaskit/editor-core 187.19.0 → 187.20.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.
- package/CHANGELOG.md +20 -0
- package/dist/cjs/plugins/emoji/commands/insert-emoji.js +21 -20
- package/dist/cjs/plugins/emoji/index.js +16 -5
- package/dist/cjs/plugins/index.js +2 -2
- package/dist/cjs/plugins/insert-block/index.js +3 -7
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +4 -3
- package/dist/cjs/plugins/media/index.js +4 -3
- package/dist/cjs/plugins/media/pm-plugins/alt-text/commands.js +10 -7
- package/dist/cjs/plugins/media/pm-plugins/alt-text/keymap.js +2 -2
- package/dist/cjs/plugins/media/pm-plugins/main.js +22 -10
- package/dist/cjs/plugins/media/toolbar/alt-text.js +2 -2
- package/dist/cjs/plugins/media/toolbar/index.js +33 -19
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +15 -3
- package/dist/cjs/plugins/media/utils/media-single.js +13 -13
- package/dist/cjs/plugins/paste/handlers.js +2 -2
- package/dist/cjs/plugins/paste/pm-plugins/analytics.js +2 -2
- package/dist/cjs/plugins/paste/pm-plugins/main.js +4 -4
- package/dist/cjs/plugins/selection/gap-cursor/styles.js +1 -1
- package/dist/cjs/plugins/selection/gap-cursor/utils/place-gap-cursor.js +3 -3
- package/dist/cjs/plugins/selection/gap-cursor/utils.js +6 -3
- package/dist/cjs/plugins/selection/pm-plugins/gap-cursor-main.js +3 -3
- package/dist/cjs/plugins/text-color/commands/toggle-color.js +3 -2
- package/dist/cjs/utils/document.js +6 -24
- package/dist/cjs/utils/index.js +33 -105
- package/dist/cjs/utils/prosemirror/position.js +33 -41
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/emoji/commands/insert-emoji.js +24 -20
- package/dist/es2019/plugins/emoji/index.js +14 -4
- package/dist/es2019/plugins/index.js +1 -1
- package/dist/es2019/plugins/insert-block/index.js +3 -7
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +6 -3
- package/dist/es2019/plugins/media/index.js +6 -3
- package/dist/es2019/plugins/media/pm-plugins/alt-text/commands.js +3 -2
- package/dist/es2019/plugins/media/pm-plugins/alt-text/keymap.js +2 -2
- package/dist/es2019/plugins/media/pm-plugins/main.js +16 -7
- package/dist/es2019/plugins/media/toolbar/alt-text.js +2 -2
- package/dist/es2019/plugins/media/toolbar/index.js +34 -21
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +17 -4
- package/dist/es2019/plugins/media/utils/media-single.js +7 -8
- package/dist/es2019/plugins/paste/handlers.js +2 -3
- package/dist/es2019/plugins/paste/pm-plugins/analytics.js +2 -2
- package/dist/es2019/plugins/paste/pm-plugins/main.js +4 -4
- package/dist/es2019/plugins/selection/gap-cursor/styles.js +2 -1
- package/dist/es2019/plugins/selection/gap-cursor/utils/place-gap-cursor.js +4 -4
- package/dist/es2019/plugins/selection/gap-cursor/utils.js +5 -2
- package/dist/es2019/plugins/selection/pm-plugins/gap-cursor-main.js +4 -4
- package/dist/es2019/plugins/text-color/commands/toggle-color.js +3 -2
- package/dist/es2019/utils/document.js +1 -20
- package/dist/es2019/utils/index.js +1 -99
- package/dist/es2019/utils/prosemirror/position.js +1 -51
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/emoji/commands/insert-emoji.js +21 -20
- package/dist/esm/plugins/emoji/index.js +14 -4
- package/dist/esm/plugins/index.js +1 -1
- package/dist/esm/plugins/insert-block/index.js +3 -7
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +4 -3
- package/dist/esm/plugins/media/index.js +4 -3
- package/dist/esm/plugins/media/pm-plugins/alt-text/commands.js +10 -7
- package/dist/esm/plugins/media/pm-plugins/alt-text/keymap.js +2 -2
- package/dist/esm/plugins/media/pm-plugins/main.js +18 -7
- package/dist/esm/plugins/media/toolbar/alt-text.js +2 -2
- package/dist/esm/plugins/media/toolbar/index.js +35 -21
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +16 -4
- package/dist/esm/plugins/media/utils/media-single.js +7 -7
- package/dist/esm/plugins/paste/handlers.js +2 -3
- package/dist/esm/plugins/paste/pm-plugins/analytics.js +2 -2
- package/dist/esm/plugins/paste/pm-plugins/main.js +4 -4
- package/dist/esm/plugins/selection/gap-cursor/styles.js +1 -1
- package/dist/esm/plugins/selection/gap-cursor/utils/place-gap-cursor.js +4 -4
- package/dist/esm/plugins/selection/gap-cursor/utils.js +5 -2
- package/dist/esm/plugins/selection/pm-plugins/gap-cursor-main.js +4 -4
- package/dist/esm/plugins/text-color/commands/toggle-color.js +3 -2
- package/dist/esm/utils/document.js +1 -22
- package/dist/esm/utils/index.js +1 -97
- package/dist/esm/utils/prosemirror/position.js +1 -39
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/labs/next/presets/default.d.ts +32 -32
- package/dist/types/plugins/emoji/commands/insert-emoji.d.ts +2 -2
- package/dist/types/plugins/emoji/index.d.ts +9 -4
- package/dist/types/plugins/index.d.ts +1 -1
- package/dist/types/plugins/insert-block/index.d.ts +3 -1
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +0 -1
- package/dist/types/plugins/media/pm-plugins/alt-text/commands.d.ts +2 -1
- package/dist/types/plugins/media/pm-plugins/alt-text/keymap.d.ts +2 -1
- package/dist/types/plugins/media/pm-plugins/main.d.ts +3 -0
- package/dist/types/plugins/media/pm-plugins/types.d.ts +2 -0
- package/dist/types/plugins/media/toolbar/alt-text.d.ts +2 -1
- package/dist/types/plugins/media/toolbar/index.d.ts +1 -2
- package/dist/types/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +1 -0
- package/dist/types/plugins/media/utils/media-single.d.ts +3 -3
- package/dist/types/plugins/paste/handlers.d.ts +2 -1
- package/dist/types/plugins/paste/index.d.ts +3 -1
- package/dist/types/plugins/paste/pm-plugins/analytics.d.ts +2 -1
- package/dist/types/plugins/selection/gap-cursor/utils.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/utils/document.d.ts +2 -7
- package/dist/types/utils/index.d.ts +2 -6
- package/dist/types/utils/prosemirror/position.d.ts +1 -8
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +32 -32
- package/dist/types-ts4.5/plugins/emoji/commands/insert-emoji.d.ts +2 -2
- package/dist/types-ts4.5/plugins/emoji/index.d.ts +9 -4
- package/dist/types-ts4.5/plugins/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/insert-block/index.d.ts +3 -1
- package/dist/types-ts4.5/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/media/pm-plugins/alt-text/commands.d.ts +2 -1
- package/dist/types-ts4.5/plugins/media/pm-plugins/alt-text/keymap.d.ts +2 -1
- package/dist/types-ts4.5/plugins/media/pm-plugins/main.d.ts +3 -0
- package/dist/types-ts4.5/plugins/media/pm-plugins/types.d.ts +2 -0
- package/dist/types-ts4.5/plugins/media/toolbar/alt-text.d.ts +2 -1
- package/dist/types-ts4.5/plugins/media/toolbar/index.d.ts +1 -2
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts +1 -0
- package/dist/types-ts4.5/plugins/media/utils/media-single.d.ts +3 -3
- package/dist/types-ts4.5/plugins/paste/handlers.d.ts +2 -1
- package/dist/types-ts4.5/plugins/paste/index.d.ts +3 -1
- package/dist/types-ts4.5/plugins/paste/pm-plugins/analytics.d.ts +2 -1
- package/dist/types-ts4.5/plugins/selection/gap-cursor/utils.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.5/utils/document.d.ts +2 -7
- package/dist/types-ts4.5/utils/index.d.ts +2 -6
- package/dist/types-ts4.5/utils/prosemirror/position.d.ts +1 -8
- package/package.json +4 -4
- package/report.api.md +5 -0
- package/tmp/api-report-tmp.d.ts +5 -1
|
@@ -8,6 +8,6 @@ type ContentStylesProps = {
|
|
|
8
8
|
featureFlags?: FeatureFlags;
|
|
9
9
|
};
|
|
10
10
|
type Props = ContentStylesProps & React.HTMLProps<HTMLDivElement>;
|
|
11
|
-
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" | "width" | "
|
|
12
|
-
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" | "width" | "
|
|
11
|
+
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" | "width" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "media" | "property" | "aria-hidden" | "size" | "aria-expanded" | "aria-label" | "className" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "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" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "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-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "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" | "onKeyDown" | "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" | keyof ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
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" | "width" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "media" | "property" | "aria-hidden" | "size" | "aria-expanded" | "aria-label" | "className" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "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" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "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-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "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" | "onKeyDown" | "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" | keyof ContentStylesProps> & React.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
export default _default;
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import type { Node, Schema
|
|
1
|
+
import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { Transaction, ReadonlyTransaction, EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { ContentNodeWithPos } from '@atlaskit/editor-prosemirror/utils';
|
|
5
4
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
6
5
|
import type { Transformer, ReplaceRawValue } from '@atlaskit/editor-common/types';
|
|
7
6
|
import type { DispatchAnalyticsEvent } from '../plugins/analytics/types/dispatch-analytics-event';
|
|
8
7
|
import type { BreakoutMarkAttrs } from '@atlaskit/adf-schema';
|
|
8
|
+
export { findFarthestParentNode } from '@atlaskit/editor-common/utils';
|
|
9
9
|
/**
|
|
10
10
|
* Checks if a node has any content. Ignores node that only contain empty block nodes.
|
|
11
11
|
*/
|
|
12
12
|
export declare function isNodeEmpty(node?: Node): boolean;
|
|
13
13
|
export declare function isInEmptyLine(state: EditorState): boolean;
|
|
14
14
|
export declare function processRawFragmentValue(schema: Schema, value?: ReplaceRawValue[], providerFactory?: ProviderFactory, sanitizePrivateContent?: boolean, contentTransformer?: Transformer<string>, dispatchAnalyticsEvent?: DispatchAnalyticsEvent): Fragment | undefined;
|
|
15
|
-
/**
|
|
16
|
-
* Find the farthest node given a condition
|
|
17
|
-
* @param predicate Function to check the node
|
|
18
|
-
*/
|
|
19
|
-
export declare const findFarthestParentNode: (predicate: (node: Node) => boolean) => ($pos: ResolvedPos) => ContentNodeWithPos | null;
|
|
20
15
|
export declare const isSelectionEndOfParagraph: (state: EditorState) => boolean;
|
|
21
16
|
export type ChangedFn = (node: Node, pos: number, parent: Node | null, index: number) => boolean | void;
|
|
22
17
|
export declare function getChangedNodesIn({ tr, doc, }: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { MarkType, Node, ResolvedPos,
|
|
1
|
+
import type { MarkType, Node, ResolvedPos, Slice } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { EditorState, Selection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { JSONDocNode, JSONNode } from '@atlaskit/editor-json-transformer';
|
|
4
|
+
export { isEmptyNode, isSelectionInsideLastNodeInDocument, checkNodeDown, insideTableCell, isInListItem, } from '@atlaskit/editor-common/utils';
|
|
4
5
|
export { insideTable } from '@atlaskit/editor-common/core-utils';
|
|
5
6
|
export { isNodeEmpty, findFarthestParentNode, isSelectionEndOfParagraph, nodesBetweenChanged, getNodesCount, } from './document';
|
|
6
7
|
export { sanitiseMarksInSelection } from './mark';
|
|
@@ -8,7 +9,6 @@ export { isParagraph, isText, isLinkMark } from './nodes';
|
|
|
8
9
|
export { setNodeSelection, setGapCursorSelection, setTextSelection, } from './selection';
|
|
9
10
|
export type { JSONDocNode };
|
|
10
11
|
export { default as measurements } from './performance/measure-enum';
|
|
11
|
-
export declare function isSelectionInsideLastNodeInDocument(selection: Selection): boolean;
|
|
12
12
|
export declare function getCursor(selection: Selection): ResolvedPos | undefined;
|
|
13
13
|
/**
|
|
14
14
|
* Check if a mark is allowed at the current selection / cursor based on a given state.
|
|
@@ -17,7 +17,6 @@ export declare function getCursor(selection: Selection): ResolvedPos | undefined
|
|
|
17
17
|
* allowed.
|
|
18
18
|
*/
|
|
19
19
|
export declare function isMarkTypeAllowedInCurrentSelection(markType: MarkType, state: EditorState): boolean;
|
|
20
|
-
export declare function checkNodeDown(selection: Selection, doc: Node, filter: (node: Node) => boolean): boolean;
|
|
21
20
|
export declare function toJSON(node: Node): JSONDocNode;
|
|
22
21
|
export declare function nodeToJSON(node: Node): JSONNode;
|
|
23
22
|
/**
|
|
@@ -26,9 +25,6 @@ export declare function nodeToJSON(node: Node): JSONNode;
|
|
|
26
25
|
export declare function stringRepeat(text: string, length: number): string;
|
|
27
26
|
export declare function whichTransitionEvent<TransitionEventName extends string>(): TransitionEventName | undefined;
|
|
28
27
|
export declare const isTemporary: (id: string) => boolean;
|
|
29
|
-
export declare const isEmptyNode: (schema: Schema) => (node: Node) => boolean;
|
|
30
|
-
export declare const insideTableCell: (state: EditorState) => boolean;
|
|
31
|
-
export declare const isInListItem: (state: EditorState) => boolean;
|
|
32
28
|
export declare const hasOpenEnd: (slice: Slice) => boolean;
|
|
33
29
|
export declare const isInsideBlockQuote: (state: EditorState) => boolean;
|
|
34
30
|
export declare function dedupe<T>(list?: T[], iteratee?: (p: T) => T[keyof T] | T): T[];
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
export declare function atTheEndOfDoc(state: EditorState): boolean;
|
|
4
|
-
export declare function atTheBeginningOfDoc(state: EditorState): boolean;
|
|
5
|
-
export declare function atTheEndOfBlock(state: EditorState): boolean;
|
|
6
|
-
export declare function atTheBeginningOfBlock(state: EditorState): boolean;
|
|
7
|
-
export declare function startPositionOfParent(resolvedPos: ResolvedPos): number;
|
|
8
|
-
export declare function endPositionOfParent(resolvedPos: ResolvedPos): number;
|
|
1
|
+
export { atTheBeginningOfBlock, atTheBeginningOfDoc, atTheEndOfBlock, atTheEndOfDoc, endPositionOfParent, startPositionOfParent, } from '@atlaskit/editor-common/selection';
|
|
@@ -319,14 +319,14 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
319
319
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
320
320
|
}>>
|
|
321
321
|
];
|
|
322
|
-
|
|
323
|
-
toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").
|
|
324
|
-
toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").
|
|
325
|
-
toggleStrike: import("@atlaskit/editor-plugin-text-formatting").
|
|
326
|
-
toggleCode: import("@atlaskit/editor-plugin-text-formatting").
|
|
327
|
-
toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").
|
|
328
|
-
toggleEm: import("@atlaskit/editor-plugin-text-formatting").
|
|
329
|
-
toggleStrong: import("@atlaskit/editor-plugin-text-formatting").
|
|
322
|
+
commands: {
|
|
323
|
+
toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
324
|
+
toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
325
|
+
toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
326
|
+
toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
327
|
+
toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
328
|
+
toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
329
|
+
toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
330
330
|
};
|
|
331
331
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
|
|
332
332
|
pluginConfiguration: TextFormattingOptions | undefined;
|
|
@@ -365,14 +365,14 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
365
365
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
366
366
|
}>>
|
|
367
367
|
];
|
|
368
|
-
|
|
369
|
-
toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").
|
|
370
|
-
toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").
|
|
371
|
-
toggleStrike: import("@atlaskit/editor-plugin-text-formatting").
|
|
372
|
-
toggleCode: import("@atlaskit/editor-plugin-text-formatting").
|
|
373
|
-
toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").
|
|
374
|
-
toggleEm: import("@atlaskit/editor-plugin-text-formatting").
|
|
375
|
-
toggleStrong: import("@atlaskit/editor-plugin-text-formatting").
|
|
368
|
+
commands: {
|
|
369
|
+
toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
370
|
+
toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
371
|
+
toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
372
|
+
toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
373
|
+
toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
374
|
+
toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
375
|
+
toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
376
376
|
};
|
|
377
377
|
}>,
|
|
378
378
|
(config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
|
|
@@ -770,14 +770,14 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
770
770
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
771
771
|
}>>
|
|
772
772
|
];
|
|
773
|
-
|
|
774
|
-
toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").
|
|
775
|
-
toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").
|
|
776
|
-
toggleStrike: import("@atlaskit/editor-plugin-text-formatting").
|
|
777
|
-
toggleCode: import("@atlaskit/editor-plugin-text-formatting").
|
|
778
|
-
toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").
|
|
779
|
-
toggleEm: import("@atlaskit/editor-plugin-text-formatting").
|
|
780
|
-
toggleStrong: import("@atlaskit/editor-plugin-text-formatting").
|
|
773
|
+
commands: {
|
|
774
|
+
toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
775
|
+
toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
776
|
+
toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
777
|
+
toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
778
|
+
toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
779
|
+
toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
780
|
+
toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
781
781
|
};
|
|
782
782
|
}> | undefined) => import("@atlaskit/editor-common/types").DefaultEditorPlugin<"textFormatting", {
|
|
783
783
|
pluginConfiguration: TextFormattingOptions | undefined;
|
|
@@ -816,14 +816,14 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
816
816
|
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
817
817
|
}>>
|
|
818
818
|
];
|
|
819
|
-
|
|
820
|
-
toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").
|
|
821
|
-
toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").
|
|
822
|
-
toggleStrike: import("@atlaskit/editor-plugin-text-formatting").
|
|
823
|
-
toggleCode: import("@atlaskit/editor-plugin-text-formatting").
|
|
824
|
-
toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").
|
|
825
|
-
toggleEm: import("@atlaskit/editor-plugin-text-formatting").
|
|
826
|
-
toggleStrong: import("@atlaskit/editor-plugin-text-formatting").
|
|
819
|
+
commands: {
|
|
820
|
+
toggleSuperscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
821
|
+
toggleSubscript: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
822
|
+
toggleStrike: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
823
|
+
toggleCode: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
824
|
+
toggleUnderline: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
825
|
+
toggleEm: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
826
|
+
toggleStrong: import("@atlaskit/editor-plugin-text-formatting").ToggleMarkPluginCommand;
|
|
827
827
|
};
|
|
828
828
|
}>,
|
|
829
829
|
(config?: HyperlinkPluginOptions | undefined, api?: import("@atlaskit/editor-common/types").PluginInjectionAPI<"hyperlink", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { EmojiId } from '@atlaskit/emoji';
|
|
2
|
-
import type {
|
|
2
|
+
import type { PluginCommand } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { INPUT_METHOD, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
export declare const insertEmoji: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (emojiId: EmojiId, inputMethod?: INPUT_METHOD.PICKER | INPUT_METHOD.ASCII | INPUT_METHOD.TYPEAHEAD) =>
|
|
4
|
+
export declare const insertEmoji: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (emojiId: EmojiId, inputMethod?: INPUT_METHOD.PICKER | INPUT_METHOD.ASCII | INPUT_METHOD.TYPEAHEAD) => PluginCommand;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
4
|
-
import type { EmojiDescription, EmojiProvider } from '@atlaskit/emoji';
|
|
5
|
-
import type { Command, NextEditorPlugin, PMPluginFactoryParams, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { EmojiDescription, EmojiProvider, EmojiId } from '@atlaskit/emoji';
|
|
5
|
+
import type { Command, NextEditorPlugin, PMPluginFactoryParams, OptionalPlugin, PluginCommand } from '@atlaskit/editor-common/types';
|
|
6
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
7
|
import type { TypeAheadItem } from '../type-ahead/types';
|
|
7
8
|
import type { EmojiPluginOptions, EmojiPluginState } from './types';
|
|
8
9
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
@@ -12,13 +13,17 @@ export declare function memoize<ResultFn extends (emoji: EmojiDescription, emoji
|
|
|
12
13
|
clear(): void;
|
|
13
14
|
};
|
|
14
15
|
export declare const defaultListLimit = 50;
|
|
15
|
-
|
|
16
|
+
export type EmojiPlugin = NextEditorPlugin<'emoji', {
|
|
16
17
|
pluginConfiguration: EmojiPluginOptions | undefined;
|
|
17
18
|
dependencies: [
|
|
18
19
|
OptionalPlugin<typeof analyticsPlugin>
|
|
19
20
|
];
|
|
21
|
+
sharedState: EmojiPluginState | undefined;
|
|
22
|
+
commands: {
|
|
23
|
+
insertEmoji: (emojiId: EmojiId, inputMethod?: INPUT_METHOD.PICKER | INPUT_METHOD.ASCII | INPUT_METHOD.TYPEAHEAD) => PluginCommand;
|
|
24
|
+
};
|
|
20
25
|
}>;
|
|
21
|
-
export
|
|
26
|
+
export declare const emojiPlugin: EmojiPlugin;
|
|
22
27
|
/**
|
|
23
28
|
* Actions
|
|
24
29
|
*/
|
|
@@ -7,7 +7,7 @@ export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-mark
|
|
|
7
7
|
export { default as codeBlockPlugin } from './code-block';
|
|
8
8
|
export { default as collabEditPlugin } from './collab-edit';
|
|
9
9
|
export { default as datePlugin } from './date';
|
|
10
|
-
export {
|
|
10
|
+
export { emojiPlugin } from './emoji';
|
|
11
11
|
export { default as extensionPlugin } from './extension';
|
|
12
12
|
export { default as fakeTextCursorPlugin } from './fake-text-cursor';
|
|
13
13
|
export { default as helpDialogPlugin } from './help-dialog';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
|
|
3
|
+
import type { EmojiPlugin } from '../emoji';
|
|
3
4
|
import type datePlugin from '../date';
|
|
4
5
|
import type { tablesPlugin } from '@atlaskit/editor-plugin-table';
|
|
5
6
|
import type { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
@@ -24,7 +25,8 @@ declare const insertBlockPlugin: NextEditorPlugin<'insertBlock', {
|
|
|
24
25
|
OptionalPlugin<typeof datePlugin>,
|
|
25
26
|
OptionalPlugin<typeof analyticsPlugin>,
|
|
26
27
|
OptionalPlugin<ImageUploadPlugin>,
|
|
27
|
-
OptionalPlugin<typeof mentionsPlugin
|
|
28
|
+
OptionalPlugin<typeof mentionsPlugin>,
|
|
29
|
+
OptionalPlugin<EmojiPlugin>
|
|
28
30
|
];
|
|
29
31
|
}>;
|
|
30
32
|
export default insertBlockPlugin;
|
|
@@ -7,7 +7,6 @@ export declare class ToolbarInsertBlock extends React.PureComponent<Props & Wrap
|
|
|
7
7
|
private dropdownButtonRef?;
|
|
8
8
|
private emojiButtonRef?;
|
|
9
9
|
private plusButtonRef?;
|
|
10
|
-
private editorAnalyticsAPI;
|
|
11
10
|
state: State;
|
|
12
11
|
static getDerivedStateFromProps(props: Props & WrappedComponentProps, state: State): State | null;
|
|
13
12
|
componentDidUpdate(prevProps: Props): void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
1
2
|
export declare const closeMediaAltTextMenu: import("@atlaskit/editor-common/types").Command;
|
|
2
|
-
export declare const openMediaAltTextMenu: import("
|
|
3
|
+
export declare const openMediaAltTextMenu: (editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
3
4
|
export declare const updateAltText: (newAltText: string) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
|
-
|
|
3
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
|
+
export default function keymapPlugin(schema: Schema, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined): SafePlugin;
|
|
@@ -19,6 +19,7 @@ export type { MediaState, MediaProvider, MediaStateStatus };
|
|
|
19
19
|
export { stateKey } from './plugin-key';
|
|
20
20
|
export declare const MEDIA_CONTENT_WRAP_CLASS_NAME = "media-content-wrap";
|
|
21
21
|
export declare const MEDIA_PLUGIN_IS_RESIZING_KEY = "mediaSinglePlugin.isResizing";
|
|
22
|
+
export declare const MEDIA_PLUGIN_RESIZING_WIDTH_KEY = "mediaSinglePlugin.resizing-width";
|
|
22
23
|
export declare class MediaPluginStateImplementation implements MediaPluginState {
|
|
23
24
|
allowsUploads: boolean;
|
|
24
25
|
mediaClientConfig?: MediaClientConfig;
|
|
@@ -35,6 +36,7 @@ export declare class MediaPluginStateImplementation implements MediaPluginState
|
|
|
35
36
|
mediaProvider?: MediaProvider;
|
|
36
37
|
newInsertionBehaviour?: boolean;
|
|
37
38
|
isResizing: boolean;
|
|
39
|
+
resizingWidth: number;
|
|
38
40
|
private view;
|
|
39
41
|
private destroyed;
|
|
40
42
|
private contextIdentifierProvider?;
|
|
@@ -57,6 +59,7 @@ export declare class MediaPluginStateImplementation implements MediaPluginState
|
|
|
57
59
|
setMediaProvider: (mediaProvider?: Promise<MediaProvider>) => Promise<void>;
|
|
58
60
|
getMediaOptions: () => MediaPluginOptions;
|
|
59
61
|
setIsResizing(isResizing: boolean): void;
|
|
62
|
+
setResizingWidth(width: number): void;
|
|
60
63
|
updateElement(): void;
|
|
61
64
|
private isMediaSchemaNode;
|
|
62
65
|
private getDomElement;
|
|
@@ -33,6 +33,7 @@ export interface MediaPluginState {
|
|
|
33
33
|
showEditingDialog?: boolean;
|
|
34
34
|
mediaOptions?: MediaOptions;
|
|
35
35
|
isResizing: boolean;
|
|
36
|
+
resizingWidth: number;
|
|
36
37
|
dispatch?: Dispatch;
|
|
37
38
|
onContextIdentifierProvider: (_name: string, provider?: Promise<ContextIdentifierProvider>) => Promise<void>;
|
|
38
39
|
setMediaProvider: (mediaProvider?: Promise<MediaProvider>) => Promise<void>;
|
|
@@ -56,6 +57,7 @@ export interface MediaPluginState {
|
|
|
56
57
|
handleDrag: (dragState: 'enter' | 'leave') => void;
|
|
57
58
|
updateElement(): void;
|
|
58
59
|
setIsResizing(isResizing: boolean): void;
|
|
60
|
+
setResizingWidth(width: number): void;
|
|
59
61
|
setView(view: EditorView): void;
|
|
60
62
|
destroy(): void;
|
|
61
63
|
updateAndDispatch(props: Partial<Pick<this, 'allowsUploads' | 'allUploadsFinished' | 'isFullscreen'>>): void;
|
|
@@ -4,7 +4,8 @@ import type { Command } from '../../../types';
|
|
|
4
4
|
import type { MediaToolbarBaseConfig } from '../types';
|
|
5
5
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
6
6
|
import type { ForceFocusSelector } from '@atlaskit/editor-plugin-floating-toolbar';
|
|
7
|
-
|
|
7
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
|
+
export declare const altTextButton: (intl: IntlShape, state: EditorState, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => FloatingToolbarButton<Command>;
|
|
8
9
|
export declare const altTextEditComponent: (options?: AltTextToolbarOptions) => FloatingToolbarCustom<Command>;
|
|
9
10
|
export interface AltTextToolbarOptions {
|
|
10
11
|
altTextValidator?: (value: string) => string[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { IntlShape } from 'react-intl-next';
|
|
3
|
-
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { ExtractInjectionAPI, FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
5
4
|
import type { MediaFloatingToolbarOptions } from '../types';
|
|
6
5
|
import type mediaPlugin from '../index';
|
|
7
6
|
export declare const floatingToolbar: (state: EditorState, intl: IntlShape, options: MediaFloatingToolbarOptions | undefined, pluginInjectionApi: ExtractInjectionAPI<typeof mediaPlugin> | undefined) => FloatingToolbarConfig | undefined;
|
package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ declare class ResizableMediaSingleNext extends React.Component<ResizableMediaSin
|
|
|
52
52
|
private saveWrapper;
|
|
53
53
|
private displayGuideline;
|
|
54
54
|
private setIsResizing;
|
|
55
|
+
private updateSizeInPluginState;
|
|
55
56
|
private calcMaxWidth;
|
|
56
57
|
updateActiveGuidelines: (width: number | undefined, guidelines: GuidelineConfig[], guidelineSnapsReference: GuidelineSnapsReference) => void;
|
|
57
58
|
roundPixelValue: (value: number) => number;
|
|
@@ -3,7 +3,7 @@ import { Slice } from '@atlaskit/editor-prosemirror/model';
|
|
|
3
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import type { MediaState } from '../types';
|
|
6
|
-
import type { InputMethodInsertMedia } from '@atlaskit/editor-common/analytics';
|
|
6
|
+
import type { InputMethodInsertMedia, EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import type { WidthPluginState } from '@atlaskit/editor-plugin-width';
|
|
8
8
|
export interface MediaSingleState extends MediaState {
|
|
9
9
|
dimensions: {
|
|
@@ -14,8 +14,8 @@ export interface MediaSingleState extends MediaState {
|
|
|
14
14
|
contextId?: string;
|
|
15
15
|
}
|
|
16
16
|
export declare const isMediaSingle: (schema: Schema, fileMimeType?: string) => boolean;
|
|
17
|
-
export declare const insertMediaAsMediaSingle: (view: EditorView, node: PMNode, inputMethod: InputMethodInsertMedia) => boolean;
|
|
18
|
-
export declare const insertMediaSingleNode: (view: EditorView, mediaState: MediaState, inputMethod?: InputMethodInsertMedia, collection?: string, alignLeftOnInsert?: boolean, newInsertionBehaviour?: boolean, widthPluginState?: WidthPluginState | undefined) => boolean;
|
|
17
|
+
export declare const insertMediaAsMediaSingle: (view: EditorView, node: PMNode, inputMethod: InputMethodInsertMedia, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => boolean;
|
|
18
|
+
export declare const insertMediaSingleNode: (view: EditorView, mediaState: MediaState, inputMethod?: InputMethodInsertMedia, collection?: string, alignLeftOnInsert?: boolean, newInsertionBehaviour?: boolean, widthPluginState?: WidthPluginState | undefined, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => boolean;
|
|
19
19
|
export declare const createMediaSingleNode: (schema: Schema, collection: string, maxWidth?: number, minWidth?: number, alignLeftOnInsert?: boolean) => (mediaState: MediaSingleState) => PMNode;
|
|
20
20
|
export declare function transformSliceForMedia(slice: Slice, schema: Schema): (selection: Selection) => Slice;
|
|
21
21
|
export declare function isCaptionNode(editorView: EditorView): boolean;
|
|
@@ -5,6 +5,7 @@ import type { ExtensionAutoConvertHandler } from '@atlaskit/editor-common/extens
|
|
|
5
5
|
import type { Command } from '../../types';
|
|
6
6
|
import type { InputMethodInsertMedia } from '../analytics';
|
|
7
7
|
import type { QueueCardsFromTransactionAction, CardOptions } from '@atlaskit/editor-common/card';
|
|
8
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
8
9
|
export declare function handleMention(slice: Slice, schema: Schema): Slice;
|
|
9
10
|
export declare function handlePasteIntoTaskOrDecisionOrPanel(slice: Slice, queueCardsFromChangedTr: QueueCardsFromTransactionAction | undefined): Command;
|
|
10
11
|
export declare function handlePasteNonNestableBlockNodesIntoList(slice: Slice): Command;
|
|
@@ -14,7 +15,7 @@ export declare function handlePasteAsPlainText(slice: Slice, _event: ClipboardEv
|
|
|
14
15
|
export declare function handlePastePreservingMarks(slice: Slice, queueCardsFromChangedTr: QueueCardsFromTransactionAction | undefined): Command;
|
|
15
16
|
export declare function handleMacroAutoConvert(text: string, slice: Slice, queueCardsFromChangedTr: QueueCardsFromTransactionAction | undefined, cardsOptions?: CardOptions, extensionAutoConverter?: ExtensionAutoConvertHandler): Command;
|
|
16
17
|
export declare function handleCodeBlock(text: string): Command;
|
|
17
|
-
export declare function handleMediaSingle(inputMethod: InputMethodInsertMedia): (slice: Slice) => Command;
|
|
18
|
+
export declare function handleMediaSingle(inputMethod: InputMethodInsertMedia, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined): (slice: Slice) => Command;
|
|
18
19
|
export declare function handleExpandPasteInTable(slice: Slice): Command;
|
|
19
20
|
export declare function handleMarkdown(markdownSlice: Slice, queueCardsFromChangedTr: QueueCardsFromTransactionAction | undefined, from?: number, to?: number): Command;
|
|
20
21
|
export declare function handleParagraphBlockMarks(state: EditorState, slice: Slice): Slice;
|
|
@@ -4,6 +4,7 @@ import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
|
4
4
|
import type { cardPlugin } from '@atlaskit/editor-plugin-card';
|
|
5
5
|
import type betterTypeHistoryPlugin from '../better-type-history';
|
|
6
6
|
import type listPlugin from '../list';
|
|
7
|
+
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
7
8
|
export type PastePluginOptions = {
|
|
8
9
|
cardOptions?: CardOptions;
|
|
9
10
|
sanitizePrivateContent?: boolean;
|
|
@@ -14,7 +15,8 @@ declare const pastePlugin: NextEditorPlugin<'paste', {
|
|
|
14
15
|
typeof featureFlagsPlugin,
|
|
15
16
|
OptionalPlugin<typeof listPlugin>,
|
|
16
17
|
typeof betterTypeHistoryPlugin,
|
|
17
|
-
OptionalPlugin<typeof cardPlugin
|
|
18
|
+
OptionalPlugin<typeof cardPlugin>,
|
|
19
|
+
OptionalPlugin<typeof analyticsPlugin>
|
|
18
20
|
];
|
|
19
21
|
}>;
|
|
20
22
|
export default pastePlugin;
|
|
@@ -3,6 +3,7 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
|
3
3
|
import type { Slice, Fragment, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
4
4
|
import type { ExtractInjectionAPI, Command } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type pastePlugin from '../';
|
|
6
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
6
7
|
type PasteContext = {
|
|
7
8
|
type: PasteType;
|
|
8
9
|
asPlain?: boolean;
|
|
@@ -24,7 +25,7 @@ export declare const handlePasteAsPlainTextWithAnalytics: (view: EditorView, eve
|
|
|
24
25
|
export declare const handlePasteIntoTaskAndDecisionWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType, pluginInjectionApi: ExtractInjectionAPI<typeof pastePlugin> | undefined) => Command;
|
|
25
26
|
export declare const handlePasteIntoCaptionWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType) => Command;
|
|
26
27
|
export declare const handleCodeBlockWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, text: string) => Command;
|
|
27
|
-
export declare const handleMediaSingleWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType) => Command;
|
|
28
|
+
export declare const handleMediaSingleWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType, editorAnalyticsAPI?: EditorAnalyticsAPI | undefined) => Command;
|
|
28
29
|
export declare const handlePastePreservingMarksWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, type: PasteType, pluginInjectionApi: ExtractInjectionAPI<typeof pastePlugin> | undefined) => Command;
|
|
29
30
|
export declare const handleMarkdownWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, pluginInjectionApi: ExtractInjectionAPI<typeof pastePlugin> | undefined) => Command;
|
|
30
31
|
export declare const handleRichTextWithAnalytics: (view: EditorView, event: ClipboardEvent, slice: Slice, pluginInjectionApi: ExtractInjectionAPI<typeof pastePlugin> | undefined) => Command;
|
|
@@ -3,5 +3,5 @@ import { Side } from './selection';
|
|
|
3
3
|
export declare const isLeftCursor: (side: Side) => side is Side.LEFT;
|
|
4
4
|
export declare function getMediaNearPos(doc: PMNode, $pos: ResolvedPos, schema: Schema, dir?: number): PMNode | null;
|
|
5
5
|
export declare const isTextBlockNearPos: (doc: PMNode, schema: Schema, $pos: ResolvedPos, dir: number) => boolean;
|
|
6
|
-
export declare function
|
|
6
|
+
export declare function getLayoutModeFromTargetNode(node: PMNode): string;
|
|
7
7
|
export declare const isIgnoredClick: (elem: HTMLElement) => boolean;
|
|
@@ -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" | "width" | "
|
|
6
|
+
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "default" | "key" | "dir" | "color" | "content" | "height" | "width" | "type" | "defaultValue" | "onError" | "onChange" | "open" | "onFocus" | "onBlur" | "placeholder" | "value" | "autoFocus" | "name" | "action" | "disabled" | "children" | "media" | "property" | "aria-hidden" | "size" | "aria-expanded" | "aria-label" | "className" | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "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" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "target" | "useMap" | "wmode" | "wrap" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "hidden" | "id" | "lang" | "spellCheck" | "tabIndex" | "inputMode" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "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-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "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" | "onKeyDown" | "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" | keyof {
|
|
7
7
|
theme?: any;
|
|
8
8
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
9
9
|
}> & import("react").RefAttributes<HTMLDivElement>>;
|