@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
|
@@ -8,9 +8,9 @@ export declare const getListTypes: (listType: TaskDecisionListType, schema: Sche
|
|
|
8
8
|
list: NodeType;
|
|
9
9
|
item: NodeType;
|
|
10
10
|
};
|
|
11
|
-
export declare const insertTaskDecisionAction: (state: EditorState, listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE, addItem?: AddItemTransactionCreator
|
|
12
|
-
export declare const insertTaskDecisionCommand: (listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE, addItem?: AddItemTransactionCreator
|
|
13
|
-
export declare const insertTaskDecisionWithAnalytics: (state: EditorState, listType: TaskDecisionListType, inputMethod: TaskDecisionInputMethod, addAndCreateList: AddItemTransactionCreator, addToList?: AddItemTransactionCreator
|
|
11
|
+
export declare const insertTaskDecisionAction: (state: EditorState, listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string) => Transaction;
|
|
12
|
+
export declare const insertTaskDecisionCommand: (listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string) => Command;
|
|
13
|
+
export declare const insertTaskDecisionWithAnalytics: (state: EditorState, listType: TaskDecisionListType, inputMethod: TaskDecisionInputMethod, addAndCreateList: AddItemTransactionCreator, addToList?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string) => Transaction | null;
|
|
14
14
|
export declare const isSupportedSourceNode: (schema: Schema, selection: Selection) => boolean;
|
|
15
15
|
export declare const changeInDepth: (before: ResolvedPos, after: ResolvedPos) => number;
|
|
16
16
|
export declare const createListAtSelection: (tr: Transaction, list: any, item: any, schema: Schema, state: EditorState, listLocalId?: string, itemLocalId?: string) => Transaction | null;
|
|
@@ -5,7 +5,7 @@ export declare const isActionOrDecisionList: (node: Node) => boolean;
|
|
|
5
5
|
export declare const isActionOrDecisionItem: (node: Node) => boolean;
|
|
6
6
|
export declare const isInsideTask: (state: EditorState) => boolean;
|
|
7
7
|
export declare const isInsideDecision: (state: EditorState) => boolean;
|
|
8
|
-
export declare const isTable: (node?: Node
|
|
8
|
+
export declare const isTable: (node?: Node | null) => Boolean;
|
|
9
9
|
/**
|
|
10
10
|
* Creates a NodeRange around the given taskItem and the following
|
|
11
11
|
* ("nested") taskList, if one exists.
|
|
@@ -2,7 +2,7 @@ import { Schema } from 'prosemirror-model';
|
|
|
2
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
3
3
|
import { Command } from '../../../types';
|
|
4
4
|
import { INPUT_METHOD } from '../../analytics';
|
|
5
|
-
|
|
5
|
+
type IndentationInputMethod = INPUT_METHOD.KEYBOARD | INPUT_METHOD.TOOLBAR;
|
|
6
6
|
export declare const getUnindentCommand: (inputMethod?: IndentationInputMethod) => Command;
|
|
7
7
|
export declare const getIndentCommand: (inputMethod?: IndentationInputMethod) => Command;
|
|
8
8
|
export declare function keymapPlugin(schema: Schema, allowNestedTasks?: boolean, consumeTabs?: boolean): SafePlugin | undefined;
|
|
@@ -2,14 +2,14 @@ import { NodeType } from 'prosemirror-model';
|
|
|
2
2
|
import { EditorState, Transaction } from 'prosemirror-state';
|
|
3
3
|
import { INPUT_METHOD, USER_CONTEXT } from '../analytics';
|
|
4
4
|
import { LongPressSelectionPluginOptions } from '../selection/types';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
5
|
+
export type TaskDecisionListType = 'taskList' | 'decisionList';
|
|
6
|
+
export type TaskDecisionInputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
|
|
7
|
+
export type ContextData = {
|
|
8
8
|
objectId: string;
|
|
9
9
|
containerId: string;
|
|
10
10
|
userContext: USER_CONTEXT;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type AddItemTransactionCreator = (opts: {
|
|
13
13
|
state: EditorState;
|
|
14
14
|
tr: Transaction;
|
|
15
15
|
list: NodeType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
3
3
|
import { TextColorPluginConfig, pluginKey as textColorPluginKey, TextColorPluginState } from './pm-plugins/main';
|
|
4
|
-
|
|
4
|
+
type Config = TextColorPluginConfig | boolean;
|
|
5
5
|
declare const textColorPlugin: NextEditorPlugin<'textColor', {
|
|
6
6
|
pluginConfiguration: Config | undefined;
|
|
7
7
|
dependencies: [typeof featureFlagsPlugin];
|
|
@@ -3,13 +3,13 @@ import { PluginKey } from 'prosemirror-state';
|
|
|
3
3
|
import { Dispatch } from '../../../event-dispatcher';
|
|
4
4
|
import { PaletteColor } from '../../../ui/ColorPalette/Palettes/type';
|
|
5
5
|
export { DEFAULT_COLOR } from '../utils/color';
|
|
6
|
-
export
|
|
6
|
+
export type TextColorPluginState = {
|
|
7
7
|
palette: Array<PaletteColor>;
|
|
8
8
|
defaultColor: string;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
color: string | null;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
type TextColorDefaultColor = {
|
|
13
13
|
color: string;
|
|
14
14
|
label: string;
|
|
15
15
|
};
|
|
@@ -2,8 +2,8 @@ import { Command } from '../../../types';
|
|
|
2
2
|
import { INPUT_METHOD } from '../../analytics';
|
|
3
3
|
export declare const moveRight: () => Command;
|
|
4
4
|
export declare const moveLeft: () => Command;
|
|
5
|
-
export
|
|
6
|
-
export
|
|
5
|
+
export type InputMethodToolbar = INPUT_METHOD.TOOLBAR;
|
|
6
|
+
export type InputMethodBasic = InputMethodToolbar | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FORMATTING;
|
|
7
7
|
export declare const toggleEm: () => Command;
|
|
8
8
|
export declare const toggleEmWithAnalytics: ({ inputMethod, }: {
|
|
9
9
|
inputMethod: InputMethodBasic;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { MenuIconItem } from './types';
|
|
4
|
-
|
|
4
|
+
type DropdownMenuProps = {
|
|
5
5
|
editorView: EditorView;
|
|
6
6
|
isReducedSpacing: boolean;
|
|
7
7
|
items: Array<MenuIconItem>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EditorState } from 'prosemirror-state';
|
|
2
2
|
import { IconHookProps, MenuIconItem, IconTypes } from '../types';
|
|
3
3
|
export declare const useFormattingIcons: ({ isToolbarDisabled, editorState, intl, }: IconHookProps) => Array<MenuIconItem | null>;
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
editorState: EditorState;
|
|
6
6
|
iconTypeList: IconTypes[];
|
|
7
7
|
};
|
|
@@ -8,7 +8,7 @@ export declare const useResponsiveIconTypeMenu: ({ toolbarSize, responsivenessEn
|
|
|
8
8
|
toolbarSize: ToolbarSize;
|
|
9
9
|
responsivenessEnabled: boolean;
|
|
10
10
|
}) => import("../types").IconTypes[];
|
|
11
|
-
|
|
11
|
+
type IconsPositions = {
|
|
12
12
|
dropdownItems: Array<MenuIconItem>;
|
|
13
13
|
singleItems: Array<MenuIconItem>;
|
|
14
14
|
};
|
|
@@ -4,7 +4,7 @@ import { EditorView } from 'prosemirror-view';
|
|
|
4
4
|
import { EditorState } from 'prosemirror-state';
|
|
5
5
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
6
6
|
import { ToolbarSize } from '../../../../ui/Toolbar/types';
|
|
7
|
-
export
|
|
7
|
+
export type ToolbarFormattingProps = {
|
|
8
8
|
editorView: EditorView;
|
|
9
9
|
isToolbarDisabled: boolean;
|
|
10
10
|
toolbarSize: ToolbarSize;
|
|
@@ -20,13 +20,13 @@ export interface MenuIconItem extends MenuItem {
|
|
|
20
20
|
iconElement?: React.ReactElement;
|
|
21
21
|
buttonId?: TOOLBAR_ACTION_SUBJECT_ID;
|
|
22
22
|
}
|
|
23
|
-
export
|
|
23
|
+
export type MenuIconState = {
|
|
24
24
|
isActive: boolean;
|
|
25
25
|
isDisabled: boolean;
|
|
26
26
|
isHidden: boolean;
|
|
27
27
|
hasSchemaMark: boolean;
|
|
28
28
|
};
|
|
29
|
-
export
|
|
29
|
+
export type IconHookProps = {
|
|
30
30
|
isToolbarDisabled?: boolean;
|
|
31
31
|
editorState: EditorState;
|
|
32
32
|
} & WrappedComponentProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
3
|
-
|
|
3
|
+
type Config = {
|
|
4
4
|
showIndentationButtons: boolean;
|
|
5
5
|
allowHeadingAndParagraphIndentation: boolean;
|
|
6
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EditorView } from 'prosemirror-view';
|
|
2
2
|
import type { onItemActivated } from './ui/onItemActivated';
|
|
3
3
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
4
|
-
export
|
|
4
|
+
export type ButtonName = 'bullet_list' | 'ordered_list' | 'indent' | 'outdent';
|
|
5
5
|
export interface ToolbarProps {
|
|
6
6
|
editorView: EditorView;
|
|
7
7
|
featureFlags: FeatureFlags;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { jsx } from '@emotion/react';
|
|
3
3
|
import { ToolbarProps } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type DropdownProps = ToolbarProps & {
|
|
5
5
|
popupsMountPoint?: HTMLElement;
|
|
6
6
|
popupsBoundariesElement?: HTMLElement;
|
|
7
7
|
popupsScrollableElement?: HTMLElement;
|
|
@@ -4,11 +4,11 @@ import type { TypeAheadItem } from '@atlaskit/editor-common/provider-factory';
|
|
|
4
4
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
5
5
|
import type { TypeAheadHandler, TypeAheadInputMethod } from './types';
|
|
6
6
|
import type { Command } from '../../types/command';
|
|
7
|
-
|
|
7
|
+
type CloseOptions = {
|
|
8
8
|
insertCurrentQueryAsRawText: boolean;
|
|
9
9
|
attachCommand?: Command;
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
type InsertItemProps = {
|
|
12
12
|
contentItem: TypeAheadItem;
|
|
13
13
|
query: string;
|
|
14
14
|
sourceListItem: TypeAheadItem[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EditorView } from 'prosemirror-view';
|
|
2
2
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
3
3
|
import type { TypeAheadHandler, TypeAheadItem } from '../types';
|
|
4
|
-
|
|
4
|
+
type Props = {
|
|
5
5
|
item: TypeAheadItem;
|
|
6
6
|
handler: TypeAheadHandler;
|
|
7
7
|
mode: SelectItemMode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NextEditorPlugin } from '../../types/editor-plugin';
|
|
2
2
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next/types';
|
|
3
3
|
import { pluginKey as typeAheadPluginKey } from './pm-plugins/key';
|
|
4
|
-
export
|
|
4
|
+
export type TypeAheadPluginOptions = {
|
|
5
5
|
isMobile?: boolean;
|
|
6
6
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
7
7
|
useBetterTypeaheadNavigation?: boolean;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
2
2
|
import { IntlShape } from 'react-intl-next';
|
|
3
3
|
import type { CreateTypeAheadDecorations, RemoveTypeAheadDecorations, PopupMountPointReference } from '../types';
|
|
4
|
-
|
|
4
|
+
type FactoryProps = {
|
|
5
5
|
intl: IntlShape;
|
|
6
6
|
popupMountRef: PopupMountPointReference;
|
|
7
7
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
8
8
|
useBetterTypeaheadNavigation: boolean;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type FactoryReturn = {
|
|
11
11
|
createDecorations: CreateTypeAheadDecorations;
|
|
12
12
|
removeDecorations: RemoveTypeAheadDecorations;
|
|
13
13
|
};
|
|
@@ -3,7 +3,7 @@ import { IntlShape } from 'react-intl-next';
|
|
|
3
3
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
4
|
import { Dispatch } from '../../../event-dispatcher';
|
|
5
5
|
import type { PopupMountPointReference, TypeAheadHandler } from '../types';
|
|
6
|
-
|
|
6
|
+
type Props = {
|
|
7
7
|
reactDispatch: Dispatch;
|
|
8
8
|
popupMountRef: PopupMountPointReference;
|
|
9
9
|
typeAheadHandlers: Array<TypeAheadHandler>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReadonlyTransaction } from 'prosemirror-state';
|
|
2
2
|
import { InsertTypeAheadStep } from '@atlaskit/adf-schema/steps';
|
|
3
3
|
import { CreateTypeAheadDecorations, PopupMountPointReference, RemoveTypeAheadDecorations, TypeAheadHandler, TypeAheadPluginState } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type ReducerOptions = {
|
|
5
5
|
popupMountRef: PopupMountPointReference;
|
|
6
6
|
createDecorations: CreateTypeAheadDecorations;
|
|
7
7
|
removeDecorations: RemoveTypeAheadDecorations;
|
|
@@ -6,7 +6,7 @@ import type { UiComponentFactoryParams } from '../../types/ui-components';
|
|
|
6
6
|
import type { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
7
7
|
import type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
8
8
|
export type { TypeAheadStats, TypeAheadItemRenderProps, TypeAheadInsert, TypeAheadSelectItem, TypeAheadItem, TypeAheadForceSelect, TypeAheadHandler, };
|
|
9
|
-
export
|
|
9
|
+
export type OnSelectItem = (props: {
|
|
10
10
|
index: number;
|
|
11
11
|
item: TypeAheadItem;
|
|
12
12
|
}) => void;
|
|
@@ -21,7 +21,7 @@ export interface TypeAheadStatsMobileModifier extends TypeAheadStatsSerializable
|
|
|
21
21
|
resetTime: () => void;
|
|
22
22
|
closeTime: () => void;
|
|
23
23
|
}
|
|
24
|
-
export
|
|
24
|
+
export type TypeAheadPluginState = {
|
|
25
25
|
decorationSet: DecorationSet;
|
|
26
26
|
decorationElement: HTMLElement | null;
|
|
27
27
|
typeAheadHandlers: Array<TypeAheadHandler>;
|
|
@@ -32,28 +32,28 @@ export declare type TypeAheadPluginState = {
|
|
|
32
32
|
stats: TypeAheadStatsSerializable | null;
|
|
33
33
|
inputMethod: TypeAheadInputMethod | null;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
35
|
+
export type OnInsertSelectedItemProps = {
|
|
36
36
|
mode: SelectItemMode;
|
|
37
37
|
index: number;
|
|
38
38
|
query: string;
|
|
39
39
|
};
|
|
40
|
-
export
|
|
40
|
+
export type OnItemMatchProps = {
|
|
41
41
|
mode: SelectItemMode;
|
|
42
42
|
query: string;
|
|
43
43
|
};
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
44
|
+
export type OnInsertSelectedItem = (props: OnInsertSelectedItemProps) => void;
|
|
45
|
+
export type OnItemMatch = (props: OnItemMatchProps) => boolean;
|
|
46
|
+
export type OnTextInsertProps = {
|
|
47
47
|
forceFocusOnEditor: boolean;
|
|
48
48
|
setSelectionAt: CloseSelectionOptions;
|
|
49
49
|
text: string;
|
|
50
50
|
};
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
|
|
55
|
-
export
|
|
56
|
-
export
|
|
51
|
+
export type OnTextInsert = (props: OnTextInsertProps) => void;
|
|
52
|
+
export type TypeAheadInputMethod = INPUT_METHOD.INSERT_MENU | INPUT_METHOD.KEYBOARD | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR;
|
|
53
|
+
export type InsertionTransactionMeta = (editorState: EditorState) => Transaction | false;
|
|
54
|
+
type PopupMountPoints = Pick<UiComponentFactoryParams, 'popupsMountPoint' | 'popupsBoundariesElement' | 'popupsScrollableElement'>;
|
|
55
|
+
export type PopupMountPointReference = Record<'current', PopupMountPoints | null>;
|
|
56
|
+
export type CreateTypeAheadDecorations = (tr: ReadonlyTransaction, options: {
|
|
57
57
|
triggerHandler: TypeAheadHandler;
|
|
58
58
|
inputMethod: TypeAheadInputMethod;
|
|
59
59
|
reopenQuery?: string;
|
|
@@ -62,4 +62,4 @@ export declare type CreateTypeAheadDecorations = (tr: ReadonlyTransaction, optio
|
|
|
62
62
|
decorationElement: HTMLElement | null;
|
|
63
63
|
stats: TypeAheadStatsSerializable | null;
|
|
64
64
|
};
|
|
65
|
-
export
|
|
65
|
+
export type RemoveTypeAheadDecorations = (decorationSet?: DecorationSet) => boolean;
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
import debounce from 'lodash/debounce';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
type Cancelable = ReturnType<typeof debounce>;
|
|
7
|
+
type AssistiveTextProps = {
|
|
8
8
|
assistiveText: string;
|
|
9
9
|
isInFocus: boolean;
|
|
10
10
|
id: string;
|
|
11
11
|
statusDebounceMillis?: number;
|
|
12
12
|
debounce?: boolean;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type AssistiveTextState = {
|
|
15
15
|
bump: boolean;
|
|
16
16
|
debounced: boolean;
|
|
17
17
|
silenced: boolean;
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import type { EditorView } from 'prosemirror-view';
|
|
4
4
|
import { CloseSelectionOptions } from '../constants';
|
|
5
5
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
6
|
-
|
|
6
|
+
type InputQueryProps = {
|
|
7
7
|
triggerQueryPrefix: string;
|
|
8
8
|
onQueryChange: (query: string) => void;
|
|
9
9
|
onItemSelect: (mode: SelectItemMode) => void;
|
|
@@ -6,7 +6,7 @@ export declare const ICON_HEIGHT = 40;
|
|
|
6
6
|
export declare const ICON_WIDTH = 40;
|
|
7
7
|
export declare const ITEM_PADDING = 12;
|
|
8
8
|
export declare const itemIcon: import("@emotion/react").SerializedStyles;
|
|
9
|
-
|
|
9
|
+
type TypeAheadListItemProps = {
|
|
10
10
|
item: TypeAheadItem;
|
|
11
11
|
itemsLength: number;
|
|
12
12
|
itemIndex: number;
|
|
@@ -5,7 +5,7 @@ import type { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
|
5
5
|
import { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
6
6
|
import { CloseSelectionOptions } from '../constants';
|
|
7
7
|
import type { TypeAheadHandler, TypeAheadItem, OnSelectItem } from '../types';
|
|
8
|
-
|
|
8
|
+
type TypeAheadPopupProps = {
|
|
9
9
|
triggerHandler: TypeAheadHandler;
|
|
10
10
|
editorView: EditorView;
|
|
11
11
|
anchorElement: HTMLElement;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
4
4
|
import type { TypeAheadHandler, TypeAheadInputMethod } from '../types';
|
|
5
|
-
|
|
5
|
+
type WrapperProps = {
|
|
6
6
|
triggerHandler: TypeAheadHandler;
|
|
7
7
|
editorView: EditorView;
|
|
8
8
|
anchorElement: HTMLElement;
|
|
@@ -15,15 +15,15 @@ export declare const findHandlerByTrigger: ({ trigger, editorState, }: {
|
|
|
15
15
|
trigger: string;
|
|
16
16
|
editorState: EditorState;
|
|
17
17
|
}) => TypeAheadHandler | null;
|
|
18
|
-
|
|
18
|
+
type MoveSelectedIndexProps = {
|
|
19
19
|
editorView: EditorView;
|
|
20
20
|
direction: 'next' | 'previous';
|
|
21
21
|
useBetterTypeaheadNavigation?: boolean;
|
|
22
22
|
};
|
|
23
23
|
export declare const moveSelectedIndex: ({ editorView, direction, useBetterTypeaheadNavigation, }: MoveSelectedIndexProps) => () => void;
|
|
24
|
-
|
|
24
|
+
type TypeAheadAssistiveLabels = {
|
|
25
25
|
popupAriaLabel: string;
|
|
26
26
|
listItemAriaLabel?: string;
|
|
27
27
|
};
|
|
28
|
-
export declare const getTypeAheadListAriaLabels: (trigger: string | undefined, intl: IntlShape, item?: TypeAheadItem
|
|
28
|
+
export declare const getTypeAheadListAriaLabels: (trigger: string | undefined, intl: IntlShape, item?: TypeAheadItem) => TypeAheadAssistiveLabels;
|
|
29
29
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HigherOrderCommand } from '../../types/command';
|
|
2
2
|
import { InputSource } from './enums';
|
|
3
|
-
|
|
3
|
+
type AttachInputMeta = (inputSource: InputSource) => HigherOrderCommand;
|
|
4
4
|
export declare const attachInputMeta: AttachInputMeta;
|
|
5
5
|
export {};
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { Node as PMNode } from 'prosemirror-model';
|
|
4
4
|
import { UnsupportedContentTooltipPayload } from '@atlaskit/editor-common/utils';
|
|
5
5
|
import { InlineNodeViewComponentProps } from '../../nodeviews/getInlineNodeViewProducer';
|
|
6
|
-
export
|
|
6
|
+
export type Props = InlineNodeViewComponentProps & {
|
|
7
7
|
node?: PMNode;
|
|
8
8
|
children?: React.ReactNode;
|
|
9
9
|
dispatchAnalyticsEvent?: (payload: UnsupportedContentTooltipPayload) => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { EditorState, Transaction } from 'prosemirror-state';
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
-
|
|
4
|
+
type UpdateArgs = {
|
|
5
5
|
newEditorState: EditorState;
|
|
6
6
|
oldEditorState: EditorState;
|
|
7
7
|
transactions: Transaction[];
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type ViewUpdateSubscription = (args: UpdateArgs) => void;
|
|
10
10
|
export declare const trackerStore: WeakMap<EditorView<any>, Tracker>;
|
|
11
11
|
declare class Tracker {
|
|
12
12
|
private subscriptions;
|
|
@@ -2,11 +2,11 @@ import { EditorView } from 'prosemirror-view';
|
|
|
2
2
|
import { DatePluginState } from '../../date/pm-plugins/types';
|
|
3
3
|
import { ConfigWithNodeInfo } from '../../floating-toolbar';
|
|
4
4
|
import { StatusState } from '../../status/types';
|
|
5
|
-
|
|
5
|
+
type SubscribeToToolbarAndPickerUpdatesCallbackArgs = {
|
|
6
6
|
dateState: DatePluginState;
|
|
7
7
|
statusState: StatusState;
|
|
8
8
|
toolbarConfig: ConfigWithNodeInfo | null | undefined;
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
type SubscribeToToolbarAndPickerUpdates = (editorView: EditorView, cb: (args: SubscribeToToolbarAndPickerUpdatesCallbackArgs) => void) => () => void;
|
|
11
11
|
export declare const subscribeToToolbarAndPickerUpdates: SubscribeToToolbarAndPickerUpdates;
|
|
12
12
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EditorView } from 'prosemirror-view';
|
|
2
2
|
import type { TypeAheadPluginState } from '../../type-ahead/types';
|
|
3
|
-
|
|
3
|
+
type Props = {
|
|
4
4
|
oldPluginState: TypeAheadPluginState;
|
|
5
5
|
newPluginState: TypeAheadPluginState;
|
|
6
6
|
};
|
|
7
|
-
|
|
7
|
+
type SubscribeTypeAheadUpdates = (editorView: EditorView, cb: (props: Props) => void) => () => void;
|
|
8
8
|
export declare const subscribeTypeAheadUpdates: SubscribeTypeAheadUpdates;
|
|
9
9
|
export {};
|
|
@@ -3,7 +3,7 @@ import { PluginKey } from 'prosemirror-state';
|
|
|
3
3
|
import { Dispatch } from '../../event-dispatcher';
|
|
4
4
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
5
5
|
import type { EditorContainerWidth } from '@atlaskit/editor-common/types';
|
|
6
|
-
export
|
|
6
|
+
export type WidthPluginState = EditorContainerWidth;
|
|
7
7
|
export declare const pluginKey: PluginKey<EditorContainerWidth, any>;
|
|
8
8
|
export declare function createPlugin(dispatch: Dispatch<WidthPluginState>): SafePlugin | undefined;
|
|
9
9
|
declare const widthPlugin: NextEditorPlugin<'width'>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RelativeSelectionPos } from '@atlaskit/editor-common/selection';
|
|
2
2
|
import type { Transaction, Selection, EditorState } from 'prosemirror-state';
|
|
3
3
|
import type { SelectionPluginState } from '../plugins/selection/types';
|
|
4
|
-
export
|
|
4
|
+
export type EditorSelectionAPI = {
|
|
5
5
|
setSelectionRelativeToNode: (props: {
|
|
6
6
|
selectionRelativeToNode?: RelativeSelectionPos;
|
|
7
7
|
selection?: Selection | null;
|
|
@@ -16,7 +16,7 @@ export interface LightEditorConfig {
|
|
|
16
16
|
onEditorViewStateUpdatedCallbacks: Array<OnEditorViewStateUpdated>;
|
|
17
17
|
}
|
|
18
18
|
export declare function getFireAnalytics(editorView: EditorView): any;
|
|
19
|
-
|
|
19
|
+
type PluginData = {
|
|
20
20
|
plugins: Plugin[];
|
|
21
21
|
schema: Schema;
|
|
22
22
|
onEditorViewStateUpdatedCallbacks: Array<OnEditorViewStateUpdated>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type AllowedBlockTypes = 'heading' | 'blockquote' | 'hardBreak' | 'codeBlock';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditorState, Transaction } from 'prosemirror-state';
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type CommandDispatch = (tr: Transaction) => void;
|
|
4
|
+
export type Command = (state: EditorState, dispatch?: CommandDispatch, view?: EditorView) => boolean;
|
|
5
|
+
export type HigherOrderCommand = (command: Command) => Command;
|
|
@@ -3,7 +3,7 @@ import { Transaction, EditorState } from 'prosemirror-state';
|
|
|
3
3
|
import { PMPlugin } from './pm-plugin';
|
|
4
4
|
import { MarkConfig, NodeConfig } from './pm-config';
|
|
5
5
|
import { UIComponentFactory } from './ui-components';
|
|
6
|
-
|
|
6
|
+
type EditorViewStateUpdatedCallbackProps = {
|
|
7
7
|
readonly originalTransaction: Readonly<Transaction>;
|
|
8
8
|
readonly transactions: Transaction[];
|
|
9
9
|
readonly oldEditorState: Readonly<EditorState>;
|
|
@@ -33,11 +33,11 @@ import { EmptyStateHandler } from './empty-state-handler';
|
|
|
33
33
|
import { ExtensionConfig } from './extension-config';
|
|
34
34
|
import { PerformanceTracking } from './performance-tracking';
|
|
35
35
|
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
36
|
-
export
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export
|
|
40
|
-
export
|
|
36
|
+
export type ReactComponents = ReactElement<any> | ReactElement<any>[];
|
|
37
|
+
type ExtensionProviders = (ExtensionProvider | Promise<ExtensionProvider>)[];
|
|
38
|
+
type ExtensionProvidersWithEditorAction = (editorActions?: EditorActions) => ExtensionProviders;
|
|
39
|
+
export type ExtensionProvidersProp = ExtensionProviders | ExtensionProvidersWithEditorAction;
|
|
40
|
+
export type FeedbackInfo = {
|
|
41
41
|
product?: string;
|
|
42
42
|
packageVersion?: string;
|
|
43
43
|
packageName?: string;
|
|
@@ -46,12 +46,12 @@ export declare type FeedbackInfo = {
|
|
|
46
46
|
contentId?: string;
|
|
47
47
|
tabId?: string;
|
|
48
48
|
};
|
|
49
|
-
export
|
|
49
|
+
export type BeforeAndAfterToolbarComponents = {
|
|
50
50
|
before: ReactComponents;
|
|
51
51
|
after: ReactComponents;
|
|
52
52
|
};
|
|
53
|
-
export
|
|
54
|
-
export
|
|
53
|
+
export type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactComponents;
|
|
54
|
+
export type UseStickyToolbarType = boolean | RefObject<HTMLElement> | {
|
|
55
55
|
offsetTop: number;
|
|
56
56
|
};
|
|
57
57
|
export interface EditorBaseProps extends EditorPluginFeatureProps, EditorProviderProps {
|
|
@@ -2,11 +2,11 @@ import { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
|
2
2
|
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
3
3
|
import { InsertNodeAPI } from '../insert-api/types';
|
|
4
4
|
import { EditorPlugin, EditorProps, EditorAppearance } from '../types';
|
|
5
|
-
export
|
|
5
|
+
export type GetEditorPluginsProps = {
|
|
6
6
|
props: EditorProps;
|
|
7
7
|
prevAppearance?: EditorAppearance;
|
|
8
8
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
9
9
|
insertNodeAPI?: InsertNodeAPI;
|
|
10
10
|
editorAnalyticsAPI?: EditorAnalyticsAPI;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type GetEditorPlugins = (props: GetEditorPluginsProps) => EditorPlugin[];
|