@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
|
@@ -81,12 +81,12 @@ var plugin = new SafePlugin({
|
|
|
81
81
|
createSelectionBetween: function createSelectionBetween(view, $anchor, $head) {
|
|
82
82
|
if (view && view.state && view.state.selection instanceof CellSelection) {
|
|
83
83
|
// Do not show GapCursor when there is a CellSection happening
|
|
84
|
-
return;
|
|
84
|
+
return null;
|
|
85
85
|
}
|
|
86
86
|
if ($anchor.pos === $head.pos && GapCursorSelection.valid($head)) {
|
|
87
87
|
return new GapCursorSelection($head);
|
|
88
88
|
}
|
|
89
|
-
return;
|
|
89
|
+
return null;
|
|
90
90
|
},
|
|
91
91
|
// there's no space between top level nodes and the wrapping ProseMirror contenteditable area and handleClick won't capture clicks, there's nothing to click on
|
|
92
92
|
// it handles only attempts to set gap cursor for nested nodes, where we have space between parent and child nodes
|
|
@@ -37,8 +37,8 @@ export var updateStatus = function updateStatus(status) {
|
|
|
37
37
|
}) : status;
|
|
38
38
|
var statusProps = _objectSpread(_objectSpread({}, DEFAULT_STATUS), selectedStatus);
|
|
39
39
|
var tr = state.tr;
|
|
40
|
-
var
|
|
41
|
-
showStatusPickerAt =
|
|
40
|
+
var _ref = pluginKey.getState(state) || {},
|
|
41
|
+
showStatusPickerAt = _ref.showStatusPickerAt;
|
|
42
42
|
if (!showStatusPickerAt) {
|
|
43
43
|
// Same behaviour as quick insert (used in createStatus)
|
|
44
44
|
var statusNode = schema.nodes.status.createChecked(statusProps);
|
|
@@ -105,8 +105,8 @@ export var commitStatusPicker = function commitStatusPicker() {
|
|
|
105
105
|
return function (editorView) {
|
|
106
106
|
var state = editorView.state,
|
|
107
107
|
dispatch = editorView.dispatch;
|
|
108
|
-
var
|
|
109
|
-
showStatusPickerAt =
|
|
108
|
+
var _ref2 = pluginKey.getState(state) || {},
|
|
109
|
+
showStatusPickerAt = _ref2.showStatusPickerAt;
|
|
110
110
|
if (!showStatusPickerAt) {
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
@@ -61,9 +61,9 @@ var createPlugin = function createPlugin(pmPluginFactoryParams, options) {
|
|
|
61
61
|
filterTransaction: function filterTransaction(tr, state) {
|
|
62
62
|
// if it is a selection change transaction, and selection changes from node to text
|
|
63
63
|
if (tr.selectionSet && !tr.steps.length && tr.isGeneric && tr.selection instanceof TextSelection && state.selection instanceof NodeSelection) {
|
|
64
|
-
var
|
|
65
|
-
isNew =
|
|
66
|
-
showStatusPickerAt =
|
|
64
|
+
var _ref = pluginKey.getState(state) || {},
|
|
65
|
+
isNew = _ref.isNew,
|
|
66
|
+
showStatusPickerAt = _ref.showStatusPickerAt;
|
|
67
67
|
var nodeAtSelection = tr.doc.nodeAt(tr.selection.from);
|
|
68
68
|
// prevent changing node selection to text selection on dom change right after inserting status
|
|
69
69
|
// if newly selected status is selected with status picker opened
|
|
@@ -13,6 +13,9 @@ export function createPlugin(eventDispatch, onSave) {
|
|
|
13
13
|
if (mediaState && mediaState.waitForMediaUpload && !mediaState.allUploadsFinished) {
|
|
14
14
|
return true;
|
|
15
15
|
}
|
|
16
|
+
if (!editorView) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
16
19
|
eventDispatch(analyticsEventKey, analyticsPayload(state));
|
|
17
20
|
onSave(editorView);
|
|
18
21
|
return true;
|
|
@@ -39,11 +39,11 @@ export var changeColor = function changeColor(color) {
|
|
|
39
39
|
if (textColor) {
|
|
40
40
|
var pluginState = pluginKey.getState(state);
|
|
41
41
|
var activeColor = getActiveColor(state);
|
|
42
|
-
var withColorAnalytics = createWithColorAnalytics(color, activeColor, pluginState.palette);
|
|
43
|
-
if (pluginState.disabled) {
|
|
42
|
+
var withColorAnalytics = createWithColorAnalytics(color, activeColor, (pluginState === null || pluginState === void 0 ? void 0 : pluginState.palette) || []);
|
|
43
|
+
if (pluginState !== null && pluginState !== void 0 && pluginState.disabled) {
|
|
44
44
|
return false;
|
|
45
45
|
}
|
|
46
|
-
if (color === pluginState.defaultColor) {
|
|
46
|
+
if (color === (pluginState === null || pluginState === void 0 ? void 0 : pluginState.defaultColor)) {
|
|
47
47
|
withColorAnalytics(removeColor())(state, dispatch);
|
|
48
48
|
return true;
|
|
49
49
|
}
|
|
@@ -34,7 +34,7 @@ var isNodeTextBlock = function isNodeTextBlock(schema) {
|
|
|
34
34
|
emoji = _schema$nodes.emoji;
|
|
35
35
|
return function (node, _, parent) {
|
|
36
36
|
if (node.type === mention || node.type === emoji || node.type === text) {
|
|
37
|
-
return parent.isTextblock;
|
|
37
|
+
return parent === null || parent === void 0 ? void 0 : parent.isTextblock;
|
|
38
38
|
}
|
|
39
39
|
return;
|
|
40
40
|
};
|
|
@@ -164,7 +164,10 @@ var buildSubscriptIcon = buildIcon(IconTypes.subscript);
|
|
|
164
164
|
var buildSuperscriptIcon = buildIcon(IconTypes.superscript);
|
|
165
165
|
var useTextFormattingPluginState = function useTextFormattingPluginState(editorState) {
|
|
166
166
|
return useMemo(function () {
|
|
167
|
-
|
|
167
|
+
var pluginState = textFormattingPluginKey.getState(editorState);
|
|
168
|
+
|
|
169
|
+
// TODO: ED-13910 for reasons that goes beyond my knowledge. This is the only way to make the current unit tests happy. Even thought this was wrong before
|
|
170
|
+
return pluginState;
|
|
168
171
|
}, [editorState]);
|
|
169
172
|
};
|
|
170
173
|
export var useFormattingIcons = function useFormattingIcons(_ref4) {
|
|
@@ -16,7 +16,8 @@ export function onItemActivated(_ref) {
|
|
|
16
16
|
break;
|
|
17
17
|
case 'indent':
|
|
18
18
|
{
|
|
19
|
-
var
|
|
19
|
+
var _indentationButtonsPl;
|
|
20
|
+
var node = (_indentationButtonsPl = indentationButtonsPluginKey.getState(editorView.state)) === null || _indentationButtonsPl === void 0 ? void 0 : _indentationButtonsPl.node;
|
|
20
21
|
if (node === 'paragraph_heading') {
|
|
21
22
|
indentParagraphOrHeading(INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
|
|
22
23
|
}
|
|
@@ -30,7 +31,8 @@ export function onItemActivated(_ref) {
|
|
|
30
31
|
}
|
|
31
32
|
case 'outdent':
|
|
32
33
|
{
|
|
33
|
-
var
|
|
34
|
+
var _indentationButtonsPl2;
|
|
35
|
+
var _node = (_indentationButtonsPl2 = indentationButtonsPluginKey.getState(editorView.state)) === null || _indentationButtonsPl2 === void 0 ? void 0 : _indentationButtonsPl2.node;
|
|
34
36
|
if (_node === 'paragraph_heading') {
|
|
35
37
|
outdentParagraphOrHeading(INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
|
|
36
38
|
}
|
|
@@ -3,7 +3,7 @@ import { ACTIONS } from '../pm-plugins/actions';
|
|
|
3
3
|
export var updateQuery = function updateQuery(query) {
|
|
4
4
|
return function (state, dispatch) {
|
|
5
5
|
var pluginState = typeAheadPluginKey.getState(state);
|
|
6
|
-
if (pluginState.query === query) {
|
|
6
|
+
if ((pluginState === null || pluginState === void 0 ? void 0 : pluginState.query) === query) {
|
|
7
7
|
return false;
|
|
8
8
|
}
|
|
9
9
|
var tr = state.tr;
|
|
@@ -3,7 +3,7 @@ import { ACTIONS } from '../pm-plugins/actions';
|
|
|
3
3
|
export var updateSelectedIndex = function updateSelectedIndex(selectedIndex) {
|
|
4
4
|
return function (state, dispatch) {
|
|
5
5
|
var pluginState = typeAheadPluginKey.getState(state);
|
|
6
|
-
if (pluginState.selectedIndex === selectedIndex) {
|
|
6
|
+
if ((pluginState === null || pluginState === void 0 ? void 0 : pluginState.selectedIndex) === selectedIndex) {
|
|
7
7
|
return false;
|
|
8
8
|
}
|
|
9
9
|
var tr = state.tr;
|
|
@@ -56,7 +56,7 @@ export var factoryDecorations = function factoryDecorations(_ref) {
|
|
|
56
56
|
}
|
|
57
57
|
var hasReopenQuery = typeof reopenQuery === 'string' && reopenQuery.trim().length > 0;
|
|
58
58
|
var currentQuery = getTypeAheadQuery(editorView.state);
|
|
59
|
-
if (hasReopenQuery || currentQuery.length === 0) {
|
|
59
|
+
if (hasReopenQuery || (currentQuery === null || currentQuery === void 0 ? void 0 : currentQuery.length) === 0) {
|
|
60
60
|
var command = inputType === 'historyUndo' ? undo : redo;
|
|
61
61
|
var _tr = editorView.state.tr;
|
|
62
62
|
var fakeDispatch = function fakeDispatch(customTr) {
|
|
@@ -94,8 +94,8 @@ export var InputQuery = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
94
94
|
var raw = ((_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.textContent) || '';
|
|
95
95
|
var text = cleanedInputContent();
|
|
96
96
|
var stopDefault = false;
|
|
97
|
-
var
|
|
98
|
-
selectedIndex =
|
|
97
|
+
var _ref2 = getPluginState(editorView.state) || {},
|
|
98
|
+
selectedIndex = _ref2.selectedIndex;
|
|
99
99
|
setInFocus(true);
|
|
100
100
|
switch (key) {
|
|
101
101
|
case ' ':
|
|
@@ -69,8 +69,8 @@ export var WrapperTypeAhead = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
69
69
|
var insertSelectedItem = useCallback(function () {
|
|
70
70
|
var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : SelectItemMode.SELECTED;
|
|
71
71
|
var view = editorViewRef.current;
|
|
72
|
-
var
|
|
73
|
-
selectedIndex =
|
|
72
|
+
var _ref3 = getPluginState(view.state),
|
|
73
|
+
selectedIndex = _ref3.selectedIndex;
|
|
74
74
|
setClosed(true);
|
|
75
75
|
queueMicrotask(function () {
|
|
76
76
|
onItemInsert({
|
|
@@ -87,7 +87,7 @@ export var WrapperTypeAhead = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
87
87
|
useEffect(function () {
|
|
88
88
|
var view = editorViewRef.current;
|
|
89
89
|
var pluginState = getPluginState(view.state);
|
|
90
|
-
if (query.length === 0 || query === pluginState.query || !pluginState.triggerHandler) {
|
|
90
|
+
if (query.length === 0 || query === (pluginState === null || pluginState === void 0 ? void 0 : pluginState.query) || !(pluginState !== null && pluginState !== void 0 && pluginState.triggerHandler)) {
|
|
91
91
|
return;
|
|
92
92
|
}
|
|
93
93
|
updateQuery(query)(view.state, view.dispatch);
|
|
@@ -10,16 +10,18 @@ export var isTypeAheadHandler = function isTypeAheadHandler(handler) {
|
|
|
10
10
|
/** Is a typeahead plugin open? */
|
|
11
11
|
export var isTypeAheadOpen = function isTypeAheadOpen(editorState) {
|
|
12
12
|
var _typeAheadPluginKey$g, _typeAheadPluginKey$g2;
|
|
13
|
-
return (typeAheadPluginKey
|
|
13
|
+
return !!(typeAheadPluginKey !== null && typeAheadPluginKey !== void 0 && (_typeAheadPluginKey$g = typeAheadPluginKey.getState(editorState)) !== null && _typeAheadPluginKey$g !== void 0 && (_typeAheadPluginKey$g2 = _typeAheadPluginKey$g.decorationSet) !== null && _typeAheadPluginKey$g2 !== void 0 && _typeAheadPluginKey$g2.find().length);
|
|
14
14
|
};
|
|
15
15
|
export var getPluginState = function getPluginState(editorState) {
|
|
16
16
|
return typeAheadPluginKey.getState(editorState);
|
|
17
17
|
};
|
|
18
18
|
export var getTypeAheadHandler = function getTypeAheadHandler(editorState) {
|
|
19
|
-
|
|
19
|
+
var _typeAheadPluginKey$g3;
|
|
20
|
+
return (_typeAheadPluginKey$g3 = typeAheadPluginKey.getState(editorState)) === null || _typeAheadPluginKey$g3 === void 0 ? void 0 : _typeAheadPluginKey$g3.triggerHandler;
|
|
20
21
|
};
|
|
21
22
|
export var getTypeAheadQuery = function getTypeAheadQuery(editorState) {
|
|
22
|
-
|
|
23
|
+
var _typeAheadPluginKey$g4;
|
|
24
|
+
return (_typeAheadPluginKey$g4 = typeAheadPluginKey.getState(editorState)) === null || _typeAheadPluginKey$g4 === void 0 ? void 0 : _typeAheadPluginKey$g4.query;
|
|
23
25
|
};
|
|
24
26
|
export var isTypeAheadAllowed = function isTypeAheadAllowed(state) {
|
|
25
27
|
var isOpen = isTypeAheadOpen(state);
|
|
@@ -49,7 +49,7 @@ export var subscribeToToolbarAndPickerUpdates = function subscribeToToolbarAndPi
|
|
|
49
49
|
if (dateState !== oldDateState || statusState !== oldStatusState ||
|
|
50
50
|
// Sometimes the toolbar changes while a picker is open, we dont care about this
|
|
51
51
|
// EG A nested status or date node in a table
|
|
52
|
-
!isToolbarEqual && !statusState.showStatusPickerAt && !dateState.showDatePickerAt) {
|
|
52
|
+
!isToolbarEqual && !(statusState !== null && statusState !== void 0 && statusState.showStatusPickerAt) && !(dateState !== null && dateState !== void 0 && dateState.showDatePickerAt)) {
|
|
53
53
|
shouldCallback = true;
|
|
54
54
|
}
|
|
55
55
|
} else {
|
|
@@ -1,137 +1,90 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _createClass from "@babel/runtime/helpers/createClass";
|
|
3
|
-
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
4
|
-
import _inherits from "@babel/runtime/helpers/inherits";
|
|
5
|
-
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
|
-
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
10
2
|
/** @jsx jsx */
|
|
11
|
-
import React from 'react';
|
|
3
|
+
import React, { useEffect, useState, useRef, useMemo } from 'react';
|
|
12
4
|
import { jsx } from '@emotion/react';
|
|
13
|
-
import rafSchedule from 'raf-schd';
|
|
14
|
-
import { akEditorToolbarKeylineHeight } from '@atlaskit/editor-shared-styles';
|
|
15
5
|
import { fullPageEditorWrapper } from './StyledComponents';
|
|
16
6
|
import { ContextPanelWidthProvider } from '@atlaskit/editor-common/ui';
|
|
17
7
|
import { FullPageContentArea } from './FullPageContentArea';
|
|
18
8
|
import { FullPageToolbar } from './FullPageToolbar';
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
_defineProperty(_assertThisInitialized(_this), "scrollContainer", null);
|
|
30
|
-
// Wrapper container for toolbar and content area
|
|
31
|
-
_defineProperty(_assertThisInitialized(_this), "wrapperElementRef", /*#__PURE__*/React.createRef());
|
|
32
|
-
_defineProperty(_assertThisInitialized(_this), "contentAreaRef", function (contentArea) {
|
|
33
|
-
_this.contentArea = contentArea;
|
|
34
|
-
});
|
|
35
|
-
_defineProperty(_assertThisInitialized(_this), "scrollContainerRef", function (ref) {
|
|
36
|
-
var previousScrollContainer = _this.scrollContainer;
|
|
37
|
-
|
|
38
|
-
// remove existing handler
|
|
39
|
-
if (previousScrollContainer) {
|
|
40
|
-
previousScrollContainer.removeEventListener('scroll', _this.updateToolbarKeyline);
|
|
41
|
-
}
|
|
42
|
-
_this.scrollContainer = ref ? ref : null;
|
|
43
|
-
if (_this.scrollContainer) {
|
|
44
|
-
_this.scrollContainer.addEventListener('scroll', _this.updateToolbarKeyline, false);
|
|
45
|
-
_this.updateToolbarKeyline();
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
_defineProperty(_assertThisInitialized(_this), "updateToolbarKeyline", rafSchedule(function () {
|
|
49
|
-
if (!_this.scrollContainer) {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
var scrollTop = _this.scrollContainer.scrollTop;
|
|
53
|
-
var showKeyline = scrollTop > akEditorToolbarKeylineHeight;
|
|
54
|
-
if (showKeyline !== _this.state.showKeyline) {
|
|
55
|
-
_this.setState({
|
|
56
|
-
showKeyline: showKeyline
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
return false;
|
|
60
|
-
}));
|
|
61
|
-
_defineProperty(_assertThisInitialized(_this), "handleResize", function () {
|
|
62
|
-
_this.updateToolbarKeyline();
|
|
63
|
-
});
|
|
64
|
-
_this.featureFlags = props.featureFlags;
|
|
65
|
-
if (props.innerRef) {
|
|
66
|
-
_this.wrapperElementRef = props.innerRef;
|
|
9
|
+
import { browser } from '@atlaskit/editor-common/utils';
|
|
10
|
+
var useShowKeyline = function useShowKeyline(contentAreaRef) {
|
|
11
|
+
var _useState = useState(false),
|
|
12
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
13
|
+
showKeyline = _useState2[0],
|
|
14
|
+
setShowKeyline = _useState2[1];
|
|
15
|
+
useEffect(function () {
|
|
16
|
+
var _contentAreaRef$curre;
|
|
17
|
+
if (!((_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 && _contentAreaRef$curre.contentArea)) {
|
|
18
|
+
return;
|
|
67
19
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
20
|
+
var intersection = new IntersectionObserver(function (_ref) {
|
|
21
|
+
var _ref2 = _slicedToArray(_ref, 1),
|
|
22
|
+
entry = _ref2[0];
|
|
23
|
+
setShowKeyline(!entry.isIntersecting && entry.boundingClientRect.top < entry.intersectionRect.top);
|
|
24
|
+
}, {
|
|
25
|
+
root: undefined,
|
|
26
|
+
// Safari seems to miss events (on fast scroll) sometimes due
|
|
27
|
+
// to differences in IntersectionObserver behaviour between browsers.
|
|
28
|
+
// By lowering the threshold a little it gives Safari more
|
|
29
|
+
// time to catch these events.
|
|
30
|
+
threshold: browser.safari ? 0.98 : 1
|
|
31
|
+
});
|
|
32
|
+
intersection.observe(contentAreaRef.current.contentArea);
|
|
33
|
+
return function () {
|
|
34
|
+
intersection.disconnect();
|
|
35
|
+
};
|
|
36
|
+
}, [contentAreaRef]);
|
|
37
|
+
return showKeyline;
|
|
38
|
+
};
|
|
39
|
+
export var FullPageEditor = function FullPageEditor(props) {
|
|
40
|
+
var _scrollContentContain, _scrollContentContain2, _wrapperElementRef$cu;
|
|
41
|
+
var wrapperElementRef = useMemo(function () {
|
|
42
|
+
return props.innerRef;
|
|
43
|
+
}, [props.innerRef]);
|
|
44
|
+
var scrollContentContainerRef = useRef(null);
|
|
45
|
+
var showKeyline = useShowKeyline(scrollContentContainerRef);
|
|
46
|
+
return jsx(ContextPanelWidthProvider, null, jsx("div", {
|
|
47
|
+
css: fullPageEditorWrapper,
|
|
48
|
+
className: "akEditor",
|
|
49
|
+
ref: wrapperElementRef
|
|
50
|
+
}, jsx(FullPageToolbar, {
|
|
51
|
+
appearance: props.appearance,
|
|
52
|
+
beforeIcon: props.primaryToolbarIconBefore,
|
|
53
|
+
collabEdit: props.collabEdit,
|
|
54
|
+
containerElement: (_scrollContentContain = (_scrollContentContain2 = scrollContentContainerRef.current) === null || _scrollContentContain2 === void 0 ? void 0 : _scrollContentContain2.scrollContainer) !== null && _scrollContentContain !== void 0 ? _scrollContentContain : null,
|
|
55
|
+
customPrimaryToolbarComponents: props.customPrimaryToolbarComponents,
|
|
56
|
+
disabled: !!props.disabled,
|
|
57
|
+
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
58
|
+
editorActions: props.editorActions,
|
|
59
|
+
editorDOMElement: props.editorDOMElement,
|
|
60
|
+
editorView: props.editorView,
|
|
61
|
+
eventDispatcher: props.eventDispatcher,
|
|
62
|
+
hasMinWidth: props.enableToolbarMinWidth,
|
|
63
|
+
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
64
|
+
popupsMountPoint: props.popupsMountPoint,
|
|
65
|
+
popupsScrollableElement: props.popupsScrollableElement,
|
|
66
|
+
primaryToolbarComponents: props.primaryToolbarComponents,
|
|
67
|
+
providerFactory: props.providerFactory,
|
|
68
|
+
showKeyline: showKeyline,
|
|
69
|
+
featureFlags: props.featureFlags
|
|
70
|
+
}), jsx(FullPageContentArea, {
|
|
71
|
+
ref: scrollContentContainerRef,
|
|
72
|
+
appearance: props.appearance,
|
|
73
|
+
contentComponents: props.contentComponents,
|
|
74
|
+
contextPanel: props.contextPanel,
|
|
75
|
+
customContentComponents: props.customContentComponents,
|
|
76
|
+
disabled: props.disabled,
|
|
77
|
+
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
78
|
+
editorActions: props.editorActions,
|
|
79
|
+
editorDOMElement: props.editorDOMElement,
|
|
80
|
+
editorView: props.editorView,
|
|
81
|
+
eventDispatcher: props.eventDispatcher,
|
|
82
|
+
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
83
|
+
popupsMountPoint: props.popupsMountPoint,
|
|
84
|
+
popupsScrollableElement: props.popupsScrollableElement,
|
|
85
|
+
providerFactory: props.providerFactory,
|
|
86
|
+
wrapperElement: (_wrapperElementRef$cu = wrapperElementRef === null || wrapperElementRef === void 0 ? void 0 : wrapperElementRef.current) !== null && _wrapperElementRef$cu !== void 0 ? _wrapperElementRef$cu : null,
|
|
87
|
+
pluginHooks: props.pluginHooks,
|
|
88
|
+
featureFlags: props.featureFlags
|
|
89
|
+
})));
|
|
90
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, useTheme } from '@emotion/react';
|
|
3
3
|
import { WidthConsumer } from '@atlaskit/editor-common/ui';
|
|
4
4
|
import { ContextPanelConsumer } from '@atlaskit/editor-common/ui';
|
|
5
|
-
import React from 'react';
|
|
5
|
+
import React, { useImperativeHandle, useRef } from 'react';
|
|
6
6
|
import { injectIntl } from 'react-intl-next';
|
|
7
7
|
import { ClickAreaBlock } from '../../Addon';
|
|
8
8
|
import ContextPanel from '../../ContextPanel';
|
|
@@ -10,20 +10,33 @@ import PluginSlot from '../../PluginSlot';
|
|
|
10
10
|
import { contentArea, editorContentAreaStyle, sidebarArea, ScrollContainer, editorContentGutterStyle, positionedOverEditorStyle } from './StyledComponents';
|
|
11
11
|
import messages from './messages';
|
|
12
12
|
export var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
13
|
-
var Content = /*#__PURE__*/React.
|
|
13
|
+
var Content = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
14
14
|
var theme = useTheme();
|
|
15
15
|
var fullWidthMode = props.appearance === 'full-width';
|
|
16
|
+
var scrollContainerRef = useRef(null);
|
|
17
|
+
var contentAreaRef = useRef(null);
|
|
18
|
+
useImperativeHandle(ref, function () {
|
|
19
|
+
return {
|
|
20
|
+
get scrollContainer() {
|
|
21
|
+
return scrollContainerRef.current;
|
|
22
|
+
},
|
|
23
|
+
get contentArea() {
|
|
24
|
+
return contentAreaRef.current;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}, []);
|
|
16
28
|
return jsx(WidthConsumer, null, function (_ref) {
|
|
17
29
|
var width = _ref.width;
|
|
18
30
|
return jsx(ContextPanelConsumer, null, function (_ref2) {
|
|
31
|
+
var _contentAreaRef$curre;
|
|
19
32
|
var positionedOverEditor = _ref2.positionedOverEditor;
|
|
20
33
|
return jsx("div", {
|
|
21
34
|
css: [contentArea, positionedOverEditor && positionedOverEditorStyle],
|
|
22
35
|
"data-testid": CONTENT_AREA_TEST_ID
|
|
23
36
|
}, jsx(ScrollContainer, {
|
|
24
|
-
ref: props.scrollContainerRef,
|
|
25
37
|
className: "fabric-editor-popup-scroll-parent",
|
|
26
|
-
featureFlags: props.featureFlags
|
|
38
|
+
featureFlags: props.featureFlags,
|
|
39
|
+
ref: scrollContainerRef
|
|
27
40
|
}, jsx(ClickAreaBlock, {
|
|
28
41
|
editorView: props.editorView,
|
|
29
42
|
editorDisabled: props.disabled
|
|
@@ -35,10 +48,11 @@ var Content = /*#__PURE__*/React.memo(function (props) {
|
|
|
35
48
|
}),
|
|
36
49
|
role: "region",
|
|
37
50
|
"aria-label": props.intl.formatMessage(messages.editableContentLabel),
|
|
38
|
-
ref:
|
|
51
|
+
ref: contentAreaRef
|
|
39
52
|
}, jsx("div", {
|
|
40
53
|
css: editorContentGutterStyle,
|
|
41
|
-
className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' ')
|
|
54
|
+
className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' '),
|
|
55
|
+
ref: contentAreaRef
|
|
42
56
|
}, props.customContentComponents, jsx(PluginSlot, {
|
|
43
57
|
editorView: props.editorView,
|
|
44
58
|
editorActions: props.editorActions,
|
|
@@ -47,12 +61,12 @@ var Content = /*#__PURE__*/React.memo(function (props) {
|
|
|
47
61
|
appearance: props.appearance,
|
|
48
62
|
items: props.contentComponents,
|
|
49
63
|
pluginHooks: props.pluginHooks,
|
|
50
|
-
contentArea:
|
|
64
|
+
contentArea: (_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 ? _contentAreaRef$curre : undefined,
|
|
51
65
|
popupsMountPoint: props.popupsMountPoint,
|
|
52
66
|
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
53
67
|
popupsScrollableElement: props.popupsScrollableElement,
|
|
54
68
|
disabled: !!props.disabled,
|
|
55
|
-
containerElement:
|
|
69
|
+
containerElement: scrollContainerRef.current,
|
|
56
70
|
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
57
71
|
wrapperElement: props.wrapperElement
|
|
58
72
|
}), props.editorDOMElement)))), jsx("div", {
|
|
@@ -63,4 +77,6 @@ var Content = /*#__PURE__*/React.memo(function (props) {
|
|
|
63
77
|
});
|
|
64
78
|
});
|
|
65
79
|
});
|
|
66
|
-
export var FullPageContentArea = injectIntl(Content
|
|
80
|
+
export var FullPageContentArea = injectIntl(Content, {
|
|
81
|
+
forwardRef: true
|
|
82
|
+
});
|
package/dist/esm/utils/mark.js
CHANGED
|
@@ -91,7 +91,7 @@ export var sanitiseMarksInSelection = function sanitiseMarksInSelection(tr, newP
|
|
|
91
91
|
return true;
|
|
92
92
|
}
|
|
93
93
|
node.marks.forEach(function (mark) {
|
|
94
|
-
if (!parent.type.allowsMarkType(mark.type) || newParentType && !newParentType.allowsMarkType(mark.type)) {
|
|
94
|
+
if (!(parent !== null && parent !== void 0 && parent.type.allowsMarkType(mark.type)) || newParentType && !newParentType.allowsMarkType(mark.type)) {
|
|
95
95
|
var filteredMarks = node.marks.filter(function (m) {
|
|
96
96
|
return m.type !== mark.type;
|
|
97
97
|
});
|
package/dist/esm/version.json
CHANGED
|
@@ -11,7 +11,7 @@ export declare function createParagraphNear(append?: boolean): Command;
|
|
|
11
11
|
export declare function addParagraphAtEnd(tr: Transaction): void;
|
|
12
12
|
export declare function createParagraphAtEnd(): Command;
|
|
13
13
|
export declare const changeImageAlignment: (align?: AlignmentState) => Command;
|
|
14
|
-
export declare const createToggleBlockMarkOnRange: <T extends {} = object>(markType: MarkType, getAttrs: (prevAttrs?: T | undefined, node?: PMNode) => false | T | undefined, allowedBlocks?: NodeType
|
|
14
|
+
export declare const createToggleBlockMarkOnRange: <T extends {} = object>(markType: MarkType, getAttrs: (prevAttrs?: T | undefined, node?: PMNode) => false | T | undefined, allowedBlocks?: NodeType[] | ((schema: Schema, node: PMNode, parent: PMNode | null) => boolean) | undefined) => (from: number, to: number, tr: Transaction, state: EditorState) => boolean;
|
|
15
15
|
/**
|
|
16
16
|
* Toggles block mark based on the return type of `getAttrs`.
|
|
17
17
|
* This is similar to ProseMirror's `getAttrs` from `AttributeSpec`
|
|
@@ -19,5 +19,5 @@ export declare const createToggleBlockMarkOnRange: <T extends {} = object>(markT
|
|
|
19
19
|
* return `undefined for no-op.
|
|
20
20
|
* return an `object` to update the mark.
|
|
21
21
|
*/
|
|
22
|
-
export declare const toggleBlockMark: <T extends {} = object>(markType: MarkType, getAttrs: (prevAttrs?: T | undefined, node?: PMNode) => false | T | undefined, allowedBlocks?: NodeType
|
|
22
|
+
export declare const toggleBlockMark: <T extends {} = object>(markType: MarkType, getAttrs: (prevAttrs?: T | undefined, node?: PMNode) => false | T | undefined, allowedBlocks?: NodeType[] | ((schema: Schema, node: PMNode, parent: PMNode | null) => boolean) | undefined) => Command;
|
|
23
23
|
export declare const clearEditorContent: Command;
|
|
@@ -85,7 +85,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
85
85
|
private countNodes;
|
|
86
86
|
private isTransactionTrackingExplicitlyDisabled;
|
|
87
87
|
constructor(props: EditorViewProps & WrappedComponentProps & T, context: EditorReactContext);
|
|
88
|
-
getEditorState: () => EditorState
|
|
88
|
+
getEditorState: () => EditorState | undefined;
|
|
89
89
|
UNSAFE_componentWillReceiveProps(nextProps: EditorViewProps): void;
|
|
90
90
|
formatFullWidthAppearance: (appearance: EditorAppearance | undefined) => FULL_WIDTH_MODE;
|
|
91
91
|
resetEditorState: ({ doc, shouldScrollToBottom, }: {
|
|
@@ -102,7 +102,7 @@ export declare class ReactEditorView<T = {}> extends React.Component<EditorViewP
|
|
|
102
102
|
componentWillUnmount(): void;
|
|
103
103
|
private editorPlugins;
|
|
104
104
|
getPlugins(preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>): EditorPlugin[];
|
|
105
|
-
createEditorState: (options: CreateEditorStateOptions) => EditorState
|
|
105
|
+
createEditorState: (options: CreateEditorStateOptions) => EditorState;
|
|
106
106
|
private onEditorViewStateUpdated;
|
|
107
107
|
private trackValidTransactions;
|
|
108
108
|
private dispatchTransaction;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/// <reference path="../../../../../typings/prosemirror.d.ts" />
|
|
2
|
+
/// <reference path="../../../../../typings/prosemirror-state.d.ts" />
|
|
1
3
|
export { getChangedNodes } from './utils/document';
|
|
2
4
|
export { validateNodes } from './utils/nodes';
|
|
3
5
|
export { toJSON } from './utils';
|
|
@@ -8,7 +10,7 @@ export { ExtensionNode } from './plugins/extension/nodeviews/extension';
|
|
|
8
10
|
* @deprecated [ED-14688] - used during the table viz project and not used anymore
|
|
9
11
|
* will be removed in a future version of `@atlaskit/editor-core`
|
|
10
12
|
*/
|
|
11
|
-
declare const tablePluginKey: import("prosemirror-state").PluginKey<import("@atlaskit/editor-plugin-table/types").TablePluginState
|
|
13
|
+
declare const tablePluginKey: import("prosemirror-state").PluginKey<import("@atlaskit/editor-plugin-table/types").TablePluginState>;
|
|
12
14
|
export { tablePluginKey };
|
|
13
15
|
export declare const EmitterEvents: {
|
|
14
16
|
TABLE_DELETED: string;
|