@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
|
@@ -174,7 +174,10 @@ var buildSubscriptIcon = buildIcon(_types.IconTypes.subscript);
|
|
|
174
174
|
var buildSuperscriptIcon = buildIcon(_types.IconTypes.superscript);
|
|
175
175
|
var useTextFormattingPluginState = function useTextFormattingPluginState(editorState) {
|
|
176
176
|
return (0, _react.useMemo)(function () {
|
|
177
|
-
|
|
177
|
+
var pluginState = _pluginKey.pluginKey.getState(editorState);
|
|
178
|
+
|
|
179
|
+
// 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
|
|
180
|
+
return pluginState;
|
|
178
181
|
}, [editorState]);
|
|
179
182
|
};
|
|
180
183
|
var useFormattingIcons = function useFormattingIcons(_ref4) {
|
|
@@ -22,7 +22,8 @@ function onItemActivated(_ref) {
|
|
|
22
22
|
break;
|
|
23
23
|
case 'indent':
|
|
24
24
|
{
|
|
25
|
-
var
|
|
25
|
+
var _indentationButtonsPl;
|
|
26
|
+
var node = (_indentationButtonsPl = _indentationButtons.pluginKey.getState(editorView.state)) === null || _indentationButtonsPl === void 0 ? void 0 : _indentationButtonsPl.node;
|
|
26
27
|
if (node === 'paragraph_heading') {
|
|
27
28
|
(0, _commands2.getIndentCommand)(_analytics.INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
|
|
28
29
|
}
|
|
@@ -36,7 +37,8 @@ function onItemActivated(_ref) {
|
|
|
36
37
|
}
|
|
37
38
|
case 'outdent':
|
|
38
39
|
{
|
|
39
|
-
var
|
|
40
|
+
var _indentationButtonsPl2;
|
|
41
|
+
var _node = (_indentationButtonsPl2 = _indentationButtons.pluginKey.getState(editorView.state)) === null || _indentationButtonsPl2 === void 0 ? void 0 : _indentationButtonsPl2.node;
|
|
40
42
|
if (_node === 'paragraph_heading') {
|
|
41
43
|
(0, _commands2.getOutdentCommand)(_analytics.INPUT_METHOD.TOOLBAR)(editorView.state, editorView.dispatch);
|
|
42
44
|
}
|
|
@@ -9,7 +9,7 @@ var _actions = require("../pm-plugins/actions");
|
|
|
9
9
|
var updateQuery = function updateQuery(query) {
|
|
10
10
|
return function (state, dispatch) {
|
|
11
11
|
var pluginState = _key.pluginKey.getState(state);
|
|
12
|
-
if (pluginState.query === query) {
|
|
12
|
+
if ((pluginState === null || pluginState === void 0 ? void 0 : pluginState.query) === query) {
|
|
13
13
|
return false;
|
|
14
14
|
}
|
|
15
15
|
var tr = state.tr;
|
|
@@ -9,7 +9,7 @@ var _actions = require("../pm-plugins/actions");
|
|
|
9
9
|
var updateSelectedIndex = function updateSelectedIndex(selectedIndex) {
|
|
10
10
|
return function (state, dispatch) {
|
|
11
11
|
var pluginState = _key.pluginKey.getState(state);
|
|
12
|
-
if (pluginState.selectedIndex === selectedIndex) {
|
|
12
|
+
if ((pluginState === null || pluginState === void 0 ? void 0 : pluginState.selectedIndex) === selectedIndex) {
|
|
13
13
|
return false;
|
|
14
14
|
}
|
|
15
15
|
var tr = state.tr;
|
|
@@ -63,7 +63,7 @@ var factoryDecorations = function factoryDecorations(_ref) {
|
|
|
63
63
|
}
|
|
64
64
|
var hasReopenQuery = typeof reopenQuery === 'string' && reopenQuery.trim().length > 0;
|
|
65
65
|
var currentQuery = (0, _utils.getTypeAheadQuery)(editorView.state);
|
|
66
|
-
if (hasReopenQuery || currentQuery.length === 0) {
|
|
66
|
+
if (hasReopenQuery || (currentQuery === null || currentQuery === void 0 ? void 0 : currentQuery.length) === 0) {
|
|
67
67
|
var command = inputType === 'historyUndo' ? _prosemirrorHistory.undo : _prosemirrorHistory.redo;
|
|
68
68
|
var _tr = editorView.state.tr;
|
|
69
69
|
var fakeDispatch = function fakeDispatch(customTr) {
|
|
@@ -104,8 +104,8 @@ var InputQuery = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
104
104
|
var raw = ((_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.textContent) || '';
|
|
105
105
|
var text = cleanedInputContent();
|
|
106
106
|
var stopDefault = false;
|
|
107
|
-
var
|
|
108
|
-
selectedIndex =
|
|
107
|
+
var _ref2 = (0, _utils2.getPluginState)(editorView.state) || {},
|
|
108
|
+
selectedIndex = _ref2.selectedIndex;
|
|
109
109
|
setInFocus(true);
|
|
110
110
|
switch (key) {
|
|
111
111
|
case ' ':
|
|
@@ -79,8 +79,8 @@ var WrapperTypeAhead = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
79
79
|
var insertSelectedItem = (0, _react.useCallback)(function () {
|
|
80
80
|
var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _typeAhead.SelectItemMode.SELECTED;
|
|
81
81
|
var view = editorViewRef.current;
|
|
82
|
-
var
|
|
83
|
-
selectedIndex =
|
|
82
|
+
var _ref3 = (0, _utils.getPluginState)(view.state),
|
|
83
|
+
selectedIndex = _ref3.selectedIndex;
|
|
84
84
|
setClosed(true);
|
|
85
85
|
queueMicrotask(function () {
|
|
86
86
|
onItemInsert({
|
|
@@ -97,7 +97,7 @@ var WrapperTypeAhead = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
97
97
|
(0, _react.useEffect)(function () {
|
|
98
98
|
var view = editorViewRef.current;
|
|
99
99
|
var pluginState = (0, _utils.getPluginState)(view.state);
|
|
100
|
-
if (query.length === 0 || query === pluginState.query || !pluginState.triggerHandler) {
|
|
100
|
+
if (query.length === 0 || query === (pluginState === null || pluginState === void 0 ? void 0 : pluginState.query) || !(pluginState !== null && pluginState !== void 0 && pluginState.triggerHandler)) {
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
103
|
(0, _updateQuery.updateQuery)(query)(view.state, view.dispatch);
|
|
@@ -17,7 +17,7 @@ var isTypeAheadHandler = function isTypeAheadHandler(handler) {
|
|
|
17
17
|
exports.isTypeAheadHandler = isTypeAheadHandler;
|
|
18
18
|
var isTypeAheadOpen = function isTypeAheadOpen(editorState) {
|
|
19
19
|
var _typeAheadPluginKey$g, _typeAheadPluginKey$g2;
|
|
20
|
-
return (_key.pluginKey
|
|
20
|
+
return !!(_key.pluginKey !== null && _key.pluginKey !== void 0 && (_typeAheadPluginKey$g = _key.pluginKey.getState(editorState)) !== null && _typeAheadPluginKey$g !== void 0 && (_typeAheadPluginKey$g2 = _typeAheadPluginKey$g.decorationSet) !== null && _typeAheadPluginKey$g2 !== void 0 && _typeAheadPluginKey$g2.find().length);
|
|
21
21
|
};
|
|
22
22
|
exports.isTypeAheadOpen = isTypeAheadOpen;
|
|
23
23
|
var getPluginState = function getPluginState(editorState) {
|
|
@@ -25,11 +25,13 @@ var getPluginState = function getPluginState(editorState) {
|
|
|
25
25
|
};
|
|
26
26
|
exports.getPluginState = getPluginState;
|
|
27
27
|
var getTypeAheadHandler = function getTypeAheadHandler(editorState) {
|
|
28
|
-
|
|
28
|
+
var _typeAheadPluginKey$g3;
|
|
29
|
+
return (_typeAheadPluginKey$g3 = _key.pluginKey.getState(editorState)) === null || _typeAheadPluginKey$g3 === void 0 ? void 0 : _typeAheadPluginKey$g3.triggerHandler;
|
|
29
30
|
};
|
|
30
31
|
exports.getTypeAheadHandler = getTypeAheadHandler;
|
|
31
32
|
var getTypeAheadQuery = function getTypeAheadQuery(editorState) {
|
|
32
|
-
|
|
33
|
+
var _typeAheadPluginKey$g4;
|
|
34
|
+
return (_typeAheadPluginKey$g4 = _key.pluginKey.getState(editorState)) === null || _typeAheadPluginKey$g4 === void 0 ? void 0 : _typeAheadPluginKey$g4.query;
|
|
33
35
|
};
|
|
34
36
|
exports.getTypeAheadQuery = getTypeAheadQuery;
|
|
35
37
|
var isTypeAheadAllowed = function isTypeAheadAllowed(state) {
|
|
@@ -55,7 +55,7 @@ var subscribeToToolbarAndPickerUpdates = function subscribeToToolbarAndPickerUpd
|
|
|
55
55
|
if (dateState !== oldDateState || statusState !== oldStatusState ||
|
|
56
56
|
// Sometimes the toolbar changes while a picker is open, we dont care about this
|
|
57
57
|
// EG A nested status or date node in a table
|
|
58
|
-
!isToolbarEqual && !statusState.showStatusPickerAt && !dateState.showDatePickerAt) {
|
|
58
|
+
!isToolbarEqual && !(statusState !== null && statusState !== void 0 && statusState.showStatusPickerAt) && !(dateState !== null && dateState !== void 0 && dateState.showDatePickerAt)) {
|
|
59
59
|
shouldCallback = true;
|
|
60
60
|
}
|
|
61
61
|
} else {
|
|
@@ -1,144 +1,102 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.FullPageEditor = void 0;
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
11
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
12
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
16
11
|
var _react2 = require("@emotion/react");
|
|
17
|
-
var _rafSchd = _interopRequireDefault(require("raf-schd"));
|
|
18
|
-
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
19
12
|
var _StyledComponents = require("./StyledComponents");
|
|
20
13
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
21
14
|
var _FullPageContentArea = require("./FullPageContentArea");
|
|
22
15
|
var _FullPageToolbar = require("./FullPageToolbar");
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
var _super = _createSuper(FullPageEditor);
|
|
28
|
-
function FullPageEditor(props) {
|
|
29
|
-
var _this;
|
|
30
|
-
(0, _classCallCheck2.default)(this, FullPageEditor);
|
|
31
|
-
_this = _super.call(this, props);
|
|
32
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "state", {
|
|
33
|
-
showKeyline: false
|
|
34
|
-
});
|
|
35
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "scrollContainer", null);
|
|
36
|
-
// Wrapper container for toolbar and content area
|
|
37
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "wrapperElementRef", /*#__PURE__*/_react.default.createRef());
|
|
38
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "contentAreaRef", function (contentArea) {
|
|
39
|
-
_this.contentArea = contentArea;
|
|
40
|
-
});
|
|
41
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "scrollContainerRef", function (ref) {
|
|
42
|
-
var previousScrollContainer = _this.scrollContainer;
|
|
16
|
+
var _utils = require("@atlaskit/editor-common/utils");
|
|
17
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
/** @jsx jsx */
|
|
43
20
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
});
|
|
54
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "updateToolbarKeyline", (0, _rafSchd.default)(function () {
|
|
55
|
-
if (!_this.scrollContainer) {
|
|
56
|
-
return false;
|
|
57
|
-
}
|
|
58
|
-
var scrollTop = _this.scrollContainer.scrollTop;
|
|
59
|
-
var showKeyline = scrollTop > _editorSharedStyles.akEditorToolbarKeylineHeight;
|
|
60
|
-
if (showKeyline !== _this.state.showKeyline) {
|
|
61
|
-
_this.setState({
|
|
62
|
-
showKeyline: showKeyline
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
return false;
|
|
66
|
-
}));
|
|
67
|
-
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleResize", function () {
|
|
68
|
-
_this.updateToolbarKeyline();
|
|
69
|
-
});
|
|
70
|
-
_this.featureFlags = props.featureFlags;
|
|
71
|
-
if (props.innerRef) {
|
|
72
|
-
_this.wrapperElementRef = props.innerRef;
|
|
21
|
+
var useShowKeyline = function useShowKeyline(contentAreaRef) {
|
|
22
|
+
var _useState = (0, _react.useState)(false),
|
|
23
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
24
|
+
showKeyline = _useState2[0],
|
|
25
|
+
setShowKeyline = _useState2[1];
|
|
26
|
+
(0, _react.useEffect)(function () {
|
|
27
|
+
var _contentAreaRef$curre;
|
|
28
|
+
if (!((_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 && _contentAreaRef$curre.contentArea)) {
|
|
29
|
+
return;
|
|
73
30
|
}
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
31
|
+
var intersection = new IntersectionObserver(function (_ref) {
|
|
32
|
+
var _ref2 = (0, _slicedToArray2.default)(_ref, 1),
|
|
33
|
+
entry = _ref2[0];
|
|
34
|
+
setShowKeyline(!entry.isIntersecting && entry.boundingClientRect.top < entry.intersectionRect.top);
|
|
35
|
+
}, {
|
|
36
|
+
root: undefined,
|
|
37
|
+
// Safari seems to miss events (on fast scroll) sometimes due
|
|
38
|
+
// to differences in IntersectionObserver behaviour between browsers.
|
|
39
|
+
// By lowering the threshold a little it gives Safari more
|
|
40
|
+
// time to catch these events.
|
|
41
|
+
threshold: _utils.browser.safari ? 0.98 : 1
|
|
42
|
+
});
|
|
43
|
+
intersection.observe(contentAreaRef.current.contentArea);
|
|
44
|
+
return function () {
|
|
45
|
+
intersection.disconnect();
|
|
46
|
+
};
|
|
47
|
+
}, [contentAreaRef]);
|
|
48
|
+
return showKeyline;
|
|
49
|
+
};
|
|
50
|
+
var FullPageEditor = function FullPageEditor(props) {
|
|
51
|
+
var _scrollContentContain, _scrollContentContain2, _wrapperElementRef$cu;
|
|
52
|
+
var wrapperElementRef = (0, _react.useMemo)(function () {
|
|
53
|
+
return props.innerRef;
|
|
54
|
+
}, [props.innerRef]);
|
|
55
|
+
var scrollContentContainerRef = (0, _react.useRef)(null);
|
|
56
|
+
var showKeyline = useShowKeyline(scrollContentContainerRef);
|
|
57
|
+
return (0, _react2.jsx)(_ui.ContextPanelWidthProvider, null, (0, _react2.jsx)("div", {
|
|
58
|
+
css: _StyledComponents.fullPageEditorWrapper,
|
|
59
|
+
className: "akEditor",
|
|
60
|
+
ref: wrapperElementRef
|
|
61
|
+
}, (0, _react2.jsx)(_FullPageToolbar.FullPageToolbar, {
|
|
62
|
+
appearance: props.appearance,
|
|
63
|
+
beforeIcon: props.primaryToolbarIconBefore,
|
|
64
|
+
collabEdit: props.collabEdit,
|
|
65
|
+
containerElement: (_scrollContentContain = (_scrollContentContain2 = scrollContentContainerRef.current) === null || _scrollContentContain2 === void 0 ? void 0 : _scrollContentContain2.scrollContainer) !== null && _scrollContentContain !== void 0 ? _scrollContentContain : null,
|
|
66
|
+
customPrimaryToolbarComponents: props.customPrimaryToolbarComponents,
|
|
67
|
+
disabled: !!props.disabled,
|
|
68
|
+
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
69
|
+
editorActions: props.editorActions,
|
|
70
|
+
editorDOMElement: props.editorDOMElement,
|
|
71
|
+
editorView: props.editorView,
|
|
72
|
+
eventDispatcher: props.eventDispatcher,
|
|
73
|
+
hasMinWidth: props.enableToolbarMinWidth,
|
|
74
|
+
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
75
|
+
popupsMountPoint: props.popupsMountPoint,
|
|
76
|
+
popupsScrollableElement: props.popupsScrollableElement,
|
|
77
|
+
primaryToolbarComponents: props.primaryToolbarComponents,
|
|
78
|
+
providerFactory: props.providerFactory,
|
|
79
|
+
showKeyline: showKeyline,
|
|
80
|
+
featureFlags: props.featureFlags
|
|
81
|
+
}), (0, _react2.jsx)(_FullPageContentArea.FullPageContentArea, {
|
|
82
|
+
ref: scrollContentContainerRef,
|
|
83
|
+
appearance: props.appearance,
|
|
84
|
+
contentComponents: props.contentComponents,
|
|
85
|
+
contextPanel: props.contextPanel,
|
|
86
|
+
customContentComponents: props.customContentComponents,
|
|
87
|
+
disabled: props.disabled,
|
|
88
|
+
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
89
|
+
editorActions: props.editorActions,
|
|
90
|
+
editorDOMElement: props.editorDOMElement,
|
|
91
|
+
editorView: props.editorView,
|
|
92
|
+
eventDispatcher: props.eventDispatcher,
|
|
93
|
+
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
94
|
+
popupsMountPoint: props.popupsMountPoint,
|
|
95
|
+
popupsScrollableElement: props.popupsScrollableElement,
|
|
96
|
+
providerFactory: props.providerFactory,
|
|
97
|
+
wrapperElement: (_wrapperElementRef$cu = wrapperElementRef === null || wrapperElementRef === void 0 ? void 0 : wrapperElementRef.current) !== null && _wrapperElementRef$cu !== void 0 ? _wrapperElementRef$cu : null,
|
|
98
|
+
pluginHooks: props.pluginHooks,
|
|
99
|
+
featureFlags: props.featureFlags
|
|
100
|
+
})));
|
|
101
|
+
};
|
|
102
|
+
exports.FullPageEditor = FullPageEditor;
|
|
@@ -1,37 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
7
8
|
exports.FullPageContentArea = exports.CONTENT_AREA_TEST_ID = void 0;
|
|
8
9
|
var _react = require("@emotion/react");
|
|
9
10
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
10
|
-
var _react2 =
|
|
11
|
+
var _react2 = _interopRequireWildcard(require("react"));
|
|
11
12
|
var _reactIntlNext = require("react-intl-next");
|
|
12
13
|
var _Addon = require("../../Addon");
|
|
13
14
|
var _ContextPanel = _interopRequireDefault(require("../../ContextPanel"));
|
|
14
15
|
var _PluginSlot = _interopRequireDefault(require("../../PluginSlot"));
|
|
15
16
|
var _StyledComponents = require("./StyledComponents");
|
|
16
17
|
var _messages = _interopRequireDefault(require("./messages"));
|
|
18
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
20
|
/** @jsx jsx */
|
|
18
21
|
|
|
19
22
|
var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
20
23
|
exports.CONTENT_AREA_TEST_ID = CONTENT_AREA_TEST_ID;
|
|
21
|
-
var Content = /*#__PURE__*/_react2.default.
|
|
24
|
+
var Content = /*#__PURE__*/_react2.default.forwardRef(function (props, ref) {
|
|
22
25
|
var theme = (0, _react.useTheme)();
|
|
23
26
|
var fullWidthMode = props.appearance === 'full-width';
|
|
27
|
+
var scrollContainerRef = (0, _react2.useRef)(null);
|
|
28
|
+
var contentAreaRef = (0, _react2.useRef)(null);
|
|
29
|
+
(0, _react2.useImperativeHandle)(ref, function () {
|
|
30
|
+
return {
|
|
31
|
+
get scrollContainer() {
|
|
32
|
+
return scrollContainerRef.current;
|
|
33
|
+
},
|
|
34
|
+
get contentArea() {
|
|
35
|
+
return contentAreaRef.current;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}, []);
|
|
24
39
|
return (0, _react.jsx)(_ui.WidthConsumer, null, function (_ref) {
|
|
25
40
|
var width = _ref.width;
|
|
26
41
|
return (0, _react.jsx)(_ui.ContextPanelConsumer, null, function (_ref2) {
|
|
42
|
+
var _contentAreaRef$curre;
|
|
27
43
|
var positionedOverEditor = _ref2.positionedOverEditor;
|
|
28
44
|
return (0, _react.jsx)("div", {
|
|
29
45
|
css: [_StyledComponents.contentArea, positionedOverEditor && _StyledComponents.positionedOverEditorStyle],
|
|
30
46
|
"data-testid": CONTENT_AREA_TEST_ID
|
|
31
47
|
}, (0, _react.jsx)(_StyledComponents.ScrollContainer, {
|
|
32
|
-
ref: props.scrollContainerRef,
|
|
33
48
|
className: "fabric-editor-popup-scroll-parent",
|
|
34
|
-
featureFlags: props.featureFlags
|
|
49
|
+
featureFlags: props.featureFlags,
|
|
50
|
+
ref: scrollContainerRef
|
|
35
51
|
}, (0, _react.jsx)(_Addon.ClickAreaBlock, {
|
|
36
52
|
editorView: props.editorView,
|
|
37
53
|
editorDisabled: props.disabled
|
|
@@ -43,10 +59,11 @@ var Content = /*#__PURE__*/_react2.default.memo(function (props) {
|
|
|
43
59
|
}),
|
|
44
60
|
role: "region",
|
|
45
61
|
"aria-label": props.intl.formatMessage(_messages.default.editableContentLabel),
|
|
46
|
-
ref:
|
|
62
|
+
ref: contentAreaRef
|
|
47
63
|
}, (0, _react.jsx)("div", {
|
|
48
64
|
css: _StyledComponents.editorContentGutterStyle,
|
|
49
|
-
className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' ')
|
|
65
|
+
className: ['ak-editor-content-area', fullWidthMode ? 'fabric-editor--full-width-mode' : ''].join(' '),
|
|
66
|
+
ref: contentAreaRef
|
|
50
67
|
}, props.customContentComponents, (0, _react.jsx)(_PluginSlot.default, {
|
|
51
68
|
editorView: props.editorView,
|
|
52
69
|
editorActions: props.editorActions,
|
|
@@ -55,12 +72,12 @@ var Content = /*#__PURE__*/_react2.default.memo(function (props) {
|
|
|
55
72
|
appearance: props.appearance,
|
|
56
73
|
items: props.contentComponents,
|
|
57
74
|
pluginHooks: props.pluginHooks,
|
|
58
|
-
contentArea:
|
|
75
|
+
contentArea: (_contentAreaRef$curre = contentAreaRef.current) !== null && _contentAreaRef$curre !== void 0 ? _contentAreaRef$curre : undefined,
|
|
59
76
|
popupsMountPoint: props.popupsMountPoint,
|
|
60
77
|
popupsBoundariesElement: props.popupsBoundariesElement,
|
|
61
78
|
popupsScrollableElement: props.popupsScrollableElement,
|
|
62
79
|
disabled: !!props.disabled,
|
|
63
|
-
containerElement:
|
|
80
|
+
containerElement: scrollContainerRef.current,
|
|
64
81
|
dispatchAnalyticsEvent: props.dispatchAnalyticsEvent,
|
|
65
82
|
wrapperElement: props.wrapperElement
|
|
66
83
|
}), props.editorDOMElement)))), (0, _react.jsx)("div", {
|
|
@@ -71,5 +88,7 @@ var Content = /*#__PURE__*/_react2.default.memo(function (props) {
|
|
|
71
88
|
});
|
|
72
89
|
});
|
|
73
90
|
});
|
|
74
|
-
var FullPageContentArea = (0, _reactIntlNext.injectIntl)(Content
|
|
91
|
+
var FullPageContentArea = (0, _reactIntlNext.injectIntl)(Content, {
|
|
92
|
+
forwardRef: true
|
|
93
|
+
});
|
|
75
94
|
exports.FullPageContentArea = FullPageContentArea;
|
package/dist/cjs/utils/mark.js
CHANGED
|
@@ -102,7 +102,7 @@ var sanitiseMarksInSelection = function sanitiseMarksInSelection(tr, newParentTy
|
|
|
102
102
|
return true;
|
|
103
103
|
}
|
|
104
104
|
node.marks.forEach(function (mark) {
|
|
105
|
-
if (!parent.type.allowsMarkType(mark.type) || newParentType && !newParentType.allowsMarkType(mark.type)) {
|
|
105
|
+
if (!(parent !== null && parent !== void 0 && parent.type.allowsMarkType(mark.type)) || newParentType && !newParentType.allowsMarkType(mark.type)) {
|
|
106
106
|
var filteredMarks = node.marks.filter(function (m) {
|
|
107
107
|
return m.type !== mark.type;
|
|
108
108
|
});
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = "@atlaskit/editor-core";
|
|
8
8
|
exports.name = name;
|
|
9
|
-
var version = "185.8.
|
|
9
|
+
var version = "185.8.3";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
var nextMajorVersion = function nextMajorVersion() {
|
|
12
12
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
package/dist/cjs/version.json
CHANGED
|
@@ -186,7 +186,7 @@ export const createToggleBlockMarkOnRange = (markType, getAttrs, allowedBlocks)
|
|
|
186
186
|
if (!node.type.isBlock) {
|
|
187
187
|
return false;
|
|
188
188
|
}
|
|
189
|
-
if ((!allowedBlocks || (Array.isArray(allowedBlocks) ? allowedBlocks.indexOf(node.type) > -1 : allowedBlocks(state.schema, node, parent))) && parent.type.allowsMarkType(markType)) {
|
|
189
|
+
if ((!allowedBlocks || (Array.isArray(allowedBlocks) ? allowedBlocks.indexOf(node.type) > -1 : allowedBlocks(state.schema, node, parent))) && parent !== null && parent !== void 0 && parent.type.allowsMarkType(markType)) {
|
|
190
190
|
const oldMarks = node.marks.filter(mark => mark.type === markType);
|
|
191
191
|
const prevAttrs = oldMarks.length ? oldMarks[0].attrs : undefined;
|
|
192
192
|
const newAttrs = getAttrs(prevAttrs, node);
|
|
@@ -58,11 +58,9 @@ const onUnResolve = (state, dispatch) => annotationId => {
|
|
|
58
58
|
};
|
|
59
59
|
const onMouseUp = (state, dispatch) => e => {
|
|
60
60
|
const {
|
|
61
|
-
mouseData
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
} = getPluginState(state);
|
|
65
|
-
if (isSelecting) {
|
|
61
|
+
mouseData
|
|
62
|
+
} = getPluginState(state) || {};
|
|
63
|
+
if (mouseData !== null && mouseData !== void 0 && mouseData.isSelecting) {
|
|
66
64
|
updateMouseState({
|
|
67
65
|
isSelecting: false
|
|
68
66
|
})(state, dispatch);
|
|
@@ -110,7 +108,7 @@ export const inlineCommentPlugin = options => {
|
|
|
110
108
|
update(view, _prevState) {
|
|
111
109
|
const {
|
|
112
110
|
dirtyAnnotations
|
|
113
|
-
} = getPluginState(view.state);
|
|
111
|
+
} = getPluginState(view.state) || {};
|
|
114
112
|
if (!dirtyAnnotations) {
|
|
115
113
|
return;
|
|
116
114
|
}
|
|
@@ -133,7 +131,7 @@ export const inlineCommentPlugin = options => {
|
|
|
133
131
|
handleDOMEvents: {
|
|
134
132
|
mousedown: view => {
|
|
135
133
|
const pluginState = getPluginState(view.state);
|
|
136
|
-
if (!pluginState.mouseData.isSelecting) {
|
|
134
|
+
if (!(pluginState !== null && pluginState !== void 0 && pluginState.mouseData.isSelecting)) {
|
|
137
135
|
hideToolbar(view.state, view.dispatch)();
|
|
138
136
|
}
|
|
139
137
|
return false;
|
|
@@ -146,13 +144,13 @@ export const inlineCommentPlugin = options => {
|
|
|
146
144
|
annotations,
|
|
147
145
|
selectedAnnotations,
|
|
148
146
|
isVisible
|
|
149
|
-
} = getPluginState(state);
|
|
147
|
+
} = getPluginState(state) || {};
|
|
150
148
|
let decorations = draftDecorationSet !== null && draftDecorationSet !== void 0 ? draftDecorationSet : DecorationSet.empty;
|
|
151
149
|
const focusDecorations = [];
|
|
152
150
|
state.doc.descendants((node, pos) => {
|
|
153
151
|
node.marks.filter(mark => mark.type === state.schema.marks.annotation).forEach(mark => {
|
|
154
|
-
const isSelected = selectedAnnotations.some(selectedAnnotation => selectedAnnotation.id === mark.attrs.id);
|
|
155
|
-
const isUnresolved = annotations[mark.attrs.id] === false;
|
|
152
|
+
const isSelected = !!(selectedAnnotations !== null && selectedAnnotations !== void 0 && selectedAnnotations.some(selectedAnnotation => selectedAnnotation.id === mark.attrs.id));
|
|
153
|
+
const isUnresolved = !!annotations && annotations[mark.attrs.id] === false;
|
|
156
154
|
if (isVisible) {
|
|
157
155
|
focusDecorations.push(Decoration.inline(pos, pos + node.nodeSize, {
|
|
158
156
|
class: `${getAnnotationViewClassname(isUnresolved, isSelected)} ${isUnresolved}`,
|
|
@@ -45,7 +45,7 @@ export function InlineCommentView({
|
|
|
45
45
|
bookmark,
|
|
46
46
|
selectedAnnotations,
|
|
47
47
|
annotations
|
|
48
|
-
} = inlineCommentState;
|
|
48
|
+
} = inlineCommentState || {};
|
|
49
49
|
const selection = getSelectionPositions(state, inlineCommentState);
|
|
50
50
|
const position = findPosForDOM(selection);
|
|
51
51
|
let dom;
|
|
@@ -103,7 +103,7 @@ export function InlineCommentView({
|
|
|
103
103
|
}
|
|
104
104
|
|
|
105
105
|
// View Component
|
|
106
|
-
const activeAnnotations = selectedAnnotations.filter(mark => annotations[mark.id] === false);
|
|
106
|
+
const activeAnnotations = (selectedAnnotations === null || selectedAnnotations === void 0 ? void 0 : selectedAnnotations.filter(mark => annotations && annotations[mark.id] === false)) || [];
|
|
107
107
|
if (!ViewComponent || activeAnnotations.length === 0) {
|
|
108
108
|
return null;
|
|
109
109
|
}
|
|
@@ -135,7 +135,7 @@ export const findAnnotationsInSelection = (selection, doc) => {
|
|
|
135
135
|
export function getSelectionPositions(editorState, inlineCommentState) {
|
|
136
136
|
const {
|
|
137
137
|
bookmark
|
|
138
|
-
} = inlineCommentState;
|
|
138
|
+
} = inlineCommentState || {};
|
|
139
139
|
// get positions via saved bookmark if it is available
|
|
140
140
|
// this is to make comments box positioned relative to temporary highlight rather then current selection
|
|
141
141
|
if (bookmark) {
|
|
@@ -191,7 +191,7 @@ export const isSelectionValid = state => {
|
|
|
191
191
|
} = state;
|
|
192
192
|
const {
|
|
193
193
|
disallowOnWhitespace
|
|
194
|
-
} = getPluginState(state);
|
|
194
|
+
} = getPluginState(state) || {};
|
|
195
195
|
if (selection.empty || !(selection instanceof TextSelection || selection instanceof AllSelection)) {
|
|
196
196
|
return AnnotationSelectionType.INVALID;
|
|
197
197
|
}
|
|
@@ -299,7 +299,7 @@ export function hasAnnotationMark(node, state) {
|
|
|
299
299
|
*/
|
|
300
300
|
export function annotationExists(annotationId, state) {
|
|
301
301
|
const commentsPluginState = getPluginState(state);
|
|
302
|
-
return commentsPluginState.annotations && Object.keys(commentsPluginState.annotations).includes(annotationId);
|
|
302
|
+
return !!(commentsPluginState !== null && commentsPluginState !== void 0 && commentsPluginState.annotations) && Object.keys(commentsPluginState.annotations).includes(annotationId);
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
/*
|
|
@@ -2,7 +2,8 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { PluginKey } from 'prosemirror-state';
|
|
3
3
|
const compositionPluginKey = new PluginKey('compositionPlugin');
|
|
4
4
|
export const isComposing = state => {
|
|
5
|
-
|
|
5
|
+
var _compositionPluginKey;
|
|
6
|
+
return !!((_compositionPluginKey = compositionPluginKey.getState(state)) !== null && _compositionPluginKey !== void 0 && _compositionPluginKey.isComposing);
|
|
6
7
|
};
|
|
7
8
|
export default (() => new SafePlugin({
|
|
8
9
|
key: compositionPluginKey,
|