@atlaskit/editor-core 185.8.2 → 185.9.0
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 +17 -0
- package/dist/cjs/commands/index.js +1 -1
- package/dist/cjs/plugins/annotation/index.js +1 -1
- package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +14 -14
- package/dist/cjs/plugins/annotation/ui/InlineCommentView.js +7 -6
- package/dist/cjs/plugins/annotation/utils.js +5 -4
- package/dist/cjs/plugins/base/pm-plugins/composition.js +2 -1
- package/dist/cjs/plugins/base/pm-plugins/disable-spell-checking.js +4 -4
- package/dist/cjs/plugins/base/pm-plugins/newline-preserve-marks.js +1 -5
- package/dist/cjs/plugins/block-type/commands/delete-and-move-cursor.js +1 -1
- package/dist/cjs/plugins/block-type/commands/delete-block-content.js +1 -1
- package/dist/cjs/plugins/breakout/index.js +8 -2
- package/dist/cjs/plugins/breakout/plugin-key.js +1 -1
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +6 -0
- package/dist/cjs/plugins/card/index.js +1 -1
- package/dist/cjs/plugins/card/toolbar.js +6 -6
- package/dist/cjs/plugins/card/utils.js +3 -0
- package/dist/cjs/plugins/code-block/pm-plugins/keymaps.js +1 -1
- package/dist/cjs/plugins/collab-edit/events/initialize.js +1 -1
- package/dist/cjs/plugins/collab-edit/events/send-transaction.js +4 -3
- package/dist/cjs/plugins/collab-edit/get-participants-count.js +4 -1
- package/dist/cjs/plugins/collab-edit/plugin.js +3 -2
- package/dist/cjs/plugins/custom-autoformat/index.js +3 -1
- package/dist/cjs/plugins/date/actions.js +11 -12
- package/dist/cjs/plugins/date/index.js +14 -14
- package/dist/cjs/plugins/editor-disabled/index.js +7 -1
- package/dist/cjs/plugins/emoji/index.js +14 -14
- package/dist/cjs/plugins/expand/commands.js +2 -2
- package/dist/cjs/plugins/expand/index.js +3 -0
- package/dist/cjs/plugins/expand/nodeviews/index.js +2 -0
- package/dist/cjs/plugins/fragment/pm-plugins/fragment-consistency.js +11 -4
- package/dist/cjs/plugins/hyperlink/commands.js +3 -2
- package/dist/cjs/plugins/image-upload/pm-plugins/commands.js +2 -2
- package/dist/cjs/plugins/list/actions/outdent-list-items-selected.js +1 -0
- package/dist/cjs/plugins/macro/actions.js +2 -2
- package/dist/cjs/plugins/media/commands/helpers.js +6 -0
- package/dist/cjs/plugins/media/index.js +2 -2
- package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +17 -13
- package/dist/cjs/plugins/media/nodeviews/mediaNodeView/media.js +10 -5
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +1 -1
- package/dist/cjs/plugins/media/toolbar/commands.js +2 -0
- package/dist/cjs/plugins/media/utils/media-common.js +1 -0
- package/dist/cjs/plugins/paste/edge-cases/lists.js +1 -0
- package/dist/cjs/plugins/paste/handlers.js +4 -3
- package/dist/cjs/plugins/paste/pm-plugins/main.js +2 -0
- package/dist/cjs/plugins/paste/util/index.js +2 -2
- package/dist/cjs/plugins/quick-insert/search.js +2 -2
- package/dist/cjs/plugins/save-on-enter/index.js +1 -1
- package/dist/cjs/plugins/selection/gap-cursor/utils/place-gap-cursor.js +1 -0
- package/dist/cjs/plugins/selection/pm-plugins/gap-cursor-main.js +2 -2
- package/dist/cjs/plugins/status/actions.js +4 -4
- package/dist/cjs/plugins/status/plugin.js +3 -3
- package/dist/cjs/plugins/submit-editor/index.js +3 -0
- package/dist/cjs/plugins/text-color/commands/change-color.js +3 -3
- package/dist/cjs/plugins/text-formatting/commands/transform-to-code.js +1 -1
- package/dist/cjs/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +4 -1
- package/dist/cjs/plugins/toolbar-lists-indentation/ui/onItemActivated.js +4 -2
- package/dist/cjs/plugins/type-ahead/commands/update-query.js +1 -1
- package/dist/cjs/plugins/type-ahead/commands/update-selected-index.js +1 -1
- package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +1 -1
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +2 -2
- package/dist/cjs/plugins/type-ahead/ui/WrapperTypeAhead.js +3 -3
- package/dist/cjs/plugins/type-ahead/utils.js +5 -3
- package/dist/cjs/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.js +1 -1
- package/dist/cjs/utils/mark.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/commands/index.js +1 -1
- package/dist/es2019/plugins/annotation/index.js +1 -1
- package/dist/es2019/plugins/annotation/pm-plugins/inline-comment.js +8 -10
- package/dist/es2019/plugins/annotation/ui/InlineCommentView.js +2 -2
- package/dist/es2019/plugins/annotation/utils.js +3 -3
- package/dist/es2019/plugins/base/pm-plugins/composition.js +2 -1
- package/dist/es2019/plugins/base/pm-plugins/disable-spell-checking.js +4 -4
- package/dist/es2019/plugins/base/pm-plugins/newline-preserve-marks.js +1 -3
- package/dist/es2019/plugins/block-type/commands/delete-and-move-cursor.js +1 -1
- package/dist/es2019/plugins/block-type/commands/delete-block-content.js +1 -1
- package/dist/es2019/plugins/breakout/index.js +8 -2
- package/dist/es2019/plugins/breakout/plugin-key.js +1 -1
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +6 -0
- package/dist/es2019/plugins/card/index.js +1 -1
- package/dist/es2019/plugins/card/toolbar.js +6 -6
- package/dist/es2019/plugins/card/utils.js +3 -0
- package/dist/es2019/plugins/code-block/pm-plugins/keymaps.js +1 -1
- package/dist/es2019/plugins/collab-edit/events/initialize.js +1 -1
- package/dist/es2019/plugins/collab-edit/events/send-transaction.js +3 -3
- package/dist/es2019/plugins/collab-edit/get-participants-count.js +4 -1
- package/dist/es2019/plugins/collab-edit/plugin.js +3 -2
- package/dist/es2019/plugins/custom-autoformat/index.js +3 -1
- package/dist/es2019/plugins/date/actions.js +9 -10
- package/dist/es2019/plugins/date/index.js +3 -3
- package/dist/es2019/plugins/editor-disabled/index.js +7 -1
- package/dist/es2019/plugins/emoji/index.js +2 -2
- package/dist/es2019/plugins/expand/commands.js +2 -2
- package/dist/es2019/plugins/expand/index.js +3 -0
- package/dist/es2019/plugins/expand/nodeviews/index.js +2 -0
- package/dist/es2019/plugins/fragment/pm-plugins/fragment-consistency.js +8 -4
- package/dist/es2019/plugins/hyperlink/commands.js +3 -2
- package/dist/es2019/plugins/image-upload/pm-plugins/commands.js +2 -2
- package/dist/es2019/plugins/list/actions/outdent-list-items-selected.js +1 -0
- package/dist/es2019/plugins/macro/actions.js +2 -2
- package/dist/es2019/plugins/media/commands/helpers.js +6 -0
- package/dist/es2019/plugins/media/index.js +2 -2
- package/dist/es2019/plugins/media/nodeviews/mediaGroup.js +8 -5
- package/dist/es2019/plugins/media/nodeviews/mediaNodeView/media.js +10 -5
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +1 -1
- package/dist/es2019/plugins/media/toolbar/commands.js +2 -0
- package/dist/es2019/plugins/media/utils/media-common.js +1 -0
- package/dist/es2019/plugins/paste/edge-cases/lists.js +1 -0
- package/dist/es2019/plugins/paste/handlers.js +4 -3
- package/dist/es2019/plugins/paste/pm-plugins/main.js +2 -0
- package/dist/es2019/plugins/paste/util/index.js +2 -2
- package/dist/es2019/plugins/quick-insert/search.js +2 -2
- package/dist/es2019/plugins/save-on-enter/index.js +1 -1
- package/dist/es2019/plugins/selection/gap-cursor/utils/place-gap-cursor.js +1 -0
- package/dist/es2019/plugins/selection/pm-plugins/gap-cursor-main.js +2 -2
- package/dist/es2019/plugins/status/actions.js +2 -2
- package/dist/es2019/plugins/status/plugin.js +1 -1
- package/dist/es2019/plugins/submit-editor/index.js +3 -0
- package/dist/es2019/plugins/text-color/commands/change-color.js +3 -3
- package/dist/es2019/plugins/text-formatting/commands/transform-to-code.js +1 -1
- package/dist/es2019/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +6 -1
- package/dist/es2019/plugins/toolbar-lists-indentation/ui/onItemActivated.js +4 -2
- package/dist/es2019/plugins/type-ahead/commands/update-query.js +1 -1
- package/dist/es2019/plugins/type-ahead/commands/update-selected-index.js +1 -1
- package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +1 -1
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +1 -1
- package/dist/es2019/plugins/type-ahead/ui/WrapperTypeAhead.js +1 -1
- package/dist/es2019/plugins/type-ahead/utils.js +5 -3
- package/dist/es2019/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.js +1 -1
- package/dist/es2019/utils/mark.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/commands/index.js +1 -1
- package/dist/esm/plugins/annotation/index.js +1 -1
- package/dist/esm/plugins/annotation/pm-plugins/inline-comment.js +14 -14
- package/dist/esm/plugins/annotation/ui/InlineCommentView.js +7 -6
- package/dist/esm/plugins/annotation/utils.js +5 -4
- package/dist/esm/plugins/base/pm-plugins/composition.js +2 -1
- package/dist/esm/plugins/base/pm-plugins/disable-spell-checking.js +4 -4
- package/dist/esm/plugins/base/pm-plugins/newline-preserve-marks.js +1 -5
- package/dist/esm/plugins/block-type/commands/delete-and-move-cursor.js +1 -1
- package/dist/esm/plugins/block-type/commands/delete-block-content.js +1 -1
- package/dist/esm/plugins/breakout/index.js +8 -2
- package/dist/esm/plugins/breakout/plugin-key.js +1 -1
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +6 -0
- package/dist/esm/plugins/card/index.js +1 -1
- package/dist/esm/plugins/card/toolbar.js +6 -6
- package/dist/esm/plugins/card/utils.js +3 -0
- package/dist/esm/plugins/code-block/pm-plugins/keymaps.js +1 -1
- package/dist/esm/plugins/collab-edit/events/initialize.js +1 -1
- package/dist/esm/plugins/collab-edit/events/send-transaction.js +4 -3
- package/dist/esm/plugins/collab-edit/get-participants-count.js +4 -1
- package/dist/esm/plugins/collab-edit/plugin.js +3 -2
- package/dist/esm/plugins/custom-autoformat/index.js +3 -1
- package/dist/esm/plugins/date/actions.js +11 -12
- package/dist/esm/plugins/date/index.js +14 -14
- package/dist/esm/plugins/editor-disabled/index.js +7 -1
- package/dist/esm/plugins/emoji/index.js +14 -14
- package/dist/esm/plugins/expand/commands.js +2 -2
- package/dist/esm/plugins/expand/index.js +3 -0
- package/dist/esm/plugins/expand/nodeviews/index.js +2 -0
- package/dist/esm/plugins/fragment/pm-plugins/fragment-consistency.js +10 -4
- package/dist/esm/plugins/hyperlink/commands.js +3 -2
- package/dist/esm/plugins/image-upload/pm-plugins/commands.js +2 -2
- package/dist/esm/plugins/list/actions/outdent-list-items-selected.js +1 -0
- package/dist/esm/plugins/macro/actions.js +2 -2
- package/dist/esm/plugins/media/commands/helpers.js +6 -0
- package/dist/esm/plugins/media/index.js +2 -2
- package/dist/esm/plugins/media/nodeviews/mediaGroup.js +17 -13
- package/dist/esm/plugins/media/nodeviews/mediaNodeView/media.js +10 -5
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +1 -1
- package/dist/esm/plugins/media/toolbar/commands.js +2 -0
- package/dist/esm/plugins/media/utils/media-common.js +1 -0
- package/dist/esm/plugins/paste/edge-cases/lists.js +1 -0
- package/dist/esm/plugins/paste/handlers.js +4 -3
- package/dist/esm/plugins/paste/pm-plugins/main.js +2 -0
- package/dist/esm/plugins/paste/util/index.js +2 -2
- package/dist/esm/plugins/quick-insert/search.js +2 -2
- package/dist/esm/plugins/save-on-enter/index.js +1 -1
- package/dist/esm/plugins/selection/gap-cursor/utils/place-gap-cursor.js +1 -0
- package/dist/esm/plugins/selection/pm-plugins/gap-cursor-main.js +2 -2
- package/dist/esm/plugins/status/actions.js +4 -4
- package/dist/esm/plugins/status/plugin.js +3 -3
- package/dist/esm/plugins/submit-editor/index.js +3 -0
- package/dist/esm/plugins/text-color/commands/change-color.js +3 -3
- package/dist/esm/plugins/text-formatting/commands/transform-to-code.js +1 -1
- package/dist/esm/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +4 -1
- package/dist/esm/plugins/toolbar-lists-indentation/ui/onItemActivated.js +4 -2
- package/dist/esm/plugins/type-ahead/commands/update-query.js +1 -1
- package/dist/esm/plugins/type-ahead/commands/update-selected-index.js +1 -1
- package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +1 -1
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +2 -2
- package/dist/esm/plugins/type-ahead/ui/WrapperTypeAhead.js +3 -3
- package/dist/esm/plugins/type-ahead/utils.js +5 -3
- package/dist/esm/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.js +1 -1
- package/dist/esm/utils/mark.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/commands/index.d.ts +2 -2
- package/dist/types/create-editor/ReactEditorViewInternal.d.ts +2 -2
- package/dist/types/extensibility.d.ts +3 -1
- package/dist/types/labs/next/presets/cxhtml.d.ts +17 -15
- package/dist/types/labs/next/presets/default.d.ts +32 -30
- package/dist/types/labs/next/presets/mobile.d.ts +17 -15
- package/dist/types/plugins/alignment/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/analytics/index.d.ts +3 -1
- package/dist/types/plugins/analytics/plugin-key.d.ts +1 -1
- package/dist/types/plugins/annotation/commands/transform.d.ts +5 -5
- package/dist/types/plugins/annotation/pm-plugins/inline-comment.d.ts +1 -1
- package/dist/types/plugins/annotation/pm-plugins/plugin-factory.d.ts +3 -1
- package/dist/types/plugins/annotation/pm-plugins/types.d.ts +1 -1
- package/dist/types/plugins/annotation/utils.d.ts +5 -4
- package/dist/types/plugins/base/pm-plugins/better-type-history.d.ts +2 -2
- package/dist/types/plugins/base/pm-plugins/composition.d.ts +2 -2
- package/dist/types/plugins/base/pm-plugins/context-identifier.d.ts +2 -2
- package/dist/types/plugins/base/pm-plugins/disable-spell-checking.d.ts +1 -1
- package/dist/types/plugins/base/pm-plugins/filter-steps.d.ts +1 -1
- package/dist/types/plugins/base/pm-plugins/fix-chrome-88-selection.d.ts +2 -2
- package/dist/types/plugins/base/pm-plugins/focus-handler.d.ts +2 -2
- package/dist/types/plugins/base/pm-plugins/frozen-editor.d.ts +2 -2
- package/dist/types/plugins/base/pm-plugins/inline-cursor-target.d.ts +2 -2
- package/dist/types/plugins/base/pm-plugins/newline-preserve-marks.d.ts +2 -2
- package/dist/types/plugins/base/pm-plugins/scroll-gutter.d.ts +1 -1
- package/dist/types/plugins/block-type/commands/delete-and-move-cursor.d.ts +1 -1
- package/dist/types/plugins/block-type/commands/delete-block-content.d.ts +1 -1
- package/dist/types/plugins/block-type/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/breakout/plugin-key.d.ts +2 -2
- package/dist/types/plugins/breakout/types.d.ts +1 -1
- package/dist/types/plugins/caption/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/caption/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/plugins/card/pm-plugins/actions.d.ts +13 -13
- package/dist/types/plugins/card/pm-plugins/doc.d.ts +1 -1
- package/dist/types/plugins/card/pm-plugins/mountHyperlink.d.ts +1 -1
- package/dist/types/plugins/card/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/plugins/card/ui/DatasourceModal.d.ts +1 -1
- package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +1 -1
- package/dist/types/plugins/card/ui/ResizableEmbedCard.d.ts +2 -1
- package/dist/types/plugins/clear-marks-on-change-to-empty-document/index.d.ts +1 -1
- package/dist/types/plugins/clipboard/plugin-key.d.ts +1 -1
- package/dist/types/plugins/clipboard/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/code-bidi-warning/plugin-key.d.ts +1 -1
- package/dist/types/plugins/code-bidi-warning/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +5 -3
- package/dist/types/plugins/code-block/plugin-key.d.ts +1 -1
- package/dist/types/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.d.ts +2 -6
- package/dist/types/plugins/code-block/pm-plugins/ide-ux.d.ts +1 -1
- package/dist/types/plugins/code-block/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/code-block/refresh-browser-selection.d.ts +1 -1
- package/dist/types/plugins/code-block/utils.d.ts +2 -2
- package/dist/types/plugins/collab-edit/analytics.d.ts +2 -2
- package/dist/types/plugins/collab-edit/events/handlers.d.ts +1 -1
- package/dist/types/plugins/collab-edit/events/send-transaction.d.ts +2 -2
- package/dist/types/plugins/collab-edit/native-collab-provider-plugin.d.ts +1 -1
- package/dist/types/plugins/collab-edit/plugin-key.d.ts +1 -1
- package/dist/types/plugins/collab-edit/plugin-state.d.ts +1 -1
- package/dist/types/plugins/collab-edit/plugin.d.ts +1 -1
- package/dist/types/plugins/collab-edit/ui/avatars-with-plugin-state.d.ts +2 -2
- package/dist/types/plugins/collab-edit/utils.d.ts +3 -1
- package/dist/types/plugins/copy-button/pm-plugins/main.d.ts +1 -10
- package/dist/types/plugins/copy-button/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/plugins/copy-button/toolbar.d.ts +3 -1
- package/dist/types/plugins/custom-autoformat/index.d.ts +1 -2
- package/dist/types/plugins/custom-autoformat/utils.d.ts +1 -1
- package/dist/types/plugins/date/pm-plugins/main.d.ts +3 -1
- package/dist/types/plugins/date/pm-plugins/plugin-key.d.ts +1 -1
- 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/pm-plugins/ascii-input-rules.d.ts +2 -2
- package/dist/types/plugins/expand/commands.d.ts +1 -1
- package/dist/types/plugins/expand/nodeviews/index.d.ts +2 -2
- package/dist/types/plugins/expand/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/expand/pm-plugins/plugin-factory.d.ts +4 -2
- package/dist/types/plugins/extension/actions.d.ts +3 -3
- package/dist/types/plugins/extension/plugin-factory.d.ts +5 -3
- package/dist/types/plugins/extension/plugin-key.d.ts +1 -1
- package/dist/types/plugins/extension/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/extension/pm-plugins/unique-id.d.ts +1 -1
- package/dist/types/plugins/fake-text-cursor/index.d.ts +2 -2
- package/dist/types/plugins/find-replace/keymap.d.ts +1 -1
- package/dist/types/plugins/find-replace/plugin.d.ts +4 -2
- package/dist/types/plugins/find-replace/types.d.ts +1 -1
- package/dist/types/plugins/find-replace/utils/index.d.ts +4 -3
- package/dist/types/plugins/floating-toolbar/index.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +3 -1
- package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +1 -1
- package/dist/types/plugins/fragment/plugin-key.d.ts +1 -1
- package/dist/types/plugins/fragment/pm-plugins/fragment-consistency.d.ts +1 -1
- package/dist/types/plugins/help-dialog/index.d.ts +1 -1
- package/dist/types/plugins/help-dialog/plugin-key.d.ts +1 -1
- package/dist/types/plugins/history/index.d.ts +1 -1
- package/dist/types/plugins/hyperlink/commands.d.ts +1 -1
- package/dist/types/plugins/hyperlink/pm-plugins/fake-curor-for-toolbar-plugin-key.d.ts +1 -1
- package/dist/types/plugins/hyperlink/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/hyperlink/pm-plugins/toolbar-buttons.d.ts +2 -2
- package/dist/types/plugins/image-upload/pm-plugins/actions.d.ts +1 -1
- package/dist/types/plugins/image-upload/pm-plugins/main.d.ts +2 -1
- package/dist/types/plugins/image-upload/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/plugins/jira-issue/index.d.ts +1 -1
- package/dist/types/plugins/layout/actions.d.ts +2 -2
- package/dist/types/plugins/layout/pm-plugins/main.d.ts +2 -1
- package/dist/types/plugins/layout/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/plugins/list/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/list/transforms.d.ts +2 -2
- package/dist/types/plugins/list/utils/selection.d.ts +1 -1
- package/dist/types/plugins/macro/index.d.ts +1 -1
- package/dist/types/plugins/macro/plugin-key.d.ts +1 -1
- package/dist/types/plugins/max-content-size/index.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/alt-text/index.d.ts +5 -3
- package/dist/types/plugins/media/pm-plugins/linking/index.d.ts +5 -3
- package/dist/types/plugins/media/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/media-editor-plugin-factory.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/plugins/media/toolbar/utils.d.ts +3 -1
- package/dist/types/plugins/media/ui/ResizableMediaSingle/index.d.ts +2 -1
- package/dist/types/plugins/media/utils/media-common.d.ts +1 -1
- package/dist/types/plugins/media/utils/media-single.d.ts +2 -2
- package/dist/types/plugins/mentions/pm-plugins/key.d.ts +1 -1
- package/dist/types/plugins/mentions/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/mobile-dimensions/plugin-factory.d.ts +4 -2
- package/dist/types/plugins/mobile-selection/mobile-selection-plugin.d.ts +1 -1
- package/dist/types/plugins/panel/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/panel/types.d.ts +1 -1
- package/dist/types/plugins/panel/utils.d.ts +1 -1
- package/dist/types/plugins/paste/edge-cases/index.d.ts +1 -1
- package/dist/types/plugins/paste/edge-cases/lists.d.ts +1 -1
- package/dist/types/plugins/paste/handlers.d.ts +2 -2
- package/dist/types/plugins/paste/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/paste/pm-plugins/plugin-factory.d.ts +4 -2
- package/dist/types/plugins/paste/util/index.d.ts +2 -2
- package/dist/types/plugins/placeholder/index.d.ts +1 -1
- package/dist/types/plugins/placeholder-text/plugin-key.d.ts +1 -1
- package/dist/types/plugins/quick-insert/index.d.ts +1 -1
- package/dist/types/plugins/quick-insert/plugin-key.d.ts +1 -1
- package/dist/types/plugins/quick-insert/search.d.ts +1 -1
- package/dist/types/plugins/rule/pm-plugins/input-rule.d.ts +1 -1
- package/dist/types/plugins/scroll-into-view/index.d.ts +1 -1
- package/dist/types/plugins/selection/gap-cursor/utils/place-gap-cursor.d.ts +1 -1
- package/dist/types/plugins/selection/plugin-factory.d.ts +3 -1
- package/dist/types/plugins/selection/pm-plugins/gap-cursor-main.d.ts +1 -1
- package/dist/types/plugins/selection/pm-plugins/gap-cursor-plugin-key.d.ts +1 -1
- package/dist/types/plugins/selection/pm-plugins/keymap.d.ts +1 -1
- package/dist/types/plugins/selection/pm-plugins/selection-main.d.ts +1 -1
- package/dist/types/plugins/selection/types.d.ts +1 -1
- package/dist/types/plugins/status/plugin-key.d.ts +1 -1
- package/dist/types/plugins/status/plugin.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/helpers.d.ts +2 -1
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/plugins/text-color/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/text-formatting/pm-plugins/clear-formatting.d.ts +2 -2
- package/dist/types/plugins/text-formatting/pm-plugins/cursor.d.ts +1 -1
- package/dist/types/plugins/text-formatting/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/text-formatting/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/plugins/text-formatting/pm-plugins/smart-input-rule.d.ts +1 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/index.d.ts +2 -2
- package/dist/types/plugins/text-formatting/utils.d.ts +2 -2
- package/dist/types/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.d.ts +2 -2
- package/dist/types/plugins/type-ahead/api.d.ts +2 -2
- package/dist/types/plugins/type-ahead/pm-plugins/key.d.ts +1 -1
- package/dist/types/plugins/type-ahead/pm-plugins/utils.d.ts +1 -1
- package/dist/types/plugins/type-ahead/ui/WrapperTypeAhead.d.ts +1 -1
- package/dist/types/plugins/type-ahead/utils.d.ts +4 -4
- package/dist/types/plugins/undo-redo/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types/plugins/unsupported-content/index.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/types/editor-config.d.ts +1 -1
- package/dist/types/ui/Addon/click-area-helper.d.ts +1 -1
- package/dist/types/ui/ToolbarArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types/utils/action.d.ts +60 -2
- package/dist/types/utils/cell-selection.d.ts +1 -1
- package/dist/types/utils/commands.d.ts +1 -1
- package/dist/types/utils/document.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types/utils/keymap.d.ts +1 -1
- package/dist/types/utils/mark.d.ts +2 -2
- package/dist/types/utils/performance/instrumented-plugin.d.ts +2 -3
- package/dist/types-ts4.5/commands/index.d.ts +2 -2
- package/dist/types-ts4.5/create-editor/ReactEditorViewInternal.d.ts +2 -2
- package/dist/types-ts4.5/extensibility.d.ts +3 -1
- package/dist/types-ts4.5/labs/next/presets/cxhtml.d.ts +17 -15
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +32 -30
- package/dist/types-ts4.5/labs/next/presets/mobile.d.ts +17 -15
- package/dist/types-ts4.5/plugins/alignment/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/analytics/index.d.ts +3 -1
- package/dist/types-ts4.5/plugins/analytics/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/annotation/commands/transform.d.ts +5 -5
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/inline-comment.d.ts +1 -1
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/plugin-factory.d.ts +3 -1
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/annotation/utils.d.ts +5 -4
- package/dist/types-ts4.5/plugins/base/pm-plugins/better-type-history.d.ts +2 -2
- package/dist/types-ts4.5/plugins/base/pm-plugins/composition.d.ts +2 -2
- package/dist/types-ts4.5/plugins/base/pm-plugins/context-identifier.d.ts +2 -2
- package/dist/types-ts4.5/plugins/base/pm-plugins/disable-spell-checking.d.ts +1 -1
- package/dist/types-ts4.5/plugins/base/pm-plugins/filter-steps.d.ts +1 -1
- package/dist/types-ts4.5/plugins/base/pm-plugins/fix-chrome-88-selection.d.ts +2 -2
- package/dist/types-ts4.5/plugins/base/pm-plugins/focus-handler.d.ts +2 -2
- package/dist/types-ts4.5/plugins/base/pm-plugins/frozen-editor.d.ts +2 -2
- package/dist/types-ts4.5/plugins/base/pm-plugins/inline-cursor-target.d.ts +2 -2
- package/dist/types-ts4.5/plugins/base/pm-plugins/newline-preserve-marks.d.ts +2 -2
- package/dist/types-ts4.5/plugins/base/pm-plugins/scroll-gutter.d.ts +1 -1
- package/dist/types-ts4.5/plugins/block-type/commands/delete-and-move-cursor.d.ts +1 -1
- package/dist/types-ts4.5/plugins/block-type/commands/delete-block-content.d.ts +1 -1
- package/dist/types-ts4.5/plugins/block-type/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/plugins/breakout/plugin-key.d.ts +2 -2
- package/dist/types-ts4.5/plugins/breakout/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/caption/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/caption/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/pm-plugins/actions.d.ts +13 -13
- package/dist/types-ts4.5/plugins/card/pm-plugins/doc.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/pm-plugins/mountHyperlink.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/ui/DatasourceModal.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/ui/EditLinkToolbar.d.ts +1 -1
- package/dist/types-ts4.5/plugins/card/ui/ResizableEmbedCard.d.ts +2 -1
- package/dist/types-ts4.5/plugins/clear-marks-on-change-to-empty-document/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/clipboard/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/clipboard/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/code-bidi-warning/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +5 -3
- package/dist/types-ts4.5/plugins/code-block/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.d.ts +2 -9
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/ide-ux.d.ts +1 -1
- package/dist/types-ts4.5/plugins/code-block/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/code-block/refresh-browser-selection.d.ts +1 -1
- package/dist/types-ts4.5/plugins/code-block/utils.d.ts +2 -2
- package/dist/types-ts4.5/plugins/collab-edit/analytics.d.ts +2 -2
- package/dist/types-ts4.5/plugins/collab-edit/events/handlers.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/events/send-transaction.d.ts +2 -2
- package/dist/types-ts4.5/plugins/collab-edit/native-collab-provider-plugin.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/plugin-state.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/plugin.d.ts +1 -1
- package/dist/types-ts4.5/plugins/collab-edit/ui/avatars-with-plugin-state.d.ts +2 -2
- package/dist/types-ts4.5/plugins/collab-edit/utils.d.ts +3 -1
- package/dist/types-ts4.5/plugins/copy-button/pm-plugins/main.d.ts +1 -10
- package/dist/types-ts4.5/plugins/copy-button/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/copy-button/toolbar.d.ts +3 -1
- package/dist/types-ts4.5/plugins/custom-autoformat/index.d.ts +1 -2
- package/dist/types-ts4.5/plugins/custom-autoformat/utils.d.ts +1 -1
- package/dist/types-ts4.5/plugins/date/pm-plugins/main.d.ts +3 -1
- package/dist/types-ts4.5/plugins/date/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/editor-disabled/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/emoji/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/emoji/pm-plugins/ascii-input-rules.d.ts +2 -2
- package/dist/types-ts4.5/plugins/expand/commands.d.ts +1 -1
- package/dist/types-ts4.5/plugins/expand/nodeviews/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/expand/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/expand/pm-plugins/plugin-factory.d.ts +4 -2
- package/dist/types-ts4.5/plugins/extension/actions.d.ts +3 -3
- package/dist/types-ts4.5/plugins/extension/plugin-factory.d.ts +5 -3
- package/dist/types-ts4.5/plugins/extension/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/extension/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/extension/pm-plugins/unique-id.d.ts +1 -1
- package/dist/types-ts4.5/plugins/fake-text-cursor/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/find-replace/keymap.d.ts +1 -1
- package/dist/types-ts4.5/plugins/find-replace/plugin.d.ts +4 -2
- package/dist/types-ts4.5/plugins/find-replace/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/find-replace/utils/index.d.ts +4 -3
- package/dist/types-ts4.5/plugins/floating-toolbar/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/force-focus/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-factory.d.ts +3 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/floating-toolbar/pm-plugins/toolbar-data/plugin.d.ts +1 -1
- package/dist/types-ts4.5/plugins/fragment/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/fragment/pm-plugins/fragment-consistency.d.ts +1 -1
- package/dist/types-ts4.5/plugins/help-dialog/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/help-dialog/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/history/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/hyperlink/commands.d.ts +1 -1
- package/dist/types-ts4.5/plugins/hyperlink/pm-plugins/fake-curor-for-toolbar-plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/hyperlink/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/plugins/hyperlink/pm-plugins/toolbar-buttons.d.ts +2 -2
- package/dist/types-ts4.5/plugins/image-upload/pm-plugins/actions.d.ts +1 -1
- package/dist/types-ts4.5/plugins/image-upload/pm-plugins/main.d.ts +2 -1
- package/dist/types-ts4.5/plugins/image-upload/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/jira-issue/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/layout/actions.d.ts +2 -2
- package/dist/types-ts4.5/plugins/layout/pm-plugins/main.d.ts +2 -1
- package/dist/types-ts4.5/plugins/layout/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/list/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/list/transforms.d.ts +2 -2
- package/dist/types-ts4.5/plugins/list/utils/selection.d.ts +1 -1
- package/dist/types-ts4.5/plugins/macro/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/macro/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/max-content-size/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/pm-plugins/alt-text/index.d.ts +5 -3
- package/dist/types-ts4.5/plugins/media/pm-plugins/linking/index.d.ts +5 -3
- package/dist/types-ts4.5/plugins/media/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/pm-plugins/media-editor-plugin-factory.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/toolbar/utils.d.ts +3 -1
- package/dist/types-ts4.5/plugins/media/ui/ResizableMediaSingle/index.d.ts +2 -1
- package/dist/types-ts4.5/plugins/media/utils/media-common.d.ts +1 -1
- package/dist/types-ts4.5/plugins/media/utils/media-single.d.ts +2 -2
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/mobile-dimensions/plugin-factory.d.ts +4 -2
- package/dist/types-ts4.5/plugins/mobile-selection/mobile-selection-plugin.d.ts +1 -1
- package/dist/types-ts4.5/plugins/panel/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/panel/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/panel/utils.d.ts +1 -1
- package/dist/types-ts4.5/plugins/paste/edge-cases/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/paste/edge-cases/lists.d.ts +1 -1
- package/dist/types-ts4.5/plugins/paste/handlers.d.ts +2 -2
- package/dist/types-ts4.5/plugins/paste/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/paste/pm-plugins/plugin-factory.d.ts +4 -2
- package/dist/types-ts4.5/plugins/paste/util/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/placeholder/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/placeholder-text/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/quick-insert/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/quick-insert/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/quick-insert/search.d.ts +1 -1
- package/dist/types-ts4.5/plugins/rule/pm-plugins/input-rule.d.ts +1 -1
- package/dist/types-ts4.5/plugins/scroll-into-view/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/selection/gap-cursor/utils/place-gap-cursor.d.ts +1 -1
- package/dist/types-ts4.5/plugins/selection/plugin-factory.d.ts +3 -1
- package/dist/types-ts4.5/plugins/selection/pm-plugins/gap-cursor-main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/selection/pm-plugins/gap-cursor-plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/selection/pm-plugins/keymap.d.ts +1 -1
- package/dist/types-ts4.5/plugins/selection/pm-plugins/selection-main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/selection/types.d.ts +1 -1
- package/dist/types-ts4.5/plugins/status/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/status/plugin.d.ts +1 -1
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/helpers.d.ts +2 -1
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-color/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/clear-formatting.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/cursor.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/pm-plugins/smart-input-rule.d.ts +1 -1
- package/dist/types-ts4.5/plugins/text-formatting/ui/Toolbar/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/text-formatting/utils.d.ts +2 -2
- package/dist/types-ts4.5/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.d.ts +2 -2
- package/dist/types-ts4.5/plugins/type-ahead/api.d.ts +2 -2
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/type-ahead/pm-plugins/utils.d.ts +1 -1
- package/dist/types-ts4.5/plugins/type-ahead/ui/WrapperTypeAhead.d.ts +1 -1
- package/dist/types-ts4.5/plugins/type-ahead/utils.d.ts +4 -4
- package/dist/types-ts4.5/plugins/undo-redo/pm-plugins/plugin-key.d.ts +1 -1
- package/dist/types-ts4.5/plugins/unsupported-content/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/view-update-subscription/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.d.ts +2 -2
- package/dist/types-ts4.5/types/editor-config.d.ts +1 -1
- package/dist/types-ts4.5/ui/Addon/click-area-helper.d.ts +1 -1
- package/dist/types-ts4.5/ui/ToolbarArrowKeyNavigationProvider/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/action.d.ts +60 -2
- package/dist/types-ts4.5/utils/cell-selection.d.ts +1 -1
- package/dist/types-ts4.5/utils/commands.d.ts +1 -1
- package/dist/types-ts4.5/utils/document.d.ts +1 -1
- package/dist/types-ts4.5/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/utils/keymap.d.ts +1 -1
- package/dist/types-ts4.5/utils/mark.d.ts +2 -2
- package/dist/types-ts4.5/utils/performance/instrumented-plugin.d.ts +2 -3
- package/package.json +7 -15
- package/report.api.md +21 -24
- package/tmp/api-report-tmp.d.ts +21 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditorState, Transaction } from 'prosemirror-state';
|
|
2
2
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
3
|
-
export declare const addSynchronyErrorAnalytics: (state: EditorState, tr: Transaction, featureFlags: FeatureFlags) => (error: Error) => Transaction
|
|
3
|
+
export declare const addSynchronyErrorAnalytics: (state: EditorState, tr: Transaction, featureFlags: FeatureFlags) => (error: Error) => Transaction;
|
|
4
4
|
export type EntityEventType = 'error' | 'disconnected';
|
|
5
|
-
export declare const addSynchronyEntityAnalytics: (state: EditorState, tr: Transaction) => (type: EntityEventType) => Transaction
|
|
5
|
+
export declare const addSynchronyEntityAnalytics: (state: EditorState, tr: Transaction) => (type: EntityEventType) => Transaction;
|
|
@@ -20,4 +20,4 @@ export interface CollabHandlers {
|
|
|
20
20
|
}) => void;
|
|
21
21
|
}
|
|
22
22
|
export type Cleanup = () => void;
|
|
23
|
-
export declare const subscribe: (currentDeps_0: EditorView
|
|
23
|
+
export declare const subscribe: (currentDeps_0: EditorView, currentDeps_1: CollabEditProvider<import("@atlaskit/collab-provider").CollabEvents>, currentDeps_2: PrivateCollabEditOptions, currentDeps_3: FeatureFlags, currentDeps_4?: ProviderFactory | undefined) => Cleanup;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { CollabEditProvider } from '@atlaskit/collab-provider';
|
|
2
2
|
import { Transaction, EditorState } from 'prosemirror-state';
|
|
3
3
|
type Props = {
|
|
4
|
-
originalTransaction: Transaction
|
|
5
|
-
transactions: Transaction[];
|
|
4
|
+
originalTransaction: Readonly<Transaction>;
|
|
5
|
+
transactions: readonly Transaction[];
|
|
6
6
|
oldEditorState: EditorState;
|
|
7
7
|
newEditorState: EditorState;
|
|
8
8
|
useNativePlugin: boolean;
|
|
@@ -3,5 +3,5 @@ import { EditorState } from 'prosemirror-state';
|
|
|
3
3
|
import type { CollabEditProvider } from '@atlaskit/collab-provider';
|
|
4
4
|
export declare const nativeCollabProviderPlugin: ({ providerPromise, }: {
|
|
5
5
|
providerPromise: Promise<CollabEditProvider>;
|
|
6
|
-
}) => SafePlugin<CollabEditProvider<import("@atlaskit/collab-provider").CollabEvents> | null
|
|
6
|
+
}) => SafePlugin<CollabEditProvider<import("@atlaskit/collab-provider").CollabEvents> | null>;
|
|
7
7
|
export declare const getCollabProvider: (editorState: EditorState) => CollabEditProvider | null;
|
|
@@ -12,7 +12,7 @@ export declare class PluginState {
|
|
|
12
12
|
private onError;
|
|
13
13
|
private sid?;
|
|
14
14
|
isReady: boolean;
|
|
15
|
-
get decorations(): DecorationSet
|
|
15
|
+
get decorations(): DecorationSet;
|
|
16
16
|
get activeParticipants(): ReadOnlyParticipants;
|
|
17
17
|
get sessionId(): string | undefined;
|
|
18
18
|
constructor(decorations: DecorationSet, participants: Participants, sessionId?: string, collabInitalised?: boolean, onError?: (err: Error) => void);
|
|
@@ -6,4 +6,4 @@ import { PluginState } from './plugin-state';
|
|
|
6
6
|
import { pluginKey } from './plugin-key';
|
|
7
7
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
8
8
|
export { PluginState, pluginKey };
|
|
9
|
-
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, collabProviderCallback: ProviderCallback, options: PrivateCollabEditOptions, featureFlags: FeatureFlags) => SafePlugin<
|
|
9
|
+
export declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, collabProviderCallback: ProviderCallback, options: PrivateCollabEditOptions, featureFlags: FeatureFlags) => SafePlugin<PluginState>;
|
|
@@ -10,12 +10,12 @@ export type AvatarsWithPluginStateProps = {
|
|
|
10
10
|
featureFlags: FeatureFlags;
|
|
11
11
|
} & CollabInviteToEditProps;
|
|
12
12
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
13
|
-
editorView?: EditorView
|
|
13
|
+
editorView?: EditorView | undefined;
|
|
14
14
|
eventDispatcher?: EventDispatcher<any> | undefined;
|
|
15
15
|
featureFlags: FeatureFlags;
|
|
16
16
|
} & CollabInviteToEditProps & WrappedComponentProps<"intl">>> & {
|
|
17
17
|
WrappedComponent: React.ComponentType<{
|
|
18
|
-
editorView?: EditorView
|
|
18
|
+
editorView?: EditorView | undefined;
|
|
19
19
|
eventDispatcher?: EventDispatcher<any> | undefined;
|
|
20
20
|
featureFlags: FeatureFlags;
|
|
21
21
|
} & CollabInviteToEditProps & WrappedComponentProps<"intl">>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference path="../../../../../../../typings/prosemirror.d.ts" />
|
|
2
|
+
/// <reference path="../../../../../../../typings/prosemirror-state.d.ts" />
|
|
1
3
|
import { EditorState } from 'prosemirror-state';
|
|
2
4
|
import { EditorView, Decoration, DecorationSet } from 'prosemirror-view';
|
|
3
5
|
import type { CollabParticipant } from '@atlaskit/collab-provider';
|
|
@@ -15,6 +17,6 @@ export declare const findPointers: (id: string, decorations: DecorationSet) => D
|
|
|
15
17
|
export declare const createTelepointers: (from: number, to: number, sessionId: string, isSelection: boolean, initial: string) => Decoration<{
|
|
16
18
|
[key: string]: any;
|
|
17
19
|
}>[];
|
|
18
|
-
export declare const replaceDocument: (doc: any, state: EditorState, version?: number, options?: CollabEditOptions, reserveCursor?: boolean) => import("prosemirror-state").Transaction
|
|
20
|
+
export declare const replaceDocument: (doc: any, state: EditorState, version?: number, options?: CollabEditOptions, reserveCursor?: boolean) => import("prosemirror-state").Transaction;
|
|
19
21
|
export declare const scrollToCollabCursor: (editorView: EditorView, participants: CollabParticipant[], sessionId: string | undefined, index: number) => void;
|
|
20
22
|
export declare const getPositionOfTelepointer: (sessionId: string, decorationSet: DecorationSet) => undefined | number;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
|
|
3
|
-
type CopyButtonPluginState = {
|
|
4
|
-
copied: boolean;
|
|
5
|
-
markSelection?: {
|
|
6
|
-
start: number;
|
|
7
|
-
end: number;
|
|
8
|
-
markType: MarkType;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export declare function copyButtonPlugin(): SafePlugin<CopyButtonPluginState, any>;
|
|
2
|
+
export declare function copyButtonPlugin(): SafePlugin<any>;
|
|
12
3
|
export default copyButtonPlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginKey } from 'prosemirror-state';
|
|
2
|
-
export declare const copyButtonPluginKey: PluginKey<any
|
|
2
|
+
export declare const copyButtonPluginKey: PluginKey<any>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
/// <reference path="../../../../../../../typings/prosemirror.d.ts" />
|
|
2
|
+
/// <reference path="../../../../../../../typings/prosemirror-state.d.ts" />
|
|
1
3
|
import { EditorState } from 'prosemirror-state';
|
|
2
4
|
import { Command } from '../../../src/types';
|
|
3
5
|
import { FloatingToolbarButton, FloatingToolbarItem, MarkOptions, NodeOptions } from '../floating-toolbar/types';
|
|
4
6
|
import { HoverDecorationHandler } from '@atlaskit/editor-plugin-decorations';
|
|
5
7
|
export declare function getCopyButtonConfig(options: MarkOptions | NodeOptions, hoverDecoration: HoverDecorationHandler | undefined): FloatingToolbarButton<Command>;
|
|
6
|
-
export declare const showCopyButton: (state?: EditorState) => import("prosemirror-state").Plugin<any
|
|
8
|
+
export declare const showCopyButton: (state?: EditorState) => import("prosemirror-state").Plugin<any> | undefined;
|
|
7
9
|
/**
|
|
8
10
|
* Process floatingToolbar items for copyButton
|
|
9
11
|
*
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { NextEditorPlugin, PMPluginFactoryParams } from '../../types';
|
|
3
|
-
|
|
4
|
-
export declare const createPMPlugin: ({ providerFactory }: PMPluginFactoryParams) => SafePlugin<CustomAutoformatState, any>;
|
|
3
|
+
export declare const createPMPlugin: ({ providerFactory }: PMPluginFactoryParams) => SafePlugin<any>;
|
|
5
4
|
declare const customAutoformatPlugin: NextEditorPlugin<'customAutoformat'>;
|
|
6
5
|
export default customAutoformatPlugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginKey, EditorState, Transaction } from 'prosemirror-state';
|
|
2
2
|
import { CustomAutoformatState, CustomAutoformatAction } from './types';
|
|
3
|
-
export declare const pluginKey: PluginKey<any
|
|
3
|
+
export declare const pluginKey: PluginKey<any>;
|
|
4
4
|
export declare const getPluginState: (editorState: EditorState) => CustomAutoformatState | undefined;
|
|
5
5
|
export declare const autoformatAction: (tr: Transaction, action: CustomAutoformatAction) => Transaction;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
/// <reference path="../../../../../../../../typings/prosemirror.d.ts" />
|
|
2
|
+
/// <reference path="../../../../../../../../typings/prosemirror-state.d.ts" />
|
|
1
3
|
import { PMPluginFactory } from '../../../types';
|
|
2
4
|
import { DatePluginState } from './types';
|
|
3
|
-
declare const getPluginState: (state: import("prosemirror-state").EditorState
|
|
5
|
+
declare const getPluginState: (state: import("prosemirror-state").EditorState) => DatePluginState;
|
|
4
6
|
declare const createPlugin: PMPluginFactory;
|
|
5
7
|
export { getPluginState };
|
|
6
8
|
export default createPlugin;
|
|
@@ -5,7 +5,7 @@ import { Dispatch } from '../../event-dispatcher';
|
|
|
5
5
|
export type EditorDisabledPluginState = {
|
|
6
6
|
editorDisabled: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const pluginKey: PluginKey<EditorDisabledPluginState
|
|
8
|
+
export declare const pluginKey: PluginKey<EditorDisabledPluginState>;
|
|
9
9
|
export declare function createPlugin(dispatch: Dispatch<EditorDisabledPluginState>): SafePlugin | undefined;
|
|
10
10
|
declare const editorDisabledPlugin: NextEditorPlugin<'editorDisabled', {
|
|
11
11
|
sharedState: EditorDisabledPluginState;
|
|
@@ -23,6 +23,6 @@ export declare const ACTIONS: {
|
|
|
23
23
|
SET_ASCII_MAP: string;
|
|
24
24
|
};
|
|
25
25
|
export declare const setProvider: (provider?: EmojiProvider) => Command;
|
|
26
|
-
export declare const emojiPluginKey: PluginKey<EmojiPluginState
|
|
26
|
+
export declare const emojiPluginKey: PluginKey<EmojiPluginState>;
|
|
27
27
|
export declare function getEmojiPluginState(state: EditorState): EmojiPluginState;
|
|
28
|
-
export declare function createEmojiPlugin(pmPluginFactoryParams: PMPluginFactoryParams): SafePlugin<EmojiPluginState
|
|
28
|
+
export declare function createEmojiPlugin(pmPluginFactoryParams: PMPluginFactoryParams): SafePlugin<EmojiPluginState>;
|
|
@@ -4,6 +4,6 @@ import { PluginKey } from 'prosemirror-state';
|
|
|
4
4
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
5
5
|
import { FeatureFlags } from '../../../types/feature-flags';
|
|
6
6
|
export declare function inputRulePlugin(schema: Schema, providerFactory: ProviderFactory, featureFlags: FeatureFlags): SafePlugin | undefined;
|
|
7
|
-
export declare const stateKey: PluginKey<any
|
|
8
|
-
declare const plugins: (schema: Schema, providerFactory: ProviderFactory, featureFlags: FeatureFlags) => SafePlugin<any
|
|
7
|
+
export declare const stateKey: PluginKey<any>;
|
|
8
|
+
declare const plugins: (schema: Schema, providerFactory: ProviderFactory, featureFlags: FeatureFlags) => SafePlugin<any>[];
|
|
9
9
|
export default plugins;
|
|
@@ -6,7 +6,7 @@ export declare const deleteExpandAtPos: (expandNodePos: number, expandNode: PMNo
|
|
|
6
6
|
export declare const deleteExpand: () => Command;
|
|
7
7
|
export declare const updateExpandTitle: (title: string, pos: number, nodeType: NodeType) => Command;
|
|
8
8
|
export declare const toggleExpandExpanded: (pos: number, nodeType: NodeType) => Command;
|
|
9
|
-
export declare const createExpandNode: (state: EditorState) => PMNode;
|
|
9
|
+
export declare const createExpandNode: (state: EditorState) => PMNode | null;
|
|
10
10
|
export declare const insertExpand: Command;
|
|
11
11
|
export declare const focusTitle: (pos: number) => Command;
|
|
12
12
|
export declare const setSelectionInsideExpand: Command;
|
|
@@ -6,7 +6,7 @@ import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
|
6
6
|
export declare class ExpandNodeView implements NodeView {
|
|
7
7
|
node: PmNode;
|
|
8
8
|
view: EditorView;
|
|
9
|
-
dom
|
|
9
|
+
dom: HTMLElement;
|
|
10
10
|
contentDOM?: HTMLElement;
|
|
11
11
|
icon?: HTMLElement | null;
|
|
12
12
|
input?: HTMLInputElement | null;
|
|
@@ -40,7 +40,7 @@ export declare class ExpandNodeView implements NodeView {
|
|
|
40
40
|
type: 'selection';
|
|
41
41
|
target: Element;
|
|
42
42
|
}): boolean;
|
|
43
|
-
update(node: PmNode, _decorations:
|
|
43
|
+
update(node: PmNode, _decorations: readonly Decoration[]): boolean;
|
|
44
44
|
destroy(): void;
|
|
45
45
|
}
|
|
46
46
|
export default function ({ getIntl, isMobile, featureFlags, }: {
|
|
@@ -4,4 +4,4 @@ import { EditorProps } from '../../../types';
|
|
|
4
4
|
import { IntlShape } from 'react-intl-next';
|
|
5
5
|
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
6
6
|
export declare function containsClass(element: Element | null, className: string): boolean;
|
|
7
|
-
export declare const createPlugin: (dispatch: Dispatch, getIntl: () => IntlShape, appearance: EditorProps['appearance'], useLongPressSelection: boolean | undefined, featureFlags: FeatureFlags) => SafePlugin<
|
|
7
|
+
export declare const createPlugin: (dispatch: Dispatch, getIntl: () => IntlShape, appearance: EditorProps['appearance'], useLongPressSelection: boolean | undefined, featureFlags: FeatureFlags) => SafePlugin<any>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference path="../../../../../../../../typings/prosemirror.d.ts" />
|
|
2
|
+
/// <reference path="../../../../../../../../typings/prosemirror-state.d.ts" />
|
|
1
3
|
import { PluginKey } from 'prosemirror-state';
|
|
2
|
-
export declare const pluginKey: PluginKey<any
|
|
3
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("..").ExpandPluginState | ((state: import("prosemirror-state").EditorState
|
|
4
|
+
export declare const pluginKey: PluginKey<any>;
|
|
5
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("..").ExpandPluginState | ((state: import("prosemirror-state").EditorState) => import("..").ExpandPluginState)) => import("prosemirror-state").SafeStateField<import("..").ExpandPluginState>, createCommand: <A = import("../types").ExpandPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("..").ExpandPluginState;
|
|
@@ -7,11 +7,11 @@ export { transformSliceToRemoveOpenBodiedExtension } from '@atlaskit/editor-comm
|
|
|
7
7
|
import { Command, CommandDispatch } from '../../types';
|
|
8
8
|
import EditorActions from '../../actions';
|
|
9
9
|
import type { ApplyChangeHandler } from '@atlaskit/editor-plugin-context-panel';
|
|
10
|
-
export declare const buildExtensionNode: <S extends Schema<any, any>>(type: 'inlineExtension' | 'extension' | 'bodiedExtension', schema: S, attrs: object, content?: Fragment, marks?: Mark
|
|
11
|
-
export declare const performNodeUpdate: (type: 'inlineExtension' | 'extension' | 'bodiedExtension', newAttrs: object, content: Fragment
|
|
10
|
+
export declare const buildExtensionNode: <S extends Schema<any, any>>(type: 'inlineExtension' | 'extension' | 'bodiedExtension', schema: S, attrs: object, content?: Fragment, marks?: readonly Mark[]) => PmNode;
|
|
11
|
+
export declare const performNodeUpdate: (type: 'inlineExtension' | 'extension' | 'bodiedExtension', newAttrs: object, content: Fragment, marks: readonly Mark[], shouldScrollIntoView: boolean) => Command;
|
|
12
12
|
export declare const updateExtensionParams: (updateExtension: UpdateExtension<object>, node: {
|
|
13
13
|
node: PmNode;
|
|
14
14
|
pos: number;
|
|
15
15
|
}, actions: ExtensionAPI) => (state: EditorState, dispatch?: CommandDispatch, view?: EditorView) => Promise<boolean>;
|
|
16
16
|
export declare const editSelectedExtension: (editorActions: EditorActions) => boolean;
|
|
17
|
-
export declare const editExtension: (macroProvider: MacroProvider | null, applyChangeToContextPanel: ApplyChangeHandler | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
|
|
17
|
+
export declare const editExtension: (macroProvider: MacroProvider | null | undefined, applyChangeToContextPanel: ApplyChangeHandler | undefined, updateExtension?: Promise<UpdateExtension<object> | void>) => Command;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/// <reference path="../../../../../../../typings/prosemirror.d.ts" />
|
|
2
|
+
/// <reference path="../../../../../../../typings/prosemirror-state.d.ts" />
|
|
1
3
|
import { ExtensionState } from './types';
|
|
2
|
-
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: ExtensionState<import("@atlaskit/editor-common/extensions").Parameters> | ((state: import("prosemirror-state").EditorState
|
|
3
|
-
export declare const createCommand: <A = import("./types").ExtensionAction<import("@atlaskit/editor-common/extensions").Parameters>>(action: A | ((state: Readonly<import("prosemirror-state").EditorState
|
|
4
|
-
export declare const getPluginState: (state: import("prosemirror-state").EditorState
|
|
4
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: ExtensionState<import("@atlaskit/editor-common/extensions").Parameters> | ((state: import("prosemirror-state").EditorState) => ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>)) => import("prosemirror-state").SafeStateField<ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>>;
|
|
5
|
+
export declare const createCommand: <A = import("./types").ExtensionAction<import("@atlaskit/editor-common/extensions").Parameters>>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command;
|
|
6
|
+
export declare const getPluginState: (state: import("prosemirror-state").EditorState) => ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PluginKey } from 'prosemirror-state';
|
|
2
2
|
import type { ExtensionState } from './types';
|
|
3
|
-
export declare const pluginKey: PluginKey<ExtensionState<import("@atlaskit/editor-common/extensions").Parameters
|
|
3
|
+
export declare const pluginKey: PluginKey<ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>>;
|
|
@@ -23,5 +23,5 @@ export declare const handleUpdate: ({ view, prevState, domAtPos, extensionHandle
|
|
|
23
23
|
}) => true | undefined;
|
|
24
24
|
declare const createPlugin: (dispatch: Dispatch, providerFactory: ProviderFactory, extensionHandlers: ExtensionHandlers, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginInjectionApi: ExtractInjectionAPI<typeof extensionPlugin> | undefined, useLongPressSelection?: boolean, options?: {
|
|
25
25
|
appearance?: EditorAppearance;
|
|
26
|
-
}) => SafePlugin<import("../types").ExtensionState<import("@atlaskit/editor-common/extensions").Parameters
|
|
26
|
+
}) => SafePlugin<import("../types").ExtensionState<import("@atlaskit/editor-common/extensions").Parameters>>;
|
|
27
27
|
export { pluginKey, createPlugin, createCommand, getPluginState };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
3
|
import { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
-
export declare const stateKey: PluginKey<any
|
|
5
|
-
export declare const createPlugin: () => SafePlugin<any
|
|
4
|
+
export declare const stateKey: PluginKey<any>;
|
|
5
|
+
export declare const createPlugin: () => SafePlugin<any>;
|
|
6
6
|
declare const fakeTextCursorPlugin: NextEditorPlugin<'fakeTextCursor'>;
|
|
7
7
|
export default fakeTextCursorPlugin;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
/// <reference path="../../../../../../../typings/prosemirror.d.ts" />
|
|
2
|
+
/// <reference path="../../../../../../../typings/prosemirror-state.d.ts" />
|
|
1
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
4
|
import { Dispatch } from '../../event-dispatcher';
|
|
3
5
|
import { FindReplacePluginState } from './types';
|
|
4
6
|
export declare const initialState: FindReplacePluginState;
|
|
5
|
-
export declare const createCommand: <A = import("./actions").FindReplaceAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState
|
|
6
|
-
export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<FindReplacePluginState
|
|
7
|
+
export declare const createCommand: <A = import("./actions").FindReplaceAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => FindReplacePluginState, createPluginState: (dispatch: Dispatch<any>, initialState: FindReplacePluginState | ((state: import("prosemirror-state").EditorState) => FindReplacePluginState)) => import("prosemirror-state").SafeStateField<FindReplacePluginState>;
|
|
8
|
+
export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<FindReplacePluginState>;
|
|
@@ -21,7 +21,7 @@ export interface FindReplacePluginState {
|
|
|
21
21
|
/** Whether find/replace should match case when searching for results */
|
|
22
22
|
shouldMatchCase: boolean;
|
|
23
23
|
}
|
|
24
|
-
export declare const findReplacePluginKey: PluginKey<FindReplacePluginState
|
|
24
|
+
export declare const findReplacePluginKey: PluginKey<FindReplacePluginState>;
|
|
25
25
|
export type Match = {
|
|
26
26
|
/** Start position */
|
|
27
27
|
start: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="../../../../../../../../typings/prosemirror.d.ts" />
|
|
1
2
|
import { Fragment, Node as PmNode, Slice } from 'prosemirror-model';
|
|
2
3
|
import { Decoration, DecorationSet } from 'prosemirror-view';
|
|
3
4
|
import { TextSelection, ReadonlyTransaction, Selection } from 'prosemirror-state';
|
|
@@ -19,10 +20,10 @@ export declare function findMatches(content: PmNode | Fragment, searchText: stri
|
|
|
19
20
|
export declare function findSearchIndex(selectionPos: number, matches: Match[], backward?: boolean): number;
|
|
20
21
|
export declare const nextIndex: (currentIndex: number, total: number) => number;
|
|
21
22
|
export declare const prevIndex: (currentIndex: number, total: number) => number;
|
|
22
|
-
export declare const getSelectionForMatch: (selection: Selection, doc: PmNode, index: number, matches: Match[], offset?: number) =>
|
|
23
|
+
export declare const getSelectionForMatch: (selection: Selection, doc: PmNode, index: number, matches: Match[], offset?: number) => Selection;
|
|
23
24
|
export declare const findDecorationFromMatch: (decorationSet: DecorationSet, match: Match) => Decoration | undefined;
|
|
24
25
|
export declare const removeDecorationsFromSet: (decorationSet: DecorationSet, decorationsToRemove: Decoration[], doc: PmNode) => DecorationSet;
|
|
25
|
-
export declare const removeMatchesFromSet: (decorationSet: DecorationSet, matches: Match[], doc: PmNode) => DecorationSet
|
|
26
|
+
export declare const removeMatchesFromSet: (decorationSet: DecorationSet, matches: Match[], doc: PmNode) => DecorationSet;
|
|
26
27
|
/**
|
|
27
28
|
* Finds decorations in prevDecorations that are not in newDecorations or decorationsToRemove
|
|
28
29
|
* These decorations have been lost by Prosemirror during an over eager decoration removal
|
|
@@ -42,7 +43,7 @@ export declare const findIndexBeforePosition: (items: Decoration[], position: nu
|
|
|
42
43
|
*
|
|
43
44
|
* **Note:** Match state received here is after step has been applied.
|
|
44
45
|
*/
|
|
45
|
-
export declare const isMatchAffectedByStep: (match: Match, step: Step
|
|
46
|
+
export declare const isMatchAffectedByStep: (match: Match, step: Step & {
|
|
46
47
|
from: number;
|
|
47
48
|
to: number;
|
|
48
49
|
slice: Slice;
|
|
@@ -8,7 +8,7 @@ export type ConfigWithNodeInfo = {
|
|
|
8
8
|
pos: number;
|
|
9
9
|
node: Node;
|
|
10
10
|
};
|
|
11
|
-
export declare const getRelevantConfig: (selection: Selection
|
|
11
|
+
export declare const getRelevantConfig: (selection: Selection, configs: Array<FloatingToolbarConfig>) => ConfigWithNodeInfo | undefined;
|
|
12
12
|
declare const floatingToolbarPlugin: FloatingToolbarPlugin;
|
|
13
13
|
export default floatingToolbarPlugin;
|
|
14
14
|
/**
|
|
@@ -16,4 +16,4 @@ export default floatingToolbarPlugin;
|
|
|
16
16
|
* ProseMirror Plugin
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
export declare const pluginKey: PluginKey<FloatingToolbarPluginState
|
|
19
|
+
export declare const pluginKey: PluginKey<FloatingToolbarPluginState>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
3
|
import { EditorView } from 'prosemirror-view';
|
|
4
|
-
export declare const forceFocusStateKey: PluginKey<any
|
|
4
|
+
export declare const forceFocusStateKey: PluginKey<any>;
|
|
5
5
|
/**
|
|
6
6
|
* Used in cases where a floating toolbar button opens a submenu which destroys
|
|
7
7
|
* the button, but the user has pressed ESC to close the submenu and focus needs
|
|
8
8
|
* to move back to the button. */
|
|
9
|
-
declare const _default: () => SafePlugin<any
|
|
9
|
+
declare const _default: () => SafePlugin<any>;
|
|
10
10
|
export default _default;
|
|
11
11
|
/**
|
|
12
12
|
* The provided selector should be the floating toolbar button that needs focus.
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference path="../../../../../../../../../typings/prosemirror.d.ts" />
|
|
2
|
+
/// <reference path="../../../../../../../../../typings/prosemirror-state.d.ts" />
|
|
3
|
+
export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: import("./types").FloatingToolbarPluginData | ((state: import("prosemirror-state").EditorState) => import("./types").FloatingToolbarPluginData)) => import("prosemirror-state").SafeStateField<import("./types").FloatingToolbarPluginData>, createCommand: <A = import("./types").FloatingToolbarPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("./types").FloatingToolbarPluginData;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { Dispatch } from '../../../../event-dispatcher';
|
|
3
|
-
export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<import("./types").FloatingToolbarPluginData
|
|
3
|
+
export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<import("./types").FloatingToolbarPluginData>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginKey } from 'prosemirror-state';
|
|
2
|
-
export declare const pluginKey: PluginKey<any
|
|
2
|
+
export declare const pluginKey: PluginKey<any>;
|
|
@@ -12,4 +12,4 @@ import { Dispatch } from '../../../event-dispatcher';
|
|
|
12
12
|
/**
|
|
13
13
|
* Ensures presence of `fragment` mark on certain node types and the uniqueness of their `localId` attributes
|
|
14
14
|
*/
|
|
15
|
-
export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<any
|
|
15
|
+
export declare const createPlugin: (dispatch: Dispatch) => SafePlugin<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
3
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
4
|
-
export declare function createPlugin(dispatch: Function, imageEnabled: boolean): SafePlugin<any
|
|
4
|
+
export declare function createPlugin(dispatch: Function, imageEnabled: boolean): SafePlugin<any>;
|
|
5
5
|
declare const helpDialog: NextEditorPlugin<'helpDialog', {
|
|
6
6
|
dependencies: [OptionalPlugin<typeof analyticsPlugin>];
|
|
7
7
|
pluginConfiguration: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginKey } from 'prosemirror-state';
|
|
2
|
-
export declare const pluginKey: PluginKey<any
|
|
2
|
+
export declare const pluginKey: PluginKey<any>;
|
|
@@ -8,6 +8,6 @@ import { HistoryPluginState } from './types';
|
|
|
8
8
|
* Actual undo/redo functionality is handled by prosemirror-history:
|
|
9
9
|
* https://github.com/ProseMirror/prosemirror-history
|
|
10
10
|
*/
|
|
11
|
-
export declare const historyPluginKey: PluginKey<HistoryPluginState
|
|
11
|
+
export declare const historyPluginKey: PluginKey<HistoryPluginState>;
|
|
12
12
|
declare const historyPlugin: NextEditorPlugin<'history'>;
|
|
13
13
|
export default historyPlugin;
|
|
@@ -14,4 +14,4 @@ export declare function removeLink(pos: number): Command;
|
|
|
14
14
|
export declare function editInsertedLink(): Command;
|
|
15
15
|
export declare function showLinkToolbar(inputMethod?: INPUT_METHOD.TOOLBAR | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.SHORTCUT | INPUT_METHOD.INSERT_MENU): Command;
|
|
16
16
|
export declare function hideLinkToolbar(): Command;
|
|
17
|
-
export declare function hideLinkToolbarSetMeta(tr: Transaction): Transaction
|
|
17
|
+
export declare function hideLinkToolbarSetMeta(tr: Transaction): Transaction;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginKey } from 'prosemirror-state';
|
|
2
|
-
export declare const fakeCursorForToolbarPluginKey: PluginKey<any
|
|
2
|
+
export declare const fakeCursorForToolbarPluginKey: PluginKey<any>;
|
|
@@ -42,5 +42,5 @@ export interface HyperlinkState {
|
|
|
42
42
|
inputMethod?: INPUT_METHOD;
|
|
43
43
|
editorAppearance?: EditorAppearance;
|
|
44
44
|
}
|
|
45
|
-
export declare const stateKey: PluginKey<HyperlinkState
|
|
46
|
-
export declare const plugin: (dispatch: Dispatch, editorAppearance?: EditorAppearance) => SafePlugin<
|
|
45
|
+
export declare const stateKey: PluginKey<HyperlinkState>;
|
|
46
|
+
export declare const plugin: (dispatch: Dispatch, editorAppearance?: EditorAppearance) => SafePlugin<HyperlinkState>;
|
|
@@ -8,12 +8,12 @@ type HyperlinkToolbarItemsState = {
|
|
|
8
8
|
items: GetToolbarItems;
|
|
9
9
|
onEscapeCallback: ((tr: Transaction) => Transaction) | undefined;
|
|
10
10
|
};
|
|
11
|
-
export declare const toolbarKey: PluginKey<HyperlinkToolbarItemsState | undefined
|
|
11
|
+
export declare const toolbarKey: PluginKey<HyperlinkToolbarItemsState | undefined>;
|
|
12
12
|
type GetToolbarItems = (state: EditorState, intl: IntlShape, providerFactory: ProviderFactory, link: string) => FloatingToolbarItem<any>[];
|
|
13
13
|
interface PrependToolbarButtonsProps extends HyperlinkToolbarItemsState {
|
|
14
14
|
view: EditorView;
|
|
15
15
|
}
|
|
16
16
|
export type PrependToolbarButtons = (props: PrependToolbarButtonsProps) => void;
|
|
17
17
|
export declare const prependToolbarButtons: ({ items, onEscapeCallback, view, }: PrependToolbarButtonsProps) => void;
|
|
18
|
-
export declare const toolbarButtonsPlugin: () => SafePlugin<
|
|
18
|
+
export declare const toolbarButtonsPlugin: () => SafePlugin<HyperlinkToolbarItemsState | undefined>;
|
|
19
19
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Transaction } from 'prosemirror-state';
|
|
2
|
-
export declare const startUpload: (event: any) => (tr: Transaction) => Transaction
|
|
2
|
+
export declare const startUpload: (event: any) => (tr: Transaction) => Transaction;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import { ImageUploadPluginState } from '../types';
|
|
2
3
|
import { PMPluginFactoryParams } from '../../../types';
|
|
3
|
-
export declare const createPlugin: ({ dispatch, providerFactory, }: PMPluginFactoryParams) => SafePlugin<
|
|
4
|
+
export declare const createPlugin: ({ dispatch, providerFactory, }: PMPluginFactoryParams) => SafePlugin<ImageUploadPluginState>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PluginKey } from 'prosemirror-state';
|
|
2
2
|
import { NextEditorPlugin } from '../../types';
|
|
3
|
-
export declare const pluginKey: PluginKey<any
|
|
3
|
+
export declare const pluginKey: PluginKey<any>;
|
|
4
4
|
declare const jiraIssuePlugin: NextEditorPlugin<'confluenceJiraIssue'>;
|
|
5
5
|
export default jiraIssuePlugin;
|
|
@@ -12,11 +12,11 @@ export declare const THREE_COL_LAYOUTS: PresetLayout[];
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const getPresetLayout: (section: Node) => PresetLayout | undefined;
|
|
14
14
|
export declare const getSelectedLayout: (maybeLayoutSection: Node | undefined, current: PresetLayout) => PresetLayout;
|
|
15
|
-
export declare const createDefaultLayoutSection: (state: EditorState) => Node
|
|
15
|
+
export declare const createDefaultLayoutSection: (state: EditorState) => Node;
|
|
16
16
|
export declare const insertLayoutColumns: Command;
|
|
17
17
|
export declare const insertLayoutColumnsWithAnalytics: (inputMethod: TOOLBAR_MENU_TYPE) => Command;
|
|
18
18
|
export declare function forceSectionToPresetLayout(state: EditorState, node: Node, pos: number, presetLayout: PresetLayout): Transaction;
|
|
19
19
|
export declare const setPresetLayout: (layout: PresetLayout) => Command;
|
|
20
20
|
export declare const fixColumnSizes: (changedTr: Transaction, state: EditorState) => Change | undefined;
|
|
21
|
-
export declare const fixColumnStructure: (state: EditorState) => Transaction
|
|
21
|
+
export declare const fixColumnStructure: (state: EditorState) => Transaction | undefined;
|
|
22
22
|
export declare const deleteActiveLayoutNode: Command;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
+
import { LayoutState } from './types';
|
|
2
3
|
import { LayoutPluginOptions } from '../types';
|
|
3
4
|
export declare const DEFAULT_LAYOUT = "two_equal";
|
|
4
|
-
declare const _default: (options: LayoutPluginOptions) => SafePlugin<
|
|
5
|
+
declare const _default: (options: LayoutPluginOptions) => SafePlugin<LayoutState>;
|
|
5
6
|
export default _default;
|
|
@@ -5,6 +5,6 @@ import { Node } from 'prosemirror-model';
|
|
|
5
5
|
import { Dispatch } from '../../../event-dispatcher';
|
|
6
6
|
import { ListState } from '../types';
|
|
7
7
|
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
8
|
-
export declare const pluginKey: PluginKey<ListState
|
|
8
|
+
export declare const pluginKey: PluginKey<ListState>;
|
|
9
9
|
export declare const getDecorations: (doc: Node, state: EditorState, featureFlags: FeatureFlags) => DecorationSet;
|
|
10
10
|
export declare const createPlugin: (eventDispatch: Dispatch, featureFlags: FeatureFlags) => SafePlugin;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, Slice, Schema, Mark } from 'prosemirror-model';
|
|
2
2
|
import { Transaction, Selection } from 'prosemirror-state';
|
|
3
3
|
export declare function liftFollowingList(from: number, to: number, rootListDepth: number, tr: Transaction): Transaction;
|
|
4
|
-
export declare function liftNodeSelectionList(selection: Selection, tr: Transaction): Transaction
|
|
4
|
+
export declare function liftNodeSelectionList(selection: Selection, tr: Transaction): Transaction;
|
|
5
5
|
export declare function liftTextSelectionList(selection: Selection, tr: Transaction): Transaction;
|
|
6
6
|
/**
|
|
7
7
|
* Walks the slice, creating paragraphs that were previously separated by hardbreaks.
|
|
@@ -9,7 +9,7 @@ export declare function liftTextSelectionList(selection: Selection, tr: Transact
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const splitIntoParagraphs: ({ fragment, blockMarks, schema, }: {
|
|
11
11
|
fragment: Fragment;
|
|
12
|
-
blockMarks?: Mark
|
|
12
|
+
blockMarks?: readonly Mark[] | undefined;
|
|
13
13
|
schema: Schema;
|
|
14
14
|
}) => Fragment;
|
|
15
15
|
export declare const splitParagraphs: (slice: Slice, schema: Schema) => Slice;
|