@atlaskit/editor-core 172.0.4 → 172.1.1
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 +56 -0
- package/dist/cjs/create-editor/ReactEditorView.js +11 -2
- package/dist/cjs/create-editor/ReactEditorViewContext.js +15 -0
- package/dist/cjs/create-editor/create-plugins-list.js +2 -1
- package/dist/cjs/editor.js +7 -1
- package/dist/cjs/labs/next/mobile.js +5 -3
- package/dist/cjs/messages.js +5 -0
- package/dist/cjs/plugins/analytics/types/enums.js +1 -0
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +1 -1
- package/dist/cjs/plugins/card/nodeviews/inlineCard.js +8 -0
- package/dist/cjs/plugins/card/pm-plugins/doc.js +2 -26
- package/dist/cjs/plugins/card/toolbar.js +118 -86
- package/dist/cjs/plugins/code-block/nodeviews/code-block.js +9 -2
- package/dist/cjs/plugins/code-block/pm-plugins/ide-ux.js +37 -1
- package/dist/cjs/plugins/code-block/toolbar.js +3 -1
- package/dist/cjs/plugins/code-block/ui/class-names.js +2 -0
- package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +4 -3
- package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +3 -1
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +42 -2
- package/dist/cjs/plugins/hyperlink/Toolbar.js +43 -8
- package/dist/cjs/plugins/media/commands/helpers.js +1 -8
- package/dist/cjs/plugins/media/index.js +1 -1
- package/dist/cjs/plugins/media/nodeviews/mediaNodeView/index.js +0 -10
- package/dist/cjs/plugins/media/nodeviews/mediaNodeView/media.js +2 -3
- package/dist/cjs/plugins/media/picker-facade.js +1 -0
- package/dist/cjs/plugins/media/pm-plugins/main.js +3 -13
- package/dist/cjs/plugins/panel/pm-plugins/keymaps.js +1 -1
- package/dist/cjs/plugins/paste/handlers.js +9 -20
- package/dist/cjs/plugins/paste/md.js +8 -2
- package/dist/cjs/plugins/paste/newline-md-plugin.js +67 -0
- package/dist/cjs/plugins/paste/paragraph-md-plugin.js +72 -0
- package/dist/cjs/plugins/table/commands/hover.js +4 -4
- package/dist/cjs/plugins/table/ui/TableFloatingControls/CornerControls/index.js +2 -1
- package/dist/cjs/plugins/table/ui/common-styles.js +1 -1
- package/dist/cjs/plugins/table/utils/decoration.js +53 -3
- package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -0
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +3 -2
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +78 -53
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +1 -1
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +7 -2
- package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +8 -2
- package/dist/cjs/ui/Appearance/Comment/Comment.js +13 -13
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +8 -7
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +2 -1
- package/dist/cjs/ui/Appearance/Mobile.js +4 -2
- package/dist/cjs/ui/AppearanceComponents/Mobile.js +5 -4
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/DropdownMenu/index.js +5 -5
- package/dist/cjs/ui/with-outer-listeners.js +105 -50
- package/dist/cjs/utils/deprecation-warnings.js +4 -0
- package/dist/cjs/utils/linking-utils.js +40 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +11 -2
- package/dist/es2019/create-editor/ReactEditorViewContext.js +3 -0
- package/dist/es2019/create-editor/create-plugins-list.js +2 -1
- package/dist/es2019/editor.js +7 -1
- package/dist/es2019/labs/next/mobile.js +5 -3
- package/dist/es2019/messages.js +5 -0
- package/dist/es2019/plugins/analytics/types/enums.js +1 -0
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +1 -1
- package/dist/es2019/plugins/card/nodeviews/inlineCard.js +10 -0
- package/dist/es2019/plugins/card/pm-plugins/doc.js +1 -24
- package/dist/es2019/plugins/card/toolbar.js +114 -86
- package/dist/es2019/plugins/code-block/nodeviews/code-block.js +9 -2
- package/dist/es2019/plugins/code-block/pm-plugins/ide-ux.js +40 -2
- package/dist/es2019/plugins/code-block/toolbar.js +2 -1
- package/dist/es2019/plugins/code-block/ui/class-names.js +2 -0
- package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +4 -3
- package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +3 -2
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +37 -0
- package/dist/es2019/plugins/hyperlink/Toolbar.js +40 -9
- package/dist/es2019/plugins/media/commands/helpers.js +0 -2
- package/dist/es2019/plugins/media/index.js +1 -1
- package/dist/es2019/plugins/media/nodeviews/mediaNodeView/index.js +0 -7
- package/dist/es2019/plugins/media/nodeviews/mediaNodeView/media.js +2 -3
- package/dist/es2019/plugins/media/picker-facade.js +1 -0
- package/dist/es2019/plugins/media/pm-plugins/main.js +3 -13
- package/dist/es2019/plugins/panel/pm-plugins/keymaps.js +1 -1
- package/dist/es2019/plugins/paste/handlers.js +7 -19
- package/dist/es2019/plugins/paste/md.js +6 -2
- package/dist/es2019/plugins/paste/newline-md-plugin.js +56 -0
- package/dist/es2019/plugins/paste/paragraph-md-plugin.js +61 -0
- package/dist/es2019/plugins/table/commands/hover.js +4 -4
- package/dist/es2019/plugins/table/ui/TableFloatingControls/CornerControls/index.js +2 -1
- package/dist/es2019/plugins/table/ui/common-styles.js +39 -2
- package/dist/es2019/plugins/table/utils/decoration.js +60 -24
- package/dist/es2019/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -0
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +4 -3
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadList.js +78 -59
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +2 -2
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +6 -2
- package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +7 -2
- package/dist/es2019/ui/Appearance/Comment/Comment.js +12 -6
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +7 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +2 -1
- package/dist/es2019/ui/Appearance/Mobile.js +4 -2
- package/dist/es2019/ui/AppearanceComponents/Mobile.js +5 -4
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/DropdownMenu/index.js +10 -6
- package/dist/es2019/ui/with-outer-listeners.js +83 -33
- package/dist/es2019/utils/deprecation-warnings.js +4 -0
- package/dist/es2019/utils/linking-utils.js +37 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +11 -2
- package/dist/esm/create-editor/ReactEditorViewContext.js +3 -0
- package/dist/esm/create-editor/create-plugins-list.js +2 -1
- package/dist/esm/editor.js +7 -1
- package/dist/esm/labs/next/mobile.js +5 -3
- package/dist/esm/messages.js +5 -0
- package/dist/esm/plugins/analytics/types/enums.js +1 -0
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +1 -1
- package/dist/esm/plugins/card/nodeviews/inlineCard.js +9 -0
- package/dist/esm/plugins/card/pm-plugins/doc.js +1 -20
- package/dist/esm/plugins/card/toolbar.js +108 -83
- package/dist/esm/plugins/code-block/nodeviews/code-block.js +9 -2
- package/dist/esm/plugins/code-block/pm-plugins/ide-ux.js +37 -2
- package/dist/esm/plugins/code-block/toolbar.js +2 -1
- package/dist/esm/plugins/code-block/ui/class-names.js +2 -0
- package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +4 -3
- package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +3 -2
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +41 -2
- package/dist/esm/plugins/hyperlink/Toolbar.js +43 -10
- package/dist/esm/plugins/media/commands/helpers.js +0 -4
- package/dist/esm/plugins/media/index.js +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaNodeView/index.js +0 -8
- package/dist/esm/plugins/media/nodeviews/mediaNodeView/media.js +2 -3
- package/dist/esm/plugins/media/picker-facade.js +1 -0
- package/dist/esm/plugins/media/pm-plugins/main.js +3 -15
- package/dist/esm/plugins/panel/pm-plugins/keymaps.js +1 -1
- package/dist/esm/plugins/paste/handlers.js +11 -22
- package/dist/esm/plugins/paste/md.js +6 -2
- package/dist/esm/plugins/paste/newline-md-plugin.js +58 -0
- package/dist/esm/plugins/paste/paragraph-md-plugin.js +63 -0
- package/dist/esm/plugins/table/commands/hover.js +4 -4
- package/dist/esm/plugins/table/ui/TableFloatingControls/CornerControls/index.js +2 -1
- package/dist/esm/plugins/table/ui/common-styles.js +1 -1
- package/dist/esm/plugins/table/utils/decoration.js +50 -3
- package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -0
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +4 -3
- package/dist/esm/plugins/type-ahead/ui/TypeAheadList.js +77 -51
- package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +2 -2
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +7 -2
- package/dist/esm/ui/Addon/ClickAreaMobile/index.js +8 -2
- package/dist/esm/ui/Appearance/Comment/Comment.js +12 -12
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +7 -6
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +2 -1
- package/dist/esm/ui/Appearance/Mobile.js +4 -2
- package/dist/esm/ui/AppearanceComponents/Mobile.js +5 -4
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/DropdownMenu/index.js +5 -5
- package/dist/esm/ui/with-outer-listeners.js +105 -51
- package/dist/esm/utils/deprecation-warnings.js +4 -0
- package/dist/esm/utils/linking-utils.js +37 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +3 -0
- package/dist/types/create-editor/ReactEditorViewContext.d.ts +8 -0
- package/dist/types/messages.d.ts +5 -0
- package/dist/types/plugins/analytics/types/enums.d.ts +1 -0
- package/dist/types/plugins/analytics/types/events.d.ts +2 -2
- package/dist/types/plugins/analytics/types/link-tool-bar-events.d.ts +1 -0
- package/dist/types/plugins/card/nodeviews/inlineCard.d.ts +3 -0
- package/dist/types/plugins/card/pm-plugins/doc.d.ts +1 -2
- package/dist/types/plugins/card/toolbar.d.ts +1 -0
- package/dist/types/plugins/card/ui/ResizableEmbedCard.d.ts +1 -1
- package/dist/types/plugins/code-block/pm-plugins/ide-ux.d.ts +4 -1
- package/dist/types/plugins/code-block/ui/class-names.d.ts +2 -0
- package/dist/types/plugins/hyperlink/types.d.ts +1 -0
- package/dist/types/plugins/media/commands/helpers.d.ts +0 -1
- package/dist/types/plugins/media/nodeviews/mediaNodeView/index.d.ts +0 -1
- package/dist/types/plugins/media/nodeviews/mediaNodeView/media.d.ts +0 -1
- package/dist/types/plugins/media/pm-plugins/main.d.ts +0 -2
- package/dist/types/plugins/media/pm-plugins/types.d.ts +0 -2
- package/dist/types/plugins/media/ui/ResizableMediaSingle/index.d.ts +1 -1
- package/dist/types/plugins/paste/newline-md-plugin.d.ts +2 -0
- package/dist/types/plugins/paste/paragraph-md-plugin.d.ts +2 -0
- package/dist/types/plugins/table/utils/decoration.d.ts +1 -1
- package/dist/types/types/editor-appearance-component.d.ts +1 -0
- package/dist/types/types/feature-flags.d.ts +9 -0
- package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +1 -0
- package/dist/types/ui/Addon/ClickAreaMobile/index.d.ts +1 -0
- package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +1 -0
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +3 -3
- package/dist/types/ui/Appearance/Mobile.d.ts +1 -1
- package/dist/types/ui/AppearanceComponents/Mobile.d.ts +2 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/ui/Dropdown/index.d.ts +1 -1
- package/dist/types/ui/with-outer-listeners.d.ts +2 -1
- package/dist/types/utils/linking-utils.d.ts +1 -0
- package/package.json +37 -39
- package/dist/cjs/plugins/type-ahead/ui/DynamicHeightListItem.js +0 -77
- package/dist/cjs/plugins/type-ahead/ui/hooks/use-dynamic-list-height-calculation.js +0 -118
- package/dist/cjs/plugins/type-ahead/ui/hooks/use-resize-observer.js +0 -70
- package/dist/es2019/plugins/type-ahead/ui/DynamicHeightListItem.js +0 -51
- package/dist/es2019/plugins/type-ahead/ui/hooks/use-dynamic-list-height-calculation.js +0 -97
- package/dist/es2019/plugins/type-ahead/ui/hooks/use-resize-observer.js +0 -53
- package/dist/esm/plugins/type-ahead/ui/DynamicHeightListItem.js +0 -51
- package/dist/esm/plugins/type-ahead/ui/hooks/use-dynamic-list-height-calculation.js +0 -101
- package/dist/esm/plugins/type-ahead/ui/hooks/use-resize-observer.js +0 -48
- package/dist/types/plugins/type-ahead/ui/DynamicHeightListItem.d.ts +0 -21
- package/dist/types/plugins/type-ahead/ui/hooks/use-dynamic-list-height-calculation.d.ts +0 -25
- package/dist/types/plugins/type-ahead/ui/hooks/use-resize-observer.d.ts +0 -8
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const fullPageEditorWrapper: import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const ScrollContainer: import("react").ForwardRefExoticComponent<Pick<{
|
|
4
|
+
headers?: string | undefined;
|
|
5
|
+
method?: string | undefined;
|
|
4
6
|
cite?: string | undefined;
|
|
5
7
|
data?: string | undefined;
|
|
6
8
|
dir?: string | undefined;
|
|
@@ -92,7 +94,6 @@ export declare const ScrollContainer: import("react").ForwardRefExoticComponent<
|
|
|
92
94
|
formNoValidate?: boolean | undefined;
|
|
93
95
|
formTarget?: string | undefined;
|
|
94
96
|
frameBorder?: string | number | undefined;
|
|
95
|
-
headers?: string | undefined;
|
|
96
97
|
high?: number | undefined;
|
|
97
98
|
hrefLang?: string | undefined;
|
|
98
99
|
htmlFor?: string | undefined;
|
|
@@ -109,7 +110,6 @@ export declare const ScrollContainer: import("react").ForwardRefExoticComponent<
|
|
|
109
110
|
marginWidth?: number | undefined;
|
|
110
111
|
max?: string | number | undefined;
|
|
111
112
|
maxLength?: number | undefined;
|
|
112
|
-
method?: string | undefined;
|
|
113
113
|
min?: string | number | undefined;
|
|
114
114
|
minLength?: number | undefined;
|
|
115
115
|
muted?: boolean | undefined;
|
|
@@ -365,7 +365,7 @@ export declare const ScrollContainer: import("react").ForwardRefExoticComponent<
|
|
|
365
365
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
366
366
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
367
367
|
css?: import("@emotion/core").InterpolationWithTheme<any>;
|
|
368
|
-
}, "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "default" | "mediaGroup" | "media" | "content" | "aria-label" | "aria-haspopup" | "children" | "theme" | "pattern" | "value" | "type" | "onSubmit" | "width" | "color" | "height" | "start" | "hidden" | "size" | "wrap" | "open" | "multiple" | "disabled" | "accessKey" | "draggable" | "lang" | "className" | "id" | "prefix" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultValue" | "onError" | "onChange" | "onFocus" | "onBlur" | "placeholder" | "autoFocus" | "name" | "key" | "action" | "property" | "target" | "onClick" | "onMouseEnter" | "onMouseLeave" | "selected" | "href" | "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" | "
|
|
368
|
+
}, "headers" | "method" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "default" | "mediaGroup" | "media" | "content" | "aria-label" | "aria-haspopup" | "children" | "theme" | "pattern" | "value" | "type" | "onSubmit" | "width" | "color" | "height" | "start" | "hidden" | "size" | "wrap" | "open" | "multiple" | "disabled" | "accessKey" | "draggable" | "lang" | "className" | "id" | "prefix" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultValue" | "onError" | "onChange" | "onFocus" | "onBlur" | "placeholder" | "autoFocus" | "name" | "key" | "action" | "property" | "target" | "onClick" | "onMouseEnter" | "onMouseLeave" | "selected" | "href" | "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" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "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-expanded" | "aria-flowto" | "aria-grabbed" | "aria-hidden" | "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" | "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" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "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"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
369
369
|
export declare const positionedOverEditorStyle: import("@emotion/react").SerializedStyles;
|
|
370
370
|
export declare const contentArea: import("@emotion/react").SerializedStyles;
|
|
371
371
|
export declare const sidebarArea: import("@emotion/react").SerializedStyles;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { EditorAppearanceComponentProps } from '../../types';
|
|
3
|
-
export default function Mobile({ editorView, maxHeight, persistScrollGutter, editorDOMElement, }: EditorAppearanceComponentProps): JSX.Element;
|
|
3
|
+
export default function Mobile({ editorView, maxHeight, persistScrollGutter, editorDOMElement, disabled, }: EditorAppearanceComponentProps): JSX.Element;
|
|
@@ -10,5 +10,6 @@ export declare type MobileAppearanceProps = React.PropsWithChildren<{
|
|
|
10
10
|
editorView: EditorView | null;
|
|
11
11
|
maxHeight?: number;
|
|
12
12
|
persistScrollGutter?: boolean;
|
|
13
|
+
editorDisabled?: boolean;
|
|
13
14
|
}>;
|
|
14
|
-
export declare function MobileAppearance({ editorView,
|
|
15
|
+
export declare function MobileAppearance({ editorView, persistScrollGutter, children, editorDisabled, }: MobileAppearanceProps): jsx.JSX.Element;
|
|
@@ -7,6 +7,6 @@ declare type ContentStylesProps = {
|
|
|
7
7
|
featureFlags?: FeatureFlags;
|
|
8
8
|
};
|
|
9
9
|
declare type Props = Omit<ContentStylesProps & React.HTMLProps<HTMLDivElement>, 'featureFlags'>;
|
|
10
|
-
export declare const createEditorContentStyle: (styles?: SerializedStyles | undefined) => React.ForwardRefExoticComponent<Pick<Props, "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "default" | "mediaGroup" | "media" | "content" | "aria-label" | "aria-haspopup" | "children" | "theme" | "pattern" | "value" | "type" | "onSubmit" | "width" | "color" | "height" | "start" | "hidden" | "size" | "wrap" | "open" | "multiple" | "disabled" | "accessKey" | "draggable" | "lang" | "className" | "id" | "prefix" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultValue" | "onError" | "onChange" | "onFocus" | "onBlur" | "placeholder" | "autoFocus" | "name" | "key" | "action" | "property" | "target" | "onClick" | "onMouseEnter" | "onMouseLeave" | "selected" | "href" | "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" | "
|
|
11
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "default" | "mediaGroup" | "media" | "content" | "aria-label" | "aria-haspopup" | "children" | "theme" | "pattern" | "value" | "type" | "onSubmit" | "width" | "color" | "height" | "start" | "hidden" | "size" | "wrap" | "open" | "multiple" | "disabled" | "accessKey" | "draggable" | "lang" | "className" | "id" | "prefix" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultValue" | "onError" | "onChange" | "onFocus" | "onBlur" | "placeholder" | "autoFocus" | "name" | "key" | "action" | "property" | "target" | "onClick" | "onMouseEnter" | "onMouseLeave" | "selected" | "href" | "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" | "
|
|
10
|
+
export declare const createEditorContentStyle: (styles?: SerializedStyles | undefined) => React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "default" | "mediaGroup" | "media" | "content" | "aria-label" | "aria-haspopup" | "children" | "theme" | "pattern" | "value" | "type" | "onSubmit" | "width" | "color" | "height" | "start" | "hidden" | "size" | "wrap" | "open" | "multiple" | "disabled" | "accessKey" | "draggable" | "lang" | "className" | "id" | "prefix" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultValue" | "onError" | "onChange" | "onFocus" | "onBlur" | "placeholder" | "autoFocus" | "name" | "key" | "action" | "property" | "target" | "onClick" | "onMouseEnter" | "onMouseLeave" | "selected" | "href" | "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" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "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-expanded" | "aria-flowto" | "aria-grabbed" | "aria-hidden" | "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" | "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" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "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"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Props, "headers" | "method" | "cite" | "data" | "dir" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "default" | "mediaGroup" | "media" | "content" | "aria-label" | "aria-haspopup" | "children" | "theme" | "pattern" | "value" | "type" | "onSubmit" | "width" | "color" | "height" | "start" | "hidden" | "size" | "wrap" | "open" | "multiple" | "disabled" | "accessKey" | "draggable" | "lang" | "className" | "id" | "prefix" | "contentEditable" | "inputMode" | "nonce" | "tabIndex" | "defaultValue" | "onError" | "onChange" | "onFocus" | "onBlur" | "placeholder" | "autoFocus" | "name" | "key" | "action" | "property" | "target" | "onClick" | "onMouseEnter" | "onMouseLeave" | "selected" | "href" | "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" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "min" | "minLength" | "muted" | "noValidate" | "optimum" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "shape" | "sizes" | "src" | "srcDoc" | "srcLang" | "srcSet" | "step" | "useMap" | "wmode" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "contextMenu" | "spellCheck" | "is" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "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-expanded" | "aria-flowto" | "aria-grabbed" | "aria-hidden" | "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" | "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" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "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"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
export default _default;
|
|
@@ -29,5 +29,5 @@ export declare class Dropdown extends PureComponent<Props, State> {
|
|
|
29
29
|
private renderDropdown;
|
|
30
30
|
render(): JSX.Element;
|
|
31
31
|
}
|
|
32
|
-
declare const DropdownWithOuterListeners: React.
|
|
32
|
+
declare const DropdownWithOuterListeners: React.FC<Props & import("../with-outer-listeners").WithOutsideClickProps>;
|
|
33
33
|
export default DropdownWithOuterListeners;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ComponentClass, StatelessComponent } from 'react';
|
|
2
3
|
declare type SimpleEventHandler<T> = (event: T) => void;
|
|
3
4
|
export interface WithOutsideClickProps {
|
|
@@ -5,5 +6,5 @@ export interface WithOutsideClickProps {
|
|
|
5
6
|
handleEscapeKeydown?: SimpleEventHandler<KeyboardEvent>;
|
|
6
7
|
handleEnterKeydown?: SimpleEventHandler<KeyboardEvent>;
|
|
7
8
|
}
|
|
8
|
-
export default function withOuterListeners<P>(Component: ComponentClass<P> | StatelessComponent<P>):
|
|
9
|
+
export default function withOuterListeners<P>(Component: ComponentClass<P> | StatelessComponent<P>): React.FC<P & WithOutsideClickProps>;
|
|
9
10
|
export {};
|
|
@@ -2,6 +2,7 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE, AnalyticsEventPayload, ACTION_SUBJE
|
|
|
2
2
|
export declare const buildEditLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
3
3
|
export declare type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK;
|
|
4
4
|
export declare const buildVisitedLinkPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
5
|
+
export declare const buildOpenedSettingsPayload: (type: LinkType) => AnalyticsEventPayload;
|
|
5
6
|
export declare const unlinkPayload: (type: LinkType) => {
|
|
6
7
|
action: ACTION;
|
|
7
8
|
actionSubject: ACTION_SUBJECT;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "172.
|
|
3
|
+
"version": "172.1.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@atlaskit/activity": "^1.0.1",
|
|
28
28
|
"@atlaskit/activity-provider": "^2.3.0",
|
|
29
|
-
"@atlaskit/adf-schema": "^
|
|
29
|
+
"@atlaskit/adf-schema": "^24.0.0",
|
|
30
30
|
"@atlaskit/adf-utils": "^17.1.0",
|
|
31
31
|
"@atlaskit/analytics-gas-types": "^5.0.0",
|
|
32
32
|
"@atlaskit/analytics-listeners": "^8.3.0",
|
|
@@ -36,48 +36,48 @@
|
|
|
36
36
|
"@atlaskit/avatar": "^21.0.0",
|
|
37
37
|
"@atlaskit/avatar-group": "^9.0.0",
|
|
38
38
|
"@atlaskit/button": "^16.3.0",
|
|
39
|
-
"@atlaskit/calendar": "^12.
|
|
39
|
+
"@atlaskit/calendar": "^12.4.0",
|
|
40
40
|
"@atlaskit/checkbox": "^12.3.0",
|
|
41
41
|
"@atlaskit/code": "^14.3.0",
|
|
42
42
|
"@atlaskit/date": "^0.9.0",
|
|
43
|
-
"@atlaskit/datetime-picker": "^12.
|
|
44
|
-
"@atlaskit/editor-common": "^69.
|
|
45
|
-
"@atlaskit/editor-json-transformer": "^8.
|
|
43
|
+
"@atlaskit/datetime-picker": "^12.2.0",
|
|
44
|
+
"@atlaskit/editor-common": "^69.2.0",
|
|
45
|
+
"@atlaskit/editor-json-transformer": "^8.8.0",
|
|
46
46
|
"@atlaskit/editor-markdown-transformer": "^4.1.0",
|
|
47
47
|
"@atlaskit/editor-shared-styles": "^2.1.0",
|
|
48
48
|
"@atlaskit/editor-tables": "^2.1.0",
|
|
49
|
-
"@atlaskit/emoji": "^65.
|
|
50
|
-
"@atlaskit/empty-state": "^7.
|
|
49
|
+
"@atlaskit/emoji": "^65.2.0",
|
|
50
|
+
"@atlaskit/empty-state": "^7.4.0",
|
|
51
51
|
"@atlaskit/form": "^8.5.0",
|
|
52
52
|
"@atlaskit/icon": "^21.10.0",
|
|
53
53
|
"@atlaskit/icon-object": "^6.2.0",
|
|
54
54
|
"@atlaskit/link-picker": "^1.8.0",
|
|
55
55
|
"@atlaskit/locale": "^2.3.0",
|
|
56
|
-
"@atlaskit/logo": "^13.
|
|
56
|
+
"@atlaskit/logo": "^13.9.0",
|
|
57
57
|
"@atlaskit/media-card": "^74.1.0",
|
|
58
58
|
"@atlaskit/media-client": "^17.1.0",
|
|
59
59
|
"@atlaskit/media-common": "^2.16.0",
|
|
60
60
|
"@atlaskit/media-filmstrip": "^45.0.0",
|
|
61
61
|
"@atlaskit/media-picker": "^63.0.0",
|
|
62
62
|
"@atlaskit/media-ui": "^22.1.0",
|
|
63
|
-
"@atlaskit/media-viewer": "^47.
|
|
63
|
+
"@atlaskit/media-viewer": "^47.1.0",
|
|
64
64
|
"@atlaskit/mention": "^21.0.0",
|
|
65
65
|
"@atlaskit/menu": "^1.3.0",
|
|
66
|
-
"@atlaskit/modal-dialog": "^12.
|
|
66
|
+
"@atlaskit/modal-dialog": "^12.3.0",
|
|
67
67
|
"@atlaskit/prosemirror-input-rules": "^2.1.0",
|
|
68
|
-
"@atlaskit/radio": "^5.
|
|
69
|
-
"@atlaskit/section-message": "^6.
|
|
70
|
-
"@atlaskit/select": "^15.
|
|
71
|
-
"@atlaskit/smart-card": "^22.
|
|
68
|
+
"@atlaskit/radio": "^5.4.0",
|
|
69
|
+
"@atlaskit/section-message": "^6.2.0",
|
|
70
|
+
"@atlaskit/select": "^15.7.0",
|
|
71
|
+
"@atlaskit/smart-card": "^22.1.0",
|
|
72
72
|
"@atlaskit/smart-user-picker": "^6.0.0",
|
|
73
73
|
"@atlaskit/spinner": "^15.1.0",
|
|
74
74
|
"@atlaskit/status": "^1.1.0",
|
|
75
|
-
"@atlaskit/tabs": "^13.
|
|
76
|
-
"@atlaskit/task-decision": "^17.
|
|
75
|
+
"@atlaskit/tabs": "^13.3.0",
|
|
76
|
+
"@atlaskit/task-decision": "^17.5.0",
|
|
77
77
|
"@atlaskit/textarea": "^4.3.0",
|
|
78
|
-
"@atlaskit/textfield": "^5.
|
|
79
|
-
"@atlaskit/theme": "^12.
|
|
80
|
-
"@atlaskit/toggle": "^12.
|
|
78
|
+
"@atlaskit/textfield": "^5.2.0",
|
|
79
|
+
"@atlaskit/theme": "^12.2.0",
|
|
80
|
+
"@atlaskit/toggle": "^12.5.0",
|
|
81
81
|
"@atlaskit/tokens": "^0.10.0",
|
|
82
82
|
"@atlaskit/tooltip": "^17.5.0",
|
|
83
83
|
"@atlaskit/util-service-support": "^6.1.0",
|
|
@@ -123,13 +123,12 @@
|
|
|
123
123
|
"react-loadable": "^5.1.0",
|
|
124
124
|
"react-transition-group": "^4.4.1",
|
|
125
125
|
"react-virtualized": "^9.8.0",
|
|
126
|
-
"react-window": "^1.8.6",
|
|
127
126
|
"rusha": "^0.8.13",
|
|
128
127
|
"uuid": "^3.1.0",
|
|
129
128
|
"w3c-keyname": "^2.1.0"
|
|
130
129
|
},
|
|
131
130
|
"peerDependencies": {
|
|
132
|
-
"@atlaskit/link-provider": "^1.2.
|
|
131
|
+
"@atlaskit/link-provider": "^1.2.6",
|
|
133
132
|
"@atlaskit/media-core": "^33.0.2",
|
|
134
133
|
"react": "^16.8.0",
|
|
135
134
|
"react-dom": "^16.8.0",
|
|
@@ -138,35 +137,35 @@
|
|
|
138
137
|
},
|
|
139
138
|
"devDependencies": {
|
|
140
139
|
"@atlaskit/atlassian-navigation": "^2.2.0",
|
|
141
|
-
"@atlaskit/breadcrumbs": "11.
|
|
140
|
+
"@atlaskit/breadcrumbs": "11.7.0",
|
|
142
141
|
"@atlaskit/code": "^14.3.0",
|
|
143
|
-
"@atlaskit/collab-provider": "7.
|
|
142
|
+
"@atlaskit/collab-provider": "7.6.0",
|
|
144
143
|
"@atlaskit/docs": "*",
|
|
145
|
-
"@atlaskit/drawer": "^7.
|
|
146
|
-
"@atlaskit/dropdown-menu": "^11.
|
|
144
|
+
"@atlaskit/drawer": "^7.2.0",
|
|
145
|
+
"@atlaskit/dropdown-menu": "^11.5.0",
|
|
147
146
|
"@atlaskit/droplist": "^11.0.0",
|
|
148
147
|
"@atlaskit/editor-bitbucket-transformer": "^7.2.0",
|
|
149
148
|
"@atlaskit/editor-extension-dropbox": "^0.3.0",
|
|
150
149
|
"@atlaskit/editor-test-helpers": "^17.1.0",
|
|
151
|
-
"@atlaskit/flag": "^14.
|
|
152
|
-
"@atlaskit/inline-dialog": "^13.
|
|
150
|
+
"@atlaskit/flag": "^14.7.0",
|
|
151
|
+
"@atlaskit/inline-dialog": "^13.4.0",
|
|
153
152
|
"@atlaskit/link-provider": "^1.0.0",
|
|
154
153
|
"@atlaskit/link-test-helpers": "^1.4.0",
|
|
155
|
-
"@atlaskit/lozenge": "^11.
|
|
154
|
+
"@atlaskit/lozenge": "^11.2.0",
|
|
156
155
|
"@atlaskit/media-core": "^33.0.0",
|
|
157
156
|
"@atlaskit/media-integration-test-helpers": "^2.6.0",
|
|
158
157
|
"@atlaskit/media-test-helpers": "^30.0.0",
|
|
159
158
|
"@atlaskit/menu": "^1.3.0",
|
|
160
|
-
"@atlaskit/page-layout": "^1.
|
|
161
|
-
"@atlaskit/profilecard": "^
|
|
159
|
+
"@atlaskit/page-layout": "^1.3.0",
|
|
160
|
+
"@atlaskit/profilecard": "^17.0.0",
|
|
162
161
|
"@atlaskit/pubsub": "^6.0.0",
|
|
163
|
-
"@atlaskit/renderer": "^101.
|
|
164
|
-
"@atlaskit/section-message": "^6.
|
|
162
|
+
"@atlaskit/renderer": "^101.1.0",
|
|
163
|
+
"@atlaskit/section-message": "^6.2.0",
|
|
165
164
|
"@atlaskit/share": "*",
|
|
166
165
|
"@atlaskit/smart-user-picker": "^6.0.0",
|
|
167
166
|
"@atlaskit/synchrony-test-helpers": "^2.3.0",
|
|
168
167
|
"@atlaskit/textarea": "^4.3.0",
|
|
169
|
-
"@atlaskit/toggle": "^12.
|
|
168
|
+
"@atlaskit/toggle": "^12.5.0",
|
|
170
169
|
"@atlaskit/ufo": "^0.1.0",
|
|
171
170
|
"@atlaskit/util-data-test": "^17.5.0",
|
|
172
171
|
"@atlaskit/visual-regression": "*",
|
|
@@ -176,17 +175,16 @@
|
|
|
176
175
|
"@atlassian/search-provider": "2.3.3",
|
|
177
176
|
"@atlassian/ufo": "^0.1.0",
|
|
178
177
|
"@emotion/jest": "^11.8.0",
|
|
179
|
-
"@testing-library/dom": "^
|
|
180
|
-
"@testing-library/react": "^
|
|
181
|
-
"@testing-library/react-hooks": "^1.0
|
|
182
|
-
"@testing-library/user-event": "
|
|
178
|
+
"@testing-library/dom": "^8.17.1",
|
|
179
|
+
"@testing-library/react": "^12.1.5",
|
|
180
|
+
"@testing-library/react-hooks": "^1.1.0",
|
|
181
|
+
"@testing-library/user-event": "^13.5.0",
|
|
183
182
|
"@types/diff": "^5.0.2",
|
|
184
183
|
"@types/jscodeshift": "^0.11.0",
|
|
185
184
|
"@types/lodash": "^4.14.157",
|
|
186
185
|
"@types/lz-string": "^1.3.34",
|
|
187
186
|
"@types/prettier": "^2.1.0",
|
|
188
187
|
"@types/raf-schd": "^4.0.1",
|
|
189
|
-
"@types/react-window": "^1.8.3",
|
|
190
188
|
"@types/rison": "^0.0.6",
|
|
191
189
|
"async-retry": "^1.2.3",
|
|
192
190
|
"diff": "^4.0.1",
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.UpdateListItemHeightContext = exports.SelectedIndexContext = exports.ListItemActionsContext = exports.DynamicHeightListItem = void 0;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
|
-
var _TypeAheadListItem = require("./TypeAheadListItem");
|
|
13
|
-
|
|
14
|
-
var _useResizeObserver = require("./hooks/use-resize-observer");
|
|
15
|
-
|
|
16
|
-
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); }
|
|
17
|
-
|
|
18
|
-
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; }
|
|
19
|
-
|
|
20
|
-
var noop = function noop() {};
|
|
21
|
-
|
|
22
|
-
var SelectedIndexContext = /*#__PURE__*/_react.default.createContext(0);
|
|
23
|
-
|
|
24
|
-
exports.SelectedIndexContext = SelectedIndexContext;
|
|
25
|
-
|
|
26
|
-
var ListItemActionsContext = /*#__PURE__*/_react.default.createContext({
|
|
27
|
-
onItemClick: noop,
|
|
28
|
-
onItemHover: noop
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
exports.ListItemActionsContext = ListItemActionsContext;
|
|
32
|
-
|
|
33
|
-
var UpdateListItemHeightContext = /*#__PURE__*/_react.default.createContext(noop);
|
|
34
|
-
|
|
35
|
-
exports.UpdateListItemHeightContext = UpdateListItemHeightContext;
|
|
36
|
-
|
|
37
|
-
var DynamicHeightListItem = function DynamicHeightListItem(_ref) {
|
|
38
|
-
var index = _ref.index,
|
|
39
|
-
data = _ref.data,
|
|
40
|
-
style = _ref.style;
|
|
41
|
-
var item = data[index];
|
|
42
|
-
var selectedIndex = (0, _react.useContext)(SelectedIndexContext);
|
|
43
|
-
|
|
44
|
-
var _useContext = (0, _react.useContext)(ListItemActionsContext),
|
|
45
|
-
onItemClick = _useContext.onItemClick,
|
|
46
|
-
onItemHover = _useContext.onItemHover;
|
|
47
|
-
|
|
48
|
-
var updateItemHeight = (0, _react.useContext)(UpdateListItemHeightContext);
|
|
49
|
-
var innerDivRef = (0, _react.useRef)(document.createElement('div'));
|
|
50
|
-
var onResize = (0, _react.useCallback)(function (entry) {
|
|
51
|
-
if (typeof updateItemHeight !== 'function') {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
updateItemHeight({
|
|
56
|
-
index: index,
|
|
57
|
-
height: entry.contentRect.height
|
|
58
|
-
});
|
|
59
|
-
}, [updateItemHeight, index]);
|
|
60
|
-
(0, _useResizeObserver.useResizeObserver)(innerDivRef, onResize);
|
|
61
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
62
|
-
style: style,
|
|
63
|
-
"data-index": index
|
|
64
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
65
|
-
ref: innerDivRef,
|
|
66
|
-
"data-testid": "list-item-height-observed-".concat(index)
|
|
67
|
-
}, /*#__PURE__*/_react.default.createElement(_TypeAheadListItem.TypeAheadListItem, {
|
|
68
|
-
key: item.title,
|
|
69
|
-
item: item,
|
|
70
|
-
itemIndex: index,
|
|
71
|
-
selectedIndex: selectedIndex,
|
|
72
|
-
onItemClick: onItemClick,
|
|
73
|
-
onItemHover: onItemHover
|
|
74
|
-
})));
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
exports.DynamicHeightListItem = DynamicHeightListItem;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.useDynamicListHeightCalculation = exports.calcVisibleListHeight = void 0;
|
|
9
|
-
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
-
|
|
12
|
-
var _react = require("react");
|
|
13
|
-
|
|
14
|
-
var _throttle = _interopRequireDefault(require("lodash/throttle"));
|
|
15
|
-
|
|
16
|
-
var calcVisibleListHeight = function calcVisibleListHeight(_ref) {
|
|
17
|
-
var startIndex = _ref.startIndex,
|
|
18
|
-
indexHeightMap = _ref.indexHeightMap,
|
|
19
|
-
limit = _ref.limit,
|
|
20
|
-
listMaxHeight = _ref.listMaxHeight,
|
|
21
|
-
listItemEstimatedHeight = _ref.listItemEstimatedHeight;
|
|
22
|
-
var hasSpace = true;
|
|
23
|
-
var totalHeight = 0;
|
|
24
|
-
var i = startIndex;
|
|
25
|
-
|
|
26
|
-
while (hasSpace && i < limit) {
|
|
27
|
-
var nextHeight = indexHeightMap[i] || listItemEstimatedHeight;
|
|
28
|
-
|
|
29
|
-
if (totalHeight < listMaxHeight) {
|
|
30
|
-
totalHeight += nextHeight;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
i++;
|
|
34
|
-
hasSpace = totalHeight <= listMaxHeight;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
return totalHeight;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
exports.calcVisibleListHeight = calcVisibleListHeight;
|
|
41
|
-
|
|
42
|
-
var useDynamicListHeightCalculation = function useDynamicListHeightCalculation(_ref2) {
|
|
43
|
-
var redrawListAtIndex = _ref2.redrawListAtIndex,
|
|
44
|
-
getFirstVisibleIndex = _ref2.getFirstVisibleIndex,
|
|
45
|
-
listLength = _ref2.listLength,
|
|
46
|
-
listMaxHeight = _ref2.listMaxHeight,
|
|
47
|
-
listItemEstimatedHeight = _ref2.listItemEstimatedHeight;
|
|
48
|
-
|
|
49
|
-
var _useState = (0, _react.useState)(null),
|
|
50
|
-
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
51
|
-
renderedListHeight = _useState2[0],
|
|
52
|
-
setRenderedListHeight = _useState2[1];
|
|
53
|
-
|
|
54
|
-
var indexHeightMap = (0, _react.useRef)([]);
|
|
55
|
-
var resetScreenThrottled = (0, _react.useMemo)(function () {
|
|
56
|
-
return (0, _throttle.default)(function () {
|
|
57
|
-
requestAnimationFrame(function () {
|
|
58
|
-
var startIndex = getFirstVisibleIndex();
|
|
59
|
-
var lastItemRenderer = indexHeightMap.current[startIndex];
|
|
60
|
-
|
|
61
|
-
if (!lastItemRenderer) {
|
|
62
|
-
return;
|
|
63
|
-
} // This is an expensive method
|
|
64
|
-
// So, we are calling it only
|
|
65
|
-
// for the last top one visible
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
redrawListAtIndex(startIndex);
|
|
69
|
-
var nextListHeight = calcVisibleListHeight({
|
|
70
|
-
startIndex: startIndex,
|
|
71
|
-
limit: listLength,
|
|
72
|
-
indexHeightMap: indexHeightMap.current,
|
|
73
|
-
listMaxHeight: listMaxHeight,
|
|
74
|
-
listItemEstimatedHeight: listItemEstimatedHeight
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
if (nextListHeight) {
|
|
78
|
-
setRenderedListHeight(nextListHeight);
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}, 16 // wait for one frame
|
|
82
|
-
);
|
|
83
|
-
}, [redrawListAtIndex, listLength, listMaxHeight, listItemEstimatedHeight, getFirstVisibleIndex]);
|
|
84
|
-
var setListItemHeight = (0, _react.useCallback)(function (_ref3) {
|
|
85
|
-
var index = _ref3.index,
|
|
86
|
-
height = _ref3.height;
|
|
87
|
-
|
|
88
|
-
if (typeof height !== 'number') {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
indexHeightMap.current[index] = height;
|
|
93
|
-
resetScreenThrottled();
|
|
94
|
-
}, [resetScreenThrottled]);
|
|
95
|
-
var getListItemHeight = (0, _react.useCallback)(function (index) {
|
|
96
|
-
var result = indexHeightMap.current[index];
|
|
97
|
-
|
|
98
|
-
if (result && typeof result === 'number') {
|
|
99
|
-
return result;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return listItemEstimatedHeight;
|
|
103
|
-
}, [listItemEstimatedHeight]);
|
|
104
|
-
(0, _react.useLayoutEffect)(function () {
|
|
105
|
-
indexHeightMap.current = [];
|
|
106
|
-
return function () {
|
|
107
|
-
indexHeightMap.current = [];
|
|
108
|
-
};
|
|
109
|
-
}, [listLength]); // eslint-disable-line react-hooks/exhaustive-deps
|
|
110
|
-
|
|
111
|
-
return {
|
|
112
|
-
getListItemHeight: getListItemHeight,
|
|
113
|
-
setListItemHeight: setListItemHeight,
|
|
114
|
-
renderedListHeight: renderedListHeight
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
|
|
118
|
-
exports.useDynamicListHeightCalculation = useDynamicListHeightCalculation;
|