@atlaskit/editor-core 185.8.0 → 185.8.3
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/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/ui/Appearance/FullPage/FullPage.js +88 -130
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +28 -9
- 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/ui/Appearance/FullPage/FullPage.js +75 -115
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +62 -46
- 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/ui/Appearance/FullPage/FullPage.js +83 -130
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +25 -9
- 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/Appearance/FullPage/FullPage.d.ts +1 -23
- package/dist/types/ui/Appearance/FullPage/FullPageContentArea.d.ts +6 -6
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -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/Appearance/FullPage/FullPage.d.ts +1 -23
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageContentArea.d.ts +6 -6
- package/dist/types-ts4.5/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -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 +6 -23
- package/report.api.md +21 -24
- package/tmp/api-report-tmp.d.ts +21 -21
|
@@ -31,16 +31,16 @@ export default (featureFlags => new SafePlugin({
|
|
|
31
31
|
props: {
|
|
32
32
|
attributes: editorState => {
|
|
33
33
|
if (!featureFlags) {
|
|
34
|
-
return;
|
|
34
|
+
return {};
|
|
35
35
|
}
|
|
36
36
|
const browserConfigFeatureFlag = featureFlags.disableSpellcheckByBrowser;
|
|
37
37
|
const userCurrentBrowserAndVersion = getCurrentBrowserAndVersion();
|
|
38
38
|
if (!userCurrentBrowserAndVersion || !browserConfigFeatureFlag) {
|
|
39
|
-
return;
|
|
39
|
+
return {};
|
|
40
40
|
}
|
|
41
41
|
const browserVersionDisableRange = browserConfigFeatureFlag[userCurrentBrowserAndVersion.browser];
|
|
42
42
|
if (!browserVersionDisableRange || !browserEnv[userCurrentBrowserAndVersion.browser]) {
|
|
43
|
-
return;
|
|
43
|
+
return {};
|
|
44
44
|
}
|
|
45
45
|
const shouldDisableSpellcheck = !!browserVersionDisableRange.maximum ? userCurrentBrowserAndVersion.version >= browserVersionDisableRange.minimum && userCurrentBrowserAndVersion.version <= browserVersionDisableRange.maximum : browserEnv[userCurrentBrowserAndVersion.browser] && userCurrentBrowserAndVersion.version >= browserVersionDisableRange.minimum;
|
|
46
46
|
if (shouldDisableSpellcheck) {
|
|
@@ -48,7 +48,7 @@ export default (featureFlags => new SafePlugin({
|
|
|
48
48
|
spellcheck: 'false'
|
|
49
49
|
};
|
|
50
50
|
}
|
|
51
|
-
return;
|
|
51
|
+
return {};
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
}));
|
|
@@ -2,11 +2,9 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
3
|
import { keydownHandler } from 'prosemirror-keymap';
|
|
4
4
|
import { filter } from '../../../utils/commands';
|
|
5
|
-
import { typeAheadPluginKey } from '../../../plugins/type-ahead';
|
|
6
5
|
import { isSelectionEndOfParagraph } from '../../../utils';
|
|
7
6
|
export const newlinePreserveMarksKey = new PluginKey('newlinePreserveMarksPlugin');
|
|
8
7
|
const isSelectionAligned = state => !!state.selection.$to.parent.marks.find(m => m.type === state.schema.marks.alignment);
|
|
9
|
-
const isTypeaheadNotDisplaying = state => !typeAheadPluginKey.getState(state).active;
|
|
10
8
|
const splitBlockPreservingMarks = (state, dispatch) => {
|
|
11
9
|
if (dispatch) {
|
|
12
10
|
dispatch(state.tr.split(state.tr.mapping.map(state.selection.$from.pos), 1));
|
|
@@ -17,7 +15,7 @@ export default (() => new SafePlugin({
|
|
|
17
15
|
key: newlinePreserveMarksKey,
|
|
18
16
|
props: {
|
|
19
17
|
handleKeyDown: keydownHandler({
|
|
20
|
-
Enter: filter([isSelectionEndOfParagraph, isSelectionAligned
|
|
18
|
+
Enter: filter([isSelectionEndOfParagraph, isSelectionAligned], splitBlockPreservingMarks)
|
|
21
19
|
})
|
|
22
20
|
}
|
|
23
21
|
}));
|
|
@@ -26,7 +26,7 @@ const shouldMoveCursorAfterDelete = state => {
|
|
|
26
26
|
* ED-13873 fixes a bug where after deleting a list the cursor would move
|
|
27
27
|
* to the cell to the right. Uses setSelection to position the cursor as expected after deleting.
|
|
28
28
|
*
|
|
29
|
-
* @param state EditorState
|
|
29
|
+
* @param state EditorState
|
|
30
30
|
* @param dispatch CommandDispatch
|
|
31
31
|
* @returns boolean
|
|
32
32
|
*/
|
|
@@ -105,7 +105,7 @@ function createPlugin(pluginInjectionApi, {
|
|
|
105
105
|
state: {
|
|
106
106
|
init() {
|
|
107
107
|
return {
|
|
108
|
-
breakoutNode:
|
|
108
|
+
breakoutNode: undefined
|
|
109
109
|
};
|
|
110
110
|
},
|
|
111
111
|
apply(tr, pluginState) {
|
|
@@ -175,7 +175,13 @@ const breakoutPlugin = (options, api) => ({
|
|
|
175
175
|
breakoutNode: undefined
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
-
|
|
178
|
+
const pluginState = pluginKey.getState(editorState);
|
|
179
|
+
if (!pluginState) {
|
|
180
|
+
return {
|
|
181
|
+
breakoutNode: undefined
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
return pluginState;
|
|
179
185
|
},
|
|
180
186
|
contentComponent({
|
|
181
187
|
editorView,
|
|
@@ -30,6 +30,9 @@ const toolbarButtonWrapper = css`
|
|
|
30
30
|
}
|
|
31
31
|
`;
|
|
32
32
|
function getBreakoutNodeElement(pluginState, selection, editorView) {
|
|
33
|
+
if (!pluginState.breakoutNode) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
33
36
|
if (selection instanceof NodeSelection && isSupportedNodeForBreakout(selection.node)) {
|
|
34
37
|
return findDomRefAtPos(selection.from, editorView.domAtPos.bind(editorView));
|
|
35
38
|
}
|
|
@@ -73,6 +76,9 @@ class LayoutButton extends React.Component {
|
|
|
73
76
|
const nextBreakoutMode = getNextBreakoutMode(breakoutMode);
|
|
74
77
|
const belowOtherPopupsZIndex = layers.layer() - 1;
|
|
75
78
|
let pluginState = getPluginState(state);
|
|
79
|
+
if (!pluginState) {
|
|
80
|
+
return null;
|
|
81
|
+
}
|
|
76
82
|
let element = getBreakoutNodeElement(pluginState, state.selection, editorView);
|
|
77
83
|
if (!element) {
|
|
78
84
|
return null;
|
|
@@ -112,7 +112,7 @@ export const floatingToolbar = (cardOptions, featureFlags, platform, linkPickerO
|
|
|
112
112
|
} : {};
|
|
113
113
|
|
|
114
114
|
// Applies padding override for when link picker is currently displayed
|
|
115
|
-
const className = pluginState.showLinkingToolbar ? FLOATING_TOOLBAR_LINKPICKER_CLASSNAME : undefined;
|
|
115
|
+
const className = pluginState !== null && pluginState !== void 0 && pluginState.showLinkingToolbar ? FLOATING_TOOLBAR_LINKPICKER_CLASSNAME : undefined;
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* Enable focus trap only if feature flag is enabled AND for the new version of the picker
|
|
@@ -141,9 +141,9 @@ export const floatingToolbar = (cardOptions, featureFlags, platform, linkPickerO
|
|
|
141
141
|
return element;
|
|
142
142
|
},
|
|
143
143
|
items: generateToolbarItems(state, featureFlags, intl, providerFactory, cardOptions, platform, linkPickerOptions, pluginInjectionApi),
|
|
144
|
-
scrollable: pluginState.showLinkingToolbar ? false : true,
|
|
145
|
-
focusTrap: shouldEnableFocusTrap && pluginState.showLinkingToolbar,
|
|
146
|
-
...editLinkToolbarConfig(pluginState.showLinkingToolbar, isLinkPickerEnabled)
|
|
144
|
+
scrollable: pluginState !== null && pluginState !== void 0 && pluginState.showLinkingToolbar ? false : true,
|
|
145
|
+
focusTrap: shouldEnableFocusTrap && (pluginState === null || pluginState === void 0 ? void 0 : pluginState.showLinkingToolbar),
|
|
146
|
+
...editLinkToolbarConfig(Boolean(pluginState === null || pluginState === void 0 ? void 0 : pluginState.showLinkingToolbar), isLinkPickerEnabled)
|
|
147
147
|
};
|
|
148
148
|
};
|
|
149
149
|
};
|
|
@@ -191,7 +191,7 @@ const generateToolbarItems = (state, featureFlags, intl, providerFactory, cardOp
|
|
|
191
191
|
const isDatasource = currentAppearance === 'block' && (node === null || node === void 0 ? void 0 : (_node$attrs = node.attrs) === null || _node$attrs === void 0 ? void 0 : _node$attrs.datasource);
|
|
192
192
|
|
|
193
193
|
/* mobile builds toolbar natively using toolbarItems */
|
|
194
|
-
if (pluginState.showLinkingToolbar && platform !== 'mobile') {
|
|
194
|
+
if (pluginState !== null && pluginState !== void 0 && pluginState.showLinkingToolbar && platform !== 'mobile') {
|
|
195
195
|
return [buildEditLinkToolbar({
|
|
196
196
|
providerFactory,
|
|
197
197
|
linkPicker,
|
|
@@ -199,7 +199,7 @@ const generateToolbarItems = (state, featureFlags, intl, providerFactory, cardOp
|
|
|
199
199
|
featureFlags,
|
|
200
200
|
pluginInjectionApi
|
|
201
201
|
})];
|
|
202
|
-
} else if (pluginState.showDatasourceModal) {
|
|
202
|
+
} else if (pluginState !== null && pluginState !== void 0 && pluginState.showDatasourceModal) {
|
|
203
203
|
return [openDatasourceModal({
|
|
204
204
|
state,
|
|
205
205
|
node,
|
|
@@ -39,5 +39,8 @@ export const mergeCardInfo = (titleUrlPair, info) => {
|
|
|
39
39
|
export const displayInfoForCard = (node, info) => mergeCardInfo(titleUrlPairFromNode(node), info);
|
|
40
40
|
export const findCardInfo = state => {
|
|
41
41
|
const pluginState = pluginKey.getState(state);
|
|
42
|
+
if (!pluginState) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
42
45
|
return pluginState.cards.find(cardInfo => cardInfo.pos === state.selection.from);
|
|
43
46
|
};
|
|
@@ -23,7 +23,7 @@ export function keymapPlugin(schema) {
|
|
|
23
23
|
table,
|
|
24
24
|
layoutColumn
|
|
25
25
|
} = state.schema.nodes;
|
|
26
|
-
if (!$cursor || $cursor.parent.type !== codeBlock) {
|
|
26
|
+
if (!$cursor || $cursor.parent.type !== codeBlock || !dispatch) {
|
|
27
27
|
return false;
|
|
28
28
|
}
|
|
29
29
|
if ($cursor.pos === 1 || hasParentNodeOfType(listItem)(state.selection) && $cursor.parentOffset === 0) {
|
|
@@ -22,7 +22,7 @@ export const initialize = ({
|
|
|
22
22
|
}) => provider => {
|
|
23
23
|
let cleanup;
|
|
24
24
|
const pluginState = pluginKey.getState(view.state);
|
|
25
|
-
if (pluginState.isReady && cleanup) {
|
|
25
|
+
if (pluginState !== null && pluginState !== void 0 && pluginState.isReady && cleanup) {
|
|
26
26
|
cleanup();
|
|
27
27
|
}
|
|
28
28
|
cleanup = subscribe(view, provider, options, featureFlags, providerFactory);
|
|
@@ -9,7 +9,7 @@ export const sendTransaction = ({
|
|
|
9
9
|
}) => provider => {
|
|
10
10
|
const docChangedTransaction = transactions.find(tr => tr.docChanged);
|
|
11
11
|
const currentPluginState = pluginKey.getState(newEditorState);
|
|
12
|
-
if (!currentPluginState.isReady) {
|
|
12
|
+
if (!(currentPluginState !== null && currentPluginState !== void 0 && currentPluginState.isReady)) {
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
15
|
const shouldSendStepForSynchronyCollabProvider = !originalTransaction.getMeta('isRemote') &&
|
|
@@ -23,13 +23,13 @@ export const sendTransaction = ({
|
|
|
23
23
|
const prevPluginState = pluginKey.getState(oldEditorState);
|
|
24
24
|
const {
|
|
25
25
|
activeParticipants: prevActiveParticipants
|
|
26
|
-
} = prevPluginState;
|
|
26
|
+
} = prevPluginState || {};
|
|
27
27
|
const {
|
|
28
28
|
activeParticipants,
|
|
29
29
|
sessionId
|
|
30
30
|
} = currentPluginState;
|
|
31
31
|
const selectionChanged = !oldEditorState.selection.eq(newEditorState.selection);
|
|
32
|
-
const participantsChanged = !prevActiveParticipants.eq(activeParticipants);
|
|
32
|
+
const participantsChanged = prevActiveParticipants && !prevActiveParticipants.eq(activeParticipants);
|
|
33
33
|
if (sessionId && selectionChanged && !docChangedTransaction || sessionId && participantsChanged) {
|
|
34
34
|
const selection = getSendableSelection(newEditorState.selection);
|
|
35
35
|
const message = {
|
|
@@ -4,5 +4,8 @@ export function getParticipantsCount(state) {
|
|
|
4
4
|
return 1;
|
|
5
5
|
}
|
|
6
6
|
const pluginState = pluginKey.getState(state);
|
|
7
|
-
|
|
7
|
+
// @ts-ignore accessing private property
|
|
8
|
+
return pluginState && pluginState.participants ?
|
|
9
|
+
// @ts-ignore accessing private property
|
|
10
|
+
pluginState.participants.size() : 1;
|
|
8
11
|
}
|
|
@@ -21,7 +21,8 @@ export const createPlugin = (dispatch, providerFactory, collabProviderCallback,
|
|
|
21
21
|
},
|
|
22
22
|
props: {
|
|
23
23
|
decorations(state) {
|
|
24
|
-
|
|
24
|
+
var _pluginKey$getState;
|
|
25
|
+
return (_pluginKey$getState = pluginKey.getState(state)) === null || _pluginKey$getState === void 0 ? void 0 : _pluginKey$getState.decorations;
|
|
25
26
|
}
|
|
26
27
|
},
|
|
27
28
|
filterTransaction(tr, state) {
|
|
@@ -33,7 +34,7 @@ export const createPlugin = (dispatch, providerFactory, collabProviderCallback,
|
|
|
33
34
|
if (collabInitialiseTr) {
|
|
34
35
|
return true;
|
|
35
36
|
}
|
|
36
|
-
if (!pluginState.isReady && tr.docChanged) {
|
|
37
|
+
if (!(pluginState !== null && pluginState !== void 0 && pluginState.isReady) && tr.docChanged) {
|
|
37
38
|
return false;
|
|
38
39
|
}
|
|
39
40
|
return true;
|
|
@@ -44,7 +44,9 @@ export const createPMPlugin = ({
|
|
|
44
44
|
},
|
|
45
45
|
handleKeyDown: keydownHandler({
|
|
46
46
|
Enter: (_state, _dispatch, view) => {
|
|
47
|
-
|
|
47
|
+
if (view) {
|
|
48
|
+
triggerInputRule(view, rules, view.state.selection.from, view.state.selection.to, '');
|
|
49
|
+
}
|
|
48
50
|
return false;
|
|
49
51
|
}
|
|
50
52
|
})
|
|
@@ -25,12 +25,13 @@ export const createDate = isQuickInsertAction => (insert, state) => {
|
|
|
25
25
|
|
|
26
26
|
/** Delete the date and close the datepicker */
|
|
27
27
|
export const deleteDate = () => (state, dispatch) => {
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
} = pluginKey.getState(state);
|
|
31
|
-
if (showDatePickerAt === null) {
|
|
28
|
+
const pluginState = pluginKey.getState(state);
|
|
29
|
+
if (!pluginState || pluginState.showDatePickerAt === null) {
|
|
32
30
|
return false;
|
|
33
31
|
}
|
|
32
|
+
const {
|
|
33
|
+
showDatePickerAt
|
|
34
|
+
} = pluginState;
|
|
34
35
|
const tr = state.tr.delete(showDatePickerAt, showDatePickerAt + 1).setMeta(pluginKey, {
|
|
35
36
|
showDatePickerAt: null,
|
|
36
37
|
isNew: false
|
|
@@ -43,10 +44,8 @@ export const deleteDate = () => (state, dispatch) => {
|
|
|
43
44
|
|
|
44
45
|
/** Focus input */
|
|
45
46
|
export const focusDateInput = () => (state, dispatch) => {
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
} = pluginKey.getState(state);
|
|
49
|
-
if (showDatePickerAt === null) {
|
|
47
|
+
const pluginState = pluginKey.getState(state);
|
|
48
|
+
if (!pluginState || pluginState.showDatePickerAt === null) {
|
|
50
49
|
return false;
|
|
51
50
|
}
|
|
52
51
|
if (!dispatch) {
|
|
@@ -94,7 +93,7 @@ export const insertDate = (date, inputMethod, commitMethod, enterPressed = true)
|
|
|
94
93
|
}
|
|
95
94
|
const {
|
|
96
95
|
showDatePickerAt
|
|
97
|
-
} = pluginKey.getState(state);
|
|
96
|
+
} = pluginKey.getState(state) || {};
|
|
98
97
|
if (!showDatePickerAt) {
|
|
99
98
|
const dateNode = schema.nodes.date.createChecked({
|
|
100
99
|
timestamp
|
|
@@ -151,7 +150,7 @@ export const setDatePickerAt = showDatePickerAt => (state, dispatch) => {
|
|
|
151
150
|
export const closeDatePicker = () => (state, dispatch) => {
|
|
152
151
|
const {
|
|
153
152
|
showDatePickerAt
|
|
154
|
-
} = pluginKey.getState(state);
|
|
153
|
+
} = pluginKey.getState(state) || {};
|
|
155
154
|
if (!dispatch) {
|
|
156
155
|
return false;
|
|
157
156
|
}
|
|
@@ -92,11 +92,11 @@ const datePlugin = (_, api) => ({
|
|
|
92
92
|
showDatePickerAt,
|
|
93
93
|
isNew,
|
|
94
94
|
focusDateInput
|
|
95
|
-
} = datePluginKey.getState(editorState);
|
|
95
|
+
} = datePluginKey.getState(editorState) || {};
|
|
96
96
|
return {
|
|
97
97
|
showDatePickerAt,
|
|
98
|
-
isNew,
|
|
99
|
-
focusDateInput
|
|
98
|
+
isNew: !!isNew,
|
|
99
|
+
focusDateInput: !!focusDateInput
|
|
100
100
|
};
|
|
101
101
|
},
|
|
102
102
|
nodes() {
|
|
@@ -44,7 +44,13 @@ const editorDisabledPlugin = () => ({
|
|
|
44
44
|
editorDisabled: false
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
const pluginState = pluginKey.getState(editorState);
|
|
48
|
+
if (!pluginState) {
|
|
49
|
+
return {
|
|
50
|
+
editorDisabled: false
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
return pluginState;
|
|
48
54
|
},
|
|
49
55
|
pmPlugins: () => [{
|
|
50
56
|
name: 'editorDisabled',
|
|
@@ -98,7 +98,7 @@ const emojiPlugin = options => {
|
|
|
98
98
|
}) {
|
|
99
99
|
const {
|
|
100
100
|
asciiMap
|
|
101
|
-
} = emojiPluginKey.getState(editorState);
|
|
101
|
+
} = emojiPluginKey.getState(editorState) || {};
|
|
102
102
|
const normalizedQuery = TRIGGER.concat(query);
|
|
103
103
|
|
|
104
104
|
// if the query has space at the end
|
|
@@ -106,7 +106,7 @@ const emojiPlugin = options => {
|
|
|
106
106
|
if (asciiMap && normalizedQuery.length >= 3 && normalizedQuery.endsWith(' ') && asciiMap.has(normalizedQuery.trim())) {
|
|
107
107
|
const emoji = asciiMap.get(normalizedQuery.trim());
|
|
108
108
|
return {
|
|
109
|
-
title: emoji.name,
|
|
109
|
+
title: (emoji === null || emoji === void 0 ? void 0 : emoji.name) || '',
|
|
110
110
|
emoji
|
|
111
111
|
};
|
|
112
112
|
}
|
|
@@ -100,13 +100,13 @@ export const insertExpand = (state, dispatch) => {
|
|
|
100
100
|
const payload = {
|
|
101
101
|
action: ACTION.INSERTED,
|
|
102
102
|
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
103
|
-
actionSubjectId: expandNode.type === state.schema.nodes.expand ? ACTION_SUBJECT_ID.EXPAND : ACTION_SUBJECT_ID.NESTED_EXPAND,
|
|
103
|
+
actionSubjectId: (expandNode === null || expandNode === void 0 ? void 0 : expandNode.type) === state.schema.nodes.expand ? ACTION_SUBJECT_ID.EXPAND : ACTION_SUBJECT_ID.NESTED_EXPAND,
|
|
104
104
|
attributes: {
|
|
105
105
|
inputMethod: INPUT_METHOD.INSERT_MENU
|
|
106
106
|
},
|
|
107
107
|
eventType: EVENT_TYPE.TRACK
|
|
108
108
|
};
|
|
109
|
-
if (dispatch) {
|
|
109
|
+
if (dispatch && expandNode) {
|
|
110
110
|
dispatch(addAnalytics(state, safeInsert(expandNode)(state.tr).scrollIntoView(), payload));
|
|
111
111
|
}
|
|
112
112
|
return true;
|
|
@@ -52,6 +52,9 @@ const expandPlugin = (options = {}, api) => {
|
|
|
52
52
|
icon: () => /*#__PURE__*/React.createElement(IconExpand, null),
|
|
53
53
|
action(insert, state) {
|
|
54
54
|
const node = createExpandNode(state);
|
|
55
|
+
if (!node) {
|
|
56
|
+
return false;
|
|
57
|
+
}
|
|
55
58
|
const tr = insert(node);
|
|
56
59
|
return addAnalytics(state, tr, {
|
|
57
60
|
action: ACTION.INSERTED,
|
|
@@ -421,6 +421,8 @@ export class ExpandNodeView {
|
|
|
421
421
|
this.icon.removeEventListener('keydown', this.handleIconKeyDown);
|
|
422
422
|
ReactDOM.unmountComponentAtNode(this.icon);
|
|
423
423
|
}
|
|
424
|
+
|
|
425
|
+
// @ts-ignore - [unblock prosemirror bump] reset non optional prop to undefined to clear reference
|
|
424
426
|
this.dom = undefined;
|
|
425
427
|
this.contentDOM = undefined;
|
|
426
428
|
this.icon = undefined;
|
|
@@ -92,11 +92,15 @@ export const createPlugin = dispatch => new SafePlugin({
|
|
|
92
92
|
}
|
|
93
93
|
if (localIds.has(existingFragmentMark.attrs.localId)) {
|
|
94
94
|
tr.setNodeMarkup(pos, undefined, node.attrs, node.marks.map(mark => {
|
|
95
|
-
if (mark.type
|
|
96
|
-
mark
|
|
97
|
-
mark.attrs.name = null;
|
|
95
|
+
if (mark.type !== fragment) {
|
|
96
|
+
return mark;
|
|
98
97
|
}
|
|
99
|
-
|
|
98
|
+
const fragmentMark = fragment.create({
|
|
99
|
+
...mark.attrs,
|
|
100
|
+
localId: uuid.generate(),
|
|
101
|
+
name: null
|
|
102
|
+
});
|
|
103
|
+
return fragmentMark;
|
|
100
104
|
}));
|
|
101
105
|
modified = true;
|
|
102
106
|
}
|
|
@@ -16,7 +16,7 @@ export function isTextAtPos(pos) {
|
|
|
16
16
|
export function isLinkAtPos(pos) {
|
|
17
17
|
return state => {
|
|
18
18
|
const node = state.doc.nodeAt(pos);
|
|
19
|
-
return !!node && state.schema.marks.link.isInSet(node.marks);
|
|
19
|
+
return !!node && !!state.schema.marks.link.isInSet(node.marks);
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
export function setLinkHref(href, pos, to, isTabPressed) {
|
|
@@ -92,10 +92,11 @@ export function insertLink(from, to, incomingHref, incomingTitle, displayText, s
|
|
|
92
92
|
tr
|
|
93
93
|
} = state;
|
|
94
94
|
if (incomingHref.trim()) {
|
|
95
|
+
var _stateKey$getState;
|
|
95
96
|
const normalizedUrl = normalizeUrl(incomingHref);
|
|
96
97
|
// NB: in this context, `currentText` represents text which has been
|
|
97
98
|
// highlighted in the Editor, upon which a link is is being added.
|
|
98
|
-
const currentText = stateKey.getState(state).activeText;
|
|
99
|
+
const currentText = (_stateKey$getState = stateKey.getState(state)) === null || _stateKey$getState === void 0 ? void 0 : _stateKey$getState.activeText;
|
|
99
100
|
let markEnd = to;
|
|
100
101
|
const text = displayText || incomingTitle || incomingHref;
|
|
101
102
|
if (!displayText || displayText !== currentText) {
|
|
@@ -4,7 +4,7 @@ import { startUpload } from './actions';
|
|
|
4
4
|
import { stateKey } from './plugin-key';
|
|
5
5
|
export const insertExternalImage = options => (state, dispatch) => {
|
|
6
6
|
const pluginState = stateKey.getState(state);
|
|
7
|
-
if (!pluginState.enabled || !options.src) {
|
|
7
|
+
if (!(pluginState !== null && pluginState !== void 0 && pluginState.enabled) || !options.src) {
|
|
8
8
|
return false;
|
|
9
9
|
}
|
|
10
10
|
const mediaNode = createExternalMediaNode(options.src, state.schema);
|
|
@@ -18,7 +18,7 @@ export const insertExternalImage = options => (state, dispatch) => {
|
|
|
18
18
|
};
|
|
19
19
|
export const startImageUpload = event => (state, dispatch) => {
|
|
20
20
|
const pluginState = stateKey.getState(state);
|
|
21
|
-
if (!pluginState.enabled) {
|
|
21
|
+
if (!(pluginState !== null && pluginState !== void 0 && pluginState.enabled)) {
|
|
22
22
|
return false;
|
|
23
23
|
}
|
|
24
24
|
if (dispatch) {
|
|
@@ -209,6 +209,7 @@ const extractListItemsRangeFromList = ({
|
|
|
209
209
|
const order = getOrderFromOrderedListNode(list);
|
|
210
210
|
if (list.type.name === 'orderedList') {
|
|
211
211
|
nextListStartNumber = range.endIndex - 1 + order;
|
|
212
|
+
// @ts-ignore - [unblock prosemirror bump] assigning to readonly attrs
|
|
212
213
|
nextList.attrs = {
|
|
213
214
|
...nextList.attrs,
|
|
214
215
|
order: nextListStartNumber
|
|
@@ -106,7 +106,7 @@ export const resolveMacro = (macro, state, optionalAttrs) => {
|
|
|
106
106
|
type,
|
|
107
107
|
attrs
|
|
108
108
|
} = getValidNode(macro, schema);
|
|
109
|
-
let node;
|
|
109
|
+
let node = null;
|
|
110
110
|
if (type === 'extension') {
|
|
111
111
|
node = schema.nodes.extension.create({
|
|
112
112
|
...attrs,
|
|
@@ -120,7 +120,7 @@ export const resolveMacro = (macro, state, optionalAttrs) => {
|
|
|
120
120
|
} else if (type === 'inlineExtension') {
|
|
121
121
|
node = schema.nodes.inlineExtension.create(attrs);
|
|
122
122
|
}
|
|
123
|
-
return normaliseNestedLayout(state, node);
|
|
123
|
+
return node && normaliseNestedLayout(state, node);
|
|
124
124
|
};
|
|
125
125
|
|
|
126
126
|
// gets the macroProvider from the state and tries to autoConvert a given text
|
|
@@ -36,6 +36,9 @@ export const isMediaNode = (pos, state) => {
|
|
|
36
36
|
};
|
|
37
37
|
export const updateAllMediaSingleNodesAttrs = (id, attrs) => (state, dispatch) => {
|
|
38
38
|
const mediaPluginState = mediaPluginKey.getState(state);
|
|
39
|
+
if (!mediaPluginState) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
39
42
|
let mediaNodes;
|
|
40
43
|
mediaNodes = findAllMediaSingleNodes(mediaPluginState, id);
|
|
41
44
|
const validMediaNodePositions = mediaNodes.reduce((acc, {
|
|
@@ -74,6 +77,9 @@ export const updateCurrentMediaNodeAttrs = (attrs, mediaNode) => (state, dispatc
|
|
|
74
77
|
};
|
|
75
78
|
export const updateMediaSingleNodeAttrs = (id, attrs) => (state, dispatch) => {
|
|
76
79
|
const mediaPluginState = mediaPluginKey.getState(state);
|
|
80
|
+
if (!mediaPluginState) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
77
83
|
const mediaNodeWithPos = findMediaSingleNode(mediaPluginState, id);
|
|
78
84
|
if (!mediaNodeWithPos) {
|
|
79
85
|
return false;
|
|
@@ -33,7 +33,7 @@ const mediaPlugin = (options = {}, api) => {
|
|
|
33
33
|
if (!editorState) {
|
|
34
34
|
return null;
|
|
35
35
|
}
|
|
36
|
-
return stateKey.getState(editorState);
|
|
36
|
+
return stateKey.getState(editorState) || null;
|
|
37
37
|
},
|
|
38
38
|
nodes() {
|
|
39
39
|
const {
|
|
@@ -224,7 +224,7 @@ const mediaPlugin = (options = {}, api) => {
|
|
|
224
224
|
action(insert, state) {
|
|
225
225
|
var _api$dependencies$ana;
|
|
226
226
|
const pluginState = pluginKey.getState(state);
|
|
227
|
-
pluginState.showMediaPicker();
|
|
227
|
+
pluginState === null || pluginState === void 0 ? void 0 : pluginState.showMediaPicker();
|
|
228
228
|
const tr = insert('');
|
|
229
229
|
api === null || api === void 0 ? void 0 : (_api$dependencies$ana = api.dependencies.analytics) === null || _api$dependencies$ana === void 0 ? void 0 : _api$dependencies$ana.actions.attachAnalyticsEvent({
|
|
230
230
|
action: ACTION.OPENED,
|
|
@@ -50,6 +50,7 @@ class MediaGroup extends React.Component {
|
|
|
50
50
|
mediaNodeUpdater.updateNodeAttrs(getPos);
|
|
51
51
|
});
|
|
52
52
|
_defineProperty(this, "setMediaItems", (props, updatedAttrs = false) => {
|
|
53
|
+
var _this$mediaPluginStat;
|
|
53
54
|
const {
|
|
54
55
|
node
|
|
55
56
|
} = props;
|
|
@@ -73,7 +74,7 @@ class MediaGroup extends React.Component {
|
|
|
73
74
|
this.updateNodeAttrs(props, item, getPos);
|
|
74
75
|
}
|
|
75
76
|
});
|
|
76
|
-
this.mediaPluginState.handleMediaGroupUpdate(oldMediaNodes, this.mediaNodes);
|
|
77
|
+
(_this$mediaPluginStat = this.mediaPluginState) === null || _this$mediaPluginStat === void 0 ? void 0 : _this$mediaPluginStat.handleMediaGroupUpdate(oldMediaNodes, this.mediaNodes);
|
|
77
78
|
});
|
|
78
79
|
_defineProperty(this, "getIdentifier", item => {
|
|
79
80
|
if (item.attrs.type === 'external') {
|
|
@@ -129,7 +130,7 @@ class MediaGroup extends React.Component {
|
|
|
129
130
|
return {
|
|
130
131
|
shouldEnableDownloadButton: mediaOptions.enableDownloadButton,
|
|
131
132
|
actions: [{
|
|
132
|
-
handler: disabled ? () => {} : this.mediaPluginState.handleMediaNodeRemoval.bind(null, undefined, getNodePos),
|
|
133
|
+
handler: disabled || !this.mediaPluginState ? () => {} : this.mediaPluginState.handleMediaNodeRemoval.bind(null, undefined, getNodePos),
|
|
133
134
|
icon: /*#__PURE__*/React.createElement(EditorCloseIcon, {
|
|
134
135
|
label: this.props.intl.formatMessage(messages.mediaGroupDeleteLabel)
|
|
135
136
|
})
|
|
@@ -203,14 +204,16 @@ class MediaGroup extends React.Component {
|
|
|
203
204
|
});
|
|
204
205
|
}
|
|
205
206
|
componentWillUnmount() {
|
|
206
|
-
|
|
207
|
+
var _this$mediaPluginStat2;
|
|
208
|
+
(_this$mediaPluginStat2 = this.mediaPluginState) === null || _this$mediaPluginStat2 === void 0 ? void 0 : _this$mediaPluginStat2.handleMediaGroupUpdate(this.mediaNodes, []);
|
|
207
209
|
}
|
|
208
210
|
UNSAFE_componentWillReceiveProps(props) {
|
|
209
211
|
this.updateMediaClientConfig();
|
|
210
212
|
this.setMediaItems(props, props.isCopyPasteEnabled || props.isCopyPasteEnabled === undefined);
|
|
211
213
|
}
|
|
212
214
|
shouldComponentUpdate(nextProps) {
|
|
213
|
-
|
|
215
|
+
var _this$mediaPluginStat3;
|
|
216
|
+
if (hasSelectionChanged(this.props, nextProps) || this.props.node !== nextProps.node || this.state.viewMediaClientConfig !== ((_this$mediaPluginStat3 = this.mediaPluginState) === null || _this$mediaPluginStat3 === void 0 ? void 0 : _this$mediaPluginStat3.mediaClientConfig)) {
|
|
214
217
|
return true;
|
|
215
218
|
}
|
|
216
219
|
return false;
|
|
@@ -221,7 +224,7 @@ class MediaGroup extends React.Component {
|
|
|
221
224
|
} = this.state;
|
|
222
225
|
const {
|
|
223
226
|
mediaClientConfig
|
|
224
|
-
} = this.mediaPluginState;
|
|
227
|
+
} = this.mediaPluginState || {};
|
|
225
228
|
if (!viewMediaClientConfig && mediaClientConfig) {
|
|
226
229
|
this.setState({
|
|
227
230
|
viewMediaClientConfig: mediaClientConfig
|
|
@@ -54,15 +54,17 @@ export class MediaNode extends Component {
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
_defineProperty(this, "onFullscreenChange", fullscreen => {
|
|
57
|
-
|
|
57
|
+
var _this$mediaPluginStat;
|
|
58
|
+
(_this$mediaPluginStat = this.mediaPluginState) === null || _this$mediaPluginStat === void 0 ? void 0 : _this$mediaPluginStat.updateAndDispatch({
|
|
58
59
|
isFullscreen: fullscreen
|
|
59
60
|
});
|
|
60
61
|
});
|
|
61
62
|
_defineProperty(this, "handleNewNode", props => {
|
|
63
|
+
var _this$mediaPluginStat2;
|
|
62
64
|
const {
|
|
63
65
|
node
|
|
64
66
|
} = props;
|
|
65
|
-
this.mediaPluginState.handleMediaNodeMount(node, () => this.props.getPos());
|
|
67
|
+
(_this$mediaPluginStat2 = this.mediaPluginState) === null || _this$mediaPluginStat2 === void 0 ? void 0 : _this$mediaPluginStat2.handleMediaNodeMount(node, () => this.props.getPos());
|
|
66
68
|
});
|
|
67
69
|
const {
|
|
68
70
|
view
|
|
@@ -87,17 +89,20 @@ export class MediaNode extends Component {
|
|
|
87
89
|
await this.setViewMediaClientConfig();
|
|
88
90
|
}
|
|
89
91
|
componentWillUnmount() {
|
|
92
|
+
var _this$mediaPluginStat3;
|
|
90
93
|
const {
|
|
91
94
|
node
|
|
92
95
|
} = this.props;
|
|
93
|
-
this.mediaPluginState.handleMediaNodeUnmount(node);
|
|
96
|
+
(_this$mediaPluginStat3 = this.mediaPluginState) === null || _this$mediaPluginStat3 === void 0 ? void 0 : _this$mediaPluginStat3.handleMediaNodeUnmount(node);
|
|
94
97
|
}
|
|
95
98
|
componentDidUpdate(prevProps) {
|
|
99
|
+
var _this$mediaPluginStat5;
|
|
96
100
|
if (prevProps.node.attrs.id !== this.props.node.attrs.id) {
|
|
97
|
-
|
|
101
|
+
var _this$mediaPluginStat4;
|
|
102
|
+
(_this$mediaPluginStat4 = this.mediaPluginState) === null || _this$mediaPluginStat4 === void 0 ? void 0 : _this$mediaPluginStat4.handleMediaNodeUnmount(prevProps.node);
|
|
98
103
|
this.handleNewNode(this.props);
|
|
99
104
|
}
|
|
100
|
-
this.mediaPluginState.updateElement();
|
|
105
|
+
(_this$mediaPluginStat5 = this.mediaPluginState) === null || _this$mediaPluginStat5 === void 0 ? void 0 : _this$mediaPluginStat5.updateElement();
|
|
101
106
|
this.setViewMediaClientConfig();
|
|
102
107
|
}
|
|
103
108
|
render() {
|
|
@@ -470,7 +470,7 @@ class MediaSingleNodeView extends ReactNodeView {
|
|
|
470
470
|
if (offsetLeft !== this.lastOffsetLeft) {
|
|
471
471
|
this.lastOffsetLeft = offsetLeft;
|
|
472
472
|
this.forceViewUpdate = true;
|
|
473
|
-
this.update(this.node, [],
|
|
473
|
+
this.update(this.node, [], undefined, () => true);
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
476
|
return true;
|