@atlaskit/editor-core 188.0.9 → 188.0.12
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/actions/index.js +4 -5
- package/dist/cjs/composable-editor/editor-internal.js +3 -3
- package/dist/cjs/composable-editor/editor.js +4 -4
- package/dist/cjs/composable-editor/hooks/useEditorMeasuresConstructor.js +1 -1
- package/dist/cjs/composable-editor/hooks/useMeasureEditorMountTime.js +3 -3
- package/dist/cjs/composable-editor/utils/editorMeasureTTICallback.js +2 -2
- package/dist/cjs/composable-editor/utils/getProvidersFromEditorProps.js +1 -1
- package/dist/cjs/composable-editor/utils/sendDurationAnalytics.js +2 -2
- package/dist/cjs/composable-editor/utils/trackEditorActions.js +2 -2
- package/dist/cjs/create-editor/ErrorBoundary.js +6 -8
- package/dist/cjs/create-editor/ReactEditorView.js +2 -4
- package/dist/cjs/create-editor/ReactEditorViewContext.js +1 -2
- package/dist/cjs/create-editor/ReactEditorViewInternal.js +30 -31
- package/dist/cjs/create-editor/ReactEditorViewNext.js +1 -2
- package/dist/cjs/create-editor/WithEditorView.js +2 -3
- package/dist/cjs/create-editor/consts.js +3 -6
- package/dist/cjs/create-editor/feature-flags-from-props.js +2 -2
- package/dist/cjs/create-editor/messages.js +2 -3
- package/dist/cjs/editor.js +1 -2
- package/dist/cjs/extensibility.js +3 -5
- package/dist/cjs/i18n/cs.js +2 -3
- package/dist/cjs/i18n/da.js +2 -3
- package/dist/cjs/i18n/de.js +2 -3
- package/dist/cjs/i18n/en.js +2 -3
- package/dist/cjs/i18n/en_GB.js +2 -3
- package/dist/cjs/i18n/en_ZZ.js +2 -3
- package/dist/cjs/i18n/es.js +2 -3
- package/dist/cjs/i18n/et.js +2 -3
- package/dist/cjs/i18n/fi.js +2 -3
- package/dist/cjs/i18n/fr.js +2 -3
- package/dist/cjs/i18n/hu.js +2 -3
- package/dist/cjs/i18n/is.js +2 -3
- package/dist/cjs/i18n/it.js +2 -3
- package/dist/cjs/i18n/ja.js +2 -3
- package/dist/cjs/i18n/ko.js +2 -3
- package/dist/cjs/i18n/languages.js +2 -3
- package/dist/cjs/i18n/nb.js +2 -3
- package/dist/cjs/i18n/nl.js +2 -3
- package/dist/cjs/i18n/pl.js +2 -3
- package/dist/cjs/i18n/pt_BR.js +2 -3
- package/dist/cjs/i18n/pt_PT.js +2 -3
- package/dist/cjs/i18n/ro.js +2 -3
- package/dist/cjs/i18n/ru.js +2 -3
- package/dist/cjs/i18n/sk.js +2 -3
- package/dist/cjs/i18n/sv.js +2 -3
- package/dist/cjs/i18n/th.js +2 -3
- package/dist/cjs/i18n/tr.js +2 -3
- package/dist/cjs/i18n/uk.js +2 -3
- package/dist/cjs/i18n/vi.js +2 -3
- package/dist/cjs/i18n/zh.js +2 -3
- package/dist/cjs/i18n/zh_TW.js +2 -3
- package/dist/cjs/labs/CollapsedEditor/index.js +2 -3
- package/dist/cjs/labs/EditorWithActions/index.js +1 -2
- package/dist/cjs/messages.js +1 -2
- package/dist/cjs/nodeviews/context-adapter.js +1 -2
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +1 -2
- package/dist/cjs/plugins/alignment/commands/index.js +3 -5
- package/dist/cjs/plugins/alignment/index.js +2 -4
- package/dist/cjs/plugins/alignment/pm-plugins/main.js +1 -2
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/icon-map.js +2 -3
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +7 -9
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/messages.js +2 -3
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/styles.js +3 -6
- package/dist/cjs/plugins/alignment/utils/index.js +2 -3
- package/dist/cjs/plugins/analytics/consts.js +2 -4
- package/dist/cjs/plugins/analytics/index.js +2 -4
- package/dist/cjs/plugins/analytics/plugin-key.js +1 -2
- package/dist/cjs/plugins/analytics/plugin.js +6 -7
- package/dist/cjs/plugins/analytics/utils.js +1 -1
- package/dist/cjs/plugins/annotation/commands/index.js +11 -21
- package/dist/cjs/plugins/annotation/commands/transform.js +2 -3
- package/dist/cjs/plugins/annotation/index.js +1 -2
- package/dist/cjs/plugins/annotation/nodeviews/index.js +3 -5
- package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +2 -3
- package/dist/cjs/plugins/annotation/pm-plugins/plugin-factory.js +2 -4
- package/dist/cjs/plugins/annotation/pm-plugins/reducer.js +1 -2
- package/dist/cjs/plugins/annotation/pm-plugins/types.js +2 -3
- package/dist/cjs/plugins/annotation/toolbar.js +3 -5
- package/dist/cjs/plugins/annotation/types.js +3 -5
- package/dist/cjs/plugins/annotation/ui/AnnotationViewWrapper.js +2 -3
- package/dist/cjs/plugins/annotation/update-provider.js +2 -3
- package/dist/cjs/plugins/annotation/utils.js +10 -20
- package/dist/cjs/plugins/avatar-group/index.js +2 -3
- package/dist/cjs/plugins/avatar-group/messages.js +2 -3
- package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +1 -2
- package/dist/cjs/plugins/before-primaryToolbar/index.js +1 -2
- package/dist/cjs/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +2 -3
- package/dist/cjs/plugins/better-type-history/index.js +1 -2
- package/dist/cjs/plugins/better-type-history/pm-plugins/main.js +2 -3
- package/dist/cjs/plugins/better-type-history/pm-plugins/plugin-key.js +1 -2
- package/dist/cjs/plugins/border/index.js +1 -2
- package/dist/cjs/plugins/breakout/constants.js +2 -3
- package/dist/cjs/plugins/breakout/index.js +3 -4
- package/dist/cjs/plugins/breakout/plugin-key.js +3 -5
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +1 -2
- package/dist/cjs/plugins/caption/index.js +1 -2
- package/dist/cjs/plugins/caption/nodeviews/index.js +1 -2
- package/dist/cjs/plugins/caption/pm-plugins/main.js +4 -5
- package/dist/cjs/plugins/caption/pm-plugins/plugin-key.js +1 -2
- package/dist/cjs/plugins/clear-marks-on-change-to-empty-document/index.js +2 -4
- package/dist/cjs/plugins/clipboard/index.js +1 -2
- package/dist/cjs/plugins/clipboard/plugin-key.js +1 -2
- package/dist/cjs/plugins/clipboard/pm-plugins/main.js +4 -7
- package/dist/cjs/plugins/code-bidi-warning/index.js +1 -2
- package/dist/cjs/plugins/code-bidi-warning/plugin-key.js +1 -2
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/main.js +2 -3
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +2 -4
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/reducer.js +2 -3
- package/dist/cjs/plugins/code-block/actions.js +6 -12
- package/dist/cjs/plugins/code-block/ide-ux/bracket-handling.js +4 -7
- package/dist/cjs/plugins/code-block/ide-ux/line-handling.js +7 -13
- package/dist/cjs/plugins/code-block/ide-ux/paired-character-handling.js +3 -5
- package/dist/cjs/plugins/code-block/ide-ux/quote-handling.js +4 -7
- package/dist/cjs/plugins/code-block/index.js +4 -5
- package/dist/cjs/plugins/code-block/language-list.js +1 -2
- package/dist/cjs/plugins/code-block/nodeviews/code-block.js +6 -8
- package/dist/cjs/plugins/code-block/plugin-key.js +1 -2
- package/dist/cjs/plugins/code-block/pm-plugins/actions.js +2 -3
- package/dist/cjs/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.js +1 -2
- package/dist/cjs/plugins/code-block/pm-plugins/ide-ux.js +2 -3
- package/dist/cjs/plugins/code-block/pm-plugins/keymaps.js +1 -2
- package/dist/cjs/plugins/code-block/pm-plugins/main-state.js +2 -3
- package/dist/cjs/plugins/code-block/pm-plugins/main.js +2 -3
- package/dist/cjs/plugins/code-block/refresh-browser-selection.js +2 -4
- package/dist/cjs/plugins/code-block/styles.js +2 -3
- package/dist/cjs/plugins/code-block/toolbar.js +5 -8
- package/dist/cjs/plugins/code-block/ui/class-names.js +2 -3
- package/dist/cjs/plugins/code-block/utils.js +3 -5
- package/dist/cjs/plugins/collab-edit/actions.js +8 -15
- package/dist/cjs/plugins/collab-edit/analytics.js +5 -7
- package/dist/cjs/plugins/collab-edit/events/handlers.js +2 -3
- package/dist/cjs/plugins/collab-edit/events/initialize.js +2 -3
- package/dist/cjs/plugins/collab-edit/events/send-transaction.js +2 -3
- package/dist/cjs/plugins/collab-edit/index.js +3 -4
- package/dist/cjs/plugins/collab-edit/native-collab-provider-plugin.js +3 -5
- package/dist/cjs/plugins/collab-edit/participants.js +2 -3
- package/dist/cjs/plugins/collab-edit/plugin-key.js +1 -2
- package/dist/cjs/plugins/collab-edit/plugin-state.js +4 -7
- package/dist/cjs/plugins/collab-edit/plugin.js +7 -8
- package/dist/cjs/plugins/collab-edit/styles.js +2 -3
- package/dist/cjs/plugins/collab-edit/ui/avatars-with-plugin-state.js +1 -2
- package/dist/cjs/plugins/collab-edit/ui/avatars.js +2 -3
- package/dist/cjs/plugins/collab-edit/ui/colored-avatar-item.js +2 -3
- package/dist/cjs/plugins/collab-edit/ui/index.js +1 -2
- package/dist/cjs/plugins/collab-edit/ui/invite-to-edit.js +2 -3
- package/dist/cjs/plugins/collab-edit/ui/styles.js +4 -7
- package/dist/cjs/plugins/collab-edit/ui/to-avatar.js +2 -3
- package/dist/cjs/plugins/collab-edit/utils.js +9 -15
- package/dist/cjs/plugins/custom-autoformat/doc.js +3 -5
- package/dist/cjs/plugins/custom-autoformat/index.js +2 -4
- package/dist/cjs/plugins/custom-autoformat/input-rules.js +2 -3
- package/dist/cjs/plugins/custom-autoformat/reducers.js +1 -2
- package/dist/cjs/plugins/custom-autoformat/utils.js +4 -7
- package/dist/cjs/plugins/data-consumer/index.js +1 -2
- package/dist/cjs/plugins/date/actions.js +9 -17
- package/dist/cjs/plugins/date/index.js +3 -4
- package/dist/cjs/plugins/date/nodeviews/messages.js +2 -3
- package/dist/cjs/plugins/date/pm-plugins/keymap.js +1 -2
- package/dist/cjs/plugins/date/pm-plugins/main.js +2 -4
- package/dist/cjs/plugins/date/pm-plugins/plugin-key.js +1 -2
- package/dist/cjs/plugins/date/styles.js +1 -2
- package/dist/cjs/plugins/date/ui/DatePicker/date-picker-input.js +1 -2
- package/dist/cjs/plugins/date/ui/DatePicker/index.js +1 -2
- package/dist/cjs/plugins/expand/commands.js +10 -19
- package/dist/cjs/plugins/expand/index.js +2 -3
- package/dist/cjs/plugins/expand/nodeviews/index.js +5 -6
- package/dist/cjs/plugins/expand/pm-plugins/main.js +3 -4
- package/dist/cjs/plugins/expand/pm-plugins/plugin-factory.js +4 -8
- package/dist/cjs/plugins/expand/reducer.js +2 -3
- package/dist/cjs/plugins/expand/toolbar.js +2 -3
- package/dist/cjs/plugins/expand/ui/ExpandIconButton.js +4 -7
- package/dist/cjs/plugins/expand/ui/class-names.js +2 -3
- package/dist/cjs/plugins/expand/ui/styles.js +2 -3
- package/dist/cjs/plugins/extension/actions.js +6 -11
- package/dist/cjs/plugins/extension/commands.js +6 -11
- package/dist/cjs/plugins/extension/context-panel.js +1 -2
- package/dist/cjs/plugins/extension/extension-api.js +3 -5
- package/dist/cjs/plugins/extension/index.js +6 -7
- package/dist/cjs/plugins/extension/nodeviews/extension.js +1 -2
- package/dist/cjs/plugins/extension/plugin-factory.js +3 -6
- package/dist/cjs/plugins/extension/plugin-key.js +1 -2
- package/dist/cjs/plugins/extension/pm-plugins/main.js +9 -13
- package/dist/cjs/plugins/extension/pm-plugins/unique-id.js +2 -3
- package/dist/cjs/plugins/extension/pm-plugins/utils.js +2 -3
- package/dist/cjs/plugins/extension/toolbar.js +2 -4
- package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +2 -3
- package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +5 -10
- package/dist/cjs/plugins/extension/ui/Extension/ExtensionComponent.js +5 -6
- package/dist/cjs/plugins/extension/ui/Extension/ExtensionNodeWrapper.js +1 -2
- package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/index.js +2 -3
- package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/styles.js +2 -3
- package/dist/cjs/plugins/extension/ui/Extension/Lozenge.js +4 -7
- package/dist/cjs/plugins/extension/ui/Extension/index.js +1 -2
- package/dist/cjs/plugins/extension/ui/Extension/styles.js +5 -10
- package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -3
- package/dist/cjs/plugins/extension/ui/SaveIndicator/messages.js +2 -3
- package/dist/cjs/plugins/extension/ui/styles.js +1 -2
- package/dist/cjs/plugins/extension/utils.js +7 -13
- package/dist/cjs/plugins/fake-text-cursor/cursor.js +6 -11
- package/dist/cjs/plugins/fake-text-cursor/index.js +3 -6
- package/dist/cjs/plugins/fake-text-cursor/styles.js +1 -2
- package/dist/cjs/plugins/feedback-dialog/getBrowserInfo.js +1 -2
- package/dist/cjs/plugins/feedback-dialog/getDeviceInfo.js +1 -2
- package/dist/cjs/plugins/feedback-dialog/index.js +2 -4
- package/dist/cjs/plugins/feedback-dialog/loadJiraCollectorDialogScript.js +1 -2
- package/dist/cjs/plugins/find-replace/FindReplaceToolbarButtonWithState.js +2 -3
- package/dist/cjs/plugins/find-replace/actions.js +2 -3
- package/dist/cjs/plugins/find-replace/commands-with-analytics.js +8 -15
- package/dist/cjs/plugins/find-replace/commands.js +11 -22
- package/dist/cjs/plugins/find-replace/index.js +3 -5
- package/dist/cjs/plugins/find-replace/keymap.js +1 -2
- package/dist/cjs/plugins/find-replace/plugin.js +6 -11
- package/dist/cjs/plugins/find-replace/reducer.js +1 -2
- package/dist/cjs/plugins/find-replace/styles.js +3 -6
- package/dist/cjs/plugins/find-replace/types.js +1 -2
- package/dist/cjs/plugins/find-replace/ui/Find.js +2 -4
- package/dist/cjs/plugins/find-replace/ui/FindReplace.js +1 -2
- package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +1 -2
- package/dist/cjs/plugins/find-replace/ui/FindReplaceTooltipButton.js +1 -2
- package/dist/cjs/plugins/find-replace/ui/Replace.js +1 -2
- package/dist/cjs/plugins/find-replace/ui/styles.js +6 -11
- package/dist/cjs/plugins/find-replace/utils/batch-decorations.js +1 -2
- package/dist/cjs/plugins/find-replace/utils/index.js +47 -57
- package/dist/cjs/plugins/fragment/index.js +1 -2
- package/dist/cjs/plugins/fragment/plugin-key.js +1 -2
- package/dist/cjs/plugins/fragment/pm-plugins/fragment-consistency.js +2 -3
- package/dist/cjs/plugins/help-dialog/commands.js +3 -5
- package/dist/cjs/plugins/help-dialog/index.js +4 -5
- package/dist/cjs/plugins/help-dialog/plugin-key.js +1 -2
- package/dist/cjs/plugins/help-dialog/ui/HelpDialogLoader.js +2 -3
- package/dist/cjs/plugins/help-dialog/ui/index.js +4 -8
- package/dist/cjs/plugins/help-dialog/ui/styles.js +16 -27
- package/dist/cjs/plugins/history/actions.js +2 -3
- package/dist/cjs/plugins/history/index.js +2 -4
- package/dist/cjs/plugins/history/reducer.js +1 -2
- package/dist/cjs/plugins/history/utils.js +3 -5
- package/dist/cjs/plugins/indentation/commands/index.js +6 -11
- package/dist/cjs/plugins/indentation/index.js +1 -2
- package/dist/cjs/plugins/indentation/messages.js +2 -3
- package/dist/cjs/plugins/indentation/pm-plugins/keymap.js +1 -2
- package/dist/cjs/plugins/insert-block/index.js +4 -5
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -3
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -3
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -3
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +1 -2
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -3
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +11 -13
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/item.js +19 -37
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/shallow-equals.js +2 -3
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/sort-items.js +2 -3
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/styles.js +1 -2
- package/dist/cjs/plugins/jira-issue/index.js +2 -4
- package/dist/cjs/plugins/layout/actions.js +12 -24
- package/dist/cjs/plugins/layout/index.js +4 -5
- package/dist/cjs/plugins/layout/pm-plugins/main.js +3 -5
- package/dist/cjs/plugins/layout/pm-plugins/plugin-key.js +1 -2
- package/dist/cjs/plugins/layout/styles.js +2 -3
- package/dist/cjs/plugins/layout/toolbar-messages.js +2 -3
- package/dist/cjs/plugins/layout/toolbar.js +3 -5
- package/dist/cjs/plugins/macro/actions.js +5 -9
- package/dist/cjs/plugins/macro/index.js +2 -4
- package/dist/cjs/plugins/macro/plugin-key.js +1 -2
- package/dist/cjs/plugins/max-content-size/index.js +2 -4
- package/dist/cjs/plugins/media/commands/captions.js +3 -5
- package/dist/cjs/plugins/media/commands/helpers.js +8 -15
- package/dist/cjs/plugins/media/commands/linking.js +7 -12
- package/dist/cjs/plugins/media/index.js +6 -7
- package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +5 -7
- package/dist/cjs/plugins/media/nodeviews/mediaInline.js +7 -13
- package/dist/cjs/plugins/media/nodeviews/mediaNodeUpdater.js +1 -2
- package/dist/cjs/plugins/media/nodeviews/mediaNodeView/index.js +2 -3
- package/dist/cjs/plugins/media/nodeviews/mediaNodeView/media.js +9 -13
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +6 -8
- package/dist/cjs/plugins/media/nodeviews/messages.js +2 -3
- package/dist/cjs/plugins/media/nodeviews/styles.js +5 -9
- package/dist/cjs/plugins/media/picker-facade.js +2 -3
- package/dist/cjs/plugins/media/pm-plugins/alt-text/commands.js +4 -7
- package/dist/cjs/plugins/media/pm-plugins/alt-text/index.js +5 -9
- package/dist/cjs/plugins/media/pm-plugins/alt-text/messages.js +2 -3
- package/dist/cjs/plugins/media/pm-plugins/alt-text/reducer.js +2 -3
- package/dist/cjs/plugins/media/pm-plugins/alt-text/style.js +2 -3
- package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +6 -9
- package/dist/cjs/plugins/media/pm-plugins/keymap.js +1 -2
- package/dist/cjs/plugins/media/pm-plugins/linking/actions.js +2 -3
- package/dist/cjs/plugins/media/pm-plugins/linking/index.js +5 -9
- package/dist/cjs/plugins/media/pm-plugins/linking/reducer.js +2 -3
- package/dist/cjs/plugins/media/pm-plugins/main.js +14 -19
- package/dist/cjs/plugins/media/pm-plugins/media-editor-plugin-factory.js +1 -2
- package/dist/cjs/plugins/media/pm-plugins/mediaTaskManager.js +2 -3
- package/dist/cjs/plugins/media/pm-plugins/plugin-key.js +1 -2
- package/dist/cjs/plugins/media/styles.js +2 -3
- package/dist/cjs/plugins/media/toolbar/alt-text.js +5 -8
- package/dist/cjs/plugins/media/toolbar/commands.js +15 -23
- package/dist/cjs/plugins/media/toolbar/filePreviewItem.js +2 -3
- package/dist/cjs/plugins/media/toolbar/index.js +16 -17
- package/dist/cjs/plugins/media/toolbar/linking-toolbar-appearance.js +2 -3
- package/dist/cjs/plugins/media/toolbar/linking.js +6 -7
- package/dist/cjs/plugins/media/toolbar/utils.js +8 -15
- package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +2 -3
- package/dist/cjs/plugins/media/ui/CaptionPlaceholder/messages.js +2 -3
- package/dist/cjs/plugins/media/ui/ImageBorder/index.js +1 -2
- package/dist/cjs/plugins/media/ui/ImageBorder/messages.js +2 -3
- package/dist/cjs/plugins/media/ui/ImageBorder/styles.js +15 -23
- package/dist/cjs/plugins/media/ui/Media/DropPlaceholder.js +2 -3
- package/dist/cjs/plugins/media/ui/Media/drop-placeholder-messages.js +2 -3
- package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +2 -4
- package/dist/cjs/plugins/media/ui/MediaPicker/BrowserWrapper.js +2 -3
- package/dist/cjs/plugins/media/ui/MediaPicker/ClipboardWrapper.js +2 -3
- package/dist/cjs/plugins/media/ui/MediaPicker/DropzoneWrapper.js +2 -3
- package/dist/cjs/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +2 -3
- package/dist/cjs/plugins/media/ui/MediaPicker/index.js +1 -2
- package/dist/cjs/plugins/media/ui/PixelEntry/constants.js +1 -2
- package/dist/cjs/plugins/media/ui/PixelEntry/index.js +3 -5
- package/dist/cjs/plugins/media/ui/PixelEntry/messages.js +2 -3
- package/dist/cjs/plugins/media/ui/PixelEntry/styles.js +8 -16
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/ResizableMediaMigrationNotification.js +2 -3
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +9 -10
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +4 -5
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/styled.js +2 -3
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/styles.js +1 -2
- package/dist/cjs/plugins/media/ui/ToolbarMedia/index.js +1 -2
- package/dist/cjs/plugins/media/ui/ToolbarMedia/toolbar-media-messages.js +2 -3
- package/dist/cjs/plugins/media/ui/media-linking-toolbar-messages.js +2 -3
- package/dist/cjs/plugins/media/utils/analytics.js +3 -5
- package/dist/cjs/plugins/media/utils/check-media-type.js +2 -3
- package/dist/cjs/plugins/media/utils/current-media-node.js +4 -7
- package/dist/cjs/plugins/media/utils/is-image.js +2 -3
- package/dist/cjs/plugins/media/utils/media-common.js +14 -27
- package/dist/cjs/plugins/media/utils/media-files.js +7 -11
- package/dist/cjs/plugins/media/utils/media-single.js +8 -13
- package/dist/cjs/plugins/mentions/analytics.js +8 -20
- package/dist/cjs/plugins/mentions/index.js +10 -12
- package/dist/cjs/plugins/mentions/messages.js +2 -3
- package/dist/cjs/plugins/mentions/nodeviews/mention.js +2 -3
- package/dist/cjs/plugins/mentions/pm-plugins/key.js +1 -2
- package/dist/cjs/plugins/mentions/pm-plugins/main.js +1 -2
- package/dist/cjs/plugins/mentions/pm-plugins/utils.js +2 -3
- package/dist/cjs/plugins/mentions/type-ahead/index.js +3 -5
- package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +2 -4
- package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +8 -16
- package/dist/cjs/plugins/mentions/ui/Mention/index.js +14 -4
- package/dist/cjs/plugins/mentions/ui/ToolbarMention/index.js +5 -6
- package/dist/cjs/plugins/mentions/utils.js +5 -9
- package/dist/cjs/plugins/mobile-dimensions/actions.js +2 -3
- package/dist/cjs/plugins/mobile-dimensions/commands.js +4 -7
- package/dist/cjs/plugins/mobile-dimensions/index.js +1 -2
- package/dist/cjs/plugins/mobile-dimensions/plugin-factory.js +4 -8
- package/dist/cjs/plugins/mobile-dimensions/utils.js +2 -3
- package/dist/cjs/plugins/mobile-selection/content-in-selection.js +2 -3
- package/dist/cjs/plugins/mobile-selection/mobile-selection-plugin.js +4 -7
- package/dist/cjs/plugins/panel/actions.js +2 -4
- package/dist/cjs/plugins/panel/index.js +2 -3
- package/dist/cjs/plugins/panel/message.js +2 -3
- package/dist/cjs/plugins/panel/nodeviews/panel.js +4 -7
- package/dist/cjs/plugins/panel/pm-plugins/keymaps.js +3 -4
- package/dist/cjs/plugins/panel/pm-plugins/main.js +2 -3
- package/dist/cjs/plugins/panel/styles.js +2 -3
- package/dist/cjs/plugins/panel/toolbar.js +4 -7
- package/dist/cjs/plugins/panel/types.js +1 -2
- package/dist/cjs/plugins/panel/utils.js +3 -5
- package/dist/cjs/plugins/paste/actions.js +2 -3
- package/dist/cjs/plugins/paste/commands.js +6 -11
- package/dist/cjs/plugins/paste/handlers.js +12 -14
- package/dist/cjs/plugins/paste/index.js +2 -3
- package/dist/cjs/plugins/paste/pm-plugins/analytics.js +24 -39
- package/dist/cjs/plugins/paste/pm-plugins/main.js +10 -10
- package/dist/cjs/plugins/paste/pm-plugins/plugin-factory.js +4 -8
- package/dist/cjs/plugins/paste/reducer.js +2 -3
- package/dist/cjs/plugins/paste/util/index.js +5 -10
- package/dist/cjs/plugins/paste/util/tinyMCE.js +10 -15
- package/dist/cjs/plugins/placeholder-text/actions.js +4 -7
- package/dist/cjs/plugins/placeholder-text/index.js +2 -3
- package/dist/cjs/plugins/placeholder-text/placeholder-text-nodeview.js +2 -3
- package/dist/cjs/plugins/placeholder-text/plugin-key.js +1 -2
- package/dist/cjs/plugins/placeholder-text/selection-utils.js +2 -3
- package/dist/cjs/plugins/placeholder-text/styles.js +1 -2
- package/dist/cjs/plugins/placeholder-text/ui/PlaceholderFloatingToolbar/index.js +2 -4
- package/dist/cjs/plugins/rank.js +2 -3
- package/dist/cjs/plugins/save-on-enter/index.js +1 -2
- package/dist/cjs/plugins/scroll-into-view/index.js +2 -4
- package/dist/cjs/plugins/selection/actions.js +2 -3
- package/dist/cjs/plugins/selection/commands.js +6 -11
- package/dist/cjs/plugins/selection/gap-cursor/actions.js +8 -15
- package/dist/cjs/plugins/selection/gap-cursor/direction.js +1 -2
- package/dist/cjs/plugins/selection/gap-cursor/styles.js +2 -4
- package/dist/cjs/plugins/selection/gap-cursor/utils/place-gap-cursor.js +2 -3
- package/dist/cjs/plugins/selection/gap-cursor/utils.js +5 -9
- package/dist/cjs/plugins/selection/index.js +2 -4
- package/dist/cjs/plugins/selection/plugin-factory.js +3 -6
- package/dist/cjs/plugins/selection/pm-plugins/events/create-selection-between.js +2 -3
- package/dist/cjs/plugins/selection/pm-plugins/events/keydown.js +2 -3
- package/dist/cjs/plugins/selection/pm-plugins/gap-cursor-main.js +1 -2
- package/dist/cjs/plugins/selection/pm-plugins/gap-cursor-plugin-key.js +1 -2
- package/dist/cjs/plugins/selection/pm-plugins/keymap.js +1 -2
- package/dist/cjs/plugins/selection/pm-plugins/selection-main.js +3 -5
- package/dist/cjs/plugins/selection/types.js +3 -5
- package/dist/cjs/plugins/selection/utils.js +12 -23
- package/dist/cjs/plugins/status/actions.js +8 -15
- package/dist/cjs/plugins/status/analytics.js +4 -7
- package/dist/cjs/plugins/status/index.js +1 -2
- package/dist/cjs/plugins/status/keymap.js +1 -2
- package/dist/cjs/plugins/status/nodeviews/messages.js +2 -3
- package/dist/cjs/plugins/status/nodeviews/status.js +3 -5
- package/dist/cjs/plugins/status/plugin-key.js +2 -4
- package/dist/cjs/plugins/status/plugin.js +1 -2
- package/dist/cjs/plugins/status/styles.js +1 -2
- package/dist/cjs/plugins/status/ui/statusPicker.js +10 -14
- package/dist/cjs/plugins/status/utils.js +4 -7
- package/dist/cjs/plugins/submit-editor/index.js +3 -4
- package/dist/cjs/plugins/tasks-and-decisions/commands.js +8 -15
- package/dist/cjs/plugins/tasks-and-decisions/index.js +1 -2
- package/dist/cjs/plugins/tasks-and-decisions/nodeviews/decisionItem.js +2 -3
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/commands.js +4 -7
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/helpers.js +13 -26
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/input-rules.js +1 -2
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/keymaps.js +3 -6
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/plugin-key.js +1 -2
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/types.js +2 -3
- package/dist/cjs/plugins/tasks-and-decisions/styles.js +1 -2
- package/dist/cjs/plugins/tasks-and-decisions/ui/Decision/index.js +2 -4
- package/dist/cjs/plugins/tasks-and-decisions/ui/Task/index.js +2 -4
- package/dist/cjs/plugins/tasks-and-decisions/ui/Task/task-item-with-providers.js +1 -2
- package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +2 -4
- package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +2 -4
- package/dist/cjs/plugins/tasks-and-decisions/utils.js +3 -5
- package/dist/cjs/plugins/text-color/commands/change-color.js +2 -3
- package/dist/cjs/plugins/text-color/commands/remove-color.js +2 -3
- package/dist/cjs/plugins/text-color/commands/toggle-color.js +2 -3
- package/dist/cjs/plugins/text-color/index.js +1 -2
- package/dist/cjs/plugins/text-color/pm-plugins/main.js +2 -4
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/icon.js +2 -3
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +12 -15
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/styles.js +3 -6
- package/dist/cjs/plugins/text-color/utils/color.js +3 -5
- package/dist/cjs/plugins/text-color/utils/disabled.js +2 -3
- package/dist/cjs/plugins/toolbar-lists-indentation/index.js +2 -3
- package/dist/cjs/plugins/toolbar-lists-indentation/pm-plugins/indentation-buttons.js +3 -5
- package/dist/cjs/plugins/toolbar-lists-indentation/ui/onItemActivated.js +6 -7
- package/dist/cjs/plugins/type-ahead/api.js +3 -5
- package/dist/cjs/plugins/type-ahead/commands/insert-type-ahead-item.js +2 -3
- package/dist/cjs/plugins/type-ahead/commands/update-list-items.js +2 -3
- package/dist/cjs/plugins/type-ahead/commands/update-query.js +2 -3
- package/dist/cjs/plugins/type-ahead/commands/update-selected-index.js +2 -3
- package/dist/cjs/plugins/type-ahead/constants.js +6 -11
- package/dist/cjs/plugins/type-ahead/index.js +3 -3
- package/dist/cjs/plugins/type-ahead/insert-utils.js +3 -5
- package/dist/cjs/plugins/type-ahead/messages.js +2 -3
- package/dist/cjs/plugins/type-ahead/pm-plugins/actions.js +2 -3
- package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +2 -3
- package/dist/cjs/plugins/type-ahead/pm-plugins/input-rules.js +1 -2
- package/dist/cjs/plugins/type-ahead/pm-plugins/key.js +1 -2
- package/dist/cjs/plugins/type-ahead/pm-plugins/reducer.js +2 -3
- package/dist/cjs/plugins/type-ahead/pm-plugins/utils.js +2 -3
- package/dist/cjs/plugins/type-ahead/stats-modifier.js +2 -3
- package/dist/cjs/plugins/type-ahead/transforms/close-type-ahead.js +2 -3
- package/dist/cjs/plugins/type-ahead/transforms/open-typeahead-at-cursor.js +5 -7
- package/dist/cjs/plugins/type-ahead/transforms/set-selection-before-query.js +2 -3
- package/dist/cjs/plugins/type-ahead/ui/AssistiveText.js +1 -2
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +4 -5
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +4 -5
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +8 -13
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +5 -6
- package/dist/cjs/plugins/type-ahead/ui/WrapperTypeAhead.js +1 -2
- package/dist/cjs/plugins/type-ahead/ui/hooks/use-item-insert.js +2 -3
- package/dist/cjs/plugins/type-ahead/ui/hooks/use-load-items.js +2 -3
- package/dist/cjs/plugins/type-ahead/ui/hooks/use-on-force-select.js +2 -3
- package/dist/cjs/plugins/type-ahead/utils.js +22 -32
- package/dist/cjs/plugins/undo-redo/attach-input-meta.js +2 -3
- package/dist/cjs/plugins/undo-redo/commands.js +4 -8
- package/dist/cjs/plugins/undo-redo/enums.js +2 -3
- package/dist/cjs/plugins/undo-redo/index.js +1 -2
- package/dist/cjs/plugins/undo-redo/messages.js +2 -3
- package/dist/cjs/plugins/undo-redo/pm-plugins/main.js +2 -3
- package/dist/cjs/plugins/undo-redo/pm-plugins/plugin-key.js +1 -2
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +2 -4
- package/dist/cjs/plugins/view-update-subscription/index.js +2 -4
- package/dist/cjs/plugins/view-update-subscription/subscribe/toolbarAndPickerUpdates.js +2 -3
- package/dist/cjs/plugins/view-update-subscription/subscribe/type-ahead-updates.js +2 -3
- package/dist/cjs/presets/context.js +5 -9
- package/dist/cjs/selection-api/api.js +2 -3
- package/dist/cjs/test-utils.js +4 -6
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +2 -4
- package/dist/cjs/ui/Addon/ClickAreaInline/index.js +2 -4
- package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +2 -3
- package/dist/cjs/ui/Addon/Dropdown/index.js +2 -3
- package/dist/cjs/ui/Addon/Dropdown/styles.js +1 -2
- package/dist/cjs/ui/Addon/DropdownItem/index.js +1 -2
- package/dist/cjs/ui/Addon/DropdownItem/styles.js +1 -2
- package/dist/cjs/ui/Addon/click-area-helper.js +2 -4
- package/dist/cjs/ui/Alignment/AlignmentButton/index.js +1 -2
- package/dist/cjs/ui/Alignment/index.js +1 -2
- package/dist/cjs/ui/Alignment/messages.js +2 -3
- package/dist/cjs/ui/Alignment/styles.js +1 -2
- package/dist/cjs/ui/Appearance/Chromeless.js +1 -2
- package/dist/cjs/ui/Appearance/Comment/Comment.js +2 -3
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +5 -8
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +2 -3
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +3 -5
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +4 -6
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +7 -14
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +8 -16
- package/dist/cjs/ui/AppearanceComponents/Mobile.js +4 -5
- package/dist/cjs/ui/ChromeCollapsed/index.js +1 -2
- package/dist/cjs/ui/ChromeCollapsed/messages.js +2 -3
- package/dist/cjs/ui/ChromeCollapsed/styles.js +1 -2
- package/dist/cjs/ui/CollapsedEditor/index.js +3 -4
- package/dist/cjs/ui/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -2
- package/dist/cjs/ui/ColorPalette/Palettes/paletteMessages.js +1 -2
- package/dist/cjs/ui/ColorPalette/index.js +1 -2
- package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +5 -6
- package/dist/cjs/ui/ConfigPanel/ConfigPanelLoader.js +2 -3
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/ErrorImage.js +1 -2
- package/dist/cjs/ui/ConfigPanel/ErrorMessage/index.js +1 -2
- package/dist/cjs/ui/ConfigPanel/FieldMessages.js +1 -2
- package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +1 -1
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +5 -10
- package/dist/cjs/ui/ConfigPanel/Fields/CustomSelect.js +1 -2
- package/dist/cjs/ui/ConfigPanel/Fields/Date.js +1 -2
- package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +1 -2
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +3 -6
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +1 -2
- package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +2 -3
- package/dist/cjs/ui/ConfigPanel/Fields/TabGroup.js +1 -2
- package/dist/cjs/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
- package/dist/cjs/ui/ConfigPanel/FormErrorBoundary.js +4 -6
- package/dist/cjs/ui/ConfigPanel/Header.js +1 -2
- package/dist/cjs/ui/ConfigPanel/LoadingState.js +1 -2
- package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
- package/dist/cjs/ui/ConfigPanel/index.js +1 -2
- package/dist/cjs/ui/ConfigPanel/messages.js +2 -3
- package/dist/cjs/ui/ConfigPanel/transformers.js +11 -15
- package/dist/cjs/ui/ConfigPanel/types.js +3 -5
- package/dist/cjs/ui/ConfigPanel/utils.js +7 -13
- package/dist/cjs/ui/ContentStyles/index.js +4 -8
- package/dist/cjs/ui/ContextPanel/index.js +5 -9
- package/dist/cjs/ui/EditorContext/index.js +2 -4
- package/dist/cjs/ui/ElementBrowser/InsertMenu.js +7 -8
- package/dist/cjs/ui/ErrorBoundary/index.js +2 -3
- package/dist/cjs/ui/FloatingToolbar/index.js +2 -3
- package/dist/cjs/ui/FloatingToolbar/styles.js +2 -3
- package/dist/cjs/ui/FloatingToolbar/utils.js +4 -7
- package/dist/cjs/ui/MediaAndEmbedsToolbar/toolbar-messages.js +2 -3
- package/dist/cjs/ui/PluginSlot/index.js +1 -2
- package/dist/cjs/ui/Toolbar/Toolbar.js +2 -3
- package/dist/cjs/ui/Toolbar/ToolbarInner.js +2 -3
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +2 -3
- package/dist/cjs/ui/Toolbar/hooks.js +2 -3
- package/dist/cjs/ui/Toolbar/toolbar-size.js +3 -5
- package/dist/cjs/ui/Toolbar/toolbar-types.js +1 -2
- package/dist/cjs/ui/ToolbarButton/index.js +1 -2
- package/dist/cjs/ui/ToolbarFeedback/index.js +1 -1
- package/dist/cjs/ui/ToolbarFeedback/styles.js +6 -12
- package/dist/cjs/ui/ToolbarHelp/index.js +1 -2
- package/dist/cjs/ui/ToolbarHelp/messages.js +2 -3
- package/dist/cjs/ui/WithEditorActions/index.js +1 -2
- package/dist/cjs/ui/WithFlash/index.js +2 -3
- package/dist/cjs/ui/WithHelpTrigger/index.js +1 -2
- package/dist/cjs/ui/WithPluginState/index.js +1 -2
- package/dist/cjs/ui/styles.js +1 -2
- package/dist/cjs/ui/with-outer-listeners.js +1 -2
- package/dist/cjs/utils/commands.js +3 -5
- package/dist/cjs/utils/deprecation-warnings.js +1 -2
- package/dist/cjs/utils/document-logger.js +1 -2
- package/dist/cjs/utils/index.js +3 -6
- package/dist/cjs/utils/is-text-input.js +2 -3
- package/dist/cjs/utils/mark.js +21 -24
- package/dist/cjs/utils/node-width.js +2 -3
- package/dist/cjs/utils/nodes-by-localIds.js +3 -5
- package/dist/cjs/utils/performance/instrumented-plugin.js +2 -3
- package/dist/cjs/utils/performance/measure-enum.js +2 -3
- package/dist/cjs/utils/performance/outlier.js +2 -3
- package/dist/cjs/utils/performance/percentile.js +2 -3
- package/dist/cjs/utils/performance/plugin-performance-observer.js +2 -3
- package/dist/cjs/utils/performance/plugin-performance-report.js +2 -3
- package/dist/cjs/utils/performance/safer-transactions.js +3 -5
- package/dist/cjs/utils/performance/simple-measure-to-entries.js +2 -3
- package/dist/cjs/utils/performance/track-transactions.js +8 -15
- package/dist/cjs/utils/pick-by.js +1 -2
- package/dist/cjs/utils/prepare-extension-provider.js +1 -2
- package/dist/cjs/utils/selection.js +3 -5
- package/dist/cjs/version-wrapper.js +4 -7
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -0
- package/dist/es2019/plugins/mentions/analytics.js +0 -5
- package/dist/es2019/plugins/mentions/index.js +3 -4
- package/dist/es2019/plugins/mentions/ui/Mention/index.js +13 -1
- package/dist/es2019/plugins/mentions/ui/ToolbarMention/index.js +2 -2
- package/dist/es2019/plugins/type-ahead/index.js +3 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/actions/index.js +2 -2
- package/dist/esm/composable-editor/editor-internal.js +3 -3
- package/dist/esm/composable-editor/editor.js +4 -4
- package/dist/esm/composable-editor/hooks/useEditorMeasuresConstructor.js +1 -1
- package/dist/esm/composable-editor/hooks/useMeasureEditorMountTime.js +3 -3
- package/dist/esm/composable-editor/utils/editorMeasureTTICallback.js +2 -2
- package/dist/esm/composable-editor/utils/getProvidersFromEditorProps.js +1 -1
- package/dist/esm/composable-editor/utils/sendDurationAnalytics.js +2 -2
- package/dist/esm/composable-editor/utils/trackEditorActions.js +2 -2
- package/dist/esm/create-editor/ErrorBoundary.js +4 -4
- package/dist/esm/create-editor/ReactEditorViewInternal.js +29 -29
- package/dist/esm/create-editor/feature-flags-from-props.js +2 -2
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +5 -5
- package/dist/esm/plugins/analytics/plugin.js +5 -5
- package/dist/esm/plugins/analytics/utils.js +1 -1
- package/dist/esm/plugins/avatar-group/index.js +1 -1
- package/dist/esm/plugins/breakout/index.js +2 -2
- package/dist/esm/plugins/caption/pm-plugins/main.js +2 -2
- package/dist/esm/plugins/code-block/index.js +3 -3
- package/dist/esm/plugins/code-block/nodeviews/code-block.js +3 -3
- package/dist/esm/plugins/code-block/pm-plugins/ide-ux.js +1 -1
- package/dist/esm/plugins/code-block/toolbar.js +1 -1
- package/dist/esm/plugins/collab-edit/analytics.js +2 -2
- package/dist/esm/plugins/collab-edit/index.js +2 -2
- package/dist/esm/plugins/collab-edit/plugin.js +5 -5
- package/dist/esm/plugins/date/index.js +2 -2
- package/dist/esm/plugins/expand/index.js +1 -1
- package/dist/esm/plugins/expand/nodeviews/index.js +4 -4
- package/dist/esm/plugins/expand/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/extension/index.js +5 -5
- package/dist/esm/plugins/extension/pm-plugins/main.js +4 -4
- package/dist/esm/plugins/extension/ui/Extension/ExtensionComponent.js +3 -3
- package/dist/esm/plugins/find-replace/FindReplaceToolbarButtonWithState.js +1 -1
- package/dist/esm/plugins/find-replace/index.js +1 -1
- package/dist/esm/plugins/find-replace/utils/index.js +35 -34
- package/dist/esm/plugins/help-dialog/index.js +3 -3
- package/dist/esm/plugins/insert-block/index.js +3 -3
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +9 -9
- package/dist/esm/plugins/layout/index.js +3 -3
- package/dist/esm/plugins/media/commands/captions.js +1 -1
- package/dist/esm/plugins/media/commands/linking.js +1 -1
- package/dist/esm/plugins/media/index.js +5 -5
- package/dist/esm/plugins/media/nodeviews/mediaGroup.js +2 -2
- package/dist/esm/plugins/media/nodeviews/mediaNodeView/media.js +5 -5
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +3 -3
- package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +1 -1
- package/dist/esm/plugins/media/pm-plugins/main.js +4 -4
- package/dist/esm/plugins/media/toolbar/alt-text.js +1 -1
- package/dist/esm/plugins/media/toolbar/commands.js +6 -6
- package/dist/esm/plugins/media/toolbar/index.js +14 -14
- package/dist/esm/plugins/media/toolbar/linking.js +4 -4
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +7 -6
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +2 -2
- package/dist/esm/plugins/media/utils/media-files.js +3 -3
- package/dist/esm/plugins/media/utils/media-single.js +2 -2
- package/dist/esm/plugins/mentions/analytics.js +0 -5
- package/dist/esm/plugins/mentions/index.js +6 -7
- package/dist/esm/plugins/mentions/ui/Mention/index.js +13 -1
- package/dist/esm/plugins/mentions/ui/ToolbarMention/index.js +2 -2
- package/dist/esm/plugins/panel/index.js +1 -1
- package/dist/esm/plugins/panel/pm-plugins/keymaps.js +2 -2
- package/dist/esm/plugins/paste/handlers.js +9 -9
- package/dist/esm/plugins/paste/index.js +1 -1
- package/dist/esm/plugins/paste/pm-plugins/analytics.js +8 -8
- package/dist/esm/plugins/paste/pm-plugins/main.js +10 -10
- package/dist/esm/plugins/paste/util/tinyMCE.js +4 -4
- package/dist/esm/plugins/placeholder-text/index.js +1 -1
- package/dist/esm/plugins/status/ui/statusPicker.js +6 -6
- package/dist/esm/plugins/submit-editor/index.js +2 -2
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +9 -9
- package/dist/esm/plugins/toolbar-lists-indentation/index.js +1 -1
- package/dist/esm/plugins/toolbar-lists-indentation/ui/onItemActivated.js +4 -4
- package/dist/esm/plugins/type-ahead/index.js +3 -2
- package/dist/esm/plugins/type-ahead/transforms/open-typeahead-at-cursor.js +2 -2
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +3 -3
- package/dist/esm/plugins/type-ahead/ui/TypeAheadList.js +3 -3
- package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +2 -2
- package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +4 -4
- package/dist/esm/plugins/type-ahead/utils.js +11 -11
- package/dist/esm/test-utils.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/esm/ui/AppearanceComponents/Mobile.js +2 -2
- package/dist/esm/ui/CollapsedEditor/index.js +1 -1
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +3 -3
- package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +1 -1
- package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +2 -2
- package/dist/esm/ui/ConfigPanel/transformers.js +8 -9
- package/dist/esm/ui/ContextPanel/index.js +1 -1
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +6 -6
- package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
- package/dist/esm/utils/mark.js +18 -18
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/labs/next/presets/default.d.ts +4 -0
- package/dist/types/plugins/mentions/analytics.d.ts +5 -5
- package/dist/types/plugins/mentions/index.d.ts +1 -1
- package/dist/types/plugins/mentions/type-ahead/index.d.ts +1 -1
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +4 -0
- package/dist/types-ts4.5/plugins/mentions/analytics.d.ts +5 -5
- package/dist/types-ts4.5/plugins/mentions/index.d.ts +1 -1
- package/dist/types-ts4.5/plugins/mentions/type-ahead/index.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 188.0.12
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#40788](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40788) [`30e085a3e77`](https://bitbucket.org/atlassian/atlassian-frontend/commits/30e085a3e77) - Fix type violations from upgrading lodash.
|
|
8
|
+
|
|
9
|
+
## 188.0.11
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#40955](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40955) [`30dc2b1e6c9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/30dc2b1e6c9) - [ED-19746] Decoupling mentions plugin from Editor-core libraries
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 188.0.9
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -22,7 +22,7 @@ var _action = require("../utils/action");
|
|
|
22
22
|
var _deprecationWarnings = _interopRequireDefault(require("../utils/deprecation-warnings"));
|
|
23
23
|
var _document = require("../utils/document");
|
|
24
24
|
var _nodesByLocalIds = require("../utils/nodes-by-localIds");
|
|
25
|
-
var EditorActions = /*#__PURE__*/function () {
|
|
25
|
+
var EditorActions = exports.default = /*#__PURE__*/function () {
|
|
26
26
|
function EditorActions() {
|
|
27
27
|
var _this = this;
|
|
28
28
|
(0, _classCallCheck2.default)(this, EditorActions);
|
|
@@ -284,8 +284,8 @@ var EditorActions = /*#__PURE__*/function () {
|
|
|
284
284
|
}, {
|
|
285
285
|
key: "getSelectedNode",
|
|
286
286
|
value: function getSelectedNode() {
|
|
287
|
-
var _this$editorView5
|
|
288
|
-
if ((_this$editorView5 = this.editorView) !== null && _this$editorView5 !== void 0 && (_this$editorView5
|
|
287
|
+
var _this$editorView5;
|
|
288
|
+
if ((_this$editorView5 = this.editorView) !== null && _this$editorView5 !== void 0 && (_this$editorView5 = _this$editorView5.state) !== null && _this$editorView5 !== void 0 && _this$editorView5.selection) {
|
|
289
289
|
var _findParentNode;
|
|
290
290
|
var selection = this.editorView.state.selection;
|
|
291
291
|
if (selection instanceof _state.NodeSelection) {
|
|
@@ -375,5 +375,4 @@ var EditorActions = /*#__PURE__*/function () {
|
|
|
375
375
|
}
|
|
376
376
|
}]);
|
|
377
377
|
return EditorActions;
|
|
378
|
-
}();
|
|
379
|
-
exports.default = EditorActions;
|
|
378
|
+
}();
|
|
@@ -27,7 +27,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
27
27
|
* from the `render` method of `Editor` and share it with `EditorNext`.
|
|
28
28
|
*/
|
|
29
29
|
function EditorInternal(_ref) {
|
|
30
|
-
var _props$performanceTra, _props$performanceTra2
|
|
30
|
+
var _props$performanceTra, _props$performanceTra2;
|
|
31
31
|
var props = _ref.props,
|
|
32
32
|
handleAnalyticsEvent = _ref.handleAnalyticsEvent,
|
|
33
33
|
createAnalyticsEvent = _ref.createAnalyticsEvent,
|
|
@@ -45,13 +45,13 @@ function EditorInternal(_ref) {
|
|
|
45
45
|
analyticsHandler: undefined
|
|
46
46
|
});
|
|
47
47
|
var featureFlags = (0, _featureFlagsFromProps.createFeatureFlagsFromProps)(props);
|
|
48
|
-
var renderTracking = (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0
|
|
48
|
+
var renderTracking = (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 || (_props$performanceTra = _props$performanceTra.renderTracking) === null || _props$performanceTra === void 0 ? void 0 : _props$performanceTra.editor;
|
|
49
49
|
var renderTrackingEnabled = renderTracking === null || renderTracking === void 0 ? void 0 : renderTracking.enabled;
|
|
50
50
|
var useShallow = renderTracking === null || renderTracking === void 0 ? void 0 : renderTracking.useShallow;
|
|
51
51
|
// ED-16320: Check for explicit disable so that by default
|
|
52
52
|
// it will still be enabled as it currently is. Then we can
|
|
53
53
|
// progressively opt out synthetic tenants.
|
|
54
|
-
var isErrorTrackingExplicitlyDisabled = ((_props$
|
|
54
|
+
var isErrorTrackingExplicitlyDisabled = ((_props$performanceTra2 = props.performanceTracking) === null || _props$performanceTra2 === void 0 || (_props$performanceTra2 = _props$performanceTra2.errorTracking) === null || _props$performanceTra2 === void 0 ? void 0 : _props$performanceTra2.enabled) === false;
|
|
55
55
|
return (0, _react2.jsx)(_react.Fragment, null, renderTrackingEnabled && (0, _react2.jsx)(_RenderTracking.RenderTracking, {
|
|
56
56
|
componentProps: props,
|
|
57
57
|
action: _analytics.ACTION.RE_RENDERED,
|
|
@@ -64,11 +64,11 @@ function Editor(passedProps) {
|
|
|
64
64
|
if ((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.ufo) {
|
|
65
65
|
var _experienceStore$curr;
|
|
66
66
|
experienceStore.current = _ufo.ExperienceStore.getInstance(instance.view);
|
|
67
|
-
(_experienceStore$curr = experienceStore.current) === null || _experienceStore$curr === void 0
|
|
67
|
+
(_experienceStore$curr = experienceStore.current) === null || _experienceStore$curr === void 0 || _experienceStore$curr.start(_ufo.EditorExperience.loadEditor, startTime.current);
|
|
68
68
|
}
|
|
69
69
|
if (props.onEditorReady) {
|
|
70
|
-
var _props$performanceTra, _props$
|
|
71
|
-
var measureEditorReady = (props === null || props === void 0
|
|
70
|
+
var _props$performanceTra, _props$featureFlags2;
|
|
71
|
+
var measureEditorReady = (props === null || props === void 0 || (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 || (_props$performanceTra = _props$performanceTra.onEditorReadyCallbackTracking) === null || _props$performanceTra === void 0 ? void 0 : _props$performanceTra.enabled) || ((_props$featureFlags2 = props.featureFlags) === null || _props$featureFlags2 === void 0 ? void 0 : _props$featureFlags2.ufo);
|
|
72
72
|
measureEditorReady && (0, _utils.startMeasure)(_measureEnum.default.ON_EDITOR_READY_CALLBACK);
|
|
73
73
|
props.onEditorReady(editorActions.current);
|
|
74
74
|
measureEditorReady && (0, _utils.stopMeasure)(_measureEnum.default.ON_EDITOR_READY_CALLBACK, (0, _sendDurationAnalytics.default)(_analytics.ACTION.ON_EDITOR_READY_CALLBACK, props, getExperienceStore, createAnalyticsEvent));
|
|
@@ -77,7 +77,7 @@ function Editor(passedProps) {
|
|
|
77
77
|
var onEditorDestroyed = function onEditorDestroyed(_instance) {
|
|
78
78
|
var _props$onDestroy;
|
|
79
79
|
editorActions.current._privateUnregisterEditor();
|
|
80
|
-
(_props$onDestroy = props.onDestroy) === null || _props$onDestroy === void 0
|
|
80
|
+
(_props$onDestroy = props.onDestroy) === null || _props$onDestroy === void 0 || _props$onDestroy.call(props);
|
|
81
81
|
};
|
|
82
82
|
(0, _useMeasureEditorMountTime.default)(props, getExperienceStore, createAnalyticsEvent);
|
|
83
83
|
var providerFactory = (0, _useProviderFactory.default)(props, editorActions.current, createAnalyticsEvent);
|
|
@@ -30,7 +30,7 @@ function useEditorConstructor(performanceTracking, featureFlags, getExperienceSt
|
|
|
30
30
|
var _performanceTracking$2, _performanceTracking$3;
|
|
31
31
|
(0, _utils.measureTTI)(function (tti, ttiFromInvocation, canceled, distortedDuration) {
|
|
32
32
|
(0, _editorMeasureTTICallback.default)(tti, ttiFromInvocation, canceled, distortedDuration, performanceTracking, featureFlags, createAnalyticsEvent, getExperienceStore());
|
|
33
|
-
}, performanceTracking === null || performanceTracking === void 0
|
|
33
|
+
}, performanceTracking === null || performanceTracking === void 0 || (_performanceTracking$2 = performanceTracking.ttiTracking) === null || _performanceTracking$2 === void 0 ? void 0 : _performanceTracking$2.ttiIdleThreshold, performanceTracking === null || performanceTracking === void 0 || (_performanceTracking$3 = performanceTracking.ttiTracking) === null || _performanceTracking$3 === void 0 ? void 0 : _performanceTracking$3.ttiCancelTimeout);
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -27,12 +27,12 @@ function useMeasureEditorMountTime(props, getExperienceStore, createAnalyticsEve
|
|
|
27
27
|
(0, _react.useEffect)(function () {
|
|
28
28
|
(0, _utils.stopMeasure)(_measureEnum.default.EDITOR_MOUNTED, (0, _sendDurationAnalytics.default)(_analytics.ACTION.EDITOR_MOUNTED, props, getExperienceStore, createAnalyticsEvent));
|
|
29
29
|
return function () {
|
|
30
|
-
var _props$performanceTra, _props$
|
|
30
|
+
var _props$performanceTra, _props$featureFlags;
|
|
31
31
|
(0, _utils.clearMeasure)(_measureEnum.default.EDITOR_MOUNTED);
|
|
32
|
-
(props === null || props === void 0
|
|
32
|
+
(props === null || props === void 0 || (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 || (_props$performanceTra = _props$performanceTra.onEditorReadyCallbackTracking) === null || _props$performanceTra === void 0 ? void 0 : _props$performanceTra.enabled) && (0, _utils.clearMeasure)(_measureEnum.default.ON_EDITOR_READY_CALLBACK);
|
|
33
33
|
if ((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.ufo) {
|
|
34
34
|
var _getExperienceStore;
|
|
35
|
-
(_getExperienceStore = getExperienceStore()) === null || _getExperienceStore === void 0
|
|
35
|
+
(_getExperienceStore = getExperienceStore()) === null || _getExperienceStore === void 0 || _getExperienceStore.abortAll({
|
|
36
36
|
reason: 'editor component unmounted'
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -39,7 +39,7 @@ function editorMeasureTTICallback(tti, ttiFromInvocation, canceled, distortedDur
|
|
|
39
39
|
(0, _analytics.fireAnalyticsEvent)(createAnalyticsEvent)(ttiEvent);
|
|
40
40
|
}
|
|
41
41
|
if (featureFlags !== null && featureFlags !== void 0 && featureFlags.ufo) {
|
|
42
|
-
experienceStore === null || experienceStore === void 0
|
|
43
|
-
experienceStore === null || experienceStore === void 0
|
|
42
|
+
experienceStore === null || experienceStore === void 0 || experienceStore.mark(_ufo.EditorExperience.loadEditor, _analytics.ACTION.EDITOR_TTI, tti);
|
|
43
|
+
experienceStore === null || experienceStore === void 0 || experienceStore.success(_ufo.EditorExperience.loadEditor);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -22,7 +22,7 @@ function getProvidersFromEditorProps(_ref) {
|
|
|
22
22
|
collabEdit = _ref.collabEdit,
|
|
23
23
|
collabEditProvider = _ref.collabEditProvider,
|
|
24
24
|
presenceProvider = _ref.presenceProvider;
|
|
25
|
-
var cardProvider = (linking === null || linking === void 0
|
|
25
|
+
var cardProvider = (linking === null || linking === void 0 || (_linking$smartLinks = linking.smartLinks) === null || _linking$smartLinks === void 0 ? void 0 : _linking$smartLinks.provider) || smartLinks && smartLinks.provider || UNSAFE_cards && UNSAFE_cards.provider;
|
|
26
26
|
return {
|
|
27
27
|
mediaProvider: media === null || media === void 0 ? void 0 : media.provider,
|
|
28
28
|
emojiProvider: emojiProvider,
|
|
@@ -48,8 +48,8 @@ function sendDurationAnalytics(action, props, getExperienceStore, createAnalytic
|
|
|
48
48
|
}
|
|
49
49
|
if ((_props$featureFlags = props.featureFlags) !== null && _props$featureFlags !== void 0 && _props$featureFlags.ufo) {
|
|
50
50
|
experienceStore = getExperienceStore();
|
|
51
|
-
experienceStore === null || experienceStore === void 0
|
|
52
|
-
experienceStore === null || experienceStore === void 0
|
|
51
|
+
experienceStore === null || experienceStore === void 0 || experienceStore.mark(_ufo.EditorExperience.loadEditor, action, startTime + duration);
|
|
52
|
+
experienceStore === null || experienceStore === void 0 || experienceStore.addMetadata(_ufo.EditorExperience.loadEditor, {
|
|
53
53
|
objectId: objectId
|
|
54
54
|
});
|
|
55
55
|
}
|
|
@@ -46,7 +46,7 @@ function trackEditorActions(editorActions, performanceTracking, handleAnalyticsE
|
|
|
46
46
|
return getValue();
|
|
47
47
|
case 3:
|
|
48
48
|
value = _context.sent;
|
|
49
|
-
if (samplingCounters.success === ((_performanceTracking$2 = performanceTracking === null || performanceTracking === void 0
|
|
49
|
+
if (samplingCounters.success === ((_performanceTracking$2 = performanceTracking === null || performanceTracking === void 0 || (_performanceTracking$3 = performanceTracking.contentRetrievalTracking) === null || _performanceTracking$3 === void 0 ? void 0 : _performanceTracking$3.successSamplingRate) !== null && _performanceTracking$2 !== void 0 ? _performanceTracking$2 : DEFAULT_SAMPLING_RATE)) {
|
|
50
50
|
handleAnalyticsEvent({
|
|
51
51
|
payload: {
|
|
52
52
|
action: _analytics.ACTION.EDITOR_CONTENT_RETRIEVAL_PERFORMED,
|
|
@@ -64,7 +64,7 @@ function trackEditorActions(editorActions, performanceTracking, handleAnalyticsE
|
|
|
64
64
|
case 9:
|
|
65
65
|
_context.prev = 9;
|
|
66
66
|
_context.t0 = _context["catch"](0);
|
|
67
|
-
if (samplingCounters.failure === ((_performanceTracking$4 = performanceTracking === null || performanceTracking === void 0
|
|
67
|
+
if (samplingCounters.failure === ((_performanceTracking$4 = performanceTracking === null || performanceTracking === void 0 || (_performanceTracking$5 = performanceTracking.contentRetrievalTracking) === null || _performanceTracking$5 === void 0 ? void 0 : _performanceTracking$5.failureSamplingRate) !== null && _performanceTracking$4 !== void 0 ? _performanceTracking$4 : DEFAULT_SAMPLING_RATE)) {
|
|
68
68
|
handleAnalyticsEvent({
|
|
69
69
|
payload: {
|
|
70
70
|
action: _analytics.ACTION.EDITOR_CONTENT_RETRIEVAL_PERFORMED,
|
|
@@ -28,7 +28,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
28
28
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
29
29
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
30
30
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
31
|
-
var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
|
|
31
|
+
var ErrorBoundaryWithEditorView = exports.ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
|
|
32
32
|
(0, _inherits2.default)(ErrorBoundaryWithEditorView, _React$Component);
|
|
33
33
|
var _super = _createSuper(ErrorBoundaryWithEditorView);
|
|
34
34
|
function ErrorBoundaryWithEditorView(props) {
|
|
@@ -41,7 +41,7 @@ var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
41
41
|
});
|
|
42
42
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "sendErrorData", /*#__PURE__*/function () {
|
|
43
43
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(analyticsErrorPayload) {
|
|
44
|
-
var _window
|
|
44
|
+
var _window;
|
|
45
45
|
var product, error, errorInfo, errorStack, sharedId, browserInfo, attributes, _this$experienceStore;
|
|
46
46
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
47
47
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -52,7 +52,7 @@ var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
52
52
|
product = _context.sent;
|
|
53
53
|
error = analyticsErrorPayload.error, errorInfo = analyticsErrorPayload.errorInfo, errorStack = analyticsErrorPayload.errorStack;
|
|
54
54
|
sharedId = (0, _uuid.default)();
|
|
55
|
-
browserInfo = ((_window = window) === null || _window === void 0
|
|
55
|
+
browserInfo = ((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) || 'unknown';
|
|
56
56
|
attributes = {
|
|
57
57
|
product: product,
|
|
58
58
|
browserInfo: browserInfo,
|
|
@@ -83,7 +83,7 @@ var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
if (_this.featureFlags.ufo && _this.props.editorView) {
|
|
86
|
-
(_this$experienceStore = _this.experienceStore) === null || _this$experienceStore === void 0
|
|
86
|
+
(_this$experienceStore = _this.experienceStore) === null || _this$experienceStore === void 0 || _this$experienceStore.failAll(_objectSpread(_objectSpread({}, _this.getExperienceMetadata(attributes)), {}, {
|
|
87
87
|
errorStack: errorStack
|
|
88
88
|
}));
|
|
89
89
|
}
|
|
@@ -130,7 +130,7 @@ var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
130
130
|
})));
|
|
131
131
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "fireAnalyticsEvent", function (event) {
|
|
132
132
|
var _this$props$createAna, _this$props;
|
|
133
|
-
(_this$props$createAna = (_this$props = _this.props).createAnalyticsEvent) === null || _this$props$createAna === void 0
|
|
133
|
+
(_this$props$createAna = (_this$props = _this.props).createAnalyticsEvent) === null || _this$props$createAna === void 0 || _this$props$createAna.call(_this$props, event).fire(_consts.editorAnalyticsChannel);
|
|
134
134
|
});
|
|
135
135
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getExperienceMetadata", function (attributes) {
|
|
136
136
|
var _attributes$browserEx;
|
|
@@ -213,10 +213,8 @@ var ErrorBoundaryWithEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
213
213
|
}]);
|
|
214
214
|
return ErrorBoundaryWithEditorView;
|
|
215
215
|
}(_react.default.Component);
|
|
216
|
-
exports.ErrorBoundaryWithEditorView = ErrorBoundaryWithEditorView;
|
|
217
216
|
(0, _defineProperty2.default)(ErrorBoundaryWithEditorView, "defaultProps", {
|
|
218
217
|
rethrow: true,
|
|
219
218
|
errorTracking: true
|
|
220
219
|
});
|
|
221
|
-
var _default = (0, _WithEditorView.WithEditorView)(ErrorBoundaryWithEditorView);
|
|
222
|
-
exports.default = _default;
|
|
220
|
+
var _default = exports.default = (0, _WithEditorView.WithEditorView)(ErrorBoundaryWithEditorView);
|
|
@@ -14,7 +14,7 @@ var _ReactEditorViewInternal = require("./ReactEditorViewInternal");
|
|
|
14
14
|
var _reactIntlNext = require("react-intl-next");
|
|
15
15
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
16
16
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
17
|
-
var ReactEditorView = /*#__PURE__*/function (_BaseReactEditorView) {
|
|
17
|
+
var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_BaseReactEditorView) {
|
|
18
18
|
(0, _inherits2.default)(ReactEditorView, _BaseReactEditorView);
|
|
19
19
|
var _super = _createSuper(ReactEditorView);
|
|
20
20
|
function ReactEditorView() {
|
|
@@ -23,6 +23,4 @@ var ReactEditorView = /*#__PURE__*/function (_BaseReactEditorView) {
|
|
|
23
23
|
}
|
|
24
24
|
return (0, _createClass2.default)(ReactEditorView);
|
|
25
25
|
}(_ReactEditorViewInternal.ReactEditorView);
|
|
26
|
-
exports.
|
|
27
|
-
var _default = (0, _reactIntlNext.injectIntl)(ReactEditorView);
|
|
28
|
-
exports.default = _default;
|
|
26
|
+
var _default = exports.default = (0, _reactIntlNext.injectIntl)(ReactEditorView);
|
|
@@ -5,5 +5,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _uiReact = require("@atlaskit/editor-common/ui-react");
|
|
8
|
-
var _default = _uiReact.ReactEditorViewContext;
|
|
9
|
-
exports.default = _default;
|
|
8
|
+
var _default = exports.default = _uiReact.ReactEditorViewContext;
|
|
@@ -82,11 +82,11 @@ function handleEditorFocus(view) {
|
|
|
82
82
|
view.focus();
|
|
83
83
|
}, 0);
|
|
84
84
|
}
|
|
85
|
-
var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
85
|
+
var ReactEditorView = exports.ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
86
86
|
(0, _inherits2.default)(ReactEditorView, _React$Component);
|
|
87
87
|
var _super = _createSuper(ReactEditorView);
|
|
88
88
|
function ReactEditorView(props, context) {
|
|
89
|
-
var _props$setEditorApi, _props$editorProps
|
|
89
|
+
var _props$setEditorApi, _props$editorProps;
|
|
90
90
|
var _this;
|
|
91
91
|
(0, _classCallCheck2.default)(this, ReactEditorView);
|
|
92
92
|
_this = _super.call(this, props, context);
|
|
@@ -139,7 +139,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
139
139
|
selectionAtStart: !shouldScrollToBottom
|
|
140
140
|
});
|
|
141
141
|
_this.view.updateState(_this.editorState);
|
|
142
|
-
(_this$props$editorPro = (_this$props$editorPro2 = _this.props.editorProps).onChange) === null || _this$props$editorPro === void 0
|
|
142
|
+
(_this$props$editorPro = (_this$props$editorPro2 = _this.props.editorProps).onChange) === null || _this$props$editorPro === void 0 || _this$props$editorPro.call(_this$props$editorPro2, _this.view, {
|
|
143
143
|
source: 'local'
|
|
144
144
|
});
|
|
145
145
|
});
|
|
@@ -270,7 +270,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
270
270
|
startMeasure(_trackTransactions.EVENT_NAME_DISPATCH_TRANSACTION);
|
|
271
271
|
if (_this.transactionTracker.shouldTrackTransaction(_this.transactionTracking)) {
|
|
272
272
|
var _this$experienceStore;
|
|
273
|
-
(_this$experienceStore = _this.experienceStore) === null || _this$experienceStore === void 0
|
|
273
|
+
(_this$experienceStore = _this.experienceStore) === null || _this$experienceStore === void 0 || _this$experienceStore.start(_ufo.EditorExperience.interaction);
|
|
274
274
|
}
|
|
275
275
|
var nodes = (0, _nodes.findChangedNodesFromTransaction)(unsafeTransaction);
|
|
276
276
|
var changedNodesValid = (0, _nodes.validateNodes)(nodes);
|
|
@@ -289,7 +289,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
289
289
|
transactions = _this$view$state$appl.transactions;
|
|
290
290
|
stopMeasure(_trackTransactions.EVENT_NAME_STATE_APPLY, function (duration, startTime) {
|
|
291
291
|
var _this$experienceStore2;
|
|
292
|
-
(_this$experienceStore2 = _this.experienceStore) === null || _this$experienceStore2 === void 0
|
|
292
|
+
(_this$experienceStore2 = _this.experienceStore) === null || _this$experienceStore2 === void 0 || _this$experienceStore2.mark(_ufo.EditorExperience.interaction, 'stateApply', startTime + duration);
|
|
293
293
|
});
|
|
294
294
|
_this.trackValidTransactions();
|
|
295
295
|
if (editorState === oldEditorState) {
|
|
@@ -299,7 +299,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
299
299
|
_this.view.updateState(editorState);
|
|
300
300
|
stopMeasure(_trackTransactions.EVENT_NAME_UPDATE_STATE, function (duration, startTime) {
|
|
301
301
|
var _this$experienceStore3;
|
|
302
|
-
(_this$experienceStore3 = _this.experienceStore) === null || _this$experienceStore3 === void 0
|
|
302
|
+
(_this$experienceStore3 = _this.experienceStore) === null || _this$experienceStore3 === void 0 || _this$experienceStore3.mark(_ufo.EditorExperience.interaction, 'viewUpdateState', startTime + duration);
|
|
303
303
|
});
|
|
304
304
|
_this.pluginInjectionAPI.onEditorViewUpdated({
|
|
305
305
|
newEditorState: editorState,
|
|
@@ -314,7 +314,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
314
314
|
});
|
|
315
315
|
stopMeasure(_trackTransactions.EVENT_NAME_VIEW_STATE_UPDATED, function (duration, startTime) {
|
|
316
316
|
var _this$experienceStore4;
|
|
317
|
-
(_this$experienceStore4 = _this.experienceStore) === null || _this$experienceStore4 === void 0
|
|
317
|
+
(_this$experienceStore4 = _this.experienceStore) === null || _this$experienceStore4 === void 0 || _this$experienceStore4.mark(_ufo.EditorExperience.interaction, 'onEditorViewStateUpdated', startTime + duration);
|
|
318
318
|
});
|
|
319
319
|
if (_this.props.editorProps.onChange && transaction.docChanged) {
|
|
320
320
|
var source = transaction.getMeta('isRemote') ? 'remote' : 'local';
|
|
@@ -323,9 +323,9 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
323
323
|
source: source
|
|
324
324
|
});
|
|
325
325
|
stopMeasure(_trackTransactions.EVENT_NAME_ON_CHANGE, function (duration, startTime) {
|
|
326
|
-
var _this$experienceStore5, _this$props$editorPro3
|
|
327
|
-
(_this$experienceStore5 = _this.experienceStore) === null || _this$experienceStore5 === void 0
|
|
328
|
-
if (((_this$props$editorPro3 = _this.props.editorProps.performanceTracking) === null || _this$props$editorPro3 === void 0
|
|
326
|
+
var _this$experienceStore5, _this$props$editorPro3;
|
|
327
|
+
(_this$experienceStore5 = _this.experienceStore) === null || _this$experienceStore5 === void 0 || _this$experienceStore5.mark(_ufo.EditorExperience.interaction, 'onChange', startTime + duration);
|
|
328
|
+
if (((_this$props$editorPro3 = _this.props.editorProps.performanceTracking) === null || _this$props$editorPro3 === void 0 || (_this$props$editorPro3 = _this$props$editorPro3.onChangeCallbackTracking) === null || _this$props$editorPro3 === void 0 ? void 0 : _this$props$editorPro3.enabled) !== true) {
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
331
|
_this.dispatchAnalyticsEvent({
|
|
@@ -342,8 +342,8 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
342
342
|
_this.editorState = editorState;
|
|
343
343
|
stopMeasure(_trackTransactions.EVENT_NAME_DISPATCH_TRANSACTION, function (duration, startTime) {
|
|
344
344
|
var _this$experienceStore6, _this$experienceStore7;
|
|
345
|
-
(_this$experienceStore6 = _this.experienceStore) === null || _this$experienceStore6 === void 0
|
|
346
|
-
(_this$experienceStore7 = _this.experienceStore) === null || _this$experienceStore7 === void 0
|
|
345
|
+
(_this$experienceStore6 = _this.experienceStore) === null || _this$experienceStore6 === void 0 || _this$experienceStore6.mark(_ufo.EditorExperience.interaction, 'dispatchTransaction', startTime + duration);
|
|
346
|
+
(_this$experienceStore7 = _this.experienceStore) === null || _this$experienceStore7 === void 0 || _this$experienceStore7.success(_ufo.EditorExperience.interaction);
|
|
347
347
|
});
|
|
348
348
|
} else {
|
|
349
349
|
var _this$experienceStore8;
|
|
@@ -365,7 +365,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
365
365
|
}
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
|
-
(_this$experienceStore8 = _this.experienceStore) === null || _this$experienceStore8 === void 0
|
|
368
|
+
(_this$experienceStore8 = _this.experienceStore) === null || _this$experienceStore8 === void 0 || _this$experienceStore8.fail(_ufo.EditorExperience.interaction, {
|
|
369
369
|
reason: 'invalid transaction',
|
|
370
370
|
invalidNodes: invalidNodes.toString()
|
|
371
371
|
});
|
|
@@ -393,11 +393,11 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
393
393
|
});
|
|
394
394
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createEditorView", function (node) {
|
|
395
395
|
(0, _utils.measureRender)(_measureEnum.default.PROSEMIRROR_RENDERED, function (_ref3) {
|
|
396
|
-
var _this$props$
|
|
396
|
+
var _this$props$editorPro4, _proseMirrorRenderedT, _proseMirrorRenderedT2;
|
|
397
397
|
var duration = _ref3.duration,
|
|
398
398
|
startTime = _ref3.startTime,
|
|
399
399
|
distortedDuration = _ref3.distortedDuration;
|
|
400
|
-
var proseMirrorRenderedTracking = (_this$props$
|
|
400
|
+
var proseMirrorRenderedTracking = (_this$props$editorPro4 = _this.props.editorProps) === null || _this$props$editorPro4 === void 0 || (_this$props$editorPro4 = _this$props$editorPro4.performanceTracking) === null || _this$props$editorPro4 === void 0 ? void 0 : _this$props$editorPro4.proseMirrorRenderedTracking;
|
|
401
401
|
var forceSeverityTracking = typeof proseMirrorRenderedTracking === 'undefined' && (0, _utils.shouldForceTracking)();
|
|
402
402
|
_this.proseMirrorRenderedSeverity = !!forceSeverityTracking || proseMirrorRenderedTracking !== null && proseMirrorRenderedTracking !== void 0 && proseMirrorRenderedTracking.trackSeverity ? (0, _utils.getAnalyticsEventSeverity)(duration, (_proseMirrorRenderedT = proseMirrorRenderedTracking === null || proseMirrorRenderedTracking === void 0 ? void 0 : proseMirrorRenderedTracking.severityNormalThreshold) !== null && _proseMirrorRenderedT !== void 0 ? _proseMirrorRenderedT : _consts.PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD, (_proseMirrorRenderedT2 = proseMirrorRenderedTracking === null || proseMirrorRenderedTracking === void 0 ? void 0 : proseMirrorRenderedTracking.severityDegradedThreshold) !== null && _proseMirrorRenderedT2 !== void 0 ? _proseMirrorRenderedT2 : _consts.PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD) : undefined;
|
|
403
403
|
if (_this.view) {
|
|
@@ -421,9 +421,9 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
421
421
|
});
|
|
422
422
|
if (!distortedDuration) {
|
|
423
423
|
var _this$experienceStore9;
|
|
424
|
-
(_this$experienceStore9 = _this.experienceStore) === null || _this$experienceStore9 === void 0
|
|
424
|
+
(_this$experienceStore9 = _this.experienceStore) === null || _this$experienceStore9 === void 0 || _this$experienceStore9.mark(_ufo.EditorExperience.loadEditor, _analytics.ACTION.PROSEMIRROR_RENDERED, startTime + duration);
|
|
425
425
|
}
|
|
426
|
-
(_this$experienceStore10 = _this.experienceStore) === null || _this$experienceStore10 === void 0
|
|
426
|
+
(_this$experienceStore10 = _this.experienceStore) === null || _this$experienceStore10 === void 0 || _this$experienceStore10.addMetadata(_ufo.EditorExperience.loadEditor, {
|
|
427
427
|
nodes: nodes,
|
|
428
428
|
ttfb: ttfb
|
|
429
429
|
});
|
|
@@ -460,11 +460,11 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
460
460
|
reliabilityInterval: _ufo.RELIABILITY_INTERVAL
|
|
461
461
|
});
|
|
462
462
|
_this.reliabilityInterval = window.setInterval(function () {
|
|
463
|
-
var _this$experienceStore11
|
|
464
|
-
(_this$experienceStore11 = _this.experienceStore) === null || _this$experienceStore11 === void 0
|
|
465
|
-
var _this$
|
|
466
|
-
(_this$
|
|
467
|
-
(_this$
|
|
463
|
+
var _this$experienceStore11;
|
|
464
|
+
(_this$experienceStore11 = _this.experienceStore) === null || _this$experienceStore11 === void 0 || (_this$experienceStore11 = _this$experienceStore11.success(_ufo.EditorExperience.editSession)) === null || _this$experienceStore11 === void 0 || _this$experienceStore11.finally(function () {
|
|
465
|
+
var _this$experienceStore12, _this$experienceStore13;
|
|
466
|
+
(_this$experienceStore12 = _this.experienceStore) === null || _this$experienceStore12 === void 0 || _this$experienceStore12.start(_ufo.EditorExperience.editSession);
|
|
467
|
+
(_this$experienceStore13 = _this.experienceStore) === null || _this$experienceStore13 === void 0 || _this$experienceStore13.addMetadata(_ufo.EditorExperience.editSession, {
|
|
468
468
|
reliabilityInterval: _ufo.RELIABILITY_INTERVAL
|
|
469
469
|
});
|
|
470
470
|
});
|
|
@@ -536,7 +536,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
536
536
|
getEditorState: _this.getEditorState,
|
|
537
537
|
getEditorView: _this.getEditorView
|
|
538
538
|
});
|
|
539
|
-
(_props$setEditorApi = props.setEditorApi) === null || _props$setEditorApi === void 0
|
|
539
|
+
(_props$setEditorApi = props.setEditorApi) === null || _props$setEditorApi === void 0 || _props$setEditorApi.call(props, _this.pluginInjectionAPI.api());
|
|
540
540
|
_this.eventDispatcher = new _eventDispatcher.EventDispatcher();
|
|
541
541
|
_this.dispatch = (0, _eventDispatcher.createDispatch)(_this.eventDispatcher);
|
|
542
542
|
_this.errorReporter = (0, _createEditor.createErrorReporter)(props.editorProps.errorReporterHandler);
|
|
@@ -577,7 +577,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
577
577
|
// ED-16320: Check for explicit disable so that by default
|
|
578
578
|
// it will still be enabled as it currently is. Then we can
|
|
579
579
|
// progressively opt out synthetic tenants.
|
|
580
|
-
var isEditorStartedExplicitlyDisabled = ((_props$editorProps = props.editorProps) === null || _props$editorProps === void 0
|
|
580
|
+
var isEditorStartedExplicitlyDisabled = ((_props$editorProps = props.editorProps) === null || _props$editorProps === void 0 || (_props$editorProps = _props$editorProps.performanceTracking) === null || _props$editorProps === void 0 || (_props$editorProps = _props$editorProps.startedTracking) === null || _props$editorProps === void 0 ? void 0 : _props$editorProps.enabled) === false;
|
|
581
581
|
if (!isEditorStartedExplicitlyDisabled) {
|
|
582
582
|
_this.dispatchAnalyticsEvent({
|
|
583
583
|
action: _analytics.ACTION.STARTED,
|
|
@@ -594,8 +594,8 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
594
594
|
(0, _createClass2.default)(ReactEditorView, [{
|
|
595
595
|
key: "transactionTracking",
|
|
596
596
|
get: function get() {
|
|
597
|
-
var _this$props$
|
|
598
|
-
return (_this$props$
|
|
597
|
+
var _this$props$editorPro5, _this$props$editorPro6;
|
|
598
|
+
return (_this$props$editorPro5 = (_this$props$editorPro6 = this.props.editorProps.performanceTracking) === null || _this$props$editorPro6 === void 0 ? void 0 : _this$props$editorPro6.transactionTracking) !== null && _this$props$editorPro5 !== void 0 ? _this$props$editorPro5 : {
|
|
599
599
|
enabled: false
|
|
600
600
|
};
|
|
601
601
|
}
|
|
@@ -614,11 +614,11 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
614
614
|
}, {
|
|
615
615
|
key: "isTransactionTrackingExplicitlyDisabled",
|
|
616
616
|
value: function isTransactionTrackingExplicitlyDisabled() {
|
|
617
|
-
var _this$props$
|
|
617
|
+
var _this$props$editorPro7;
|
|
618
618
|
// ED-16320: Check for explicit disable so that by default
|
|
619
619
|
// it will still be enabled as it currently is. Then we can
|
|
620
620
|
// progressively opt out synthetic tenants.
|
|
621
|
-
return ((_this$props$
|
|
621
|
+
return ((_this$props$editorPro7 = this.props.editorProps) === null || _this$props$editorPro7 === void 0 || (_this$props$editorPro7 = _this$props$editorPro7.performanceTracking) === null || _this$props$editorPro7 === void 0 || (_this$props$editorPro7 = _this$props$editorPro7.transactionTracking) === null || _this$props$editorPro7 === void 0 ? void 0 : _this$props$editorPro7.enabled) === false;
|
|
622
622
|
}
|
|
623
623
|
}, {
|
|
624
624
|
key: "UNSAFE_componentWillReceiveProps",
|
|
@@ -767,8 +767,8 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
767
767
|
}, {
|
|
768
768
|
key: "render",
|
|
769
769
|
value: function render() {
|
|
770
|
-
var _this$props$
|
|
771
|
-
var renderTracking = (_this$props$
|
|
770
|
+
var _this$props$editorPro8;
|
|
771
|
+
var renderTracking = (_this$props$editorPro8 = this.props.editorProps.performanceTracking) === null || _this$props$editorPro8 === void 0 || (_this$props$editorPro8 = _this$props$editorPro8.renderTracking) === null || _this$props$editorPro8 === void 0 ? void 0 : _this$props$editorPro8.reactEditorView;
|
|
772
772
|
var renderTrackingEnabled = renderTracking === null || renderTracking === void 0 ? void 0 : renderTracking.enabled;
|
|
773
773
|
var useShallow = renderTracking === null || renderTracking === void 0 ? void 0 : renderTracking.useShallow;
|
|
774
774
|
return /*#__PURE__*/_react.default.createElement(_ReactEditorViewContext.default.Provider, {
|
|
@@ -795,7 +795,6 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
795
795
|
}]);
|
|
796
796
|
return ReactEditorView;
|
|
797
797
|
}(_react.default.Component);
|
|
798
|
-
exports.ReactEditorView = ReactEditorView;
|
|
799
798
|
(0, _defineProperty2.default)(ReactEditorView, "contextTypes", {
|
|
800
799
|
getAtlaskitAnalyticsEventHandlers: _propTypes.default.func
|
|
801
800
|
});
|
|
@@ -12,5 +12,4 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
12
12
|
function ReactEditorViewEditor(props) {
|
|
13
13
|
return /*#__PURE__*/_react.default.createElement(_ReactEditorViewInternal.ReactEditorView, props);
|
|
14
14
|
}
|
|
15
|
-
var _default = (0, _reactIntlNext.injectIntl)(ReactEditorViewEditor);
|
|
16
|
-
exports.default = _default;
|
|
15
|
+
var _default = exports.default = (0, _reactIntlNext.injectIntl)(ReactEditorViewEditor);
|
|
@@ -8,7 +8,7 @@ exports.WithEditorView = void 0;
|
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _EditorContext = require("../ui/EditorContext");
|
|
11
|
-
var WithEditorView = function WithEditorView(WrappedComponent) {
|
|
11
|
+
var WithEditorView = exports.WithEditorView = function WithEditorView(WrappedComponent) {
|
|
12
12
|
var _WithFeatureFlags = function _WithFeatureFlags(props) {
|
|
13
13
|
var _useEditorContext = (0, _EditorContext.useEditorContext)(),
|
|
14
14
|
editorActions = _useEditorContext.editorActions;
|
|
@@ -17,5 +17,4 @@ var WithEditorView = function WithEditorView(WrappedComponent) {
|
|
|
17
17
|
}));
|
|
18
18
|
};
|
|
19
19
|
return _WithFeatureFlags;
|
|
20
|
-
};
|
|
21
|
-
exports.WithEditorView = WithEditorView;
|
|
20
|
+
};
|
|
@@ -4,9 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD = exports.PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD = exports.DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS = void 0;
|
|
7
|
-
var PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
8
|
-
exports.
|
|
9
|
-
var
|
|
10
|
-
exports.PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD = PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD;
|
|
11
|
-
var DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS = 100;
|
|
12
|
-
exports.DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS = DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS;
|
|
7
|
+
var PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD = exports.PROSEMIRROR_RENDERED_NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
8
|
+
var PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD = exports.PROSEMIRROR_RENDERED_DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
9
|
+
var DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS = exports.DEFAULT_SAMPLING_RATE_VALID_TRANSACTIONS = 100;
|
|
@@ -32,7 +32,7 @@ function getSpellCheck(featureFlags) {
|
|
|
32
32
|
* which is used by both current and archv3 editors.
|
|
33
33
|
*/
|
|
34
34
|
function createFeatureFlagsFromProps(props) {
|
|
35
|
-
var _props$allowLayouts, _props$performanceTra, _props$
|
|
35
|
+
var _props$allowLayouts, _props$performanceTra, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$featureFlags15, _props$featureFlags16, _props$featureFlags17, _props$featureFlags18, _props$collabEdit, _props$collabEdit2, _props$featureFlags19, _props$featureFlags20, _props$featureFlags21, _props$featureFlags22, _props$featureFlags23, _props$featureFlags24, _props$featureFlags25, _props$featureFlags26, _props$featureFlags27;
|
|
36
36
|
var normalizedFeatureFlags = (0, _normalizeFeatureFlags.normalizeFeatureFlags)(props.featureFlags);
|
|
37
37
|
return _objectSpread(_objectSpread({}, normalizedFeatureFlags), {}, {
|
|
38
38
|
newInsertionBehaviour: props.allowNewInsertionBehaviour,
|
|
@@ -43,7 +43,7 @@ function createFeatureFlagsFromProps(props) {
|
|
|
43
43
|
addColumnWithCustomStep: !props.allowTables || typeof props.allowTables === 'boolean' ? false : Boolean(props.allowTables.allowAddColumnWithCustomStep),
|
|
44
44
|
singleLayout: (0, _typeof2.default)(props.allowLayouts) === 'object' && !!((_props$allowLayouts = props.allowLayouts) !== null && _props$allowLayouts !== void 0 && _props$allowLayouts.UNSAFE_allowSingleColumnLayout),
|
|
45
45
|
undoRedoButtons: props.allowUndoRedoButtons,
|
|
46
|
-
catchAllTracking: (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0
|
|
46
|
+
catchAllTracking: (_props$performanceTra = props.performanceTracking) === null || _props$performanceTra === void 0 || (_props$performanceTra = _props$performanceTra.catchAllTracking) === null || _props$performanceTra === void 0 ? void 0 : _props$performanceTra.enabled,
|
|
47
47
|
extendFloatingToolbar: Boolean((0, _typeof2.default)(props.allowExtension) === 'object' && ((_props$allowExtension = props.allowExtension) === null || _props$allowExtension === void 0 ? void 0 : _props$allowExtension.allowExtendFloatingToolbars)),
|
|
48
48
|
showAvatarGroupAsPlugin: Boolean(typeof ((_props$featureFlags = props.featureFlags) === null || _props$featureFlags === void 0 ? void 0 : _props$featureFlags.showAvatarGroupAsPlugin) === 'boolean' ? !!((_props$featureFlags2 = props.featureFlags) !== null && _props$featureFlags2 !== void 0 && _props$featureFlags2.showAvatarGroupAsPlugin) : false),
|
|
49
49
|
errorBoundaryDocStructure: Boolean(typeof ((_props$featureFlags3 = props.featureFlags) === null || _props$featureFlags3 === void 0 ? void 0 : _props$featureFlags3.useErrorBoundaryDocStructure) === 'boolean' ? !!((_props$featureFlags4 = props.featureFlags) !== null && _props$featureFlags4 !== void 0 && _props$featureFlags4.useErrorBoundaryDocStructure) : false),
|
|
@@ -5,11 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.editorMessages = void 0;
|
|
7
7
|
var _reactIntlNext = require("react-intl-next");
|
|
8
|
-
var editorMessages = (0, _reactIntlNext.defineMessages)({
|
|
8
|
+
var editorMessages = exports.editorMessages = (0, _reactIntlNext.defineMessages)({
|
|
9
9
|
editorAssistiveLabel: {
|
|
10
10
|
id: 'fabric.editor.editorAssistiveLabel',
|
|
11
11
|
defaultMessage: 'Main content area, start typing to enter text.',
|
|
12
12
|
description: 'Text that is read out by screen reader when the main editor is in focus'
|
|
13
13
|
}
|
|
14
|
-
});
|
|
15
|
-
exports.editorMessages = editorMessages;
|
|
14
|
+
});
|
package/dist/cjs/editor.js
CHANGED
|
@@ -28,7 +28,7 @@ var ComposableEditorWrapper = function ComposableEditorWrapper(_ref) {
|
|
|
28
28
|
preset: preset
|
|
29
29
|
}, props));
|
|
30
30
|
};
|
|
31
|
-
var Editor = /*#__PURE__*/function (_React$Component) {
|
|
31
|
+
var Editor = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
32
32
|
(0, _inherits2.default)(Editor, _React$Component);
|
|
33
33
|
var _super = _createSuper(Editor);
|
|
34
34
|
function Editor(props) {
|
|
@@ -48,7 +48,6 @@ var Editor = /*#__PURE__*/function (_React$Component) {
|
|
|
48
48
|
}]);
|
|
49
49
|
return Editor;
|
|
50
50
|
}(_react.default.Component);
|
|
51
|
-
exports.default = Editor;
|
|
52
51
|
(0, _defineProperty2.default)(Editor, "defaultProps", {
|
|
53
52
|
appearance: 'comment',
|
|
54
53
|
disabled: false,
|
|
@@ -53,9 +53,7 @@ var _pluginKey = require("@atlaskit/editor-plugin-table/plugin-key");
|
|
|
53
53
|
* @deprecated [ED-14688] - used during the table viz project and not used anymore
|
|
54
54
|
* will be removed in a future version of `@atlaskit/editor-core`
|
|
55
55
|
*/
|
|
56
|
-
var tablePluginKey = _pluginKey.pluginKey;
|
|
57
|
-
exports.
|
|
58
|
-
var EmitterEvents = {
|
|
56
|
+
var tablePluginKey = exports.tablePluginKey = _pluginKey.pluginKey;
|
|
57
|
+
var EmitterEvents = exports.EmitterEvents = {
|
|
59
58
|
TABLE_DELETED: 'TABLE_DELETED'
|
|
60
|
-
};
|
|
61
|
-
exports.EmitterEvents = EmitterEvents;
|
|
59
|
+
};
|
package/dist/cjs/i18n/cs.js
CHANGED
|
@@ -12,7 +12,7 @@ exports.default = void 0;
|
|
|
12
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
13
|
*/
|
|
14
14
|
//Czech
|
|
15
|
-
var _default = {
|
|
15
|
+
var _default = exports.default = {
|
|
16
16
|
'fabric.editor.addAltText': 'Alternativní text',
|
|
17
17
|
'fabric.editor.addImageBorder': 'Přidat ohraničení',
|
|
18
18
|
'fabric.editor.alignCenter': 'Zarovnat na střed',
|
|
@@ -144,5 +144,4 @@ var _default = {
|
|
|
144
144
|
'fabric.editor.warning': 'Varování',
|
|
145
145
|
'fabric.editor.wrapLeft': 'Sbalit vpravo',
|
|
146
146
|
'fabric.editor.wrapRight': 'Sbalit vlevo'
|
|
147
|
-
};
|
|
148
|
-
exports.default = _default;
|
|
147
|
+
};
|