@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
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.expandClassNames = void 0;
|
|
7
7
|
var prefix = 'ak-editor-expand';
|
|
8
|
-
var expandClassNames = {
|
|
8
|
+
var expandClassNames = exports.expandClassNames = {
|
|
9
9
|
prefix: prefix,
|
|
10
10
|
expanded: "".concat(prefix, "__expanded"),
|
|
11
11
|
titleContainer: "".concat(prefix, "__title-container"),
|
|
@@ -17,5 +17,4 @@ var expandClassNames = {
|
|
|
17
17
|
type: function type(_type) {
|
|
18
18
|
return "".concat(prefix, "__type-").concat(_type);
|
|
19
19
|
}
|
|
20
|
-
};
|
|
21
|
-
exports.expandClassNames = expandClassNames;
|
|
20
|
+
};
|
|
@@ -46,7 +46,7 @@ var DANGER_STATE_BORDER_COLOR = (0, _components.themed)({
|
|
|
46
46
|
var DANGER_STATE_BORDER_RADIUS = (0, _components.themed)({
|
|
47
47
|
dark: '3px'
|
|
48
48
|
});
|
|
49
|
-
var expandStyles = function expandStyles(props) {
|
|
49
|
+
var expandStyles = exports.expandStyles = function expandStyles(props) {
|
|
50
50
|
return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n .", " > div {\n display: flex;\n }\n\n .", " {\n ", "\n overflow: hidden;\n cursor: pointer;\n box-sizing: border-box;\n\n td > & {\n margin-top: 0;\n }\n\n .", " svg {\n ", ";\n transform: rotate(90deg);\n }\n\n &.", ":not(.danger) {\n ", "\n\n ::after {\n // Custom background color and borders (for dark theme).\n background-color: ", ";\n border: ", ";\n border-radius: ", ";\n }\n }\n\n &.danger {\n background: ", ";\n border: ", ";\n border-color: ", ";\n border-radius: ", ";\n }\n }\n\n .ProseMirror\n > .", ",\n .", "\n > .", " {\n margin-left: -", "px;\n margin-right: -", "px;\n }\n\n .", " {\n ", "\n cursor: text;\n padding-top: 0px;\n }\n\n .", " {\n ", "\n }\n\n .", " {\n ", ";\n align-items: center;\n overflow: visible;\n }\n\n .", " {\n background: ", ";\n border-color: ", ";\n\n .", " {\n padding-top: ", ";\n }\n }\n\n .", " {\n width: 100%;\n }\n\n /* stylelint-disable property-no-unknown, value-keyword-case */\n .", ":(.", ") {\n .expand-content-wrapper {\n height: auto;\n }\n }\n /* stylelint-enable property-no-unknown, value-keyword-case */\n\n .", ":not(.", ") {\n .ak-editor-expand__content {\n position: absolute;\n height: 1px;\n width: 1px;\n overflow: hidden;\n clip: rect(1px, 1px, 1px, 1px);\n white-space: nowrap;\n }\n\n .", " svg {\n ", ";\n transform: rotate(0deg);\n }\n\n &:not(.", "):not(.danger) {\n background: transparent;\n border-color: transparent;\n\n &:hover {\n border-color: ", ";\n background: ", ";\n }\n }\n }\n"])), _classNames.expandClassNames.icon, _classNames.expandClassNames.prefix, _ui.sharedExpandStyles.containerStyles({
|
|
51
51
|
expanded: false,
|
|
52
52
|
focused: false
|
|
@@ -60,5 +60,4 @@ var expandStyles = function expandStyles(props) {
|
|
|
60
60
|
light: "var(--ds-border, ".concat(_colors.N50A, ")"),
|
|
61
61
|
dark: "var(--ds-border, ".concat(_colors.DN50, ")")
|
|
62
62
|
})(props), EXPAND_SELECTED_BACKGROUND(props));
|
|
63
|
-
};
|
|
64
|
-
exports.expandStyles = expandStyles;
|
|
63
|
+
};
|
|
@@ -25,7 +25,7 @@ var _main = require("./pm-plugins/main");
|
|
|
25
25
|
var _extensionApi = require("./extension-api");
|
|
26
26
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
27
27
|
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; }
|
|
28
|
-
var buildExtensionNode = function buildExtensionNode(type, schema, attrs, content, marks) {
|
|
28
|
+
var buildExtensionNode = exports.buildExtensionNode = function buildExtensionNode(type, schema, attrs, content, marks) {
|
|
29
29
|
switch (type) {
|
|
30
30
|
case 'extension':
|
|
31
31
|
return schema.nodes.extension.createChecked(attrs, content, marks);
|
|
@@ -35,8 +35,7 @@ var buildExtensionNode = function buildExtensionNode(type, schema, attrs, conten
|
|
|
35
35
|
return schema.nodes.bodiedExtension.create(attrs, content, marks);
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
|
-
exports.
|
|
39
|
-
var performNodeUpdate = function performNodeUpdate(type, newAttrs, content, marks, shouldScrollIntoView) {
|
|
38
|
+
var performNodeUpdate = exports.performNodeUpdate = function performNodeUpdate(type, newAttrs, content, marks, shouldScrollIntoView) {
|
|
40
39
|
return function (_state, _dispatch, view) {
|
|
41
40
|
if (!view) {
|
|
42
41
|
throw Error('EditorView is required to perform node update!');
|
|
@@ -115,8 +114,7 @@ var performNodeUpdate = function performNodeUpdate(type, newAttrs, content, mark
|
|
|
115
114
|
return true;
|
|
116
115
|
};
|
|
117
116
|
};
|
|
118
|
-
exports.
|
|
119
|
-
var updateExtensionParams = function updateExtensionParams(updateExtension, node, actions) {
|
|
117
|
+
var updateExtensionParams = exports.updateExtensionParams = function updateExtensionParams(updateExtension, node, actions) {
|
|
120
118
|
return /*#__PURE__*/function () {
|
|
121
119
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(state, dispatch, view) {
|
|
122
120
|
var _node$node, attrs, type, content, marks, parameters, newParameters, newAttrs;
|
|
@@ -163,16 +161,14 @@ var updateExtensionParams = function updateExtensionParams(updateExtension, node
|
|
|
163
161
|
};
|
|
164
162
|
}();
|
|
165
163
|
};
|
|
166
|
-
exports.
|
|
167
|
-
var editSelectedExtension = function editSelectedExtension(editorActions) {
|
|
164
|
+
var editSelectedExtension = exports.editSelectedExtension = function editSelectedExtension(editorActions) {
|
|
168
165
|
var editorView = editorActions._privateGetEditorView();
|
|
169
166
|
var _getPluginState = (0, _main.getPluginState)(editorView.state),
|
|
170
167
|
updateExtension = _getPluginState.updateExtension,
|
|
171
168
|
applyChangeToContextPanel = _getPluginState.applyChangeToContextPanel;
|
|
172
169
|
return editExtension(null, applyChangeToContextPanel, updateExtension)(editorView.state, editorView.dispatch, editorView);
|
|
173
170
|
};
|
|
174
|
-
exports.
|
|
175
|
-
var editExtension = function editExtension(macroProvider, applyChangeToContextPanel, updateExtension) {
|
|
171
|
+
var editExtension = exports.editExtension = function editExtension(macroProvider, applyChangeToContextPanel, updateExtension) {
|
|
176
172
|
return function (state, dispatch, view) {
|
|
177
173
|
if (!view) {
|
|
178
174
|
return false;
|
|
@@ -211,5 +207,4 @@ var editExtension = function editExtension(macroProvider, applyChangeToContextPa
|
|
|
211
207
|
}
|
|
212
208
|
return true;
|
|
213
209
|
};
|
|
214
|
-
};
|
|
215
|
-
exports.editExtension = editExtension;
|
|
210
|
+
};
|
|
@@ -34,7 +34,7 @@ function setEditingContextToContextPanel(processParametersBefore, processParamet
|
|
|
34
34
|
}
|
|
35
35
|
}, applyChangeToContextPanel);
|
|
36
36
|
}
|
|
37
|
-
var clearEditingContext = function clearEditingContext(applyChangeToContextPanel) {
|
|
37
|
+
var clearEditingContext = exports.clearEditingContext = function clearEditingContext(applyChangeToContextPanel) {
|
|
38
38
|
return (0, _pluginFactory.createCommand)({
|
|
39
39
|
type: 'UPDATE_STATE',
|
|
40
40
|
data: {
|
|
@@ -44,8 +44,7 @@ var clearEditingContext = function clearEditingContext(applyChangeToContextPanel
|
|
|
44
44
|
}
|
|
45
45
|
}, applyChangeToContextPanel);
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
var forceAutoSave = function forceAutoSave(applyChangeToContextPanel) {
|
|
47
|
+
var forceAutoSave = exports.forceAutoSave = function forceAutoSave(applyChangeToContextPanel) {
|
|
49
48
|
return function (resolve, reject) {
|
|
50
49
|
return (0, _pluginFactory.createCommand)({
|
|
51
50
|
type: 'UPDATE_STATE',
|
|
@@ -56,8 +55,7 @@ var forceAutoSave = function forceAutoSave(applyChangeToContextPanel) {
|
|
|
56
55
|
}, applyChangeToContextPanel);
|
|
57
56
|
};
|
|
58
57
|
};
|
|
59
|
-
exports.
|
|
60
|
-
var updateExtensionLayout = function updateExtensionLayout(layout) {
|
|
58
|
+
var updateExtensionLayout = exports.updateExtensionLayout = function updateExtensionLayout(layout) {
|
|
61
59
|
return (0, _pluginFactory.createCommand)({
|
|
62
60
|
type: 'UPDATE_STATE',
|
|
63
61
|
data: {
|
|
@@ -75,8 +73,7 @@ var updateExtensionLayout = function updateExtensionLayout(layout) {
|
|
|
75
73
|
return tr;
|
|
76
74
|
});
|
|
77
75
|
};
|
|
78
|
-
exports.
|
|
79
|
-
var removeExtension = function removeExtension() {
|
|
76
|
+
var removeExtension = exports.removeExtension = function removeExtension() {
|
|
80
77
|
return (0, _pluginFactory.createCommand)({
|
|
81
78
|
type: 'UPDATE_STATE',
|
|
82
79
|
data: {
|
|
@@ -90,8 +87,7 @@ var removeExtension = function removeExtension() {
|
|
|
90
87
|
}
|
|
91
88
|
});
|
|
92
89
|
};
|
|
93
|
-
exports.
|
|
94
|
-
var removeDescendantNodes = function removeDescendantNodes(sourceNode) {
|
|
90
|
+
var removeDescendantNodes = exports.removeDescendantNodes = function removeDescendantNodes(sourceNode) {
|
|
95
91
|
return (0, _pluginFactory.createCommand)({
|
|
96
92
|
type: 'UPDATE_STATE',
|
|
97
93
|
data: {
|
|
@@ -100,5 +96,4 @@ var removeDescendantNodes = function removeDescendantNodes(sourceNode) {
|
|
|
100
96
|
}, function (tr, state) {
|
|
101
97
|
return sourceNode ? (0, _utils3.removeConnectedNodes)(state, sourceNode) : tr;
|
|
102
98
|
});
|
|
103
|
-
};
|
|
104
|
-
exports.removeDescendantNodes = removeDescendantNodes;
|
|
99
|
+
};
|
|
@@ -33,7 +33,7 @@ var areParametersEqual = function areParametersEqual(firstParameters, secondPara
|
|
|
33
33
|
}
|
|
34
34
|
return firstParameters === secondParameters;
|
|
35
35
|
};
|
|
36
|
-
var getContextPanel = function getContextPanel(allowAutoSave, featureFlags, applyChange) {
|
|
36
|
+
var getContextPanel = exports.getContextPanel = function getContextPanel(allowAutoSave, featureFlags, applyChange) {
|
|
37
37
|
return function (state) {
|
|
38
38
|
var nodeWithPos = (0, _utils.getSelectedExtension)(state, true);
|
|
39
39
|
|
|
@@ -145,7 +145,6 @@ var getContextPanel = function getContextPanel(allowAutoSave, featureFlags, appl
|
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
};
|
|
148
|
-
exports.getContextPanel = getContextPanel;
|
|
149
148
|
function onChangeAction(_x2) {
|
|
150
149
|
return _onChangeAction.apply(this, arguments);
|
|
151
150
|
}
|
|
@@ -17,7 +17,7 @@ var _commands = require("./commands");
|
|
|
17
17
|
var _utils2 = require("./utils");
|
|
18
18
|
var _analytics = require("../analytics");
|
|
19
19
|
var _utils3 = require("@atlaskit/editor-prosemirror/utils");
|
|
20
|
-
var getEditInLegacyMacroBrowser = function getEditInLegacyMacroBrowser(_ref) {
|
|
20
|
+
var getEditInLegacyMacroBrowser = exports.getEditInLegacyMacroBrowser = function getEditInLegacyMacroBrowser(_ref) {
|
|
21
21
|
var view = _ref.view,
|
|
22
22
|
macroProvider = _ref.macroProvider;
|
|
23
23
|
return function () {
|
|
@@ -34,7 +34,6 @@ var getEditInLegacyMacroBrowser = function getEditInLegacyMacroBrowser(_ref) {
|
|
|
34
34
|
(0, _macro.insertMacroFromMacroBrowser)(macroProvider, nodeWithPos.node, true)(view);
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
exports.getEditInLegacyMacroBrowser = getEditInLegacyMacroBrowser;
|
|
38
37
|
var extensionAPICallPayload = function extensionAPICallPayload(functionName) {
|
|
39
38
|
return {
|
|
40
39
|
action: _analytics.ACTION.INVOKED,
|
|
@@ -46,7 +45,7 @@ var extensionAPICallPayload = function extensionAPICallPayload(functionName) {
|
|
|
46
45
|
eventType: _analytics.EVENT_TYPE.TRACK
|
|
47
46
|
};
|
|
48
47
|
};
|
|
49
|
-
var createExtensionAPI = function createExtensionAPI(options) {
|
|
48
|
+
var createExtensionAPI = exports.createExtensionAPI = function createExtensionAPI(options) {
|
|
50
49
|
var schema = options.editorView.state.schema;
|
|
51
50
|
var nodes = Object.keys(schema.nodes);
|
|
52
51
|
var marks = Object.keys(schema.marks);
|
|
@@ -261,5 +260,4 @@ var createExtensionAPI = function createExtensionAPI(options) {
|
|
|
261
260
|
},
|
|
262
261
|
doc: doc
|
|
263
262
|
};
|
|
264
|
-
};
|
|
265
|
-
exports.createExtensionAPI = createExtensionAPI;
|
|
263
|
+
};
|
|
@@ -18,7 +18,7 @@ var extensionPlugin = function extensionPlugin(_ref) {
|
|
|
18
18
|
var _ref$config = _ref.config,
|
|
19
19
|
options = _ref$config === void 0 ? {} : _ref$config,
|
|
20
20
|
_api = _ref.api;
|
|
21
|
-
var featureFlags = (_api === null || _api === void 0
|
|
21
|
+
var featureFlags = (_api === null || _api === void 0 || (_api$featureFlags = _api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
|
|
22
22
|
//Note: This is a hack to get the editor view reference in the plugin. Copied from table plugin.
|
|
23
23
|
//This is needed to get the current selection in the editor
|
|
24
24
|
var editorViewRef = {
|
|
@@ -55,7 +55,7 @@ var extensionPlugin = function extensionPlugin(_ref) {
|
|
|
55
55
|
name: 'extensionKeymap',
|
|
56
56
|
plugin: function plugin() {
|
|
57
57
|
var _api$contextPanel;
|
|
58
|
-
return (0, _keymap.default)(_api === null || _api === void 0
|
|
58
|
+
return (0, _keymap.default)(_api === null || _api === void 0 || (_api$contextPanel = _api.contextPanel) === null || _api$contextPanel === void 0 ? void 0 : _api$contextPanel.actions.applyChange);
|
|
59
59
|
}
|
|
60
60
|
}, {
|
|
61
61
|
name: 'extensionUniqueId',
|
|
@@ -83,7 +83,7 @@ var extensionPlugin = function extensionPlugin(_ref) {
|
|
|
83
83
|
var _api$contextPanel2;
|
|
84
84
|
return (0, _extensionApi.createExtensionAPI)({
|
|
85
85
|
editorView: editorViewRef.current,
|
|
86
|
-
applyChange: _api === null || _api === void 0
|
|
86
|
+
applyChange: _api === null || _api === void 0 || (_api$contextPanel2 = _api.contextPanel) === null || _api$contextPanel2 === void 0 ? void 0 : _api$contextPanel2.actions.applyChange
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
89
|
},
|
|
@@ -91,11 +91,10 @@ var extensionPlugin = function extensionPlugin(_ref) {
|
|
|
91
91
|
floatingToolbar: (0, _toolbar.getToolbarConfig)({
|
|
92
92
|
breakoutEnabled: options.breakoutEnabled,
|
|
93
93
|
hoverDecoration: _api === null || _api === void 0 ? void 0 : _api.decorations.actions.hoverDecoration,
|
|
94
|
-
applyChangeToContextPanel: _api === null || _api === void 0
|
|
94
|
+
applyChangeToContextPanel: _api === null || _api === void 0 || (_api$contextPanel3 = _api.contextPanel) === null || _api$contextPanel3 === void 0 ? void 0 : _api$contextPanel3.actions.applyChange
|
|
95
95
|
}),
|
|
96
|
-
contextPanel: (0, _contextPanel.getContextPanel)(options.allowAutoSave, featureFlags, _api === null || _api === void 0
|
|
96
|
+
contextPanel: (0, _contextPanel.getContextPanel)(options.allowAutoSave, featureFlags, _api === null || _api === void 0 || (_api$contextPanel4 = _api.contextPanel) === null || _api$contextPanel4 === void 0 ? void 0 : _api$contextPanel4.actions.applyChange)
|
|
97
97
|
}
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
|
-
var _default = extensionPlugin;
|
|
101
|
-
exports.default = _default;
|
|
100
|
+
var _default = exports.default = extensionPlugin;
|
|
@@ -22,7 +22,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
22
22
|
// on selections when migrating inlineExtension to use the new api.
|
|
23
23
|
// The ReactNodeView api will be visited in the second phase of the selections
|
|
24
24
|
// project whilst investigating block nodes. We will revisit the Extension node view there too.
|
|
25
|
-
var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
|
|
25
|
+
var ExtensionNode = exports.ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
|
|
26
26
|
(0, _inherits2.default)(ExtensionNode, _ReactNodeView);
|
|
27
27
|
var _super = _createSuper(ExtensionNode);
|
|
28
28
|
function ExtensionNode() {
|
|
@@ -77,7 +77,6 @@ var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
77
77
|
}]);
|
|
78
78
|
return ExtensionNode;
|
|
79
79
|
}(_reactNodeView.default);
|
|
80
|
-
exports.ExtensionNode = ExtensionNode;
|
|
81
80
|
function ExtensionNodeView(portalProviderAPI, eventDispatcher, providerFactory, extensionHandlers, extensionNodeViewOptions, pluginInjectionApi) {
|
|
82
81
|
return function (node, view, getPos) {
|
|
83
82
|
var hasIntlContext = true;
|
|
@@ -27,9 +27,6 @@ var factory = (0, _pluginStateFactory.pluginFactory)(_pluginKey.pluginKey, _redu
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
var createPluginState = factory.createPluginState;
|
|
31
|
-
exports.
|
|
32
|
-
var
|
|
33
|
-
exports.createCommand = createCommand;
|
|
34
|
-
var getPluginState = factory.getPluginState;
|
|
35
|
-
exports.getPluginState = getPluginState;
|
|
30
|
+
var createPluginState = exports.createPluginState = factory.createPluginState;
|
|
31
|
+
var createCommand = exports.createCommand = factory.createCommand;
|
|
32
|
+
var getPluginState = exports.getPluginState = factory.getPluginState;
|
|
@@ -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('extensionPlugin');
|
|
9
|
-
exports.pluginKey = pluginKey;
|
|
8
|
+
var pluginKey = exports.pluginKey = new _state.PluginKey('extensionPlugin');
|
|
@@ -82,7 +82,7 @@ var getUpdateExtensionPromise = /*#__PURE__*/function () {
|
|
|
82
82
|
return _ref.apply(this, arguments);
|
|
83
83
|
};
|
|
84
84
|
}();
|
|
85
|
-
var createExtensionProviderHandler = function createExtensionProviderHandler(view) {
|
|
85
|
+
var createExtensionProviderHandler = exports.createExtensionProviderHandler = function createExtensionProviderHandler(view) {
|
|
86
86
|
return /*#__PURE__*/function () {
|
|
87
87
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(name, provider) {
|
|
88
88
|
var extensionProvider;
|
|
@@ -123,8 +123,7 @@ var createExtensionProviderHandler = function createExtensionProviderHandler(vie
|
|
|
123
123
|
};
|
|
124
124
|
}();
|
|
125
125
|
};
|
|
126
|
-
exports.
|
|
127
|
-
var createContextIdentifierProviderHandler = function createContextIdentifierProviderHandler(view) {
|
|
126
|
+
var createContextIdentifierProviderHandler = exports.createContextIdentifierProviderHandler = function createContextIdentifierProviderHandler(view) {
|
|
128
127
|
return /*#__PURE__*/function () {
|
|
129
128
|
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(name, provider) {
|
|
130
129
|
var contextIdentifierProvider;
|
|
@@ -162,8 +161,7 @@ var createContextIdentifierProviderHandler = function createContextIdentifierPro
|
|
|
162
161
|
};
|
|
163
162
|
}();
|
|
164
163
|
};
|
|
165
|
-
exports.
|
|
166
|
-
var handleUpdate = function handleUpdate(_ref4) {
|
|
164
|
+
var handleUpdate = exports.handleUpdate = function handleUpdate(_ref4) {
|
|
167
165
|
var view = _ref4.view,
|
|
168
166
|
prevState = _ref4.prevState,
|
|
169
167
|
domAtPos = _ref4.domAtPos,
|
|
@@ -225,15 +223,14 @@ var handleUpdate = function handleUpdate(_ref4) {
|
|
|
225
223
|
}
|
|
226
224
|
return true;
|
|
227
225
|
};
|
|
228
|
-
exports.
|
|
229
|
-
var
|
|
230
|
-
var _pluginInjectionApi$c, _pluginInjectionApi$c2;
|
|
226
|
+
var createPlugin = exports.createPlugin = function createPlugin(dispatch, providerFactory, extensionHandlers, portalProviderAPI, eventDispatcher, pluginInjectionApi) {
|
|
227
|
+
var _pluginInjectionApi$c;
|
|
231
228
|
var useLongPressSelection = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
|
|
232
229
|
var options = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : {};
|
|
233
230
|
var state = (0, _pluginFactory.createPluginState)(dispatch, {
|
|
234
231
|
showEditButton: false,
|
|
235
232
|
showContextPanel: false,
|
|
236
|
-
applyChangeToContextPanel: pluginInjectionApi === null || pluginInjectionApi === void 0
|
|
233
|
+
applyChangeToContextPanel: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c = pluginInjectionApi.contextPanel) === null || _pluginInjectionApi$c === void 0 || (_pluginInjectionApi$c = _pluginInjectionApi$c.actions) === null || _pluginInjectionApi$c === void 0 ? void 0 : _pluginInjectionApi$c.applyChange
|
|
237
234
|
});
|
|
238
235
|
var extensionNodeViewOptions = {
|
|
239
236
|
appearance: options.appearance
|
|
@@ -248,13 +245,13 @@ var createPlugin = function createPlugin(dispatch, providerFactory, extensionHan
|
|
|
248
245
|
providerFactory.subscribe('contextIdentificationProvider', contextIdentificationProviderHandler);
|
|
249
246
|
return {
|
|
250
247
|
update: function update(view, prevState) {
|
|
251
|
-
var _pluginInjectionApi$
|
|
248
|
+
var _pluginInjectionApi$c2;
|
|
252
249
|
handleUpdate({
|
|
253
250
|
view: view,
|
|
254
251
|
prevState: prevState,
|
|
255
252
|
domAtPos: domAtPos,
|
|
256
253
|
extensionHandlers: extensionHandlers,
|
|
257
|
-
applyChange: pluginInjectionApi === null || pluginInjectionApi === void 0
|
|
254
|
+
applyChange: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$c2 = pluginInjectionApi.contextPanel) === null || _pluginInjectionApi$c2 === void 0 ? void 0 : _pluginInjectionApi$c2.actions.applyChange
|
|
258
255
|
});
|
|
259
256
|
},
|
|
260
257
|
destroy: function destroy() {
|
|
@@ -322,5 +319,4 @@ var createPlugin = function createPlugin(dispatch, providerFactory, extensionHan
|
|
|
322
319
|
})
|
|
323
320
|
}
|
|
324
321
|
});
|
|
325
|
-
};
|
|
326
|
-
exports.createPlugin = createPlugin;
|
|
322
|
+
};
|
|
@@ -13,7 +13,7 @@ var _step = require("../../../utils/step");
|
|
|
13
13
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
14
|
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; }
|
|
15
15
|
var pluginKey = new _state.PluginKey('extensionUniqueIdPlugin');
|
|
16
|
-
var createPlugin = function createPlugin() {
|
|
16
|
+
var createPlugin = exports.createPlugin = function createPlugin() {
|
|
17
17
|
return new _safePlugin.SafePlugin({
|
|
18
18
|
// TODO: @see ED-8839
|
|
19
19
|
appendTransaction: function appendTransaction(transactions, _oldState, newState) {
|
|
@@ -76,5 +76,4 @@ var createPlugin = function createPlugin() {
|
|
|
76
76
|
},
|
|
77
77
|
key: pluginKey
|
|
78
78
|
});
|
|
79
|
-
};
|
|
80
|
-
exports.createPlugin = createPlugin;
|
|
79
|
+
};
|
|
@@ -44,7 +44,7 @@ var maybeGetUpdateMethodFromExtensionProvider = /*#__PURE__*/function () {
|
|
|
44
44
|
return _ref.apply(this, arguments);
|
|
45
45
|
};
|
|
46
46
|
}();
|
|
47
|
-
var updateEditButton = /*#__PURE__*/function () {
|
|
47
|
+
var updateEditButton = exports.updateEditButton = /*#__PURE__*/function () {
|
|
48
48
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(view, extensionProvider) {
|
|
49
49
|
var updateMethod;
|
|
50
50
|
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
@@ -72,5 +72,4 @@ var updateEditButton = /*#__PURE__*/function () {
|
|
|
72
72
|
return function updateEditButton(_x3, _x4) {
|
|
73
73
|
return _ref2.apply(this, arguments);
|
|
74
74
|
};
|
|
75
|
-
}();
|
|
76
|
-
exports.updateEditButton = updateEditButton;
|
|
75
|
+
}();
|
|
@@ -20,7 +20,7 @@ var _utils2 = require("./utils");
|
|
|
20
20
|
var _commands = require("./commands");
|
|
21
21
|
var _pluginKey = require("../macro/plugin-key");
|
|
22
22
|
var _utils3 = require("@atlaskit/editor-common/utils");
|
|
23
|
-
var messages = (0, _reactIntlNext.defineMessages)({
|
|
23
|
+
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
24
24
|
edit: {
|
|
25
25
|
id: 'fabric.editor.edit',
|
|
26
26
|
defaultMessage: 'Edit',
|
|
@@ -52,7 +52,6 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
52
52
|
description: 'checkbox label text'
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
|
-
exports.messages = messages;
|
|
56
55
|
var isLayoutSupported = function isLayoutSupported(state, selectedExtNode) {
|
|
57
56
|
var _state$schema$nodes = state.schema.nodes,
|
|
58
57
|
bodiedExtension = _state$schema$nodes.bodiedExtension,
|
|
@@ -119,7 +118,7 @@ var editButton = function editButton(formatMessage, extensionState, applyChangeT
|
|
|
119
118
|
focusEditoronEnter: true
|
|
120
119
|
}];
|
|
121
120
|
};
|
|
122
|
-
var getToolbarConfig = function getToolbarConfig(_ref) {
|
|
121
|
+
var getToolbarConfig = exports.getToolbarConfig = function getToolbarConfig(_ref) {
|
|
123
122
|
var _ref$breakoutEnabled = _ref.breakoutEnabled,
|
|
124
123
|
breakoutEnabled = _ref$breakoutEnabled === void 0 ? true : _ref$breakoutEnabled,
|
|
125
124
|
hoverDecoration = _ref.hoverDecoration,
|
|
@@ -198,7 +197,6 @@ var getToolbarConfig = function getToolbarConfig(_ref) {
|
|
|
198
197
|
return;
|
|
199
198
|
};
|
|
200
199
|
};
|
|
201
|
-
exports.getToolbarConfig = getToolbarConfig;
|
|
202
200
|
var clickWithCheckboxHandler = function clickWithCheckboxHandler(isChecked, node) {
|
|
203
201
|
return function (state, dispatch) {
|
|
204
202
|
if (!node) {
|
|
@@ -145,7 +145,6 @@ var ExtensionDeprecated = function ExtensionDeprecated(props) {
|
|
|
145
145
|
/**
|
|
146
146
|
* End workaround
|
|
147
147
|
*/
|
|
148
|
-
var _default = (0, _ui.overflowShadow)(Extension, {
|
|
148
|
+
var _default = exports.default = (0, _ui.overflowShadow)(Extension, {
|
|
149
149
|
overflowSelector: '.extension-overflow-wrapper'
|
|
150
|
-
});
|
|
151
|
-
exports.default = _default;
|
|
150
|
+
});
|
|
@@ -12,15 +12,12 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
12
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
13
|
var _styles = require("../styles");
|
|
14
14
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
15
|
-
var widerLayoutClassName = 'wider-layout';
|
|
16
|
-
exports.
|
|
17
|
-
var wrapperStyle = function wrapperStyle(theme) {
|
|
15
|
+
var widerLayoutClassName = exports.widerLayoutClassName = 'wider-layout';
|
|
16
|
+
var wrapperStyle = exports.wrapperStyle = function wrapperStyle(theme) {
|
|
18
17
|
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n\n &.without-frame {\n background: transparent;\n }\n cursor: pointer;\n width: 100%;\n\n .extension-overflow-wrapper:not(.with-body) {\n overflow-x: auto;\n }\n"])), (0, _styles.wrapperDefault)(theme));
|
|
19
18
|
};
|
|
20
|
-
exports.
|
|
21
|
-
var
|
|
22
|
-
exports.header = header;
|
|
23
|
-
var content = function content(theme) {
|
|
19
|
+
var header = exports.header = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n padding: ", "px ", "px 0px;\n vertical-align: middle;\n\n &.with-children:not(.without-frame) {\n padding: 4px 8px 8px;\n }\n &.without-frame {\n padding: 0;\n }\n"])), _styles.padding / 2, _styles.padding / 2);
|
|
20
|
+
var content = exports.content = function content(theme) {
|
|
24
21
|
return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n padding: ", "px;\n background: ", ";\n color: ", ";\n border: 1px solid ", ";\n border-radius: ", "px;\n cursor: initial;\n width: 100%;\n"])), _styles.padding, (0, _components.themed)({
|
|
25
22
|
light: "var(--ds-surface, white)",
|
|
26
23
|
dark: "var(--ds-surface, ".concat(_colors.DN30, ")")
|
|
@@ -28,6 +25,4 @@ var content = function content(theme) {
|
|
|
28
25
|
dark: "var(--ds-text, ".concat(_colors.DN900, ")")
|
|
29
26
|
})(theme), "var(--ds-border, ".concat(_colors.N30, ")"), (0, _constants.borderRadius)());
|
|
30
27
|
};
|
|
31
|
-
exports.
|
|
32
|
-
var contentWrapper = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n padding: 0 ", "px ", "px;\n display: flex;\n justify-content: center;\n"])), _styles.padding, _styles.padding);
|
|
33
|
-
exports.contentWrapper = contentWrapper;
|
|
28
|
+
var contentWrapper = exports.contentWrapper = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n padding: 0 ", "px ", "px;\n display: flex;\n justify-content: center;\n"])), _styles.padding, _styles.padding);
|
|
@@ -25,7 +25,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
25
25
|
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; }
|
|
26
26
|
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); }; }
|
|
27
27
|
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; } }
|
|
28
|
-
var ExtensionComponent = /*#__PURE__*/function (_Component) {
|
|
28
|
+
var ExtensionComponent = exports.default = /*#__PURE__*/function (_Component) {
|
|
29
29
|
(0, _inherits2.default)(ExtensionComponent, _Component);
|
|
30
30
|
var _super = _createSuper(ExtensionComponent);
|
|
31
31
|
function ExtensionComponent() {
|
|
@@ -97,7 +97,7 @@ var ExtensionComponent = /*#__PURE__*/function (_Component) {
|
|
|
97
97
|
}, _callee, null, [[4, 11]]);
|
|
98
98
|
})));
|
|
99
99
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "handleExtension", function (pmNode) {
|
|
100
|
-
var _pmNode$marks
|
|
100
|
+
var _pmNode$marks;
|
|
101
101
|
var _this$props = _this.props,
|
|
102
102
|
extensionHandlers = _this$props.extensionHandlers,
|
|
103
103
|
editorView = _this$props.editorView;
|
|
@@ -110,9 +110,9 @@ var ExtensionComponent = /*#__PURE__*/function (_Component) {
|
|
|
110
110
|
if (isBodiedExtension) {
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
|
-
var fragmentLocalId = pmNode === null || pmNode === void 0
|
|
113
|
+
var fragmentLocalId = pmNode === null || pmNode === void 0 || (_pmNode$marks = pmNode.marks) === null || _pmNode$marks === void 0 || (_pmNode$marks = _pmNode$marks.find(function (m) {
|
|
114
114
|
return m.type.name === 'fragment';
|
|
115
|
-
})) === null || _pmNode$marks
|
|
115
|
+
})) === null || _pmNode$marks === void 0 || (_pmNode$marks = _pmNode$marks.attrs) === null || _pmNode$marks === void 0 ? void 0 : _pmNode$marks.localId;
|
|
116
116
|
var node = {
|
|
117
117
|
type: pmNode.type.name,
|
|
118
118
|
extensionType: extensionType,
|
|
@@ -226,5 +226,4 @@ var ExtensionComponent = /*#__PURE__*/function (_Component) {
|
|
|
226
226
|
}
|
|
227
227
|
}]);
|
|
228
228
|
return ExtensionComponent;
|
|
229
|
-
}(_react.Component);
|
|
230
|
-
exports.default = ExtensionComponent;
|
|
229
|
+
}(_react.Component);
|
|
@@ -12,5 +12,4 @@ var ExtensionNodeWrapper = function ExtensionNodeWrapper(_ref) {
|
|
|
12
12
|
nodeType = _ref.nodeType;
|
|
13
13
|
return /*#__PURE__*/_react.default.createElement("span", null, children, nodeType === 'inlineExtension' && _utils.ZERO_WIDTH_SPACE);
|
|
14
14
|
};
|
|
15
|
-
var _default = ExtensionNodeWrapper;
|
|
16
|
-
exports.default = _default;
|
|
15
|
+
var _default = exports.default = ExtensionNodeWrapper;
|
|
@@ -20,7 +20,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
20
20
|
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; }
|
|
21
21
|
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); }; }
|
|
22
22
|
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; } } /** @jsx jsx */
|
|
23
|
-
var InlineExtension = /*#__PURE__*/function (_Component) {
|
|
23
|
+
var InlineExtension = exports.default = /*#__PURE__*/function (_Component) {
|
|
24
24
|
(0, _inherits2.default)(InlineExtension, _Component);
|
|
25
25
|
var _super = _createSuper(InlineExtension);
|
|
26
26
|
function InlineExtension() {
|
|
@@ -47,5 +47,4 @@ var InlineExtension = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
}
|
|
48
48
|
}]);
|
|
49
49
|
return InlineExtension;
|
|
50
|
-
}(_react.Component);
|
|
51
|
-
exports.default = InlineExtension;
|
|
50
|
+
}(_react.Component);
|
|
@@ -10,7 +10,6 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _constants = require("@atlaskit/theme/constants");
|
|
11
11
|
var _styles = require("../styles");
|
|
12
12
|
var _templateObject;
|
|
13
|
-
var wrapperStyle = function wrapperStyle(theme) {
|
|
13
|
+
var wrapperStyle = exports.wrapperStyle = function wrapperStyle(theme) {
|
|
14
14
|
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n ", "\n\n cursor: pointer;\n display: inline-flex;\n margin: 1px 1px 4px;\n\n > img {\n border-radius: ", "px;\n }\n\n &::after,\n &::before {\n vertical-align: text-top;\n display: inline-block;\n width: 1px;\n content: '';\n }\n\n &.with-children {\n padding: 0;\n background: ", ";\n }\n"])), (0, _styles.wrapperDefault)(theme), (0, _constants.borderRadius)(), "var(--ds-background-neutral-subtle, white)");
|
|
15
|
-
};
|
|
16
|
-
exports.wrapperStyle = wrapperStyle;
|
|
15
|
+
};
|
|
@@ -23,13 +23,11 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
23
23
|
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; }
|
|
24
24
|
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); }; }
|
|
25
25
|
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; } } /** @jsx jsx */
|
|
26
|
-
var capitalizeFirstLetter = function capitalizeFirstLetter(str) {
|
|
26
|
+
var capitalizeFirstLetter = exports.capitalizeFirstLetter = function capitalizeFirstLetter(str) {
|
|
27
27
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
28
28
|
};
|
|
29
|
-
exports.
|
|
30
|
-
var
|
|
31
|
-
exports.ICON_SIZE = ICON_SIZE;
|
|
32
|
-
var ExtensionLozenge = /*#__PURE__*/function (_Component) {
|
|
29
|
+
var ICON_SIZE = exports.ICON_SIZE = 24;
|
|
30
|
+
var ExtensionLozenge = exports.default = /*#__PURE__*/function (_Component) {
|
|
33
31
|
(0, _inherits2.default)(ExtensionLozenge, _Component);
|
|
34
32
|
var _super = _createSuper(ExtensionLozenge);
|
|
35
33
|
function ExtensionLozenge() {
|
|
@@ -94,5 +92,4 @@ var ExtensionLozenge = /*#__PURE__*/function (_Component) {
|
|
|
94
92
|
}
|
|
95
93
|
}]);
|
|
96
94
|
return ExtensionLozenge;
|
|
97
|
-
}(_react2.Component);
|
|
98
|
-
exports.default = ExtensionLozenge;
|
|
95
|
+
}(_react2.Component);
|
|
@@ -20,7 +20,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
20
20
|
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; }
|
|
21
21
|
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); }; }
|
|
22
22
|
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; } }
|
|
23
|
-
var Extension = /*#__PURE__*/function (_Component) {
|
|
23
|
+
var Extension = exports.default = /*#__PURE__*/function (_Component) {
|
|
24
24
|
(0, _inherits2.default)(Extension, _Component);
|
|
25
25
|
var _super = _createSuper(Extension);
|
|
26
26
|
function Extension(props) {
|
|
@@ -74,5 +74,4 @@ var Extension = /*#__PURE__*/function (_Component) {
|
|
|
74
74
|
}]);
|
|
75
75
|
return Extension;
|
|
76
76
|
}(_react.Component);
|
|
77
|
-
exports.default = Extension;
|
|
78
77
|
(0, _defineProperty2.default)(Extension, "displayName", 'Extension');
|
|
@@ -25,7 +25,7 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
25
25
|
var _colors = require("@atlaskit/theme/colors");
|
|
26
26
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
27
27
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
28
|
-
var wrapperDefault = function wrapperDefault(theme) {
|
|
28
|
+
var wrapperDefault = exports.wrapperDefault = function wrapperDefault(theme) {
|
|
29
29
|
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n position: relative;\n vertical-align: middle;\n\n .ProseMirror-selectednode > span > & > .extension-overlay {\n box-shadow: inset 0px 0px 0px 2px ", ";\n opacity: 1;\n }\n\n &.with-overlay {\n .extension-overlay {\n background: ", ";\n color: transparent;\n }\n\n &:hover .extension-overlay {\n opacity: 1;\n }\n }\n"])), (0, _components.themed)({
|
|
30
30
|
light: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
|
|
31
31
|
dark: "var(--ds-background-neutral, ".concat(_colors.DN50, ")")
|
|
@@ -33,12 +33,7 @@ var wrapperDefault = function wrapperDefault(theme) {
|
|
|
33
33
|
dark: "var(--ds-text, ".concat(_colors.DN700, ")")
|
|
34
34
|
})(theme), "var(--ds-border-selected, ".concat(_colors.B200, ")"), "var(--ds-background-neutral-hovered, ".concat(_colors.N20A, ")"));
|
|
35
35
|
};
|
|
36
|
-
exports.
|
|
37
|
-
var
|
|
38
|
-
exports.
|
|
39
|
-
var
|
|
40
|
-
exports.placeholderFallback = placeholderFallback;
|
|
41
|
-
var placeholderFallbackParams = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n max-width: 200px;\n margin-left: 5px;\n color: ", ";\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"])), "var(--ds-text-subtlest, ".concat(_colors.N70, ")"));
|
|
42
|
-
exports.placeholderFallbackParams = placeholderFallbackParams;
|
|
43
|
-
var styledImage = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n max-height: 16px;\n max-width: 16px;\n /* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */\n /* stylelint-disable-next-line */\n label: lozenge-image;\n"])));
|
|
44
|
-
exports.styledImage = styledImage;
|
|
36
|
+
var overlay = exports.overlay = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n border-radius: ", "px;\n position: absolute;\n width: 100%;\n height: 100%;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.3s;\n"])), (0, _constants.borderRadius)());
|
|
37
|
+
var placeholderFallback = exports.placeholderFallback = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n align-items: center;\n\n & > img {\n margin: 0 4px;\n }\n /* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */\n /* stylelint-disable-next-line */\n label: placeholder-fallback;\n"])));
|
|
38
|
+
var placeholderFallbackParams = exports.placeholderFallbackParams = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-block;\n max-width: 200px;\n margin-left: 5px;\n color: ", ";\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"])), "var(--ds-text-subtlest, ".concat(_colors.N70, ")"));
|
|
39
|
+
var styledImage = exports.styledImage = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n max-height: 16px;\n max-width: 16px;\n /* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */\n /* stylelint-disable-next-line */\n label: lozenge-image;\n"])));
|