@atlaskit/editor-core 188.0.11 → 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 +6 -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 -15
- package/dist/cjs/plugins/mentions/index.js +4 -5
- 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 +1 -2
- package/dist/cjs/plugins/mentions/ui/ToolbarMention/index.js +1 -2
- 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 +1 -2
- 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/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/index.js +3 -3
- 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/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/package.json +1 -1
|
@@ -171,5 +171,4 @@ var Replace = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
171
171
|
}]);
|
|
172
172
|
return Replace;
|
|
173
173
|
}(_react.default.PureComponent);
|
|
174
|
-
var _default = (0, _reactIntlNext.injectIntl)(Replace);
|
|
175
|
-
exports.default = _default;
|
|
174
|
+
var _default = exports.default = (0, _reactIntlNext.injectIntl)(Replace);
|
|
@@ -11,11 +11,10 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
11
11
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
12
|
var _templateObject;
|
|
13
13
|
/** @jsx jsx */
|
|
14
|
-
var replaceSectionButtonStyles = (0, _react.css)({
|
|
14
|
+
var replaceSectionButtonStyles = exports.replaceSectionButtonStyles = (0, _react.css)({
|
|
15
15
|
marginLeft: '4px'
|
|
16
16
|
});
|
|
17
|
-
exports.
|
|
18
|
-
var ruleStyles = (0, _react.css)({
|
|
17
|
+
var ruleStyles = exports.ruleStyles = (0, _react.css)({
|
|
19
18
|
width: '100%',
|
|
20
19
|
border: 'none',
|
|
21
20
|
backgroundColor: "".concat("var(--ds-border, ".concat(_colors.N30A, ")")),
|
|
@@ -23,18 +22,15 @@ var ruleStyles = (0, _react.css)({
|
|
|
23
22
|
height: '1px',
|
|
24
23
|
borderRadius: '1px'
|
|
25
24
|
});
|
|
26
|
-
exports.
|
|
27
|
-
var wrapperStyles = (0, _react.css)({
|
|
25
|
+
var wrapperStyles = exports.wrapperStyles = (0, _react.css)({
|
|
28
26
|
display: 'flex',
|
|
29
27
|
flexDirection: 'column',
|
|
30
28
|
'> *:not(#replace-hr-element)': {
|
|
31
29
|
margin: '0px 4px'
|
|
32
30
|
}
|
|
33
31
|
});
|
|
34
|
-
exports.
|
|
35
|
-
var
|
|
36
|
-
exports.sectionWrapperStyles = sectionWrapperStyles;
|
|
37
|
-
var countStyles = (0, _react.css)({
|
|
32
|
+
var sectionWrapperStyles = exports.sectionWrapperStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n\n & > * {\n display: inline-flex;\n height: 32px;\n flex: 0 0 auto;\n }\n\n & > [data-ds--text-field--container] {\n display: flex;\n flex: 1 1 auto;\n }\n"])));
|
|
33
|
+
var countStyles = exports.countStyles = (0, _react.css)({
|
|
38
34
|
color: "".concat("var(--ds-text-subtlest, ".concat(_colors.N60, ")")),
|
|
39
35
|
fontSize: "".concat((0, _editorSharedStyles.relativeFontSizeToBase16)(12)),
|
|
40
36
|
flex: '0 0 auto',
|
|
@@ -42,5 +38,4 @@ var countStyles = (0, _react.css)({
|
|
|
42
38
|
alignItems: 'center',
|
|
43
39
|
marginLeft: '4px',
|
|
44
40
|
marginRight: '8px'
|
|
45
|
-
});
|
|
46
|
-
exports.countStyles = countStyles;
|
|
41
|
+
});
|
|
@@ -307,5 +307,4 @@ var BatchDecorations = /*#__PURE__*/function () {
|
|
|
307
307
|
return BatchDecorations;
|
|
308
308
|
}();
|
|
309
309
|
var batchDecorations = new BatchDecorations();
|
|
310
|
-
var _default = batchDecorations;
|
|
311
|
-
exports.default = _default;
|
|
310
|
+
var _default = exports.default = batchDecorations;
|
|
@@ -19,15 +19,14 @@ function getSelectedText(selection) {
|
|
|
19
19
|
}
|
|
20
20
|
return text;
|
|
21
21
|
}
|
|
22
|
-
var createDecorations = function createDecorations(selectedIndex, matches) {
|
|
22
|
+
var createDecorations = exports.createDecorations = function createDecorations(selectedIndex, matches) {
|
|
23
23
|
return matches.map(function (_ref, i) {
|
|
24
24
|
var start = _ref.start,
|
|
25
25
|
end = _ref.end;
|
|
26
26
|
return createDecoration(start, end, i === selectedIndex);
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
exports.
|
|
30
|
-
var createDecoration = function createDecoration(start, end, isSelected) {
|
|
29
|
+
var createDecoration = exports.createDecoration = function createDecoration(start, end, isSelected) {
|
|
31
30
|
var className = _styles.searchMatchClass;
|
|
32
31
|
if (isSelected) {
|
|
33
32
|
className += " ".concat(_styles.selectedSearchMatchClass);
|
|
@@ -36,7 +35,6 @@ var createDecoration = function createDecoration(start, end, isSelected) {
|
|
|
36
35
|
class: className
|
|
37
36
|
});
|
|
38
37
|
};
|
|
39
|
-
exports.createDecoration = createDecoration;
|
|
40
38
|
function findMatches(content, searchText, shouldMatchCase) {
|
|
41
39
|
var contentIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
42
40
|
var matches = [];
|
|
@@ -109,23 +107,20 @@ function findSearchIndex(selectionPos, matches) {
|
|
|
109
107
|
return match.start >= selectionPos;
|
|
110
108
|
}), 0);
|
|
111
109
|
}
|
|
112
|
-
var nextIndex = function nextIndex(currentIndex, total) {
|
|
110
|
+
var nextIndex = exports.nextIndex = function nextIndex(currentIndex, total) {
|
|
113
111
|
return (currentIndex + 1) % total;
|
|
114
112
|
};
|
|
115
|
-
exports.
|
|
116
|
-
var prevIndex = function prevIndex(currentIndex, total) {
|
|
113
|
+
var prevIndex = exports.prevIndex = function prevIndex(currentIndex, total) {
|
|
117
114
|
return (currentIndex - 1 + total) % total;
|
|
118
115
|
};
|
|
119
|
-
exports.
|
|
120
|
-
var getSelectionForMatch = function getSelectionForMatch(selection, doc, index, matches) {
|
|
116
|
+
var getSelectionForMatch = exports.getSelectionForMatch = function getSelectionForMatch(selection, doc, index, matches) {
|
|
121
117
|
var offset = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
122
118
|
if (matches[index]) {
|
|
123
119
|
return _state.TextSelection.create(doc, matches[index].start + offset);
|
|
124
120
|
}
|
|
125
121
|
return selection;
|
|
126
122
|
};
|
|
127
|
-
exports.
|
|
128
|
-
var findDecorationFromMatch = function findDecorationFromMatch(decorationSet, match) {
|
|
123
|
+
var findDecorationFromMatch = exports.findDecorationFromMatch = function findDecorationFromMatch(decorationSet, match) {
|
|
129
124
|
if (!match) {
|
|
130
125
|
return;
|
|
131
126
|
}
|
|
@@ -137,8 +132,7 @@ var findDecorationFromMatch = function findDecorationFromMatch(decorationSet, ma
|
|
|
137
132
|
return decoration.from === match.start && decoration.to === match.end;
|
|
138
133
|
}) : undefined;
|
|
139
134
|
};
|
|
140
|
-
exports.
|
|
141
|
-
var removeDecorationsFromSet = function removeDecorationsFromSet(decorationSet, decorationsToRemove, doc) {
|
|
135
|
+
var removeDecorationsFromSet = exports.removeDecorationsFromSet = function removeDecorationsFromSet(decorationSet, decorationsToRemove, doc) {
|
|
142
136
|
var prevDecorations = decorationSet.find();
|
|
143
137
|
|
|
144
138
|
// it is essential that we copy the decorations otherwise in some rare cases
|
|
@@ -162,8 +156,7 @@ var removeDecorationsFromSet = function removeDecorationsFromSet(decorationSet,
|
|
|
162
156
|
}
|
|
163
157
|
return decorationSet;
|
|
164
158
|
};
|
|
165
|
-
exports.
|
|
166
|
-
var removeMatchesFromSet = function removeMatchesFromSet(decorationSet, matches, doc) {
|
|
159
|
+
var removeMatchesFromSet = exports.removeMatchesFromSet = function removeMatchesFromSet(decorationSet, matches, doc) {
|
|
167
160
|
var decorationsToRemove = matches.filter(function (match) {
|
|
168
161
|
return !!match;
|
|
169
162
|
}).map(function (match) {
|
|
@@ -182,8 +175,7 @@ var removeMatchesFromSet = function removeMatchesFromSet(decorationSet, matches,
|
|
|
182
175
|
* These decorations have been lost by Prosemirror during an over eager decoration removal
|
|
183
176
|
* We need to be smart to cope with thousands of decorations without crashing everything
|
|
184
177
|
*/
|
|
185
|
-
exports.
|
|
186
|
-
var findLostAdjacentDecorations = function findLostAdjacentDecorations(decorationsToRemove, prevDecorations, newDecorations) {
|
|
178
|
+
var findLostAdjacentDecorations = exports.findLostAdjacentDecorations = function findLostAdjacentDecorations(decorationsToRemove, prevDecorations, newDecorations) {
|
|
187
179
|
var lostDecorations = [];
|
|
188
180
|
if (prevDecorations.length - decorationsToRemove.length > newDecorations.length) {
|
|
189
181
|
var position = decorationsToRemove.length > 0 ? decorationsToRemove[0].from : 0;
|
|
@@ -197,49 +189,50 @@ var findLostAdjacentDecorations = function findLostAdjacentDecorations(decoratio
|
|
|
197
189
|
var foundAll = false;
|
|
198
190
|
var newDecorationsIdxOffset = 0;
|
|
199
191
|
var _loop = function _loop() {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}
|
|
208
|
-
var j = i + newDecorationsIdxOffset;
|
|
209
|
-
|
|
210
|
-
// this is a lost decoration
|
|
211
|
-
if (j >= newDecorationsToCheck.length) {
|
|
212
|
-
uniqueInPrev.push(prevDecoration);
|
|
213
|
-
if (uniqueInPrev.length === numToFind) {
|
|
214
|
-
foundAll = true;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
for (; j < newDecorationsToCheck.length; j++) {
|
|
218
|
-
var newDecoration = newDecorationsToCheck[j];
|
|
219
|
-
|
|
220
|
-
// decoration found in both arrays, skip and continue
|
|
221
|
-
if (prevDecoration.from === newDecoration.from) {
|
|
222
|
-
break;
|
|
192
|
+
var prevDecoration = prevDecorationsToCheck[i];
|
|
193
|
+
// this was a legit removal, skip and continue
|
|
194
|
+
if (decorationsToRemove.find(function (decoration) {
|
|
195
|
+
return decoration.from === prevDecoration.from;
|
|
196
|
+
})) {
|
|
197
|
+
newDecorationsIdxOffset -= 1;
|
|
198
|
+
return 0; // continue
|
|
223
199
|
}
|
|
200
|
+
var j = i + newDecorationsIdxOffset;
|
|
224
201
|
|
|
225
202
|
// this is a lost decoration
|
|
226
|
-
if (
|
|
203
|
+
if (j >= newDecorationsToCheck.length) {
|
|
227
204
|
uniqueInPrev.push(prevDecoration);
|
|
228
|
-
newDecorationsIdxOffset -= 1;
|
|
229
205
|
if (uniqueInPrev.length === numToFind) {
|
|
230
206
|
foundAll = true;
|
|
231
207
|
}
|
|
232
|
-
break;
|
|
233
208
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
209
|
+
for (; j < newDecorationsToCheck.length; j++) {
|
|
210
|
+
var newDecoration = newDecorationsToCheck[j];
|
|
211
|
+
|
|
212
|
+
// decoration found in both arrays, skip and continue
|
|
213
|
+
if (prevDecoration.from === newDecoration.from) {
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// this is a lost decoration
|
|
218
|
+
if (newDecoration.from > prevDecoration.from || j === newDecorationsToCheck.length - 1) {
|
|
219
|
+
uniqueInPrev.push(prevDecoration);
|
|
220
|
+
newDecorationsIdxOffset -= 1;
|
|
221
|
+
if (uniqueInPrev.length === numToFind) {
|
|
222
|
+
foundAll = true;
|
|
223
|
+
}
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
if (foundAll) {
|
|
228
|
+
return 1; // break
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
_ret;
|
|
239
232
|
for (var i = 0; i < prevDecorationsToCheck.length; i++) {
|
|
240
|
-
|
|
241
|
-
if (_ret ===
|
|
242
|
-
if (_ret ===
|
|
233
|
+
_ret = _loop();
|
|
234
|
+
if (_ret === 0) continue;
|
|
235
|
+
if (_ret === 1) break;
|
|
243
236
|
}
|
|
244
237
|
|
|
245
238
|
// make sure we ignore any that we wanted to delete
|
|
@@ -256,8 +249,7 @@ var findLostAdjacentDecorations = function findLostAdjacentDecorations(decoratio
|
|
|
256
249
|
* Searches through array in bumps of 100 to return the index of the first
|
|
257
250
|
* decoration whose 'from' value is before or equal to the position
|
|
258
251
|
*/
|
|
259
|
-
exports.
|
|
260
|
-
var findIndexBeforePosition = function findIndexBeforePosition(items, position) {
|
|
252
|
+
var findIndexBeforePosition = exports.findIndexBeforePosition = function findIndexBeforePosition(items, position) {
|
|
261
253
|
// jump in batches to cope with arrays with thousands of decorations
|
|
262
254
|
var increment = 100;
|
|
263
255
|
var index = 0;
|
|
@@ -289,12 +281,10 @@ var findIndexBeforePosition = function findIndexBeforePosition(items, position)
|
|
|
289
281
|
*
|
|
290
282
|
* **Note:** Match state received here is after step has been applied.
|
|
291
283
|
*/
|
|
292
|
-
exports.
|
|
293
|
-
var isMatchAffectedByStep = function isMatchAffectedByStep(match, step, tr) {
|
|
284
|
+
var isMatchAffectedByStep = exports.isMatchAffectedByStep = function isMatchAffectedByStep(match, step, tr) {
|
|
294
285
|
var from = step.from,
|
|
295
286
|
to = step.to,
|
|
296
287
|
slice = step.slice;
|
|
297
288
|
var sliceSize = slice.content.size;
|
|
298
289
|
return from + sliceSize >= match.start && to - sliceSize <= match.end || tr.mapping.map(from) + sliceSize >= match.start && tr.mapping.map(to) - sliceSize <= match.end;
|
|
299
|
-
};
|
|
300
|
-
exports.isMatchAffectedByStep = isMatchAffectedByStep;
|
|
290
|
+
};
|
|
@@ -5,5 +5,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.pluginKey = void 0;
|
|
7
7
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
8
|
-
var pluginKey = new _state.PluginKey('fragmentMarkPlugin');
|
|
9
|
-
exports.pluginKey = pluginKey;
|
|
8
|
+
var pluginKey = exports.pluginKey = new _state.PluginKey('fragmentMarkPlugin');
|
|
@@ -36,7 +36,7 @@ var getNodesSupportingFragmentMark = function getNodesSupportingFragmentMark(sch
|
|
|
36
36
|
/**
|
|
37
37
|
* Ensures presence of `fragment` mark on certain node types and the uniqueness of their `localId` attributes
|
|
38
38
|
*/
|
|
39
|
-
var createPlugin = function createPlugin(dispatch) {
|
|
39
|
+
var createPlugin = exports.createPlugin = function createPlugin(dispatch) {
|
|
40
40
|
return new _safePlugin.SafePlugin({
|
|
41
41
|
key: pluginKey,
|
|
42
42
|
appendTransaction: function appendTransaction(transactions, _oldState, newState) {
|
|
@@ -140,5 +140,4 @@ var createPlugin = function createPlugin(dispatch) {
|
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
|
-
};
|
|
144
|
-
exports.createPlugin = createPlugin;
|
|
143
|
+
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.openHelpCommand = exports.closeHelpCommand = void 0;
|
|
7
7
|
var _pluginKey = require("./plugin-key");
|
|
8
|
-
var openHelpCommand = function openHelpCommand(tr, dispatch) {
|
|
8
|
+
var openHelpCommand = exports.openHelpCommand = function openHelpCommand(tr, dispatch) {
|
|
9
9
|
tr = tr.setMeta(_pluginKey.pluginKey, true);
|
|
10
10
|
if (dispatch) {
|
|
11
11
|
dispatch(tr);
|
|
@@ -13,9 +13,7 @@ var openHelpCommand = function openHelpCommand(tr, dispatch) {
|
|
|
13
13
|
}
|
|
14
14
|
return false;
|
|
15
15
|
};
|
|
16
|
-
exports.
|
|
17
|
-
var closeHelpCommand = function closeHelpCommand(tr, dispatch) {
|
|
16
|
+
var closeHelpCommand = exports.closeHelpCommand = function closeHelpCommand(tr, dispatch) {
|
|
18
17
|
tr = tr.setMeta(_pluginKey.pluginKey, false);
|
|
19
18
|
dispatch(tr);
|
|
20
|
-
};
|
|
21
|
-
exports.closeHelpCommand = closeHelpCommand;
|
|
19
|
+
};
|
|
@@ -61,7 +61,7 @@ var helpDialog = function helpDialog(_ref) {
|
|
|
61
61
|
name: 'helpDialogKeymap',
|
|
62
62
|
plugin: function plugin() {
|
|
63
63
|
var _api$analytics;
|
|
64
|
-
return keymapPlugin(api === null || api === void 0
|
|
64
|
+
return keymapPlugin(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions);
|
|
65
65
|
}
|
|
66
66
|
}];
|
|
67
67
|
},
|
|
@@ -84,7 +84,7 @@ var helpDialog = function helpDialog(_ref) {
|
|
|
84
84
|
var _api$analytics2;
|
|
85
85
|
var tr = insert('');
|
|
86
86
|
(0, _commands.openHelpCommand)(tr);
|
|
87
|
-
api === null || api === void 0
|
|
87
|
+
api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 || _api$analytics2.actions.attachAnalyticsEvent({
|
|
88
88
|
action: _analytics.ACTION.HELP_OPENED,
|
|
89
89
|
actionSubject: _analytics.ACTION_SUBJECT.HELP,
|
|
90
90
|
actionSubjectId: _analytics.ACTION_SUBJECT_ID.HELP_QUICK_INSERT,
|
|
@@ -120,7 +120,7 @@ var keymapPlugin = function keymapPlugin(editorAnalyticsAPI) {
|
|
|
120
120
|
var tr = state.tr;
|
|
121
121
|
var isVisible = tr.getMeta(_pluginKey.pluginKey);
|
|
122
122
|
if (!isVisible) {
|
|
123
|
-
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0
|
|
123
|
+
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent({
|
|
124
124
|
action: _analytics.ACTION.CLICKED,
|
|
125
125
|
actionSubject: _analytics.ACTION_SUBJECT.BUTTON,
|
|
126
126
|
actionSubjectId: _analytics.ACTION_SUBJECT_ID.BUTTON_HELP,
|
|
@@ -135,5 +135,4 @@ var keymapPlugin = function keymapPlugin(editorAnalyticsAPI) {
|
|
|
135
135
|
}, list);
|
|
136
136
|
return (0, _keymap.keymap)(list);
|
|
137
137
|
};
|
|
138
|
-
var _default = helpDialog;
|
|
139
|
-
exports.default = _default;
|
|
138
|
+
var _default = exports.default = helpDialog;
|
|
@@ -5,5 +5,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.pluginKey = void 0;
|
|
7
7
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
8
|
-
var pluginKey = new _state.PluginKey('helpDialogPlugin');
|
|
9
|
-
exports.pluginKey = pluginKey;
|
|
8
|
+
var pluginKey = exports.pluginKey = new _state.PluginKey('helpDialogPlugin');
|
|
@@ -9,7 +9,7 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
|
9
9
|
var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
10
10
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
11
11
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || (0, _typeof2.default)(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
12
|
-
var HelpDialogLoader = (0, _reactLoadable.default)({
|
|
12
|
+
var HelpDialogLoader = exports.HelpDialogLoader = (0, _reactLoadable.default)({
|
|
13
13
|
loader: function loader() {
|
|
14
14
|
return Promise.resolve().then(function () {
|
|
15
15
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-core-helpdialog" */
|
|
@@ -21,5 +21,4 @@ var HelpDialogLoader = (0, _reactLoadable.default)({
|
|
|
21
21
|
loading: function loading() {
|
|
22
22
|
return null;
|
|
23
23
|
}
|
|
24
|
-
});
|
|
25
|
-
exports.HelpDialogLoader = HelpDialogLoader;
|
|
24
|
+
});
|
|
@@ -93,7 +93,7 @@ var navigationKeymaps = function navigationKeymaps(_ref) {
|
|
|
93
93
|
}
|
|
94
94
|
}];
|
|
95
95
|
};
|
|
96
|
-
var formatting = function formatting(_ref2) {
|
|
96
|
+
var formatting = exports.formatting = function formatting(_ref2) {
|
|
97
97
|
var formatMessage = _ref2.formatMessage;
|
|
98
98
|
return [{
|
|
99
99
|
name: formatMessage(_messages.toolbarMessages.bold),
|
|
@@ -357,7 +357,6 @@ var formatting = function formatting(_ref2) {
|
|
|
357
357
|
type: 'alignment'
|
|
358
358
|
}];
|
|
359
359
|
};
|
|
360
|
-
exports.formatting = formatting;
|
|
361
360
|
var shortcutNamesWithoutKeymap = ['emoji', 'mention', 'quickInsert'];
|
|
362
361
|
var otherFormatting = function otherFormatting(_ref3) {
|
|
363
362
|
var formatMessage = _ref3.formatMessage;
|
|
@@ -427,14 +426,13 @@ var getKeyParts = function getKeyParts(keymap) {
|
|
|
427
426
|
}
|
|
428
427
|
return shortcut.replace(/\-(?=.)/g, ' + ').split(' ');
|
|
429
428
|
};
|
|
430
|
-
var getSupportedFormatting = function getSupportedFormatting(schema, intl, imageEnabled, quickInsertEnabled) {
|
|
429
|
+
var getSupportedFormatting = exports.getSupportedFormatting = function getSupportedFormatting(schema, intl, imageEnabled, quickInsertEnabled) {
|
|
431
430
|
var supportedBySchema = formatting(intl).filter(function (format) {
|
|
432
431
|
return schema.nodes[format.type] || schema.marks[format.type];
|
|
433
432
|
});
|
|
434
433
|
return [].concat((0, _toConsumableArray2.default)(navigationKeymaps(intl)), (0, _toConsumableArray2.default)(supportedBySchema), (0, _toConsumableArray2.default)(imageEnabled ? [imageAutoFormat] : []), (0, _toConsumableArray2.default)(quickInsertEnabled ? [quickInsertAutoFormat(intl)] : []), (0, _toConsumableArray2.default)(otherFormatting(intl)));
|
|
435
434
|
};
|
|
436
|
-
exports.
|
|
437
|
-
var getComponentFromKeymap = function getComponentFromKeymap(keymap) {
|
|
435
|
+
var getComponentFromKeymap = exports.getComponentFromKeymap = function getComponentFromKeymap(keymap) {
|
|
438
436
|
var keyParts = getKeyParts(keymap);
|
|
439
437
|
return (0, _react2.jsx)("span", null, keyParts.map(function (part, index) {
|
|
440
438
|
if (part === '+') {
|
|
@@ -468,7 +466,6 @@ var getComponentFromKeymap = function getComponentFromKeymap(keymap) {
|
|
|
468
466
|
}, part.toUpperCase());
|
|
469
467
|
}));
|
|
470
468
|
};
|
|
471
|
-
exports.getComponentFromKeymap = getComponentFromKeymap;
|
|
472
469
|
var ModalHeader = (0, _reactIntlNext.injectIntl)(function (_ref5) {
|
|
473
470
|
var formatMessage = _ref5.intl.formatMessage;
|
|
474
471
|
var _useModal = (0, _modalDialog.useModal)(),
|
|
@@ -568,5 +565,4 @@ var HelpDialog = function HelpDialog(_ref6) {
|
|
|
568
565
|
}, (0, _react2.jsx)("span", null, form.name), form.autoFormatting());
|
|
569
566
|
}))))), (0, _react2.jsx)(ModalFooter, null)) : null);
|
|
570
567
|
};
|
|
571
|
-
var _default = (0, _reactIntlNext.injectIntl)(HelpDialog);
|
|
572
|
-
exports.default = _default;
|
|
568
|
+
var _default = exports.default = (0, _reactIntlNext.injectIntl)(HelpDialog);
|
|
@@ -9,53 +9,42 @@ exports.title = exports.row = exports.line = exports.header = exports.footer = e
|
|
|
9
9
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
10
|
var _react = require("@emotion/react");
|
|
11
11
|
var _constants = require("@atlaskit/theme/constants");
|
|
12
|
-
var
|
|
12
|
+
var _colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
13
|
+
var colors = _colors;
|
|
13
14
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
14
15
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
15
16
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
16
17
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
17
|
-
var header = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n z-index: ", ";\n min-height: 24px;\n padding: 20px 40px;\n font-size: ", ";\n display: flex;\n justify-content: space-between;\n align-items: center;\n box-shadow: 'none';\n color: ", ";\n background-color: ", ";\n border-radius: ", "px;\n"])), _editorSharedStyles.akEditorUnitZIndex, (0, _editorSharedStyles.relativeFontSizeToBase16)(24), "var(--ds-text, ".concat(colors.N400, ")"), "var(--ds-background-neutral-subtle, ".concat(colors.N0, ")"), (0, _constants.borderRadius)());
|
|
18
|
-
exports.
|
|
19
|
-
var
|
|
20
|
-
exports.
|
|
21
|
-
var
|
|
22
|
-
exports.
|
|
23
|
-
var line = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n content: '';\n display: block;\n height: 2px;\n left: 0;\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n min-width: 604px;\n"])), "var(--ds-background-neutral-subtle, #fff)");
|
|
24
|
-
exports.line = line;
|
|
25
|
-
var content = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n min-width: 524px;\n width: 100%;\n position: relative;\n display: flex;\n justify-content: space-between;\n"])));
|
|
26
|
-
exports.content = content;
|
|
27
|
-
var column = {
|
|
18
|
+
var header = exports.header = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n z-index: ", ";\n min-height: 24px;\n padding: 20px 40px;\n font-size: ", ";\n display: flex;\n justify-content: space-between;\n align-items: center;\n box-shadow: 'none';\n color: ", ";\n background-color: ", ";\n border-radius: ", "px;\n"])), _editorSharedStyles.akEditorUnitZIndex, (0, _editorSharedStyles.relativeFontSizeToBase16)(24), "var(--ds-text, ".concat(colors.N400, ")"), "var(--ds-background-neutral-subtle, ".concat(colors.N0, ")"), (0, _constants.borderRadius)());
|
|
19
|
+
var footer = exports.footer = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n z-index: ", ";\n font-size: ", ";\n line-height: 20px;\n color: ", ";\n padding: 24px;\n text-align: right;\n box-shadow: 'none';\n"])), _editorSharedStyles.akEditorUnitZIndex, (0, _editorSharedStyles.relativeFontSizeToBase16)(14), "var(--ds-text-subtlest, ".concat(colors.N300, ")"));
|
|
20
|
+
var contentWrapper = exports.contentWrapper = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n padding: 20px 44px;\n border-bottom-right-radius: ", "px;\n overflow: auto;\n position: relative;\n color: ", ";\n background-color: ", ";\n"])), (0, _constants.borderRadius)(), "var(--ds-text-subtle, ".concat(colors.N400, ")"), "var(--ds-background-neutral-subtle, ".concat(colors.N0, ")"));
|
|
21
|
+
var line = exports.line = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n content: '';\n display: block;\n height: 2px;\n left: 0;\n position: absolute;\n top: 0;\n right: 0;\n width: 100%;\n min-width: 604px;\n"])), "var(--ds-background-neutral-subtle, #fff)");
|
|
22
|
+
var content = exports.content = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n min-width: 524px;\n width: 100%;\n position: relative;\n display: flex;\n justify-content: space-between;\n"])));
|
|
23
|
+
var column = exports.column = {
|
|
28
24
|
width: '44%',
|
|
29
25
|
'& > ul': {
|
|
30
26
|
padding: 0
|
|
31
27
|
}
|
|
32
28
|
};
|
|
33
|
-
exports.
|
|
34
|
-
var
|
|
35
|
-
exports.row = row;
|
|
36
|
-
var dialogHeader = {
|
|
29
|
+
var row = exports.row = (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n margin: 20px 0;\n display: flex;\n justify-content: space-between;\n"])));
|
|
30
|
+
var dialogHeader = exports.dialogHeader = {
|
|
37
31
|
'&': {
|
|
38
32
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)(24),
|
|
39
33
|
fontWeight: 400,
|
|
40
|
-
color: "var(--ds-text-subtle, ".concat(
|
|
34
|
+
color: "var(--ds-text-subtle, ".concat(_colors.N400, ")"),
|
|
41
35
|
letterSpacing: 'normal',
|
|
42
36
|
lineHeight: 1.42857142857143
|
|
43
37
|
}
|
|
44
38
|
};
|
|
45
|
-
exports.
|
|
46
|
-
var title = {
|
|
39
|
+
var title = exports.title = {
|
|
47
40
|
'&': {
|
|
48
41
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)(18),
|
|
49
42
|
fontWeight: 400,
|
|
50
|
-
color: "var(--ds-text-subtle, ".concat(
|
|
43
|
+
color: "var(--ds-text-subtle, ".concat(_colors.N400, ")"),
|
|
51
44
|
letterSpacing: 'normal',
|
|
52
45
|
lineHeight: 1.42857142857143
|
|
53
46
|
}
|
|
54
47
|
};
|
|
55
|
-
exports.
|
|
56
|
-
var
|
|
57
|
-
exports.
|
|
58
|
-
var codeMd = (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n height: 24px;\n line-height: 24px;\n width: 50px;\n text-align: center;\n"])), "var(--ds-background-neutral, ".concat(colors.N20, ")"), (0, _constants.borderRadius)());
|
|
59
|
-
exports.codeMd = codeMd;
|
|
60
|
-
var codeLg = (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n height: 24px;\n line-height: 24px;\n padding: 0 10px;\n text-align: center;\n"])), "var(--ds-background-neutral, ".concat(colors.N20, ")"), (0, _constants.borderRadius)());
|
|
61
|
-
exports.codeLg = codeLg;
|
|
48
|
+
var codeSm = exports.codeSm = (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n border-radius: ", "px;\n width: 24px;\n display: inline-block;\n height: 24px;\n line-height: 24px;\n text-align: center;\n"])), "var(--ds-background-neutral, ".concat(colors.N20, ")"), (0, _constants.borderRadius)());
|
|
49
|
+
var codeMd = exports.codeMd = (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n height: 24px;\n line-height: 24px;\n width: 50px;\n text-align: center;\n"])), "var(--ds-background-neutral, ".concat(colors.N20, ")"), (0, _constants.borderRadius)());
|
|
50
|
+
var codeLg = exports.codeLg = (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n background-color: ", ";\n border-radius: ", "px;\n display: inline-block;\n height: 24px;\n line-height: 24px;\n padding: 0 10px;\n text-align: center;\n"])), "var(--ds-background-neutral, ".concat(colors.N20, ")"), (0, _constants.borderRadius)());
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.HistoryActionTypes = void 0;
|
|
7
|
-
var HistoryActionTypes = /*#__PURE__*/function (HistoryActionTypes) {
|
|
7
|
+
var HistoryActionTypes = exports.HistoryActionTypes = /*#__PURE__*/function (HistoryActionTypes) {
|
|
8
8
|
HistoryActionTypes["UPDATE"] = "UPDATE";
|
|
9
9
|
return HistoryActionTypes;
|
|
10
|
-
}({});
|
|
11
|
-
exports.HistoryActionTypes = HistoryActionTypes;
|
|
10
|
+
}({});
|
|
@@ -19,8 +19,7 @@ var _utils = require("./utils");
|
|
|
19
19
|
* https://github.com/ProseMirror/prosemirror-history
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
|
-
var historyPluginKey = new _state.PluginKey('historyPlugin');
|
|
23
|
-
exports.historyPluginKey = historyPluginKey;
|
|
22
|
+
var historyPluginKey = exports.historyPluginKey = new _state.PluginKey('historyPlugin');
|
|
24
23
|
var getInitialState = function getInitialState() {
|
|
25
24
|
return {
|
|
26
25
|
canUndo: false,
|
|
@@ -73,5 +72,4 @@ var historyPlugin = function historyPlugin() {
|
|
|
73
72
|
}
|
|
74
73
|
};
|
|
75
74
|
};
|
|
76
|
-
var _default = historyPlugin;
|
|
77
|
-
exports.default = _default;
|
|
75
|
+
var _default = exports.default = historyPlugin;
|
|
@@ -5,17 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getPmHistoryPluginState = exports.getPmHistoryPlugin = void 0;
|
|
7
7
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
8
|
-
var getPmHistoryPlugin = function getPmHistoryPlugin(state) {
|
|
8
|
+
var getPmHistoryPlugin = exports.getPmHistoryPlugin = function getPmHistoryPlugin(state) {
|
|
9
9
|
return state.plugins.find(function (plugin) {
|
|
10
10
|
return plugin.key === _utils.pmHistoryPluginKey;
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
|
-
exports.
|
|
14
|
-
var getPmHistoryPluginState = function getPmHistoryPluginState(state) {
|
|
13
|
+
var getPmHistoryPluginState = exports.getPmHistoryPluginState = function getPmHistoryPluginState(state) {
|
|
15
14
|
var pmHistoryPlugin = getPmHistoryPlugin(state);
|
|
16
15
|
if (!pmHistoryPlugin) {
|
|
17
16
|
return;
|
|
18
17
|
}
|
|
19
18
|
return pmHistoryPlugin.getState(state);
|
|
20
|
-
};
|
|
21
|
-
exports.getPmHistoryPluginState = getPmHistoryPluginState;
|
|
19
|
+
};
|
|
@@ -9,9 +9,8 @@ var _commands = require("../../../commands");
|
|
|
9
9
|
var _utils = require("./utils");
|
|
10
10
|
var _analytics = require("../../analytics");
|
|
11
11
|
var _getAttrsWithChangesRecorder = _interopRequireDefault(require("../../../utils/getAttrsWithChangesRecorder"));
|
|
12
|
-
var MAX_INDENTATION_LEVEL = 6;
|
|
13
|
-
exports.
|
|
14
|
-
var isIndentationAllowed = function isIndentationAllowed(schema, node) {
|
|
12
|
+
var MAX_INDENTATION_LEVEL = exports.MAX_INDENTATION_LEVEL = 6;
|
|
13
|
+
var isIndentationAllowed = exports.isIndentationAllowed = function isIndentationAllowed(schema, node) {
|
|
15
14
|
var _schema$nodes = schema.nodes,
|
|
16
15
|
paragraph = _schema$nodes.paragraph,
|
|
17
16
|
heading = _schema$nodes.heading,
|
|
@@ -32,7 +31,6 @@ var isIndentationAllowed = function isIndentationAllowed(schema, node) {
|
|
|
32
31
|
* Create new indentation command (Either indent or outdent depend of getArgsFn)
|
|
33
32
|
* @param getNewIndentationAttrs Function to handle new indentation level
|
|
34
33
|
*/
|
|
35
|
-
exports.isIndentationAllowed = isIndentationAllowed;
|
|
36
34
|
function createIndentationCommand(getNewIndentationAttrs) {
|
|
37
35
|
return function (state, dispatch) {
|
|
38
36
|
var indentation = state.schema.marks.indentation;
|
|
@@ -88,7 +86,7 @@ var getIndentAttrs = function getIndentAttrs(oldAttr) {
|
|
|
88
86
|
}; // Otherwise, increase the level by one
|
|
89
87
|
};
|
|
90
88
|
|
|
91
|
-
var getIndentCommand = function getIndentCommand() {
|
|
89
|
+
var getIndentCommand = exports.getIndentCommand = function getIndentCommand() {
|
|
92
90
|
var inputMethod = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _analytics.INPUT_METHOD.KEYBOARD;
|
|
93
91
|
return createIndentationCommandWithAnalytics({
|
|
94
92
|
getNewIndentationAttrs: getIndentAttrs,
|
|
@@ -104,7 +102,6 @@ var getIndentCommand = function getIndentCommand() {
|
|
|
104
102
|
* - false; Remove the mark
|
|
105
103
|
* - object; Update attributes
|
|
106
104
|
*/
|
|
107
|
-
exports.getIndentCommand = getIndentCommand;
|
|
108
105
|
var getOutdentAttrs = function getOutdentAttrs(oldAttr) {
|
|
109
106
|
if (!oldAttr) {
|
|
110
107
|
return undefined; // Do nothing;
|
|
@@ -120,7 +117,7 @@ var getOutdentAttrs = function getOutdentAttrs(oldAttr) {
|
|
|
120
117
|
}; // Decrease the level on other cases
|
|
121
118
|
};
|
|
122
119
|
|
|
123
|
-
var getOutdentCommand = function getOutdentCommand() {
|
|
120
|
+
var getOutdentCommand = exports.getOutdentCommand = function getOutdentCommand() {
|
|
124
121
|
var inputMethod = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : _analytics.INPUT_METHOD.KEYBOARD;
|
|
125
122
|
return createIndentationCommandWithAnalytics({
|
|
126
123
|
getNewIndentationAttrs: getOutdentAttrs,
|
|
@@ -128,10 +125,8 @@ var getOutdentCommand = function getOutdentCommand() {
|
|
|
128
125
|
inputMethod: inputMethod
|
|
129
126
|
});
|
|
130
127
|
};
|
|
131
|
-
exports.
|
|
132
|
-
var removeIndentation = function removeIndentation(state, dispatch) {
|
|
128
|
+
var removeIndentation = exports.removeIndentation = function removeIndentation(state, dispatch) {
|
|
133
129
|
return (0, _commands.toggleBlockMark)(state.schema.marks.indentation, function () {
|
|
134
130
|
return false;
|
|
135
131
|
})(state, dispatch);
|
|
136
|
-
};
|
|
137
|
-
exports.removeIndentation = removeIndentation;
|
|
132
|
+
};
|
|
@@ -7,7 +7,7 @@ exports.messages = void 0;
|
|
|
7
7
|
var _reactIntlNext = require("react-intl-next");
|
|
8
8
|
// Common Translations will live here
|
|
9
9
|
|
|
10
|
-
var messages = (0, _reactIntlNext.defineMessages)({
|
|
10
|
+
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
11
11
|
indent: {
|
|
12
12
|
id: 'fabric.editor.indent',
|
|
13
13
|
defaultMessage: 'Indent',
|
|
@@ -18,5 +18,4 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
18
18
|
defaultMessage: 'Outdent',
|
|
19
19
|
description: 'Outdent a list item, paragraph or heading'
|
|
20
20
|
}
|
|
21
|
-
});
|
|
22
|
-
exports.messages = messages;
|
|
21
|
+
});
|