@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
|
@@ -4,7 +4,7 @@ import { CollabEditProvider } from '../provider';
|
|
|
4
4
|
import { PrivateCollabEditOptions } from '../types';
|
|
5
5
|
import { Cleanup } from './handlers';
|
|
6
6
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
|
-
|
|
7
|
+
type Props = {
|
|
8
8
|
view: EditorView;
|
|
9
9
|
options: PrivateCollabEditOptions;
|
|
10
10
|
providerFactory: ProviderFactory;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CollabEditProvider } from '@atlaskit/editor-common/collab';
|
|
2
2
|
import { Transaction, EditorState } from 'prosemirror-state';
|
|
3
|
-
|
|
3
|
+
type Props = {
|
|
4
4
|
originalTransaction: Transaction;
|
|
5
5
|
transactions: Transaction[];
|
|
6
6
|
oldEditorState: EditorState;
|
|
@@ -4,10 +4,10 @@ import type { CollabEditProvider } from '@atlaskit/editor-common/collab';
|
|
|
4
4
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
5
5
|
import { SyncUpErrorFunction } from '@atlaskit/editor-common/types';
|
|
6
6
|
export type { CollabParticipant, CollabEventInitData, CollabEventRemoteData, CollabEventConnectionData, CollabEventPresenceData, CollabEventTelepointerData, CollabSendableSelection, } from '@atlaskit/editor-common/collab';
|
|
7
|
-
export
|
|
7
|
+
export type InviteToEditComponentProps = {
|
|
8
8
|
children: ReactElement<InviteToEditButtonProps>;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type InviteToEditButtonProps = {
|
|
11
11
|
onClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
12
12
|
selected: boolean;
|
|
13
13
|
};
|
|
@@ -22,15 +22,15 @@ export interface CollabAnalyticsProps {
|
|
|
22
22
|
*/
|
|
23
23
|
EXPERIMENTAL_allowInternalErrorAnalytics?: boolean;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type CollabEditOptions = {
|
|
26
26
|
provider?: Providers['collabEditProvider'];
|
|
27
27
|
userId?: string;
|
|
28
28
|
useNativePlugin?: boolean;
|
|
29
29
|
} & CollabInviteToEditProps & CollabAnalyticsProps;
|
|
30
|
-
export
|
|
30
|
+
export type PrivateCollabEditOptions = CollabEditOptions & {
|
|
31
31
|
sanitizePrivateContent?: boolean;
|
|
32
32
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
33
33
|
onSyncUpError?: SyncUpErrorFunction;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
36
|
-
export
|
|
35
|
+
export type ProviderCallback = <ReturnType>(codeToExecute: (provider: CollabEditProvider) => ReturnType | undefined, onError?: (err: Error) => void) => Promise<ReturnType | undefined> | undefined;
|
|
36
|
+
export type ProviderBuilder = (collabEditProviderPromise: Promise<CollabEditProvider>) => ProviderCallback;
|
|
@@ -4,7 +4,7 @@ import { EditorView } from 'prosemirror-view';
|
|
|
4
4
|
import { EventDispatcher } from '../../../event-dispatcher';
|
|
5
5
|
import { CollabInviteToEditProps } from '../types';
|
|
6
6
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
7
|
-
export
|
|
7
|
+
export type AvatarsWithPluginStateProps = {
|
|
8
8
|
editorView?: EditorView;
|
|
9
9
|
eventDispatcher?: EventDispatcher;
|
|
10
10
|
featureFlags: FeatureFlags;
|
|
@@ -14,6 +14,6 @@ export declare const findPointers: (id: string, decorations: DecorationSet) => D
|
|
|
14
14
|
export declare const createTelepointers: (from: number, to: number, sessionId: string, isSelection: boolean, initial: string) => Decoration<{
|
|
15
15
|
[key: string]: any;
|
|
16
16
|
}>[];
|
|
17
|
-
export declare const replaceDocument: (doc: any, state: EditorState, version?: number
|
|
17
|
+
export declare const replaceDocument: (doc: any, state: EditorState, version?: number, options?: CollabEditOptions, reserveCursor?: boolean) => import("prosemirror-state").Transaction<any>;
|
|
18
18
|
export declare const scrollToCollabCursor: (editorView: EditorView, participants: CollabParticipant[], sessionId: string | undefined, index: number) => void;
|
|
19
19
|
export declare const getPositionOfTelepointer: (sessionId: string, decorationSet: DecorationSet) => undefined | number;
|
|
@@ -3,7 +3,7 @@ import { PluginKey } from 'prosemirror-state';
|
|
|
3
3
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { ContextPanelHandler } from './types';
|
|
5
5
|
export declare const pluginKey: PluginKey<ContextPanelPluginState, any>;
|
|
6
|
-
|
|
6
|
+
type ContextPanelPluginState = {
|
|
7
7
|
handlers: ContextPanelHandler[];
|
|
8
8
|
contents: React.ReactNode[];
|
|
9
9
|
};
|
|
@@ -5,4 +5,4 @@ export declare function createToolbarCopyCommandForMark(markType: MarkType): Com
|
|
|
5
5
|
export declare function getProvideMarkVisualFeedbackForCopyButtonCommand(markType: MarkType): (state: EditorState, dispatch: CommandDispatch | undefined) => boolean;
|
|
6
6
|
export declare function removeMarkVisualFeedbackForCopyButtonCommand(state: EditorState, dispatch: CommandDispatch | undefined): boolean;
|
|
7
7
|
export declare const createToolbarCopyCommandForNode: (nodeType: NodeType | Array<NodeType>) => Command;
|
|
8
|
-
export declare const resetCopiedState: (nodeType: NodeType | Array<NodeType>, onMouseLeave?: Command
|
|
8
|
+
export declare const resetCopiedState: (nodeType: NodeType | Array<NodeType>, onMouseLeave?: Command) => Command;
|
|
@@ -2,7 +2,7 @@ import { EditorState } from 'prosemirror-state';
|
|
|
2
2
|
import { Command } from '../../../src/types';
|
|
3
3
|
import { FloatingToolbarButton, FloatingToolbarItem, MarkOptions, NodeOptions } from '../floating-toolbar/types';
|
|
4
4
|
export declare function getCopyButtonConfig(options: MarkOptions | NodeOptions): FloatingToolbarButton<Command>;
|
|
5
|
-
export declare const showCopyButton: (state?: EditorState
|
|
5
|
+
export declare const showCopyButton: (state?: EditorState) => import("prosemirror-state").Plugin<any, any> | undefined;
|
|
6
6
|
/**
|
|
7
7
|
* Process floatingToolbar items for copyButton
|
|
8
8
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EditorView } from 'prosemirror-view';
|
|
2
2
|
import { AutoformatReplacement } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type InputRuleHander = (view: EditorView, match: string[], start: number, end: number) => Promise<AutoformatReplacement>;
|
|
4
|
+
export type InputRule = {
|
|
5
5
|
matchTyping: RegExp;
|
|
6
6
|
matchEnter: RegExp;
|
|
7
7
|
handler: InputRuleHander;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { CustomAutoformatState, CustomAutoformatAction } from './types';
|
|
2
|
-
|
|
2
|
+
type Reducer<ActionType> = (state: CustomAutoformatState, action: ActionType) => CustomAutoformatState;
|
|
3
3
|
declare const reduce: Reducer<CustomAutoformatAction>;
|
|
4
4
|
export default reduce;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { Node as ProsemirrorNode } from 'prosemirror-model';
|
|
2
2
|
export type { AutoformatHandler, AutoformatReplacement, AutoformattingProvider, AutoformatRuleset as Ruleset, } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
export
|
|
3
|
+
export type AutoformatCandidate = {
|
|
4
4
|
start: number;
|
|
5
5
|
end: number;
|
|
6
6
|
match: string[];
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type AutoformatMatch = {
|
|
9
9
|
matchString: string;
|
|
10
10
|
replacement?: ProsemirrorNode;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type CustomAutoformatState = {
|
|
13
13
|
resolving: Array<AutoformatCandidate>;
|
|
14
14
|
matches: Array<AutoformatMatch>;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type CustomAutoformatMatched = {
|
|
17
17
|
action: 'matched';
|
|
18
18
|
start: number;
|
|
19
19
|
end: number;
|
|
20
20
|
match: string[];
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type CustomAutoformatResolved = {
|
|
23
23
|
action: 'resolved';
|
|
24
24
|
matchString: string;
|
|
25
25
|
replacement?: ProsemirrorNode;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type CustomAutoformatFinish = {
|
|
28
28
|
action: 'finish';
|
|
29
29
|
matchString: string;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type CustomAutoformatAction = CustomAutoformatMatched | CustomAutoformatResolved | CustomAutoformatFinish;
|
|
@@ -3,12 +3,12 @@ import { Command, CommandDispatch } from '../../types';
|
|
|
3
3
|
import { DateType } from './types';
|
|
4
4
|
import { TOOLBAR_MENU_TYPE } from '../insert-block/ui/ToolbarInsertBlock/types';
|
|
5
5
|
import { INPUT_METHOD } from '../analytics';
|
|
6
|
-
export declare const createDate: (isQuickInsertAction?: boolean
|
|
6
|
+
export declare const createDate: (isQuickInsertAction?: boolean) => (insert: (node: Node | Object | string, opts?: any) => Transaction, state: EditorState) => Transaction;
|
|
7
7
|
/** Delete the date and close the datepicker */
|
|
8
8
|
export declare const deleteDate: () => Command;
|
|
9
9
|
/** Focus input */
|
|
10
10
|
export declare const focusDateInput: () => (state: EditorState, dispatch: CommandDispatch | undefined) => boolean;
|
|
11
|
-
export declare const insertDate: (date?: DateType
|
|
11
|
+
export declare const insertDate: (date?: DateType, inputMethod?: TOOLBAR_MENU_TYPE, commitMethod?: INPUT_METHOD.PICKER | INPUT_METHOD.KEYBOARD, enterPressed?: boolean) => Command;
|
|
12
12
|
export declare const setDatePickerAt: (showDatePickerAt: number | null) => (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
|
|
13
13
|
export declare const closeDatePicker: () => Command;
|
|
14
14
|
export declare const closeDatePickerWithAnalytics: ({ date, }: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type DatePluginState = {
|
|
2
2
|
isQuickInsertAction?: boolean;
|
|
3
3
|
isNew: boolean;
|
|
4
4
|
showDatePickerAt: number | null;
|
|
5
5
|
isDateEmpty: boolean;
|
|
6
6
|
focusDateInput: boolean;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type DatePluginMeta = {
|
|
9
9
|
isNew?: boolean;
|
|
10
10
|
showDatePickerAt?: number | null;
|
|
11
11
|
isDateEmpty?: boolean;
|
|
@@ -2,7 +2,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
3
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { Dispatch } from '../../event-dispatcher';
|
|
5
|
-
export
|
|
5
|
+
export type EditorDisabledPluginState = {
|
|
6
6
|
editorDisabled: boolean;
|
|
7
7
|
};
|
|
8
8
|
export declare const pluginKey: PluginKey<EditorDisabledPluginState, any>;
|
|
@@ -4,7 +4,7 @@ import { EmojiDescription, EmojiProvider } from '@atlaskit/emoji';
|
|
|
4
4
|
import type { Command, NextEditorPlugin, PMPluginFactoryParams } from '@atlaskit/editor-common/types';
|
|
5
5
|
import { TypeAheadItem } from '../type-ahead/types';
|
|
6
6
|
import { EmojiPluginOptions, EmojiPluginState } from './types';
|
|
7
|
-
export declare const emojiToTypeaheadItem: (emoji: EmojiDescription, emojiProvider?: EmojiProvider
|
|
7
|
+
export declare const emojiToTypeaheadItem: (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem;
|
|
8
8
|
export declare function memoize<ResultFn extends (emoji: EmojiDescription, emojiProvider?: EmojiProvider) => TypeAheadItem>(fn: ResultFn): {
|
|
9
9
|
call: ResultFn;
|
|
10
10
|
clear(): void;
|
|
@@ -22,7 +22,7 @@ export declare const ACTIONS: {
|
|
|
22
22
|
SET_RESULTS: string;
|
|
23
23
|
SET_ASCII_MAP: string;
|
|
24
24
|
};
|
|
25
|
-
export declare const setProvider: (provider?: EmojiProvider
|
|
25
|
+
export declare const setProvider: (provider?: EmojiProvider) => Command;
|
|
26
26
|
export declare const emojiPluginKey: PluginKey<EmojiPluginState, any>;
|
|
27
27
|
export declare function getEmojiPluginState(state: EditorState): EmojiPluginState;
|
|
28
28
|
export declare function createEmojiPlugin(pmPluginFactoryParams: PMPluginFactoryParams): SafePlugin<EmojiPluginState, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
3
|
import type { InlineNodeViewComponentProps } from '../../../nodeviews/getInlineNodeViewProducer';
|
|
4
|
-
export
|
|
4
|
+
export type Props = InlineNodeViewComponentProps & {
|
|
5
5
|
providerFactory: ProviderFactory;
|
|
6
6
|
};
|
|
7
7
|
export declare function EmojiNodeView(props: Props): JSX.Element;
|
|
@@ -4,7 +4,7 @@ export interface EmojiPluginOptions {
|
|
|
4
4
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
5
5
|
headless?: boolean;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export type EmojiPluginState = {
|
|
8
8
|
emojiProvider?: EmojiProvider;
|
|
9
9
|
emojiResourceConfig?: EmojiResourceConfig;
|
|
10
10
|
asciiMap?: Map<string, EmojiDescription>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EditorState } from 'prosemirror-state';
|
|
2
2
|
import { Node as PMNode, NodeType } from 'prosemirror-model';
|
|
3
3
|
import { Command } from '../../types';
|
|
4
|
-
export declare const setExpandRef: (ref?: HTMLDivElement | null
|
|
4
|
+
export declare const setExpandRef: (ref?: HTMLDivElement | null) => Command;
|
|
5
5
|
export declare const deleteExpandAtPos: (expandNodePos: number, expandNode: PMNode) => Command;
|
|
6
6
|
export declare const deleteExpand: () => Command;
|
|
7
7
|
export declare const updateExpandTitle: (title: string, pos: number, nodeType: NodeType) => Command;
|
|
@@ -6,11 +6,11 @@ import { MacroProvider } from '@atlaskit/editor-common/provider-factory';
|
|
|
6
6
|
export { transformSliceToRemoveOpenBodiedExtension } from '@atlaskit/editor-common/transforms';
|
|
7
7
|
import { Command, CommandDispatch } from '../../types';
|
|
8
8
|
import EditorActions from '../../actions';
|
|
9
|
-
export declare const buildExtensionNode: <S extends Schema<any, any>>(type: 'inlineExtension' | 'extension' | 'bodiedExtension', schema: S, attrs: object, content?: Fragment
|
|
9
|
+
export declare const buildExtensionNode: <S extends Schema<any, any>>(type: 'inlineExtension' | 'extension' | 'bodiedExtension', schema: S, attrs: object, content?: Fragment, marks?: Mark<S>[] | undefined) => PmNode<Schema<any, any>>;
|
|
10
10
|
export declare const performNodeUpdate: (type: 'inlineExtension' | 'extension' | 'bodiedExtension', newAttrs: object, content: Fragment<any>, marks: Mark[], shouldScrollIntoView: boolean) => Command;
|
|
11
11
|
export declare const updateExtensionParams: (updateExtension: UpdateExtension<object>, node: {
|
|
12
12
|
node: PmNode;
|
|
13
13
|
pos: number;
|
|
14
|
-
}, actions: ExtensionAPI) => (state: EditorState, dispatch?: CommandDispatch
|
|
14
|
+
}, actions: ExtensionAPI) => (state: EditorState, dispatch?: CommandDispatch, view?: EditorView) => Promise<boolean>;
|
|
15
15
|
export declare const editSelectedExtension: (editorActions: EditorActions) => boolean;
|
|
16
|
-
export declare const editExtension: (macroProvider: MacroProvider | null, updateExtension?: Promise<
|
|
16
|
+
export declare const editExtension: (macroProvider: MacroProvider | null, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
|
|
@@ -8,4 +8,4 @@ export declare const clearEditingContext: import("@atlaskit/editor-common/types"
|
|
|
8
8
|
export declare const forceAutoSave: (resolve: () => void, reject?: ((reason?: any) => void) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
9
9
|
export declare const updateExtensionLayout: (layout: ExtensionLayout) => import("@atlaskit/editor-common/types").Command;
|
|
10
10
|
export declare const removeExtension: () => import("@atlaskit/editor-common/types").Command;
|
|
11
|
-
export declare const removeDescendantNodes: (sourceNode?: PMNode
|
|
11
|
+
export declare const removeDescendantNodes: (sourceNode?: PMNode) => import("@atlaskit/editor-common/types").Command;
|
|
@@ -3,5 +3,5 @@ import { EditorState } from 'prosemirror-state';
|
|
|
3
3
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
4
|
import type { EditorView } from 'prosemirror-view';
|
|
5
5
|
import type { ContentNodeWithPos } from 'prosemirror-utils';
|
|
6
|
-
export declare const getContextPanel: (allowAutoSave?: boolean
|
|
6
|
+
export declare const getContextPanel: (allowAutoSave?: boolean, featureFlags?: FeatureFlags) => (state: EditorState) => JSX.Element | undefined;
|
|
7
7
|
export declare function onChangeAction(editorView: EditorView, updatedParameters: object | undefined, oldParameters: object | undefined, nodeWithPos: ContentNodeWithPos, onSaving?: () => void): Promise<void>;
|
|
@@ -9,8 +9,8 @@ import { Dispatch, EventDispatcher } from '../../../event-dispatcher';
|
|
|
9
9
|
import { PortalProviderAPI } from '../../../ui/PortalProvider';
|
|
10
10
|
import { getPluginState, createCommand } from '../plugin-factory';
|
|
11
11
|
import { pluginKey } from '../plugin-key';
|
|
12
|
-
export declare const createExtensionProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ExtensionProvider
|
|
13
|
-
export declare const createContextIdentifierProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ContextIdentifierProvider>
|
|
12
|
+
export declare const createExtensionProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ExtensionProvider>) => Promise<void>;
|
|
13
|
+
export declare const createContextIdentifierProviderHandler: (view: EditorView) => (name: string, provider?: Promise<ContextIdentifierProvider>) => Promise<void>;
|
|
14
14
|
export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandlers, }: {
|
|
15
15
|
view: EditorView;
|
|
16
16
|
prevState: EditorState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
2
2
|
import { UpdateExtension, ExtensionProvider, Parameters, TransformBefore, TransformAfter } from '@atlaskit/editor-common/extensions';
|
|
3
|
-
export
|
|
3
|
+
export type ExtensionState<T extends Parameters = Parameters> = {
|
|
4
4
|
localId?: string;
|
|
5
5
|
autoSaveResolve?: () => void;
|
|
6
6
|
autoSaveReject?: (reason?: any) => void;
|
|
@@ -14,7 +14,7 @@ export declare type ExtensionState<T extends Parameters = Parameters> = {
|
|
|
14
14
|
processParametersAfter?: TransformAfter<T>;
|
|
15
15
|
positions?: Record<number, number>;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type ExtensionAction<T extends Parameters = Parameters> = {
|
|
18
18
|
type: 'UPDATE_STATE';
|
|
19
19
|
data: Partial<ExtensionState<T>>;
|
|
20
20
|
};
|
|
@@ -3,7 +3,7 @@ import { EditorState } from 'prosemirror-state';
|
|
|
3
3
|
import { Node as PMNode } from 'prosemirror-model';
|
|
4
4
|
import { NodeWithPos, DomAtPos } from 'prosemirror-utils';
|
|
5
5
|
export declare const getSelectedExtension: (state: EditorState, searchParent?: boolean) => import("prosemirror-utils").ContentNodeWithPos | undefined;
|
|
6
|
-
export declare const findExtensionWithLocalId: (state: EditorState, localId?: string
|
|
6
|
+
export declare const findExtensionWithLocalId: (state: EditorState, localId?: string) => NodeWithPos | undefined;
|
|
7
7
|
export declare const getSelectedDomElement: (schema: Schema, domAtPos: DomAtPos, selectedExtensionNode: NodeWithPos) => HTMLElement;
|
|
8
8
|
export declare const getDataConsumerMark: (newNode: PMNode) => Mark | undefined;
|
|
9
9
|
export declare const getNodeTypesReferenced: (ids: string[], state: EditorState) => string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FeedbackInfo } from '../../types';
|
|
2
2
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
-
export declare const openFeedbackDialog: (feedbackInfo?: FeedbackInfo
|
|
3
|
+
export declare const openFeedbackDialog: (feedbackInfo?: FeedbackInfo) => Promise<unknown>;
|
|
4
4
|
declare const feedbackDialog: NextEditorPlugin<'feedbackDialog', {
|
|
5
5
|
pluginConfiguration: FeedbackInfo;
|
|
6
6
|
}>;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { DispatchAnalyticsEvent } from '../analytics';
|
|
4
4
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
5
|
-
export
|
|
5
|
+
export type FindReplaceToolbarButtonWithStateProps = {
|
|
6
6
|
popupsBoundariesElement?: HTMLElement;
|
|
7
7
|
popupsMountPoint?: HTMLElement;
|
|
8
8
|
popupsScrollableElement?: HTMLElement;
|
|
@@ -61,4 +61,4 @@ export interface UpdateDecorations {
|
|
|
61
61
|
export interface ToggleMatchCase {
|
|
62
62
|
type: FindReplaceActionTypes.TOGGLE_MATCH_CASE;
|
|
63
63
|
}
|
|
64
|
-
export
|
|
64
|
+
export type FindReplaceAction = Activate | Find | FindNext | FindPrevious | Replace | ReplaceAll | Cancel | Blur | UpdateDecorations | ToggleMatchCase;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Decoration, EditorView } from 'prosemirror-view';
|
|
2
2
|
export declare const activate: () => import("@atlaskit/editor-common/types").Command;
|
|
3
|
-
export declare const find: (editorView: EditorView, containerElement: HTMLElement | null, keyword?: string
|
|
3
|
+
export declare const find: (editorView: EditorView, containerElement: HTMLElement | null, keyword?: string) => import("../..").Command;
|
|
4
4
|
export declare const findNext: () => import("../..").Command;
|
|
5
5
|
export declare const findPrevious: () => import("../..").Command;
|
|
6
6
|
export declare const replace: (replaceText: string) => import("../..").Command;
|
|
@@ -22,22 +22,22 @@ export interface FindReplacePluginState {
|
|
|
22
22
|
shouldMatchCase: boolean;
|
|
23
23
|
}
|
|
24
24
|
export declare const findReplacePluginKey: PluginKey<FindReplacePluginState, any>;
|
|
25
|
-
export
|
|
25
|
+
export type Match = {
|
|
26
26
|
/** Start position */
|
|
27
27
|
start: number;
|
|
28
28
|
/** End position */
|
|
29
29
|
end: number;
|
|
30
30
|
};
|
|
31
|
-
export
|
|
31
|
+
export type TextGrouping = {
|
|
32
32
|
/** The concatenated text across nodes */
|
|
33
33
|
text: string;
|
|
34
34
|
/** Start position */
|
|
35
35
|
pos: number;
|
|
36
36
|
} | null;
|
|
37
|
-
export
|
|
37
|
+
export type FindReplaceOptions = {
|
|
38
38
|
allowMatchCase?: boolean;
|
|
39
39
|
};
|
|
40
|
-
export
|
|
40
|
+
export type MatchCaseProps = {
|
|
41
41
|
allowMatchCase?: boolean;
|
|
42
42
|
shouldMatchCase?: boolean;
|
|
43
43
|
onToggleMatchCase?: () => void;
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { TRIGGER_METHOD } from '../../analytics/types';
|
|
5
5
|
import { MatchCaseProps } from '../types';
|
|
6
|
-
export
|
|
6
|
+
export type FindProps = {
|
|
7
7
|
findText?: string;
|
|
8
8
|
count: {
|
|
9
9
|
index: number;
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
import { TRIGGER_METHOD, DispatchAnalyticsEvent } from '../../analytics/types';
|
|
5
5
|
import { MatchCaseProps } from '../types';
|
|
6
|
-
export
|
|
6
|
+
export type FindReplaceProps = {
|
|
7
7
|
findText?: string;
|
|
8
8
|
replaceText?: string;
|
|
9
9
|
count: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
import { TRIGGER_METHOD, DispatchAnalyticsEvent } from '../../analytics/types';
|
|
5
|
-
export
|
|
5
|
+
export type ReplaceProps = {
|
|
6
6
|
canReplace: boolean;
|
|
7
7
|
replaceText?: string;
|
|
8
8
|
onReplace: ({ triggerMethod, replaceText, }: {
|
|
@@ -16,7 +16,7 @@ export declare type ReplaceProps = {
|
|
|
16
16
|
onArrowUp: () => void;
|
|
17
17
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type ReplaceState = {
|
|
20
20
|
replaceText: string;
|
|
21
21
|
isComposing: boolean;
|
|
22
22
|
};
|
|
@@ -8,7 +8,7 @@ export declare const createDecorations: (selectedIndex: number, matches: {
|
|
|
8
8
|
start: number;
|
|
9
9
|
end: number;
|
|
10
10
|
}[]) => Decoration[];
|
|
11
|
-
export declare const createDecoration: (start: number, end: number, isSelected?: boolean
|
|
11
|
+
export declare const createDecoration: (start: number, end: number, isSelected?: boolean) => Decoration<{
|
|
12
12
|
[key: string]: any;
|
|
13
13
|
} & import("prosemirror-view").InlineDecorationSpec>;
|
|
14
14
|
export declare function findMatches(content: PmNode | Fragment, searchText: string, shouldMatchCase: boolean, contentIndex?: number): Match[];
|
|
@@ -3,8 +3,8 @@ import { Node } from 'prosemirror-model';
|
|
|
3
3
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
4
4
|
import { FloatingToolbarConfig } from './types';
|
|
5
5
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type FloatingToolbarPluginState = Record<'getConfigWithNodeInfo', (state: EditorState) => ConfigWithNodeInfo | null | undefined>;
|
|
7
|
+
export type ConfigWithNodeInfo = {
|
|
8
8
|
config: FloatingToolbarConfig | undefined;
|
|
9
9
|
pos: number;
|
|
10
10
|
node: Node;
|
|
@@ -2,11 +2,11 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
3
|
import { EditorView } from 'prosemirror-view';
|
|
4
4
|
export declare const forceFocusStateKey: PluginKey<any, any>;
|
|
5
|
-
declare const _default: () => SafePlugin<any, any>;
|
|
6
5
|
/**
|
|
7
6
|
* Used in cases where a floating toolbar button opens a submenu which destroys
|
|
8
7
|
* the button, but the user has pressed ESC to close the submenu and focus needs
|
|
9
8
|
* to move back to the button. */
|
|
9
|
+
declare const _default: () => SafePlugin<any, any>;
|
|
10
10
|
export default _default;
|
|
11
11
|
/**
|
|
12
12
|
* The provided selector should be the floating toolbar button that needs focus.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type FloatingToolbarPluginData = {
|
|
2
2
|
confirmDialogForItem?: number;
|
|
3
3
|
};
|
|
4
|
-
export
|
|
4
|
+
export type FloatingToolbarPluginAction = {
|
|
5
5
|
type: 'SHOW_CONFIRM_DIALOG';
|
|
6
6
|
data: {
|
|
7
7
|
buttonIndex: number;
|
|
@@ -8,7 +8,7 @@ import { DispatchAnalyticsEvent } from '../../analytics';
|
|
|
8
8
|
import { FloatingToolbarItem } from '../types';
|
|
9
9
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
10
10
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
11
|
-
export
|
|
11
|
+
export type Item = FloatingToolbarItem<Function>;
|
|
12
12
|
export interface Props {
|
|
13
13
|
items: Array<Item>;
|
|
14
14
|
dispatchCommand: (command?: Function) => void;
|
|
@@ -27,7 +27,7 @@ export interface Props {
|
|
|
27
27
|
featureFlags: FeatureFlags;
|
|
28
28
|
}
|
|
29
29
|
export declare const isSameItem: (leftItem: Item, rightItem: Item) => boolean;
|
|
30
|
-
export declare const areSameItems: (leftArr?: Item
|
|
30
|
+
export declare const areSameItems: (leftArr?: Array<Item>, rightArr?: Array<Item>) => boolean;
|
|
31
31
|
export interface State {
|
|
32
32
|
scrollDisabled: boolean;
|
|
33
33
|
mounted: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Node } from 'prosemirror-model';
|
|
2
|
-
export declare const shallowEqual: (objA?: Object
|
|
3
|
-
export declare const compareArrays: <T>(left: T[], right: T[], compareFn?: (left: T, right: T) => boolean) => boolean;
|
|
2
|
+
export declare const shallowEqual: (objA?: Object, objB?: Object) => boolean;
|
|
3
|
+
export declare const compareArrays: <T extends any[]>(left: T[], right: T[], compareFn?: (left: T, right: T) => boolean) => boolean;
|
|
4
4
|
export declare function findNode(parent: Node, predicate: (node: Node) => boolean): Node | undefined;
|
|
@@ -5,7 +5,7 @@ import { GridPluginState, GridType } from './types';
|
|
|
5
5
|
import { EventDispatcher } from '../../event-dispatcher';
|
|
6
6
|
export declare const stateKey: PluginKey<GridPluginState, any>;
|
|
7
7
|
export declare const GRID_SIZE = 12;
|
|
8
|
-
export
|
|
8
|
+
export type Highlights = Array<'wide' | 'full-width' | number>;
|
|
9
9
|
export declare const createDisplayGrid: (eventDispatcher: EventDispatcher) => (show: boolean, type: GridType, highlight?: number[] | string[]) => void;
|
|
10
10
|
export declare const gridTypeForLayout: (layout: MediaSingleLayout) => GridType;
|
|
11
11
|
interface GridPluginOptions {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { Transaction } from 'prosemirror-state';
|
|
2
|
-
export declare const openHelpCommand: (tr: Transaction, dispatch?: Function
|
|
2
|
+
export declare const openHelpCommand: (tr: Transaction, dispatch?: Function) => boolean;
|
|
3
3
|
export declare const closeHelpCommand: (tr: Transaction, dispatch: Function) => void;
|
|
@@ -13,7 +13,7 @@ export interface Format {
|
|
|
13
13
|
imageEnabled?: boolean;
|
|
14
14
|
}
|
|
15
15
|
export declare const formatting: (intl: IntlShape) => Format[];
|
|
16
|
-
export declare const getSupportedFormatting: (schema: Schema, intl: IntlShape, imageEnabled?: boolean
|
|
16
|
+
export declare const getSupportedFormatting: (schema: Schema, intl: IntlShape, imageEnabled?: boolean, quickInsertEnabled?: boolean) => Format[];
|
|
17
17
|
export declare const getComponentFromKeymap: (keymap: keymaps.Keymap) => jsx.JSX.Element;
|
|
18
18
|
export interface Props {
|
|
19
19
|
editorView: EditorView;
|
|
@@ -8,8 +8,8 @@ export declare function isLinkAtPos(pos: number): Predicate;
|
|
|
8
8
|
export declare function setLinkHref(href: string, pos: number, to?: number, isTabPressed?: boolean): Command;
|
|
9
9
|
export declare function updateLink(href: string, text: string, pos: number, to?: number): Command;
|
|
10
10
|
export declare function insertLink(from: number, to: number, incomingHref: string, incomingTitle?: string, displayText?: string, source?: LinkInputType, sourceEvent?: UIAnalyticsEvent | null | undefined): Command;
|
|
11
|
-
export declare const insertLinkWithAnalytics: (inputMethod: LinkInputType, from: number, to: number, href: string, title?: string
|
|
12
|
-
export declare const insertLinkWithAnalyticsMobileNative: (inputMethod: LinkInputType, from: number, to: number, href: string, title?: string
|
|
11
|
+
export declare const insertLinkWithAnalytics: (inputMethod: LinkInputType, from: number, to: number, href: string, title?: string, displayText?: string, cardsAvailable?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined) => Command;
|
|
12
|
+
export declare const insertLinkWithAnalyticsMobileNative: (inputMethod: LinkInputType, from: number, to: number, href: string, title?: string, displayText?: string) => Command;
|
|
13
13
|
export declare function removeLink(pos: number): Command;
|
|
14
14
|
export declare function editInsertedLink(): Command;
|
|
15
15
|
export declare function showLinkToolbar(inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.SHORTCUT | INPUT_METHOD.INSERT_MENU): Command;
|