@atlaskit/editor-core 180.0.0 → 181.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +117 -0
- package/codemods/180.1.0-update-to-editor-migration-component.ts +8 -0
- package/codemods/__tests__/rename-editor-to-editor-migration-component.ts +156 -0
- package/codemods/migrates/rename-editor-to-editor-migration-component.ts +34 -0
- package/dist/cjs/actions/index.js +26 -11
- package/dist/cjs/analytics-api/attach-payload-into-transaction.js +1 -1
- package/dist/cjs/create-editor/ReactEditorView.js +9 -764
- package/dist/cjs/create-editor/ReactEditorViewInternal.js +753 -0
- package/dist/cjs/create-editor/ReactEditorViewNext.js +16 -0
- package/dist/cjs/create-editor/create-plugins-list.js +31 -3
- package/dist/cjs/create-editor/feature-flags-from-props.js +3 -2
- package/dist/cjs/create-editor/preset-utils.js +27 -0
- package/dist/cjs/editor-next/editor-internal.js +147 -0
- package/dist/cjs/editor-next/editor-migration-component.js +51 -0
- package/dist/cjs/editor-next/hooks/useEditorMeasuresConstructor.js +36 -0
- package/dist/cjs/editor-next/hooks/useMeasureEditorMountTime.js +42 -0
- package/dist/cjs/editor-next/hooks/useProviderFactory.js +73 -0
- package/dist/cjs/editor-next/index.js +143 -0
- package/dist/cjs/editor-next/utils/deprecationWarnings.js +45 -0
- package/dist/cjs/editor-next/utils/editorMeasureTTICallback.js +44 -0
- package/dist/cjs/editor-next/utils/editorPropTypes.js +36 -0
- package/dist/cjs/editor-next/utils/getBaseFontSize.js +17 -0
- package/dist/cjs/editor-next/utils/getProvidersFromEditorProps.js +41 -0
- package/dist/cjs/editor-next/utils/handleProviders.js +51 -0
- package/dist/cjs/editor-next/utils/onEditorCreated.js +28 -0
- package/dist/cjs/editor-next/utils/sendDurationAnalytics.js +68 -0
- package/dist/cjs/editor-next/utils/trackEditorActions.js +101 -0
- package/dist/cjs/editor.js +139 -445
- package/dist/cjs/index.js +7 -0
- package/dist/cjs/keymaps/consts.js +1 -16
- package/dist/cjs/labs/next/internal/hooks/use-analytics/index.js +4 -4
- package/dist/cjs/labs/next/internal/hooks/use-editor/create-dispatch-transaction.js +6 -6
- package/dist/cjs/labs/next/presets/create-stub-internal-apis.js +117 -0
- package/dist/cjs/labs/next/presets/cxhtml.js +56 -55
- package/dist/cjs/labs/next/presets/default.js +15 -42
- package/dist/cjs/labs/next/presets/mobile.js +76 -89
- package/dist/cjs/labs/next/presets/universal.js +337 -255
- package/dist/cjs/labs/next/presets/useUniversalPreset.js +36 -0
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +48 -13
- package/dist/cjs/plugins/analytics/index.js +2 -3
- package/dist/cjs/plugins/analytics/plugin.js +11 -6
- package/dist/cjs/plugins/analytics/utils.js +0 -11
- package/dist/cjs/plugins/annotation/utils.js +2 -36
- package/dist/cjs/plugins/base/pm-plugins/filter-steps.js +1 -1
- package/dist/cjs/plugins/base/pm-plugins/frozen-editor.js +98 -56
- package/dist/cjs/plugins/base/pm-plugins/react-nodeview.js +2 -7
- package/dist/cjs/plugins/base/utils/input-latency-tracking.js +24 -25
- package/dist/cjs/plugins/block-type/pm-plugins/input-rule.js +0 -10
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +1 -0
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/index.js +36 -9
- package/dist/cjs/plugins/caption/index.js +0 -7
- package/dist/cjs/plugins/card/nodeviews/blockCard.js +9 -3
- package/dist/cjs/plugins/card/nodeviews/genericCard.js +16 -2
- package/dist/cjs/plugins/card/nodeviews/inlineCard.js +6 -2
- package/dist/cjs/plugins/card/pm-plugins/main.js +10 -5
- package/dist/cjs/plugins/card/pm-plugins/util/resolve.js +4 -0
- package/dist/cjs/plugins/clipboard/pm-plugins/main.js +4 -1
- package/dist/cjs/plugins/code-block/pm-plugins/main-state.js +2 -14
- package/dist/cjs/plugins/collab-edit/plugin.js +2 -3
- package/dist/cjs/plugins/collab-edit/provider/index.js +1 -8
- package/dist/cjs/plugins/collab-edit/provider/types.js +1 -12
- package/dist/cjs/plugins/context-panel/index.js +1 -6
- package/dist/cjs/plugins/data-consumer/index.js +0 -8
- package/dist/cjs/plugins/date/utils/internal.js +0 -4
- package/dist/cjs/plugins/extension/commands.js +1 -8
- package/dist/cjs/plugins/extension/toolbar.js +7 -1
- package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +9 -2
- package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +2 -2
- package/dist/cjs/plugins/extension/ui/Extension/Lozenge.js +1 -0
- package/dist/cjs/plugins/feedback-dialog/index.js +1 -4
- package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +5 -1
- package/dist/cjs/plugins/floating-toolbar/ui/Button.js +9 -3
- package/dist/cjs/plugins/floating-toolbar/ui/CheckboxModal.js +5 -3
- package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +48 -14
- package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +2 -9
- package/dist/cjs/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +24 -21
- package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +12 -7
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +32 -5
- package/dist/cjs/plugins/floating-toolbar/utils.js +0 -12
- package/dist/cjs/plugins/fragment/index.js +0 -8
- package/dist/cjs/plugins/fragment/pm-plugins/fragment-consistency.js +1 -0
- package/dist/cjs/plugins/help-dialog/commands.js +2 -6
- package/dist/cjs/plugins/hyperlink/analytics.js +5 -5
- package/dist/cjs/plugins/hyperlink/index.js +1 -1
- package/dist/cjs/plugins/hyperlink/pm-plugins/main.js +9 -5
- package/dist/cjs/plugins/hyperlink/ui/EditorLinkPicker/index.js +10 -4
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +4 -3
- package/dist/cjs/plugins/image-upload/pm-plugins/main.js +50 -12
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +1 -0
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +1 -0
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +3 -0
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +1 -0
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +22 -0
- package/dist/cjs/plugins/layout/styles.js +10 -1
- package/dist/cjs/plugins/list/utils/find.js +0 -28
- package/dist/cjs/plugins/list/utils/indentation.js +1 -25
- package/dist/cjs/plugins/list/utils/node.js +0 -5
- package/dist/cjs/plugins/list/utils/selection.js +2 -15
- package/dist/cjs/plugins/media/commands/helpers.js +12 -40
- package/dist/cjs/plugins/media/commands/index.js +4 -4
- package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +14 -12
- package/dist/cjs/plugins/media/nodeviews/mediaInline.js +1 -1
- package/dist/cjs/plugins/media/nodeviews/mediaNodeUpdater.js +310 -205
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +1 -1
- package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +1 -1
- package/dist/cjs/plugins/media/pm-plugins/main.js +2 -27
- package/dist/cjs/plugins/media/toolbar/filePreviewItem.js +1 -4
- package/dist/cjs/plugins/media/utils/media-common.js +1 -20
- package/dist/cjs/plugins/mentions/nodeviews/mention.js +100 -16
- package/dist/cjs/plugins/mentions/type-ahead/index.js +1 -18
- package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +1 -3
- package/dist/cjs/plugins/mobile-dimensions/index.js +1 -4
- package/dist/cjs/plugins/panel/utils.js +4 -1
- package/dist/cjs/plugins/paste/handlers.js +128 -13
- package/dist/cjs/plugins/paste/index.js +1 -2
- package/dist/cjs/plugins/paste/pm-plugins/analytics.js +133 -88
- package/dist/cjs/plugins/paste/pm-plugins/main.js +12 -3
- package/dist/cjs/plugins/paste/util/index.js +0 -46
- package/dist/cjs/plugins/placeholder-text/index.js +2 -2
- package/dist/cjs/plugins/quick-insert/assets/index.js +1 -27
- package/dist/cjs/plugins/selection/gap-cursor/actions.js +49 -44
- package/dist/cjs/plugins/status/index.js +9 -3
- package/dist/cjs/plugins/status/ui/statusPicker.js +8 -2
- package/dist/cjs/plugins/status/utils.js +1 -15
- package/dist/cjs/plugins/text-color/pm-plugins/main.js +0 -1
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +48 -12
- package/dist/cjs/plugins/text-formatting/pm-plugins/smart-input-rule.js +8 -2
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/dropdown-menu.js +22 -2
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/index.js +3 -1
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/more-button.js +3 -1
- package/dist/cjs/plugins/text-formatting/utils.js +1 -35
- package/dist/cjs/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +19 -1
- package/dist/cjs/plugins/type-ahead/constants.js +1 -7
- package/dist/cjs/plugins/type-ahead/index.js +1 -1
- package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +2 -35
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +79 -106
- package/dist/cjs/plugins/type-ahead/utils.js +3 -22
- package/dist/cjs/test-utils.js +4 -12
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +43 -8
- package/dist/cjs/ui/ChromeCollapsed/index.js +1 -0
- package/dist/cjs/ui/CollapsedEditor/index.js +7 -13
- package/dist/cjs/ui/ColorPalette/index.js +18 -0
- package/dist/cjs/ui/ColorPickerButton/index.js +73 -7
- package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +1 -0
- package/dist/cjs/ui/ConfigPanel/utils.js +4 -17
- package/dist/cjs/ui/ContentStyles/index.js +1 -1
- package/dist/cjs/ui/ContextPanel/context.js +13 -12
- package/dist/cjs/ui/Dropdown/index.js +7 -2
- package/dist/cjs/ui/DropdownMenu/index.js +7 -2
- package/dist/cjs/ui/ElementBrowser/ModalElementBrowser.js +1 -1
- package/dist/cjs/ui/ElementBrowser/components/CategoryList.js +1 -1
- package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +1 -1
- package/dist/cjs/ui/ElementBrowser/components/StatelessElementBrowser.js +1 -1
- package/dist/cjs/ui/ElementBrowser/constants.js +1 -3
- package/dist/cjs/ui/PanelTextInput/index.js +4 -4
- package/dist/cjs/ui/PortalProvider/index.js +5 -5
- package/dist/cjs/ui/Resizer/utils.js +1 -3
- package/dist/cjs/ui/WidthEmitter/index.js +29 -35
- package/dist/cjs/ui/styles.js +3 -7
- package/dist/cjs/utils/document.js +15 -0
- package/dist/cjs/utils/extensions.js +6 -7
- package/dist/cjs/utils/get-editor-plugins.js +30 -0
- package/dist/cjs/utils/index.js +9 -269
- package/dist/cjs/utils/input-rules.js +1 -15
- package/dist/cjs/utils/linking-utils.js +1 -1
- package/dist/cjs/utils/performance/components/RenderTracking.js +1 -1
- package/dist/cjs/utils/performance/safer-transactions.js +1 -1
- package/dist/cjs/utils/prepare-extension-provider.js +25 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/actions/index.js +24 -10
- package/dist/es2019/analytics-api/attach-payload-into-transaction.js +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +3 -710
- package/dist/es2019/create-editor/ReactEditorViewInternal.js +697 -0
- package/dist/es2019/create-editor/ReactEditorViewNext.js +7 -0
- package/dist/es2019/create-editor/create-plugins-list.js +26 -3
- package/dist/es2019/create-editor/feature-flags-from-props.js +3 -2
- package/dist/es2019/create-editor/preset-utils.js +15 -0
- package/dist/es2019/editor-next/editor-internal.js +142 -0
- package/dist/es2019/editor-next/editor-migration-component.js +27 -0
- package/dist/es2019/editor-next/hooks/useEditorMeasuresConstructor.js +30 -0
- package/dist/es2019/editor-next/hooks/useMeasureEditorMountTime.js +35 -0
- package/dist/es2019/editor-next/hooks/useProviderFactory.js +62 -0
- package/dist/es2019/editor-next/index.js +96 -0
- package/dist/es2019/editor-next/utils/deprecationWarnings.js +39 -0
- package/dist/es2019/editor-next/utils/editorMeasureTTICallback.js +40 -0
- package/dist/es2019/editor-next/utils/editorPropTypes.js +29 -0
- package/dist/es2019/editor-next/utils/getBaseFontSize.js +11 -0
- package/dist/es2019/editor-next/utils/getProvidersFromEditorProps.js +36 -0
- package/dist/es2019/editor-next/utils/handleProviders.js +46 -0
- package/dist/es2019/editor-next/utils/onEditorCreated.js +21 -0
- package/dist/es2019/editor-next/utils/sendDurationAnalytics.js +40 -0
- package/dist/es2019/editor-next/utils/trackEditorActions.js +78 -0
- package/dist/es2019/editor.js +122 -398
- package/dist/es2019/index.js +2 -1
- package/dist/es2019/keymaps/consts.js +7 -11
- package/dist/es2019/labs/next/internal/hooks/use-analytics/index.js +2 -2
- package/dist/es2019/labs/next/internal/hooks/use-editor/create-dispatch-transaction.js +2 -3
- package/dist/es2019/labs/next/presets/create-stub-internal-apis.js +105 -0
- package/dist/es2019/labs/next/presets/cxhtml.js +56 -53
- package/dist/es2019/labs/next/presets/default.js +18 -38
- package/dist/es2019/labs/next/presets/mobile.js +88 -88
- package/dist/es2019/labs/next/presets/universal.js +347 -263
- package/dist/es2019/labs/next/presets/useUniversalPreset.js +25 -0
- package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/index.js +41 -12
- package/dist/es2019/plugins/analytics/index.js +3 -4
- package/dist/es2019/plugins/analytics/plugin.js +8 -2
- package/dist/es2019/plugins/analytics/utils.js +0 -4
- package/dist/es2019/plugins/annotation/utils.js +2 -30
- package/dist/es2019/plugins/base/pm-plugins/filter-steps.js +1 -1
- package/dist/es2019/plugins/base/pm-plugins/frozen-editor.js +96 -58
- package/dist/es2019/plugins/base/pm-plugins/react-nodeview.js +1 -3
- package/dist/es2019/plugins/base/utils/input-latency-tracking.js +23 -23
- package/dist/es2019/plugins/block-type/pm-plugins/input-rule.js +3 -9
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +1 -0
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/index.js +31 -5
- package/dist/es2019/plugins/caption/index.js +0 -2
- package/dist/es2019/plugins/card/nodeviews/blockCard.js +10 -3
- package/dist/es2019/plugins/card/nodeviews/genericCard.js +16 -2
- package/dist/es2019/plugins/card/nodeviews/inlineCard.js +6 -2
- package/dist/es2019/plugins/card/pm-plugins/main.js +9 -4
- package/dist/es2019/plugins/card/pm-plugins/util/resolve.js +4 -0
- package/dist/es2019/plugins/clipboard/pm-plugins/main.js +3 -1
- package/dist/es2019/plugins/code-block/pm-plugins/main-state.js +1 -9
- package/dist/es2019/plugins/collab-edit/plugin.js +1 -2
- package/dist/es2019/plugins/collab-edit/provider/index.js +1 -1
- package/dist/es2019/plugins/collab-edit/provider/types.js +1 -10
- package/dist/es2019/plugins/context-panel/index.js +0 -3
- package/dist/es2019/plugins/data-consumer/index.js +0 -7
- package/dist/es2019/plugins/date/utils/internal.js +0 -3
- package/dist/es2019/plugins/extension/commands.js +0 -6
- package/dist/es2019/plugins/extension/toolbar.js +7 -1
- package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +12 -2
- package/dist/es2019/plugins/extension/ui/Extension/Extension/styles.js +3 -0
- package/dist/es2019/plugins/extension/ui/Extension/Lozenge.js +1 -0
- package/dist/es2019/plugins/feedback-dialog/index.js +0 -2
- package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +5 -1
- package/dist/es2019/plugins/floating-toolbar/ui/Button.js +9 -3
- package/dist/es2019/plugins/floating-toolbar/ui/CheckboxModal.js +5 -3
- package/dist/es2019/plugins/floating-toolbar/ui/Dropdown.js +45 -12
- package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -11
- package/dist/es2019/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +3 -2
- package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +12 -7
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +29 -1
- package/dist/es2019/plugins/floating-toolbar/utils.js +0 -10
- package/dist/es2019/plugins/fragment/index.js +0 -7
- package/dist/es2019/plugins/fragment/pm-plugins/fragment-consistency.js +1 -0
- package/dist/es2019/plugins/help-dialog/commands.js +1 -2
- package/dist/es2019/plugins/hyperlink/analytics.js +1 -1
- package/dist/es2019/plugins/hyperlink/index.js +1 -1
- package/dist/es2019/plugins/hyperlink/pm-plugins/main.js +8 -4
- package/dist/es2019/plugins/hyperlink/ui/EditorLinkPicker/index.js +9 -3
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +3 -2
- package/dist/es2019/plugins/image-upload/pm-plugins/main.js +47 -5
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +1 -0
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +1 -0
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +3 -0
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +1 -0
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +24 -0
- package/dist/es2019/plugins/layout/styles.js +12 -4
- package/dist/es2019/plugins/list/utils/find.js +0 -27
- package/dist/es2019/plugins/list/utils/indentation.js +0 -23
- package/dist/es2019/plugins/list/utils/node.js +1 -4
- package/dist/es2019/plugins/list/utils/selection.js +2 -15
- package/dist/es2019/plugins/media/commands/helpers.js +9 -35
- package/dist/es2019/plugins/media/commands/index.js +1 -1
- package/dist/es2019/plugins/media/nodeviews/mediaGroup.js +3 -3
- package/dist/es2019/plugins/media/nodeviews/mediaInline.js +1 -1
- package/dist/es2019/plugins/media/nodeviews/mediaNodeUpdater.js +70 -37
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +1 -1
- package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +1 -1
- package/dist/es2019/plugins/media/pm-plugins/main.js +3 -30
- package/dist/es2019/plugins/media/toolbar/filePreviewItem.js +1 -4
- package/dist/es2019/plugins/media/utils/media-common.js +1 -19
- package/dist/es2019/plugins/mentions/nodeviews/mention.js +64 -16
- package/dist/es2019/plugins/mentions/type-ahead/index.js +1 -14
- package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +1 -2
- package/dist/es2019/plugins/mobile-dimensions/index.js +0 -3
- package/dist/es2019/plugins/panel/utils.js +4 -1
- package/dist/es2019/plugins/paste/handlers.js +127 -5
- package/dist/es2019/plugins/paste/index.js +1 -2
- package/dist/es2019/plugins/paste/pm-plugins/analytics.js +131 -93
- package/dist/es2019/plugins/paste/pm-plugins/main.js +13 -4
- package/dist/es2019/plugins/paste/util/index.js +5 -45
- package/dist/es2019/plugins/placeholder-text/index.js +1 -1
- package/dist/es2019/plugins/quick-insert/assets/index.js +0 -8
- package/dist/es2019/plugins/selection/gap-cursor/actions.js +56 -56
- package/dist/es2019/plugins/status/index.js +8 -2
- package/dist/es2019/plugins/status/ui/statusPicker.js +8 -2
- package/dist/es2019/plugins/status/utils.js +1 -11
- package/dist/es2019/plugins/text-color/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +48 -12
- package/dist/es2019/plugins/text-formatting/pm-plugins/smart-input-rule.js +8 -2
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/dropdown-menu.js +20 -3
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/index.js +4 -2
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/more-button.js +3 -1
- package/dist/es2019/plugins/text-formatting/utils.js +0 -27
- package/dist/es2019/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +16 -1
- package/dist/es2019/plugins/type-ahead/constants.js +0 -5
- package/dist/es2019/plugins/type-ahead/index.js +1 -1
- package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +0 -35
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +73 -92
- package/dist/es2019/plugins/type-ahead/utils.js +0 -23
- package/dist/es2019/test-utils.js +4 -7
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +40 -6
- package/dist/es2019/ui/ChromeCollapsed/index.js +1 -0
- package/dist/es2019/ui/CollapsedEditor/index.js +7 -11
- package/dist/es2019/ui/ColorPalette/index.js +2 -1
- package/dist/es2019/ui/ColorPickerButton/index.js +66 -9
- package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +1 -1
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +1 -0
- package/dist/es2019/ui/ConfigPanel/utils.js +0 -6
- package/dist/es2019/ui/ContentStyles/index.js +1 -1
- package/dist/es2019/ui/ContextPanel/context.js +5 -4
- package/dist/es2019/ui/Dropdown/index.js +5 -2
- package/dist/es2019/ui/DropdownMenu/index.js +5 -2
- package/dist/es2019/ui/ElementBrowser/ModalElementBrowser.js +1 -1
- package/dist/es2019/ui/ElementBrowser/components/CategoryList.js +1 -1
- package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +1 -1
- package/dist/es2019/ui/ElementBrowser/components/StatelessElementBrowser.js +1 -1
- package/dist/es2019/ui/ElementBrowser/constants.js +0 -1
- package/dist/es2019/ui/PanelTextInput/index.js +3 -3
- package/dist/es2019/ui/PortalProvider/index.js +1 -1
- package/dist/es2019/ui/Resizer/utils.js +0 -1
- package/dist/es2019/ui/WidthEmitter/index.js +25 -29
- package/dist/es2019/ui/styles.js +0 -6
- package/dist/es2019/utils/document.js +11 -1
- package/dist/es2019/utils/extensions.js +1 -3
- package/dist/es2019/utils/get-editor-plugins.js +23 -0
- package/dist/es2019/utils/index.js +13 -199
- package/dist/es2019/utils/input-rules.js +0 -14
- package/dist/es2019/utils/linking-utils.js +1 -1
- package/dist/es2019/utils/performance/components/RenderTracking.js +1 -1
- package/dist/es2019/utils/performance/safer-transactions.js +1 -1
- package/dist/es2019/utils/prepare-extension-provider.js +13 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/actions/index.js +24 -10
- package/dist/esm/analytics-api/attach-payload-into-transaction.js +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +9 -765
- package/dist/esm/create-editor/ReactEditorViewInternal.js +747 -0
- package/dist/esm/create-editor/ReactEditorViewNext.js +7 -0
- package/dist/esm/create-editor/create-plugins-list.js +30 -3
- package/dist/esm/create-editor/feature-flags-from-props.js +3 -2
- package/dist/esm/create-editor/preset-utils.js +21 -0
- package/dist/esm/editor-next/editor-internal.js +141 -0
- package/dist/esm/editor-next/editor-migration-component.js +44 -0
- package/dist/esm/editor-next/hooks/useEditorMeasuresConstructor.js +30 -0
- package/dist/esm/editor-next/hooks/useMeasureEditorMountTime.js +35 -0
- package/dist/esm/editor-next/hooks/useProviderFactory.js +66 -0
- package/dist/esm/editor-next/index.js +138 -0
- package/dist/esm/editor-next/utils/deprecationWarnings.js +39 -0
- package/dist/esm/editor-next/utils/editorMeasureTTICallback.js +38 -0
- package/dist/esm/editor-next/utils/editorPropTypes.js +28 -0
- package/dist/esm/editor-next/utils/getBaseFontSize.js +11 -0
- package/dist/esm/editor-next/utils/getProvidersFromEditorProps.js +35 -0
- package/dist/esm/editor-next/utils/handleProviders.js +45 -0
- package/dist/esm/editor-next/utils/onEditorCreated.js +21 -0
- package/dist/esm/editor-next/utils/sendDurationAnalytics.js +61 -0
- package/dist/esm/editor-next/utils/trackEditorActions.js +94 -0
- package/dist/esm/editor.js +139 -442
- package/dist/esm/index.js +2 -1
- package/dist/esm/keymaps/consts.js +7 -11
- package/dist/esm/labs/next/internal/hooks/use-analytics/index.js +2 -2
- package/dist/esm/labs/next/internal/hooks/use-editor/create-dispatch-transaction.js +2 -3
- package/dist/esm/labs/next/presets/create-stub-internal-apis.js +110 -0
- package/dist/esm/labs/next/presets/cxhtml.js +56 -55
- package/dist/esm/labs/next/presets/default.js +18 -41
- package/dist/esm/labs/next/presets/mobile.js +88 -90
- package/dist/esm/labs/next/presets/universal.js +337 -255
- package/dist/esm/labs/next/presets/useUniversalPreset.js +29 -0
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +48 -13
- package/dist/esm/plugins/analytics/index.js +3 -4
- package/dist/esm/plugins/analytics/plugin.js +7 -2
- package/dist/esm/plugins/analytics/utils.js +0 -9
- package/dist/esm/plugins/annotation/utils.js +2 -32
- package/dist/esm/plugins/base/pm-plugins/filter-steps.js +1 -1
- package/dist/esm/plugins/base/pm-plugins/frozen-editor.js +98 -56
- package/dist/esm/plugins/base/pm-plugins/react-nodeview.js +1 -5
- package/dist/esm/plugins/base/utils/input-latency-tracking.js +24 -25
- package/dist/esm/plugins/block-type/pm-plugins/input-rule.js +3 -9
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +1 -0
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/index.js +36 -9
- package/dist/esm/plugins/caption/index.js +0 -2
- package/dist/esm/plugins/card/nodeviews/blockCard.js +9 -3
- package/dist/esm/plugins/card/nodeviews/genericCard.js +16 -2
- package/dist/esm/plugins/card/nodeviews/inlineCard.js +6 -2
- package/dist/esm/plugins/card/pm-plugins/main.js +10 -5
- package/dist/esm/plugins/card/pm-plugins/util/resolve.js +4 -0
- package/dist/esm/plugins/clipboard/pm-plugins/main.js +4 -1
- package/dist/esm/plugins/code-block/pm-plugins/main-state.js +0 -10
- package/dist/esm/plugins/collab-edit/plugin.js +1 -2
- package/dist/esm/plugins/collab-edit/provider/index.js +1 -1
- package/dist/esm/plugins/collab-edit/provider/types.js +1 -10
- package/dist/esm/plugins/context-panel/index.js +0 -3
- package/dist/esm/plugins/data-consumer/index.js +0 -7
- package/dist/esm/plugins/date/utils/internal.js +0 -3
- package/dist/esm/plugins/extension/commands.js +0 -6
- package/dist/esm/plugins/extension/toolbar.js +7 -1
- package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +9 -2
- package/dist/esm/plugins/extension/ui/Extension/Extension/styles.js +2 -2
- package/dist/esm/plugins/extension/ui/Extension/Lozenge.js +1 -0
- package/dist/esm/plugins/feedback-dialog/index.js +0 -2
- package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +5 -1
- package/dist/esm/plugins/floating-toolbar/ui/Button.js +9 -3
- package/dist/esm/plugins/floating-toolbar/ui/CheckboxModal.js +5 -3
- package/dist/esm/plugins/floating-toolbar/ui/Dropdown.js +48 -14
- package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +2 -9
- package/dist/esm/plugins/floating-toolbar/ui/ExtensionsPlaceholder.js +24 -21
- package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +12 -7
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +32 -5
- package/dist/esm/plugins/floating-toolbar/utils.js +0 -10
- package/dist/esm/plugins/fragment/index.js +0 -7
- package/dist/esm/plugins/fragment/pm-plugins/fragment-consistency.js +1 -0
- package/dist/esm/plugins/help-dialog/commands.js +0 -3
- package/dist/esm/plugins/hyperlink/analytics.js +1 -1
- package/dist/esm/plugins/hyperlink/index.js +1 -1
- package/dist/esm/plugins/hyperlink/pm-plugins/main.js +9 -5
- package/dist/esm/plugins/hyperlink/ui/EditorLinkPicker/index.js +10 -4
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +3 -2
- package/dist/esm/plugins/image-upload/pm-plugins/main.js +51 -12
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +1 -0
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +1 -0
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +3 -0
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +1 -0
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +22 -0
- package/dist/esm/plugins/layout/styles.js +11 -2
- package/dist/esm/plugins/list/utils/find.js +0 -27
- package/dist/esm/plugins/list/utils/indentation.js +0 -23
- package/dist/esm/plugins/list/utils/node.js +1 -4
- package/dist/esm/plugins/list/utils/selection.js +2 -12
- package/dist/esm/plugins/media/commands/helpers.js +9 -35
- package/dist/esm/plugins/media/commands/index.js +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaGroup.js +14 -12
- package/dist/esm/plugins/media/nodeviews/mediaInline.js +1 -1
- package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +311 -206
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +1 -1
- package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +1 -1
- package/dist/esm/plugins/media/pm-plugins/main.js +3 -28
- package/dist/esm/plugins/media/toolbar/filePreviewItem.js +1 -4
- package/dist/esm/plugins/media/utils/media-common.js +1 -17
- package/dist/esm/plugins/mentions/nodeviews/mention.js +97 -16
- package/dist/esm/plugins/mentions/type-ahead/index.js +1 -18
- package/dist/esm/plugins/mentions/ui/InviteItem/index.js +1 -2
- package/dist/esm/plugins/mobile-dimensions/index.js +0 -3
- package/dist/esm/plugins/panel/utils.js +4 -1
- package/dist/esm/plugins/paste/handlers.js +127 -13
- package/dist/esm/plugins/paste/index.js +1 -2
- package/dist/esm/plugins/paste/pm-plugins/analytics.js +130 -86
- package/dist/esm/plugins/paste/pm-plugins/main.js +13 -4
- package/dist/esm/plugins/paste/util/index.js +5 -45
- package/dist/esm/plugins/placeholder-text/index.js +2 -2
- package/dist/esm/plugins/quick-insert/assets/index.js +0 -20
- package/dist/esm/plugins/selection/gap-cursor/actions.js +52 -45
- package/dist/esm/plugins/status/index.js +9 -3
- package/dist/esm/plugins/status/ui/statusPicker.js +8 -2
- package/dist/esm/plugins/status/utils.js +1 -13
- package/dist/esm/plugins/text-color/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +48 -12
- package/dist/esm/plugins/text-formatting/pm-plugins/smart-input-rule.js +8 -2
- package/dist/esm/plugins/text-formatting/ui/Toolbar/dropdown-menu.js +23 -3
- package/dist/esm/plugins/text-formatting/ui/Toolbar/index.js +4 -2
- package/dist/esm/plugins/text-formatting/ui/Toolbar/more-button.js +3 -1
- package/dist/esm/plugins/text-formatting/utils.js +0 -29
- package/dist/esm/plugins/toolbar-lists-indentation/ui/ToolbarDropdown.js +19 -1
- package/dist/esm/plugins/type-ahead/constants.js +0 -5
- package/dist/esm/plugins/type-ahead/index.js +1 -1
- package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +0 -31
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +79 -106
- package/dist/esm/plugins/type-ahead/utils.js +2 -20
- package/dist/esm/test-utils.js +4 -7
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +41 -6
- package/dist/esm/ui/ChromeCollapsed/index.js +1 -0
- package/dist/esm/ui/CollapsedEditor/index.js +7 -13
- package/dist/esm/ui/ColorPalette/index.js +2 -1
- package/dist/esm/ui/ColorPickerButton/index.js +74 -8
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +1 -1
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +1 -0
- package/dist/esm/ui/ConfigPanel/utils.js +3 -14
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/ui/ContextPanel/context.js +8 -8
- package/dist/esm/ui/Dropdown/index.js +7 -2
- package/dist/esm/ui/DropdownMenu/index.js +7 -2
- package/dist/esm/ui/ElementBrowser/ModalElementBrowser.js +1 -1
- package/dist/esm/ui/ElementBrowser/components/CategoryList.js +1 -1
- package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +1 -1
- package/dist/esm/ui/ElementBrowser/components/StatelessElementBrowser.js +1 -1
- package/dist/esm/ui/ElementBrowser/constants.js +0 -1
- package/dist/esm/ui/PanelTextInput/index.js +4 -4
- package/dist/esm/ui/PortalProvider/index.js +1 -1
- package/dist/esm/ui/Resizer/utils.js +0 -1
- package/dist/esm/ui/WidthEmitter/index.js +28 -37
- package/dist/esm/ui/styles.js +2 -5
- package/dist/esm/utils/document.js +15 -1
- package/dist/esm/utils/extensions.js +1 -3
- package/dist/esm/utils/get-editor-plugins.js +23 -0
- package/dist/esm/utils/index.js +13 -196
- package/dist/esm/utils/input-rules.js +0 -13
- package/dist/esm/utils/linking-utils.js +1 -1
- package/dist/esm/utils/performance/components/RenderTracking.js +1 -1
- package/dist/esm/utils/performance/safer-transactions.js +1 -1
- package/dist/esm/utils/prepare-extension-provider.js +17 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/actions/index.d.ts +5 -5
- package/dist/types/create-editor/ReactEditorView.d.ts +5 -110
- package/dist/types/create-editor/ReactEditorViewInternal.d.ts +114 -0
- package/dist/types/create-editor/ReactEditorViewNext.d.ts +8 -0
- package/dist/types/create-editor/create-plugins-list.d.ts +3 -5
- package/dist/types/create-editor/preset-utils.d.ts +2 -0
- package/dist/types/editor-next/editor-internal.d.ts +44 -0
- package/dist/types/editor-next/editor-migration-component.d.ts +5 -0
- package/dist/types/editor-next/hooks/useEditorMeasuresConstructor.d.ts +17 -0
- package/dist/types/editor-next/hooks/useMeasureEditorMountTime.d.ts +13 -0
- package/dist/types/editor-next/hooks/useProviderFactory.d.ts +21 -0
- package/dist/types/editor-next/index.d.ts +34 -0
- package/dist/types/editor-next/utils/deprecationWarnings.d.ts +2 -0
- package/dist/types/editor-next/utils/editorMeasureTTICallback.d.ts +5 -0
- package/dist/types/editor-next/utils/editorPropTypes.d.ts +19 -0
- package/dist/types/editor-next/utils/getBaseFontSize.d.ts +6 -0
- package/dist/types/editor-next/utils/getProvidersFromEditorProps.d.ts +9 -0
- package/dist/types/editor-next/utils/handleProviders.d.ts +14 -0
- package/dist/types/editor-next/utils/onEditorCreated.d.ts +12 -0
- package/dist/types/editor-next/utils/sendDurationAnalytics.d.ts +15 -0
- package/dist/types/editor-next/utils/trackEditorActions.d.ts +29 -0
- package/dist/types/editor.d.ts +50 -25
- package/dist/types/index.d.ts +1 -0
- package/dist/types/keymaps/consts.d.ts +0 -11
- package/dist/types/labs/next/internal/hooks/use-analytics/index.d.ts +1 -1
- package/dist/types/labs/next/presets/create-stub-internal-apis.d.ts +16 -0
- package/dist/types/labs/next/presets/cxhtml.d.ts +33 -1
- package/dist/types/labs/next/presets/default.d.ts +67 -10
- package/dist/types/labs/next/presets/mobile.d.ts +33 -1
- package/dist/types/labs/next/presets/universal.d.ts +5 -13
- package/dist/types/labs/next/presets/useUniversalPreset.d.ts +7 -0
- package/dist/types/nodeviews/context-adapter.d.ts +0 -1
- package/dist/types/nodeviews/index.d.ts +0 -1
- package/dist/types/plugins/alignment/index.d.ts +1 -1
- package/dist/types/plugins/alignment/pm-plugins/types.d.ts +0 -11
- package/dist/types/plugins/alignment/ui/ToolbarAlignment/index.d.ts +3 -1
- package/dist/types/plugins/analytics/index.d.ts +3 -6
- package/dist/types/plugins/analytics/plugin.d.ts +3 -1
- package/dist/types/plugins/analytics/utils.d.ts +2 -3
- package/dist/types/plugins/annotation/index.d.ts +3 -1
- package/dist/types/plugins/annotation/utils.d.ts +0 -17
- package/dist/types/plugins/avatar-group/index.d.ts +3 -1
- package/dist/types/plugins/base/index.d.ts +3 -1
- package/dist/types/plugins/base/pm-plugins/filter-steps.d.ts +1 -1
- package/dist/types/plugins/base/pm-plugins/react-nodeview.d.ts +2 -3
- package/dist/types/plugins/base/utils/input-latency-tracking.d.ts +1 -3
- package/dist/types/plugins/before-primaryToolbar/index.d.ts +3 -1
- package/dist/types/plugins/block-type/index.d.ts +3 -1
- package/dist/types/plugins/block-type/pm-plugins/input-rule.d.ts +2 -6
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/blocktype-button.d.ts +1 -0
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/index.d.ts +1 -0
- package/dist/types/plugins/breakout/index.d.ts +3 -1
- package/dist/types/plugins/caption/index.d.ts +0 -2
- package/dist/types/plugins/card/index.d.ts +3 -1
- package/dist/types/plugins/card/nodeviews/blockCard.d.ts +2 -10
- package/dist/types/plugins/card/nodeviews/genericCard.d.ts +2 -1
- package/dist/types/plugins/card/nodeviews/inlineCard.d.ts +1 -1
- package/dist/types/plugins/card/pm-plugins/util/state.d.ts +1 -0
- package/dist/types/plugins/card/types.d.ts +3 -0
- package/dist/types/plugins/code-bidi-warning/index.d.ts +3 -1
- package/dist/types/plugins/code-block/actions.d.ts +0 -4
- package/dist/types/plugins/code-block/index.d.ts +3 -1
- package/dist/types/plugins/code-block/pm-plugins/main-state.d.ts +0 -3
- package/dist/types/plugins/collab-edit/index.d.ts +3 -1
- package/dist/types/plugins/collab-edit/provider/index.d.ts +1 -2
- package/dist/types/plugins/collab-edit/provider/types.d.ts +1 -36
- package/dist/types/plugins/context-panel/index.d.ts +3 -4
- package/dist/types/plugins/data-consumer/index.d.ts +0 -2
- package/dist/types/plugins/date/utils/internal.d.ts +0 -1
- package/dist/types/plugins/emoji/index.d.ts +3 -1
- package/dist/types/plugins/expand/index.d.ts +3 -1
- package/dist/types/plugins/extension/commands.d.ts +0 -1
- package/dist/types/plugins/extension/index.d.ts +3 -1
- package/dist/types/plugins/extension/nodeviews/extension.d.ts +0 -5
- package/dist/types/plugins/extension/toolbar.d.ts +5 -0
- package/dist/types/plugins/feature-flags-context/index.d.ts +3 -1
- package/dist/types/plugins/feedback-dialog/index.d.ts +3 -3
- package/dist/types/plugins/find-replace/index.d.ts +3 -1
- package/dist/types/plugins/floating-toolbar/ui/Button.d.ts +4 -1
- package/dist/types/plugins/floating-toolbar/ui/Dropdown.d.ts +6 -2
- package/dist/types/plugins/floating-toolbar/utils.d.ts +0 -2
- package/dist/types/plugins/fragment/index.d.ts +0 -2
- package/dist/types/plugins/grid/index.d.ts +3 -1
- package/dist/types/plugins/help-dialog/commands.d.ts +0 -1
- package/dist/types/plugins/help-dialog/index.d.ts +3 -1
- package/dist/types/plugins/history/actions.d.ts +1 -2
- package/dist/types/plugins/hyperlink/analytics.d.ts +1 -1
- package/dist/types/plugins/hyperlink/index.d.ts +3 -1
- package/dist/types/plugins/hyperlink/pm-plugins/main.d.ts +4 -2
- package/dist/types/plugins/hyperlink/types.d.ts +3 -1
- package/dist/types/plugins/hyperlink/ui/EditorLinkPicker/index.d.ts +3 -1
- package/dist/types/plugins/insert-block/index.d.ts +3 -1
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.d.ts +1 -0
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.d.ts +1 -0
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.d.ts +1 -0
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.d.ts +1 -0
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +1 -0
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/types.d.ts +1 -0
- package/dist/types/plugins/layout/index.d.ts +3 -1
- package/dist/types/plugins/layout/styles.d.ts +2 -1
- package/dist/types/plugins/list/index.d.ts +3 -1
- package/dist/types/plugins/list/utils/find.d.ts +0 -1
- package/dist/types/plugins/list/utils/indentation.d.ts +0 -1
- package/dist/types/plugins/list/utils/node.d.ts +0 -2
- package/dist/types/plugins/list/utils/selection.d.ts +0 -3
- package/dist/types/plugins/max-content-size/index.d.ts +3 -1
- package/dist/types/plugins/media/commands/helpers.d.ts +5 -12
- package/dist/types/plugins/media/commands/index.d.ts +1 -1
- package/dist/types/plugins/media/index.d.ts +3 -1
- package/dist/types/plugins/media/nodeviews/__mocks__/mediaNodeUpdater.d.ts +3 -1
- package/dist/types/plugins/media/nodeviews/mediaNodeUpdater.d.ts +4 -1
- package/dist/types/plugins/media/pm-plugins/main.d.ts +1 -4
- package/dist/types/plugins/media/pm-plugins/types.d.ts +1 -4
- package/dist/types/plugins/media/utils/media-common.d.ts +0 -5
- package/dist/types/plugins/mentions/index.d.ts +3 -1
- package/dist/types/plugins/mentions/types.d.ts +1 -2
- package/dist/types/plugins/mentions/ui/InviteItem/index.d.ts +2 -3
- package/dist/types/plugins/mentions/ui/InviteItem/styles.d.ts +0 -6
- package/dist/types/plugins/mentions/ui/ToolbarMention/index.d.ts +1 -4
- package/dist/types/plugins/mobile-dimensions/index.d.ts +0 -1
- package/dist/types/plugins/panel/index.d.ts +3 -1
- package/dist/types/plugins/paste/handlers.d.ts +2 -1
- package/dist/types/plugins/paste/index.d.ts +3 -2
- package/dist/types/plugins/paste/pm-plugins/analytics.d.ts +10 -4
- package/dist/types/plugins/paste/util/index.d.ts +0 -6
- package/dist/types/plugins/placeholder/index.d.ts +3 -1
- package/dist/types/plugins/placeholder-text/index.d.ts +3 -1
- package/dist/types/plugins/quick-insert/assets/index.d.ts +0 -2
- package/dist/types/plugins/quick-insert/index.d.ts +3 -1
- package/dist/types/plugins/save-on-enter/index.d.ts +3 -1
- package/dist/types/plugins/selection/index.d.ts +3 -1
- package/dist/types/plugins/status/index.d.ts +3 -1
- package/dist/types/plugins/status/ui/statusPicker.d.ts +3 -0
- package/dist/types/plugins/status/utils.d.ts +0 -3
- package/dist/types/plugins/submit-editor/index.d.ts +3 -1
- package/dist/types/plugins/tasks-and-decisions/index.d.ts +3 -1
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/main.d.ts +0 -6
- package/dist/types/plugins/text-color/index.d.ts +3 -1
- package/dist/types/plugins/text-color/pm-plugins/main.d.ts +2 -12
- package/dist/types/plugins/text-color/ui/ToolbarTextColor/index.d.ts +2 -0
- package/dist/types/plugins/text-formatting/index.d.ts +3 -1
- package/dist/types/plugins/text-formatting/pm-plugins/clear-formatting.d.ts +0 -1
- package/dist/types/plugins/text-formatting/ui/Toolbar/more-button.d.ts +2 -1
- package/dist/types/plugins/text-formatting/utils.d.ts +0 -5
- package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +3 -1
- package/dist/types/plugins/type-ahead/constants.d.ts +0 -4
- package/dist/types/plugins/type-ahead/index.d.ts +3 -1
- package/dist/types/plugins/type-ahead/pm-plugins/decorations.d.ts +0 -10
- package/dist/types/plugins/type-ahead/utils.d.ts +1 -2
- package/dist/types/test-utils.d.ts +4 -5
- package/dist/types/types/editor-appearance-component.d.ts +2 -2
- package/dist/types/types/editor-props.d.ts +55 -42
- package/dist/types/types/get-editor-props.d.ts +12 -0
- package/dist/types/types/performance-tracking.d.ts +10 -0
- package/dist/types/ui/Appearance/Chromeless.d.ts +0 -5
- package/dist/types/ui/Appearance/Comment/Comment.d.ts +0 -7
- package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +3 -2
- package/dist/types/ui/Appearance/FullPage/MainToolbar.d.ts +0 -4
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +29 -29
- package/dist/types/ui/AppearanceComponents/Mobile.d.ts +2 -5
- package/dist/types/ui/CollapsedEditor/index.d.ts +4 -3
- package/dist/types/ui/ColorPalette/Palettes/index.d.ts +1 -1
- package/dist/types/ui/ColorPalette/Palettes/type.d.ts +1 -1
- package/dist/types/ui/ColorPalette/index.d.ts +2 -1
- package/dist/types/ui/ColorPickerButton/index.d.ts +5 -2
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/types.d.ts +0 -3
- package/dist/types/ui/ConfigPanel/utils.d.ts +2 -3
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/ui/ContextPanel/context.d.ts +2 -1
- package/dist/types/ui/ElementBrowser/ModalElementBrowser.d.ts +0 -3
- package/dist/types/ui/ElementBrowser/constants.d.ts +0 -1
- package/dist/types/ui/ElementBrowser/types.d.ts +0 -5
- package/dist/types/ui/PanelTextInput/index.d.ts +1 -1
- package/dist/types/ui/PortalProvider/index.d.ts +1 -1
- package/dist/types/ui/Resizer/utils.d.ts +0 -1
- package/dist/types/ui/styles.d.ts +0 -1
- package/dist/types/utils/document.d.ts +4 -3
- package/dist/types/utils/get-editor-plugins.d.ts +10 -0
- package/dist/types/utils/index.d.ts +6 -65
- package/dist/types/utils/input-rules.d.ts +1 -2
- package/dist/types/utils/linking-utils.d.ts +1 -1
- package/dist/types/utils/performance/components/RenderTracking.d.ts +1 -1
- package/dist/types/utils/performance/instrumented-plugin.d.ts +1 -1
- package/dist/types/utils/performance/safer-transactions.d.ts +1 -1
- package/dist/types/utils/prepare-extension-provider.d.ts +5 -0
- package/dist/types/utils/table.d.ts +0 -1
- package/docs/0-intro.tsx +0 -1
- package/package.json +37 -37
- package/report.api.md +307 -244
- package/dist/cjs/labs/next/presets/preset.js +0 -106
- package/dist/cjs/plugins/analytics/analytics-queue.js +0 -79
- package/dist/cjs/plugins/analytics/fire-analytics-event.js +0 -35
- package/dist/cjs/plugins/collab-edit/provider/channel.js +0 -313
- package/dist/cjs/plugins/collab-edit/provider/logger.js +0 -17
- package/dist/cjs/plugins/collab-edit/provider/mock-users.js +0 -19
- package/dist/cjs/plugins/data-consumer/plugin-key.js +0 -9
- package/dist/cjs/plugins/media/toolbar/toolbar-messages.js +0 -15
- package/dist/cjs/profiler/render-count.js +0 -60
- package/dist/cjs/ui/ColorPalette/Color/index.js +0 -9
- package/dist/cjs/ui/ConfigPanel/FieldDescription.js +0 -19
- package/dist/cjs/ui/WithPluginState/types.js +0 -5
- package/dist/es2019/labs/next/presets/preset.js +0 -71
- package/dist/es2019/plugins/analytics/analytics-queue.js +0 -53
- package/dist/es2019/plugins/analytics/fire-analytics-event.js +0 -26
- package/dist/es2019/plugins/collab-edit/provider/channel.js +0 -179
- package/dist/es2019/plugins/collab-edit/provider/logger.js +0 -8
- package/dist/es2019/plugins/collab-edit/provider/mock-users.js +0 -12
- package/dist/es2019/plugins/data-consumer/plugin-key.js +0 -2
- package/dist/es2019/plugins/media/toolbar/toolbar-messages.js +0 -8
- package/dist/es2019/profiler/render-count.js +0 -53
- package/dist/es2019/ui/ColorPalette/Color/index.js +0 -2
- package/dist/es2019/ui/ConfigPanel/FieldDescription.js +0 -12
- package/dist/esm/labs/next/presets/preset.js +0 -98
- package/dist/esm/plugins/analytics/analytics-queue.js +0 -71
- package/dist/esm/plugins/analytics/fire-analytics-event.js +0 -28
- package/dist/esm/plugins/analytics/types/type-ahead.js +0 -1
- package/dist/esm/plugins/collab-edit/provider/channel.js +0 -305
- package/dist/esm/plugins/collab-edit/provider/logger.js +0 -10
- package/dist/esm/plugins/collab-edit/provider/mock-users.js +0 -12
- package/dist/esm/plugins/data-consumer/plugin-key.js +0 -2
- package/dist/esm/plugins/media/toolbar/toolbar-messages.js +0 -8
- package/dist/esm/profiler/render-count.js +0 -49
- package/dist/esm/ui/ColorPalette/Color/index.js +0 -2
- package/dist/esm/ui/ConfigPanel/FieldDescription.js +0 -11
- package/dist/esm/ui/WithPluginState/types.js +0 -1
- package/dist/types/labs/next/presets/preset.d.ts +0 -46
- package/dist/types/plugins/analytics/analytics-queue.d.ts +0 -10
- package/dist/types/plugins/analytics/fire-analytics-event.d.ts +0 -9
- package/dist/types/plugins/analytics/types/type-ahead.d.ts +0 -1
- package/dist/types/plugins/collab-edit/provider/channel.d.ts +0 -48
- package/dist/types/plugins/collab-edit/provider/logger.d.ts +0 -1
- package/dist/types/plugins/collab-edit/provider/mock-users.d.ts +0 -6
- package/dist/types/plugins/data-consumer/plugin-key.d.ts +0 -2
- package/dist/types/plugins/media/toolbar/toolbar-messages.d.ts +0 -7
- package/dist/types/profiler/render-count.d.ts +0 -14
- package/dist/types/ui/ColorPalette/Color/index.d.ts +0 -2
- package/dist/types/ui/ConfigPanel/FieldDescription.d.ts +0 -6
- package/dist/types/ui/WithPluginState/types.d.ts +0 -10
- /package/dist/cjs/{plugins/analytics/types/type-ahead.js → types/get-editor-props.js} +0 -0
- /package/dist/es2019/{plugins/analytics/types/type-ahead.js → types/get-editor-props.js} +0 -0
- /package/dist/{es2019/ui/WithPluginState/types.js → esm/types/get-editor-props.js} +0 -0
package/report.api.md
CHANGED
|
@@ -23,6 +23,7 @@ import { ACTION } from '@atlaskit/editor-common/analytics';
|
|
|
23
23
|
import { ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
24
24
|
import { ACTION_SUBJECT_ID } from '@atlaskit/editor-common/analytics';
|
|
25
25
|
import { ActivityProvider } from '@atlaskit/activity-provider';
|
|
26
|
+
import { AllEditorPresetPluginTypes } from '@atlaskit/editor-common/types';
|
|
26
27
|
import { AnalyticsEventPayload } from '@atlaskit/editor-common/analytics';
|
|
27
28
|
import { AnalyticsEventPayload as AnalyticsEventPayload_2 } from '@atlaskit/analytics-next/AnalyticsEvent';
|
|
28
29
|
import { AnnotationTypes } from '@atlaskit/adf-schema';
|
|
@@ -31,6 +32,7 @@ import { CardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
|
31
32
|
import { CollabEditProvider } from '@atlaskit/editor-common/collab';
|
|
32
33
|
import { Color } from '@atlaskit/status/element';
|
|
33
34
|
import { Command as Command_2 } from '@atlaskit/editor-common/types';
|
|
35
|
+
import { ComponentType } from 'react';
|
|
34
36
|
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
35
37
|
import { ContextUpdateHandler } from '@atlaskit/editor-common/types';
|
|
36
38
|
import { createTable } from '@atlaskit/editor-plugin-table/commands';
|
|
@@ -47,6 +49,7 @@ import { EditorActionsOptions } from '@atlaskit/editor-common/types';
|
|
|
47
49
|
import { EditorAppearance } from '@atlaskit/editor-common/types';
|
|
48
50
|
import { FeatureFlags as EditorFeatureFlags } from '@atlaskit/editor-common/types';
|
|
49
51
|
import { EditorPlugin } from '@atlaskit/editor-common/types';
|
|
52
|
+
import { EditorPresetBuilder } from '@atlaskit/editor-common/preset';
|
|
50
53
|
import { EditorReactContext } from '@atlaskit/editor-common/types';
|
|
51
54
|
import { EditorSelectionAPI } from '@atlaskit/editor-common/selection';
|
|
52
55
|
import { EditorState } from 'prosemirror-state';
|
|
@@ -62,6 +65,8 @@ import { ExperienceStore } from '@atlaskit/editor-common/ufo';
|
|
|
62
65
|
import type { ExtensionHandlers } from '@atlaskit/editor-common/extensions';
|
|
63
66
|
import type { ExtensionProvider } from '@atlaskit/editor-common/extensions';
|
|
64
67
|
import { ExtensionType } from '@atlaskit/editor-common/provider-factory';
|
|
68
|
+
import { FC } from 'react';
|
|
69
|
+
import { FireAnalyticsCallback } from '@atlaskit/editor-common/analytics';
|
|
65
70
|
import { FloatingToolbarButton } from '@atlaskit/editor-common/types';
|
|
66
71
|
import { FloatingToolbarColorPicker } from '@atlaskit/editor-common/types';
|
|
67
72
|
import { FloatingToolbarConfig } from '@atlaskit/editor-common/types';
|
|
@@ -90,7 +95,6 @@ import { MediaFeatureFlags } from '@atlaskit/media-common';
|
|
|
90
95
|
import { MediaFeatureFlags as MediaFeatureFlags_2 } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
91
96
|
import { MediaFile } from '@atlaskit/media-picker/types';
|
|
92
97
|
import { MediaProvider as MediaProvider_2 } from '@atlaskit/editor-common/provider-factory';
|
|
93
|
-
import { MemoizedFn } from 'memoize-one';
|
|
94
98
|
import { MentionDescription } from '@atlaskit/mention';
|
|
95
99
|
import { MentionProvider } from '@atlaskit/mention/resource';
|
|
96
100
|
import { MentionProvider as MentionProvider_2 } from '@atlaskit/mention';
|
|
@@ -120,6 +124,7 @@ import { QuickInsertProvider } from '@atlaskit/editor-common/provider-factory';
|
|
|
120
124
|
import { default as React_2 } from 'react';
|
|
121
125
|
import { ReactElement } from 'react';
|
|
122
126
|
import { RefObject } from 'react';
|
|
127
|
+
import { ReplaceRawValue } from '@atlaskit/editor-common/types';
|
|
123
128
|
import { ResolvedEditorState } from '@atlaskit/editor-common/collab';
|
|
124
129
|
import { RichMediaLayout } from '@atlaskit/adf-schema';
|
|
125
130
|
import { Schema } from 'prosemirror-model';
|
|
@@ -129,7 +134,6 @@ import type { SelectOption } from '@atlaskit/editor-common/types';
|
|
|
129
134
|
import { setTextSelection } from '@atlaskit/editor-common/utils';
|
|
130
135
|
import { SEVERITY } from '@atlaskit/editor-common/utils';
|
|
131
136
|
import { TaskDecisionProvider } from '@atlaskit/task-decision';
|
|
132
|
-
import { TeamMentionProvider } from '@atlaskit/mention/resource';
|
|
133
137
|
import { TeamMentionResource } from '@atlaskit/mention/team-resource';
|
|
134
138
|
import type { ThemeModes } from '@atlaskit/theme/types';
|
|
135
139
|
import { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
|
|
@@ -251,89 +255,7 @@ type BasePortalProviderProps = {
|
|
|
251
255
|
} & WrappedComponentProps;
|
|
252
256
|
|
|
253
257
|
// @public (undocumented)
|
|
254
|
-
export class BaseReactEditorView<T = {}> extends
|
|
255
|
-
EditorViewProps & WrappedComponentProps & T,
|
|
256
|
-
{},
|
|
257
|
-
EditorReactContext
|
|
258
|
-
> {
|
|
259
|
-
constructor(
|
|
260
|
-
props: EditorViewProps & WrappedComponentProps & T,
|
|
261
|
-
context: EditorReactContext,
|
|
262
|
-
);
|
|
263
|
-
// (undocumented)
|
|
264
|
-
blur: () => void;
|
|
265
|
-
// (undocumented)
|
|
266
|
-
componentDidMount(): void;
|
|
267
|
-
componentWillUnmount(): void;
|
|
268
|
-
// (undocumented)
|
|
269
|
-
config: EditorConfig;
|
|
270
|
-
// (undocumented)
|
|
271
|
-
contentTransformer?: Transformer_2<string>;
|
|
272
|
-
// (undocumented)
|
|
273
|
-
static contextTypes: {
|
|
274
|
-
getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<
|
|
275
|
-
(...args: any[]) => any
|
|
276
|
-
>;
|
|
277
|
-
};
|
|
278
|
-
// (undocumented)
|
|
279
|
-
createEditorState: (options: CreateEditorStateOptions) => EditorState<any>;
|
|
280
|
-
// (undocumented)
|
|
281
|
-
dispatch: Dispatch;
|
|
282
|
-
// (undocumented)
|
|
283
|
-
dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
|
|
284
|
-
// (undocumented)
|
|
285
|
-
editorRef: React_2.RefObject<HTMLDivElement>;
|
|
286
|
-
// (undocumented)
|
|
287
|
-
editorState: EditorState;
|
|
288
|
-
// (undocumented)
|
|
289
|
-
errorReporter: ErrorReporter;
|
|
290
|
-
// (undocumented)
|
|
291
|
-
eventDispatcher: EventDispatcher;
|
|
292
|
-
// (undocumented)
|
|
293
|
-
experienceStore?: ExperienceStore;
|
|
294
|
-
// (undocumented)
|
|
295
|
-
formatFullWidthAppearance: (
|
|
296
|
-
appearance: EditorAppearance | undefined,
|
|
297
|
-
) => FULL_WIDTH_MODE;
|
|
298
|
-
// (undocumented)
|
|
299
|
-
getDirectEditorProps: (
|
|
300
|
-
state?: EditorState<any> | undefined,
|
|
301
|
-
) => DirectEditorProps;
|
|
302
|
-
// (undocumented)
|
|
303
|
-
getPlugins(
|
|
304
|
-
editorProps: EditorProps,
|
|
305
|
-
prevEditorProps?: EditorProps,
|
|
306
|
-
createAnalyticsEvent?: CreateUIAnalyticsEvent,
|
|
307
|
-
): EditorPlugin[];
|
|
308
|
-
// (undocumented)
|
|
309
|
-
handleAnalyticsEvent: FireAnalyticsCallback;
|
|
310
|
-
// (undocumented)
|
|
311
|
-
handleEditorViewRef: (node: HTMLDivElement) => void;
|
|
312
|
-
// (undocumented)
|
|
313
|
-
proseMirrorRenderedSeverity?: SEVERITY;
|
|
314
|
-
// (undocumented)
|
|
315
|
-
reconfigureState: (props: EditorViewProps) => void;
|
|
316
|
-
// (undocumented)
|
|
317
|
-
render(): JSX.Element;
|
|
318
|
-
// (undocumented)
|
|
319
|
-
resetEditorState: ({
|
|
320
|
-
doc,
|
|
321
|
-
shouldScrollToBottom,
|
|
322
|
-
}: {
|
|
323
|
-
doc: string;
|
|
324
|
-
shouldScrollToBottom: boolean;
|
|
325
|
-
}) => void;
|
|
326
|
-
// (undocumented)
|
|
327
|
-
transactionTracker: TransactionTracker;
|
|
328
|
-
// (undocumented)
|
|
329
|
-
get transactionTracking(): TransactionTracking;
|
|
330
|
-
// (undocumented)
|
|
331
|
-
UNSAFE_componentWillReceiveProps(nextProps: EditorViewProps): void;
|
|
332
|
-
// (undocumented)
|
|
333
|
-
validTransactionCount: number;
|
|
334
|
-
// (undocumented)
|
|
335
|
-
view?: EditorView;
|
|
336
|
-
}
|
|
258
|
+
export class BaseReactEditorView<T = {}> extends ReactEditorView_2<T> {}
|
|
337
259
|
|
|
338
260
|
// @public (undocumented)
|
|
339
261
|
type BeforeAndAfterToolbarComponents = {
|
|
@@ -460,22 +382,20 @@ interface CollabInviteToEditProps {
|
|
|
460
382
|
}
|
|
461
383
|
|
|
462
384
|
// @public (undocumented)
|
|
463
|
-
export class CollapsedEditor extends React_2.Component<Props,
|
|
385
|
+
export class CollapsedEditor extends React_2.Component<Props, State> {
|
|
464
386
|
// (undocumented)
|
|
465
387
|
componentDidUpdate(): void;
|
|
466
388
|
// (undocumented)
|
|
467
|
-
editorComponent?: Editor;
|
|
389
|
+
editorComponent?: Editor | EditorMigrationComponent | EditorNext;
|
|
468
390
|
// (undocumented)
|
|
469
391
|
handleEditorRef: (
|
|
470
392
|
editorRef?: Editor | undefined,
|
|
471
393
|
editorRefCallback?: any,
|
|
472
394
|
) => void;
|
|
473
395
|
// (undocumented)
|
|
474
|
-
|
|
475
|
-
// (undocumented)
|
|
476
|
-
shouldTriggerExpandEvent?: boolean;
|
|
396
|
+
previouslyExpanded?: boolean;
|
|
477
397
|
// (undocumented)
|
|
478
|
-
|
|
398
|
+
render(): JSX.Element;
|
|
479
399
|
}
|
|
480
400
|
|
|
481
401
|
// @public (undocumented)
|
|
@@ -686,53 +606,59 @@ type EditInsertedState = {
|
|
|
686
606
|
};
|
|
687
607
|
|
|
688
608
|
// @public (undocumented)
|
|
689
|
-
export class Editor extends React_2.Component<
|
|
609
|
+
export class Editor extends React_2.Component<
|
|
610
|
+
EditorProps,
|
|
611
|
+
ProviderFactoryState & PresetState
|
|
612
|
+
> {
|
|
690
613
|
constructor(props: EditorProps, context: Context);
|
|
691
|
-
// (undocumented)
|
|
692
614
|
componentDidMount(): void;
|
|
693
|
-
// (undocumented)
|
|
694
615
|
componentDidUpdate(prevProps: EditorProps): void;
|
|
695
|
-
// (undocumented)
|
|
696
616
|
componentWillUnmount(): void;
|
|
697
617
|
// (undocumented)
|
|
698
618
|
static contextTypes: {
|
|
699
619
|
editorActions: PropTypes.Requireable<object>;
|
|
700
620
|
};
|
|
701
|
-
// (undocumented)
|
|
702
621
|
static defaultProps: EditorProps;
|
|
703
|
-
// (undocumented)
|
|
622
|
+
// @deprecated (undocumented)
|
|
704
623
|
handleAnalyticsEvent: FireAnalyticsCallback;
|
|
705
|
-
// (undocumented)
|
|
624
|
+
// @deprecated (undocumented)
|
|
706
625
|
handleSave: (view: EditorView) => void;
|
|
707
|
-
// (undocumented)
|
|
626
|
+
// @deprecated (undocumented)
|
|
708
627
|
onEditorCreated(instance: {
|
|
709
628
|
view: EditorView;
|
|
710
629
|
eventDispatcher: EventDispatcher;
|
|
711
630
|
transformer?: Transformer_2<string>;
|
|
712
631
|
}): void;
|
|
713
|
-
// (undocumented)
|
|
632
|
+
// @deprecated (undocumented)
|
|
714
633
|
onEditorDestroyed(_instance: {
|
|
715
634
|
view: EditorView;
|
|
716
635
|
transformer?: Transformer_2<string>;
|
|
717
636
|
}): void;
|
|
718
|
-
// (undocumented)
|
|
719
|
-
prepareExtensionProvider:
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
>;
|
|
724
|
-
// (undocumented)
|
|
637
|
+
// @deprecated (undocumented)
|
|
638
|
+
prepareExtensionProvider: (
|
|
639
|
+
extensionProviders?: ExtensionProvidersProp | undefined,
|
|
640
|
+
) => ExtensionProvider<any> | undefined;
|
|
641
|
+
// @deprecated (undocumented)
|
|
725
642
|
prepareQuickInsertProvider: (
|
|
726
643
|
extensionProvider?: ExtensionProvider<any> | undefined,
|
|
727
644
|
quickInsert?: QuickInsertOptions | undefined,
|
|
728
645
|
) => Promise<QuickInsertProvider> | undefined;
|
|
729
646
|
// (undocumented)
|
|
730
647
|
static propTypes: {
|
|
731
|
-
minHeight: ({
|
|
648
|
+
minHeight: ({
|
|
649
|
+
appearance,
|
|
650
|
+
minHeight,
|
|
651
|
+
}: Pick<EditorProps, 'appearance' | 'minHeight'>) => Error | null;
|
|
732
652
|
};
|
|
653
|
+
// @deprecated (undocumented)
|
|
654
|
+
registerEditorForActions(
|
|
655
|
+
editorView: EditorView,
|
|
656
|
+
eventDispatcher: EventDispatcher,
|
|
657
|
+
contentTransformer?: Transformer_2<string>,
|
|
658
|
+
): void;
|
|
733
659
|
// (undocumented)
|
|
734
660
|
render(): jsx.JSX.Element;
|
|
735
|
-
// (undocumented)
|
|
661
|
+
// @deprecated (undocumented)
|
|
736
662
|
trackEditorActions(
|
|
737
663
|
editorActions: EditorActions & {
|
|
738
664
|
_contentRetrievalTracking?: {
|
|
@@ -755,6 +681,8 @@ export class Editor extends React_2.Component<EditorProps, State> {
|
|
|
755
681
|
};
|
|
756
682
|
};
|
|
757
683
|
};
|
|
684
|
+
// @deprecated (undocumented)
|
|
685
|
+
unregisterEditorFromActions(): void;
|
|
758
686
|
}
|
|
759
687
|
|
|
760
688
|
// @public (undocumented)
|
|
@@ -811,11 +739,84 @@ export class EditorActions<T = any> implements EditorActionsOptions<T> {
|
|
|
811
739
|
): boolean;
|
|
812
740
|
// (undocumented)
|
|
813
741
|
replaceSelection(
|
|
814
|
-
rawValue:
|
|
742
|
+
rawValue: Array<ReplaceRawValue> | ReplaceRawValue,
|
|
815
743
|
tryToReplace?: boolean,
|
|
816
744
|
): boolean;
|
|
817
745
|
}
|
|
818
746
|
|
|
747
|
+
// @public (undocumented)
|
|
748
|
+
interface EditorBaseProps
|
|
749
|
+
extends EditorPluginFeatureProps,
|
|
750
|
+
EditorProviderProps {
|
|
751
|
+
// (undocumented)
|
|
752
|
+
appearance?: EditorAppearance;
|
|
753
|
+
// (undocumented)
|
|
754
|
+
codeBlock?: CodeBlockOptions;
|
|
755
|
+
// (undocumented)
|
|
756
|
+
contentComponents?: ReactComponents;
|
|
757
|
+
// (undocumented)
|
|
758
|
+
contentTransformerProvider?: (schema: Schema) => Transformer_2<string>;
|
|
759
|
+
// (undocumented)
|
|
760
|
+
contextPanel?: ReactComponents;
|
|
761
|
+
// (undocumented)
|
|
762
|
+
defaultValue?: Node_2 | Object | string;
|
|
763
|
+
// (undocumented)
|
|
764
|
+
disabled?: boolean;
|
|
765
|
+
// (undocumented)
|
|
766
|
+
editorActions?: EditorActions;
|
|
767
|
+
// (undocumented)
|
|
768
|
+
errorReporterHandler?: ErrorReportingHandler;
|
|
769
|
+
// (undocumented)
|
|
770
|
+
extensionProviders?: ExtensionProvidersProp;
|
|
771
|
+
featureFlags?: {
|
|
772
|
+
[featureFlag: string]: boolean | string;
|
|
773
|
+
};
|
|
774
|
+
// @deprecated
|
|
775
|
+
inputSamplingLimit?: number;
|
|
776
|
+
// (undocumented)
|
|
777
|
+
maxHeight?: number;
|
|
778
|
+
// (undocumented)
|
|
779
|
+
minHeight?: number;
|
|
780
|
+
// (undocumented)
|
|
781
|
+
onCancel?: (editorView: EditorView) => void;
|
|
782
|
+
// (undocumented)
|
|
783
|
+
onChange?: EditorOnChangeHandler;
|
|
784
|
+
// (undocumented)
|
|
785
|
+
onDestroy?: () => void;
|
|
786
|
+
// (undocumented)
|
|
787
|
+
onEditorReady?: (editorActions: EditorActions) => void;
|
|
788
|
+
// (undocumented)
|
|
789
|
+
persistScrollGutter?: boolean;
|
|
790
|
+
// (undocumented)
|
|
791
|
+
placeholder?: string;
|
|
792
|
+
// (undocumented)
|
|
793
|
+
placeholderBracketHint?: string;
|
|
794
|
+
// (undocumented)
|
|
795
|
+
popupsBoundariesElement?: HTMLElement;
|
|
796
|
+
// (undocumented)
|
|
797
|
+
popupsMountPoint?: HTMLElement;
|
|
798
|
+
// (undocumented)
|
|
799
|
+
popupsScrollableElement?: HTMLElement;
|
|
800
|
+
// (undocumented)
|
|
801
|
+
primaryToolbarIconBefore?: ReactElement;
|
|
802
|
+
// (undocumented)
|
|
803
|
+
quickInsert?: QuickInsertOptions;
|
|
804
|
+
// (undocumented)
|
|
805
|
+
secondaryToolbarComponents?: ReactComponents;
|
|
806
|
+
// (undocumented)
|
|
807
|
+
shouldFocus?: boolean;
|
|
808
|
+
// (undocumented)
|
|
809
|
+
textFormatting?: TextFormattingOptions;
|
|
810
|
+
trackValidTransactions?:
|
|
811
|
+
| boolean
|
|
812
|
+
| {
|
|
813
|
+
samplingRate: number;
|
|
814
|
+
};
|
|
815
|
+
// (undocumented)
|
|
816
|
+
UNSAFE_useAnalyticsContext?: boolean;
|
|
817
|
+
useStickyToolbar?: UseStickyToolbarType;
|
|
818
|
+
}
|
|
819
|
+
|
|
819
820
|
// @public (undocumented)
|
|
820
821
|
interface EditorConfig {
|
|
821
822
|
// (undocumented)
|
|
@@ -882,6 +883,41 @@ export interface EditorInstance {
|
|
|
882
883
|
secondaryToolbarComponents: UIComponentFactory[];
|
|
883
884
|
}
|
|
884
885
|
|
|
886
|
+
// @public (undocumented)
|
|
887
|
+
export class EditorMigrationComponent extends React_2.Component<EditorProps> {
|
|
888
|
+
// (undocumented)
|
|
889
|
+
render(): JSX.Element;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
// @public (undocumented)
|
|
893
|
+
class EditorNext extends React_2.Component<EditorNextProps> {
|
|
894
|
+
constructor(props: EditorNextProps, context: Context);
|
|
895
|
+
// (undocumented)
|
|
896
|
+
static contextTypes: {
|
|
897
|
+
editorActions: PropTypes.Requireable<object>;
|
|
898
|
+
};
|
|
899
|
+
static defaultProps: EditorProps;
|
|
900
|
+
// (undocumented)
|
|
901
|
+
static propTypes: {
|
|
902
|
+
preset: ({ preset }: Pick<EditorNextProps, 'preset'>) => Error | null;
|
|
903
|
+
minHeight: ({
|
|
904
|
+
appearance,
|
|
905
|
+
minHeight,
|
|
906
|
+
}: Pick<EditorProps, 'appearance' | 'minHeight'>) => Error | null;
|
|
907
|
+
};
|
|
908
|
+
// (undocumented)
|
|
909
|
+
render(): jsx.JSX.Element;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
// @public (undocumented)
|
|
913
|
+
interface EditorNextProps
|
|
914
|
+
extends EditorBaseProps,
|
|
915
|
+
EditorSharedPropsWithPlugins,
|
|
916
|
+
EditorProviderProps {
|
|
917
|
+
// (undocumented)
|
|
918
|
+
preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
|
|
919
|
+
}
|
|
920
|
+
|
|
885
921
|
// @public (undocumented)
|
|
886
922
|
type EditorOnChangeHandler = (
|
|
887
923
|
editorView: EditorView,
|
|
@@ -894,8 +930,6 @@ export { EditorPlugin };
|
|
|
894
930
|
|
|
895
931
|
// @public (undocumented)
|
|
896
932
|
interface EditorPluginFeatureProps {
|
|
897
|
-
// (undocumented)
|
|
898
|
-
allowAnalyticsGASV3?: boolean;
|
|
899
933
|
// (undocumented)
|
|
900
934
|
allowBlockType?: BlockTypePluginOptions['allowBlockType'];
|
|
901
935
|
// (undocumented)
|
|
@@ -938,21 +972,13 @@ interface EditorPluginFeatureProps {
|
|
|
938
972
|
menuDisabled: boolean;
|
|
939
973
|
};
|
|
940
974
|
// (undocumented)
|
|
941
|
-
allowTables?: PluginConfig | boolean;
|
|
942
|
-
// (undocumented)
|
|
943
975
|
allowTasksAndDecisions?: boolean;
|
|
944
976
|
// (undocumented)
|
|
945
977
|
allowTemplatePlaceholders?: PlaceholderTextOptions | boolean;
|
|
946
978
|
// (undocumented)
|
|
947
979
|
allowTextAlignment?: boolean;
|
|
948
|
-
// (undocumented)
|
|
949
|
-
allowTextColor?: TextColorPluginConfig | boolean;
|
|
950
|
-
// (undocumented)
|
|
951
|
-
allowUndoRedoButtons?: boolean;
|
|
952
980
|
autoScrollIntoView?: boolean;
|
|
953
981
|
// (undocumented)
|
|
954
|
-
collabEdit?: CollabEditOptions;
|
|
955
|
-
// (undocumented)
|
|
956
982
|
elementBrowser?: {
|
|
957
983
|
showModal?: boolean;
|
|
958
984
|
replacePlusMenu?: boolean;
|
|
@@ -964,29 +990,13 @@ interface EditorPluginFeatureProps {
|
|
|
964
990
|
// (undocumented)
|
|
965
991
|
feedbackInfo?: FeedbackInfo;
|
|
966
992
|
// (undocumented)
|
|
967
|
-
insertMenuItems?: MenuItem[];
|
|
968
|
-
linking?: LinkingOptions;
|
|
969
|
-
// (undocumented)
|
|
970
993
|
maxContentSize?: number;
|
|
971
994
|
// (undocumented)
|
|
972
|
-
media?: MediaOptions;
|
|
973
|
-
// (undocumented)
|
|
974
995
|
mention?: MentionPluginConfig;
|
|
975
996
|
// @deprecated
|
|
976
997
|
mentionInsertDisplayName?: boolean;
|
|
977
998
|
// (undocumented)
|
|
978
|
-
onSave?: (editorView: EditorView) => void;
|
|
979
|
-
performanceTracking?: PerformanceTracking;
|
|
980
|
-
// (undocumented)
|
|
981
|
-
primaryToolbarComponents?: PrimaryToolbarComponents;
|
|
982
|
-
// (undocumented)
|
|
983
|
-
sanitizePrivateContent?: boolean;
|
|
984
|
-
// (undocumented)
|
|
985
999
|
saveOnEnter?: boolean;
|
|
986
|
-
// @deprecated (undocumented)
|
|
987
|
-
smartLinks?: CardOptions;
|
|
988
|
-
// @deprecated (undocumented)
|
|
989
|
-
UNSAFE_cards?: CardOptions;
|
|
990
1000
|
// (undocumented)
|
|
991
1001
|
uploadErrorHandler?: (state: MediaState) => void;
|
|
992
1002
|
// (undocumented)
|
|
@@ -1008,79 +1018,14 @@ type EditorProduct = 'bitbucket' | 'confluence' | 'jira' | 'stride' | undefined;
|
|
|
1008
1018
|
|
|
1009
1019
|
// @public (undocumented)
|
|
1010
1020
|
export interface EditorProps
|
|
1011
|
-
extends
|
|
1021
|
+
extends EditorBaseProps,
|
|
1022
|
+
EditorPluginFeatureProps,
|
|
1023
|
+
EditorSharedPropsWithPlugins,
|
|
1012
1024
|
EditorProviderProps {
|
|
1013
|
-
// (undocumented)
|
|
1014
|
-
appearance?: EditorAppearance;
|
|
1015
|
-
// (undocumented)
|
|
1016
|
-
codeBlock?: CodeBlockOptions;
|
|
1017
|
-
// (undocumented)
|
|
1018
|
-
contentComponents?: ReactComponents;
|
|
1019
|
-
// (undocumented)
|
|
1020
|
-
contentTransformerProvider?: (schema: Schema) => Transformer_2<string>;
|
|
1021
|
-
// (undocumented)
|
|
1022
|
-
contextPanel?: ReactComponents;
|
|
1023
1025
|
// @deprecated (undocumented)
|
|
1024
1026
|
dangerouslyAppendPlugins?: {
|
|
1025
1027
|
__plugins: EditorPlugin[];
|
|
1026
1028
|
};
|
|
1027
|
-
// (undocumented)
|
|
1028
|
-
defaultValue?: Node_2 | Object | string;
|
|
1029
|
-
// (undocumented)
|
|
1030
|
-
disabled?: boolean;
|
|
1031
|
-
// (undocumented)
|
|
1032
|
-
editorActions?: EditorActions;
|
|
1033
|
-
// (undocumented)
|
|
1034
|
-
errorReporterHandler?: ErrorReportingHandler;
|
|
1035
|
-
// (undocumented)
|
|
1036
|
-
extensionProviders?: ExtensionProvidersProp;
|
|
1037
|
-
featureFlags?: {
|
|
1038
|
-
[featureFlag: string]: boolean | string;
|
|
1039
|
-
};
|
|
1040
|
-
// @deprecated
|
|
1041
|
-
inputSamplingLimit?: number;
|
|
1042
|
-
// (undocumented)
|
|
1043
|
-
maxHeight?: number;
|
|
1044
|
-
// (undocumented)
|
|
1045
|
-
minHeight?: number;
|
|
1046
|
-
// (undocumented)
|
|
1047
|
-
onCancel?: (editorView: EditorView) => void;
|
|
1048
|
-
// (undocumented)
|
|
1049
|
-
onChange?: EditorOnChangeHandler;
|
|
1050
|
-
// (undocumented)
|
|
1051
|
-
onDestroy?: () => void;
|
|
1052
|
-
// (undocumented)
|
|
1053
|
-
onEditorReady?: (editorActions: EditorActions) => void;
|
|
1054
|
-
// (undocumented)
|
|
1055
|
-
persistScrollGutter?: boolean;
|
|
1056
|
-
// (undocumented)
|
|
1057
|
-
placeholder?: string;
|
|
1058
|
-
// (undocumented)
|
|
1059
|
-
placeholderBracketHint?: string;
|
|
1060
|
-
// (undocumented)
|
|
1061
|
-
popupsBoundariesElement?: HTMLElement;
|
|
1062
|
-
// (undocumented)
|
|
1063
|
-
popupsMountPoint?: HTMLElement;
|
|
1064
|
-
// (undocumented)
|
|
1065
|
-
popupsScrollableElement?: HTMLElement;
|
|
1066
|
-
// (undocumented)
|
|
1067
|
-
primaryToolbarIconBefore?: ReactElement;
|
|
1068
|
-
// (undocumented)
|
|
1069
|
-
quickInsert?: QuickInsertOptions;
|
|
1070
|
-
// (undocumented)
|
|
1071
|
-
secondaryToolbarComponents?: ReactComponents;
|
|
1072
|
-
// (undocumented)
|
|
1073
|
-
shouldFocus?: boolean;
|
|
1074
|
-
// (undocumented)
|
|
1075
|
-
textFormatting?: TextFormattingOptions;
|
|
1076
|
-
trackValidTransactions?:
|
|
1077
|
-
| boolean
|
|
1078
|
-
| {
|
|
1079
|
-
samplingRate: number;
|
|
1080
|
-
};
|
|
1081
|
-
// (undocumented)
|
|
1082
|
-
UNSAFE_useAnalyticsContext?: boolean;
|
|
1083
|
-
useStickyToolbar?: RefObject<HTMLElement> | boolean;
|
|
1084
1029
|
}
|
|
1085
1030
|
|
|
1086
1031
|
// @public (undocumented)
|
|
@@ -1118,8 +1063,6 @@ interface EditorProviderProps {
|
|
|
1118
1063
|
// (undocumented)
|
|
1119
1064
|
collabEditProvider?: Providers['collabEditProvider'];
|
|
1120
1065
|
// (undocumented)
|
|
1121
|
-
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
1122
|
-
// (undocumented)
|
|
1123
1066
|
emojiProvider?: Providers['emojiProvider'];
|
|
1124
1067
|
// (undocumented)
|
|
1125
1068
|
legacyImageUploadProvider?: Providers['imageUploadProvider'];
|
|
@@ -1135,6 +1078,38 @@ interface EditorProviderProps {
|
|
|
1135
1078
|
taskDecisionProvider?: Promise<TaskDecisionProvider>;
|
|
1136
1079
|
}
|
|
1137
1080
|
|
|
1081
|
+
// @public (undocumented)
|
|
1082
|
+
interface EditorSharedPropsWithPlugins {
|
|
1083
|
+
// (undocumented)
|
|
1084
|
+
allowAnalyticsGASV3?: boolean;
|
|
1085
|
+
// (undocumented)
|
|
1086
|
+
allowTables?: PluginConfig | boolean;
|
|
1087
|
+
// (undocumented)
|
|
1088
|
+
allowTextColor?: TextColorPluginConfig | boolean;
|
|
1089
|
+
// (undocumented)
|
|
1090
|
+
allowUndoRedoButtons?: boolean;
|
|
1091
|
+
// (undocumented)
|
|
1092
|
+
collabEdit?: CollabEditOptions;
|
|
1093
|
+
// (undocumented)
|
|
1094
|
+
contextIdentifierProvider?: Promise<ContextIdentifierProvider>;
|
|
1095
|
+
// (undocumented)
|
|
1096
|
+
insertMenuItems?: MenuItem[];
|
|
1097
|
+
linking?: LinkingOptions;
|
|
1098
|
+
// (undocumented)
|
|
1099
|
+
media?: MediaOptions;
|
|
1100
|
+
// (undocumented)
|
|
1101
|
+
onSave?: (editorView: EditorView) => void;
|
|
1102
|
+
performanceTracking?: PerformanceTracking;
|
|
1103
|
+
// (undocumented)
|
|
1104
|
+
primaryToolbarComponents?: PrimaryToolbarComponents;
|
|
1105
|
+
// (undocumented)
|
|
1106
|
+
sanitizePrivateContent?: boolean;
|
|
1107
|
+
// @deprecated (undocumented)
|
|
1108
|
+
smartLinks?: CardOptions;
|
|
1109
|
+
// @deprecated (undocumented)
|
|
1110
|
+
UNSAFE_cards?: CardOptions;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1138
1113
|
// @public (undocumented)
|
|
1139
1114
|
interface EditorViewProps {
|
|
1140
1115
|
// (undocumented)
|
|
@@ -1144,7 +1119,7 @@ interface EditorViewProps {
|
|
|
1144
1119
|
// (undocumented)
|
|
1145
1120
|
disabled?: boolean;
|
|
1146
1121
|
// (undocumented)
|
|
1147
|
-
editorProps: EditorProps;
|
|
1122
|
+
editorProps: EditorNextProps | EditorProps;
|
|
1148
1123
|
// (undocumented)
|
|
1149
1124
|
experienceStore?: ExperienceStore;
|
|
1150
1125
|
// (undocumented)
|
|
@@ -1164,6 +1139,8 @@ interface EditorViewProps {
|
|
|
1164
1139
|
// (undocumented)
|
|
1165
1140
|
portalProviderAPI: PortalProviderAPI;
|
|
1166
1141
|
// (undocumented)
|
|
1142
|
+
preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
|
|
1143
|
+
// (undocumented)
|
|
1167
1144
|
providerFactory: ProviderFactory;
|
|
1168
1145
|
// (undocumented)
|
|
1169
1146
|
render?: (props: {
|
|
@@ -1239,17 +1216,6 @@ type FindReplaceOptions = {
|
|
|
1239
1216
|
allowMatchCase?: boolean;
|
|
1240
1217
|
};
|
|
1241
1218
|
|
|
1242
|
-
// @public (undocumented)
|
|
1243
|
-
type FireAnalyticsCallback = <T>(
|
|
1244
|
-
payload: FireAnalyticsEventPayload<T>,
|
|
1245
|
-
) => undefined | void;
|
|
1246
|
-
|
|
1247
|
-
// @public (undocumented)
|
|
1248
|
-
type FireAnalyticsEventPayload<T = void> = {
|
|
1249
|
-
payload: AnalyticsEventPayload<T>;
|
|
1250
|
-
channel?: string;
|
|
1251
|
-
};
|
|
1252
|
-
|
|
1253
1219
|
export { FloatingToolbarButton };
|
|
1254
1220
|
|
|
1255
1221
|
export { FloatingToolbarColorPicker };
|
|
@@ -1352,6 +1318,8 @@ interface HyperlinkPluginOptions {
|
|
|
1352
1318
|
// (undocumented)
|
|
1353
1319
|
cardOptions?: CardOptions;
|
|
1354
1320
|
// (undocumented)
|
|
1321
|
+
editorAppearance?: EditorAppearance;
|
|
1322
|
+
// (undocumented)
|
|
1355
1323
|
linkPicker?: LinkPickerOptions;
|
|
1356
1324
|
// (undocumented)
|
|
1357
1325
|
platform?: 'mobile' | 'web';
|
|
@@ -1366,6 +1334,8 @@ export interface HyperlinkState {
|
|
|
1366
1334
|
// (undocumented)
|
|
1367
1335
|
canInsertLink: boolean;
|
|
1368
1336
|
// (undocumented)
|
|
1337
|
+
editorAppearance?: EditorAppearance;
|
|
1338
|
+
// (undocumented)
|
|
1369
1339
|
inputMethod?: INPUT_METHOD;
|
|
1370
1340
|
// (undocumented)
|
|
1371
1341
|
searchSessionId?: string;
|
|
@@ -1423,7 +1393,9 @@ interface InputTracking {
|
|
|
1423
1393
|
severityDegradedThreshold?: number;
|
|
1424
1394
|
severityNormalThreshold?: number;
|
|
1425
1395
|
slowThreshold?: number;
|
|
1396
|
+
trackRenderingTime?: boolean;
|
|
1426
1397
|
trackSeverity?: boolean;
|
|
1398
|
+
trackSingleKeypress?: boolean;
|
|
1427
1399
|
}
|
|
1428
1400
|
|
|
1429
1401
|
// @public (undocumented)
|
|
@@ -1699,8 +1671,9 @@ export interface MediaOptions {
|
|
|
1699
1671
|
// @public (undocumented)
|
|
1700
1672
|
export const mediaPlugin: NextEditorPlugin<
|
|
1701
1673
|
'media',
|
|
1702
|
-
|
|
1703
|
-
|
|
1674
|
+
{
|
|
1675
|
+
pluginConfiguration: MediaOptions | undefined;
|
|
1676
|
+
}
|
|
1704
1677
|
>;
|
|
1705
1678
|
|
|
1706
1679
|
// @public (undocumented)
|
|
@@ -1775,8 +1748,6 @@ interface MediaPluginState {
|
|
|
1775
1748
|
// (undocumented)
|
|
1776
1749
|
mediaClientConfig?: MediaClientConfig;
|
|
1777
1750
|
// (undocumented)
|
|
1778
|
-
mediaGroupNodes: Record<string, any>;
|
|
1779
|
-
// (undocumented)
|
|
1780
1751
|
mediaNodes: MediaNodeWithPosHandler[];
|
|
1781
1752
|
// (undocumented)
|
|
1782
1753
|
mediaOptions?: MediaOptions;
|
|
@@ -1798,16 +1769,12 @@ interface MediaPluginState {
|
|
|
1798
1769
|
// (undocumented)
|
|
1799
1770
|
pickers: PickerFacade[];
|
|
1800
1771
|
// (undocumented)
|
|
1801
|
-
removeNodeById: (state: MediaState) => void;
|
|
1802
|
-
// (undocumented)
|
|
1803
1772
|
removeSelectedMediaContainer: () => boolean;
|
|
1804
1773
|
// (undocumented)
|
|
1805
1774
|
selectedMediaContainerNode: () => Node_2 | undefined;
|
|
1806
1775
|
// (undocumented)
|
|
1807
1776
|
setBrowseFn: (browseFn: () => void) => void;
|
|
1808
1777
|
// (undocumented)
|
|
1809
|
-
setMediaGroupNode: (node: Node_2<any>, getPos: () => number) => void;
|
|
1810
|
-
// (undocumented)
|
|
1811
1778
|
setMediaProvider: (mediaProvider?: Promise<MediaProvider_2>) => Promise<void>;
|
|
1812
1779
|
// (undocumented)
|
|
1813
1780
|
setView(view: EditorView): void;
|
|
@@ -1828,10 +1795,9 @@ interface MediaPluginState {
|
|
|
1828
1795
|
// (undocumented)
|
|
1829
1796
|
updateElement(): void;
|
|
1830
1797
|
// (undocumented)
|
|
1831
|
-
|
|
1798
|
+
updateMediaSingleNodeAttrs: (
|
|
1832
1799
|
id: string,
|
|
1833
1800
|
attrs: object,
|
|
1834
|
-
isMediaSingle: boolean,
|
|
1835
1801
|
) => boolean | undefined;
|
|
1836
1802
|
// (undocumented)
|
|
1837
1803
|
uploadMediaClientConfig?: MediaClientConfig;
|
|
@@ -1914,7 +1880,7 @@ export const mentionPluginKey: PluginKey<MentionPluginState, any>;
|
|
|
1914
1880
|
|
|
1915
1881
|
// @public (undocumented)
|
|
1916
1882
|
export type MentionPluginState = {
|
|
1917
|
-
mentionProvider?: MentionProvider_2
|
|
1883
|
+
mentionProvider?: MentionProvider_2;
|
|
1918
1884
|
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
1919
1885
|
mentions?: Array<MentionDescription>;
|
|
1920
1886
|
};
|
|
@@ -2015,7 +1981,6 @@ interface PanelPluginConfig {
|
|
|
2015
1981
|
|
|
2016
1982
|
// @public (undocumented)
|
|
2017
1983
|
type PastePluginOptions = {
|
|
2018
|
-
plainTextPasteLinkification?: boolean;
|
|
2019
1984
|
cardOptions?: CardOptions;
|
|
2020
1985
|
sanitizePrivateContent?: boolean;
|
|
2021
1986
|
};
|
|
@@ -2181,6 +2146,11 @@ export { PresenceProvider };
|
|
|
2181
2146
|
|
|
2182
2147
|
export { PresenceResource };
|
|
2183
2148
|
|
|
2149
|
+
// @public (undocumented)
|
|
2150
|
+
type PresetState = {
|
|
2151
|
+
preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>;
|
|
2152
|
+
};
|
|
2153
|
+
|
|
2184
2154
|
// @public (undocumented)
|
|
2185
2155
|
type PrimaryToolbarComponents =
|
|
2186
2156
|
| BeforeAndAfterToolbarComponents
|
|
@@ -2259,6 +2229,12 @@ type ProseMirrorRenderedTracking = {
|
|
|
2259
2229
|
severityDegradedThreshold: number;
|
|
2260
2230
|
};
|
|
2261
2231
|
|
|
2232
|
+
// @public (undocumented)
|
|
2233
|
+
type ProviderFactoryState = {
|
|
2234
|
+
extensionProvider?: ExtensionProvider;
|
|
2235
|
+
quickInsertProvider?: Promise<QuickInsertProvider>;
|
|
2236
|
+
};
|
|
2237
|
+
|
|
2262
2238
|
export { QuickInsertActionInsert };
|
|
2263
2239
|
|
|
2264
2240
|
// @public (undocumented)
|
|
@@ -2309,14 +2285,99 @@ export { QuickInsertProvider };
|
|
|
2309
2285
|
type ReactComponents = ReactElement<any> | ReactElement<any>[];
|
|
2310
2286
|
|
|
2311
2287
|
// @public (undocumented)
|
|
2312
|
-
export const ReactEditorView:
|
|
2288
|
+
export const ReactEditorView: FC<
|
|
2313
2289
|
WithIntlProps<EditorViewProps & WrappedComponentProps<'intl'>>
|
|
2314
2290
|
> & {
|
|
2315
|
-
WrappedComponent:
|
|
2291
|
+
WrappedComponent: ComponentType<
|
|
2316
2292
|
EditorViewProps & WrappedComponentProps<'intl'>
|
|
2317
2293
|
>;
|
|
2318
2294
|
};
|
|
2319
2295
|
|
|
2296
|
+
// @public (undocumented)
|
|
2297
|
+
class ReactEditorView_2<T = {}> extends React_2.Component<
|
|
2298
|
+
EditorViewProps & WrappedComponentProps & T,
|
|
2299
|
+
{},
|
|
2300
|
+
EditorReactContext
|
|
2301
|
+
> {
|
|
2302
|
+
constructor(
|
|
2303
|
+
props: EditorViewProps & WrappedComponentProps & T,
|
|
2304
|
+
context: EditorReactContext,
|
|
2305
|
+
);
|
|
2306
|
+
// (undocumented)
|
|
2307
|
+
blur: () => void;
|
|
2308
|
+
// (undocumented)
|
|
2309
|
+
componentDidMount(): void;
|
|
2310
|
+
componentWillUnmount(): void;
|
|
2311
|
+
// (undocumented)
|
|
2312
|
+
config: EditorConfig;
|
|
2313
|
+
// (undocumented)
|
|
2314
|
+
contentTransformer?: Transformer_2<string>;
|
|
2315
|
+
// (undocumented)
|
|
2316
|
+
static contextTypes: {
|
|
2317
|
+
getAtlaskitAnalyticsEventHandlers: PropTypes.Requireable<
|
|
2318
|
+
(...args: any[]) => any
|
|
2319
|
+
>;
|
|
2320
|
+
};
|
|
2321
|
+
// (undocumented)
|
|
2322
|
+
createEditorState: (options: CreateEditorStateOptions) => EditorState<any>;
|
|
2323
|
+
// (undocumented)
|
|
2324
|
+
dispatch: Dispatch;
|
|
2325
|
+
// (undocumented)
|
|
2326
|
+
dispatchAnalyticsEvent: (payload: AnalyticsEventPayload) => void;
|
|
2327
|
+
// (undocumented)
|
|
2328
|
+
editorRef: React_2.RefObject<HTMLDivElement>;
|
|
2329
|
+
// (undocumented)
|
|
2330
|
+
editorState: EditorState;
|
|
2331
|
+
// (undocumented)
|
|
2332
|
+
errorReporter: ErrorReporter;
|
|
2333
|
+
// (undocumented)
|
|
2334
|
+
eventDispatcher: EventDispatcher;
|
|
2335
|
+
// (undocumented)
|
|
2336
|
+
experienceStore?: ExperienceStore;
|
|
2337
|
+
// (undocumented)
|
|
2338
|
+
formatFullWidthAppearance: (
|
|
2339
|
+
appearance: EditorAppearance | undefined,
|
|
2340
|
+
) => FULL_WIDTH_MODE;
|
|
2341
|
+
// (undocumented)
|
|
2342
|
+
getDirectEditorProps: (
|
|
2343
|
+
state?: EditorState<any> | undefined,
|
|
2344
|
+
) => DirectEditorProps;
|
|
2345
|
+
// (undocumented)
|
|
2346
|
+
getEditorState: () => EditorState<any> | undefined;
|
|
2347
|
+
// (undocumented)
|
|
2348
|
+
getPlugins(
|
|
2349
|
+
preset: EditorPresetBuilder<string[], AllEditorPresetPluginTypes[]>,
|
|
2350
|
+
): EditorPlugin[];
|
|
2351
|
+
// (undocumented)
|
|
2352
|
+
handleAnalyticsEvent: FireAnalyticsCallback;
|
|
2353
|
+
// (undocumented)
|
|
2354
|
+
handleEditorViewRef: (node: HTMLDivElement) => void;
|
|
2355
|
+
// (undocumented)
|
|
2356
|
+
proseMirrorRenderedSeverity?: SEVERITY;
|
|
2357
|
+
// (undocumented)
|
|
2358
|
+
reconfigureState(props: EditorViewProps): void;
|
|
2359
|
+
// (undocumented)
|
|
2360
|
+
render(): JSX.Element;
|
|
2361
|
+
// (undocumented)
|
|
2362
|
+
resetEditorState: ({
|
|
2363
|
+
doc,
|
|
2364
|
+
shouldScrollToBottom,
|
|
2365
|
+
}: {
|
|
2366
|
+
doc: string;
|
|
2367
|
+
shouldScrollToBottom: boolean;
|
|
2368
|
+
}) => void;
|
|
2369
|
+
// (undocumented)
|
|
2370
|
+
transactionTracker: TransactionTracker;
|
|
2371
|
+
// (undocumented)
|
|
2372
|
+
get transactionTracking(): TransactionTracking;
|
|
2373
|
+
// (undocumented)
|
|
2374
|
+
UNSAFE_componentWillReceiveProps(nextProps: EditorViewProps): void;
|
|
2375
|
+
// (undocumented)
|
|
2376
|
+
validTransactionCount: number;
|
|
2377
|
+
// (undocumented)
|
|
2378
|
+
view?: EditorView;
|
|
2379
|
+
}
|
|
2380
|
+
|
|
2320
2381
|
// @public (undocumented)
|
|
2321
2382
|
interface RectData {
|
|
2322
2383
|
// (undocumented)
|
|
@@ -2412,16 +2473,10 @@ interface SimpleEntry {
|
|
|
2412
2473
|
}
|
|
2413
2474
|
|
|
2414
2475
|
// @public (undocumented)
|
|
2415
|
-
|
|
2416
|
-
extensionProvider?: ExtensionProvider;
|
|
2417
|
-
quickInsertProvider?: Promise<QuickInsertProvider>;
|
|
2418
|
-
};
|
|
2476
|
+
interface State {}
|
|
2419
2477
|
|
|
2420
2478
|
// @public (undocumented)
|
|
2421
|
-
interface State_2 {
|
|
2422
|
-
|
|
2423
|
-
// @public (undocumented)
|
|
2424
|
-
interface State_3 {
|
|
2479
|
+
interface State_2 {
|
|
2425
2480
|
// (undocumented)
|
|
2426
2481
|
jiraIssueCollectorScriptLoading: boolean;
|
|
2427
2482
|
// (undocumented)
|
|
@@ -2693,7 +2748,7 @@ export const toggleUnderlineWithAnalytics: ({
|
|
|
2693
2748
|
}) => Command;
|
|
2694
2749
|
|
|
2695
2750
|
// @public (undocumented)
|
|
2696
|
-
export class ToolbarFeedback extends PureComponent<Props_3,
|
|
2751
|
+
export class ToolbarFeedback extends PureComponent<Props_3, State_2> {
|
|
2697
2752
|
constructor(props: Props_3);
|
|
2698
2753
|
// (undocumented)
|
|
2699
2754
|
static contextTypes: {
|
|
@@ -2704,7 +2759,7 @@ export class ToolbarFeedback extends PureComponent<Props_3, State_3> {
|
|
|
2704
2759
|
// (undocumented)
|
|
2705
2760
|
showJiraCollectorDialogCallback?: () => void;
|
|
2706
2761
|
// (undocumented)
|
|
2707
|
-
state:
|
|
2762
|
+
state: State_2;
|
|
2708
2763
|
}
|
|
2709
2764
|
|
|
2710
2765
|
// @public (undocumented)
|
|
@@ -2816,6 +2871,14 @@ export const updateStatusWithAnalytics: (
|
|
|
2816
2871
|
status?: StatusType | undefined,
|
|
2817
2872
|
) => Command;
|
|
2818
2873
|
|
|
2874
|
+
// @public (undocumented)
|
|
2875
|
+
type UseStickyToolbarType =
|
|
2876
|
+
| RefObject<HTMLElement>
|
|
2877
|
+
| boolean
|
|
2878
|
+
| {
|
|
2879
|
+
offsetTop: number;
|
|
2880
|
+
};
|
|
2881
|
+
|
|
2819
2882
|
// @public (undocumented)
|
|
2820
2883
|
export const version: string;
|
|
2821
2884
|
|
|
@@ -2882,8 +2945,8 @@ export { WithPluginState };
|
|
|
2882
2945
|
|
|
2883
2946
|
```json
|
|
2884
2947
|
{
|
|
2885
|
-
"@atlaskit/link-provider": "^1.
|
|
2886
|
-
"@atlaskit/media-core": "^34.0.
|
|
2948
|
+
"@atlaskit/link-provider": "^1.5.0",
|
|
2949
|
+
"@atlaskit/media-core": "^34.0.2",
|
|
2887
2950
|
"react": "^16.8.0",
|
|
2888
2951
|
"react-dom": "^16.8.0",
|
|
2889
2952
|
"react-intl-next": "npm:react-intl@^5.18.1"
|