@atlaskit/editor-core 183.0.0 → 183.0.8
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 +13 -0
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +7 -2
- package/dist/cjs/plugins/placeholder-text/styles.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +5 -1
- package/dist/es2019/plugins/placeholder-text/styles.js +5 -5
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +7 -2
- package/dist/esm/plugins/placeholder-text/styles.js +2 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/analytics-api/api.d.ts +1 -1
- package/dist/types/analytics-api/attach-payload-into-transaction.d.ts +1 -1
- package/dist/types/commands/index.d.ts +3 -3
- package/dist/types/create-editor/ErrorBoundary.d.ts +3 -3
- package/dist/types/create-editor/ReactEditorViewInternal.d.ts +1 -1
- package/dist/types/create-editor/get-plugins.d.ts +4 -4
- package/dist/types/editor-next/hooks/useProviderFactory.d.ts +1 -1
- package/dist/types/editor-next/utils/editorPropTypes.d.ts +1 -1
- package/dist/types/editor-next/utils/getProvidersFromEditorProps.d.ts +3 -3
- package/dist/types/editor.d.ts +2 -2
- package/dist/types/i18n/cs.d.ts +6 -6
- package/dist/types/i18n/da.d.ts +6 -6
- package/dist/types/i18n/de.d.ts +6 -6
- package/dist/types/i18n/en.d.ts +6 -6
- package/dist/types/i18n/en_GB.d.ts +6 -6
- package/dist/types/i18n/en_ZZ.d.ts +6 -6
- package/dist/types/i18n/es.d.ts +6 -6
- package/dist/types/i18n/et.d.ts +6 -6
- package/dist/types/i18n/fi.d.ts +6 -6
- package/dist/types/i18n/fr.d.ts +6 -6
- package/dist/types/i18n/hu.d.ts +6 -6
- package/dist/types/i18n/is.d.ts +6 -6
- package/dist/types/i18n/it.d.ts +6 -6
- package/dist/types/i18n/ja.d.ts +6 -6
- package/dist/types/i18n/ko.d.ts +6 -6
- package/dist/types/i18n/languages.d.ts +6 -6
- package/dist/types/i18n/nb.d.ts +6 -6
- package/dist/types/i18n/nl.d.ts +6 -6
- package/dist/types/i18n/pl.d.ts +6 -6
- package/dist/types/i18n/pt_BR.d.ts +6 -6
- package/dist/types/i18n/pt_PT.d.ts +6 -6
- package/dist/types/i18n/ro.d.ts +6 -6
- package/dist/types/i18n/ru.d.ts +6 -6
- package/dist/types/i18n/sk.d.ts +6 -6
- package/dist/types/i18n/sv.d.ts +6 -6
- package/dist/types/i18n/th.d.ts +6 -6
- package/dist/types/i18n/tr.d.ts +6 -6
- package/dist/types/i18n/uk.d.ts +6 -6
- package/dist/types/i18n/vi.d.ts +6 -6
- package/dist/types/i18n/zh.d.ts +6 -6
- package/dist/types/i18n/zh_TW.d.ts +6 -6
- package/dist/types/insert-api/api.d.ts +1 -1
- package/dist/types/insert-api/insert-content-handlers.d.ts +1 -1
- package/dist/types/insert-api/insert-node-helpers.d.ts +4 -4
- package/dist/types/insert-api/types.d.ts +3 -3
- package/dist/types/labs/CollapsedEditor/index.d.ts +1 -1
- package/dist/types/labs/next/ContentComponents.d.ts +1 -1
- package/dist/types/labs/next/full-page.d.ts +1 -1
- package/dist/types/labs/next/internal/context/shared-config.d.ts +1 -1
- package/dist/types/labs/next/internal/editor-props-type.d.ts +2 -2
- package/dist/types/labs/next/internal/hooks/use-editor/create-editor.d.ts +1 -1
- package/dist/types/labs/next/presets/cxhtml.d.ts +1 -1
- package/dist/types/labs/next/presets/default.d.ts +1 -1
- package/dist/types/labs/next/presets/mobile.d.ts +2 -2
- package/dist/types/labs/next/presets/universal.d.ts +1 -1
- package/dist/types/nodeviews/SelectionBasedNodeView.d.ts +2 -2
- package/dist/types/nodeviews/getInlineNodeViewProducer.d.ts +4 -4
- package/dist/types/nodeviews/types.d.ts +6 -6
- package/dist/types/plugins/alignment/commands/index.d.ts +2 -2
- package/dist/types/plugins/alignment/pm-plugins/types.d.ts +2 -2
- package/dist/types/plugins/alignment/ui/ToolbarAlignment/icon-map.d.ts +1 -1
- package/dist/types/plugins/analytics/utils.d.ts +1 -1
- package/dist/types/plugins/annotation/commands/index.d.ts +1 -1
- package/dist/types/plugins/annotation/pm-plugins/types.d.ts +3 -3
- package/dist/types/plugins/annotation/types.d.ts +6 -6
- package/dist/types/plugins/annotation/ui/AnnotationViewWrapper.d.ts +1 -1
- package/dist/types/plugins/annotation/update-provider.d.ts +2 -2
- package/dist/types/plugins/avatar-group/index.d.ts +1 -1
- package/dist/types/plugins/base/pm-plugins/context-identifier.d.ts +2 -2
- package/dist/types/plugins/base/pm-plugins/decoration.d.ts +1 -1
- package/dist/types/plugins/base/pm-plugins/frozen-editor.d.ts +1 -1
- package/dist/types/plugins/base/pm-plugins/react-nodeview.d.ts +1 -1
- package/dist/types/plugins/base/pm-plugins/scroll-gutter.d.ts +1 -1
- package/dist/types/plugins/before-primaryToolbar/index.d.ts +1 -1
- package/dist/types/plugins/block-type/commands/block-type.d.ts +1 -1
- package/dist/types/plugins/block-type/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/block-type/types.d.ts +4 -4
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/index.d.ts +1 -1
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/styled.d.ts +1 -1
- package/dist/types/plugins/block-type/utils.d.ts +1 -1
- package/dist/types/plugins/breakout/commands/set-breakout-mode.d.ts +1 -1
- package/dist/types/plugins/card/nodeviews/blockCard.d.ts +1 -1
- package/dist/types/plugins/card/nodeviews/embedCard.d.ts +2 -2
- package/dist/types/plugins/card/nodeviews/genericCard.d.ts +1 -1
- package/dist/types/plugins/card/nodeviews/inlineCard.d.ts +1 -1
- package/dist/types/plugins/card/pm-plugins/analytics/types.d.ts +1 -1
- package/dist/types/plugins/card/pm-plugins/doc.d.ts +4 -4
- package/dist/types/plugins/card/toolbar.d.ts +2 -1
- package/dist/types/plugins/card/types.d.ts +19 -19
- package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +1 -1
- package/dist/types/plugins/card/ui/EditorSmartCardEventsNext.d.ts +1 -1
- package/dist/types/plugins/card/ui/LinkToolbarAppearance.d.ts +1 -1
- package/dist/types/plugins/card/ui/ResizableEmbedCard.d.ts +3 -3
- package/dist/types/plugins/card/utils.d.ts +4 -4
- package/dist/types/plugins/code-bidi-warning/index.d.ts +1 -1
- package/dist/types/plugins/code-bidi-warning/pm-plugins/types.d.ts +1 -1
- package/dist/types/plugins/code-block/ide-ux/bracket-handling.d.ts +1 -1
- package/dist/types/plugins/code-block/ide-ux/quote-handling.d.ts +1 -1
- package/dist/types/plugins/code-block/language-list.d.ts +1 -1
- package/dist/types/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.d.ts +1 -1
- package/dist/types/plugins/code-block/pm-plugins/main-state.d.ts +1 -1
- package/dist/types/plugins/code-block/utils.d.ts +1 -1
- package/dist/types/plugins/collab-edit/actions.d.ts +2 -2
- package/dist/types/plugins/collab-edit/analytics.d.ts +1 -1
- package/dist/types/plugins/collab-edit/events/handlers.d.ts +2 -2
- package/dist/types/plugins/collab-edit/events/initialize.d.ts +1 -1
- package/dist/types/plugins/collab-edit/events/send-transaction.d.ts +1 -1
- package/dist/types/plugins/collab-edit/types.d.ts +6 -6
- package/dist/types/plugins/collab-edit/ui/avatars-with-plugin-state.d.ts +1 -1
- package/dist/types/plugins/collab-edit/utils.d.ts +1 -1
- package/dist/types/plugins/context-panel/index.d.ts +1 -1
- package/dist/types/plugins/copy-button/commands.d.ts +1 -1
- package/dist/types/plugins/copy-button/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/copy-button/toolbar.d.ts +1 -1
- package/dist/types/plugins/custom-autoformat/input-rules.d.ts +2 -2
- package/dist/types/plugins/custom-autoformat/reducers.d.ts +1 -1
- package/dist/types/plugins/custom-autoformat/types.d.ts +7 -7
- package/dist/types/plugins/date/actions.d.ts +2 -2
- package/dist/types/plugins/date/pm-plugins/types.d.ts +2 -2
- package/dist/types/plugins/date/types.d.ts +2 -2
- package/dist/types/plugins/editor-disabled/index.d.ts +1 -1
- package/dist/types/plugins/emoji/index.d.ts +2 -2
- package/dist/types/plugins/emoji/nodeviews/emoji.d.ts +1 -1
- package/dist/types/plugins/emoji/types.d.ts +1 -1
- package/dist/types/plugins/expand/commands.d.ts +1 -1
- package/dist/types/plugins/expand/types.d.ts +1 -1
- package/dist/types/plugins/extension/actions.d.ts +3 -3
- package/dist/types/plugins/extension/commands.d.ts +1 -1
- package/dist/types/plugins/extension/context-panel.d.ts +1 -1
- package/dist/types/plugins/extension/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/extension/types.d.ts +2 -2
- package/dist/types/plugins/extension/ui/Extension/ExtensionNodeWrapper.d.ts +1 -1
- package/dist/types/plugins/extension/utils.d.ts +1 -1
- package/dist/types/plugins/feedback-dialog/index.d.ts +1 -1
- package/dist/types/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +1 -1
- package/dist/types/plugins/find-replace/actions.d.ts +1 -1
- package/dist/types/plugins/find-replace/commands.d.ts +1 -1
- package/dist/types/plugins/find-replace/index.d.ts +1 -1
- package/dist/types/plugins/find-replace/types.d.ts +4 -4
- package/dist/types/plugins/find-replace/ui/Find.d.ts +1 -1
- package/dist/types/plugins/find-replace/ui/FindReplace.d.ts +1 -1
- package/dist/types/plugins/find-replace/ui/Replace.d.ts +2 -2
- package/dist/types/plugins/find-replace/utils/index.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/index.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/types.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/utils.d.ts +2 -2
- package/dist/types/plugins/grid/index.d.ts +1 -1
- package/dist/types/plugins/grid/types.d.ts +2 -2
- package/dist/types/plugins/help-dialog/commands.d.ts +1 -1
- package/dist/types/plugins/help-dialog/ui/index.d.ts +1 -1
- package/dist/types/plugins/hyperlink/commands.d.ts +2 -2
- package/dist/types/plugins/hyperlink/pm-plugins/main.d.ts +5 -5
- package/dist/types/plugins/hyperlink/types.d.ts +1 -1
- package/dist/types/plugins/hyperlink/ui/EditorLinkPicker/index.d.ts +1 -1
- package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +2 -2
- package/dist/types/plugins/image-upload/types.d.ts +2 -2
- package/dist/types/plugins/indentation/commands/utils.d.ts +4 -4
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +1 -1
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/shallow-equals.d.ts +1 -1
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +1 -1
- package/dist/types/plugins/layout/pm-plugins/types.d.ts +2 -2
- package/dist/types/plugins/layout/types.d.ts +1 -1
- package/dist/types/plugins/list/actions/join-list-items-forward.d.ts +3 -3
- package/dist/types/plugins/list/actions/join-list-items-scenarios/join-list-item-with-paragraph.d.ts +1 -1
- package/dist/types/plugins/list/actions/join-list-items-scenarios/join-list-item-with-parent-nested-list.d.ts +1 -1
- package/dist/types/plugins/list/actions/join-list-items-scenarios/join-nested-list-with-parent-list-item.d.ts +1 -1
- package/dist/types/plugins/list/actions/join-list-items-scenarios/join-paragraph-with-list.d.ts +1 -1
- package/dist/types/plugins/list/actions/join-list-items-scenarios/join-sibling-list-items.d.ts +1 -1
- package/dist/types/plugins/list/actions/merge-lists.d.ts +1 -1
- package/dist/types/plugins/list/commands/indent-list.d.ts +1 -1
- package/dist/types/plugins/list/commands/index.d.ts +1 -1
- package/dist/types/plugins/list/commands/listBackspace.d.ts +1 -1
- package/dist/types/plugins/list/commands/outdent-list.d.ts +1 -1
- package/dist/types/plugins/list/pm-plugins/input-rules/create-list-input-rule.d.ts +1 -1
- package/dist/types/plugins/list/pm-plugins/input-rules/wrapping-join-rule.d.ts +1 -1
- package/dist/types/plugins/list/types.d.ts +1 -1
- package/dist/types/plugins/list/utils/node.d.ts +2 -2
- package/dist/types/plugins/list/utils/replace-content.d.ts +1 -1
- package/dist/types/plugins/list/utils/selection.d.ts +2 -2
- package/dist/types/plugins/macro/actions.d.ts +2 -2
- package/dist/types/plugins/macro/types.d.ts +1 -1
- package/dist/types/plugins/max-content-size/index.d.ts +1 -1
- package/dist/types/plugins/media/commands/linking.d.ts +1 -1
- package/dist/types/plugins/media/media-plugin-options.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/mediaGroup.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/mediaInline.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/mediaNodeUpdater.d.ts +3 -3
- package/dist/types/plugins/media/nodeviews/mediaNodeView/index.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/styles.d.ts +1 -1
- package/dist/types/plugins/media/picker-facade.d.ts +7 -7
- package/dist/types/plugins/media/pm-plugins/alt-text/actions.d.ts +4 -4
- package/dist/types/plugins/media/pm-plugins/alt-text/types.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.d.ts +2 -2
- package/dist/types/plugins/media/pm-plugins/linking/actions.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/linking/types.d.ts +2 -2
- package/dist/types/plugins/media/pm-plugins/main.d.ts +4 -4
- package/dist/types/plugins/media/pm-plugins/mediaTaskManager.d.ts +2 -2
- package/dist/types/plugins/media/toolbar/alt-text.d.ts +2 -2
- package/dist/types/plugins/media/toolbar/linking.d.ts +1 -1
- package/dist/types/plugins/media/types.d.ts +6 -6
- package/dist/types/plugins/media/ui/ImageBorder/styles.d.ts +1 -1
- package/dist/types/plugins/media/ui/Media/DropPlaceholder.d.ts +1 -1
- package/dist/types/plugins/media/ui/MediaLinkingToolbar.d.ts +1 -1
- package/dist/types/plugins/media/ui/MediaPicker/BrowserWrapper.d.ts +1 -1
- package/dist/types/plugins/media/ui/MediaPicker/ClipboardWrapper.d.ts +1 -1
- package/dist/types/plugins/media/ui/MediaPicker/DropzoneWrapper.d.ts +1 -1
- package/dist/types/plugins/media/ui/MediaPicker/PickerFacadeProvider.d.ts +2 -2
- package/dist/types/plugins/media/ui/MediaPicker/index.d.ts +2 -2
- package/dist/types/plugins/media/ui/ResizableMediaSingle/index.d.ts +2 -2
- package/dist/types/plugins/media/ui/ResizableMediaSingle/types.d.ts +2 -2
- package/dist/types/plugins/media/utils/is-image.d.ts +1 -1
- package/dist/types/plugins/media/utils/media-common.d.ts +1 -1
- package/dist/types/plugins/media/utils/media-files.d.ts +2 -2
- package/dist/types/plugins/media/utils/media-single.d.ts +3 -3
- package/dist/types/plugins/mentions/analytics.d.ts +5 -5
- package/dist/types/plugins/mentions/nodeviews/mention.d.ts +1 -1
- package/dist/types/plugins/mentions/type-ahead/index.d.ts +1 -1
- package/dist/types/plugins/mentions/types.d.ts +2 -2
- package/dist/types/plugins/mobile-dimensions/actions.d.ts +1 -1
- package/dist/types/plugins/mobile-dimensions/types.d.ts +1 -1
- package/dist/types/plugins/mobile-selection/types.d.ts +1 -1
- package/dist/types/plugins/panel/actions.d.ts +1 -1
- package/dist/types/plugins/panel/nodeviews/panel.d.ts +1 -1
- package/dist/types/plugins/panel/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/panel/toolbar.d.ts +1 -1
- package/dist/types/plugins/panel/types.d.ts +2 -2
- package/dist/types/plugins/panel/utils.d.ts +1 -1
- package/dist/types/plugins/paste/actions.d.ts +1 -1
- package/dist/types/plugins/paste/index.d.ts +1 -1
- package/dist/types/plugins/paste/pm-plugins/analytics.d.ts +2 -2
- package/dist/types/plugins/paste/util/index.d.ts +1 -1
- package/dist/types/plugins/placeholder-text/placeholder-text-nodeview.d.ts +1 -1
- package/dist/types/plugins/quick-insert/api.d.ts +1 -1
- package/dist/types/plugins/quick-insert/assets/index.d.ts +1 -1
- package/dist/types/plugins/quick-insert/index.d.ts +1 -1
- package/dist/types/plugins/quick-insert/search.d.ts +2 -2
- package/dist/types/plugins/quick-insert/types.d.ts +4 -4
- package/dist/types/plugins/quick-insert/ui/ModalElementBrowser/index.d.ts +1 -1
- package/dist/types/plugins/save-on-enter/index.d.ts +1 -1
- package/dist/types/plugins/selection/actions.d.ts +1 -1
- package/dist/types/plugins/selection/commands.d.ts +1 -1
- package/dist/types/plugins/selection/gap-cursor/actions.d.ts +2 -2
- package/dist/types/plugins/selection/utils.d.ts +2 -2
- package/dist/types/plugins/status/actions.d.ts +2 -2
- package/dist/types/plugins/status/analytics.d.ts +1 -1
- package/dist/types/plugins/status/nodeviews/status.d.ts +1 -1
- package/dist/types/plugins/status/plugin.d.ts +1 -1
- package/dist/types/plugins/status/types.d.ts +2 -2
- package/dist/types/plugins/submit-editor/index.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/commands.d.ts +3 -3
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/helpers.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/keymaps.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/types.d.ts +4 -4
- package/dist/types/plugins/text-color/index.d.ts +1 -1
- package/dist/types/plugins/text-color/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/text-formatting/commands/text-formatting.d.ts +2 -2
- package/dist/types/plugins/text-formatting/ui/Toolbar/dropdown-menu.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/hooks/responsive-toolbar-buttons.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/index.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/more-button.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/types.d.ts +2 -2
- package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +1 -1
- package/dist/types/plugins/toolbar-lists-indentation/types.d.ts +1 -1
- package/dist/types/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.d.ts +1 -1
- package/dist/types/plugins/type-ahead/api.d.ts +2 -2
- package/dist/types/plugins/type-ahead/commands/insert-type-ahead-item.d.ts +1 -1
- package/dist/types/plugins/type-ahead/index.d.ts +1 -1
- package/dist/types/plugins/type-ahead/insert-utils.d.ts +1 -1
- package/dist/types/plugins/type-ahead/pm-plugins/decorations.d.ts +2 -2
- package/dist/types/plugins/type-ahead/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/type-ahead/pm-plugins/reducer.d.ts +1 -1
- package/dist/types/plugins/type-ahead/transforms/open-typeahead-at-cursor.d.ts +1 -1
- package/dist/types/plugins/type-ahead/types.d.ts +14 -14
- package/dist/types/plugins/type-ahead/ui/AssistiveText.d.ts +3 -3
- package/dist/types/plugins/type-ahead/ui/InputQuery.d.ts +1 -1
- package/dist/types/plugins/type-ahead/ui/TypeAheadListItem.d.ts +1 -1
- package/dist/types/plugins/type-ahead/ui/TypeAheadPopup.d.ts +1 -1
- package/dist/types/plugins/type-ahead/ui/WrapperTypeAhead.d.ts +1 -1
- package/dist/types/plugins/type-ahead/ui/hooks/use-on-force-select.d.ts +1 -1
- package/dist/types/plugins/type-ahead/utils.d.ts +3 -3
- package/dist/types/plugins/undo-redo/attach-input-meta.d.ts +1 -1
- package/dist/types/plugins/unsupported-content/unsupported-inline-node-view.d.ts +1 -1
- package/dist/types/plugins/view-update-subscription/index.d.ts +2 -2
- package/dist/types/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +2 -2
- package/dist/types/plugins/view-update-subscription/subscribe/type-ahead-updates.d.ts +2 -2
- package/dist/types/plugins/width/index.d.ts +1 -1
- package/dist/types/selection-api/api.d.ts +1 -1
- package/dist/types/test-utils.d.ts +1 -1
- package/dist/types/types/allowed-block-types.d.ts +1 -1
- package/dist/types/types/command.d.ts +3 -3
- package/dist/types/types/dom-at-pos.d.ts +1 -1
- package/dist/types/types/editor-config.d.ts +1 -1
- package/dist/types/types/editor-onchange.d.ts +1 -1
- package/dist/types/types/editor-props.d.ts +8 -8
- package/dist/types/types/get-editor-props.d.ts +2 -2
- package/dist/types/types/performance-tracking.d.ts +13 -13
- package/dist/types/types/pm-plugin-list.d.ts +1 -1
- package/dist/types/ui/Addon/types.d.ts +1 -1
- package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +1 -1
- package/dist/types/ui/AppearanceComponents/Mobile.d.ts +1 -1
- package/dist/types/ui/CollapsedEditor/index.d.ts +1 -1
- package/dist/types/ui/ColorPickerButton/index.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ConfigPanelFieldsLoader.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/Fields/Fieldset.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/types.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/utils.d.ts +2 -2
- package/dist/types/ui/ContentStyles/index.d.ts +3 -3
- package/dist/types/ui/ContextPanel/context.d.ts +2 -2
- package/dist/types/ui/ContextPanel/index.d.ts +4 -4
- package/dist/types/ui/Dropdown/index.d.ts +1 -1
- package/dist/types/ui/EditorContext/index.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/ElementBrowser.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/components/ElementList/ElementList.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/components/ElementList/EmptyState.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/components/ElementList/utils.d.ts +2 -2
- package/dist/types/ui/ElementBrowser/components/StatelessElementBrowser.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/hooks/use-container-width.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/hooks/use-focus.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/hooks/use-select-and-focus-on-arrow-navigation.d.ts +3 -3
- package/dist/types/ui/ElementBrowser/types.d.ts +5 -5
- package/dist/types/ui/ErrorBoundary/index.d.ts +1 -1
- package/dist/types/ui/FloatingToolbar/index.d.ts +1 -1
- package/dist/types/ui/FloatingToolbar/styles.d.ts +1 -1
- package/dist/types/ui/FloatingToolbar/utils.d.ts +1 -1
- package/dist/types/ui/LinkSearch/transformTimeStamp.d.ts +1 -1
- package/dist/types/ui/LinkSearch/types.d.ts +2 -2
- package/dist/types/ui/MediaAndEmbedsToolbar/index.d.ts +1 -1
- package/dist/types/ui/PluginSlot/index.d.ts +2 -2
- package/dist/types/ui/PortalProvider/index.d.ts +5 -5
- package/dist/types/ui/Resizer/index.d.ts +2 -2
- package/dist/types/ui/Resizer/types.d.ts +2 -2
- package/dist/types/ui/Toolbar/toolbar-size.d.ts +2 -2
- package/dist/types/ui/Toolbar/toolbar-types.d.ts +1 -1
- package/dist/types/ui/ToolbarFeedback/index.d.ts +1 -1
- package/dist/types/utils/announcer/announcer.d.ts +1 -1
- package/dist/types/utils/cell-selection.d.ts +1 -1
- package/dist/types/utils/clipboard.d.ts +1 -1
- package/dist/types/utils/commands.d.ts +3 -3
- package/dist/types/utils/count-nodes.d.ts +2 -2
- package/dist/types/utils/document-logger.d.ts +2 -2
- package/dist/types/utils/document.d.ts +1 -1
- package/dist/types/utils/getAttrsWithChangesRecorder.d.ts +1 -1
- package/dist/types/utils/index.d.ts +2 -2
- package/dist/types/utils/input-rules.d.ts +4 -4
- package/dist/types/utils/insert.d.ts +3 -3
- package/dist/types/utils/linking-utils.d.ts +1 -1
- package/dist/types/utils/mark.d.ts +4 -4
- package/dist/types/utils/nodes-by-localIds.d.ts +1 -1
- package/dist/types/utils/performance/components/RenderTracking.d.ts +3 -3
- package/dist/types/utils/performance/instrumented-plugin.d.ts +1 -1
- package/dist/types/utils/performance/plugin-performance-report.d.ts +1 -1
- package/dist/types/utils/performance/simple-measure-to-entries.d.ts +1 -1
- package/dist/types/utils/performance/track-transactions.d.ts +1 -1
- package/dist/types/utils/prepare-extension-provider.d.ts +1 -1
- package/dist/types/utils/react-hooks/use-abortable-effect/index.d.ts +2 -2
- package/dist/types/utils/react-hooks/use-state-from-promise/index.d.ts +1 -1
- package/dist/types/utils/rich-media-utils.d.ts +1 -1
- package/editor/package.json +2 -2
- package/element-browser/package.json +2 -2
- package/extensibility/package.json +2 -2
- package/extensions/package.json +2 -2
- package/labs-next/package.json +2 -2
- package/messages/package.json +2 -2
- package/package.json +24 -15
- package/test-utils/package.json +2 -2
- package/tsconfig.json +2 -1
- package/version-wrapper/package.json +2 -2
|
@@ -9,7 +9,7 @@ import { UploadParams, MediaFile } from '@atlaskit/media-picker/types';
|
|
|
9
9
|
import { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
|
|
10
10
|
import { GetEditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
11
11
|
import { PlaceholderTextOptions } from '../../plugins/placeholder-text/types';
|
|
12
|
-
export
|
|
12
|
+
export type MediaStateStatus = 'unknown' | 'ready' | 'cancelled' | 'preview' | 'error' | 'mobile-upload-end';
|
|
13
13
|
export interface MediaOptions {
|
|
14
14
|
provider?: Providers['mediaProvider'];
|
|
15
15
|
allowMediaSingle?: boolean | MediaSingleOptions;
|
|
@@ -63,7 +63,7 @@ export interface MediaState {
|
|
|
63
63
|
publicId?: string;
|
|
64
64
|
contextId?: string;
|
|
65
65
|
}
|
|
66
|
-
export
|
|
66
|
+
export type Listener = (data: any) => void;
|
|
67
67
|
export interface CustomMediaPicker {
|
|
68
68
|
on(event: string, cb: Listener): void;
|
|
69
69
|
removeAllListeners(event: any): void;
|
|
@@ -71,25 +71,25 @@ export interface CustomMediaPicker {
|
|
|
71
71
|
destroy(): void;
|
|
72
72
|
setUploadParams(uploadParams: UploadParams): void;
|
|
73
73
|
}
|
|
74
|
-
export
|
|
74
|
+
export type MobileUploadEndEventPayload = {
|
|
75
75
|
readonly file: MediaFile & {
|
|
76
76
|
readonly collectionName?: string;
|
|
77
77
|
readonly publicId?: string;
|
|
78
78
|
};
|
|
79
79
|
};
|
|
80
|
-
export
|
|
80
|
+
export type MediaEditorState = {
|
|
81
81
|
mediaClientConfig?: MediaClientConfig;
|
|
82
82
|
editor?: {
|
|
83
83
|
pos: number;
|
|
84
84
|
identifier: FileIdentifier;
|
|
85
85
|
};
|
|
86
86
|
};
|
|
87
|
-
export
|
|
87
|
+
export type MediaToolbarBaseConfig = {
|
|
88
88
|
title: string;
|
|
89
89
|
getDomRef?: (view: EditorView) => HTMLElement | undefined;
|
|
90
90
|
nodeType: NodeType | NodeType[];
|
|
91
91
|
};
|
|
92
|
-
export
|
|
92
|
+
export type MediaFloatingToolbarOptions = {
|
|
93
93
|
providerFactory?: ProviderFactory;
|
|
94
94
|
allowResizing?: boolean;
|
|
95
95
|
allowMediaInline?: boolean;
|
|
@@ -4,7 +4,7 @@ export declare const menuItemDimensions: {
|
|
|
4
4
|
};
|
|
5
5
|
export declare const itemSpacing: number;
|
|
6
6
|
export declare const contextualMenuArrow: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const contextualMenuColorIcon: (color?: string
|
|
7
|
+
export declare const contextualMenuColorIcon: (color?: string) => import("@emotion/react").SerializedStyles;
|
|
8
8
|
export declare const contextualSubMenu: (index: number) => import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const buttonStyle: (selected: boolean) => import("@emotion/react").SerializedStyles;
|
|
10
10
|
export declare const buttonWrapperStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -4,7 +4,7 @@ import { jsx } from '@emotion/react';
|
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import { IntlShape, WrappedComponentProps } from 'react-intl-next';
|
|
6
6
|
import { RecentSearchInputTypes } from '../../../ui/LinkSearch/types';
|
|
7
|
-
export
|
|
7
|
+
export type Props = {
|
|
8
8
|
intl: IntlShape;
|
|
9
9
|
providerFactory: ProviderFactory;
|
|
10
10
|
editing: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MediaPluginState } from '../../pm-plugins/types';
|
|
3
3
|
import { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
mediaState: MediaPluginState;
|
|
6
6
|
isOpen?: boolean;
|
|
7
7
|
onBrowseFn: (browse: () => void) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MediaPluginState } from '../../pm-plugins/types';
|
|
3
3
|
import { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
mediaState: MediaPluginState;
|
|
6
6
|
featureFlags?: MediaFeatureFlags;
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { MediaPluginState } from '../../pm-plugins/types';
|
|
3
3
|
import { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
4
4
|
import { EditorAppearance } from '../../../../types/editor-appearance';
|
|
5
|
-
|
|
5
|
+
type Props = {
|
|
6
6
|
mediaState: MediaPluginState;
|
|
7
7
|
isActive: boolean;
|
|
8
8
|
featureFlags?: MediaFeatureFlags;
|
|
@@ -8,12 +8,12 @@ export interface ChildrenProps {
|
|
|
8
8
|
mediaClientConfig: MediaClientConfig;
|
|
9
9
|
pickerFacadeInstance: PickerFacade;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
11
|
+
export type Props = {
|
|
12
12
|
mediaState: MediaPluginState;
|
|
13
13
|
analyticsName: string;
|
|
14
14
|
children: (props: ChildrenProps) => React.ReactNode;
|
|
15
15
|
};
|
|
16
|
-
|
|
16
|
+
type State = {
|
|
17
17
|
config?: ClipboardConfig | BrowserConfig | DropzoneConfig;
|
|
18
18
|
mediaClientConfig?: MediaClientConfig;
|
|
19
19
|
pickerFacadeInstance?: PickerFacade;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MediaPluginState } from '../../pm-plugins/types';
|
|
3
3
|
import { EditorAppearance } from '../../../../types/editor-appearance';
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
mediaState: MediaPluginState;
|
|
6
6
|
editorDomElement: Element;
|
|
7
7
|
appearance: EditorAppearance;
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
type State = {
|
|
10
10
|
isPopupOpened: boolean;
|
|
11
11
|
};
|
|
12
12
|
export declare class MediaPickerComponents extends React.Component<Props, State> {
|
|
@@ -4,7 +4,7 @@ import { jsx } from '@emotion/react';
|
|
|
4
4
|
import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
5
5
|
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
6
6
|
import { Props } from './types';
|
|
7
|
-
|
|
7
|
+
type State = {
|
|
8
8
|
offsetLeft: number;
|
|
9
9
|
isVideoFile: boolean;
|
|
10
10
|
resizedPctWidth?: number;
|
|
@@ -33,7 +33,7 @@ export default class ResizableMediaSingle extends React.Component<Props, State>
|
|
|
33
33
|
get gridWidth(): number;
|
|
34
34
|
calcColumnLeftOffset: () => number;
|
|
35
35
|
wrapper?: HTMLElement;
|
|
36
|
-
calcPxWidth: (useLayout?: MediaSingleLayout
|
|
36
|
+
calcPxWidth: (useLayout?: MediaSingleLayout) => number;
|
|
37
37
|
get insideInlineLike(): boolean;
|
|
38
38
|
get insideLayout(): boolean;
|
|
39
39
|
highlights: (newWidth: number, snapPoints: number[]) => string[] | number[];
|
|
@@ -6,11 +6,11 @@ import { EditorView } from 'prosemirror-view';
|
|
|
6
6
|
import { getPosHandler } from '../../../../nodeviews/types';
|
|
7
7
|
import { DispatchAnalyticsEvent } from '../../../../plugins/analytics';
|
|
8
8
|
import { ResolvedPos } from 'prosemirror-model';
|
|
9
|
-
export
|
|
9
|
+
export type EnabledHandles = {
|
|
10
10
|
left?: boolean;
|
|
11
11
|
right?: boolean;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type Props = MediaSingleProps & {
|
|
14
14
|
updateSize: (width: number | null, layout: MediaSingleLayout) => void;
|
|
15
15
|
displayGrid: (show: boolean, type: GridType, highlight?: number[] | string[]) => void;
|
|
16
16
|
getPos: getPosHandler;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const isImage: (fileType?: string
|
|
1
|
+
export declare const isImage: (fileType?: string) => boolean;
|
|
@@ -14,7 +14,7 @@ export declare const posOfPrecedingMediaGroup: (state: EditorState) => number |
|
|
|
14
14
|
* or the selection is the entire paragraph
|
|
15
15
|
*/
|
|
16
16
|
export declare const isInsidePotentialEmptyParagraph: (state: EditorState) => boolean;
|
|
17
|
-
export declare const posOfParentMediaGroup: (state: EditorState, $pos?: ResolvedPos
|
|
17
|
+
export declare const posOfParentMediaGroup: (state: EditorState, $pos?: ResolvedPos, prepend?: boolean) => number | undefined;
|
|
18
18
|
export declare const removeMediaNode: (view: EditorView, node: PMNode, getPos: ProsemirrorGetPosHandler) => void;
|
|
19
19
|
export declare const splitMediaGroup: (view: EditorView) => boolean;
|
|
20
20
|
export declare const copyOptionalAttrsFromMediaState: (mediaState: MediaState, node: PMNode) => void;
|
|
@@ -13,7 +13,7 @@ export declare const canInsertMediaInline: (state: EditorState) => boolean;
|
|
|
13
13
|
* @param mediaState Media file to be added to the editor
|
|
14
14
|
* @param collection Collection for the media to be added
|
|
15
15
|
*/
|
|
16
|
-
export declare const insertMediaInlineNode: (view: EditorView, mediaState: MediaState, collection: string, inputMethod?: InputMethodInsertMedia
|
|
16
|
+
export declare const insertMediaInlineNode: (view: EditorView, mediaState: MediaState, collection: string, inputMethod?: InputMethodInsertMedia) => boolean;
|
|
17
17
|
/**
|
|
18
18
|
* Insert a media into an existing media group
|
|
19
19
|
* or create a new media group to insert the new media.
|
|
@@ -21,7 +21,7 @@ export declare const insertMediaInlineNode: (view: EditorView, mediaState: Media
|
|
|
21
21
|
* @param mediaStates Media files to be added to the editor
|
|
22
22
|
* @param collection Collection for the media to be added
|
|
23
23
|
*/
|
|
24
|
-
export declare const insertMediaGroupNode: (view: EditorView, mediaStates: MediaState[], collection: string, inputMethod?: InputMethodInsertMedia
|
|
24
|
+
export declare const insertMediaGroupNode: (view: EditorView, mediaStates: MediaState[], collection: string, inputMethod?: InputMethodInsertMedia) => void;
|
|
25
25
|
/**
|
|
26
26
|
* Return position of media to be inserted, if it is inside a list
|
|
27
27
|
* @param content Content to be inserted
|
|
@@ -13,10 +13,10 @@ export interface MediaSingleState extends MediaState {
|
|
|
13
13
|
scaleFactor?: number;
|
|
14
14
|
contextId?: string;
|
|
15
15
|
}
|
|
16
|
-
export declare const isMediaSingle: (schema: Schema, fileMimeType?: string
|
|
16
|
+
export declare const isMediaSingle: (schema: Schema, fileMimeType?: string) => boolean;
|
|
17
17
|
export declare const insertMediaAsMediaSingle: (view: EditorView, node: PMNode, inputMethod: InputMethodInsertMedia) => boolean;
|
|
18
|
-
export declare const insertMediaSingleNode: (view: EditorView, mediaState: MediaState, inputMethod?: InputMethodInsertMedia
|
|
19
|
-
export declare const createMediaSingleNode: (schema: Schema, collection: string, alignLeftOnInsert?: boolean
|
|
18
|
+
export declare const insertMediaSingleNode: (view: EditorView, mediaState: MediaState, inputMethod?: InputMethodInsertMedia, collection?: string, alignLeftOnInsert?: boolean, newInsertionBehaviour?: boolean) => boolean;
|
|
19
|
+
export declare const createMediaSingleNode: (schema: Schema, collection: string, alignLeftOnInsert?: boolean) => (mediaState: MediaSingleState) => PMNode<Schema<any, any>>;
|
|
20
20
|
export declare function transformSliceForMedia(slice: Slice, schema: Schema): (selection: Selection) => Slice<any>;
|
|
21
21
|
export declare const calcMediaPxWidth: (opts: {
|
|
22
22
|
origWidth: number;
|
|
@@ -5,9 +5,9 @@ import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
|
5
5
|
import { TeamInfoAttrAnalytics } from './types';
|
|
6
6
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
7
7
|
export declare const buildAnalyticsPayload: (actionSubject: string, action: string, eventType: EventType, sessionId: string, otherAttributes?: {}, tags?: Array<string>) => GasPayload;
|
|
8
|
-
export declare const buildTypeAheadCancelPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, query?: string
|
|
9
|
-
export declare const buildTypeAheadInviteItemViewedPayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider
|
|
10
|
-
export declare const buildTypeAheadInviteExposurePayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider
|
|
11
|
-
export declare const buildTypeAheadInviteItemClickedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, query?: string
|
|
12
|
-
export declare const buildTypeAheadInsertedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, mention: MentionDescription, mentionList?: MentionDescription[]
|
|
8
|
+
export declare const buildTypeAheadCancelPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, query?: string) => GasPayload;
|
|
9
|
+
export declare const buildTypeAheadInviteItemViewedPayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => GasPayload;
|
|
10
|
+
export declare const buildTypeAheadInviteExposurePayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider, inviteExperimentCohort?: InviteExperimentCohort, userRole?: UserRole) => GasPayload;
|
|
11
|
+
export declare const buildTypeAheadInviteItemClickedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, query?: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => GasPayload;
|
|
12
|
+
export declare const buildTypeAheadInsertedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, mention: MentionDescription, mentionList?: MentionDescription[], query?: string, contextIdentifierProvider?: ContextIdentifierProvider) => GasPayload;
|
|
13
13
|
export declare const buildTypeAheadRenderedPayload: (duration: number, userIds: Array<string> | null, query: string, teams: TeamInfoAttrAnalytics[] | null) => GasPayload;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import { MentionPluginOptions } from '../types';
|
|
4
4
|
import { InlineNodeViewComponentProps } from '../../../nodeviews/getInlineNodeViewProducer';
|
|
5
|
-
export
|
|
5
|
+
export type Props = InlineNodeViewComponentProps & {
|
|
6
6
|
options: MentionPluginOptions | undefined;
|
|
7
7
|
providerFactory: ProviderFactory;
|
|
8
8
|
};
|
|
@@ -7,7 +7,7 @@ export declare function memoize<ResultFn extends (mention: MentionDescription) =
|
|
|
7
7
|
call: ResultFn;
|
|
8
8
|
clear(): void;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type Props = {
|
|
11
11
|
sanitizePrivateContent?: boolean;
|
|
12
12
|
mentionInsertDisplayName?: boolean;
|
|
13
13
|
HighlightComponent?: React.ComponentType;
|
|
@@ -17,9 +17,9 @@ export interface MentionPluginOptions extends MentionPluginConfig {
|
|
|
17
17
|
sanitizePrivateContent?: boolean;
|
|
18
18
|
allowZeroWidthSpaceAfter?: boolean;
|
|
19
19
|
}
|
|
20
|
-
export
|
|
20
|
+
export type MentionPluginState = {
|
|
21
21
|
mentionProvider?: MentionProvider;
|
|
22
22
|
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
23
23
|
mentions?: Array<MentionDescription>;
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export type FireElementsChannelEvent = <T extends AnalyticsEventPayload>(payload: T) => void;
|
|
@@ -20,4 +20,4 @@ export interface SetIsExpanded {
|
|
|
20
20
|
type: MobileDimensionsActionTypes.SET_IS_EXPANDED;
|
|
21
21
|
isExpanded: boolean;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type MobileDimensionsAction = SetKeyboardHeight | SetWindowHeight | SetMobilePaddingTop | SetIsExpanded;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type MobileDimensionsPluginState = {
|
|
2
2
|
/** Current height of keyboard (+ custom toolbar) in iOS app */
|
|
3
3
|
keyboardHeight: number;
|
|
4
4
|
/** Current value of window.innerHeight, on Android this changes when keyboards shows/hides */
|
|
@@ -4,7 +4,7 @@ export interface SelectionDataState {
|
|
|
4
4
|
nodeTypes: string[];
|
|
5
5
|
markTypes: string[];
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type SelectionData = AllSelectionData | NodeSelectionData | TextSelectionData | GapSelectionData | CellSelectionData;
|
|
8
8
|
export interface RectData {
|
|
9
9
|
top: number;
|
|
10
10
|
left: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
2
2
|
import { Command } from '../../types';
|
|
3
3
|
import { PanelOptions } from './pm-plugins/main';
|
|
4
|
-
export
|
|
4
|
+
export type DomAtPos = (pos: number) => {
|
|
5
5
|
node: HTMLElement;
|
|
6
6
|
offset: number;
|
|
7
7
|
};
|
|
@@ -31,5 +31,5 @@ declare class PanelNodeView {
|
|
|
31
31
|
target: Element;
|
|
32
32
|
}): boolean;
|
|
33
33
|
}
|
|
34
|
-
export declare const getPanelNodeView: (pluginOptions: PanelPluginOptions, providerFactory?: ProviderFactory
|
|
34
|
+
export declare const getPanelNodeView: (pluginOptions: PanelPluginOptions, providerFactory?: ProviderFactory) => (node: any, view: EditorView, getPos: getPosHandler) => PanelNodeView;
|
|
35
35
|
export {};
|
|
@@ -2,7 +2,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import { PanelPluginOptions } from '../types';
|
|
4
4
|
import { Dispatch } from '../../../event-dispatcher';
|
|
5
|
-
export
|
|
5
|
+
export type PanelOptions = {
|
|
6
6
|
color?: string;
|
|
7
7
|
emoji?: string;
|
|
8
8
|
emojiId?: string;
|
|
@@ -9,5 +9,5 @@ import { PanelType } from '@atlaskit/adf-schema';
|
|
|
9
9
|
export declare const panelIconMap: {
|
|
10
10
|
[key in Exclude<PanelType, PanelType.CUSTOM>]: EmojiInfo;
|
|
11
11
|
};
|
|
12
|
-
export declare const getToolbarItems: (formatMessage: IntlShape['formatMessage'], panelNodeType: NodeType, isCustomPanelEnabled: boolean, isCustomPanelEditable: boolean, providerFactory: ProviderFactory, activePanelType?: string
|
|
12
|
+
export declare const getToolbarItems: (formatMessage: IntlShape['formatMessage'], panelNodeType: NodeType, isCustomPanelEnabled: boolean, isCustomPanelEditable: boolean, providerFactory: ProviderFactory, activePanelType?: string, activePanelColor?: string, activePanelIcon?: string, state?: EditorState) => FloatingToolbarItem<Command>[];
|
|
13
13
|
export declare const getToolbarConfig: (state: EditorState, intl: IntlShape, options: PanelPluginOptions | undefined, providerFactory: ProviderFactory) => FloatingToolbarConfig | undefined;
|
|
@@ -7,7 +7,7 @@ export interface PanelPluginConfig {
|
|
|
7
7
|
allowCustomPanel?: boolean;
|
|
8
8
|
allowCustomPanelEdit?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type DomPanelAtrrs = {
|
|
11
11
|
class: string;
|
|
12
12
|
'data-panel-type': string;
|
|
13
13
|
'data-panel-color'?: string;
|
|
@@ -15,7 +15,7 @@ export declare type DomPanelAtrrs = {
|
|
|
15
15
|
'data-panel-icon-text'?: string;
|
|
16
16
|
style: string;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type EmojiInfo = {
|
|
19
19
|
shortName: string;
|
|
20
20
|
id: string;
|
|
21
21
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DOMOutputSpec } from 'prosemirror-model';
|
|
2
2
|
import { EditorState, Selection } from 'prosemirror-state';
|
|
3
3
|
import { PanelAttributes } from '@atlaskit/adf-schema';
|
|
4
|
-
export declare const findPanel: (state: EditorState, selection?: Selection<any> | null
|
|
4
|
+
export declare const findPanel: (state: EditorState, selection?: Selection<any> | null) => import("prosemirror-utils").ContentNodeWithPos | undefined;
|
|
5
5
|
export declare const panelAttrsToDom: (attrs: PanelAttributes, allowCustomPanel: boolean) => DOMOutputSpec;
|
|
@@ -12,4 +12,4 @@ export interface StopTrackingPastedMacroPositions {
|
|
|
12
12
|
type: PastePluginActionTypes.STOP_TRACKING_PASTED_MACRO_POSITIONS;
|
|
13
13
|
pastedMacroPositionKeys: string[];
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type PastePluginAction = StartTrackingPastedMacroPositions | StopTrackingPastedMacroPositions;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
3
3
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
4
|
-
export
|
|
4
|
+
export type PastePluginOptions = {
|
|
5
5
|
cardOptions?: CardOptions;
|
|
6
6
|
sanitizePrivateContent?: boolean;
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { AnalyticsEventPayload, PasteType, PasteContent } from '../../analytics'
|
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { Slice, Fragment, Schema } from 'prosemirror-model';
|
|
4
4
|
import { Command } from '../../../types';
|
|
5
|
-
|
|
5
|
+
type PasteContext = {
|
|
6
6
|
type: PasteType;
|
|
7
7
|
asPlain?: boolean;
|
|
8
8
|
/** Has the hyperlink been pasted while text is selected, making the text into a link? */
|
|
@@ -10,7 +10,7 @@ declare type PasteContext = {
|
|
|
10
10
|
/** Did this paste action split a list in half? */
|
|
11
11
|
pasteSplitList?: boolean;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type GetContentProps = {
|
|
14
14
|
schema: Schema;
|
|
15
15
|
slice: Slice;
|
|
16
16
|
};
|
|
@@ -13,6 +13,6 @@ export declare function isEmptyNode(node: PMNode | null | undefined): boolean |
|
|
|
13
13
|
export declare function isCursorSelectionAtTextStartOrEnd(selection: Selection): boolean | null | undefined;
|
|
14
14
|
export declare function isPanelNode(node: PMNode | null | undefined): boolean;
|
|
15
15
|
export declare function isSelectionInsidePanel(selection: Selection): PMNode | null;
|
|
16
|
-
export declare const htmlHasInvalidLinkTags: (html?: string
|
|
16
|
+
export declare const htmlHasInvalidLinkTags: (html?: string) => boolean;
|
|
17
17
|
export declare const removeDuplicateInvalidLinks: (html: string) => string;
|
|
18
18
|
export declare const addReplaceSelectedTableAnalytics: (state: EditorState, tr: Transaction) => Transaction;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NodeView, EditorView } from 'prosemirror-view';
|
|
2
2
|
import { Node as PMNode } from 'prosemirror-model';
|
|
3
3
|
import { getPosHandler } from '../../nodeviews';
|
|
4
|
-
|
|
4
|
+
type PmMutationRecord = MutationRecord | {
|
|
5
5
|
type: 'selection';
|
|
6
6
|
target: Element;
|
|
7
7
|
};
|
|
@@ -2,5 +2,5 @@ import { EditorView } from 'prosemirror-view';
|
|
|
2
2
|
import { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { QuickInsertPluginOptions } from './types';
|
|
4
4
|
export declare const createQuickInsertTools: (editorView: EditorView) => {
|
|
5
|
-
getItems: (query: string, options?: QuickInsertPluginOptions
|
|
5
|
+
getItems: (query: string, options?: QuickInsertPluginOptions) => QuickInsertItem[];
|
|
6
6
|
};
|
|
@@ -21,7 +21,7 @@ export declare const IconPanelWarning: React.ComponentType<IconProps> & Loadable
|
|
|
21
21
|
export declare const IconPanel: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
22
22
|
export declare const IconQuote: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
23
23
|
export declare const IconStatus: React.ComponentType<IconProps> & Loadable.LoadableComponent;
|
|
24
|
-
|
|
24
|
+
type HeadingProps = IconProps & {
|
|
25
25
|
level: HeadingLevels;
|
|
26
26
|
};
|
|
27
27
|
export declare const IconHeading: ({ level, ...props }: HeadingProps) => JSX.Element;
|
|
@@ -9,5 +9,5 @@ declare const quickInsertPlugin: NextEditorPlugin<'quickInsert', {
|
|
|
9
9
|
pluginConfiguration: QuickInsertPluginOptions | undefined;
|
|
10
10
|
}>;
|
|
11
11
|
export default quickInsertPlugin;
|
|
12
|
-
declare const processItems: (items: Array<QuickInsertHandler>, intl: IntlShape, extendedActions?: Record<string, Function>
|
|
12
|
+
declare const processItems: (items: Array<QuickInsertHandler>, intl: IntlShape, extendedActions?: Record<string, Function>) => QuickInsertItem[];
|
|
13
13
|
export declare const memoProcessItems: typeof processItems;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QuickInsertItem } from '@atlaskit/editor-common/provider-factory';
|
|
2
2
|
import { QuickInsertPluginState, QuickInsertPluginOptions } from './types';
|
|
3
3
|
export declare function find(query: string, items: QuickInsertItem[]): QuickInsertItem[];
|
|
4
|
-
export declare const searchQuickInsertItems: (quickInsertState: QuickInsertPluginState, options?: QuickInsertPluginOptions
|
|
5
|
-
export declare const getFeaturedQuickInsertItems: ({ providedItems, lazyDefaultItems }: QuickInsertPluginState, options?: QuickInsertPluginOptions
|
|
4
|
+
export declare const searchQuickInsertItems: (quickInsertState: QuickInsertPluginState, options?: QuickInsertPluginOptions) => (query?: string, category?: string) => QuickInsertItem[];
|
|
5
|
+
export declare const getFeaturedQuickInsertItems: ({ providedItems, lazyDefaultItems }: QuickInsertPluginState, options?: QuickInsertPluginOptions) => () => QuickInsertItem[];
|
|
@@ -3,18 +3,18 @@ import { QuickInsertItem, QuickInsertProvider } from '@atlaskit/editor-common/pr
|
|
|
3
3
|
export type { IconProps } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { EmptyStateHandler } from '../../types/empty-state-handler';
|
|
5
5
|
export type { QuickInsertActionInsert, QuickInsertItem, QuickInsertProvider, } from '@atlaskit/editor-common/provider-factory';
|
|
6
|
-
export
|
|
6
|
+
export type QuickInsertOptions = boolean | {
|
|
7
7
|
provider: Promise<QuickInsertProvider>;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
10
|
-
export
|
|
9
|
+
export type QuickInsertHandler = Array<QuickInsertItem> | ((intl: IntlShape) => Array<QuickInsertItem>);
|
|
10
|
+
export type QuickInsertPluginState = {
|
|
11
11
|
isElementBrowserModalOpen: boolean;
|
|
12
12
|
lazyDefaultItems: () => QuickInsertItem[];
|
|
13
13
|
providedItems?: QuickInsertItem[];
|
|
14
14
|
provider?: QuickInsertProvider;
|
|
15
15
|
emptyStateHandler?: EmptyStateHandler;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type QuickInsertPluginStateKeys = keyof QuickInsertPluginState;
|
|
18
18
|
export interface QuickInsertPluginOptions {
|
|
19
19
|
headless?: boolean;
|
|
20
20
|
disableDefaultItems?: boolean;
|
|
@@ -3,7 +3,7 @@ import { EditorView } from 'prosemirror-view';
|
|
|
3
3
|
import { Dispatch } from '../../event-dispatcher';
|
|
4
4
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
5
5
|
export declare function createPlugin(eventDispatch: Dispatch, onSave?: (editorView: EditorView) => void): SafePlugin | undefined;
|
|
6
|
-
|
|
6
|
+
type Config = (editorView: EditorView) => void;
|
|
7
7
|
declare const saveOnEnterPlugin: NextEditorPlugin<'saveOnEnter', {
|
|
8
8
|
pluginConfiguration: Config | undefined;
|
|
9
9
|
}>;
|
|
@@ -14,4 +14,4 @@ export interface SetRelativeSelection {
|
|
|
14
14
|
type: SelectionActionTypes.SET_RELATIVE_SELECTION;
|
|
15
15
|
selectionRelativeToNode?: RelativeSelectionPos;
|
|
16
16
|
}
|
|
17
|
-
export
|
|
17
|
+
export type SelectionAction = SetDecorations | SetRelativeSelection;
|
|
@@ -2,7 +2,7 @@ import { Selection } from 'prosemirror-state';
|
|
|
2
2
|
import { Node as PmNode } from 'prosemirror-model';
|
|
3
3
|
import { Command } from '../../types';
|
|
4
4
|
import { RelativeSelectionPos } from './types';
|
|
5
|
-
export declare const setSelectionRelativeToNode: (selectionRelativeToNode?: RelativeSelectionPos
|
|
5
|
+
export declare const setSelectionRelativeToNode: (selectionRelativeToNode?: RelativeSelectionPos, selection?: Selection | null) => import("@atlaskit/editor-common/types").Command;
|
|
6
6
|
export declare const arrowRight: Command;
|
|
7
7
|
export declare const arrowLeft: Command;
|
|
8
8
|
export declare const setSelectionInsideAtNodeEnd: (selectionRelativeToNode: RelativeSelectionPos, node: PmNode, from: number, to: number) => Command;
|
|
@@ -3,9 +3,9 @@ import { ResolvedPos } from 'prosemirror-model';
|
|
|
3
3
|
import { Direction } from './direction';
|
|
4
4
|
import { Side } from './selection';
|
|
5
5
|
import { Command } from '../../../types';
|
|
6
|
-
export
|
|
6
|
+
export type DirectionString = 'up' | 'down' | 'left' | 'right' | 'forward' | 'backward';
|
|
7
7
|
export declare const shouldSkipGapCursor: (direction: Direction, state: EditorState, $pos: ResolvedPos) => boolean;
|
|
8
|
-
export declare const arrow: (dir: Direction, endOfTextblock?: ((dir: DirectionString, state?: EditorState
|
|
8
|
+
export declare const arrow: (dir: Direction, endOfTextblock?: ((dir: DirectionString, state?: EditorState) => boolean) | undefined) => Command;
|
|
9
9
|
export declare const deleteNode: (dir: Direction) => Command;
|
|
10
10
|
export declare const setGapCursorAtPos: (position: number, side?: Side) => Command;
|
|
11
11
|
export declare const setSelectionTopLevelBlocks: (tr: Transaction, event: React.MouseEvent<any>, editorRef: HTMLElement, posAtCoords: (coords: {
|
|
@@ -28,8 +28,8 @@ export declare function shouldRecalcDecorations({ oldEditorState, newEditorState
|
|
|
28
28
|
oldEditorState: EditorState;
|
|
29
29
|
newEditorState: EditorState;
|
|
30
30
|
}): boolean;
|
|
31
|
-
export declare const isSelectableContainerNode: (node?: PmNode
|
|
32
|
-
export declare const isSelectableChildNode: (node?: PmNode
|
|
31
|
+
export declare const isSelectableContainerNode: (node?: PmNode | null) => boolean;
|
|
32
|
+
export declare const isSelectableChildNode: (node?: PmNode | null) => boolean;
|
|
33
33
|
/**
|
|
34
34
|
* Finds closest parent node that is a selectable block container node
|
|
35
35
|
* If it finds a parent that is not selectable but supports gap cursor, will
|
|
@@ -7,8 +7,8 @@ export declare const DEFAULT_STATUS: StatusType;
|
|
|
7
7
|
export declare const createStatus: (showStatusPickerAtOffset?: number) => (insert: (node: Node | Object | string, opts: {
|
|
8
8
|
selectInlineNode: boolean;
|
|
9
9
|
}) => Transaction, state: EditorState) => Transaction;
|
|
10
|
-
export declare const updateStatus: (status?: StatusType
|
|
11
|
-
export declare const updateStatusWithAnalytics: (inputMethod: TOOLBAR_MENU_TYPE, status?: StatusType
|
|
10
|
+
export declare const updateStatus: (status?: StatusType) => Command;
|
|
11
|
+
export declare const updateStatusWithAnalytics: (inputMethod: TOOLBAR_MENU_TYPE, status?: StatusType) => Command;
|
|
12
12
|
export declare const setStatusPickerAt: (showStatusPickerAt: number | null) => (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
|
|
13
13
|
export declare const removeStatus: (showStatusPickerAt: number) => Command;
|
|
14
14
|
export declare const commitStatusPicker: () => (editorView: EditorView) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
export declare const FABRIC_CHANNEL = "fabric-elements";
|
|
3
|
-
export declare const createStatusAnalyticsAndFire: (createAnalyticsEvent?: CreateUIAnalyticsEvent
|
|
3
|
+
export declare const createStatusAnalyticsAndFire: (createAnalyticsEvent?: CreateUIAnalyticsEvent) => (payload: AnalyticsEventPayload) => void;
|
|
4
4
|
export declare const analyticsState: (isNew: boolean | undefined) => "update" | "new";
|
|
@@ -18,7 +18,7 @@ export interface ContainerProps {
|
|
|
18
18
|
export declare const IntlStatusContainerView: React.FC<import("react-intl-next").WithIntlProps<ContainerProps>> & {
|
|
19
19
|
WrappedComponent: React.ComponentType<ContainerProps>;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type Props = InlineNodeViewComponentProps & {
|
|
22
22
|
options: StatusPluginOptions | undefined;
|
|
23
23
|
};
|
|
24
24
|
export declare const StatusNodeView: React.FC<Props>;
|
|
@@ -3,5 +3,5 @@ import type { PMPluginFactoryParams } from '../../types';
|
|
|
3
3
|
import { StatusPluginOptions } from './types';
|
|
4
4
|
export { pluginKey, pluginKeyName } from './plugin-key';
|
|
5
5
|
export type { StatusState, StatusType } from './types';
|
|
6
|
-
declare const createPlugin: (pmPluginFactoryParams: PMPluginFactoryParams, options?: StatusPluginOptions
|
|
6
|
+
declare const createPlugin: (pmPluginFactoryParams: PMPluginFactoryParams, options?: StatusPluginOptions) => SafePlugin<any, any>;
|
|
7
7
|
export default createPlugin;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Color as ColorType } from '@atlaskit/status/element';
|
|
2
|
-
export
|
|
2
|
+
export type StatusType = {
|
|
3
3
|
color: ColorType;
|
|
4
4
|
text: string;
|
|
5
5
|
localId?: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type StatusState = {
|
|
8
8
|
isNew: boolean;
|
|
9
9
|
showStatusPickerAt: number | null;
|
|
10
10
|
};
|
|
@@ -4,7 +4,7 @@ import { Dispatch } from '../../event-dispatcher';
|
|
|
4
4
|
import type { EditorProps } from '../../types/editor-props';
|
|
5
5
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
6
6
|
export declare function createPlugin(eventDispatch: Dispatch, onSave?: (editorView: EditorView) => void): SafePlugin | undefined;
|
|
7
|
-
|
|
7
|
+
type Config = EditorProps['onSave'];
|
|
8
8
|
declare const submitEditorPlugin: NextEditorPlugin<'submitEditor', {
|
|
9
9
|
pluginConfiguration: Config | undefined;
|
|
10
10
|
}>;
|