@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
|
@@ -21,10 +21,10 @@ export interface InlineCommentPluginOptions {
|
|
|
21
21
|
export interface InlineCommentMouseData {
|
|
22
22
|
isSelecting: boolean;
|
|
23
23
|
}
|
|
24
|
-
export
|
|
24
|
+
export type InlineCommentMap = {
|
|
25
25
|
[key: string]: boolean;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type InlineCommentAction = {
|
|
28
28
|
type: ACTIONS.UPDATE_INLINE_COMMENT_STATE;
|
|
29
29
|
data: InlineCommentMap;
|
|
30
30
|
} | {
|
|
@@ -56,7 +56,7 @@ export declare type InlineCommentAction = {
|
|
|
56
56
|
isVisible: boolean;
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
|
-
export
|
|
59
|
+
export type InlineCommentPluginState = {
|
|
60
60
|
annotations: InlineCommentMap;
|
|
61
61
|
selectedAnnotations: AnnotationInfo[];
|
|
62
62
|
dirtyAnnotations?: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
3
3
|
import { AnnotationUpdateEmitter } from './update-provider';
|
|
4
|
-
export
|
|
4
|
+
export type AnnotationInfo = {
|
|
5
5
|
id: string;
|
|
6
6
|
type: AnnotationTypes.INLINE_COMMENT;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type AnnotationComponentProps = {
|
|
9
9
|
/**
|
|
10
10
|
* Selected text (can be used when creating a comment)
|
|
11
11
|
*/
|
|
@@ -19,13 +19,13 @@ declare type AnnotationComponentProps = {
|
|
|
19
19
|
*/
|
|
20
20
|
onClose?: () => void;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type InlineCommentCreateComponentProps = AnnotationComponentProps & {
|
|
23
23
|
/**
|
|
24
24
|
* Creates an annotation mark in the document with the given id.
|
|
25
25
|
*/
|
|
26
26
|
onCreate: (id: string) => void;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type InlineCommentViewComponentProps = AnnotationComponentProps & {
|
|
29
29
|
/**
|
|
30
30
|
* Existing annotations where the cursor is placed.
|
|
31
31
|
* These are provided in order, inner-most first.
|
|
@@ -50,10 +50,10 @@ export interface AnnotationTypeProvider<Type, State> {
|
|
|
50
50
|
updateSubscriber?: AnnotationUpdateEmitter;
|
|
51
51
|
disallowOnWhitespace?: boolean;
|
|
52
52
|
}
|
|
53
|
-
export
|
|
53
|
+
export type InlineCommentState = {
|
|
54
54
|
resolved: boolean;
|
|
55
55
|
};
|
|
56
|
-
export
|
|
56
|
+
export type InlineCommentAnnotationProvider = AnnotationTypeProvider<AnnotationTypes.INLINE_COMMENT, InlineCommentState> & {
|
|
57
57
|
createComponent?: React.ComponentType<InlineCommentCreateComponentProps>;
|
|
58
58
|
viewComponent?: React.ComponentType<InlineCommentViewComponentProps>;
|
|
59
59
|
isToolbarAbove?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type UpdateEvent = 'create' | 'delete' | 'resolve' | 'unresolve';
|
|
4
|
+
export type VisibilityEvent = 'setvisibility';
|
|
5
5
|
export declare class AnnotationUpdateEmitter extends EventEmitter {
|
|
6
6
|
on(event: VisibilityEvent, listener: (isVisible: boolean) => void): this;
|
|
7
7
|
on(event: UpdateEvent, listener: (annotationId: string) => void): this;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import { CollabEditOptions } from '../collab-edit';
|
|
3
3
|
import type featureFlagsPlugin from '@atlaskit/editor-plugin-feature-flags';
|
|
4
|
-
|
|
4
|
+
type Config = {
|
|
5
5
|
collabEdit?: CollabEditOptions;
|
|
6
6
|
takeFullWidth: boolean;
|
|
7
7
|
};
|
|
@@ -7,6 +7,6 @@ export declare const stateKey: PluginKey<any, any>;
|
|
|
7
7
|
export interface PluginState {
|
|
8
8
|
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
9
9
|
}
|
|
10
|
-
export declare const getContextIdentifier: (state?: EditorState
|
|
11
|
-
declare const _default: (dispatch: Dispatch, providerFactory?: ProviderFactory
|
|
10
|
+
export declare const getContextIdentifier: (state?: EditorState) => ContextIdentifierProvider | undefined;
|
|
11
|
+
declare const _default: (dispatch: Dispatch, providerFactory?: ProviderFactory) => SafePlugin<any, any>;
|
|
12
12
|
export default _default;
|
|
@@ -9,7 +9,7 @@ export declare enum ACTIONS {
|
|
|
9
9
|
DECORATION_REMOVE = 1
|
|
10
10
|
}
|
|
11
11
|
export declare const hoverDecoration: (nodeType: NodeType | Array<NodeType>, add: boolean, className?: string) => Command;
|
|
12
|
-
export
|
|
12
|
+
export type DecorationState = {
|
|
13
13
|
decoration?: Decoration;
|
|
14
14
|
};
|
|
15
15
|
declare const _default: () => SafePlugin<DecorationState, any>;
|
|
@@ -8,5 +8,5 @@ export declare const NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
|
8
8
|
export declare const DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
9
9
|
export declare const DEFAULT_TRACK_SEVERITY_THRESHOLD_NORMAL = 100;
|
|
10
10
|
export declare const DEFAULT_TRACK_SEVERITY_THRESHOLD_DEGRADED = 500;
|
|
11
|
-
declare const _default: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, inputTracking?: InputTracking
|
|
11
|
+
declare const _default: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, inputTracking?: InputTracking, browserFreezeTracking?: BrowserFreezetracking, ufo?: boolean) => SafePlugin<any, any>;
|
|
12
12
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
|
-
|
|
3
|
+
type StateChangeHandler = (fromPos: number, toPos: number) => any;
|
|
4
4
|
export declare class ReactNodeViewState {
|
|
5
5
|
private changeHandlers;
|
|
6
6
|
constructor();
|
|
@@ -3,7 +3,7 @@ import { EditorView } from 'prosemirror-view';
|
|
|
3
3
|
export declare const GUTTER_SIZE_IN_PX = 120;
|
|
4
4
|
export declare const GUTTER_SIZE_MOBILE_IN_PX = 36;
|
|
5
5
|
export declare const GUTTER_SELECTOR = "#editor-scroll-gutter";
|
|
6
|
-
export
|
|
6
|
+
export type ScrollGutterPluginOptions = {
|
|
7
7
|
/** Element the page uses for scrolling */
|
|
8
8
|
getScrollElement?: (view: EditorView) => HTMLElement | null;
|
|
9
9
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command } from '../../../types';
|
|
2
2
|
import { HeadingLevelsAndNormalText } from '../types';
|
|
3
3
|
import { INPUT_METHOD } from '../../analytics';
|
|
4
|
-
export
|
|
4
|
+
export type InputMethod = INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.SHORTCUT | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
|
|
5
5
|
export declare function setBlockType(name: string): Command;
|
|
6
6
|
export declare function setBlockTypeWithAnalytics(name: string, inputMethod: InputMethod): Command;
|
|
7
7
|
export declare function setNormalText(): Command;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
3
|
import { BlockType } from '../types';
|
|
4
|
-
export
|
|
4
|
+
export type BlockTypeState = {
|
|
5
5
|
currentBlockType: BlockType;
|
|
6
6
|
blockTypesDisabled: boolean;
|
|
7
7
|
availableBlockTypes: BlockType[];
|
|
8
8
|
availableWrapperBlockTypes: BlockType[];
|
|
9
9
|
};
|
|
10
10
|
export declare const pluginKey: PluginKey<BlockTypeState, any>;
|
|
11
|
-
export declare const createPlugin: (dispatch: (eventName: string | PluginKey, data: any) => void, lastNodeMustBeParagraph?: boolean
|
|
11
|
+
export declare const createPlugin: (dispatch: (eventName: string | PluginKey, data: any) => void, lastNodeMustBeParagraph?: boolean) => SafePlugin<any, any>;
|
|
@@ -19,7 +19,7 @@ export declare const HEADINGS_BY_LEVEL: Record<number, BlockType>;
|
|
|
19
19
|
export declare const HEADINGS_BY_NAME: {
|
|
20
20
|
[blockType: string]: BlockType;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type BlockTypeName = 'normal' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6' | 'blockquote' | 'codeblock' | 'panel' | 'notePanel' | 'successPanel' | 'warningPanel' | 'errorPanel' | 'other';
|
|
23
23
|
export interface BlockType {
|
|
24
24
|
name: string;
|
|
25
25
|
title: MessageDescriptor;
|
|
@@ -27,9 +27,9 @@ export interface BlockType {
|
|
|
27
27
|
tagName?: string;
|
|
28
28
|
level?: HeadingLevelsAndNormalText;
|
|
29
29
|
}
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
30
|
+
export type HeadingLevels = 1 | 2 | 3 | 4 | 5 | 6;
|
|
31
|
+
export type NormalTextLevel = 0;
|
|
32
|
+
export type HeadingLevelsAndNormalText = HeadingLevels | NormalTextLevel;
|
|
33
33
|
export interface BlockTypeNode {
|
|
34
34
|
name: AllowedBlockTypes;
|
|
35
35
|
node: NodeSpec;
|
|
@@ -5,7 +5,7 @@ import { BlockTypeState } from '../../pm-plugins/main';
|
|
|
5
5
|
import { BlockType } from '../../types';
|
|
6
6
|
import { MenuItem } from '@atlaskit/editor-common/ui-menu';
|
|
7
7
|
import { EditorView } from 'prosemirror-view';
|
|
8
|
-
export
|
|
8
|
+
export type DropdownItem = MenuItem & {
|
|
9
9
|
value: BlockType;
|
|
10
10
|
};
|
|
11
11
|
export interface Props {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ThemeProps } from '@atlaskit/theme/types';
|
|
2
|
-
export declare const blockTypeMenuItemStyle: (tagName: string, selected?: boolean
|
|
2
|
+
export declare const blockTypeMenuItemStyle: (tagName: string, selected?: boolean) => (themeProps: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
3
3
|
export declare const keyboardShortcut: import("@emotion/react").SerializedStyles;
|
|
4
4
|
export declare const keyboardShortcutSelect: import("@emotion/react").SerializedStyles;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Node as PMNode } from 'prosemirror-model';
|
|
2
|
-
export declare const isNodeAWrappingBlockNode: (node?: PMNode
|
|
2
|
+
export declare const isNodeAWrappingBlockNode: (node?: PMNode | null) => boolean;
|
|
@@ -16,7 +16,7 @@ export declare class BlockCardComponent extends React.PureComponent<SmartCardPro
|
|
|
16
16
|
gapCursorSpan: () => JSX.Element | undefined;
|
|
17
17
|
render(): JSX.Element;
|
|
18
18
|
}
|
|
19
|
-
export
|
|
19
|
+
export type BlockCardNodeViewProps = Pick<SmartCardProps, 'platform' | 'showServerActions'>;
|
|
20
20
|
export declare class BlockCard extends ReactNodeView<BlockCardNodeViewProps> {
|
|
21
21
|
createDomRef(): HTMLElement;
|
|
22
22
|
render(): JSX.Element;
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import { SmartCardProps } from './genericCard';
|
|
5
5
|
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
6
6
|
import { SelectionBasedNodeView } from '../../../nodeviews/';
|
|
7
|
-
export
|
|
7
|
+
export type EmbedCardState = {
|
|
8
8
|
hasPreview: boolean;
|
|
9
9
|
liveHeight?: number;
|
|
10
10
|
initialAspectRatio?: number;
|
|
@@ -35,7 +35,7 @@ export declare class EmbedCardComponent extends React.PureComponent<SmartCardPro
|
|
|
35
35
|
onHeightUpdate: (height: number) => void;
|
|
36
36
|
render(): JSX.Element;
|
|
37
37
|
}
|
|
38
|
-
export
|
|
38
|
+
export type EmbedCardNodeViewProps = Pick<SmartCardProps, 'eventDispatcher' | 'allowResizing' | 'platform' | 'fullWidthMode' | 'dispatchAnalyticsEvent'>;
|
|
39
39
|
export declare class EmbedCard extends SelectionBasedNodeView<EmbedCardNodeViewProps> {
|
|
40
40
|
viewShouldUpdate(nextNode: PMNode): boolean;
|
|
41
41
|
createDomRef(): HTMLElement;
|
|
@@ -7,7 +7,7 @@ import { SmartCardContext } from '@atlaskit/link-provider';
|
|
|
7
7
|
import { getPosHandler, ReactComponentProps } from '../../../nodeviews';
|
|
8
8
|
import { EventDispatcher } from '../../../event-dispatcher';
|
|
9
9
|
import { DispatchAnalyticsEvent } from '../../../plugins/analytics/types';
|
|
10
|
-
export
|
|
10
|
+
export type EditorContext<T> = React.Context<T> & {
|
|
11
11
|
value: T;
|
|
12
12
|
};
|
|
13
13
|
export interface CardNodeViewProps extends ReactComponentProps {
|
|
@@ -18,5 +18,5 @@ export declare class InlineCardComponent extends React.PureComponent<SmartCardPr
|
|
|
18
18
|
}) => void;
|
|
19
19
|
render(): JSX.Element | null;
|
|
20
20
|
}
|
|
21
|
-
export
|
|
21
|
+
export type InlineCardNodeViewProps = Pick<SmartCardProps, 'useAlternativePreloader' | 'showServerActions'>;
|
|
22
22
|
export declare function InlineCardNodeView(props: InlineNodeViewComponentProps & InlineCardNodeViewProps): JSX.Element;
|
|
@@ -5,13 +5,13 @@ import { CardAdf, CardAppearance } from '@atlaskit/editor-common/provider-factor
|
|
|
5
5
|
import { ACTION } from '../../../plugins/analytics';
|
|
6
6
|
import { Command } from '../../../types';
|
|
7
7
|
import { CardReplacementInputMethod, Request } from '../types';
|
|
8
|
-
export declare const replaceQueuedUrlWithCard: (url: string, cardData: CardAdf, analyticsAction?: ACTION
|
|
8
|
+
export declare const replaceQueuedUrlWithCard: (url: string, cardData: CardAdf, analyticsAction?: ACTION) => Command;
|
|
9
9
|
export declare const handleFallbackWithAnalytics: (request: Request) => Command;
|
|
10
10
|
export declare const queueCardsFromChangedTr: (state: EditorState, tr: Transaction, source: CardReplacementInputMethod, analyticsAction: ACTION, normalizeLinkText?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined) => Transaction;
|
|
11
|
-
export declare const queueCardFromChangedTr: (state: EditorState, tr: Transaction, source: CardReplacementInputMethod, analyticsAction: ACTION, normalizeLinkText?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined, previousAppearance?:
|
|
11
|
+
export declare const queueCardFromChangedTr: (state: EditorState, tr: Transaction, source: CardReplacementInputMethod, analyticsAction: ACTION, normalizeLinkText?: boolean, sourceEvent?: UIAnalyticsEvent | null | undefined, previousAppearance?: CardAppearance | 'url') => Transaction;
|
|
12
12
|
export declare const convertHyperlinkToSmartCard: (state: EditorState, source: CardReplacementInputMethod, appearance: CardAppearance, normalizeLinkText?: boolean) => Transaction;
|
|
13
|
-
export declare const changeSelectedCardToLink: (text?: string
|
|
14
|
-
export declare const changeSelectedCardToLinkFallback: (text?: string
|
|
13
|
+
export declare const changeSelectedCardToLink: (text?: string, href?: string, sendAnalytics?: boolean, node?: Node, pos?: number) => Command;
|
|
14
|
+
export declare const changeSelectedCardToLinkFallback: (text?: string, href?: string, sendAnalytics?: boolean, node?: Node, pos?: number) => Command;
|
|
15
15
|
export declare const updateCard: (href: string, sourceEvent?: UIAnalyticsEvent | null | undefined) => Command;
|
|
16
16
|
export declare const changeSelectedCardToText: (text: string) => Command;
|
|
17
17
|
export declare const setSelectedCardAppearance: (appearance: CardAppearance) => Command;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CardPlatform } from '@atlaskit/smart-card';
|
|
1
2
|
import { Command } from '../../types';
|
|
2
3
|
import { FloatingToolbarHandler } from '../floating-toolbar/types';
|
|
3
4
|
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
@@ -6,4 +7,4 @@ import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
|
6
7
|
export declare const removeCard: Command;
|
|
7
8
|
export declare const visitCardLink: Command;
|
|
8
9
|
export declare const openLinkSettings: Command;
|
|
9
|
-
export declare const floatingToolbar: (cardOptions: CardOptions, featureFlags: FeatureFlags, platform?:
|
|
10
|
+
export declare const floatingToolbar: (cardOptions: CardOptions, featureFlags: FeatureFlags, platform?: CardPlatform, linkPickerOptions?: LinkPickerOptions) => FloatingToolbarHandler;
|
|
@@ -5,12 +5,12 @@ import { CreateUIAnalyticsEvent, UIAnalyticsEvent } from '@atlaskit/analytics-ne
|
|
|
5
5
|
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
6
6
|
import type { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
7
7
|
import { LinkPickerOptions } from '../hyperlink/types';
|
|
8
|
-
export
|
|
8
|
+
export type CardInfo = {
|
|
9
9
|
title?: string;
|
|
10
10
|
url?: string;
|
|
11
11
|
pos: number;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type Request = {
|
|
14
14
|
/**
|
|
15
15
|
* The position of the link in the doc this request for upgrade is for
|
|
16
16
|
*/
|
|
@@ -63,7 +63,7 @@ export declare type Request = {
|
|
|
63
63
|
*/
|
|
64
64
|
sourceEvent?: UIAnalyticsEvent | null | undefined;
|
|
65
65
|
};
|
|
66
|
-
|
|
66
|
+
type Metadata<T = {}> = {
|
|
67
67
|
url: string;
|
|
68
68
|
display: string;
|
|
69
69
|
isUndo?: boolean;
|
|
@@ -72,25 +72,25 @@ declare type Metadata<T = {}> = {
|
|
|
72
72
|
inputMethod?: string;
|
|
73
73
|
sourceEvent?: unknown;
|
|
74
74
|
} & T;
|
|
75
|
-
|
|
75
|
+
type UpdateMetadata = {
|
|
76
76
|
previousDisplay?: string;
|
|
77
77
|
};
|
|
78
|
-
export
|
|
78
|
+
export type SmartLinkEventsNext = {
|
|
79
79
|
created: (metadata: Metadata) => void;
|
|
80
80
|
updated: (metadata: Metadata<UpdateMetadata>) => void;
|
|
81
81
|
deleted: (metadata: Metadata) => void;
|
|
82
82
|
};
|
|
83
|
-
export
|
|
83
|
+
export type LifecycleEventType = keyof SmartLinkEventsNext;
|
|
84
84
|
/**
|
|
85
85
|
* Describes the shape of an event that will be stored
|
|
86
86
|
* in the Card state until it can be dispatched
|
|
87
87
|
* as a side-effect in a view update
|
|
88
88
|
*/
|
|
89
|
-
export
|
|
89
|
+
export type LifecycleEvent<Type extends keyof SmartLinkEventsNext = keyof SmartLinkEventsNext> = {
|
|
90
90
|
type: Type;
|
|
91
91
|
data: Parameters<SmartLinkEventsNext[Type]>[0];
|
|
92
92
|
};
|
|
93
|
-
export
|
|
93
|
+
export type CardPluginState = {
|
|
94
94
|
requests: Request[];
|
|
95
95
|
provider: CardProvider | null;
|
|
96
96
|
cards: CardInfo[];
|
|
@@ -100,43 +100,43 @@ export declare type CardPluginState = {
|
|
|
100
100
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
101
101
|
editorAppearance?: EditorAppearance;
|
|
102
102
|
};
|
|
103
|
-
export
|
|
103
|
+
export type CardPluginOptions = CardOptions & {
|
|
104
104
|
editorAppearance?: EditorAppearance;
|
|
105
105
|
platform: 'mobile' | 'web';
|
|
106
106
|
fullWidthMode?: boolean;
|
|
107
107
|
createAnalyticsEvent?: CreateUIAnalyticsEvent;
|
|
108
108
|
linkPicker?: LinkPickerOptions;
|
|
109
109
|
};
|
|
110
|
-
export
|
|
110
|
+
export type SetProvider = {
|
|
111
111
|
type: 'SET_PROVIDER';
|
|
112
112
|
provider: CardProvider | null;
|
|
113
113
|
};
|
|
114
|
-
export
|
|
114
|
+
export type Queue = {
|
|
115
115
|
type: 'QUEUE';
|
|
116
116
|
requests: Request[];
|
|
117
117
|
};
|
|
118
|
-
export
|
|
118
|
+
export type Resolve = {
|
|
119
119
|
type: 'RESOLVE';
|
|
120
120
|
url: string;
|
|
121
121
|
};
|
|
122
|
-
export
|
|
122
|
+
export type Register = {
|
|
123
123
|
type: 'REGISTER';
|
|
124
124
|
info: CardInfo;
|
|
125
125
|
};
|
|
126
|
-
export
|
|
126
|
+
export type ShowLinkToolbar = {
|
|
127
127
|
type: 'SHOW_LINK_TOOLBAR';
|
|
128
128
|
};
|
|
129
|
-
export
|
|
129
|
+
export type HideLinkToolbar = {
|
|
130
130
|
type: 'HIDE_LINK_TOOLBAR';
|
|
131
131
|
};
|
|
132
|
-
export
|
|
132
|
+
export type RegisterSmartCardEvents = {
|
|
133
133
|
type: 'REGISTER_EVENTS';
|
|
134
134
|
smartLinkEvents: SmartLinkEvents;
|
|
135
135
|
};
|
|
136
|
-
export
|
|
136
|
+
export type RegisterSmartCardEventsNext = {
|
|
137
137
|
type: 'REGISTER_EVENTS_NEXT';
|
|
138
138
|
smartLinkEvents: SmartLinkEventsNext;
|
|
139
139
|
};
|
|
140
|
-
export
|
|
141
|
-
export
|
|
140
|
+
export type CardPluginAction = SetProvider | Queue | Resolve | Register | ShowLinkToolbar | HideLinkToolbar | RegisterSmartCardEvents | RegisterSmartCardEventsNext;
|
|
141
|
+
export type CardReplacementInputMethod = INPUT_METHOD.CLIPBOARD | INPUT_METHOD.AUTO_DETECT | INPUT_METHOD.FORMATTING | INPUT_METHOD.MANUAL | INPUT_METHOD.TYPEAHEAD | INPUT_METHOD.FLOATING_TB;
|
|
142
142
|
export {};
|
|
@@ -7,7 +7,7 @@ import { LinkPickerOptions } from '../../hyperlink/types';
|
|
|
7
7
|
import { Command } from '../../../types';
|
|
8
8
|
import { FloatingToolbarItem, FloatingToolbarConfig } from '../../floating-toolbar/types';
|
|
9
9
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
10
|
-
export
|
|
10
|
+
export type EditLinkToolbarProps = {
|
|
11
11
|
view: EditorView;
|
|
12
12
|
providerFactory: ProviderFactory;
|
|
13
13
|
url: string | undefined;
|
|
@@ -20,6 +20,6 @@ export declare class LinkToolbarAppearance extends React.Component<LinkToolbarAp
|
|
|
20
20
|
static contextTypes: {
|
|
21
21
|
contextAdapter: PropTypes.Requireable<object>;
|
|
22
22
|
};
|
|
23
|
-
renderDropdown: (view?: EditorView
|
|
23
|
+
renderDropdown: (view?: EditorView, cardContext?: CardContext) => JSX.Element | null;
|
|
24
24
|
render(): JSX.Element | null;
|
|
25
25
|
}
|
|
@@ -3,11 +3,11 @@ import React from 'react';
|
|
|
3
3
|
import { jsx } from '@emotion/react';
|
|
4
4
|
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
5
5
|
import { Props as ResizerProps } from '../../../ui/Resizer/types';
|
|
6
|
-
|
|
6
|
+
type State = {
|
|
7
7
|
offsetLeft: number;
|
|
8
8
|
resizedPctWidth?: number;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type Props = Omit<ResizerProps, 'height' | 'width'> & {
|
|
11
11
|
width?: number;
|
|
12
12
|
height?: number;
|
|
13
13
|
aspectRatio: number;
|
|
@@ -40,7 +40,7 @@ export default class ResizableEmbedCard extends React.Component<Props, State> {
|
|
|
40
40
|
wrapper?: HTMLElement;
|
|
41
41
|
get wideLayoutWidth(): number;
|
|
42
42
|
calcSnapPoints(): number[];
|
|
43
|
-
calcPxWidth: (useLayout?: RichMediaLayout
|
|
43
|
+
calcPxWidth: (useLayout?: RichMediaLayout) => number;
|
|
44
44
|
get insideInlineLike(): boolean;
|
|
45
45
|
highlights: (newWidth: number, snapPoints: number[]) => string[] | number[];
|
|
46
46
|
/**
|
|
@@ -5,7 +5,7 @@ import { CardInfo } from './types';
|
|
|
5
5
|
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
6
6
|
export declare const appearanceForNodeType: (spec: NodeType) => CardAppearance | undefined;
|
|
7
7
|
export declare const selectedCardAppearance: (state: EditorState) => CardAppearance | undefined;
|
|
8
|
-
export
|
|
8
|
+
export type TitleUrlPair = {
|
|
9
9
|
title?: string;
|
|
10
10
|
url?: string;
|
|
11
11
|
};
|
|
@@ -15,7 +15,7 @@ export declare const titleUrlPairFromNode: (node: Node) => TitleUrlPair;
|
|
|
15
15
|
* @param titleUrlPair title and url information from the node attributes
|
|
16
16
|
* @param info information stored in state from the resolved UI component view
|
|
17
17
|
*/
|
|
18
|
-
export declare const mergeCardInfo: (titleUrlPair: TitleUrlPair, info?: CardInfo
|
|
19
|
-
export declare const displayInfoForCard: (node: Node, info?: CardInfo
|
|
18
|
+
export declare const mergeCardInfo: (titleUrlPair: TitleUrlPair, info?: CardInfo) => TitleUrlPair;
|
|
19
|
+
export declare const displayInfoForCard: (node: Node, info?: CardInfo) => TitleUrlPair;
|
|
20
20
|
export declare const findCardInfo: (state: EditorState) => CardInfo | undefined;
|
|
21
|
-
export declare const transformUnsupportedBlockCardToInline: (slice: Slice, state: EditorState, cardOptions?: CardOptions
|
|
21
|
+
export declare const transformUnsupportedBlockCardToInline: (slice: Slice, state: EditorState, cardOptions?: CardOptions) => Slice;
|
|
@@ -3,7 +3,7 @@ export declare const BRACKET_MAP: {
|
|
|
3
3
|
'[': string;
|
|
4
4
|
'(': string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type BracketMapKey = keyof typeof BRACKET_MAP;
|
|
7
7
|
export declare const shouldAutoCloseBracket: (before: string, after: string) => boolean;
|
|
8
8
|
export declare const getAutoClosingBracketInfo: (before: string, after: string) => {
|
|
9
9
|
left: "{" | "[" | "(" | undefined;
|
|
@@ -3,7 +3,7 @@ export declare const QUOTE_MAP: {
|
|
|
3
3
|
'"': string;
|
|
4
4
|
'`': string;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type QuoteMapKey = keyof typeof QUOTE_MAP;
|
|
7
7
|
export declare const shouldAutoCloseQuote: (before: string, after: string) => boolean;
|
|
8
8
|
export declare const getAutoClosingQuoteInfo: (before: string, after: string) => {
|
|
9
9
|
left: "\"" | "'" | "`" | undefined;
|
|
@@ -311,7 +311,7 @@ export declare const DEFAULT_LANGUAGES: ({
|
|
|
311
311
|
alias: string[];
|
|
312
312
|
value: string;
|
|
313
313
|
})[];
|
|
314
|
-
export
|
|
314
|
+
export type Language = (typeof DEFAULT_LANGUAGES)[number];
|
|
315
315
|
export declare function findMatchedLanguage(supportedLanguages: Language[], language?: string): {
|
|
316
316
|
readonly name: "PHP";
|
|
317
317
|
readonly alias: readonly ["php", "php3", "php4", "php5"];
|
|
@@ -2,7 +2,7 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
3
|
import type { EditorState, Transaction } from 'prosemirror-state';
|
|
4
4
|
export declare const copySelectionPluginKey: PluginKey<any, any>;
|
|
5
|
-
|
|
5
|
+
type CodeBlockCopySelectionPluginState = {
|
|
6
6
|
decorationStartAndEnd?: [start: number, end: number];
|
|
7
7
|
};
|
|
8
8
|
export declare function codeBlockCopySelectionPlugin(): SafePlugin<CodeBlockCopySelectionPluginState, any>;
|
|
@@ -2,4 +2,4 @@ import { Slice, Schema } from 'prosemirror-model';
|
|
|
2
2
|
import { EditorState, Selection } from 'prosemirror-state';
|
|
3
3
|
export declare function transformSliceToJoinAdjacentCodeBlocks(slice: Slice): Slice;
|
|
4
4
|
export declare const transformSingleLineCodeBlockToCodeMark: (slice: Slice, schema: Schema) => Slice<any>;
|
|
5
|
-
export declare const findCodeBlock: (state: EditorState, selection?: Selection<any> | null
|
|
5
|
+
export declare const findCodeBlock: (state: EditorState, selection?: Selection<any> | null) => import("prosemirror-utils").ContentNodeWithPos | undefined;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Selection } from 'prosemirror-state';
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { CollabEventInitData, CollabEventRemoteData, CollabEventConnectionData, CollabEventPresenceData, CollabEventTelepointerData, CollabSendableSelection, PrivateCollabEditOptions } from './types';
|
|
4
|
-
export declare const handleInit: (initData: CollabEventInitData, view: EditorView, options?: PrivateCollabEditOptions
|
|
4
|
+
export declare const handleInit: (initData: CollabEventInitData, view: EditorView, options?: PrivateCollabEditOptions) => void;
|
|
5
5
|
export declare const handleConnection: (connectionData: CollabEventConnectionData, view: EditorView) => void;
|
|
6
6
|
export declare const handlePresence: (presenceData: CollabEventPresenceData, view: EditorView) => void;
|
|
7
7
|
export declare const applyRemoteData: (remoteData: CollabEventRemoteData, view: EditorView, options: PrivateCollabEditOptions) => void;
|
|
8
|
-
export declare const applyRemoteSteps: (json: any[], view: EditorView, userIds?: (
|
|
8
|
+
export declare const applyRemoteSteps: (json: any[], view: EditorView, userIds?: (number | string)[], options?: PrivateCollabEditOptions) => void;
|
|
9
9
|
export declare const handleTelePointer: (telepointerData: CollabEventTelepointerData, view: EditorView) => void;
|
|
10
10
|
export declare const getSendableSelection: (selection: Selection) => CollabSendableSelection;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditorState, Transaction } from 'prosemirror-state';
|
|
2
2
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
3
|
export declare const addSynchronyErrorAnalytics: (state: EditorState, tr: Transaction, featureFlags: FeatureFlags) => (error: Error) => Transaction<any>;
|
|
4
|
-
export
|
|
4
|
+
export type EntityEventType = 'error' | 'disconnected';
|
|
5
5
|
export declare const addSynchronyEntityAnalytics: (state: EditorState, tr: Transaction) => (type: EntityEventType) => Transaction<any>;
|
|
@@ -3,7 +3,7 @@ import type { CollabEventInitData, CollabEventConnectionData, CollabEventPresenc
|
|
|
3
3
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import { PrivateCollabEditOptions } from '../types';
|
|
5
5
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
6
|
-
export
|
|
6
|
+
export type SynchronyEntity = {
|
|
7
7
|
on: (evt: 'disconnected' | 'error', handler: (...args: any) => void) => void;
|
|
8
8
|
off: (evt: 'disconnected' | 'error', handler: (...args: any) => void) => void;
|
|
9
9
|
};
|
|
@@ -19,5 +19,5 @@ export interface CollabHandlers {
|
|
|
19
19
|
entity: SynchronyEntity;
|
|
20
20
|
}) => void;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type Cleanup = () => void;
|
|
23
23
|
export declare const subscribe: (currentDeps_0: EditorView<any>, currentDeps_1: CollabEditProvider<import("@atlaskit/editor-common/collab").CollabEventData>, currentDeps_2: PrivateCollabEditOptions, currentDeps_3: FeatureFlags, currentDeps_4?: ProviderFactory | undefined) => Cleanup;
|