@atlaskit/editor-core 188.0.11 → 188.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -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 +7 -27
- 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 +7 -8
- 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 +3 -4
- 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 +7 -8
- 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 +25 -34
- 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 +5 -6
- 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 +15 -10
- 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 +19 -134
- package/dist/cjs/plugins/media/utils/media-files.js +7 -11
- package/dist/cjs/plugins/media/utils/media-single.js +15 -81
- 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 +15 -16
- 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 +16 -18
- package/dist/cjs/plugins/paste/index.js +2 -3
- package/dist/cjs/plugins/paste/plugins/media.js +181 -0
- package/dist/cjs/plugins/paste/pm-plugins/analytics.js +25 -40
- package/dist/cjs/plugins/paste/pm-plugins/main.js +14 -15
- 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/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 +5 -7
- 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 +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/annotation/toolbar.js +2 -18
- package/dist/es2019/plugins/code-block/index.js +3 -3
- package/dist/es2019/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.js +1 -1
- package/dist/es2019/plugins/help-dialog/index.js +1 -1
- package/dist/es2019/plugins/help-dialog/ui/index.js +8 -13
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +1 -1
- package/dist/es2019/plugins/media/index.js +13 -6
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/ResizableMediaSingleNext.js +1 -0
- package/dist/es2019/plugins/media/utils/media-common.js +2 -107
- package/dist/es2019/plugins/media/utils/media-single.js +6 -72
- package/dist/es2019/plugins/panel/index.js +13 -13
- package/dist/es2019/plugins/paste/handlers.js +4 -4
- package/dist/es2019/plugins/paste/plugins/media.js +176 -0
- package/dist/es2019/plugins/paste/pm-plugins/analytics.js +2 -2
- package/dist/es2019/plugins/paste/pm-plugins/main.js +3 -4
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +3 -3
- package/dist/es2019/ui/Alignment/index.js +1 -1
- 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/annotation/toolbar.js +2 -18
- 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 +6 -6
- package/dist/esm/plugins/code-block/nodeviews/code-block.js +3 -3
- package/dist/esm/plugins/code-block/pm-plugins/codeBlockCopySelectionPlugin.js +1 -1
- 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 +4 -4
- package/dist/esm/plugins/help-dialog/ui/index.js +8 -13
- package/dist/esm/plugins/insert-block/index.js +3 -3
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/create-items.js +1 -1
- 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 +15 -8
- 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-common.js +2 -106
- package/dist/esm/plugins/media/utils/media-files.js +3 -3
- package/dist/esm/plugins/media/utils/media-single.js +8 -68
- package/dist/esm/plugins/mentions/index.js +3 -3
- package/dist/esm/plugins/panel/index.js +14 -14
- package/dist/esm/plugins/panel/pm-plugins/keymaps.js +2 -2
- package/dist/esm/plugins/paste/handlers.js +13 -13
- package/dist/esm/plugins/paste/index.js +1 -1
- package/dist/esm/plugins/paste/plugins/media.js +172 -0
- package/dist/esm/plugins/paste/pm-plugins/analytics.js +10 -10
- package/dist/esm/plugins/paste/pm-plugins/main.js +11 -12
- 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/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +3 -3
- package/dist/esm/test-utils.js +1 -1
- package/dist/esm/ui/Alignment/index.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -1
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -2
- package/dist/esm/ui/AppearanceComponents/Mobile.js +2 -2
- package/dist/esm/ui/CollapsedEditor/index.js +1 -1
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +3 -3
- package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +1 -1
- package/dist/esm/ui/ConfigPanel/FormErrorBoundary.js +2 -2
- package/dist/esm/ui/ConfigPanel/transformers.js +8 -9
- package/dist/esm/ui/ContextPanel/index.js +1 -1
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +6 -6
- package/dist/esm/ui/ToolbarFeedback/index.js +1 -1
- package/dist/esm/utils/mark.js +18 -18
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/labs/next/presets/default.d.ts +6 -0
- package/dist/types/plugins/annotation/toolbar.d.ts +0 -17
- package/dist/types/plugins/help-dialog/index.d.ts +2 -15
- package/dist/types/plugins/media/next-plugin-type.d.ts +4 -0
- package/dist/types/plugins/media/utils/media-common.d.ts +2 -10
- package/dist/types/plugins/media/utils/media-single.d.ts +2 -4
- package/dist/types/plugins/paste/handlers.d.ts +2 -2
- package/dist/types/plugins/paste/index.d.ts +5 -2
- package/dist/types/plugins/paste/plugins/media.d.ts +12 -0
- package/dist/types/plugins/paste/pm-plugins/analytics.d.ts +2 -2
- package/dist/types/plugins/paste/pm-plugins/main.d.ts +2 -2
- package/dist/types/ui/Alignment/index.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +6 -0
- package/dist/types-ts4.5/plugins/annotation/toolbar.d.ts +0 -17
- package/dist/types-ts4.5/plugins/help-dialog/index.d.ts +2 -15
- package/dist/types-ts4.5/plugins/media/next-plugin-type.d.ts +4 -0
- package/dist/types-ts4.5/plugins/media/utils/media-common.d.ts +2 -10
- package/dist/types-ts4.5/plugins/media/utils/media-single.d.ts +2 -4
- package/dist/types-ts4.5/plugins/paste/handlers.d.ts +2 -2
- package/dist/types-ts4.5/plugins/paste/index.d.ts +5 -2
- package/dist/types-ts4.5/plugins/paste/plugins/media.d.ts +12 -0
- package/dist/types-ts4.5/plugins/paste/pm-plugins/analytics.d.ts +2 -2
- package/dist/types-ts4.5/plugins/paste/pm-plugins/main.d.ts +2 -2
- package/dist/types-ts4.5/ui/Alignment/index.d.ts +2 -2
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
- package/package.json +6 -5
- package/dist/cjs/plugins/undo-redo/messages.js +0 -20
- package/dist/cjs/ui/Alignment/messages.js +0 -25
- package/dist/es2019/plugins/undo-redo/messages.js +0 -13
- package/dist/es2019/ui/Alignment/messages.js +0 -18
- package/dist/esm/plugins/undo-redo/messages.js +0 -13
- package/dist/esm/ui/Alignment/messages.js +0 -18
- package/dist/types/plugins/undo-redo/messages.d.ts +0 -12
- package/dist/types/ui/Alignment/messages.d.ts +0 -17
- package/dist/types-ts4.5/plugins/undo-redo/messages.d.ts +0 -12
- package/dist/types-ts4.5/ui/Alignment/messages.d.ts +0 -17
|
@@ -19,8 +19,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
19
19
|
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; }
|
|
20
20
|
/** @jsx jsx */
|
|
21
21
|
|
|
22
|
-
var CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
23
|
-
exports.CONTENT_AREA_TEST_ID = CONTENT_AREA_TEST_ID;
|
|
22
|
+
var CONTENT_AREA_TEST_ID = exports.CONTENT_AREA_TEST_ID = 'ak-editor-fp-content-area';
|
|
24
23
|
var Content = /*#__PURE__*/_react2.default.forwardRef(function (props, ref) {
|
|
25
24
|
var theme = (0, _react.useTheme)();
|
|
26
25
|
var fullWidthMode = props.appearance === 'full-width';
|
|
@@ -88,7 +87,6 @@ var Content = /*#__PURE__*/_react2.default.forwardRef(function (props, ref) {
|
|
|
88
87
|
});
|
|
89
88
|
});
|
|
90
89
|
});
|
|
91
|
-
var FullPageContentArea = (0, _reactIntlNext.injectIntl)(Content, {
|
|
90
|
+
var FullPageContentArea = exports.FullPageContentArea = (0, _reactIntlNext.injectIntl)(Content, {
|
|
92
91
|
forwardRef: true
|
|
93
|
-
});
|
|
94
|
-
exports.FullPageContentArea = FullPageContentArea;
|
|
92
|
+
});
|
|
@@ -22,7 +22,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
22
22
|
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; }
|
|
23
23
|
/** @jsx jsx */
|
|
24
24
|
|
|
25
|
-
var EditorToolbar = /*#__PURE__*/_react.default.memo(function (props) {
|
|
25
|
+
var EditorToolbar = exports.EditorToolbar = /*#__PURE__*/_react.default.memo(function (props) {
|
|
26
26
|
var _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$collabEdit, _props$collabEdit2, _props$collabEdit3, _props$featureFlags5, _props$featureFlags6;
|
|
27
27
|
var _useState = (0, _react.useState)(false),
|
|
28
28
|
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
@@ -52,7 +52,7 @@ var EditorToolbar = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
52
52
|
css: _MainToolbar.customToolbarWrapperStyle
|
|
53
53
|
}, (_props$featureFlags2 = props.featureFlags) !== null && _props$featureFlags2 !== void 0 && _props$featureFlags2.twoLineEditorToolbar && !!props.customPrimaryToolbarComponents && 'before' in props.customPrimaryToolbarComponents ? (0, _react2.jsx)(_BeforePrimaryToolbarWrapper.BeforePrimaryToolbarWrapper, {
|
|
54
54
|
beforePrimaryToolbarComponents: props.customPrimaryToolbarComponents.before
|
|
55
|
-
}) : null, (props === null || props === void 0
|
|
55
|
+
}) : null, (props === null || props === void 0 || (_props$featureFlags3 = props.featureFlags) === null || _props$featureFlags3 === void 0 ? void 0 : _props$featureFlags3.showAvatarGroupAsPlugin) === true && !((_props$featureFlags4 = props.featureFlags) !== null && _props$featureFlags4 !== void 0 && _props$featureFlags4.twoLineEditorToolbar) ? null : (0, _react2.jsx)(_ui.default, {
|
|
56
56
|
editorView: props.editorView,
|
|
57
57
|
eventDispatcher: props.eventDispatcher,
|
|
58
58
|
inviteToEditComponent: (_props$collabEdit = props.collabEdit) === null || _props$collabEdit === void 0 ? void 0 : _props$collabEdit.inviteToEditComponent,
|
|
@@ -89,7 +89,7 @@ var EditorToolbar = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
89
89
|
var _props$editorView;
|
|
90
90
|
if (!((_props$editorView = props.editorView) !== null && _props$editorView !== void 0 && _props$editorView.hasFocus())) {
|
|
91
91
|
var _props$editorView2;
|
|
92
|
-
(_props$editorView2 = props.editorView) === null || _props$editorView2 === void 0
|
|
92
|
+
(_props$editorView2 = props.editorView) === null || _props$editorView2 === void 0 || _props$editorView2.focus();
|
|
93
93
|
}
|
|
94
94
|
event.preventDefault();
|
|
95
95
|
event.stopPropagation();
|
|
@@ -118,6 +118,4 @@ var EditorToolbar = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
118
118
|
}, shouldSplitToolbar ? nonCustomToolbar : customToolbar)));
|
|
119
119
|
});
|
|
120
120
|
});
|
|
121
|
-
exports.
|
|
122
|
-
var FullPageToolbar = (0, _reactIntlNext.injectIntl)(EditorToolbar);
|
|
123
|
-
exports.FullPageToolbar = FullPageToolbar;
|
|
121
|
+
var FullPageToolbar = exports.FullPageToolbar = (0, _reactIntlNext.injectIntl)(EditorToolbar);
|
|
@@ -10,33 +10,26 @@ var _react = require("@emotion/react");
|
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
12
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
13
|
-
var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
|
|
14
|
-
exports.MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT;
|
|
13
|
+
var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = exports.MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
|
|
15
14
|
var toolbarLineHeight = 56;
|
|
16
15
|
|
|
17
16
|
// box-shadow is overriden by the mainToolbar
|
|
18
17
|
var mainToolbarWithKeyline = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n box-shadow: 0 ", "px 0 0\n ", ";\n"])), _editorSharedStyles.akEditorToolbarKeylineHeight, "var(--ds-border, ".concat(_colors.N30, ")"));
|
|
19
18
|
var mainToolbarTwoLineStyle = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n @media (max-width: ", "px) {\n flex-wrap: wrap;\n height: calc(", "px * 2);\n }\n"])), MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, toolbarLineHeight);
|
|
20
19
|
var mainToolbar = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n align-items: center;\n box-shadow: none;\n transition: box-shadow 200ms ", ";\n z-index: ", ";\n display: flex;\n height: ", "px;\n flex-shrink: 0;\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4456\n background-color: ", ";\n\n & object {\n height: 0 !important;\n }\n\n @media (max-width: ", "px) {\n display: grid;\n height: calc(", "px * 2);\n }\n"])), _editorSharedStyles.akEditorSwoopCubicBezier, _editorSharedStyles.akEditorFloatingDialogZIndex, toolbarLineHeight, "var(--ds-surface, white)", _editorSharedStyles.akEditorMobileMaxWidth, toolbarLineHeight);
|
|
21
|
-
var mainToolbarStyle = function mainToolbarStyle(showKeyline, twoLineEditorToolbar) {
|
|
20
|
+
var mainToolbarStyle = exports.mainToolbarStyle = function mainToolbarStyle(showKeyline, twoLineEditorToolbar) {
|
|
22
21
|
return [mainToolbar, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle];
|
|
23
22
|
};
|
|
24
|
-
exports.
|
|
25
|
-
var mainToolbarIconBeforeStyle = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n margin: ", ";\n height: ", ";\n width: ", ";\n @media (max-width: ", "px) {\n grid-column: 1;\n grid-row: 1;\n }\n"])), "var(--ds-space-200, 16px)", "var(--ds-space-400, 32px)", "var(--ds-space-400, 32px)", _editorSharedStyles.akEditorMobileMaxWidth);
|
|
26
|
-
exports.mainToolbarIconBeforeStyle = mainToolbarIconBeforeStyle;
|
|
23
|
+
var mainToolbarIconBeforeStyle = exports.mainToolbarIconBeforeStyle = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n margin: ", ";\n height: ", ";\n width: ", ";\n @media (max-width: ", "px) {\n grid-column: 1;\n grid-row: 1;\n }\n"])), "var(--ds-space-200, 16px)", "var(--ds-space-400, 32px)", "var(--ds-space-400, 32px)", _editorSharedStyles.akEditorMobileMaxWidth);
|
|
27
24
|
var mainToolbarFirstChild = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-grow: 1;\n\n @media (max-width: ", "px) {\n grid-column: 1;\n grid-row: 1;\n }\n"])), _editorSharedStyles.akEditorMobileMaxWidth);
|
|
28
25
|
var mainToolbarFirstChildTowLine = (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n @media (max-width: ", "px) {\n flex: 1 1 100%;\n height: ", "px;\n justify-content: flex-end;\n // ED-10241: We add fit-content to ensure that MainToolbar does not\n // shrink more than the size of its contents. This will prevent the\n // find/replace icon from being overlapped during a confluence\n // publish operation\n min-width: fit-content;\n }\n"])), MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, toolbarLineHeight);
|
|
29
|
-
var mainToolbarFirstChildStyle = function mainToolbarFirstChildStyle(twoLineEditorToolbar) {
|
|
26
|
+
var mainToolbarFirstChildStyle = exports.mainToolbarFirstChildStyle = function mainToolbarFirstChildStyle(twoLineEditorToolbar) {
|
|
30
27
|
return [mainToolbarFirstChild, twoLineEditorToolbar && mainToolbarFirstChildTowLine];
|
|
31
28
|
};
|
|
32
|
-
exports.mainToolbarFirstChildStyle = mainToolbarFirstChildStyle;
|
|
33
29
|
var mainToolbarSecondChild = (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n // ED-10241: We add fit-content to ensure that MainToolbar does not\n // shrink more than the size of its contents. This will prevent the\n // find/replace icon from being overlapped during a confluence\n // publish operation\n min-width: fit-content;\n"])));
|
|
34
30
|
var mainToolbarSecondChildTwoLine = (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n @media (max-width: ", "px) {\n display: flex;\n flex-grow: 1;\n flex: 1 1 100%;\n margin: auto;\n height: ", "px;\n min-width: 0;\n }\n"])), MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, toolbarLineHeight);
|
|
35
|
-
var mainToolbarSecondChildStyle = function mainToolbarSecondChildStyle(twoLineEditorToolbar) {
|
|
31
|
+
var mainToolbarSecondChildStyle = exports.mainToolbarSecondChildStyle = function mainToolbarSecondChildStyle(twoLineEditorToolbar) {
|
|
36
32
|
return [mainToolbarSecondChild, twoLineEditorToolbar && mainToolbarSecondChildTwoLine];
|
|
37
33
|
};
|
|
38
|
-
exports.
|
|
39
|
-
var
|
|
40
|
-
exports.nonCustomToolbarWrapperStyle = nonCustomToolbarWrapperStyle;
|
|
41
|
-
var customToolbarWrapperStyle = (0, _react.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n display: flex;\n"])));
|
|
42
|
-
exports.customToolbarWrapperStyle = customToolbarWrapperStyle;
|
|
34
|
+
var nonCustomToolbarWrapperStyle = exports.nonCustomToolbarWrapperStyle = (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n display: flex;\n flex-grow: 1;\n"])));
|
|
35
|
+
var customToolbarWrapperStyle = exports.customToolbarWrapperStyle = (0, _react.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n display: flex;\n"])));
|
|
@@ -16,41 +16,33 @@ var _styles = require("../../styles");
|
|
|
16
16
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10;
|
|
17
17
|
var SWOOP_ANIMATION = "0.5s ".concat(_editorSharedStyles.akEditorSwoopCubicBezier);
|
|
18
18
|
var TOTAL_PADDING = _editorSharedStyles.akEditorGutterPadding * 2;
|
|
19
|
-
var fullPageEditorWrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n min-width: 340px;\n height: 100%;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n"])));
|
|
20
|
-
exports.fullPageEditorWrapper = fullPageEditorWrapper;
|
|
19
|
+
var fullPageEditorWrapper = exports.fullPageEditorWrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n min-width: 340px;\n height: 100%;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n"])));
|
|
21
20
|
var scrollStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n height: 100%;\n overflow-y: scroll;\n position: relative;\n display: flex;\n flex-direction: column;\n scroll-behavior: smooth;\n ", ";\n"])), _styles.scrollbarStyles);
|
|
22
|
-
var ScrollContainer = (0, _ContentStyles.createEditorContentStyle)(scrollStyles);
|
|
23
|
-
exports.ScrollContainer = ScrollContainer;
|
|
21
|
+
var ScrollContainer = exports.ScrollContainer = (0, _ContentStyles.createEditorContentStyle)(scrollStyles);
|
|
24
22
|
ScrollContainer.displayName = 'ScrollContainer';
|
|
25
23
|
|
|
26
24
|
// transition used to match scrollbar with config panel opening animation
|
|
27
25
|
// only use animation when opening as there is a bug with floating toolbars.
|
|
28
|
-
var positionedOverEditorStyle = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n padding-right: ", "px;\n transition: padding 500ms ", ";\n\n .fabric-editor-popup-scroll-parent {\n padding-left: ", "px;\n transition: padding 500ms ", ";\n }\n"])), _editorSharedStyles.akEditorContextPanelWidth, _editorSharedStyles.akEditorSwoopCubicBezier, _editorSharedStyles.akEditorContextPanelWidth, _editorSharedStyles.akEditorSwoopCubicBezier);
|
|
29
|
-
exports.
|
|
30
|
-
var
|
|
31
|
-
exports.contentArea = contentArea;
|
|
32
|
-
var sidebarArea = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n box-sizing: border-box;\n align-self: flex-end;\n"])));
|
|
26
|
+
var positionedOverEditorStyle = exports.positionedOverEditorStyle = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n padding-right: ", "px;\n transition: padding 500ms ", ";\n\n .fabric-editor-popup-scroll-parent {\n padding-left: ", "px;\n transition: padding 500ms ", ";\n }\n"])), _editorSharedStyles.akEditorContextPanelWidth, _editorSharedStyles.akEditorSwoopCubicBezier, _editorSharedStyles.akEditorContextPanelWidth, _editorSharedStyles.akEditorSwoopCubicBezier);
|
|
27
|
+
var contentArea = exports.contentArea = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n height: calc(100% - ", ");\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n transition: padding 0ms ", ";\n"])), _editorSharedStyles.ATLASSIAN_NAVIGATION_HEIGHT, _editorSharedStyles.akEditorSwoopCubicBezier);
|
|
28
|
+
var sidebarArea = exports.sidebarArea = (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n box-sizing: border-box;\n align-self: flex-end;\n"])));
|
|
33
29
|
|
|
34
30
|
// initially hide until we have a containerWidth and can properly size them,
|
|
35
31
|
// otherwise they can cause the editor width to extend which is non-recoverable
|
|
36
|
-
exports.
|
|
37
|
-
var editorContentAreaHideContainer = (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n .fabric-editor--full-width-mode {\n .pm-table-container,\n .code-block,\n .extension-container {\n display: none;\n }\n }\n"])));
|
|
32
|
+
var editorContentAreaHideContainer = exports.editorContentAreaHideContainer = (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n .fabric-editor--full-width-mode {\n .pm-table-container,\n .code-block,\n .extension-container {\n display: none;\n }\n }\n"])));
|
|
38
33
|
|
|
39
34
|
/* Prevent horizontal scroll on page in full width mode */
|
|
40
|
-
exports.editorContentAreaHideContainer = editorContentAreaHideContainer;
|
|
41
35
|
var editorContentAreaContainerStyle = function editorContentAreaContainerStyle(containerWidth) {
|
|
42
36
|
return (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n .fabric-editor--full-width-mode {\n .pm-table-container,\n .code-block,\n .extension-container {\n max-width: ", "px;\n }\n\n [data-layout-section] {\n max-width: ", "px;\n }\n }\n"])), containerWidth - TOTAL_PADDING - _consts.tableMarginFullWidthMode * 2, containerWidth - TOTAL_PADDING + _editorSharedStyles.akLayoutGutterOffset * 2);
|
|
43
37
|
};
|
|
44
|
-
var editorContentAreaStyle = function editorContentAreaStyle(_ref) {
|
|
38
|
+
var editorContentAreaStyle = exports.editorContentAreaStyle = function editorContentAreaStyle(_ref) {
|
|
45
39
|
var layoutMaxWidth = _ref.layoutMaxWidth,
|
|
46
40
|
fullWidthMode = _ref.fullWidthMode,
|
|
47
41
|
containerWidth = _ref.containerWidth;
|
|
48
42
|
return [editorContentArea, !fullWidthMode && editorContentAreaWithLayoutWith(layoutMaxWidth), containerWidth ? editorContentAreaContainerStyle(containerWidth) : editorContentAreaHideContainer];
|
|
49
43
|
};
|
|
50
|
-
exports.editorContentAreaStyle = editorContentAreaStyle;
|
|
51
44
|
var editorContentAreaWithLayoutWith = function editorContentAreaWithLayoutWith(layoutMaxWidth) {
|
|
52
45
|
return (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n max-width: ", "px;\n"])), layoutMaxWidth + TOTAL_PADDING);
|
|
53
46
|
};
|
|
54
47
|
var editorContentArea = (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n line-height: 24px;\n padding-top: 50px;\n padding-bottom: 55px;\n height: calc(\n 100% - 105px\n ); /* fill the viewport: 100% - (padding top & bottom) */\n width: 100%;\n margin: auto;\n flex-direction: column;\n flex-grow: 1;\n\n max-width: ", "px;\n transition: max-width ", ";\n & .ProseMirror {\n flex-grow: 1;\n box-sizing: border-box;\n }\n\n & .ProseMirror {\n & > * {\n /* pre-emptively clear all direct descendant content, just in case any are adjacent floated content */\n clear: both;\n }\n > p,\n > ul,\n > ol:not(", "):not(", "),\n > h1,\n > h2,\n > h3,\n > h4,\n > h5,\n > h6 {\n /* deliberately allow wrapping of text based nodes, just in case any are adjacent floated content */\n clear: none;\n }\n\n > p:last-child {\n margin-bottom: 24px;\n }\n }\n\n ", ";\n\n .fabric-editor--full-width-mode {\n /* Full Width Mode styles for ignoring breakout sizes */\n .fabric-editor-breakout-mark,\n .extension-container.block,\n .pm-table-container {\n width: 100% !important;\n }\n\n .fabric-editor-breakout-mark {\n margin-left: unset !important;\n transform: none !important;\n }\n }\n"])), _editorSharedStyles.akEditorFullWidthLayoutWidth + TOTAL_PADDING, SWOOP_ANIMATION, _adfSchema.taskListSelector, _adfSchema.decisionListSelector, _commonStyles.tableFullPageEditorStyles);
|
|
55
|
-
var editorContentGutterStyle = (0, _react.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n box-sizing: border-box;\n padding: 0 ", "px;\n"])), _editorSharedStyles.akEditorGutterPadding);
|
|
56
|
-
exports.editorContentGutterStyle = editorContentGutterStyle;
|
|
48
|
+
var editorContentGutterStyle = exports.editorContentGutterStyle = (0, _react.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n box-sizing: border-box;\n padding: 0 ", "px;\n"])), _editorSharedStyles.akEditorGutterPadding);
|
|
@@ -23,7 +23,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
23
23
|
var mobileEditor = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n min-height: 30px;\n width: 100%;\n max-width: inherit;\n box-sizing: border-box;\n word-wrap: break-word;\n\n div > .ProseMirror {\n outline: none;\n white-space: pre-wrap;\n padding: 0;\n margin: 0;\n }\n"])));
|
|
24
24
|
var ContentArea = (0, _ContentStyles.createEditorContentStyle)();
|
|
25
25
|
ContentArea.displayName = 'ContentArea';
|
|
26
|
-
var MobileAppearance = /*#__PURE__*/(0, _react.forwardRef)(function MobileAppearance(_ref, ref) {
|
|
26
|
+
var MobileAppearance = exports.MobileAppearance = /*#__PURE__*/(0, _react.forwardRef)(function MobileAppearance(_ref, ref) {
|
|
27
27
|
var _api$base2;
|
|
28
28
|
var editorView = _ref.editorView,
|
|
29
29
|
persistScrollGutter = _ref.persistScrollGutter,
|
|
@@ -42,7 +42,7 @@ var MobileAppearance = /*#__PURE__*/(0, _react.forwardRef)(function MobileAppear
|
|
|
42
42
|
var windowHeight = mobileDimensions.windowHeight,
|
|
43
43
|
mobilePaddingTop = mobileDimensions.mobilePaddingTop,
|
|
44
44
|
isExpanded = mobileDimensions.isExpanded;
|
|
45
|
-
var basePluginState = api === null || api === void 0
|
|
45
|
+
var basePluginState = api === null || api === void 0 || (_api$base = api.base) === null || _api$base === void 0 ? void 0 : _api$base.sharedState.currentState();
|
|
46
46
|
var keyboardHeight = (_basePluginState$keyb = basePluginState === null || basePluginState === void 0 ? void 0 : basePluginState.keyboardHeight) !== null && _basePluginState$keyb !== void 0 ? _basePluginState$keyb : -1;
|
|
47
47
|
|
|
48
48
|
/*
|
|
@@ -79,7 +79,7 @@ var MobileAppearance = /*#__PURE__*/(0, _react.forwardRef)(function MobileAppear
|
|
|
79
79
|
}, (0, _react2.jsx)("div", {
|
|
80
80
|
className: "ak-editor-content-area"
|
|
81
81
|
}, children)))));
|
|
82
|
-
}, [children, editorView, persistScrollGutter, editorDisabled, ref, featureFlags, api === null || api === void 0
|
|
82
|
+
}, [children, editorView, persistScrollGutter, editorDisabled, ref, featureFlags, api === null || api === void 0 || (_api$base2 = api.base) === null || _api$base2 === void 0 ? void 0 : _api$base2.sharedState]);
|
|
83
83
|
return (0, _react2.jsx)(_WithPluginState.default, {
|
|
84
84
|
plugins: {
|
|
85
85
|
maxContentSize: _maxContentSize.pluginKey,
|
|
@@ -87,5 +87,4 @@ var MobileAppearance = /*#__PURE__*/(0, _react.forwardRef)(function MobileAppear
|
|
|
87
87
|
},
|
|
88
88
|
render: render
|
|
89
89
|
});
|
|
90
|
-
});
|
|
91
|
-
exports.MobileAppearance = MobileAppearance;
|
|
90
|
+
});
|
|
@@ -66,5 +66,4 @@ var ChromeCollapsed = /*#__PURE__*/function (_PureComponent) {
|
|
|
66
66
|
}]);
|
|
67
67
|
return ChromeCollapsed;
|
|
68
68
|
}(_react.PureComponent);
|
|
69
|
-
var _default = (0, _reactIntlNext.injectIntl)(ChromeCollapsed);
|
|
70
|
-
exports.default = _default;
|
|
69
|
+
var _default = exports.default = (0, _reactIntlNext.injectIntl)(ChromeCollapsed);
|
|
@@ -5,11 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
7
|
var _reactIntlNext = require("react-intl-next");
|
|
8
|
-
var messages = (0, _reactIntlNext.defineMessages)({
|
|
8
|
+
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
9
|
chromeCollapsedPlaceholder: {
|
|
10
10
|
id: 'fabric.editor.chromeCollapsedPlaceholder',
|
|
11
11
|
defaultMessage: 'Type something…',
|
|
12
12
|
description: 'placeholder for an input where users insert text'
|
|
13
13
|
}
|
|
14
|
-
});
|
|
15
|
-
exports.messages = messages;
|
|
14
|
+
});
|
|
@@ -11,5 +11,4 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
|
11
11
|
var _constants = require("@atlaskit/theme/constants");
|
|
12
12
|
var _colors = require("@atlaskit/theme/colors");
|
|
13
13
|
var _templateObject;
|
|
14
|
-
var inputStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n /* Normal .className gets overridden by input[type=text] hence this hack to produce input.className */\n input& {\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n height: 40px;\n padding-left: 20px;\n padding-top: 12px;\n padding-bottom: 12px;\n font-size: ", ";\n width: 100%;\n font-weight: 400;\n line-height: 1.42857142857143;\n letter-spacing: -0.005em;\n color: ", ";\n\n &:hover {\n background-color: ", ";\n border-color: ", ";\n cursor: text;\n }\n }\n"])), "var(--ds-background-input, white)", "var(--ds-border-input, ".concat(_editorSharedStyles.akEditorSubtleAccent, ")"), (0, _constants.borderRadius)(), (0, _editorSharedStyles.relativeFontSizeToBase16)(14), "var(--ds-text-subtlest, ".concat(_colors.N300, ")"), "var(--ds-background-input-hovered, white)", "var(--ds-border-input, ".concat(_colors.N50, ")"));
|
|
15
|
-
exports.inputStyle = inputStyle;
|
|
14
|
+
var inputStyle = exports.inputStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n /* Normal .className gets overridden by input[type=text] hence this hack to produce input.className */\n input& {\n background-color: ", ";\n border: 1px solid ", ";\n border-radius: ", "px;\n box-sizing: border-box;\n height: 40px;\n padding-left: 20px;\n padding-top: 12px;\n padding-bottom: 12px;\n font-size: ", ";\n width: 100%;\n font-weight: 400;\n line-height: 1.42857142857143;\n letter-spacing: -0.005em;\n color: ", ";\n\n &:hover {\n background-color: ", ";\n border-color: ", ";\n cursor: text;\n }\n }\n"])), "var(--ds-background-input, white)", "var(--ds-border-input, ".concat(_editorSharedStyles.akEditorSubtleAccent, ")"), (0, _constants.borderRadius)(), (0, _editorSharedStyles.relativeFontSizeToBase16)(14), "var(--ds-text-subtlest, ".concat(_colors.N300, ")"), "var(--ds-background-input-hovered, white)", "var(--ds-border-input, ".concat(_colors.N50, ")"));
|
|
@@ -20,7 +20,7 @@ var _EditorWithActions = _interopRequireDefault(require("../../labs/EditorWithAc
|
|
|
20
20
|
var _ChromeCollapsed = _interopRequireDefault(require("../ChromeCollapsed"));
|
|
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 CollapsedEditor = /*#__PURE__*/function (_React$Component) {
|
|
23
|
+
var CollapsedEditor = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
24
24
|
(0, _inherits2.default)(CollapsedEditor, _React$Component);
|
|
25
25
|
var _super = _createSuper(CollapsedEditor);
|
|
26
26
|
function CollapsedEditor() {
|
|
@@ -43,7 +43,7 @@ var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
43
43
|
value: function componentDidUpdate() {
|
|
44
44
|
if (this.props.isExpanded && (this.editorComponent || this.functionalEditor) && (!this.previouslyExpanded || this.previouslyExpanded === undefined)) {
|
|
45
45
|
var _this$props$onExpand, _this$props;
|
|
46
|
-
(_this$props$onExpand = (_this$props = this.props).onExpand) === null || _this$props$onExpand === void 0
|
|
46
|
+
(_this$props$onExpand = (_this$props = this.props).onExpand) === null || _this$props$onExpand === void 0 || _this$props$onExpand.call(_this$props);
|
|
47
47
|
}
|
|
48
48
|
this.previouslyExpanded = this.props.isExpanded;
|
|
49
49
|
}
|
|
@@ -75,5 +75,4 @@ var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
75
75
|
}
|
|
76
76
|
}]);
|
|
77
77
|
return CollapsedEditor;
|
|
78
|
-
}(_react.default.Component);
|
|
79
|
-
exports.default = CollapsedEditor;
|
|
78
|
+
}(_react.default.Component);
|
|
@@ -5,5 +5,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
8
|
-
var _default = _uiColor.cellBackgroundColorPalette;
|
|
9
|
-
exports.default = _default;
|
|
8
|
+
var _default = exports.default = _uiColor.cellBackgroundColorPalette;
|
|
@@ -5,5 +5,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
8
|
-
var _default = _uiColor.colorPaletteMessages;
|
|
9
|
-
exports.default = _default;
|
|
8
|
+
var _default = exports.default = _uiColor.colorPaletteMessages;
|
|
@@ -29,5 +29,4 @@ Object.defineProperty(exports, "textPaletteTooltipMessages", {
|
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
var _uiColor = require("@atlaskit/editor-common/ui-color");
|
|
32
|
-
var _default = _uiColor.ColorPalette;
|
|
33
|
-
exports.default = _default;
|
|
32
|
+
var _default = exports.default = _uiColor.ColorPalette;
|
|
@@ -197,9 +197,9 @@ var ConfigPanel = /*#__PURE__*/function (_React$Component) {
|
|
|
197
197
|
break;
|
|
198
198
|
}
|
|
199
199
|
if (!extensionManifest) {
|
|
200
|
-
autoSaveReject === null || autoSaveReject === void 0
|
|
200
|
+
autoSaveReject === null || autoSaveReject === void 0 || autoSaveReject(new Error('Extension manifest not loaded'));
|
|
201
201
|
} else if (!fields) {
|
|
202
|
-
autoSaveReject === null || autoSaveReject === void 0
|
|
202
|
+
autoSaveReject === null || autoSaveReject === void 0 || autoSaveReject(new Error('Config fields not loaded'));
|
|
203
203
|
}
|
|
204
204
|
return _context.abrupt("return");
|
|
205
205
|
case 4:
|
|
@@ -214,7 +214,7 @@ var ConfigPanel = /*#__PURE__*/function (_React$Component) {
|
|
|
214
214
|
case 11:
|
|
215
215
|
_context.prev = 11;
|
|
216
216
|
_context.t0 = _context["catch"](4);
|
|
217
|
-
autoSaveReject === null || autoSaveReject === void 0
|
|
217
|
+
autoSaveReject === null || autoSaveReject === void 0 || autoSaveReject(_context.t0);
|
|
218
218
|
// eslint-disable-next-line no-console
|
|
219
219
|
console.error("Error serializing parameters", _context.t0);
|
|
220
220
|
case 15:
|
|
@@ -455,7 +455,6 @@ var ConfigPanel = /*#__PURE__*/function (_React$Component) {
|
|
|
455
455
|
}]);
|
|
456
456
|
return ConfigPanel;
|
|
457
457
|
}(_react.default.Component);
|
|
458
|
-
var _default = (0, _analyticsNext.withAnalyticsContext)({
|
|
458
|
+
var _default = exports.default = (0, _analyticsNext.withAnalyticsContext)({
|
|
459
459
|
source: 'ConfigPanel'
|
|
460
|
-
})((0, _analyticsNext.withAnalyticsEvents)()(ConfigPanel));
|
|
461
|
-
exports.default = _default;
|
|
460
|
+
})((0, _analyticsNext.withAnalyticsEvents)()(ConfigPanel));
|
|
@@ -10,7 +10,7 @@ var _reactLoadable = _interopRequireDefault(require("react-loadable"));
|
|
|
10
10
|
var _LoadingState = _interopRequireDefault(require("./LoadingState"));
|
|
11
11
|
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); }
|
|
12
12
|
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; }
|
|
13
|
-
var _default = (0, _reactLoadable.default)({
|
|
13
|
+
var _default = exports.default = (0, _reactLoadable.default)({
|
|
14
14
|
loader: function loader() {
|
|
15
15
|
return Promise.resolve().then(function () {
|
|
16
16
|
return _interopRequireWildcard(require( /* webpackChunkName: "@atlaskit-internal_editor-core-config-panel" */
|
|
@@ -20,5 +20,4 @@ var _default = (0, _reactLoadable.default)({
|
|
|
20
20
|
});
|
|
21
21
|
},
|
|
22
22
|
loading: _LoadingState.default
|
|
23
|
-
});
|
|
24
|
-
exports.default = _default;
|
|
23
|
+
});
|
|
@@ -29,5 +29,4 @@ var ConfigPanelErrorMessage = function ConfigPanelErrorMessage(_ref) {
|
|
|
29
29
|
imageHeight: 80
|
|
30
30
|
});
|
|
31
31
|
};
|
|
32
|
-
var _default = (0, _reactIntlNext.injectIntl)(ConfigPanelErrorMessage);
|
|
33
|
-
exports.default = _default;
|
|
32
|
+
var _default = exports.default = (0, _reactIntlNext.injectIntl)(ConfigPanelErrorMessage);
|
|
@@ -32,7 +32,7 @@ function _validate(value, isRequired) {
|
|
|
32
32
|
}
|
|
33
33
|
function handleOnChange(onChange, onFieldChange, event) {
|
|
34
34
|
var _event$target;
|
|
35
|
-
onChange((event === null || event === void 0
|
|
35
|
+
onChange((event === null || event === void 0 || (_event$target = event.target) === null || _event$target === void 0 ? void 0 : _event$target.checked) || false);
|
|
36
36
|
// Note: prior to bumping typescript to version 2.4.2 onFieldChange
|
|
37
37
|
// was being called with a global variable (which had a value of '')
|
|
38
38
|
// While this was not intended, the code still worked as expected.
|
|
@@ -27,7 +27,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
27
27
|
Colour sequence source: https://product-fabric.atlassian.net/browse/ED-12650?focusedCommentId=204875
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
|
-
var colorPalette = [{
|
|
30
|
+
var colorPalette = exports.colorPalette = [{
|
|
31
31
|
label: 'Light Blue',
|
|
32
32
|
value: "var(--ds-background-accent-blue-subtle, #7AB2FF)"
|
|
33
33
|
},
|
|
@@ -139,8 +139,7 @@ var colorPalette = [{
|
|
|
139
139
|
* Extended chart colors.
|
|
140
140
|
* Decided here https://product-fabric.atlassian.net/wiki/spaces/EUXQ/pages/3477245015/Tokenising+table+charts+color
|
|
141
141
|
*/
|
|
142
|
-
exports.
|
|
143
|
-
var extendedColorPalette = [{
|
|
142
|
+
var extendedColorPalette = exports.extendedColorPalette = [{
|
|
144
143
|
label: 'Darker Blue',
|
|
145
144
|
value: "var(--ds-chart-blue-boldest, #003884)"
|
|
146
145
|
},
|
|
@@ -327,13 +326,10 @@ var extendedColorPalette = [{
|
|
|
327
326
|
border: _uiColor.DEFAULT_BORDER_COLOR
|
|
328
327
|
});
|
|
329
328
|
});
|
|
330
|
-
exports.extendedColorPalette = extendedColorPalette;
|
|
331
329
|
var colorPickerWrapper = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n height: ", ";\n padding-right: ", ";\n"])), "var(--ds-space-400, 32px)", "var(--ds-space-100, 8px)");
|
|
332
330
|
var colorPickerLabel = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-size: ", "px;\n margin-top: 0;\n"])), _typography.headingSizes.h400.size);
|
|
333
|
-
var EXPANDED_COLOR_PICKER_COLUMNS = 9;
|
|
334
|
-
exports.
|
|
335
|
-
var ORIGINAL_COLOR_PICKER_COLUMNS = 5;
|
|
336
|
-
exports.ORIGINAL_COLOR_PICKER_COLUMNS = ORIGINAL_COLOR_PICKER_COLUMNS;
|
|
331
|
+
var EXPANDED_COLOR_PICKER_COLUMNS = exports.EXPANDED_COLOR_PICKER_COLUMNS = 9;
|
|
332
|
+
var ORIGINAL_COLOR_PICKER_COLUMNS = exports.ORIGINAL_COLOR_PICKER_COLUMNS = 5;
|
|
337
333
|
var ColorPicker = function ColorPicker(props) {
|
|
338
334
|
var name = props.name,
|
|
339
335
|
title = props.title,
|
|
@@ -398,5 +394,4 @@ var ColorPickerField = function ColorPickerField(_ref) {
|
|
|
398
394
|
}));
|
|
399
395
|
});
|
|
400
396
|
};
|
|
401
|
-
var _default = ColorPickerField;
|
|
402
|
-
exports.default = _default;
|
|
397
|
+
var _default = exports.default = ColorPickerField;
|
|
@@ -20,10 +20,8 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
20
20
|
/** @jsx jsx */
|
|
21
21
|
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); }
|
|
22
22
|
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; }
|
|
23
|
-
var expandContainer = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-bottom: 1px solid ", ";\n"])), "var(--ds-border, ".concat(_colors.N40, ")"));
|
|
24
|
-
exports.
|
|
25
|
-
var expandControl = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n height: ", ";\n justify-content: center;\n padding-right: ", ";\n"])), "var(--ds-space-600, 48px)", "var(--ds-space-100, 8px)");
|
|
26
|
-
exports.expandControl = expandControl;
|
|
23
|
+
var expandContainer = exports.expandContainer = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-bottom: 1px solid ", ";\n"])), "var(--ds-border, ".concat(_colors.N40, ")"));
|
|
24
|
+
var expandControl = exports.expandControl = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n height: ", ";\n justify-content: center;\n padding-right: ", ";\n"])), "var(--ds-space-600, 48px)", "var(--ds-space-100, 8px)");
|
|
27
25
|
var chevronContainer = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n\n & > button {\n width: ", ";\n height: ", ";\n }\n"])), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)");
|
|
28
26
|
var labelContainer = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n width: 100%;\n align-items: center;\n display: flex;\n font-weight: 500;\n"])));
|
|
29
27
|
var expandContentContainer = function expandContentContainer(isHidden) {
|
|
@@ -63,5 +61,4 @@ function Expand(_ref) {
|
|
|
63
61
|
css: expandContentContainer(!expanded)
|
|
64
62
|
}, children));
|
|
65
63
|
}
|
|
66
|
-
var _default = (0, _reactIntlNext.injectIntl)(Expand);
|
|
67
|
-
exports.default = _default;
|
|
64
|
+
var _default = exports.default = (0, _reactIntlNext.injectIntl)(Expand);
|
|
@@ -263,5 +263,4 @@ function FieldsetError(_ref) {
|
|
|
263
263
|
}, (0, _react2.jsx)("p", null, message)));
|
|
264
264
|
}
|
|
265
265
|
var sectionMessageWrapper = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n margin-bottom: 24px;\n"])));
|
|
266
|
-
var _default = (0, _reactIntlNext.injectIntl)(FieldsetField);
|
|
267
|
-
exports.default = _default;
|
|
266
|
+
var _default = exports.default = (0, _reactIntlNext.injectIntl)(FieldsetField);
|
|
@@ -19,7 +19,7 @@ var getIconSize = function getIconSize(context, description) {
|
|
|
19
19
|
}
|
|
20
20
|
return 'small';
|
|
21
21
|
};
|
|
22
|
-
var formatOptionLabel = function formatOptionLabel(_ref, _ref2) {
|
|
22
|
+
var formatOptionLabel = exports.formatOptionLabel = function formatOptionLabel(_ref, _ref2) {
|
|
23
23
|
var label = _ref.label,
|
|
24
24
|
icon = _ref.icon,
|
|
25
25
|
description = _ref.description;
|
|
@@ -37,5 +37,4 @@ var formatOptionLabel = function formatOptionLabel(_ref, _ref2) {
|
|
|
37
37
|
paddingLeft: icon ? "var(--ds-space-100, 8px)" : 0
|
|
38
38
|
}
|
|
39
39
|
}, (0, _react.jsx)("p", null, label, description && context !== 'value' && (0, _react.jsx)("small", null, description))));
|
|
40
|
-
};
|
|
41
|
-
exports.formatOptionLabel = formatOptionLabel;
|
|
40
|
+
};
|
|
@@ -9,5 +9,4 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
var _templateObject;
|
|
12
|
-
var requiredIndicator = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), "var(--ds-text-danger, ".concat(_colors.R500, ")"));
|
|
13
|
-
exports.requiredIndicator = requiredIndicator;
|
|
12
|
+
var requiredIndicator = exports.requiredIndicator = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), "var(--ds-text-danger, ".concat(_colors.R500, ")"));
|
|
@@ -69,7 +69,7 @@ var FormErrorBoundaryInner = /*#__PURE__*/function (_React$Component) {
|
|
|
69
69
|
extensionKey = _this$props.extensionKey,
|
|
70
70
|
fields = _this$props.fields;
|
|
71
71
|
_this.getProductName().then(function (product) {
|
|
72
|
-
var _window
|
|
72
|
+
var _window;
|
|
73
73
|
if (!createAnalyticsEvent) {
|
|
74
74
|
// eslint-disable-next-line no-console
|
|
75
75
|
console.error('ConfigPanel FormErrorBoundary: Missing `createAnalyticsEvent`', {
|
|
@@ -88,7 +88,7 @@ var FormErrorBoundaryInner = /*#__PURE__*/function (_React$Component) {
|
|
|
88
88
|
eventType: _analytics.EVENT_TYPE.UI,
|
|
89
89
|
attributes: {
|
|
90
90
|
product: product,
|
|
91
|
-
browserInfo: ((_window = window) === null || _window === void 0
|
|
91
|
+
browserInfo: ((_window = window) === null || _window === void 0 || (_window = _window.navigator) === null || _window === void 0 ? void 0 : _window.userAgent) || 'unknown',
|
|
92
92
|
extensionKey: extensionKey,
|
|
93
93
|
fields: JSON.stringify(fields),
|
|
94
94
|
error: error,
|
|
@@ -135,8 +135,6 @@ var FormErrorBoundaryInner = /*#__PURE__*/function (_React$Component) {
|
|
|
135
135
|
}]);
|
|
136
136
|
return FormErrorBoundaryInner;
|
|
137
137
|
}(_react.default.Component);
|
|
138
|
-
var FormErrorBoundaryImpl = (0, _reactIntlNext.injectIntl)(FormErrorBoundaryInner);
|
|
139
|
-
exports.
|
|
140
|
-
var FormErrorBoundary = (0, _analyticsNext.withAnalyticsContext)()((0, _analyticsNext.withAnalyticsEvents)()(FormErrorBoundaryImpl));
|
|
141
|
-
exports.FormErrorBoundary = FormErrorBoundary;
|
|
138
|
+
var FormErrorBoundaryImpl = exports.FormErrorBoundaryImpl = (0, _reactIntlNext.injectIntl)(FormErrorBoundaryInner);
|
|
139
|
+
var FormErrorBoundary = exports.FormErrorBoundary = (0, _analyticsNext.withAnalyticsContext)()((0, _analyticsNext.withAnalyticsEvents)()(FormErrorBoundaryImpl));
|
|
142
140
|
FormErrorBoundary.displayName = 'FormErrorBoundary';
|
|
@@ -77,5 +77,4 @@ var Header = function Header(_ref) {
|
|
|
77
77
|
href: documentationUrl
|
|
78
78
|
}, intl.formatMessage(_messages.messages.documentation))));
|
|
79
79
|
};
|
|
80
|
-
var _default = (0, _reactIntlNext.injectIntl)(Header);
|
|
81
|
-
exports.default = _default;
|
|
80
|
+
var _default = exports.default = (0, _reactIntlNext.injectIntl)(Header);
|
|
@@ -45,5 +45,4 @@ var RemovableField = function RemovableField(_ref) {
|
|
|
45
45
|
label: intl.formatMessage(_messages.messages.removeField)
|
|
46
46
|
}))));
|
|
47
47
|
};
|
|
48
|
-
var _default = (0, _reactIntlNext.injectIntl)(RemovableField);
|
|
49
|
-
exports.default = _default;
|
|
48
|
+
var _default = exports.default = (0, _reactIntlNext.injectIntl)(RemovableField);
|
|
@@ -6,5 +6,4 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _ConfigPanelLoader = _interopRequireDefault(require("./ConfigPanelLoader"));
|
|
9
|
-
var _default = _ConfigPanelLoader.default;
|
|
10
|
-
exports.default = _default;
|
|
9
|
+
var _default = exports.default = _ConfigPanelLoader.default;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.messages = void 0;
|
|
7
7
|
var _reactIntlNext = require("react-intl-next");
|
|
8
|
-
var messages = (0, _reactIntlNext.defineMessages)({
|
|
8
|
+
var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
|
|
9
9
|
submit: {
|
|
10
10
|
id: 'fabric.editor.configPanel.submit',
|
|
11
11
|
defaultMessage: 'Submit',
|
|
@@ -91,5 +91,4 @@ var messages = (0, _reactIntlNext.defineMessages)({
|
|
|
91
91
|
defaultMessage: "We've let the team know. You can still edit and publish this page, or check the error console for more information.",
|
|
92
92
|
description: 'Note for uncaught config panel error'
|
|
93
93
|
}
|
|
94
|
-
});
|
|
95
|
-
exports.messages = messages;
|
|
94
|
+
});
|