@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
|
@@ -28,11 +28,11 @@ export var createDate = function createDate(isQuickInsertAction) {
|
|
|
28
28
|
/** Delete the date and close the datepicker */
|
|
29
29
|
export var deleteDate = function deleteDate() {
|
|
30
30
|
return function (state, dispatch) {
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
if (showDatePickerAt === null) {
|
|
31
|
+
var pluginState = pluginKey.getState(state);
|
|
32
|
+
if (!pluginState || pluginState.showDatePickerAt === null) {
|
|
34
33
|
return false;
|
|
35
34
|
}
|
|
35
|
+
var showDatePickerAt = pluginState.showDatePickerAt;
|
|
36
36
|
var tr = state.tr.delete(showDatePickerAt, showDatePickerAt + 1).setMeta(pluginKey, {
|
|
37
37
|
showDatePickerAt: null,
|
|
38
38
|
isNew: false
|
|
@@ -47,9 +47,8 @@ export var deleteDate = function deleteDate() {
|
|
|
47
47
|
/** Focus input */
|
|
48
48
|
export var focusDateInput = function focusDateInput() {
|
|
49
49
|
return function (state, dispatch) {
|
|
50
|
-
var
|
|
51
|
-
|
|
52
|
-
if (showDatePickerAt === null) {
|
|
50
|
+
var pluginState = pluginKey.getState(state);
|
|
51
|
+
if (!pluginState || pluginState.showDatePickerAt === null) {
|
|
53
52
|
return false;
|
|
54
53
|
}
|
|
55
54
|
if (!dispatch) {
|
|
@@ -96,8 +95,8 @@ export var insertDate = function insertDate(date, inputMethod, commitMethod) {
|
|
|
96
95
|
}
|
|
97
96
|
});
|
|
98
97
|
}
|
|
99
|
-
var
|
|
100
|
-
showDatePickerAt =
|
|
98
|
+
var _ref = pluginKey.getState(state) || {},
|
|
99
|
+
showDatePickerAt = _ref.showDatePickerAt;
|
|
101
100
|
if (!showDatePickerAt) {
|
|
102
101
|
var dateNode = schema.nodes.date.createChecked({
|
|
103
102
|
timestamp: timestamp
|
|
@@ -155,8 +154,8 @@ export var setDatePickerAt = function setDatePickerAt(showDatePickerAt) {
|
|
|
155
154
|
};
|
|
156
155
|
export var closeDatePicker = function closeDatePicker() {
|
|
157
156
|
return function (state, dispatch) {
|
|
158
|
-
var
|
|
159
|
-
showDatePickerAt =
|
|
157
|
+
var _ref2 = pluginKey.getState(state) || {},
|
|
158
|
+
showDatePickerAt = _ref2.showDatePickerAt;
|
|
160
159
|
if (!dispatch) {
|
|
161
160
|
return false;
|
|
162
161
|
}
|
|
@@ -170,8 +169,8 @@ export var closeDatePicker = function closeDatePicker() {
|
|
|
170
169
|
return false;
|
|
171
170
|
};
|
|
172
171
|
};
|
|
173
|
-
export var closeDatePickerWithAnalytics = function closeDatePickerWithAnalytics(
|
|
174
|
-
var date =
|
|
172
|
+
export var closeDatePickerWithAnalytics = function closeDatePickerWithAnalytics(_ref3) {
|
|
173
|
+
var date = _ref3.date;
|
|
175
174
|
return withAnalytics({
|
|
176
175
|
eventType: EVENT_TYPE.TRACK,
|
|
177
176
|
action: ACTION.COMMITTED,
|
|
@@ -88,14 +88,14 @@ var datePlugin = function datePlugin(_, api) {
|
|
|
88
88
|
focusDateInput: false
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
var
|
|
92
|
-
showDatePickerAt =
|
|
93
|
-
isNew =
|
|
94
|
-
focusDateInput =
|
|
91
|
+
var _ref3 = datePluginKey.getState(editorState) || {},
|
|
92
|
+
showDatePickerAt = _ref3.showDatePickerAt,
|
|
93
|
+
isNew = _ref3.isNew,
|
|
94
|
+
focusDateInput = _ref3.focusDateInput;
|
|
95
95
|
return {
|
|
96
96
|
showDatePickerAt: showDatePickerAt,
|
|
97
|
-
isNew: isNew,
|
|
98
|
-
focusDateInput: focusDateInput
|
|
97
|
+
isNew: !!isNew,
|
|
98
|
+
focusDateInput: !!focusDateInput
|
|
99
99
|
};
|
|
100
100
|
},
|
|
101
101
|
nodes: function nodes() {
|
|
@@ -119,12 +119,12 @@ var datePlugin = function datePlugin(_, api) {
|
|
|
119
119
|
}
|
|
120
120
|
}];
|
|
121
121
|
},
|
|
122
|
-
contentComponent: function contentComponent(
|
|
123
|
-
var editorView =
|
|
124
|
-
dispatchAnalyticsEvent =
|
|
125
|
-
popupsMountPoint =
|
|
126
|
-
popupsBoundariesElement =
|
|
127
|
-
popupsScrollableElement =
|
|
122
|
+
contentComponent: function contentComponent(_ref4) {
|
|
123
|
+
var editorView = _ref4.editorView,
|
|
124
|
+
dispatchAnalyticsEvent = _ref4.dispatchAnalyticsEvent,
|
|
125
|
+
popupsMountPoint = _ref4.popupsMountPoint,
|
|
126
|
+
popupsBoundariesElement = _ref4.popupsBoundariesElement,
|
|
127
|
+
popupsScrollableElement = _ref4.popupsScrollableElement;
|
|
128
128
|
return /*#__PURE__*/React.createElement(ContentComponent, {
|
|
129
129
|
dependencyApi: api,
|
|
130
130
|
editorView: editorView,
|
|
@@ -135,8 +135,8 @@ var datePlugin = function datePlugin(_, api) {
|
|
|
135
135
|
});
|
|
136
136
|
},
|
|
137
137
|
pluginsOptions: {
|
|
138
|
-
quickInsert: function quickInsert(
|
|
139
|
-
var formatMessage =
|
|
138
|
+
quickInsert: function quickInsert(_ref5) {
|
|
139
|
+
var formatMessage = _ref5.formatMessage;
|
|
140
140
|
return [{
|
|
141
141
|
id: 'date',
|
|
142
142
|
title: formatMessage(messages.date),
|
|
@@ -44,7 +44,13 @@ var editorDisabledPlugin = function editorDisabledPlugin() {
|
|
|
44
44
|
editorDisabled: false
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
var pluginState = pluginKey.getState(editorState);
|
|
48
|
+
if (!pluginState) {
|
|
49
|
+
return {
|
|
50
|
+
editorDisabled: false
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
return pluginState;
|
|
48
54
|
},
|
|
49
55
|
pmPlugins: function pmPlugins() {
|
|
50
56
|
return [{
|
|
@@ -102,8 +102,8 @@ var emojiPlugin = function emojiPlugin(options) {
|
|
|
102
102
|
var query = _ref3.query,
|
|
103
103
|
items = _ref3.items,
|
|
104
104
|
editorState = _ref3.editorState;
|
|
105
|
-
var
|
|
106
|
-
asciiMap =
|
|
105
|
+
var _ref4 = emojiPluginKey.getState(editorState) || {},
|
|
106
|
+
asciiMap = _ref4.asciiMap;
|
|
107
107
|
var normalizedQuery = TRIGGER.concat(query);
|
|
108
108
|
|
|
109
109
|
// if the query has space at the end
|
|
@@ -111,7 +111,7 @@ var emojiPlugin = function emojiPlugin(options) {
|
|
|
111
111
|
if (asciiMap && normalizedQuery.length >= 3 && normalizedQuery.endsWith(' ') && asciiMap.has(normalizedQuery.trim())) {
|
|
112
112
|
var _emoji = asciiMap.get(normalizedQuery.trim());
|
|
113
113
|
return {
|
|
114
|
-
title: _emoji.name,
|
|
114
|
+
title: (_emoji === null || _emoji === void 0 ? void 0 : _emoji.name) || '',
|
|
115
115
|
emoji: _emoji
|
|
116
116
|
};
|
|
117
117
|
}
|
|
@@ -120,8 +120,8 @@ var emojiPlugin = function emojiPlugin(options) {
|
|
|
120
120
|
}) : undefined;
|
|
121
121
|
return matchedItem;
|
|
122
122
|
},
|
|
123
|
-
selectItem: function selectItem(state, item, insert,
|
|
124
|
-
var mode =
|
|
123
|
+
selectItem: function selectItem(state, item, insert, _ref5) {
|
|
124
|
+
var mode = _ref5.mode;
|
|
125
125
|
var _item$emoji = item.emoji,
|
|
126
126
|
_item$emoji$id = _item$emoji.id,
|
|
127
127
|
id = _item$emoji$id === void 0 ? '' : _item$emoji$id,
|
|
@@ -165,17 +165,17 @@ var emojiPlugin = function emojiPlugin(options) {
|
|
|
165
165
|
}
|
|
166
166
|
}, {
|
|
167
167
|
name: 'emojiAsciiInputRule',
|
|
168
|
-
plugin: function plugin(
|
|
169
|
-
var schema =
|
|
170
|
-
providerFactory =
|
|
171
|
-
featureFlags =
|
|
168
|
+
plugin: function plugin(_ref6) {
|
|
169
|
+
var schema = _ref6.schema,
|
|
170
|
+
providerFactory = _ref6.providerFactory,
|
|
171
|
+
featureFlags = _ref6.featureFlags;
|
|
172
172
|
return asciiInputRulePlugin(schema, providerFactory, featureFlags);
|
|
173
173
|
}
|
|
174
174
|
}];
|
|
175
175
|
},
|
|
176
176
|
pluginsOptions: {
|
|
177
|
-
quickInsert: function quickInsert(
|
|
178
|
-
var formatMessage =
|
|
177
|
+
quickInsert: function quickInsert(_ref7) {
|
|
178
|
+
var formatMessage = _ref7.formatMessage;
|
|
179
179
|
return [{
|
|
180
180
|
id: 'emoji',
|
|
181
181
|
title: formatMessage(messages.emoji),
|
|
@@ -256,12 +256,12 @@ export function createEmojiPlugin(pmPluginFactoryParams) {
|
|
|
256
256
|
return {};
|
|
257
257
|
},
|
|
258
258
|
apply: function apply(tr, pluginState) {
|
|
259
|
-
var
|
|
259
|
+
var _ref8 = tr.getMeta(emojiPluginKey) || {
|
|
260
260
|
action: null,
|
|
261
261
|
params: null
|
|
262
262
|
},
|
|
263
|
-
action =
|
|
264
|
-
params =
|
|
263
|
+
action = _ref8.action,
|
|
264
|
+
params = _ref8.params;
|
|
265
265
|
var newPluginState = pluginState;
|
|
266
266
|
switch (action) {
|
|
267
267
|
case ACTIONS.SET_PROVIDER:
|
|
@@ -108,13 +108,13 @@ export var insertExpand = function insertExpand(state, dispatch) {
|
|
|
108
108
|
var payload = {
|
|
109
109
|
action: ACTION.INSERTED,
|
|
110
110
|
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
111
|
-
actionSubjectId: expandNode.type === state.schema.nodes.expand ? ACTION_SUBJECT_ID.EXPAND : ACTION_SUBJECT_ID.NESTED_EXPAND,
|
|
111
|
+
actionSubjectId: (expandNode === null || expandNode === void 0 ? void 0 : expandNode.type) === state.schema.nodes.expand ? ACTION_SUBJECT_ID.EXPAND : ACTION_SUBJECT_ID.NESTED_EXPAND,
|
|
112
112
|
attributes: {
|
|
113
113
|
inputMethod: INPUT_METHOD.INSERT_MENU
|
|
114
114
|
},
|
|
115
115
|
eventType: EVENT_TYPE.TRACK
|
|
116
116
|
};
|
|
117
|
-
if (dispatch) {
|
|
117
|
+
if (dispatch && expandNode) {
|
|
118
118
|
dispatch(addAnalytics(state, safeInsert(expandNode)(state.tr).scrollIntoView(), payload));
|
|
119
119
|
}
|
|
120
120
|
return true;
|
|
@@ -55,6 +55,9 @@ var expandPlugin = function expandPlugin() {
|
|
|
55
55
|
},
|
|
56
56
|
action: function action(insert, state) {
|
|
57
57
|
var node = createExpandNode(state);
|
|
58
|
+
if (!node) {
|
|
59
|
+
return false;
|
|
60
|
+
}
|
|
58
61
|
var tr = insert(node);
|
|
59
62
|
return addAnalytics(state, tr, {
|
|
60
63
|
action: ACTION.INSERTED,
|
|
@@ -422,6 +422,8 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
422
422
|
this.icon.removeEventListener('keydown', this.handleIconKeyDown);
|
|
423
423
|
ReactDOM.unmountComponentAtNode(this.icon);
|
|
424
424
|
}
|
|
425
|
+
|
|
426
|
+
// @ts-ignore - [unblock prosemirror bump] reset non optional prop to undefined to clear reference
|
|
425
427
|
this.dom = undefined;
|
|
426
428
|
this.contentDOM = undefined;
|
|
427
429
|
this.icon = undefined;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1
4
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
2
5
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
3
6
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
@@ -108,11 +111,14 @@ export var createPlugin = function createPlugin(dispatch) {
|
|
|
108
111
|
}
|
|
109
112
|
if (localIds.has(existingFragmentMark.attrs.localId)) {
|
|
110
113
|
tr.setNodeMarkup(pos, undefined, node.attrs, node.marks.map(function (mark) {
|
|
111
|
-
if (mark.type
|
|
112
|
-
mark
|
|
113
|
-
mark.attrs.name = null;
|
|
114
|
+
if (mark.type !== fragment) {
|
|
115
|
+
return mark;
|
|
114
116
|
}
|
|
115
|
-
|
|
117
|
+
var fragmentMark = fragment.create(_objectSpread(_objectSpread({}, mark.attrs), {}, {
|
|
118
|
+
localId: uuid.generate(),
|
|
119
|
+
name: null
|
|
120
|
+
}));
|
|
121
|
+
return fragmentMark;
|
|
116
122
|
}));
|
|
117
123
|
modified = true;
|
|
118
124
|
}
|
|
@@ -19,7 +19,7 @@ export function isTextAtPos(pos) {
|
|
|
19
19
|
export function isLinkAtPos(pos) {
|
|
20
20
|
return function (state) {
|
|
21
21
|
var node = state.doc.nodeAt(pos);
|
|
22
|
-
return !!node && state.schema.marks.link.isInSet(node.marks);
|
|
22
|
+
return !!node && !!state.schema.marks.link.isInSet(node.marks);
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
export function setLinkHref(href, pos, to, isTabPressed) {
|
|
@@ -91,10 +91,11 @@ export function insertLink(from, to, incomingHref, incomingTitle, displayText, s
|
|
|
91
91
|
var link = state.schema.marks.link;
|
|
92
92
|
var tr = state.tr;
|
|
93
93
|
if (incomingHref.trim()) {
|
|
94
|
+
var _stateKey$getState;
|
|
94
95
|
var normalizedUrl = normalizeUrl(incomingHref);
|
|
95
96
|
// NB: in this context, `currentText` represents text which has been
|
|
96
97
|
// highlighted in the Editor, upon which a link is is being added.
|
|
97
|
-
var currentText = stateKey.getState(state).activeText;
|
|
98
|
+
var currentText = (_stateKey$getState = stateKey.getState(state)) === null || _stateKey$getState === void 0 ? void 0 : _stateKey$getState.activeText;
|
|
98
99
|
var markEnd = to;
|
|
99
100
|
var text = displayText || incomingTitle || incomingHref;
|
|
100
101
|
if (!displayText || displayText !== currentText) {
|
|
@@ -5,7 +5,7 @@ import { stateKey } from './plugin-key';
|
|
|
5
5
|
export var insertExternalImage = function insertExternalImage(options) {
|
|
6
6
|
return function (state, dispatch) {
|
|
7
7
|
var pluginState = stateKey.getState(state);
|
|
8
|
-
if (!pluginState.enabled || !options.src) {
|
|
8
|
+
if (!(pluginState !== null && pluginState !== void 0 && pluginState.enabled) || !options.src) {
|
|
9
9
|
return false;
|
|
10
10
|
}
|
|
11
11
|
var mediaNode = createExternalMediaNode(options.src, state.schema);
|
|
@@ -21,7 +21,7 @@ export var insertExternalImage = function insertExternalImage(options) {
|
|
|
21
21
|
export var startImageUpload = function startImageUpload(event) {
|
|
22
22
|
return function (state, dispatch) {
|
|
23
23
|
var pluginState = stateKey.getState(state);
|
|
24
|
-
if (!pluginState.enabled) {
|
|
24
|
+
if (!(pluginState !== null && pluginState !== void 0 && pluginState.enabled)) {
|
|
25
25
|
return false;
|
|
26
26
|
}
|
|
27
27
|
if (dispatch) {
|
|
@@ -199,6 +199,7 @@ var extractListItemsRangeFromList = function extractListItemsRangeFromList(_ref3
|
|
|
199
199
|
var order = getOrderFromOrderedListNode(list);
|
|
200
200
|
if (list.type.name === 'orderedList') {
|
|
201
201
|
nextListStartNumber = range.endIndex - 1 + order;
|
|
202
|
+
// @ts-ignore - [unblock prosemirror bump] assigning to readonly attrs
|
|
202
203
|
nextList.attrs = _objectSpread(_objectSpread({}, nextList.attrs), {}, {
|
|
203
204
|
order: nextListStartNumber
|
|
204
205
|
});
|
|
@@ -115,7 +115,7 @@ export var resolveMacro = function resolveMacro(macro, state, optionalAttrs) {
|
|
|
115
115
|
var _getValidNode = getValidNode(macro, schema),
|
|
116
116
|
type = _getValidNode.type,
|
|
117
117
|
attrs = _getValidNode.attrs;
|
|
118
|
-
var node;
|
|
118
|
+
var node = null;
|
|
119
119
|
if (type === 'extension') {
|
|
120
120
|
node = schema.nodes.extension.create(_objectSpread(_objectSpread({}, attrs), optionalAttrs));
|
|
121
121
|
} else if (type === 'bodiedExtension') {
|
|
@@ -123,7 +123,7 @@ export var resolveMacro = function resolveMacro(macro, state, optionalAttrs) {
|
|
|
123
123
|
} else if (type === 'inlineExtension') {
|
|
124
124
|
node = schema.nodes.inlineExtension.create(attrs);
|
|
125
125
|
}
|
|
126
|
-
return normaliseNestedLayout(state, node);
|
|
126
|
+
return node && normaliseNestedLayout(state, node);
|
|
127
127
|
};
|
|
128
128
|
|
|
129
129
|
// gets the macroProvider from the state and tries to autoConvert a given text
|
|
@@ -36,6 +36,9 @@ export var isMediaNode = function isMediaNode(pos, state) {
|
|
|
36
36
|
export var updateAllMediaSingleNodesAttrs = function updateAllMediaSingleNodesAttrs(id, attrs) {
|
|
37
37
|
return function (state, dispatch) {
|
|
38
38
|
var mediaPluginState = mediaPluginKey.getState(state);
|
|
39
|
+
if (!mediaPluginState) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
39
42
|
var mediaNodes;
|
|
40
43
|
mediaNodes = findAllMediaSingleNodes(mediaPluginState, id);
|
|
41
44
|
var validMediaNodePositions = mediaNodes.reduce(function (acc, _ref) {
|
|
@@ -79,6 +82,9 @@ export var updateCurrentMediaNodeAttrs = function updateCurrentMediaNodeAttrs(at
|
|
|
79
82
|
export var updateMediaSingleNodeAttrs = function updateMediaSingleNodeAttrs(id, attrs) {
|
|
80
83
|
return function (state, dispatch) {
|
|
81
84
|
var mediaPluginState = mediaPluginKey.getState(state);
|
|
85
|
+
if (!mediaPluginState) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
82
88
|
var mediaNodeWithPos = findMediaSingleNode(mediaPluginState, id);
|
|
83
89
|
if (!mediaNodeWithPos) {
|
|
84
90
|
return false;
|
|
@@ -35,7 +35,7 @@ var mediaPlugin = function mediaPlugin() {
|
|
|
35
35
|
if (!editorState) {
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
38
|
-
return stateKey.getState(editorState);
|
|
38
|
+
return stateKey.getState(editorState) || null;
|
|
39
39
|
},
|
|
40
40
|
nodes: function nodes() {
|
|
41
41
|
var _ref = options || {},
|
|
@@ -228,7 +228,7 @@ var mediaPlugin = function mediaPlugin() {
|
|
|
228
228
|
action: function action(insert, state) {
|
|
229
229
|
var _api$dependencies$ana;
|
|
230
230
|
var pluginState = pluginKey.getState(state);
|
|
231
|
-
pluginState.showMediaPicker();
|
|
231
|
+
pluginState === null || pluginState === void 0 ? void 0 : pluginState.showMediaPicker();
|
|
232
232
|
var tr = insert('');
|
|
233
233
|
api === null || api === void 0 ? void 0 : (_api$dependencies$ana = api.dependencies.analytics) === null || _api$dependencies$ana === void 0 ? void 0 : _api$dependencies$ana.actions.attachAnalyticsEvent({
|
|
234
234
|
action: ACTION.OPENED,
|
|
@@ -64,6 +64,7 @@ var MediaGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
64
64
|
mediaNodeUpdater.updateNodeAttrs(getPos);
|
|
65
65
|
});
|
|
66
66
|
_defineProperty(_assertThisInitialized(_this), "setMediaItems", function (props) {
|
|
67
|
+
var _this$mediaPluginStat;
|
|
67
68
|
var updatedAttrs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
68
69
|
var node = props.node;
|
|
69
70
|
var oldMediaNodes = _this.mediaNodes;
|
|
@@ -86,7 +87,7 @@ var MediaGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
86
87
|
_this.updateNodeAttrs(props, item, getPos);
|
|
87
88
|
}
|
|
88
89
|
});
|
|
89
|
-
_this.mediaPluginState.handleMediaGroupUpdate(oldMediaNodes, _this.mediaNodes);
|
|
90
|
+
(_this$mediaPluginStat = _this.mediaPluginState) === null || _this$mediaPluginStat === void 0 ? void 0 : _this$mediaPluginStat.handleMediaGroupUpdate(oldMediaNodes, _this.mediaNodes);
|
|
90
91
|
});
|
|
91
92
|
_defineProperty(_assertThisInitialized(_this), "getIdentifier", function (item) {
|
|
92
93
|
if (item.attrs.type === 'external') {
|
|
@@ -140,7 +141,7 @@ var MediaGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
140
141
|
return {
|
|
141
142
|
shouldEnableDownloadButton: mediaOptions.enableDownloadButton,
|
|
142
143
|
actions: [{
|
|
143
|
-
handler: disabled ? function () {} : _this.mediaPluginState.handleMediaNodeRemoval.bind(null, undefined, getNodePos),
|
|
144
|
+
handler: disabled || !_this.mediaPluginState ? function () {} : _this.mediaPluginState.handleMediaNodeRemoval.bind(null, undefined, getNodePos),
|
|
144
145
|
icon: /*#__PURE__*/React.createElement(EditorCloseIcon, {
|
|
145
146
|
label: _this.props.intl.formatMessage(messages.mediaGroupDeleteLabel)
|
|
146
147
|
})
|
|
@@ -242,7 +243,8 @@ var MediaGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
242
243
|
}, {
|
|
243
244
|
key: "componentWillUnmount",
|
|
244
245
|
value: function componentWillUnmount() {
|
|
245
|
-
|
|
246
|
+
var _this$mediaPluginStat2;
|
|
247
|
+
(_this$mediaPluginStat2 = this.mediaPluginState) === null || _this$mediaPluginStat2 === void 0 ? void 0 : _this$mediaPluginStat2.handleMediaGroupUpdate(this.mediaNodes, []);
|
|
246
248
|
}
|
|
247
249
|
}, {
|
|
248
250
|
key: "UNSAFE_componentWillReceiveProps",
|
|
@@ -253,7 +255,8 @@ var MediaGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
253
255
|
}, {
|
|
254
256
|
key: "shouldComponentUpdate",
|
|
255
257
|
value: function shouldComponentUpdate(nextProps) {
|
|
256
|
-
|
|
258
|
+
var _this$mediaPluginStat3;
|
|
259
|
+
if (hasSelectionChanged(this.props, nextProps) || this.props.node !== nextProps.node || this.state.viewMediaClientConfig !== ((_this$mediaPluginStat3 = this.mediaPluginState) === null || _this$mediaPluginStat3 === void 0 ? void 0 : _this$mediaPluginStat3.mediaClientConfig)) {
|
|
257
260
|
return true;
|
|
258
261
|
}
|
|
259
262
|
return false;
|
|
@@ -262,7 +265,8 @@ var MediaGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
262
265
|
key: "updateMediaClientConfig",
|
|
263
266
|
value: function updateMediaClientConfig() {
|
|
264
267
|
var viewMediaClientConfig = this.state.viewMediaClientConfig;
|
|
265
|
-
var
|
|
268
|
+
var _ref2 = this.mediaPluginState || {},
|
|
269
|
+
mediaClientConfig = _ref2.mediaClientConfig;
|
|
266
270
|
if (!viewMediaClientConfig && mediaClientConfig) {
|
|
267
271
|
this.setState({
|
|
268
272
|
viewMediaClientConfig: mediaClientConfig
|
|
@@ -280,9 +284,9 @@ var MediaGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
280
284
|
_defineProperty(MediaGroup, "displayName", 'MediaGroup');
|
|
281
285
|
var IntlMediaGroup = injectIntl(MediaGroup);
|
|
282
286
|
export default IntlMediaGroup;
|
|
283
|
-
function MediaGroupNodeViewInternal(
|
|
284
|
-
var renderFn =
|
|
285
|
-
pluginInjectionApi =
|
|
287
|
+
function MediaGroupNodeViewInternal(_ref3) {
|
|
288
|
+
var renderFn = _ref3.renderFn,
|
|
289
|
+
pluginInjectionApi = _ref3.pluginInjectionApi;
|
|
286
290
|
var _useSharedPluginState = useSharedPluginState(pluginInjectionApi, ['editorDisabled']),
|
|
287
291
|
editorDisabledPlugin = _useSharedPluginState.editorDisabledState;
|
|
288
292
|
return renderFn({
|
|
@@ -307,11 +311,11 @@ var MediaGroupNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
307
311
|
return /*#__PURE__*/React.createElement(WithProviders, {
|
|
308
312
|
providers: ['mediaProvider', 'contextIdentifierProvider'],
|
|
309
313
|
providerFactory: providerFactory,
|
|
310
|
-
renderNode: function renderNode(
|
|
311
|
-
var mediaProvider =
|
|
312
|
-
contextIdentifierProvider =
|
|
313
|
-
var renderFn = function renderFn(
|
|
314
|
-
var editorDisabledPlugin =
|
|
314
|
+
renderNode: function renderNode(_ref4) {
|
|
315
|
+
var mediaProvider = _ref4.mediaProvider,
|
|
316
|
+
contextIdentifierProvider = _ref4.contextIdentifierProvider;
|
|
317
|
+
var renderFn = function renderFn(_ref5) {
|
|
318
|
+
var editorDisabledPlugin = _ref5.editorDisabledPlugin;
|
|
315
319
|
if (!mediaProvider) {
|
|
316
320
|
return null;
|
|
317
321
|
}
|
|
@@ -77,13 +77,15 @@ export var MediaNode = /*#__PURE__*/function (_Component) {
|
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
_defineProperty(_assertThisInitialized(_this), "onFullscreenChange", function (fullscreen) {
|
|
80
|
-
_this
|
|
80
|
+
var _this$mediaPluginStat;
|
|
81
|
+
(_this$mediaPluginStat = _this.mediaPluginState) === null || _this$mediaPluginStat === void 0 ? void 0 : _this$mediaPluginStat.updateAndDispatch({
|
|
81
82
|
isFullscreen: fullscreen
|
|
82
83
|
});
|
|
83
84
|
});
|
|
84
85
|
_defineProperty(_assertThisInitialized(_this), "handleNewNode", function (props) {
|
|
86
|
+
var _this$mediaPluginStat2;
|
|
85
87
|
var node = props.node;
|
|
86
|
-
_this.mediaPluginState.handleMediaNodeMount(node, function () {
|
|
88
|
+
(_this$mediaPluginStat2 = _this.mediaPluginState) === null || _this$mediaPluginStat2 === void 0 ? void 0 : _this$mediaPluginStat2.handleMediaNodeMount(node, function () {
|
|
87
89
|
return _this.props.getPos();
|
|
88
90
|
});
|
|
89
91
|
});
|
|
@@ -135,17 +137,20 @@ export var MediaNode = /*#__PURE__*/function (_Component) {
|
|
|
135
137
|
}, {
|
|
136
138
|
key: "componentWillUnmount",
|
|
137
139
|
value: function componentWillUnmount() {
|
|
140
|
+
var _this$mediaPluginStat3;
|
|
138
141
|
var node = this.props.node;
|
|
139
|
-
this.mediaPluginState.handleMediaNodeUnmount(node);
|
|
142
|
+
(_this$mediaPluginStat3 = this.mediaPluginState) === null || _this$mediaPluginStat3 === void 0 ? void 0 : _this$mediaPluginStat3.handleMediaNodeUnmount(node);
|
|
140
143
|
}
|
|
141
144
|
}, {
|
|
142
145
|
key: "componentDidUpdate",
|
|
143
146
|
value: function componentDidUpdate(prevProps) {
|
|
147
|
+
var _this$mediaPluginStat5;
|
|
144
148
|
if (prevProps.node.attrs.id !== this.props.node.attrs.id) {
|
|
145
|
-
|
|
149
|
+
var _this$mediaPluginStat4;
|
|
150
|
+
(_this$mediaPluginStat4 = this.mediaPluginState) === null || _this$mediaPluginStat4 === void 0 ? void 0 : _this$mediaPluginStat4.handleMediaNodeUnmount(prevProps.node);
|
|
146
151
|
this.handleNewNode(this.props);
|
|
147
152
|
}
|
|
148
|
-
this.mediaPluginState.updateElement();
|
|
153
|
+
(_this$mediaPluginStat5 = this.mediaPluginState) === null || _this$mediaPluginStat5 === void 0 ? void 0 : _this$mediaPluginStat5.updateElement();
|
|
149
154
|
this.setViewMediaClientConfig();
|
|
150
155
|
}
|
|
151
156
|
}, {
|
|
@@ -574,7 +574,7 @@ var MediaSingleNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
574
574
|
if (offsetLeft !== this.lastOffsetLeft) {
|
|
575
575
|
this.lastOffsetLeft = offsetLeft;
|
|
576
576
|
this.forceViewUpdate = true;
|
|
577
|
-
this.update(this.node, [],
|
|
577
|
+
this.update(this.node, [], undefined, function () {
|
|
578
578
|
return true;
|
|
579
579
|
});
|
|
580
580
|
}
|
|
@@ -49,6 +49,8 @@ export var changeMediaCardToInline = function changeMediaCardToInline(state, dis
|
|
|
49
49
|
mediaInline = _state$schema$nodes2.mediaInline,
|
|
50
50
|
paragraph = _state$schema$nodes2.paragraph;
|
|
51
51
|
var selectedNode = state.selection instanceof NodeSelection && state.selection.node;
|
|
52
|
+
|
|
53
|
+
// @ts-ignore - [unblock prosemirror bump] redundant check comparing boolean to media
|
|
52
54
|
if (!selectedNode || !selectedNode.type === media) {
|
|
53
55
|
return false;
|
|
54
56
|
}
|
|
@@ -158,6 +158,7 @@ export var copyOptionalAttrsFromMediaState = function copyOptionalAttrsFromMedia
|
|
|
158
158
|
var mediaStateKey = key.substring(2);
|
|
159
159
|
var attrValue = mediaState[mediaStateKey];
|
|
160
160
|
if (attrValue !== undefined) {
|
|
161
|
+
// @ts-ignore - [unblock prosemirror bump] assigning to readonly prop
|
|
161
162
|
node.attrs[key] = attrValue;
|
|
162
163
|
}
|
|
163
164
|
});
|
|
@@ -52,6 +52,7 @@ export function insertSliceIntoRangeSelectionInsideList(_ref4) {
|
|
|
52
52
|
return;
|
|
53
53
|
}
|
|
54
54
|
var newSelection = TextSelection.near(tr.doc.resolve(tr.mapping.map(mapped)), -1);
|
|
55
|
+
// @ts-ignore - [unblock prosemirror bump] assigning to readonly prop
|
|
55
56
|
newSlice.openEnd = newSlice.openStart;
|
|
56
57
|
tr.replaceRange(newSelection.from, newSelection.from, newSlice);
|
|
57
58
|
tr.setSelection(TextSelection.near(tr.doc.resolve(newSelection.from), -1));
|
|
@@ -88,7 +88,7 @@ export function handlePasteIntoTaskOrDecisionOrPanel(slice, queueCardsFromChange
|
|
|
88
88
|
var filters = [linkifyContent(schema)];
|
|
89
89
|
var selectionMarks = selection.$head.marks();
|
|
90
90
|
var textFormattingState = textFormattingPluginKey.getState(state);
|
|
91
|
-
if (selection instanceof TextSelection && Array.isArray(selectionMarks) && selectionMarks.length > 0 && hasOnlyNodesOfType(paragraph, text, emoji, mention, hardBreak)(slice) && (!codeMark.isInSet(selectionMarks) || textFormattingState.codeActive) // for codeMarks let's make sure mark is active
|
|
91
|
+
if (selection instanceof TextSelection && Array.isArray(selectionMarks) && selectionMarks.length > 0 && hasOnlyNodesOfType(paragraph, text, emoji, mention, hardBreak)(slice) && (!codeMark.isInSet(selectionMarks) || textFormattingState !== null && textFormattingState !== void 0 && textFormattingState.codeActive) // for codeMarks let's make sure mark is active
|
|
92
92
|
) {
|
|
93
93
|
filters.push(applyTextMarksToSlice(schema, selection.$head.marks()));
|
|
94
94
|
}
|
|
@@ -140,7 +140,8 @@ export function handlePasteNonNestableBlockNodesIntoList(slice) {
|
|
|
140
140
|
// These scenarios already get handled elsewhere and don't need to split the list
|
|
141
141
|
var sliceContainsBlockNodesOtherThanThoseAllowedInListItem = false;
|
|
142
142
|
slice.content.forEach(function (child) {
|
|
143
|
-
|
|
143
|
+
var _listItem$spec$conten;
|
|
144
|
+
if (child.isBlock && !((_listItem$spec$conten = listItem.spec.content) !== null && _listItem$spec$conten !== void 0 && _listItem$spec$conten.includes(child.type.name))) {
|
|
144
145
|
sliceContainsBlockNodesOtherThanThoseAllowedInListItem = true;
|
|
145
146
|
}
|
|
146
147
|
});
|
|
@@ -355,7 +356,7 @@ export function handlePastePreservingMarks(slice, queueCardsFromChangedTr) {
|
|
|
355
356
|
|
|
356
357
|
// special case for codeMark: will preserve mark only if codeMark is currently active
|
|
357
358
|
// won't preserve mark if cursor is on the edge on the mark (namely inactive)
|
|
358
|
-
if (codeMark.isInSet(selectionMarks) && !textFormattingState.codeActive) {
|
|
359
|
+
if (codeMark.isInSet(selectionMarks) && !(textFormattingState !== null && textFormattingState !== void 0 && textFormattingState.codeActive)) {
|
|
359
360
|
return false;
|
|
360
361
|
}
|
|
361
362
|
var isPlainTextSlice = slice.content.childCount === 1 && slice.content.firstChild.type === paragraph && slice.content.firstChild.content.childCount === 1 && slice.content.firstChild.firstChild.type === text;
|
|
@@ -255,6 +255,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
|
|
|
255
255
|
var selectionParentType = selectionParentNode === null || selectionParentNode === void 0 ? void 0 : selectionParentNode.type;
|
|
256
256
|
var edgeCaseNodeTypes = [(_schema$nodes = schema.nodes) === null || _schema$nodes === void 0 ? void 0 : _schema$nodes.panel, (_schema$nodes2 = schema.nodes) === null || _schema$nodes2 === void 0 ? void 0 : _schema$nodes2.taskList, (_schema$nodes3 = schema.nodes) === null || _schema$nodes3 === void 0 ? void 0 : _schema$nodes3.decisionList];
|
|
257
257
|
if (slice.openStart === 0 && selectionParentNode && edgeCaseNodeTypes.includes(selectionParentType)) {
|
|
258
|
+
// @ts-ignore - [unblock prosemirror bump] assigning to readonly prop
|
|
258
259
|
slice.openStart = 1;
|
|
259
260
|
}
|
|
260
261
|
if (handlePasteIntoTaskAndDecisionWithAnalytics(view, event, slice, isPlainText ? PasteTypes.plain : PasteTypes.richText, pluginInjectionApi)(state, dispatch)) {
|
|
@@ -340,6 +341,7 @@ export function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFl
|
|
|
340
341
|
if (selectionParentType !== state.schema.nodes.doc) {
|
|
341
342
|
var sliceCopy = Slice.fromJSON(state.schema, slice.toJSON() || {});
|
|
342
343
|
sliceCopy.content.descendants(function (node) {
|
|
344
|
+
// @ts-ignore - [unblock prosemirror bump] assigning to readonly prop
|
|
343
345
|
node.marks = node.marks.filter(function (mark) {
|
|
344
346
|
return mark.type.name !== 'breakout';
|
|
345
347
|
});
|
|
@@ -89,12 +89,12 @@ export function applyTextMarksToSlice(schema, marks) {
|
|
|
89
89
|
var allowedMarksToPaste = [linkMark, annotationMark];
|
|
90
90
|
sliceCopy.content.descendants(function (node, _pos, parent) {
|
|
91
91
|
if (node.isText && parent && parent.isBlock) {
|
|
92
|
+
// @ts-ignore - [unblock prosemirror bump] assigning to readonly prop
|
|
92
93
|
node.marks = [].concat(_toConsumableArray(node.marks && !codeMark.isInSet(marks) && node.marks.filter(function (mark) {
|
|
93
94
|
return allowedMarksToPaste.includes(mark.type);
|
|
94
95
|
}) || []), _toConsumableArray(parent.type.allowedMarks(marks).filter(function (mark) {
|
|
95
96
|
return mark.type !== linkMark;
|
|
96
|
-
})));
|
|
97
|
-
node.marks.sort(sortByOrderWithTypeName('marks'));
|
|
97
|
+
}))).sort(sortByOrderWithTypeName('marks'));
|
|
98
98
|
return false;
|
|
99
99
|
}
|
|
100
100
|
return true;
|
|
@@ -34,8 +34,8 @@ export function find(query, items) {
|
|
|
34
34
|
}
|
|
35
35
|
export var searchQuickInsertItems = function searchQuickInsertItems(quickInsertState, options) {
|
|
36
36
|
return function (query, category) {
|
|
37
|
-
var defaultItems = options && options.disableDefaultItems ? [] : quickInsertState.lazyDefaultItems();
|
|
38
|
-
var providedItems = quickInsertState.providedItems;
|
|
37
|
+
var defaultItems = !quickInsertState || options && options.disableDefaultItems ? [] : quickInsertState.lazyDefaultItems();
|
|
38
|
+
var providedItems = quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.providedItems;
|
|
39
39
|
var items = providedItems ? dedupe([].concat(_toConsumableArray(defaultItems), _toConsumableArray(providedItems)), function (item) {
|
|
40
40
|
return item.title;
|
|
41
41
|
}) : defaultItems;
|
|
@@ -7,7 +7,7 @@ export function createPlugin(eventDispatch, onSave) {
|
|
|
7
7
|
}
|
|
8
8
|
return keymap({
|
|
9
9
|
Enter: function Enter(state, _dispatch, editorView) {
|
|
10
|
-
if (canSaveOnEnter(editorView)) {
|
|
10
|
+
if (editorView && canSaveOnEnter(editorView)) {
|
|
11
11
|
eventDispatch(analyticsEventKey, analyticsPayload(state));
|
|
12
12
|
onSave(editorView);
|
|
13
13
|
return true;
|
|
@@ -65,6 +65,7 @@ export var toDOM = function toDOM(view, getPos) {
|
|
|
65
65
|
var isRightCursor = side === Side.RIGHT;
|
|
66
66
|
var node = isRightCursor ? $from.nodeBefore : $from.nodeAfter;
|
|
67
67
|
var nodeStart = getPos();
|
|
68
|
+
// @ts-ignore - [unblock prosemirror bump] nodeStart can be undefined
|
|
68
69
|
var dom = view.nodeDOM(nodeStart);
|
|
69
70
|
var element = document.createElement('span');
|
|
70
71
|
element.className = "ProseMirror-gapcursor ".concat(isRightCursor ? '-right' : '-left');
|