@atlaskit/editor-core 197.2.7 → 197.4.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 +51 -0
- package/afm-cc/tsconfig.json +0 -3
- package/afm-jira/tsconfig.json +0 -3
- package/dist/cjs/actions/index.js +16 -42
- package/dist/cjs/composable-editor/editor-internal.js +9 -7
- package/dist/cjs/composable-editor/hooks/useProviders.js +11 -1
- package/dist/cjs/composable-editor/utils/handleProviders.js +3 -1
- package/dist/cjs/create-editor/ReactEditorView.js +13 -9
- package/dist/cjs/presets/universal.js +15 -11
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +1 -3
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +1 -9
- package/dist/cjs/ui/ContentStyles/expand.js +9 -4
- package/dist/cjs/ui/ContentStyles/layout.js +8 -2
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +3 -1
- package/dist/cjs/ui/ToolbarFeedback/index.js +5 -210
- package/dist/cjs/utils/action.js +9 -38
- package/dist/cjs/utils/getNodesCount.js +13 -0
- package/dist/cjs/utils/index.js +2 -2
- package/dist/cjs/utils/performance/getTimeSince.js +16 -0
- package/dist/cjs/utils/performance/track-transactions.js +5 -4
- package/dist/cjs/utils/{document.js → processRawFragmentValue.js} +2 -10
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/actions/index.js +4 -14
- package/dist/es2019/composable-editor/editor-internal.js +9 -7
- package/dist/es2019/composable-editor/hooks/useProviders.js +11 -1
- package/dist/es2019/composable-editor/utils/handleProviders.js +3 -1
- package/dist/es2019/create-editor/ReactEditorView.js +8 -4
- package/dist/es2019/index.js +8 -1
- package/dist/es2019/presets/universal.js +15 -11
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +1 -3
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +1 -9
- package/dist/es2019/ui/ContentStyles/expand.js +16 -2
- package/dist/es2019/ui/ContentStyles/layout.js +25 -15
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +3 -1
- package/dist/es2019/ui/ToolbarFeedback/index.js +5 -188
- package/dist/es2019/utils/action.js +0 -10
- package/dist/es2019/utils/getNodesCount.js +7 -0
- package/dist/es2019/utils/index.js +1 -1
- package/dist/es2019/utils/performance/getTimeSince.js +8 -0
- package/dist/es2019/utils/performance/track-transactions.js +2 -1
- package/dist/es2019/utils/{document.js → processRawFragmentValue.js} +1 -8
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/actions/index.js +17 -43
- package/dist/esm/composable-editor/editor-internal.js +9 -7
- package/dist/esm/composable-editor/hooks/useProviders.js +11 -1
- package/dist/esm/composable-editor/utils/handleProviders.js +3 -1
- package/dist/esm/create-editor/ReactEditorView.js +8 -4
- package/dist/esm/index.js +8 -1
- package/dist/esm/presets/universal.js +15 -11
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +1 -3
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +1 -9
- package/dist/esm/ui/ContentStyles/expand.js +9 -4
- package/dist/esm/ui/ContentStyles/layout.js +7 -2
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +3 -1
- package/dist/esm/ui/ToolbarFeedback/index.js +5 -212
- package/dist/esm/utils/action.js +9 -37
- package/dist/esm/utils/getNodesCount.js +7 -0
- package/dist/esm/utils/index.js +1 -1
- package/dist/esm/utils/performance/getTimeSince.js +10 -0
- package/dist/esm/utils/performance/track-transactions.js +2 -1
- package/dist/esm/utils/{document.js → processRawFragmentValue.js} +1 -8
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/actions/index.d.ts +0 -1
- package/dist/types/composable-editor/hooks/useProviders.d.ts +3 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +2 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +1456 -77
- package/dist/types/index.d.ts +8 -1
- package/dist/types/presets/default.d.ts +1297 -45
- package/dist/types/presets/universal.d.ts +1457 -77
- package/dist/types/presets/useUniversalPreset.d.ts +2205 -826
- package/dist/types/types/editor-appearance-component.d.ts +0 -1
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +0 -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/ui/ToolbarFeedback/index.d.ts +1 -26
- package/dist/types/utils/action.d.ts +0 -4
- package/dist/types/utils/getNodesCount.d.ts +2 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/performance/getTimeSince.d.ts +8 -0
- package/dist/{types-ts4.5/utils/document.d.ts → types/utils/processRawFragmentValue.d.ts} +1 -2
- package/dist/types-ts4.5/actions/index.d.ts +0 -1
- package/dist/types-ts4.5/composable-editor/hooks/useProviders.d.ts +3 -1
- package/dist/types-ts4.5/create-editor/ReactEditorView.d.ts +2 -1
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +1648 -60
- package/dist/types-ts4.5/index.d.ts +8 -1
- package/dist/types-ts4.5/presets/default.d.ts +1466 -24
- package/dist/types-ts4.5/presets/universal.d.ts +1649 -60
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +2424 -836
- package/dist/types-ts4.5/types/editor-appearance-component.d.ts +0 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +0 -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/ui/ToolbarFeedback/index.d.ts +1 -26
- package/dist/types-ts4.5/utils/action.d.ts +0 -7
- package/dist/types-ts4.5/utils/getNodesCount.d.ts +2 -0
- package/dist/types-ts4.5/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/performance/getTimeSince.d.ts +8 -0
- package/dist/{types/utils/document.d.ts → types-ts4.5/utils/processRawFragmentValue.d.ts} +1 -2
- package/package.json +20 -22
|
@@ -49,7 +49,6 @@ export interface FullPageToolbarProps {
|
|
|
49
49
|
beforeIcon?: ReactElement;
|
|
50
50
|
hasMinWidth?: boolean;
|
|
51
51
|
featureFlags: FeatureFlags;
|
|
52
|
-
hideAvatarGroup?: boolean;
|
|
53
52
|
editorAPI: PublicPluginAPI<ToolbarEditorPlugins> | undefined;
|
|
54
53
|
}
|
|
55
54
|
export declare const EditorToolbar: React.MemoExoticComponent<(props: FullPageToolbarProps & WrappedComponentProps) => jsx.JSX.Element>;
|
|
@@ -5,7 +5,7 @@ export declare const ScrollContainer: import("react").ForwardRefExoticComponent<
|
|
|
5
5
|
colorMode?: "light" | "dark" | undefined;
|
|
6
6
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
7
7
|
viewMode?: "view" | "edit" | undefined;
|
|
8
|
-
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "
|
|
8
|
+
} & import("react").HTMLProps<HTMLDivElement>, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "property" | "type" | "content" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "list" | "width" | "open" | "accessKey" | "dir" | "className" | "role" | "start" | "action" | "step" | "wrap" | "color" | "height" | "translate" | "default" | "hidden" | keyof {
|
|
9
9
|
theme?: import("@emotion/react").Theme | undefined;
|
|
10
10
|
colorMode?: "light" | "dark" | undefined;
|
|
11
11
|
featureFlags?: import("@atlaskit/editor-common/types").FeatureFlags | undefined;
|
|
@@ -15,6 +15,6 @@ type ContentStylesProps = {
|
|
|
15
15
|
};
|
|
16
16
|
export declare const placeholderStyles: SerializedStyles;
|
|
17
17
|
type Props = ContentStylesProps & React.HTMLProps<HTMLDivElement>;
|
|
18
|
-
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "
|
|
19
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "
|
|
18
|
+
export declare const createEditorContentStyle: (styles?: SerializedStyles) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "property" | "type" | "content" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "list" | "width" | "open" | "accessKey" | "dir" | "className" | "role" | "start" | "action" | "step" | "wrap" | "color" | "height" | "translate" | "default" | "hidden" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "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" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "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" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "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"> & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "id" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "children" | "value" | "name" | "key" | "property" | "type" | "content" | "disabled" | "defaultValue" | "onChange" | "placeholder" | "media" | "list" | "width" | "open" | "accessKey" | "dir" | "className" | "role" | "start" | "action" | "step" | "wrap" | "color" | "height" | "translate" | "default" | "hidden" | keyof ContentStylesProps | "accept" | "acceptCharset" | "allowFullScreen" | "allowTransparency" | "alt" | "as" | "async" | "autoComplete" | "autoFocus" | "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" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "target" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "radioGroup" | "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" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "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"> & React.RefAttributes<HTMLDivElement>>;
|
|
20
20
|
export default _default;
|
|
@@ -1,26 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type EditorProduct = 'bitbucket' | 'jira' | 'confluence' | 'stride' | undefined;
|
|
3
|
-
export interface Props {
|
|
4
|
-
/** @deprecated To pass package version use feedbackInfo property – <Editor feedbackInfo={{ packageVersion }} /> */
|
|
5
|
-
packageVersion?: string;
|
|
6
|
-
/** @deprecated 'To pass package name use feedbackInfo property – <Editor feedbackInfo={{ packageName }} /> */
|
|
7
|
-
packageName?: string;
|
|
8
|
-
product?: EditorProduct;
|
|
9
|
-
popupsMountPoint?: HTMLElement;
|
|
10
|
-
popupsBoundariesElement?: HTMLElement;
|
|
11
|
-
popupsScrollableElement?: HTMLElement;
|
|
12
|
-
/** @deprecated 'To pass feedback labels use feedbackInfo property – <Editor feedbackInfo={{ labels }} />' */
|
|
13
|
-
labels?: string[];
|
|
14
|
-
}
|
|
15
|
-
export interface State {
|
|
16
|
-
jiraIssueCollectorScriptLoading: boolean;
|
|
17
|
-
showOptOutOption?: boolean;
|
|
18
|
-
target?: HTMLElement;
|
|
19
|
-
}
|
|
20
|
-
declare global {
|
|
21
|
-
interface Window {
|
|
22
|
-
jQuery: any;
|
|
23
|
-
ATL_JQ_PAGE_PROPS: any;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
export default function ToolbarFeedback(props: Props): jsx.JSX.Element;
|
|
1
|
+
export default function ToolbarFeedback(): null;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import type { OptionalPlugin, PublicPluginAPI } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { ContextPanelPlugin } from '@atlaskit/editor-plugins/context-panel';
|
|
3
|
-
import type { ExtensionPlugin } from '@atlaskit/editor-plugins/extension';
|
|
4
1
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
|
-
export declare function __temporaryFixForConfigPanel(editorView: EditorView, api: PublicPluginAPI<[
|
|
6
|
-
OptionalPlugin<ExtensionPlugin>,
|
|
7
|
-
OptionalPlugin<ContextPanelPlugin>
|
|
8
|
-
]>): Promise<void>;
|
|
9
2
|
export declare function getEditorValueWithMedia(editorView: EditorView): Promise<import("prosemirror-model").Node>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { getNodesCount } from './
|
|
1
|
+
export { getNodesCount } from './getNodesCount';
|
|
2
2
|
export { default as measurements } from './performance/measure-enum';
|
|
3
3
|
export declare function whichTransitionEvent<TransitionEventName extends string>(): TransitionEventName | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculate the difference between performance.now() and the given startTime.
|
|
3
|
+
* This allows for the timing to be overridable during tests.
|
|
4
|
+
*
|
|
5
|
+
* @param startTime DOMHighResTimeStamp
|
|
6
|
+
* @returns DOMHighResTimeStamp
|
|
7
|
+
*/
|
|
8
|
+
export declare const getTimeSince: (startTime: DOMHighResTimeStamp) => DOMHighResTimeStamp;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { ReplaceRawValue, Transformer } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type {
|
|
4
|
+
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
5
5
|
import { Fragment } from '@atlaskit/editor-prosemirror/model';
|
|
6
6
|
export declare function processRawFragmentValue(schema: Schema, value?: ReplaceRawValue[], providerFactory?: ProviderFactory, sanitizePrivateContent?: boolean, contentTransformer?: Transformer<string>, dispatchAnalyticsEvent?: DispatchAnalyticsEvent): Fragment | undefined;
|
|
7
|
-
export declare function getNodesCount(node: Node): Record<string, number>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "197.
|
|
3
|
+
"version": "197.4.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -43,16 +43,15 @@
|
|
|
43
43
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
44
44
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
45
45
|
"@atlaskit/button": "^20.1.0",
|
|
46
|
-
"@atlaskit/editor-common": "^88.
|
|
47
|
-
"@atlaskit/editor-plugins": "^4.
|
|
46
|
+
"@atlaskit/editor-common": "^88.12.0",
|
|
47
|
+
"@atlaskit/editor-plugins": "^4.4.0",
|
|
48
48
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
49
49
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
50
50
|
"@atlaskit/emoji": "^67.7.0",
|
|
51
|
-
"@atlaskit/icon": "^22.
|
|
51
|
+
"@atlaskit/icon": "^22.16.0",
|
|
52
52
|
"@atlaskit/media-card": "^78.2.0",
|
|
53
53
|
"@atlaskit/mention": "^23.2.0",
|
|
54
54
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
55
|
-
"@atlaskit/spinner": "^16.3.0",
|
|
56
55
|
"@atlaskit/task-decision": "^17.10.0",
|
|
57
56
|
"@atlaskit/theme": "^13.0.0",
|
|
58
57
|
"@atlaskit/tmp-editor-statsig": "*",
|
|
@@ -79,39 +78,38 @@
|
|
|
79
78
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
80
79
|
},
|
|
81
80
|
"devDependencies": {
|
|
82
|
-
"@af/editor-examples-helpers": "0.3.
|
|
81
|
+
"@af/editor-examples-helpers": "0.3.7",
|
|
83
82
|
"@af/editor-libra": "*",
|
|
84
83
|
"@af/visual-regression": "*",
|
|
85
84
|
"@atlaskit/adf-utils": "^19.8.0",
|
|
86
85
|
"@atlaskit/analytics-listeners": "^8.11.0",
|
|
87
|
-
"@atlaskit/collab-provider": "9.
|
|
86
|
+
"@atlaskit/collab-provider": "9.40.0",
|
|
88
87
|
"@atlaskit/editor-json-transformer": "^8.18.0",
|
|
89
|
-
"@atlaskit/editor-plugin-annotation": "1.19.
|
|
90
|
-
"@atlaskit/editor-plugin-card": "^2.
|
|
88
|
+
"@atlaskit/editor-plugin-annotation": "1.19.4",
|
|
89
|
+
"@atlaskit/editor-plugin-card": "^2.15.0",
|
|
91
90
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
92
91
|
"@atlaskit/editor-plugin-list": "^3.8.0",
|
|
93
|
-
"@atlaskit/editor-plugin-paste": "^1.
|
|
92
|
+
"@atlaskit/editor-plugin-paste": "^1.12.0",
|
|
94
93
|
"@atlaskit/editor-test-helpers": "*",
|
|
95
|
-
"@atlaskit/link-provider": "^1.
|
|
94
|
+
"@atlaskit/link-provider": "^1.15.0",
|
|
96
95
|
"@atlaskit/logo": "^14.2.0",
|
|
97
96
|
"@atlaskit/media-core": "^34.3.0",
|
|
98
97
|
"@atlaskit/media-integration-test-helpers": "^3.1.0",
|
|
99
98
|
"@atlaskit/media-test-helpers": "^34.1.0",
|
|
100
99
|
"@atlaskit/modal-dialog": "^12.15.0",
|
|
101
100
|
"@atlaskit/primitives": "^12.1.0",
|
|
102
|
-
"@atlaskit/renderer": "^109.
|
|
103
|
-
"@atlaskit/smart-card": "^
|
|
101
|
+
"@atlaskit/renderer": "^109.53.0",
|
|
102
|
+
"@atlaskit/smart-card": "^28.0.0",
|
|
104
103
|
"@atlaskit/synchrony-test-helpers": "^2.5.0",
|
|
105
|
-
"@atlaskit/toggle": "^13.
|
|
104
|
+
"@atlaskit/toggle": "^13.4.0",
|
|
106
105
|
"@atlaskit/util-data-test": "^17.9.0",
|
|
107
106
|
"@atlaskit/visual-regression": "*",
|
|
108
107
|
"@atlassian/adf-schema-json": "^1.22.0",
|
|
109
|
-
"@atlassian/search-provider": "2.4.
|
|
108
|
+
"@atlassian/search-provider": "2.4.120",
|
|
110
109
|
"@emotion/jest": "^11.8.0",
|
|
111
110
|
"@storybook/addon-knobs": "^5.3.18",
|
|
112
111
|
"@testing-library/react": "^12.1.5",
|
|
113
112
|
"@testing-library/react-hooks": "^8.0.1",
|
|
114
|
-
"@testing-library/user-event": "^14.4.3",
|
|
115
113
|
"@types/diff": "^5.0.2",
|
|
116
114
|
"@types/is-number": "^7.0.0",
|
|
117
115
|
"diff": "^4.0.1",
|
|
@@ -190,6 +188,9 @@
|
|
|
190
188
|
"type": "boolean",
|
|
191
189
|
"referenceOnly": "true"
|
|
192
190
|
},
|
|
191
|
+
"platform_editor_remove_editor_actions_workaround": {
|
|
192
|
+
"type": "boolean"
|
|
193
|
+
},
|
|
193
194
|
"platform.editor.table.use-shared-state-hook": {
|
|
194
195
|
"type": "boolean",
|
|
195
196
|
"referenceOnly": true
|
|
@@ -238,9 +239,6 @@
|
|
|
238
239
|
"type": "boolean",
|
|
239
240
|
"referenceOnly": true
|
|
240
241
|
},
|
|
241
|
-
"platform_editor_table_support_in_comment": {
|
|
242
|
-
"type": "boolean"
|
|
243
|
-
},
|
|
244
242
|
"editor-fix-esc-main-toolbar-navigation": {
|
|
245
243
|
"type": "boolean"
|
|
246
244
|
},
|
|
@@ -265,15 +263,15 @@
|
|
|
265
263
|
"platform_hide_editor_toolbar_ssr": {
|
|
266
264
|
"type": "boolean"
|
|
267
265
|
},
|
|
268
|
-
"platform_editor_remove_hide_avatar_group_prop": {
|
|
269
|
-
"type": "boolean"
|
|
270
|
-
},
|
|
271
266
|
"platform_editor_card_provider_from_plugin_config": {
|
|
272
267
|
"type": "boolean"
|
|
273
268
|
},
|
|
274
269
|
"platform_editor_media_batch_updates": {
|
|
275
270
|
"type": "boolean",
|
|
276
271
|
"referenceOnly": true
|
|
272
|
+
},
|
|
273
|
+
"platform_editor_get_emoji_provider_from_config": {
|
|
274
|
+
"type": "boolean"
|
|
277
275
|
}
|
|
278
276
|
},
|
|
279
277
|
"stricter": {
|