@atlaskit/editor-core 176.0.3 → 177.0.1
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/.eslintrc.js +2 -2
- package/CHANGELOG.md +114 -0
- package/dist/cjs/create-editor/ReactEditorView.js +3 -1
- package/dist/cjs/create-editor/create-plugins-list.js +9 -6
- package/dist/cjs/create-editor/messages.js +17 -0
- package/dist/cjs/i18n/en.js +2 -2
- package/dist/cjs/i18n/en_GB.js +2 -2
- package/dist/cjs/i18n/en_ZZ.js +2 -2
- package/dist/cjs/i18n/index.js +4 -4
- package/dist/cjs/i18n/languages.js +9 -4
- package/dist/cjs/labs/next/full-page.js +2 -4
- package/dist/cjs/labs/next/presets/mobile.js +2 -2
- package/dist/cjs/labs/next/presets/preset.js +38 -6
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -3
- package/dist/cjs/plugins/annotation/nodeviews/index.js +1 -0
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/index.js +6 -1
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -4
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +5 -3
- package/dist/cjs/plugins/card/pm-plugins/doc.js +18 -29
- package/dist/cjs/plugins/card/pm-plugins/main.js +7 -21
- package/dist/cjs/plugins/card/styles.js +1 -3
- package/dist/cjs/plugins/card/toolbar.js +24 -8
- package/dist/cjs/plugins/card/ui/EditLinkToolbar.js +9 -5
- package/dist/cjs/plugins/card/ui/LinkToolbarAppearance.js +19 -53
- package/dist/cjs/plugins/card/utils.js +17 -3
- package/dist/cjs/plugins/code-block/styles.js +2 -4
- package/dist/cjs/plugins/collab-edit/actions.js +3 -3
- package/dist/cjs/plugins/collab-edit/styles.js +2 -4
- package/dist/cjs/plugins/collab-edit/ui/styles.js +2 -4
- package/dist/cjs/plugins/copy-button/toolbar.js +5 -3
- package/dist/cjs/plugins/date/index.js +1 -7
- package/dist/cjs/plugins/date/styles.js +1 -3
- package/dist/cjs/plugins/date/ui/DatePicker/index.js +2 -5
- package/dist/cjs/plugins/emoji/index.js +7 -14
- package/dist/cjs/plugins/expand/pm-plugins/main.js +4 -1
- package/dist/cjs/plugins/expand/toolbar.js +1 -0
- package/dist/cjs/plugins/expand/ui/styles.js +14 -16
- package/dist/cjs/plugins/extension/commands.js +17 -2
- package/dist/cjs/plugins/extension/pm-plugins/main.js +10 -0
- package/dist/cjs/plugins/extension/toolbar.js +49 -7
- package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +4 -6
- package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -3
- package/dist/cjs/plugins/extension/ui/Extension/styles.js +5 -7
- package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -4
- package/dist/cjs/plugins/extension/ui/styles.js +1 -3
- package/dist/cjs/plugins/fake-text-cursor/styles.js +1 -3
- package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +11 -11
- package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +7 -2
- package/dist/cjs/plugins/find-replace/ui/styles.js +2 -4
- package/dist/cjs/plugins/floating-toolbar/index.js +16 -4
- package/dist/cjs/plugins/floating-toolbar/ui/CheckboxModal.js +99 -0
- package/dist/cjs/plugins/floating-toolbar/ui/ConfirmationModal.js +10 -30
- package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +16 -4
- package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +109 -58
- package/dist/cjs/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -3
- package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -2
- package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +30 -111
- package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +1 -3
- package/dist/cjs/plugins/floating-toolbar/ui/SimpleModal.js +51 -0
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +30 -52
- package/dist/cjs/plugins/floating-toolbar/ui/messages.js +13 -3
- package/dist/cjs/plugins/floating-toolbar/ui/styles.js +10 -12
- package/dist/cjs/plugins/floating-toolbar/utils.js +4 -19
- package/dist/cjs/plugins/grid/styles.js +1 -3
- package/dist/cjs/plugins/help-dialog/index.js +3 -2
- package/dist/cjs/plugins/help-dialog/ui/styles.js +9 -11
- package/dist/cjs/plugins/hyperlink/Toolbar.js +20 -1
- package/dist/cjs/plugins/hyperlink/ui/EditorLinkPicker/index.js +6 -3
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -5
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +5 -10
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -0
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/item.js +26 -12
- package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +2 -4
- package/dist/cjs/plugins/layout/styles.js +1 -3
- package/dist/cjs/plugins/layout/toolbar.js +1 -0
- package/dist/cjs/plugins/list/actions/outdent-list-items-selected.js +34 -4
- package/dist/cjs/plugins/list/commands/outdent-list.js +1 -1
- package/dist/cjs/plugins/list/index.js +6 -2
- package/dist/cjs/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +13 -2
- package/dist/cjs/plugins/list/pm-plugins/input-rules/index.js +5 -2
- package/dist/cjs/plugins/list/pm-plugins/main.js +32 -10
- package/dist/cjs/plugins/media/index.js +35 -0
- package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +7 -6
- package/dist/cjs/plugins/media/nodeviews/mediaInline.js +3 -1
- package/dist/cjs/plugins/media/nodeviews/mediaNodeUpdater.js +70 -64
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +3 -1
- package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -5
- package/dist/cjs/plugins/media/pm-plugins/main.js +6 -0
- package/dist/cjs/plugins/media/styles.js +1 -3
- package/dist/cjs/plugins/media/toolbar/index.js +3 -0
- package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +1 -3
- package/dist/cjs/plugins/media/ui/Media/DropPlaceholder.js +2 -4
- package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +1 -3
- package/dist/cjs/plugins/media/utils/media-single.js +19 -3
- package/dist/cjs/plugins/mentions/styles.js +1 -3
- package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +1 -3
- package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +2 -4
- package/dist/cjs/plugins/panel/styles.js +1 -3
- package/dist/cjs/plugins/panel/toolbar.js +1 -0
- package/dist/cjs/plugins/panel/utils.js +1 -1
- package/dist/cjs/plugins/paste/index.js +2 -1
- package/dist/cjs/plugins/paste/pm-plugins/analytics.js +19 -3
- package/dist/cjs/plugins/paste/pm-plugins/main.js +1 -1
- package/dist/cjs/plugins/paste/util/index.js +2 -2
- package/dist/cjs/plugins/placeholder/index.js +24 -47
- package/dist/cjs/plugins/placeholder/styles.js +2 -6
- package/dist/cjs/plugins/placeholder-text/styles.js +1 -3
- package/dist/cjs/plugins/rule/styles.js +1 -3
- package/dist/cjs/plugins/status/ui/statusPicker.js +1 -3
- package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +7 -3
- package/dist/cjs/plugins/tasks-and-decisions/styles.js +1 -3
- package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -0
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +10 -5
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +5 -1
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +5 -1
- package/dist/cjs/plugins/toolbar-lists-indentation/ui/Toolbar.js +16 -6
- package/dist/cjs/plugins/type-ahead/index.js +2 -8
- package/dist/cjs/plugins/type-ahead/messages.js +44 -4
- package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +1 -4
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +18 -4
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +9 -4
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +15 -14
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +3 -4
- package/dist/cjs/plugins/type-ahead/utils.js +44 -2
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +6 -2
- package/dist/cjs/plugins/unsupported-content/styles.js +1 -3
- package/dist/cjs/ui/Addon/Dropdown/styles.js +1 -3
- package/dist/cjs/ui/Addon/DropdownItem/styles.js +1 -3
- package/dist/cjs/ui/Alignment/AlignmentButton/index.js +4 -1
- package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -3
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -4
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +2 -4
- package/dist/cjs/ui/ChromeCollapsed/styles.js +1 -3
- package/dist/cjs/ui/CollapsedEditor/index.js +4 -2
- package/dist/cjs/ui/ColorPickerButton/index.js +2 -1
- package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -3
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +1 -3
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +4 -7
- package/dist/cjs/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -3
- package/dist/cjs/ui/ConfigPanel/FormContent.js +2 -1
- package/dist/cjs/ui/ConfigPanel/Header.js +2 -4
- package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -3
- package/dist/cjs/ui/ContentStyles/index.js +2 -4
- package/dist/cjs/ui/ContextPanel/index.js +1 -3
- package/dist/cjs/ui/ElementBrowser/InsertMenu.js +3 -5
- package/dist/cjs/ui/ElementBrowser/ModalElementBrowser.js +2 -4
- package/dist/cjs/ui/ElementBrowser/components/CategoryList.js +2 -4
- package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +2 -4
- package/dist/cjs/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -3
- package/dist/cjs/ui/ElementBrowser/components/ElementSearch.js +1 -3
- package/dist/cjs/ui/FloatingToolbar/styles.js +1 -3
- package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +3 -5
- package/dist/cjs/ui/LinkSearch/ToolbarComponents.js +3 -1
- package/dist/cjs/ui/PanelTextInput/styles.js +1 -3
- package/dist/cjs/ui/ToolbarArrowKeyNavigationProvider/index.js +55 -33
- package/dist/cjs/ui/ToolbarFeedback/styles.js +3 -5
- package/dist/cjs/ui/WithFlash/index.js +2 -4
- package/dist/cjs/ui/styles.js +2 -4
- package/dist/cjs/utils/commands.js +25 -13
- package/dist/cjs/utils/input-rules.js +26 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +2 -1
- package/dist/es2019/create-editor/create-plugins-list.js +9 -6
- package/dist/es2019/create-editor/messages.js +8 -0
- package/dist/es2019/i18n/en.js +2 -2
- package/dist/es2019/i18n/en_GB.js +2 -2
- package/dist/es2019/i18n/en_ZZ.js +2 -2
- package/dist/es2019/i18n/index.js +4 -4
- package/dist/es2019/i18n/languages.js +9 -4
- package/dist/es2019/labs/next/full-page.js +2 -3
- package/dist/es2019/labs/next/presets/mobile.js +2 -2
- package/dist/es2019/labs/next/presets/preset.js +28 -7
- package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
- package/dist/es2019/plugins/annotation/nodeviews/index.js +1 -0
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/index.js +5 -1
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +8 -6
- package/dist/es2019/plugins/card/pm-plugins/doc.js +10 -19
- package/dist/es2019/plugins/card/pm-plugins/main.js +4 -19
- package/dist/es2019/plugins/card/styles.js +6 -7
- package/dist/es2019/plugins/card/toolbar.js +19 -2
- package/dist/es2019/plugins/card/ui/EditLinkToolbar.js +8 -6
- package/dist/es2019/plugins/card/ui/LinkToolbarAppearance.js +7 -36
- package/dist/es2019/plugins/card/utils.js +15 -2
- package/dist/es2019/plugins/code-block/styles.js +8 -9
- package/dist/es2019/plugins/collab-edit/actions.js +3 -3
- package/dist/es2019/plugins/collab-edit/styles.js +2 -3
- package/dist/es2019/plugins/collab-edit/ui/styles.js +3 -4
- package/dist/es2019/plugins/copy-button/toolbar.js +5 -3
- package/dist/es2019/plugins/date/index.js +0 -7
- package/dist/es2019/plugins/date/styles.js +1 -2
- package/dist/es2019/plugins/date/ui/DatePicker/index.js +3 -5
- package/dist/es2019/plugins/emoji/index.js +7 -13
- package/dist/es2019/plugins/expand/pm-plugins/main.js +3 -3
- package/dist/es2019/plugins/expand/toolbar.js +1 -0
- package/dist/es2019/plugins/expand/ui/styles.js +14 -15
- package/dist/es2019/plugins/extension/commands.js +10 -1
- package/dist/es2019/plugins/extension/pm-plugins/main.js +10 -0
- package/dist/es2019/plugins/extension/toolbar.js +43 -8
- package/dist/es2019/plugins/extension/ui/Extension/Extension/styles.js +4 -5
- package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
- package/dist/es2019/plugins/extension/ui/Extension/styles.js +6 -7
- package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +3 -4
- package/dist/es2019/plugins/extension/ui/styles.js +2 -3
- package/dist/es2019/plugins/fake-text-cursor/styles.js +2 -3
- package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +11 -11
- package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +7 -3
- package/dist/es2019/plugins/find-replace/ui/styles.js +2 -3
- package/dist/es2019/plugins/floating-toolbar/index.js +15 -5
- package/dist/es2019/plugins/floating-toolbar/ui/CheckboxModal.js +70 -0
- package/dist/es2019/plugins/floating-toolbar/ui/ConfirmationModal.js +8 -27
- package/dist/es2019/plugins/floating-toolbar/ui/Dropdown.js +17 -4
- package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +97 -52
- package/dist/es2019/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
- package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -1
- package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +30 -78
- package/dist/es2019/plugins/floating-toolbar/ui/Separator.js +1 -2
- package/dist/es2019/plugins/floating-toolbar/ui/SimpleModal.js +32 -0
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +29 -50
- package/dist/es2019/plugins/floating-toolbar/ui/messages.js +14 -4
- package/dist/es2019/plugins/floating-toolbar/ui/styles.js +10 -11
- package/dist/es2019/plugins/floating-toolbar/utils.js +4 -17
- package/dist/es2019/plugins/grid/styles.js +2 -3
- package/dist/es2019/plugins/help-dialog/index.js +2 -2
- package/dist/es2019/plugins/help-dialog/ui/styles.js +11 -12
- package/dist/es2019/plugins/hyperlink/Toolbar.js +18 -2
- package/dist/es2019/plugins/hyperlink/ui/EditorLinkPicker/index.js +9 -2
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -5
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +5 -9
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -0
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/item.js +25 -12
- package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +5 -6
- package/dist/es2019/plugins/layout/styles.js +4 -5
- package/dist/es2019/plugins/layout/toolbar.js +1 -0
- package/dist/es2019/plugins/list/actions/outdent-list-items-selected.js +24 -4
- package/dist/es2019/plugins/list/commands/outdent-list.js +1 -1
- package/dist/es2019/plugins/list/index.js +7 -3
- package/dist/es2019/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +13 -2
- package/dist/es2019/plugins/list/pm-plugins/input-rules/index.js +5 -2
- package/dist/es2019/plugins/list/pm-plugins/main.js +31 -11
- package/dist/es2019/plugins/media/index.js +38 -0
- package/dist/es2019/plugins/media/nodeviews/mediaGroup.js +6 -5
- package/dist/es2019/plugins/media/nodeviews/mediaInline.js +3 -1
- package/dist/es2019/plugins/media/nodeviews/mediaNodeUpdater.js +2 -2
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +3 -1
- package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +4 -5
- package/dist/es2019/plugins/media/pm-plugins/main.js +7 -0
- package/dist/es2019/plugins/media/styles.js +10 -11
- package/dist/es2019/plugins/media/toolbar/index.js +3 -0
- package/dist/es2019/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
- package/dist/es2019/plugins/media/ui/Media/DropPlaceholder.js +3 -4
- package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +1 -2
- package/dist/es2019/plugins/media/utils/media-single.js +20 -3
- package/dist/es2019/plugins/mentions/styles.js +4 -5
- package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +1 -2
- package/dist/es2019/plugins/mentions/ui/InviteItem/styles.js +2 -3
- package/dist/es2019/plugins/panel/styles.js +4 -5
- package/dist/es2019/plugins/panel/toolbar.js +1 -0
- package/dist/es2019/plugins/panel/utils.js +1 -1
- package/dist/es2019/plugins/paste/index.js +2 -1
- package/dist/es2019/plugins/paste/pm-plugins/analytics.js +15 -2
- package/dist/es2019/plugins/paste/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/paste/util/index.js +2 -2
- package/dist/es2019/plugins/placeholder/index.js +21 -47
- package/dist/es2019/plugins/placeholder/styles.js +2 -21
- package/dist/es2019/plugins/placeholder-text/styles.js +4 -5
- package/dist/es2019/plugins/rule/styles.js +1 -2
- package/dist/es2019/plugins/status/ui/statusPicker.js +2 -3
- package/dist/es2019/plugins/tasks-and-decisions/nodeviews/taskItem.js +6 -3
- package/dist/es2019/plugins/tasks-and-decisions/styles.js +2 -3
- package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -0
- package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +8 -7
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +4 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +18 -12
- package/dist/es2019/plugins/toolbar-lists-indentation/ui/Toolbar.js +16 -7
- package/dist/es2019/plugins/type-ahead/index.js +2 -2
- package/dist/es2019/plugins/type-ahead/messages.js +44 -4
- package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +1 -3
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +18 -3
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadList.js +10 -5
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +16 -14
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +4 -4
- package/dist/es2019/plugins/type-ahead/utils.js +38 -0
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +6 -3
- package/dist/es2019/plugins/unsupported-content/styles.js +2 -3
- package/dist/es2019/ui/Addon/Dropdown/styles.js +2 -3
- package/dist/es2019/ui/Addon/DropdownItem/styles.js +2 -3
- package/dist/es2019/ui/Alignment/AlignmentButton/index.js +4 -2
- package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -3
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +4 -5
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +2 -3
- package/dist/es2019/ui/ChromeCollapsed/styles.js +5 -6
- package/dist/es2019/ui/CollapsedEditor/index.js +3 -2
- package/dist/es2019/ui/ColorPickerButton/index.js +2 -1
- package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +1 -2
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +5 -7
- package/dist/es2019/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
- package/dist/es2019/ui/ConfigPanel/FormContent.js +3 -3
- package/dist/es2019/ui/ConfigPanel/Header.js +2 -3
- package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +2 -3
- package/dist/es2019/ui/ContentStyles/index.js +8 -4
- package/dist/es2019/ui/ContextPanel/index.js +1 -2
- package/dist/es2019/ui/ElementBrowser/InsertMenu.js +4 -5
- package/dist/es2019/ui/ElementBrowser/ModalElementBrowser.js +2 -3
- package/dist/es2019/ui/ElementBrowser/components/CategoryList.js +2 -3
- package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
- package/dist/es2019/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
- package/dist/es2019/ui/ElementBrowser/components/ElementSearch.js +1 -2
- package/dist/es2019/ui/FloatingToolbar/styles.js +2 -3
- package/dist/es2019/ui/LinkSearch/LinkSearchListItem.js +3 -4
- package/dist/es2019/ui/LinkSearch/ToolbarComponents.js +1 -0
- package/dist/es2019/ui/PanelTextInput/styles.js +3 -4
- package/dist/es2019/ui/ToolbarArrowKeyNavigationProvider/index.js +56 -34
- package/dist/es2019/ui/ToolbarFeedback/styles.js +4 -5
- package/dist/es2019/ui/WithFlash/index.js +3 -4
- package/dist/es2019/ui/styles.js +3 -4
- package/dist/es2019/utils/commands.js +26 -14
- package/dist/es2019/utils/input-rules.js +22 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +2 -1
- package/dist/esm/create-editor/create-plugins-list.js +9 -6
- package/dist/esm/create-editor/messages.js +8 -0
- package/dist/esm/i18n/en.js +2 -2
- package/dist/esm/i18n/en_GB.js +2 -2
- package/dist/esm/i18n/en_ZZ.js +2 -2
- package/dist/esm/i18n/index.js +4 -4
- package/dist/esm/i18n/languages.js +9 -4
- package/dist/esm/labs/next/full-page.js +2 -3
- package/dist/esm/labs/next/presets/mobile.js +2 -2
- package/dist/esm/labs/next/presets/preset.js +36 -6
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
- package/dist/esm/plugins/annotation/nodeviews/index.js +1 -0
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/index.js +5 -1
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +5 -3
- package/dist/esm/plugins/card/pm-plugins/doc.js +10 -20
- package/dist/esm/plugins/card/pm-plugins/main.js +4 -17
- package/dist/esm/plugins/card/styles.js +1 -2
- package/dist/esm/plugins/card/toolbar.js +24 -8
- package/dist/esm/plugins/card/ui/EditLinkToolbar.js +8 -6
- package/dist/esm/plugins/card/ui/LinkToolbarAppearance.js +9 -39
- package/dist/esm/plugins/card/utils.js +15 -2
- package/dist/esm/plugins/code-block/styles.js +2 -3
- package/dist/esm/plugins/collab-edit/actions.js +3 -3
- package/dist/esm/plugins/collab-edit/styles.js +2 -3
- package/dist/esm/plugins/collab-edit/ui/styles.js +2 -3
- package/dist/esm/plugins/copy-button/toolbar.js +5 -3
- package/dist/esm/plugins/date/index.js +1 -6
- package/dist/esm/plugins/date/styles.js +1 -2
- package/dist/esm/plugins/date/ui/DatePicker/index.js +2 -4
- package/dist/esm/plugins/emoji/index.js +7 -13
- package/dist/esm/plugins/expand/pm-plugins/main.js +3 -3
- package/dist/esm/plugins/expand/toolbar.js +1 -0
- package/dist/esm/plugins/expand/ui/styles.js +14 -15
- package/dist/esm/plugins/extension/commands.js +12 -1
- package/dist/esm/plugins/extension/pm-plugins/main.js +10 -0
- package/dist/esm/plugins/extension/toolbar.js +50 -8
- package/dist/esm/plugins/extension/ui/Extension/Extension/styles.js +4 -5
- package/dist/esm/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
- package/dist/esm/plugins/extension/ui/Extension/styles.js +5 -6
- package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -3
- package/dist/esm/plugins/extension/ui/styles.js +1 -2
- package/dist/esm/plugins/fake-text-cursor/styles.js +1 -2
- package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +11 -11
- package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +7 -3
- package/dist/esm/plugins/find-replace/ui/styles.js +2 -3
- package/dist/esm/plugins/floating-toolbar/index.js +16 -4
- package/dist/esm/plugins/floating-toolbar/ui/CheckboxModal.js +75 -0
- package/dist/esm/plugins/floating-toolbar/ui/ConfirmationModal.js +11 -25
- package/dist/esm/plugins/floating-toolbar/ui/Dropdown.js +17 -4
- package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +101 -49
- package/dist/esm/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
- package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -1
- package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +30 -110
- package/dist/esm/plugins/floating-toolbar/ui/Separator.js +1 -2
- package/dist/esm/plugins/floating-toolbar/ui/SimpleModal.js +30 -0
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +30 -51
- package/dist/esm/plugins/floating-toolbar/ui/messages.js +13 -3
- package/dist/esm/plugins/floating-toolbar/ui/styles.js +10 -11
- package/dist/esm/plugins/floating-toolbar/utils.js +4 -17
- package/dist/esm/plugins/grid/styles.js +1 -2
- package/dist/esm/plugins/help-dialog/index.js +3 -2
- package/dist/esm/plugins/help-dialog/ui/styles.js +9 -10
- package/dist/esm/plugins/hyperlink/Toolbar.js +20 -2
- package/dist/esm/plugins/hyperlink/ui/EditorLinkPicker/index.js +10 -3
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -4
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +5 -10
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -0
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/item.js +25 -12
- package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +2 -3
- package/dist/esm/plugins/layout/styles.js +1 -2
- package/dist/esm/plugins/layout/toolbar.js +1 -0
- package/dist/esm/plugins/list/actions/outdent-list-items-selected.js +30 -4
- package/dist/esm/plugins/list/commands/outdent-list.js +1 -1
- package/dist/esm/plugins/list/index.js +7 -3
- package/dist/esm/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +13 -2
- package/dist/esm/plugins/list/pm-plugins/input-rules/index.js +5 -2
- package/dist/esm/plugins/list/pm-plugins/main.js +31 -11
- package/dist/esm/plugins/media/index.js +33 -0
- package/dist/esm/plugins/media/nodeviews/mediaGroup.js +7 -6
- package/dist/esm/plugins/media/nodeviews/mediaInline.js +3 -1
- package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +70 -64
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +3 -1
- package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -4
- package/dist/esm/plugins/media/pm-plugins/main.js +7 -0
- package/dist/esm/plugins/media/styles.js +1 -2
- package/dist/esm/plugins/media/toolbar/index.js +3 -0
- package/dist/esm/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
- package/dist/esm/plugins/media/ui/Media/DropPlaceholder.js +2 -3
- package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +1 -2
- package/dist/esm/plugins/media/utils/media-single.js +18 -3
- package/dist/esm/plugins/mentions/styles.js +1 -2
- package/dist/esm/plugins/mentions/ui/InviteItem/index.js +1 -2
- package/dist/esm/plugins/mentions/ui/InviteItem/styles.js +2 -3
- package/dist/esm/plugins/panel/styles.js +1 -2
- package/dist/esm/plugins/panel/toolbar.js +1 -0
- package/dist/esm/plugins/panel/utils.js +1 -1
- package/dist/esm/plugins/paste/index.js +2 -1
- package/dist/esm/plugins/paste/pm-plugins/analytics.js +15 -2
- package/dist/esm/plugins/paste/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/paste/util/index.js +2 -2
- package/dist/esm/plugins/placeholder/index.js +23 -45
- package/dist/esm/plugins/placeholder/styles.js +1 -3
- package/dist/esm/plugins/placeholder-text/styles.js +1 -2
- package/dist/esm/plugins/rule/styles.js +1 -2
- package/dist/esm/plugins/status/ui/statusPicker.js +1 -2
- package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +6 -3
- package/dist/esm/plugins/tasks-and-decisions/styles.js +1 -2
- package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -0
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +9 -5
- package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +4 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +5 -1
- package/dist/esm/plugins/toolbar-lists-indentation/ui/Toolbar.js +16 -7
- package/dist/esm/plugins/type-ahead/index.js +2 -2
- package/dist/esm/plugins/type-ahead/messages.js +44 -4
- package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +1 -3
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +18 -3
- package/dist/esm/plugins/type-ahead/ui/TypeAheadList.js +10 -5
- package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +15 -13
- package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +3 -3
- package/dist/esm/plugins/type-ahead/utils.js +38 -0
- package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +6 -3
- package/dist/esm/plugins/unsupported-content/styles.js +1 -2
- package/dist/esm/ui/Addon/Dropdown/styles.js +1 -2
- package/dist/esm/ui/Addon/DropdownItem/styles.js +1 -2
- package/dist/esm/ui/Alignment/AlignmentButton/index.js +4 -2
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -2
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +3 -4
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
- package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +2 -3
- package/dist/esm/ui/ChromeCollapsed/styles.js +1 -2
- package/dist/esm/ui/CollapsedEditor/index.js +3 -2
- package/dist/esm/ui/ColorPickerButton/index.js +2 -1
- package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +1 -2
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +5 -7
- package/dist/esm/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
- package/dist/esm/ui/ConfigPanel/FormContent.js +3 -3
- package/dist/esm/ui/ConfigPanel/Header.js +2 -3
- package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
- package/dist/esm/ui/ContentStyles/index.js +2 -3
- package/dist/esm/ui/ContextPanel/index.js +1 -2
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +3 -4
- package/dist/esm/ui/ElementBrowser/ModalElementBrowser.js +2 -3
- package/dist/esm/ui/ElementBrowser/components/CategoryList.js +2 -3
- package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
- package/dist/esm/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
- package/dist/esm/ui/ElementBrowser/components/ElementSearch.js +1 -2
- package/dist/esm/ui/FloatingToolbar/styles.js +1 -2
- package/dist/esm/ui/LinkSearch/LinkSearchListItem.js +3 -4
- package/dist/esm/ui/LinkSearch/ToolbarComponents.js +1 -0
- package/dist/esm/ui/PanelTextInput/styles.js +2 -3
- package/dist/esm/ui/ToolbarArrowKeyNavigationProvider/index.js +56 -34
- package/dist/esm/ui/ToolbarFeedback/styles.js +3 -4
- package/dist/esm/ui/WithFlash/index.js +2 -3
- package/dist/esm/ui/styles.js +2 -3
- package/dist/esm/utils/commands.js +25 -13
- package/dist/esm/utils/input-rules.js +23 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/create-editor/messages.d.ts +7 -0
- package/dist/types/i18n/index.d.ts +4 -4
- package/dist/types/i18n/languages.d.ts +8 -3
- package/dist/types/labs/next/presets/cxhtml.d.ts +1 -1
- package/dist/types/labs/next/presets/default.d.ts +2 -2
- package/dist/types/labs/next/presets/mobile.d.ts +1 -1
- package/dist/types/labs/next/presets/preset.d.ts +10 -6
- package/dist/types/plugins/alignment/index.d.ts +2 -2
- package/dist/types/plugins/analytics/plugin.d.ts +2 -2
- package/dist/types/plugins/annotation/index.d.ts +2 -2
- package/dist/types/plugins/avatar-group/index.d.ts +4 -3
- package/dist/types/plugins/base/index.d.ts +2 -2
- package/dist/types/plugins/before-primaryToolbar/index.d.ts +4 -3
- package/dist/types/plugins/block-type/index.d.ts +2 -2
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/index.d.ts +1 -1
- package/dist/types/plugins/breakout/index.d.ts +2 -2
- package/dist/types/plugins/caption/index.d.ts +2 -2
- package/dist/types/plugins/card/index.d.ts +2 -2
- package/dist/types/plugins/card/pm-plugins/doc.d.ts +4 -4
- package/dist/types/plugins/card/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +1 -1
- package/dist/types/plugins/card/ui/LinkToolbarAppearance.d.ts +5 -5
- package/dist/types/plugins/card/utils.d.ts +2 -1
- package/dist/types/plugins/clear-marks-on-change-to-empty-document/index.d.ts +2 -2
- package/dist/types/plugins/clipboard/index.d.ts +2 -2
- package/dist/types/plugins/code-bidi-warning/index.d.ts +4 -3
- package/dist/types/plugins/code-block/index.d.ts +2 -2
- package/dist/types/plugins/collab-edit/actions.d.ts +1 -1
- package/dist/types/plugins/collab-edit/index.d.ts +2 -2
- package/dist/types/plugins/context-panel/index.d.ts +2 -2
- package/dist/types/plugins/copy-button/index.d.ts +2 -2
- package/dist/types/plugins/custom-autoformat/index.d.ts +2 -2
- package/dist/types/plugins/data-consumer/index.d.ts +2 -2
- package/dist/types/plugins/date/index.d.ts +2 -2
- package/dist/types/plugins/date/ui/DatePicker/index.d.ts +0 -1
- package/dist/types/plugins/editor-disabled/index.d.ts +2 -2
- package/dist/types/plugins/emoji/index.d.ts +2 -2
- package/dist/types/plugins/emoji/types.d.ts +2 -1
- package/dist/types/plugins/expand/index.d.ts +2 -2
- package/dist/types/plugins/expand/pm-plugins/main.d.ts +1 -0
- package/dist/types/plugins/extension/commands.d.ts +2 -0
- package/dist/types/plugins/extension/index.d.ts +2 -2
- package/dist/types/plugins/extension/toolbar.d.ts +10 -0
- package/dist/types/plugins/fake-text-cursor/index.d.ts +2 -2
- package/dist/types/plugins/feature-flags-context/index.d.ts +2 -2
- package/dist/types/plugins/feedback-dialog/index.d.ts +3 -2
- package/dist/types/plugins/find-replace/index.d.ts +4 -3
- package/dist/types/plugins/floating-toolbar/index.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/ui/CheckboxModal.d.ts +4 -0
- package/dist/types/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +1 -8
- package/dist/types/plugins/floating-toolbar/ui/Dropdown.d.ts +3 -0
- package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +4 -0
- package/dist/types/plugins/floating-toolbar/ui/SimpleModal.d.ts +4 -0
- package/dist/types/plugins/floating-toolbar/ui/messages.d.ts +10 -0
- package/dist/types/plugins/floating-toolbar/ui/types.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/utils.d.ts +2 -3
- package/dist/types/plugins/fragment/index.d.ts +2 -2
- package/dist/types/plugins/grid/index.d.ts +2 -2
- package/dist/types/plugins/help-dialog/index.d.ts +2 -3
- package/dist/types/plugins/history/index.d.ts +2 -2
- package/dist/types/plugins/hyperlink/index.d.ts +2 -2
- package/dist/types/plugins/hyperlink/ui/EditorLinkPicker/index.d.ts +7 -2
- package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/index.d.ts +2 -1
- package/dist/types/plugins/image-upload/index.d.ts +2 -2
- package/dist/types/plugins/indentation/index.d.ts +2 -2
- package/dist/types/plugins/insert-block/index.d.ts +2 -2
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.d.ts +1 -0
- package/dist/types/plugins/jira-issue/index.d.ts +2 -2
- package/dist/types/plugins/layout/index.d.ts +2 -2
- package/dist/types/plugins/list/actions/outdent-list-items-selected.d.ts +2 -2
- package/dist/types/plugins/list/index.d.ts +3 -2
- package/dist/types/plugins/list/pm-plugins/input-rules/create-list-input-rule.d.ts +3 -1
- package/dist/types/plugins/list/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/list/types.d.ts +2 -0
- package/dist/types/plugins/macro/index.d.ts +2 -2
- package/dist/types/plugins/max-content-size/index.d.ts +2 -2
- package/dist/types/plugins/media/index.d.ts +2 -2
- package/dist/types/plugins/media/nodeviews/mediaNodeUpdater.d.ts +2 -1
- package/dist/types/plugins/media/pm-plugins/main.d.ts +1 -0
- package/dist/types/plugins/media/pm-plugins/types.d.ts +1 -0
- package/dist/types/plugins/mentions/index.d.ts +2 -2
- package/dist/types/plugins/mobile-dimensions/index.d.ts +2 -2
- package/dist/types/plugins/mobile-selection/mobile-selection-plugin.d.ts +2 -2
- package/dist/types/plugins/panel/index.d.ts +2 -2
- package/dist/types/plugins/paste/index.d.ts +3 -2
- package/dist/types/plugins/paste/pm-plugins/analytics.d.ts +1 -0
- package/dist/types/plugins/placeholder/index.d.ts +4 -4
- package/dist/types/plugins/placeholder/styles.d.ts +0 -1
- package/dist/types/plugins/placeholder-text/index.d.ts +2 -2
- package/dist/types/plugins/quick-insert/index.d.ts +2 -2
- package/dist/types/plugins/rule/index.d.ts +2 -2
- package/dist/types/plugins/save-on-enter/index.d.ts +3 -2
- package/dist/types/plugins/scroll-into-view/index.d.ts +2 -2
- package/dist/types/plugins/selection/index.d.ts +2 -2
- package/dist/types/plugins/status/index.d.ts +2 -2
- package/dist/types/plugins/submit-editor/index.d.ts +4 -2
- package/dist/types/plugins/tasks-and-decisions/index.d.ts +2 -2
- package/dist/types/plugins/text-color/index.d.ts +3 -2
- package/dist/types/plugins/text-formatting/index.d.ts +2 -2
- package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +4 -3
- package/dist/types/plugins/type-ahead/index.d.ts +2 -2
- package/dist/types/plugins/type-ahead/messages.d.ts +41 -1
- package/dist/types/plugins/type-ahead/ui/TypeAheadList.d.ts +3 -1
- package/dist/types/plugins/type-ahead/ui/TypeAheadListItem.d.ts +1 -0
- package/dist/types/plugins/type-ahead/utils.d.ts +7 -1
- package/dist/types/plugins/undo-redo/index.d.ts +2 -2
- package/dist/types/plugins/unsupported-content/index.d.ts +2 -2
- package/dist/types/plugins/view-update-subscription/index.d.ts +2 -2
- package/dist/types/plugins/width/index.d.ts +2 -2
- package/dist/types/test-utils.d.ts +2 -1
- package/dist/types/types/editor-plugin.d.ts +1 -1
- package/dist/types/types/editor-props.d.ts +0 -2
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/Fields/Fieldset.d.ts +2 -1
- package/dist/types/ui/ConfigPanel/FormContent.d.ts +2 -23
- package/dist/types/ui/ConfigPanel/types.d.ts +22 -0
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/ui/LinkSearch/ToolbarComponents.d.ts +1 -0
- package/dist/types/ui/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -1
- package/package.json +26 -26
- package/report.api.md +25 -16
- package/dist/cjs/plugins/card/ui/LinkToolbarIconDropdown.js +0 -181
- package/dist/cjs/plugins/card/ui/link-toolbar-icon-dropdown-options.js +0 -66
- package/dist/cjs/plugins/emoji/ui/EmojiContextProvider/index.js +0 -61
- package/dist/es2019/plugins/card/ui/LinkToolbarIconDropdown.js +0 -151
- package/dist/es2019/plugins/card/ui/link-toolbar-icon-dropdown-options.js +0 -51
- package/dist/es2019/plugins/emoji/ui/EmojiContextProvider/index.js +0 -21
- package/dist/esm/plugins/card/ui/LinkToolbarIconDropdown.js +0 -161
- package/dist/esm/plugins/card/ui/link-toolbar-icon-dropdown-options.js +0 -51
- package/dist/esm/plugins/emoji/ui/EmojiContextProvider/index.js +0 -46
- package/dist/types/plugins/card/ui/LinkToolbarIconDropdown.d.ts +0 -25
- package/dist/types/plugins/card/ui/link-toolbar-icon-dropdown-options.d.ts +0 -5
- package/dist/types/plugins/emoji/ui/EmojiContextProvider/index.d.ts +0 -13
|
@@ -13,24 +13,23 @@ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
|
13
13
|
import IconFallback from '../../quick-insert/assets/fallback';
|
|
14
14
|
import { shortcutStyle } from '../../../ui/styles';
|
|
15
15
|
import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
16
|
-
import { token } from '@atlaskit/tokens';
|
|
17
16
|
import { useIntl } from 'react-intl-next';
|
|
18
17
|
import { typeAheadListMessages } from '../messages';
|
|
19
18
|
export var ICON_HEIGHT = 40;
|
|
20
19
|
export var ICON_WIDTH = 40;
|
|
21
20
|
export var ITEM_PADDING = 12;
|
|
22
|
-
export var itemIcon = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", "px;\n height: ", "px;\n overflow: hidden;\n border: 1px solid ", "; /* N60 at 50% */\n border-radius: ", "px;\n box-sizing: border-box;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n div {\n width: ", "px;\n height: ", "px;\n }\n"])), ICON_WIDTH, ICON_HEIGHT,
|
|
21
|
+
export var itemIcon = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n width: ", "px;\n height: ", "px;\n overflow: hidden;\n border: 1px solid ", "; /* N60 at 50% */\n border-radius: ", "px;\n box-sizing: border-box;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n div {\n width: ", "px;\n height: ", "px;\n }\n"])), ICON_WIDTH, ICON_HEIGHT, "var(--ds-border, rgba(223, 225, 229, 0.5))", borderRadius(), ICON_WIDTH, ICON_HEIGHT);
|
|
23
22
|
var itemBody = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n"])));
|
|
24
23
|
|
|
25
24
|
var itemText = function itemText(theme) {
|
|
26
25
|
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n white-space: initial;\n color: ", ";\n .item-title {\n line-height: 1.4;\n }\n .item-description {\n font-size: ", ";\n color: ", ";\n margin-top: 3px;\n }\n"])), themed({
|
|
27
|
-
light:
|
|
28
|
-
dark:
|
|
29
|
-
})(theme), relativeFontSizeToBase16(12),
|
|
26
|
+
light: "var(--ds-text, ".concat(N800, ")"),
|
|
27
|
+
dark: "var(--ds-text, ".concat(DN600, ")")
|
|
28
|
+
})(theme), relativeFontSizeToBase16(12), "var(--ds-text-subtlest, ".concat(N200, ")"));
|
|
30
29
|
};
|
|
31
30
|
|
|
32
31
|
var itemAfter = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex: 0 0 auto;\n"])));
|
|
33
|
-
var customRenderItemDivStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n overflow: hidden;\n &:hover {\n background-color: ", ";\n }\n &:focus {\n box-shadow: inset 0px 0px 0px 2px ", ";\n outline: none;\n }\n"])),
|
|
32
|
+
var customRenderItemDivStyle = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n overflow: hidden;\n &:hover {\n background-color: ", ";\n }\n &:focus {\n box-shadow: inset 0px 0px 0px 2px ", ";\n outline: none;\n }\n"])), "var(--ds-background-selected, ".concat(N30, ")"), "var(--ds-border-focused, ".concat(B100, ")"));
|
|
34
33
|
/**
|
|
35
34
|
* This CSS emulates the desired behaviour with :focus-visible for firefox.
|
|
36
35
|
* Firefox unfortunately does not register keyboard focus if user mouseDown and drag a typeahead item
|
|
@@ -39,14 +38,14 @@ var customRenderItemDivStyle = css(_templateObject5 || (_templateObject5 = _tagg
|
|
|
39
38
|
|
|
40
39
|
var selectionFrame = {
|
|
41
40
|
'& > button:focus': {
|
|
42
|
-
boxShadow: "inset 0px 0px 0px 2px ".concat(
|
|
41
|
+
boxShadow: "inset 0px 0px 0px 2px ".concat("var(--ds-border-focused, ".concat(B100, ")")),
|
|
43
42
|
outline: 'none',
|
|
44
43
|
'&:active': {
|
|
45
44
|
boxShadow: 'none'
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
};
|
|
49
|
-
var selectedStyle = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])),
|
|
48
|
+
var selectedStyle = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), "var(--ds-background-selected, ".concat(N30, ")"));
|
|
50
49
|
var FallbackIcon = /*#__PURE__*/React.memo(function (_ref) {
|
|
51
50
|
var label = _ref.label;
|
|
52
51
|
return jsx(IconFallback, null);
|
|
@@ -71,7 +70,8 @@ export var TypeAheadListItem = function TypeAheadListItem(_ref3) {
|
|
|
71
70
|
itemsLength = _ref3.itemsLength,
|
|
72
71
|
selectedIndex = _ref3.selectedIndex,
|
|
73
72
|
onItemClick = _ref3.onItemClick,
|
|
74
|
-
itemIndex = _ref3.itemIndex
|
|
73
|
+
itemIndex = _ref3.itemIndex,
|
|
74
|
+
ariaLabel = _ref3.ariaLabel;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* To select and highlight the first Item when no item is selected
|
|
@@ -117,21 +117,23 @@ export var TypeAheadListItem = function TypeAheadListItem(_ref3) {
|
|
|
117
117
|
var listItemClasses = [customRenderItemDivStyle, isSelected && selectedStyle];
|
|
118
118
|
return jsx("div", {
|
|
119
119
|
"aria-selected": isSelected,
|
|
120
|
-
"aria-label": title,
|
|
121
120
|
role: "option",
|
|
121
|
+
"aria-label": ariaLabel,
|
|
122
122
|
"aria-setsize": itemsLength,
|
|
123
123
|
tabIndex: 0,
|
|
124
124
|
css: listItemClasses,
|
|
125
125
|
className: "ak-typeahead-item ".concat(isSelected ? 'typeahead-selected-item' : '') //CSS classes added for test cases purpose
|
|
126
126
|
,
|
|
127
127
|
ref: customItemRef
|
|
128
|
+
}, jsx("div", {
|
|
129
|
+
"aria-hidden": true
|
|
128
130
|
}, jsx(Comp, {
|
|
129
131
|
onClick: insertSelectedItem,
|
|
130
132
|
isSelected: false //The selection styles are handled in the parent div instead. Hence isSelected is made false always.
|
|
131
133
|
,
|
|
132
134
|
onHover: noop
|
|
133
|
-
}));
|
|
134
|
-
}, [customRenderItem,
|
|
135
|
+
})));
|
|
136
|
+
}, [customRenderItem, isSelected, ariaLabel, itemsLength, customItemRef, insertSelectedItem]);
|
|
135
137
|
|
|
136
138
|
if (customItem) {
|
|
137
139
|
return customItem;
|
|
@@ -144,7 +146,7 @@ export var TypeAheadListItem = function TypeAheadListItem(_ref3) {
|
|
|
144
146
|
iconBefore: elementIcon,
|
|
145
147
|
isSelected: isSelected,
|
|
146
148
|
"aria-selected": isSelected,
|
|
147
|
-
"aria-label":
|
|
149
|
+
"aria-label": title,
|
|
148
150
|
"aria-setsize": itemsLength,
|
|
149
151
|
role: "option",
|
|
150
152
|
ref: buttonItemRef
|
|
@@ -15,9 +15,8 @@ import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '@atlaskit/editor-common/anal
|
|
|
15
15
|
import { CloseSelectionOptions, TYPE_AHEAD_DECORATION_DATA_ATTRIBUTE, TYPE_AHEAD_POPUP_CONTENT_CLASS } from '../constants';
|
|
16
16
|
import { TypeAheadList } from './TypeAheadList';
|
|
17
17
|
import { ITEM_PADDING } from './TypeAheadListItem';
|
|
18
|
-
import { token } from '@atlaskit/tokens';
|
|
19
18
|
var DEFAULT_TYPEAHEAD_MENU_HEIGHT = 380;
|
|
20
|
-
var typeAheadContent = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n padding: ", "px 0;\n width: 320px;\n max-height: 380px; /* ~5.5 visibile items */\n overflow-y: auto;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n position: relative;\n"])),
|
|
19
|
+
var typeAheadContent = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n padding: ", "px 0;\n width: 320px;\n max-height: 380px; /* ~5.5 visibile items */\n overflow-y: auto;\n -ms-overflow-style: -ms-autohiding-scrollbar;\n position: relative;\n"])), "var(--ds-surface-overlay, ".concat(N0, ")"), borderRadius(), "var(--ds-shadow-overlay, ".concat("0 0 1px ".concat(N60A, ", 0 4px 8px -2px ").concat(N50A), ")"), gridSize() / 2);
|
|
21
20
|
|
|
22
21
|
var Highlight = function Highlight(_ref) {
|
|
23
22
|
var state = _ref.state,
|
|
@@ -208,7 +207,8 @@ export var TypeAheadPopup = /*#__PURE__*/React.memo(function (props) {
|
|
|
208
207
|
onItemClick: onItemInsert,
|
|
209
208
|
fitHeight: fitHeight,
|
|
210
209
|
editorView: editorView,
|
|
211
|
-
decorationElement: anchorElement
|
|
210
|
+
decorationElement: anchorElement,
|
|
211
|
+
triggerHandler: triggerHandler
|
|
212
212
|
})));
|
|
213
213
|
});
|
|
214
214
|
TypeAheadPopup.displayName = 'TypeAheadPopup';
|
|
@@ -4,6 +4,7 @@ import { TypeAheadAvailableNodes } from '@atlaskit/editor-common/type-ahead';
|
|
|
4
4
|
import { pluginKey as typeAheadPluginKey } from './pm-plugins/key';
|
|
5
5
|
import { updateSelectedIndex } from './commands/update-selected-index';
|
|
6
6
|
import { StatsModifier } from './stats-modifier';
|
|
7
|
+
import { typeAheadListMessages } from './messages';
|
|
7
8
|
export var findTypeAheadDecorations = function findTypeAheadDecorations(state) {
|
|
8
9
|
var selection = state.selection;
|
|
9
10
|
|
|
@@ -101,4 +102,41 @@ export var moveSelectedIndex = function moveSelectedIndex(_ref2) {
|
|
|
101
102
|
|
|
102
103
|
updateSelectedIndex(nextIndex)(editorView.state, editorView.dispatch);
|
|
103
104
|
};
|
|
105
|
+
};
|
|
106
|
+
export var getTypeAheadListAriaLabels = function getTypeAheadListAriaLabels(trigger, intl, item) {
|
|
107
|
+
var _item$mention, _item$mention2, _item$emoji, _item$emoji2, _item$emoji3;
|
|
108
|
+
|
|
109
|
+
switch (trigger) {
|
|
110
|
+
case '@':
|
|
111
|
+
return {
|
|
112
|
+
popupAriaLabel: intl.formatMessage(typeAheadListMessages.mentionPopupLabel),
|
|
113
|
+
listItemAriaLabel: intl.formatMessage(typeAheadListMessages.metionListItemLabel, {
|
|
114
|
+
name: (item === null || item === void 0 ? void 0 : (_item$mention = item.mention) === null || _item$mention === void 0 ? void 0 : _item$mention.name) || '',
|
|
115
|
+
shortName: (item === null || item === void 0 ? void 0 : (_item$mention2 = item.mention) === null || _item$mention2 === void 0 ? void 0 : _item$mention2.mentionName) || ''
|
|
116
|
+
})
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
case '/':
|
|
120
|
+
return {
|
|
121
|
+
popupAriaLabel: intl.formatMessage(typeAheadListMessages.quickInsertPopupLabel),
|
|
122
|
+
listItemAriaLabel: intl.formatMessage(typeAheadListMessages.emojiListItemLabel, {
|
|
123
|
+
name: (item === null || item === void 0 ? void 0 : item.title) || '',
|
|
124
|
+
shortcut: (item === null || item === void 0 ? void 0 : (_item$emoji = item.emoji) === null || _item$emoji === void 0 ? void 0 : _item$emoji.shortName) || ''
|
|
125
|
+
})
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
case ':':
|
|
129
|
+
return {
|
|
130
|
+
popupAriaLabel: intl.formatMessage(typeAheadListMessages.emojiPopupLabel),
|
|
131
|
+
listItemAriaLabel: intl.formatMessage(typeAheadListMessages.emojiListItemLabel, {
|
|
132
|
+
name: (item === null || item === void 0 ? void 0 : (_item$emoji2 = item.emoji) === null || _item$emoji2 === void 0 ? void 0 : _item$emoji2.name) || '',
|
|
133
|
+
shortcut: (item === null || item === void 0 ? void 0 : (_item$emoji3 = item.emoji) === null || _item$emoji3 === void 0 ? void 0 : _item$emoji3.shortName) || ''
|
|
134
|
+
})
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
default:
|
|
138
|
+
return {
|
|
139
|
+
popupAriaLabel: intl.formatMessage(typeAheadListMessages.typeAheadPopupLabel)
|
|
140
|
+
};
|
|
141
|
+
}
|
|
104
142
|
};
|
|
@@ -14,12 +14,13 @@ import { jsx } from '@emotion/react';
|
|
|
14
14
|
import { injectIntl } from 'react-intl-next';
|
|
15
15
|
import UndoIcon from '@atlaskit/icon/glyph/undo';
|
|
16
16
|
import RedoIcon from '@atlaskit/icon/glyph/redo';
|
|
17
|
-
import { undo as undoKeymap, redo as redoKeymap, ToolTipContent } from '../../../../keymaps';
|
|
17
|
+
import { undo as undoKeymap, redo as redoKeymap, ToolTipContent, tooltip } from '../../../../keymaps';
|
|
18
18
|
import { buttonGroupStyle, separatorStyles } from '../../../../ui/styles';
|
|
19
19
|
import ToolbarButton, { TOOLBAR_BUTTON } from '../../../../ui/ToolbarButton';
|
|
20
20
|
import { messages } from '../../messages';
|
|
21
21
|
import { createTypeAheadTools } from '../../../type-ahead/api';
|
|
22
22
|
import { undoFromToolbar, redoFromToolbar } from '../../commands';
|
|
23
|
+
import { getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
|
|
23
24
|
|
|
24
25
|
var closeTypeAheadAndRunCommand = function closeTypeAheadAndRunCommand(editorView) {
|
|
25
26
|
return function (command) {
|
|
@@ -90,7 +91,8 @@ export var ToolbarUndoRedo = /*#__PURE__*/function (_PureComponent) {
|
|
|
90
91
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
91
92
|
onClick: handleUndo,
|
|
92
93
|
disabled: !canUndo || disabled,
|
|
93
|
-
"aria-label": labelUndo,
|
|
94
|
+
"aria-label": tooltip(undoKeymap, labelUndo),
|
|
95
|
+
"aria-keyshortcuts": getAriaKeyshortcuts(undoKeymap),
|
|
94
96
|
title: jsx(ToolTipContent, {
|
|
95
97
|
description: labelUndo,
|
|
96
98
|
keymap: undoKeymap
|
|
@@ -112,7 +114,8 @@ export var ToolbarUndoRedo = /*#__PURE__*/function (_PureComponent) {
|
|
|
112
114
|
label: ""
|
|
113
115
|
}),
|
|
114
116
|
testId: "ak-editor-toolbar-button-redo",
|
|
115
|
-
"aria-label": labelRedo
|
|
117
|
+
"aria-label": tooltip(redoKeymap, labelRedo),
|
|
118
|
+
"aria-keyshortcuts": getAriaKeyshortcuts(redoKeymap)
|
|
116
119
|
}), jsx("span", {
|
|
117
120
|
css: separatorStyles
|
|
118
121
|
}));
|
|
@@ -4,11 +4,10 @@ var _templateObject;
|
|
|
4
4
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { SelectionStyle, getSelectionStyles, akEditorDeleteBackgroundWithOpacity, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
7
|
-
import { token } from '@atlaskit/tokens';
|
|
8
7
|
export var UnsupportedSharedCssClassName = {
|
|
9
8
|
BLOCK_CONTAINER: 'unsupportedBlockView-content-wrap',
|
|
10
9
|
INLINE_CONTAINER: 'unsupportedInlineView-content-wrap'
|
|
11
10
|
};
|
|
12
11
|
var inlineUnsupportedSelector = ".".concat(UnsupportedSharedCssClassName.INLINE_CONTAINER, " > span:nth-of-type(2)");
|
|
13
12
|
var blockUnsupportedSelector = ".".concat(UnsupportedSharedCssClassName.BLOCK_CONTAINER, " > div");
|
|
14
|
-
export var unsupportedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ", ", " {\n cursor: pointer;\n }\n\n .", "", ",\n .", "", " {\n ", "\n }\n\n .danger {\n .", "", ",\n .", "", " {\n border: ", "px solid\n ", ";\n background-color: ", ";\n }\n }\n"])), blockUnsupportedSelector, inlineUnsupportedSelector, akEditorSelectedNodeClassName, blockUnsupportedSelector, akEditorSelectedNodeClassName, inlineUnsupportedSelector, getSelectionStyles([SelectionStyle.Background, SelectionStyle.Border]), akEditorSelectedNodeClassName, blockUnsupportedSelector, akEditorSelectedNodeClassName, inlineUnsupportedSelector, akEditorSelectedBorderSize,
|
|
13
|
+
export var unsupportedStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ", ", " {\n cursor: pointer;\n }\n\n .", "", ",\n .", "", " {\n ", "\n }\n\n .danger {\n .", "", ",\n .", "", " {\n border: ", "px solid\n ", ";\n background-color: ", ";\n }\n }\n"])), blockUnsupportedSelector, inlineUnsupportedSelector, akEditorSelectedNodeClassName, blockUnsupportedSelector, akEditorSelectedNodeClassName, inlineUnsupportedSelector, getSelectionStyles([SelectionStyle.Background, SelectionStyle.Border]), akEditorSelectedNodeClassName, blockUnsupportedSelector, akEditorSelectedNodeClassName, inlineUnsupportedSelector, akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"));
|
|
@@ -5,5 +5,4 @@ var _templateObject;
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
7
7
|
import { N60A } from '@atlaskit/theme/colors';
|
|
8
|
-
|
|
9
|
-
export var dropdown = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n background: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n box-sizing: border-box;\n padding: 4px 0;\n"])), token('elevation.surface.overlay', 'white'), borderRadius(), token('elevation.shadow.overlay', "0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A)));
|
|
8
|
+
export var dropdown = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n background: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n box-sizing: border-box;\n padding: 4px 0;\n"])), "var(--ds-surface-overlay, white)", borderRadius(), "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A), ")"));
|
|
@@ -4,5 +4,4 @@ var _templateObject;
|
|
|
4
4
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { N800, N20 } from '@atlaskit/theme/colors';
|
|
7
|
-
|
|
8
|
-
export var dropdownItem = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n padding: 8px 32px 8px 12px;\n color: ", ";\n > span {\n display: flex;\n margin-right: 8px;\n }\n &:hover {\n background-color: ", ";\n }\n"])), token('color.text', N800), token('color.background.neutral.subtle.hovered', N20));
|
|
7
|
+
export var dropdownItem = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n cursor: pointer;\n text-decoration: none;\n padding: 8px 32px 8px 12px;\n color: ", ";\n > span {\n display: flex;\n margin-right: 8px;\n }\n &:hover {\n background-color: ", ";\n }\n"])), "var(--ds-text, ".concat(N800, ")"), "var(--ds-background-neutral-subtle-hovered, ".concat(N20, ")"));
|
|
@@ -13,7 +13,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13
13
|
import React from 'react';
|
|
14
14
|
import { PureComponent } from 'react';
|
|
15
15
|
import ToolbarButton from '../../ToolbarButton';
|
|
16
|
-
import { ToolTipContent } from '../../../keymaps';
|
|
16
|
+
import { ToolTipContent, tooltip } from '../../../keymaps';
|
|
17
|
+
import { getAriaKeyshortcuts } from '@atlaskit/editor-common/keymaps';
|
|
17
18
|
|
|
18
19
|
var AlignmentButton = /*#__PURE__*/function (_PureComponent) {
|
|
19
20
|
_inherits(AlignmentButton, _PureComponent);
|
|
@@ -57,8 +58,9 @@ var AlignmentButton = /*#__PURE__*/function (_PureComponent) {
|
|
|
57
58
|
description: label,
|
|
58
59
|
keymap: shortcut
|
|
59
60
|
}),
|
|
60
|
-
"aria-label": label,
|
|
61
|
+
"aria-label": shortcut ? tooltip(shortcut, label) : label,
|
|
61
62
|
"aria-pressed": isSelected,
|
|
63
|
+
"aria-keyshortcuts": getAriaKeyshortcuts(shortcut),
|
|
62
64
|
onClick: this.onClick,
|
|
63
65
|
iconBefore: content
|
|
64
66
|
});
|
|
@@ -20,7 +20,6 @@ import ButtonGroup from '@atlaskit/button/button-group';
|
|
|
20
20
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
21
21
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
22
22
|
import { N40 } from '@atlaskit/theme/colors';
|
|
23
|
-
import { token } from '@atlaskit/tokens';
|
|
24
23
|
import Toolbar from '../../Toolbar';
|
|
25
24
|
import PluginSlot from '../../PluginSlot';
|
|
26
25
|
import WithPluginState from '../../WithPluginState';
|
|
@@ -40,7 +39,7 @@ import { TableControlsPadding, MainToolbar, mainToolbarCustomComponentsSlotStyle
|
|
|
40
39
|
import { createEditorContentStyle } from '../../ContentStyles';
|
|
41
40
|
var CommentEditorMargin = 14;
|
|
42
41
|
var CommentEditorSmallerMargin = 8;
|
|
43
|
-
var commentEditorStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n\n .less-margin .ProseMirror {\n margin: 12px ", "px ", "px;\n }\n\n min-width: 272px;\n /* Border + Toolbar + Footer + (Paragraph + ((Paragraph + Margin) * (DefaultLines - 1)) */\n /* calc(2px + 40px + 24px + ( 20px + (32px * 2))) */\n\n height: auto;\n background-color: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n border-radius: ", "px;\n\n max-width: inherit;\n word-wrap: break-word;\n"])), CommentEditorSmallerMargin, CommentEditorSmallerMargin,
|
|
42
|
+
var commentEditorStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n\n .less-margin .ProseMirror {\n margin: 12px ", "px ", "px;\n }\n\n min-width: 272px;\n /* Border + Toolbar + Footer + (Paragraph + ((Paragraph + Margin) * (DefaultLines - 1)) */\n /* calc(2px + 40px + 24px + ( 20px + (32px * 2))) */\n\n height: auto;\n background-color: ", ";\n border: 1px solid ", ";\n box-sizing: border-box;\n border-radius: ", "px;\n\n max-width: inherit;\n word-wrap: break-word;\n"])), CommentEditorSmallerMargin, CommentEditorSmallerMargin, "var(--ds-background-input, white)", "var(--ds-border, ".concat(N40, ")"), borderRadius());
|
|
44
43
|
var ContentArea = createEditorContentStyle(css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex-grow: 1;\n overflow-x: hidden;\n overflow-y: auto;\n line-height: 24px;\n\n /** Hack for Bitbucket to ensure entire editorView gets drop event; see ED-3294 **/\n /** Hack for table controls. Otherwise margin collapse and controls are misplaced. **/\n .ProseMirror {\n margin: 12px ", "px ", "px;\n }\n\n .gridParent {\n margin-left: ", "px;\n margin-right: ", "px;\n width: calc(100% + ", "px);\n }\n\n padding: ", "px;\n\n ", ";\n"])), CommentEditorMargin, CommentEditorMargin, CommentEditorMargin - GRID_GUTTER, CommentEditorMargin - GRID_GUTTER, CommentEditorMargin - GRID_GUTTER, TableControlsPadding, tableCommentEditorStyles));
|
|
45
44
|
ContentArea.displayName = 'ContentArea';
|
|
46
45
|
var secondaryToolbarStyle = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n justify-content: flex-end;\n align-items: center;\n display: flex;\n padding: 12px 1px;\n"])));
|
|
@@ -8,11 +8,10 @@ import React, { useEffect, useState } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
10
10
|
import { N30 } from '@atlaskit/theme/colors';
|
|
11
|
-
import {
|
|
12
|
-
import { akEditorToolbarKeylineHeight, akEditorGridLineZIndex, akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
11
|
+
import { akEditorToolbarKeylineHeight, akEditorMenuZIndex } from '@atlaskit/editor-shared-styles';
|
|
13
12
|
export var TableControlsPadding = 20;
|
|
14
|
-
var mainToolbarWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n padding: ", "px ", "px 0;\n display: flex;\n height: auto;\n background-color: ", ";\n box-shadow: none;\n padding-left: ", "px;\n\n & > div {\n > :first-child:not(style),\n > style:first-child + * {\n margin-left: 0;\n }\n }\n\n .block-type-btn {\n padding-left: 0;\n }\n"])), gridSize(), gridSize(),
|
|
15
|
-
var stickyToolbarWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n /* stylelint-disable declaration-block-no-duplicate-properties */\n position: relative;\n position: sticky;\n /* stylelint-enable declaration-block-no-duplicate-properties */\n padding-bottom: ", "px;\n z-index: ", ";\n transition: box-shadow ease-in-out 0.2s;\n &.show-keyline {\n box-shadow: 0 ", "px 0 0\n ", ";\n }\n"])), gridSize(),
|
|
13
|
+
var mainToolbarWrapperStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n padding: ", "px ", "px 0;\n display: flex;\n height: auto;\n background-color: ", ";\n box-shadow: none;\n padding-left: ", "px;\n\n & > div {\n > :first-child:not(style),\n > style:first-child + * {\n margin-left: 0;\n }\n }\n\n .block-type-btn {\n padding-left: 0;\n }\n"])), gridSize(), gridSize(), "var(--ds-surface, white)", TableControlsPadding);
|
|
14
|
+
var stickyToolbarWrapperStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n /* stylelint-disable declaration-block-no-duplicate-properties */\n position: relative;\n position: sticky;\n /* stylelint-enable declaration-block-no-duplicate-properties */\n padding-bottom: ", "px;\n z-index: ", ";\n transition: box-shadow ease-in-out 0.2s;\n &.show-keyline {\n box-shadow: 0 ", "px 0 0\n ", ";\n }\n"])), gridSize(), akEditorMenuZIndex, akEditorToolbarKeylineHeight, "var(--ds-border, ".concat(N30, ")"));
|
|
16
15
|
|
|
17
16
|
var StickyToolbar = function StickyToolbar(props) {
|
|
18
17
|
var _useState = useState(0),
|
|
@@ -78,7 +78,8 @@ export var EditorToolbar = /*#__PURE__*/React.memo(function (props) {
|
|
|
78
78
|
|
|
79
79
|
var contextPanelWidth = _ref.width;
|
|
80
80
|
return jsx(ToolbarArrowKeyNavigationProvider, {
|
|
81
|
-
editorView: props.editorView
|
|
81
|
+
editorView: props.editorView,
|
|
82
|
+
childComponentSelector: "[data-testid='ak-editor-main-toolbar']"
|
|
82
83
|
}, jsx("div", {
|
|
83
84
|
css: mainToolbarStyle(props.showKeyline || contextPanelWidth > 0, !!((_props$featureFlags8 = props.featureFlags) !== null && _props$featureFlags8 !== void 0 && _props$featureFlags8.twoLineEditorToolbar)),
|
|
84
85
|
"data-testid": "ak-editor-main-toolbar"
|
|
@@ -4,15 +4,14 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
4
4
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { N30 } from '@atlaskit/theme/colors';
|
|
7
|
-
import { token } from '@atlaskit/tokens';
|
|
8
7
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
9
8
|
import { akEditorMenuZIndex, akEditorSwoopCubicBezier, akEditorToolbarKeylineHeight, akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
10
9
|
export var MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
|
|
11
10
|
var toolbarLineHeight = 56; // box-shadow is overriden by the mainToolbar
|
|
12
11
|
|
|
13
|
-
var mainToolbarWithKeyline = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-shadow: 0 ", "px 0 0\n ", ";\n"])), akEditorToolbarKeylineHeight,
|
|
12
|
+
var mainToolbarWithKeyline = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n box-shadow: 0 ", "px 0 0\n ", ";\n"])), akEditorToolbarKeylineHeight, "var(--ds-border, ".concat(N30, ")"));
|
|
14
13
|
var mainToolbarTwoLineStyle = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n @media (max-width: ", "px) {\n flex-wrap: wrap;\n height: calc(", "px * 2);\n }\n"])), MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT, toolbarLineHeight);
|
|
15
|
-
var mainToolbar = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\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"])), akEditorSwoopCubicBezier, akEditorMenuZIndex, toolbarLineHeight,
|
|
14
|
+
var mainToolbar = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\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"])), akEditorSwoopCubicBezier, akEditorMenuZIndex, toolbarLineHeight, "var(--ds-surface, white)", akEditorMobileMaxWidth, toolbarLineHeight);
|
|
16
15
|
export var mainToolbarStyle = function mainToolbarStyle(showKeyline, twoLineEditorToolbar) {
|
|
17
16
|
return [mainToolbar, showKeyline && mainToolbarWithKeyline, twoLineEditorToolbar && mainToolbarTwoLineStyle];
|
|
18
17
|
};
|
|
@@ -6,5 +6,4 @@ import { css } from '@emotion/react';
|
|
|
6
6
|
import { akEditorSubtleAccent, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
7
7
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
8
8
|
import { N300, N50 } from '@atlaskit/theme/colors';
|
|
9
|
-
|
|
10
|
-
export var inputStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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"])), token('color.background.input', 'white'), token('color.border.input', akEditorSubtleAccent), borderRadius(), relativeFontSizeToBase16(14), token('color.text.subtlest', N300), token('color.background.input.hovered', 'white'), token('color.border.input', N50));
|
|
9
|
+
export var inputStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\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(akEditorSubtleAccent, ")"), borderRadius(), relativeFontSizeToBase16(14), "var(--ds-text-subtlest, ".concat(N300, ")"), "var(--ds-background-input-hovered, white)", "var(--ds-border-input, ".concat(N50, ")"));
|
|
@@ -10,6 +10,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
10
10
|
|
|
11
11
|
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; } }
|
|
12
12
|
|
|
13
|
+
import { IntlProviderIfMissingWrapper } from '@atlaskit/editor-common/ui';
|
|
13
14
|
import React from 'react';
|
|
14
15
|
import Editor from '../../editor';
|
|
15
16
|
import EditorWithActions from '../../labs/EditorWithActions';
|
|
@@ -72,10 +73,10 @@ var CollapsedEditor = /*#__PURE__*/function (_React$Component) {
|
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
if (!this.props.isExpanded) {
|
|
75
|
-
return /*#__PURE__*/React.createElement(ChromeCollapsed, {
|
|
76
|
+
return /*#__PURE__*/React.createElement(IntlProviderIfMissingWrapper, null, /*#__PURE__*/React.createElement(ChromeCollapsed, {
|
|
76
77
|
onFocus: this.props.onFocus,
|
|
77
78
|
text: this.props.placeholder
|
|
78
|
-
});
|
|
79
|
+
}));
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
return /*#__PURE__*/React.cloneElement(child, {
|
|
@@ -92,7 +92,8 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
92
92
|
zIndex: props.setDisableParentScroll ? 600 : undefined,
|
|
93
93
|
ariaLabel: "Color picker popup"
|
|
94
94
|
}, jsx("div", {
|
|
95
|
-
css: colorPickerWrapper
|
|
95
|
+
css: colorPickerWrapper,
|
|
96
|
+
"data-test-id": "color-picker-menu"
|
|
96
97
|
}, jsx(ColorPaletteWithListeners, {
|
|
97
98
|
palette: props.colorPalette,
|
|
98
99
|
cols: props.cols,
|
|
@@ -11,7 +11,6 @@ import { Fragment, useCallback } from 'react';
|
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
12
|
import { Checkbox as AKCheckbox } from '@atlaskit/checkbox';
|
|
13
13
|
import { Field, Fieldset as AKFieldset } from '@atlaskit/form';
|
|
14
|
-
import { token } from '@atlaskit/tokens';
|
|
15
14
|
import { ValidationError } from '../types';
|
|
16
15
|
import FieldMessages from '../FieldMessages';
|
|
17
16
|
|
|
@@ -21,7 +20,7 @@ function _validate(value, isRequired) {
|
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
|
|
24
|
-
var requiredIndicator = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])),
|
|
23
|
+
var requiredIndicator = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])), "var(--ds-text-danger, #bf2600)");
|
|
25
24
|
|
|
26
25
|
function CheckboxGroupInner(_ref) {
|
|
27
26
|
var label = _ref.label,
|
|
@@ -8,13 +8,12 @@ import React, { useState } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
10
|
import { N40 } from '@atlaskit/theme/colors';
|
|
11
|
-
import { token } from '@atlaskit/tokens';
|
|
12
11
|
import ChevronDownIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
13
12
|
import ChevronRightIcon from '@atlaskit/icon/glyph/chevron-right';
|
|
14
13
|
import Button from '@atlaskit/button';
|
|
15
14
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
16
15
|
import { messages } from '../messages';
|
|
17
|
-
export var expandContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-bottom: 1px solid ", ";\n"])),
|
|
16
|
+
export var expandContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-bottom: 1px solid ", ";\n"])), "var(--ds-border, ".concat(N40, ")"));
|
|
18
17
|
export var expandControl = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n height: ", "px;\n justify-content: center;\n padding-right: ", "px;\n"])), gridSize() * 6, gridSize());
|
|
19
18
|
var chevronContainer = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n & > button {\n width: ", "px;\n height: ", "px;\n }\n"])), gridSize() * 3, gridSize() * 3);
|
|
20
19
|
var labelContainer = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n align-items: center;\n display: flex;\n font-weight: 500;\n"])));
|
|
@@ -27,14 +27,11 @@ import SectionMessage from '@atlaskit/section-message';
|
|
|
27
27
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
28
28
|
import Select from '@atlaskit/select';
|
|
29
29
|
import AddCircleIcon from '@atlaskit/icon/glyph/add-circle';
|
|
30
|
-
import { messages } from '../messages';
|
|
31
|
-
|
|
32
|
-
import FormContent from '../FormContent';
|
|
30
|
+
import { messages } from '../messages';
|
|
33
31
|
import { getNameFromDuplicateField, isDuplicateField } from '../utils';
|
|
34
32
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
35
33
|
import { N40A } from '@atlaskit/theme/colors';
|
|
36
|
-
|
|
37
|
-
var actionsWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-top: 1px solid ", ";\n margin-top: ", "px;\n padding-top: ", "px;\n"])), token('color.border', N40A), gridSize() * 2, gridSize() * 2);
|
|
34
|
+
var actionsWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-top: 1px solid ", ";\n margin-top: ", "px;\n padding-top: ", "px;\n"])), "var(--ds-border, ".concat(N40A, ")"), gridSize() * 2, gridSize() * 2);
|
|
38
35
|
|
|
39
36
|
var populateFromParameters = function populateFromParameters(parameters, fields) {
|
|
40
37
|
if (Object.keys(parameters).length) {
|
|
@@ -267,7 +264,8 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
|
|
|
267
264
|
extensionManifest = _this$props.extensionManifest,
|
|
268
265
|
onFieldChange = _this$props.onFieldChange,
|
|
269
266
|
firstVisibleFieldName = _this$props.firstVisibleFieldName,
|
|
270
|
-
error = _this$props.error
|
|
267
|
+
error = _this$props.error,
|
|
268
|
+
FormComponent = _this$props.formComponent;
|
|
271
269
|
var label = field.label,
|
|
272
270
|
options = field.options;
|
|
273
271
|
var _this$state3 = this.state,
|
|
@@ -277,7 +275,7 @@ var FieldsetField = /*#__PURE__*/function (_React$Component) {
|
|
|
277
275
|
var children = this.renderActions();
|
|
278
276
|
return jsx(Fragment, null, error && jsx(FieldsetError, {
|
|
279
277
|
message: error
|
|
280
|
-
}), jsx("div", null, options.showTitle && jsx("h5", null, label), jsx(
|
|
278
|
+
}), jsx("div", null, options.showTitle && jsx("h5", null, label), jsx(FormComponent, {
|
|
281
279
|
fields: selectedFields,
|
|
282
280
|
parentName: name,
|
|
283
281
|
extensionManifest: extensionManifest,
|
|
@@ -4,5 +4,4 @@ var _templateObject;
|
|
|
4
4
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { R500 } from '@atlaskit/theme/colors';
|
|
7
|
-
|
|
8
|
-
export var requiredIndicator = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])), token('color.text.danger', R500));
|
|
7
|
+
export var requiredIndicator = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])), "var(--ds-text-danger, ".concat(R500, ")"));
|
|
@@ -11,8 +11,7 @@ import Boolean from './Fields/Boolean';
|
|
|
11
11
|
import CustomSelect from './Fields/CustomSelect';
|
|
12
12
|
import Date from './Fields/Date';
|
|
13
13
|
import DateRange from './Fields/DateRange';
|
|
14
|
-
import Enum from './Fields/Enum';
|
|
15
|
-
|
|
14
|
+
import Enum from './Fields/Enum';
|
|
16
15
|
import Fieldset from './Fields/Fieldset';
|
|
17
16
|
import Number from './Fields/Number';
|
|
18
17
|
import String from './Fields/String';
|
|
@@ -125,7 +124,8 @@ export function FieldComponent(_ref) {
|
|
|
125
124
|
onFieldChange: onFieldChange,
|
|
126
125
|
extensionManifest: extensionManifest,
|
|
127
126
|
parameters: defaultValue || {},
|
|
128
|
-
error: error
|
|
127
|
+
error: error,
|
|
128
|
+
formComponent: FormContent
|
|
129
129
|
});
|
|
130
130
|
|
|
131
131
|
case 'user':
|
|
@@ -11,7 +11,6 @@ import Button from '@atlaskit/button/custom-theme-button';
|
|
|
11
11
|
import CrossIcon from '@atlaskit/icon/glyph/cross';
|
|
12
12
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
13
13
|
import { N200 } from '@atlaskit/theme/colors';
|
|
14
|
-
import { token } from '@atlaskit/tokens';
|
|
15
14
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
16
15
|
import { messages } from './messages';
|
|
17
16
|
var iconWidth = 40;
|
|
@@ -19,10 +18,10 @@ var buttonWidth = 40;
|
|
|
19
18
|
var margin = 16;
|
|
20
19
|
var gapSizeForEllipsis = iconWidth + buttonWidth + margin * 2;
|
|
21
20
|
var item = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n margin-bottom: 24px;\n"])));
|
|
22
|
-
var itemIcon = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", "px;\n height: ", "px;\n overflow: hidden;\n border: 1px solid ", "; /* N60 at 50% */\n border-radius: ", "px;\n box-sizing: border-box;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n div {\n width: ", "px;\n height: ", "px;\n }\n"])), iconWidth, iconWidth,
|
|
21
|
+
var itemIcon = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: ", "px;\n height: ", "px;\n overflow: hidden;\n border: 1px solid ", "; /* N60 at 50% */\n border-radius: ", "px;\n box-sizing: border-box;\n\n display: flex;\n justify-content: center;\n align-items: center;\n\n div {\n width: ", "px;\n height: ", "px;\n }\n"])), iconWidth, iconWidth, "var(--ds-border, rgba(223, 225, 229, 0.5))", borderRadius(), iconWidth, iconWidth);
|
|
23
22
|
var itemBody = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n line-height: 1.4;\n margin: 0 16px;\n flex-grow: 3;\n max-width: calc(100% - ", "px);\n"])), gapSizeForEllipsis);
|
|
24
23
|
var centeredItemTitle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n"])));
|
|
25
|
-
var itemText = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n max-width: 100%;\n white-space: initial;\n .item-summary {\n font-size: ", ";\n color: ", ";\n margin-top: 4px;\n\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])), relativeFontSizeToBase16(11.67),
|
|
24
|
+
var itemText = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n max-width: 100%;\n white-space: initial;\n .item-summary {\n font-size: ", ";\n color: ", ";\n margin-top: 4px;\n\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n"])), relativeFontSizeToBase16(11.67), "var(--ds-text-subtlest, ".concat(N200, ")"));
|
|
26
25
|
var descriptionStyle = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-bottom: 24px;\n"])));
|
|
27
26
|
var closeButtonWrapper = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n width: ", "px;\n text-align: right;\n"])), buttonWidth);
|
|
28
27
|
|
|
@@ -10,11 +10,10 @@ import { gridSize } from '@atlaskit/theme/constants';
|
|
|
10
10
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
11
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
12
12
|
import { N80, R300 } from '@atlaskit/theme/colors';
|
|
13
|
-
import { token } from '@atlaskit/tokens';
|
|
14
13
|
import { messages } from '../messages';
|
|
15
14
|
var removableFieldWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n margin-bottom: 0;\n"])));
|
|
16
15
|
var wrapperWithMarginBottom = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: ", "px;\n"])), gridSize() * 2);
|
|
17
|
-
var removeButtonWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n right: 0;\n top: 0;\n cursor: pointer;\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n"])),
|
|
16
|
+
var removeButtonWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n right: 0;\n top: 0;\n cursor: pointer;\n\n color: ", ";\n\n &:hover {\n color: ", ";\n }\n"])), "var(--ds-icon-subtle, ".concat(N80, ")"), "var(--ds-icon-danger, ".concat(R300, ")"));
|
|
18
17
|
|
|
19
18
|
var RemovableField = function RemovableField(_ref) {
|
|
20
19
|
var _children$props$field;
|
|
@@ -7,7 +7,6 @@ import React, { useMemo } from 'react';
|
|
|
7
7
|
import { jsx, css, useTheme } from '@emotion/react';
|
|
8
8
|
import { whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, blockMarksSharedStyles, shadowSharedStyle, dateSharedStyle, tasksAndDecisionsStyles, annotationSharedStyles, smartCardSharedStyles, textColorStyles } from '@atlaskit/editor-common/styles';
|
|
9
9
|
import { editorFontSize } from '@atlaskit/editor-shared-styles';
|
|
10
|
-
import { token } from '@atlaskit/tokens';
|
|
11
10
|
import { unsupportedStyles } from '../../plugins/unsupported-content/styles';
|
|
12
11
|
import { telepointerStyle } from '../../plugins/collab-edit/styles';
|
|
13
12
|
import { gapCursorStyles } from '../../plugins/selection/gap-cursor/styles';
|
|
@@ -40,9 +39,9 @@ import { useFeatureFlags } from '../../plugins/feature-flags-context';
|
|
|
40
39
|
import { InlineNodeViewSharedStyles } from '../../nodeviews/getInlineNodeViewProducer.styles';
|
|
41
40
|
|
|
42
41
|
var contentStyles = function contentStyles(props) {
|
|
43
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap,\n .pm-table-cell-content-wrap div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), editorFontSize({
|
|
42
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror {\n outline: none;\n font-size: ", "px;\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n ", ";\n }\n\n .ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n pointer-events: none;\n opacity: 0.7;\n }\n\n .ProseMirror-hideselection *::selection {\n background: transparent;\n }\n\n .ProseMirror-hideselection *::-moz-selection {\n background: transparent;\n }\n\n .ProseMirror-selectednode {\n outline: none;\n }\n\n .ProseMirror-selectednode:empty {\n outline: 2px solid ", ";\n }\n\n ", "\n ", "\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\n .panelView-content-wrap {\n box-sizing: border-box;\n }\n\n .mediaGroupView-content-wrap ul {\n padding: 0;\n }\n\n /** Needed to override any cleared floats, e.g. image wrapping */\n\n div.fabric-editor-block-mark[class^='fabric-editor-align'] {\n clear: none !important;\n }\n\n .fabric-editor-align-end {\n text-align: right;\n }\n\n .fabric-editor-align-start {\n text-align: left;\n }\n\n .fabric-editor-align-center {\n text-align: center;\n }\n\n .pm-table-header-content-wrap :not(.fabric-editor-alignment),\n .pm-table-header-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark,\n .pm-table-cell-content-wrap\n :not(p, .fabric-editor-block-mark)\n + div.fabric-editor-block-mark {\n p:first-of-type {\n margin-top: 0;\n }\n }\n\n .hyperlink-floating-toolbar,\n .", " {\n padding: 0;\n }\n\n /* Link icon in the Atlaskit package\n is bigger than the others\n */\n .hyperlink-open-link {\n svg {\n max-width: 18px;\n }\n &[href] {\n padding: 0 4px;\n }\n }\n"])), editorFontSize({
|
|
44
43
|
theme: props.theme
|
|
45
|
-
}), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles,
|
|
44
|
+
}), whitespaceSharedStyles, paragraphSharedStyles, listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, "var(--ds-border-focused, #8cf)", placeholderTextStyles, placeholderStyles, codeBlockStyles(props), blocktypeStyles(props), textFormattingStyles(props), textColorStyles, listsStyles, ruleStyles(props), mediaStyles, layoutStyles, telepointerStyle, gapCursorStyles, tableStyles(props), panelStyles(props), fakeCursorStyles, mentionsStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(props), findReplaceStyles, taskDecisionStyles, statusStyles, annotationSharedStyles(props), smartCardStyles, smartCardSharedStyles, dateStyles, embedCardStyles, unsupportedStyles, ClassNames.FLOATING_TOOLBAR_COMPONENT);
|
|
46
45
|
};
|
|
47
46
|
|
|
48
47
|
export var createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
@@ -30,7 +30,6 @@ import { pluginKey as contextPanelPluginKey } from '../../plugins/context-panel'
|
|
|
30
30
|
import { pluginKey as widthPluginKey } from '../../plugins/width';
|
|
31
31
|
import WithEditorActions from '../WithEditorActions';
|
|
32
32
|
import { getChildBreakoutModes } from '../../utils/document';
|
|
33
|
-
import { token } from '@atlaskit/tokens';
|
|
34
33
|
var ANIM_SPEED_MS = 500;
|
|
35
34
|
var EDITOR_WIDTH = akEditorDefaultLayoutWidth + akEditorBreakoutPadding;
|
|
36
35
|
var WIDE_EDITOR_WIDTH = akEditorWideLayoutWidth + akEditorBreakoutPadding;
|
|
@@ -48,7 +47,7 @@ export var shouldPanelBePositionedOverEditor = function shouldPanelBePositionedO
|
|
|
48
47
|
return editorNotFullWidth && (hasSpaceForPanel || hasSpaceForWideBreakoutsAndPanel);
|
|
49
48
|
};
|
|
50
49
|
var panelHidden = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n width: 0;\n"])));
|
|
51
|
-
export var panel = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", "px;\n height: 100%;\n transition: width ", "ms ", ";\n overflow: hidden;\n box-shadow: inset 2px 0 0 0 ", ";\n"])), akEditorContextPanelWidth, ANIM_SPEED_MS, akEditorSwoopCubicBezier,
|
|
50
|
+
export var panel = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", "px;\n height: 100%;\n transition: width ", "ms ", ";\n overflow: hidden;\n box-shadow: inset 2px 0 0 0 ", ";\n"])), akEditorContextPanelWidth, ANIM_SPEED_MS, akEditorSwoopCubicBezier, "var(--ds-border, ".concat(N30, ")"));
|
|
52
51
|
export var content = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n transition: width 600ms ", ";\n box-sizing: border-box;\n padding: 16px 16px 0px;\n width: ", "px;\n height: 100%;\n overflow-y: auto;\n"])), akEditorSwoopCubicBezier, akEditorContextPanelWidth);
|
|
53
52
|
export var SwappableContentArea = /*#__PURE__*/function (_React$PureComponent) {
|
|
54
53
|
_inherits(SwappableContentArea, _React$PureComponent);
|
|
@@ -23,7 +23,6 @@ import { getFeaturedQuickInsertItems, searchQuickInsertItems } from '../../plugi
|
|
|
23
23
|
import { insertItem } from '../../plugins/quick-insert/commands';
|
|
24
24
|
import ElementBrowser from './components/ElementBrowserLoader';
|
|
25
25
|
import { ELEMENT_ITEM_HEIGHT } from './constants';
|
|
26
|
-
import { token } from '@atlaskit/tokens';
|
|
27
26
|
|
|
28
27
|
var InsertMenu = function InsertMenu(_ref) {
|
|
29
28
|
var editorView = _ref.editorView,
|
|
@@ -160,9 +159,9 @@ var insertMenuWrapper = function insertMenuWrapper(theme, itemCount) {
|
|
|
160
159
|
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 320px;\n height: ", "px;\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: ", ";\n"])), getInsertMenuHeight({
|
|
161
160
|
itemCount: itemCount
|
|
162
161
|
}), themed({
|
|
163
|
-
light:
|
|
164
|
-
dark:
|
|
165
|
-
})(theme), borderRadius(),
|
|
162
|
+
light: "var(--ds-surface-overlay, ".concat(N0, ")"),
|
|
163
|
+
dark: "var(--ds-surface-overlay, ".concat(DN50, ")")
|
|
164
|
+
})(theme), borderRadius(), "var(--ds-shadow-overlay, ".concat("0 0 0 1px ".concat(N30A, ",\n 0 2px 1px ").concat(N30A, ",\n 0 0 20px -6px ").concat(N60A), ")"));
|
|
166
165
|
};
|
|
167
166
|
|
|
168
167
|
var itemBefore = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 40px;\n height: 40px;\n box-sizing: border-box;\n display: flex;\n justify-content: center;\n align-items: center;\n margin-right: ", "px;\n"])), gridSize() / 2);
|