@atlaskit/editor-core 163.0.0 → 164.0.2
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 +20 -0
- package/CHANGELOG.md +86 -0
- package/dist/cjs/editor.js +22 -14
- package/dist/cjs/i18n/cs.js +1 -1
- package/dist/cjs/i18n/de.js +3 -3
- package/dist/cjs/i18n/en.js +277 -131
- package/dist/cjs/i18n/en_GB.js +278 -132
- package/dist/cjs/i18n/es.js +1 -1
- package/dist/cjs/i18n/hu.js +2 -2
- package/dist/cjs/i18n/ko.js +2 -2
- package/dist/cjs/i18n/nb.js +1 -1
- package/dist/cjs/i18n/pl.js +24 -0
- package/dist/cjs/i18n/th.js +2 -2
- package/dist/cjs/i18n/tr.js +2 -2
- package/dist/cjs/i18n/vi.js +1 -1
- package/dist/cjs/i18n/zh.js +3 -0
- package/dist/cjs/index.js +12 -0
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.js +1 -1
- package/dist/cjs/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
- package/dist/cjs/plugins/base/pm-plugins/inline-cursor-target.js +16 -23
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +13 -8
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/index.js +14 -6
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +6 -8
- package/dist/cjs/plugins/card/nodeviews/inlineCard.js +16 -42
- package/dist/cjs/plugins/card/pm-plugins/main.js +18 -16
- package/dist/cjs/plugins/card/ui/LinkToolbarButtonGroup.js +27 -30
- package/dist/cjs/plugins/code-block/pm-plugins/keymaps.js +1 -1
- package/dist/cjs/plugins/emoji/ui/Emoji/index.js +5 -4
- package/dist/cjs/plugins/extension/nodeviews/extension.js +5 -0
- package/dist/cjs/plugins/extension/ui/Extension/Extension/index.js +7 -3
- package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +15 -19
- package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +14 -15
- package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +16 -11
- package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +14 -13
- package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +16 -13
- package/dist/cjs/plugins/floating-toolbar/ui/Input.js +5 -2
- package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +4 -5
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +28 -22
- package/dist/cjs/plugins/grid/index.js +2 -2
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +22 -18
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +12 -5
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +23 -21
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/item.js +9 -4
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/styles.js +4 -5
- package/dist/cjs/plugins/list/actions/wrap-and-join-lists.js +3 -73
- package/dist/cjs/plugins/list/ui/ToolbarLists/index.js +34 -18
- package/dist/cjs/plugins/media/commands/helpers.js +45 -25
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +13 -17
- package/dist/cjs/plugins/media/nodeviews/styles.js +14 -16
- package/dist/cjs/plugins/media/picker-facade.js +6 -69
- package/dist/cjs/plugins/media/pm-plugins/main.js +14 -56
- package/dist/cjs/plugins/media/toolbar/linking-toolbar-appearance.js +15 -11
- package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +5 -7
- package/dist/cjs/plugins/media/ui/Media/DropPlaceholder.js +9 -8
- package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +28 -17
- package/dist/cjs/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +1 -3
- package/dist/cjs/plugins/media/ui/MediaPicker/index.js +1 -1
- package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +22 -9
- package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +15 -27
- package/dist/cjs/plugins/panel/actions.js +2 -2
- package/dist/cjs/plugins/panel/nodeviews/panel.js +2 -2
- package/dist/cjs/plugins/panel/pm-plugins/main.js +4 -4
- package/dist/cjs/plugins/panel/styles.js +2 -2
- package/dist/cjs/plugins/panel/toolbar.js +3 -3
- package/dist/cjs/plugins/panel/utils.js +4 -4
- package/dist/cjs/plugins/paste/handlers.js +6 -3
- package/dist/cjs/plugins/paste/pm-plugins/main.js +45 -85
- package/dist/cjs/plugins/status/nodeviews/status.js +10 -13
- package/dist/cjs/plugins/status/ui/statusPicker.js +6 -5
- package/dist/cjs/plugins/table/commands/insert.js +0 -6
- package/dist/cjs/plugins/table/pm-plugins/main.js +67 -0
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +18 -16
- package/dist/cjs/plugins/table/ui/common-styles.js +5 -12
- package/dist/cjs/plugins/table/utils/paste.js +10 -2
- package/dist/cjs/plugins/tasks-and-decisions/commands.js +44 -14
- package/dist/cjs/plugins/tasks-and-decisions/index.js +17 -18
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/input-rules.js +20 -16
- package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -1
- package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +1 -1
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +21 -9
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/styles.js +9 -22
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +7 -8
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +8 -4
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/index.js +14 -8
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/more-button.js +7 -2
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +6 -3
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +11 -4
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +26 -22
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +7 -6
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +14 -10
- package/dist/cjs/ui/Addon/ClickAreaBlock/index.js +5 -5
- package/dist/cjs/ui/Addon/ClickAreaInline/index.js +4 -5
- package/dist/cjs/ui/Addon/ClickAreaMobile/index.js +12 -11
- package/dist/cjs/ui/Addon/Dropdown/index.js +5 -1
- package/dist/cjs/ui/Addon/Dropdown/styles.js +4 -5
- package/dist/cjs/ui/Addon/DropdownItem/index.js +5 -5
- package/dist/cjs/ui/Addon/DropdownItem/styles.js +4 -5
- package/dist/cjs/ui/Alignment/index.js +9 -15
- package/dist/cjs/ui/Alignment/styles.js +4 -5
- package/dist/cjs/ui/Appearance/Chromeless.js +11 -15
- package/dist/cjs/ui/Appearance/Comment/Comment.js +29 -34
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +14 -23
- package/dist/cjs/ui/Appearance/FullPage/FullPage.js +6 -3
- package/dist/cjs/ui/Appearance/FullPage/FullPageContentArea.js +30 -19
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +21 -15
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +34 -46
- package/dist/cjs/ui/Appearance/FullPage/StyledComponents.js +44 -49
- package/dist/cjs/ui/AppearanceComponents/Mobile.js +12 -15
- package/dist/cjs/ui/ChromeCollapsed/index.js +5 -2
- package/dist/cjs/ui/ChromeCollapsed/styles.js +4 -5
- package/dist/cjs/ui/ColorPalette/Color/index.js +8 -3
- package/dist/cjs/ui/ColorPalette/Color/styles.js +6 -9
- package/dist/cjs/ui/ColorPalette/Palettes/panelBackgroundPalette.js +22 -22
- package/dist/cjs/ui/ColorPalette/index.js +8 -3
- package/dist/cjs/ui/ColorPalette/styles.js +4 -5
- package/dist/cjs/ui/ColorPickerButton/index.js +11 -8
- package/dist/cjs/ui/ConfigPanel/Fields/Boolean.js +10 -3
- package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +11 -17
- package/dist/cjs/ui/ConfigPanel/Fields/ColorPicker.js +15 -12
- package/dist/cjs/ui/ConfigPanel/Fields/DateRange.js +27 -30
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +32 -31
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +22 -13
- package/dist/cjs/ui/ConfigPanel/Fields/SelectItem.js +17 -20
- package/dist/cjs/ui/ConfigPanel/Fields/common/RequiredIndicator.js +4 -5
- package/dist/cjs/ui/ConfigPanel/LoadingState.js +5 -5
- package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +13 -14
- package/dist/cjs/ui/ContentStyles/index.js +24 -18
- package/dist/cjs/ui/ContextPanel/index.js +35 -62
- package/dist/cjs/ui/DropdownMenu/index.js +20 -25
- package/dist/cjs/ui/ElementBrowser/InsertMenu.js +38 -18
- package/dist/cjs/ui/ElementBrowser/components/CategoryList.js +13 -12
- package/dist/cjs/ui/ElementBrowser/components/ElementBrowserLoader.js +7 -6
- package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +5 -3
- package/dist/cjs/ui/ElementBrowser/components/ElementSearch.js +18 -21
- package/dist/cjs/ui/FloatingToolbar/index.js +9 -14
- package/dist/cjs/ui/FloatingToolbar/styles.js +6 -13
- package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +37 -27
- package/dist/cjs/ui/LinkSearch/ToolbarComponents.js +8 -21
- package/dist/cjs/ui/PanelTextInput/index.js +7 -11
- package/dist/cjs/ui/PanelTextInput/styles.js +10 -7
- package/dist/cjs/ui/PluginSlot/index.js +6 -4
- package/dist/cjs/ui/Toolbar/ToolbarWithSizeDetector.js +19 -12
- package/dist/cjs/ui/ToolbarButton/index.js +8 -8
- package/dist/cjs/ui/ToolbarFeedback/index.js +21 -14
- package/dist/cjs/ui/ToolbarFeedback/styles.js +14 -28
- package/dist/cjs/ui/styles.js +29 -56
- package/dist/cjs/utils/prosemirror/autojoin.js +83 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/editor.js +17 -13
- package/dist/es2019/i18n/cs.js +1 -1
- package/dist/es2019/i18n/de.js +3 -3
- package/dist/es2019/i18n/en.js +277 -131
- package/dist/es2019/i18n/en_GB.js +278 -132
- package/dist/es2019/i18n/es.js +1 -1
- package/dist/es2019/i18n/hu.js +2 -2
- package/dist/es2019/i18n/ko.js +2 -2
- package/dist/es2019/i18n/nb.js +1 -1
- package/dist/es2019/i18n/pl.js +24 -0
- package/dist/es2019/i18n/th.js +2 -2
- package/dist/es2019/i18n/tr.js +2 -2
- package/dist/es2019/i18n/vi.js +1 -1
- package/dist/es2019/i18n/zh.js +3 -0
- package/dist/es2019/index.js +3 -3
- package/dist/es2019/nodeviews/getInlineNodeViewProducer.js +1 -1
- package/dist/es2019/nodeviews/getInlineNodeViewProducer.styles.js +6 -1
- package/dist/es2019/plugins/base/pm-plugins/inline-cursor-target.js +15 -12
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +13 -9
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/index.js +16 -8
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +6 -4
- package/dist/es2019/plugins/card/nodeviews/inlineCard.js +15 -23
- package/dist/es2019/plugins/card/pm-plugins/main.js +22 -18
- package/dist/es2019/plugins/card/ui/LinkToolbarButtonGroup.js +19 -14
- package/dist/es2019/plugins/code-block/pm-plugins/keymaps.js +1 -1
- package/dist/es2019/plugins/emoji/ui/Emoji/index.js +6 -3
- package/dist/es2019/plugins/extension/nodeviews/extension.js +5 -0
- package/dist/es2019/plugins/extension/ui/Extension/Extension/index.js +8 -4
- package/dist/es2019/plugins/extension/ui/Extension/Extension/styles.js +5 -6
- package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +18 -11
- package/dist/es2019/plugins/floating-toolbar/ui/Dropdown.js +18 -10
- package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +13 -9
- package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +14 -9
- package/dist/es2019/plugins/floating-toolbar/ui/Input.js +7 -3
- package/dist/es2019/plugins/floating-toolbar/ui/Separator.js +5 -4
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +28 -18
- package/dist/es2019/plugins/grid/index.js +1 -1
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +23 -14
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +13 -7
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +21 -17
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/item.js +9 -5
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/styles.js +2 -2
- package/dist/es2019/plugins/list/actions/wrap-and-join-lists.js +3 -69
- package/dist/es2019/plugins/list/ui/ToolbarLists/index.js +34 -18
- package/dist/es2019/plugins/media/commands/helpers.js +45 -25
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +13 -10
- package/dist/es2019/plugins/media/nodeviews/styles.js +13 -9
- package/dist/es2019/plugins/media/picker-facade.js +2 -44
- package/dist/es2019/plugins/media/pm-plugins/main.js +5 -30
- package/dist/es2019/plugins/media/toolbar/linking-toolbar-appearance.js +17 -12
- package/dist/es2019/plugins/media/ui/CaptionPlaceholder/index.js +6 -5
- package/dist/es2019/plugins/media/ui/Media/DropPlaceholder.js +10 -6
- package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +24 -16
- package/dist/es2019/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +1 -2
- package/dist/es2019/plugins/media/ui/MediaPicker/index.js +1 -1
- package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +19 -6
- package/dist/es2019/plugins/mentions/ui/InviteItem/styles.js +11 -9
- package/dist/es2019/plugins/panel/actions.js +1 -1
- package/dist/es2019/plugins/panel/nodeviews/panel.js +1 -1
- package/dist/es2019/plugins/panel/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/panel/styles.js +1 -1
- package/dist/es2019/plugins/panel/toolbar.js +1 -1
- package/dist/es2019/plugins/panel/utils.js +1 -1
- package/dist/es2019/plugins/paste/handlers.js +6 -3
- package/dist/es2019/plugins/paste/pm-plugins/main.js +26 -61
- package/dist/es2019/plugins/status/nodeviews/status.js +11 -7
- package/dist/es2019/plugins/status/ui/statusPicker.js +8 -5
- package/dist/es2019/plugins/table/commands/insert.js +0 -5
- package/dist/es2019/plugins/table/pm-plugins/main.js +65 -1
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +20 -11
- package/dist/es2019/plugins/table/ui/common-styles.js +2 -18
- package/dist/es2019/plugins/table/utils/paste.js +8 -3
- package/dist/es2019/plugins/tasks-and-decisions/commands.js +26 -14
- package/dist/es2019/plugins/tasks-and-decisions/index.js +18 -19
- package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/input-rules.js +16 -10
- package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +2 -2
- package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +2 -2
- package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +24 -11
- package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/styles.js +20 -27
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +7 -3
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +9 -5
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/index.js +15 -9
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/more-button.js +7 -3
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +6 -4
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +13 -5
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +25 -14
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +8 -6
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +15 -11
- package/dist/es2019/ui/Addon/ClickAreaBlock/index.js +7 -4
- package/dist/es2019/ui/Addon/ClickAreaInline/index.js +6 -4
- package/dist/es2019/ui/Addon/ClickAreaMobile/index.js +14 -9
- package/dist/es2019/ui/Addon/Dropdown/index.js +7 -2
- package/dist/es2019/ui/Addon/Dropdown/styles.js +2 -2
- package/dist/es2019/ui/Addon/DropdownItem/index.js +6 -4
- package/dist/es2019/ui/Addon/DropdownItem/styles.js +2 -2
- package/dist/es2019/ui/Alignment/index.js +8 -9
- package/dist/es2019/ui/Alignment/styles.js +3 -2
- package/dist/es2019/ui/Appearance/Chromeless.js +18 -13
- package/dist/es2019/ui/Appearance/Comment/Comment.js +34 -30
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +15 -15
- package/dist/es2019/ui/Appearance/FullPage/FullPage.js +8 -4
- package/dist/es2019/ui/Appearance/FullPage/FullPageContentArea.js +28 -18
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +21 -14
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +41 -51
- package/dist/es2019/ui/Appearance/FullPage/StyledComponents.js +59 -58
- package/dist/es2019/ui/AppearanceComponents/Mobile.js +12 -13
- package/dist/es2019/ui/ChromeCollapsed/index.js +7 -3
- package/dist/es2019/ui/ChromeCollapsed/styles.js +2 -2
- package/dist/es2019/ui/ColorPalette/Color/index.js +10 -4
- package/dist/es2019/ui/ColorPalette/Color/styles.js +3 -3
- package/dist/es2019/ui/ColorPalette/Palettes/panelBackgroundPalette.js +1 -1
- package/dist/es2019/ui/ColorPalette/index.js +6 -3
- package/dist/es2019/ui/ColorPalette/styles.js +2 -2
- package/dist/es2019/ui/ColorPickerButton/index.js +12 -7
- package/dist/es2019/ui/ConfigPanel/Fields/Boolean.js +11 -4
- package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +13 -10
- package/dist/es2019/ui/ConfigPanel/Fields/ColorPicker.js +16 -10
- package/dist/es2019/ui/ConfigPanel/Fields/DateRange.js +28 -19
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +24 -16
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +18 -13
- package/dist/es2019/ui/ConfigPanel/Fields/SelectItem.js +15 -15
- package/dist/es2019/ui/ConfigPanel/Fields/common/RequiredIndicator.js +2 -2
- package/dist/es2019/ui/ConfigPanel/LoadingState.js +6 -4
- package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +15 -10
- package/dist/es2019/ui/ContentStyles/index.js +20 -17
- package/dist/es2019/ui/ContextPanel/index.js +27 -37
- package/dist/es2019/ui/DropdownMenu/index.js +28 -20
- package/dist/es2019/ui/ElementBrowser/InsertMenu.js +34 -15
- package/dist/es2019/ui/ElementBrowser/components/CategoryList.js +9 -5
- package/dist/es2019/ui/ElementBrowser/components/ElementBrowserLoader.js +6 -3
- package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +7 -5
- package/dist/es2019/ui/ElementBrowser/components/ElementSearch.js +31 -18
- package/dist/es2019/ui/FloatingToolbar/index.js +8 -8
- package/dist/es2019/ui/FloatingToolbar/styles.js +5 -7
- package/dist/es2019/ui/LinkSearch/LinkSearchListItem.js +30 -14
- package/dist/es2019/ui/LinkSearch/ToolbarComponents.js +7 -12
- package/dist/es2019/ui/PanelTextInput/index.js +7 -5
- package/dist/es2019/ui/PanelTextInput/styles.js +7 -3
- package/dist/es2019/ui/PluginSlot/index.js +8 -4
- package/dist/es2019/ui/Toolbar/ToolbarWithSizeDetector.js +15 -12
- package/dist/es2019/ui/ToolbarButton/index.js +8 -5
- package/dist/es2019/ui/ToolbarFeedback/index.js +21 -8
- package/dist/es2019/ui/ToolbarFeedback/styles.js +9 -11
- package/dist/es2019/ui/styles.js +24 -20
- package/dist/es2019/utils/prosemirror/autojoin.js +70 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/editor.js +16 -13
- package/dist/esm/i18n/cs.js +1 -1
- package/dist/esm/i18n/de.js +3 -3
- package/dist/esm/i18n/en.js +277 -131
- package/dist/esm/i18n/en_GB.js +278 -132
- package/dist/esm/i18n/es.js +1 -1
- package/dist/esm/i18n/hu.js +2 -2
- package/dist/esm/i18n/ko.js +2 -2
- package/dist/esm/i18n/nb.js +1 -1
- package/dist/esm/i18n/pl.js +24 -0
- package/dist/esm/i18n/th.js +2 -2
- package/dist/esm/i18n/tr.js +2 -2
- package/dist/esm/i18n/vi.js +1 -1
- package/dist/esm/i18n/zh.js +3 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/nodeviews/getInlineNodeViewProducer.js +1 -1
- package/dist/esm/nodeviews/getInlineNodeViewProducer.styles.js +1 -1
- package/dist/esm/plugins/base/pm-plugins/inline-cursor-target.js +15 -16
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/blocktype-button.js +13 -9
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/index.js +16 -8
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +4 -6
- package/dist/esm/plugins/card/nodeviews/inlineCard.js +14 -38
- package/dist/esm/plugins/card/pm-plugins/main.js +18 -17
- package/dist/esm/plugins/card/ui/LinkToolbarButtonGroup.js +26 -27
- package/dist/esm/plugins/code-block/pm-plugins/keymaps.js +1 -1
- package/dist/esm/plugins/emoji/ui/Emoji/index.js +6 -3
- package/dist/esm/plugins/extension/nodeviews/extension.js +5 -0
- package/dist/esm/plugins/extension/ui/Extension/Extension/index.js +8 -4
- package/dist/esm/plugins/extension/ui/Extension/Extension/styles.js +10 -9
- package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +15 -13
- package/dist/esm/plugins/floating-toolbar/ui/Dropdown.js +17 -10
- package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +13 -9
- package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +14 -9
- package/dist/esm/plugins/floating-toolbar/ui/Input.js +6 -3
- package/dist/esm/plugins/floating-toolbar/ui/Separator.js +5 -4
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +30 -22
- package/dist/esm/plugins/grid/index.js +1 -1
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +24 -15
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +13 -7
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +25 -23
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/item.js +9 -5
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/styles.js +2 -2
- package/dist/esm/plugins/list/actions/wrap-and-join-lists.js +3 -73
- package/dist/esm/plugins/list/ui/ToolbarLists/index.js +33 -18
- package/dist/esm/plugins/media/commands/helpers.js +45 -25
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +12 -10
- package/dist/esm/plugins/media/nodeviews/styles.js +13 -10
- package/dist/esm/plugins/media/picker-facade.js +7 -71
- package/dist/esm/plugins/media/pm-plugins/main.js +14 -57
- package/dist/esm/plugins/media/toolbar/linking-toolbar-appearance.js +17 -12
- package/dist/esm/plugins/media/ui/CaptionPlaceholder/index.js +6 -5
- package/dist/esm/plugins/media/ui/Media/DropPlaceholder.js +10 -6
- package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +23 -16
- package/dist/esm/plugins/media/ui/MediaPicker/PickerFacadeProvider.js +1 -2
- package/dist/esm/plugins/media/ui/MediaPicker/index.js +1 -1
- package/dist/esm/plugins/mentions/ui/InviteItem/index.js +19 -6
- package/dist/esm/plugins/mentions/ui/InviteItem/styles.js +8 -12
- package/dist/esm/plugins/panel/actions.js +1 -1
- package/dist/esm/plugins/panel/nodeviews/panel.js +1 -1
- package/dist/esm/plugins/panel/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/panel/styles.js +1 -1
- package/dist/esm/plugins/panel/toolbar.js +1 -1
- package/dist/esm/plugins/panel/utils.js +1 -1
- package/dist/esm/plugins/paste/handlers.js +6 -3
- package/dist/esm/plugins/paste/pm-plugins/main.js +26 -61
- package/dist/esm/plugins/status/nodeviews/status.js +9 -9
- package/dist/esm/plugins/status/ui/statusPicker.js +7 -5
- package/dist/esm/plugins/table/commands/insert.js +0 -5
- package/dist/esm/plugins/table/pm-plugins/main.js +62 -1
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +19 -11
- package/dist/esm/plugins/table/ui/common-styles.js +3 -7
- package/dist/esm/plugins/table/utils/paste.js +8 -3
- package/dist/esm/plugins/tasks-and-decisions/commands.js +35 -11
- package/dist/esm/plugins/tasks-and-decisions/index.js +19 -18
- package/dist/esm/plugins/tasks-and-decisions/pm-plugins/input-rules.js +21 -17
- package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +2 -2
- package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +2 -2
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +23 -11
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/styles.js +7 -15
- package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/clear-formatting-icon.js +7 -3
- package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +9 -5
- package/dist/esm/plugins/text-formatting/ui/Toolbar/index.js +15 -9
- package/dist/esm/plugins/text-formatting/ui/Toolbar/more-button.js +7 -3
- package/dist/esm/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +6 -4
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +13 -5
- package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +25 -14
- package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +8 -6
- package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +15 -11
- package/dist/esm/ui/Addon/ClickAreaBlock/index.js +6 -4
- package/dist/esm/ui/Addon/ClickAreaInline/index.js +5 -4
- package/dist/esm/ui/Addon/ClickAreaMobile/index.js +13 -10
- package/dist/esm/ui/Addon/Dropdown/index.js +6 -2
- package/dist/esm/ui/Addon/Dropdown/styles.js +2 -2
- package/dist/esm/ui/Addon/DropdownItem/index.js +6 -4
- package/dist/esm/ui/Addon/DropdownItem/styles.js +2 -2
- package/dist/esm/ui/Alignment/index.js +8 -9
- package/dist/esm/ui/Alignment/styles.js +2 -2
- package/dist/esm/ui/Appearance/Chromeless.js +12 -14
- package/dist/esm/ui/Appearance/Comment/Comment.js +31 -31
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +13 -16
- package/dist/esm/ui/Appearance/FullPage/FullPage.js +7 -4
- package/dist/esm/ui/Appearance/FullPage/FullPageContentArea.js +28 -18
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +22 -14
- package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +21 -24
- package/dist/esm/ui/Appearance/FullPage/StyledComponents.js +35 -34
- package/dist/esm/ui/AppearanceComponents/Mobile.js +13 -14
- package/dist/esm/ui/ChromeCollapsed/index.js +6 -3
- package/dist/esm/ui/ChromeCollapsed/styles.js +2 -2
- package/dist/esm/ui/ColorPalette/Color/index.js +9 -4
- package/dist/esm/ui/ColorPalette/Color/styles.js +3 -3
- package/dist/esm/ui/ColorPalette/Palettes/panelBackgroundPalette.js +1 -1
- package/dist/esm/ui/ColorPalette/index.js +7 -4
- package/dist/esm/ui/ColorPalette/styles.js +2 -2
- package/dist/esm/ui/ColorPickerButton/index.js +12 -7
- package/dist/esm/ui/ConfigPanel/Fields/Boolean.js +11 -4
- package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +12 -10
- package/dist/esm/ui/ConfigPanel/Fields/ColorPicker.js +16 -10
- package/dist/esm/ui/ConfigPanel/Fields/DateRange.js +27 -19
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +30 -21
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +17 -13
- package/dist/esm/ui/ConfigPanel/Fields/SelectItem.js +18 -18
- package/dist/esm/ui/ConfigPanel/Fields/common/RequiredIndicator.js +2 -2
- package/dist/esm/ui/ConfigPanel/LoadingState.js +6 -4
- package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +13 -12
- package/dist/esm/ui/ContentStyles/index.js +20 -17
- package/dist/esm/ui/ContextPanel/index.js +31 -48
- package/dist/esm/ui/DropdownMenu/index.js +21 -22
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +39 -16
- package/dist/esm/ui/ElementBrowser/components/CategoryList.js +9 -6
- package/dist/esm/ui/ElementBrowser/components/ElementBrowserLoader.js +6 -3
- package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +7 -5
- package/dist/esm/ui/ElementBrowser/components/ElementSearch.js +20 -18
- package/dist/esm/ui/FloatingToolbar/index.js +8 -8
- package/dist/esm/ui/FloatingToolbar/styles.js +4 -5
- package/dist/esm/ui/LinkSearch/LinkSearchListItem.js +27 -16
- package/dist/esm/ui/LinkSearch/ToolbarComponents.js +4 -7
- package/dist/esm/ui/PanelTextInput/index.js +6 -5
- package/dist/esm/ui/PanelTextInput/styles.js +6 -5
- package/dist/esm/ui/PluginSlot/index.js +7 -4
- package/dist/esm/ui/Toolbar/ToolbarWithSizeDetector.js +14 -12
- package/dist/esm/ui/ToolbarButton/index.js +8 -5
- package/dist/esm/ui/ToolbarFeedback/index.js +20 -8
- package/dist/esm/ui/ToolbarFeedback/styles.js +8 -11
- package/dist/esm/ui/styles.js +17 -23
- package/dist/esm/utils/prosemirror/autojoin.js +76 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/commands/index.d.ts +2 -1
- package/dist/types/create-editor/ErrorBoundary.d.ts +1 -1
- package/dist/types/create-editor/ReactEditorView.d.ts +1 -1
- package/dist/types/create-editor/WithEditorView.d.ts +1 -1
- package/dist/types/editor.d.ts +8 -8
- package/dist/types/i18n/en.d.ts +276 -130
- package/dist/types/i18n/en_GB.d.ts +276 -130
- package/dist/types/i18n/pl.d.ts +24 -0
- package/dist/types/i18n/zh.d.ts +3 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/labs/EditorWithActions/index.d.ts +1 -1
- package/dist/types/labs/next/full-page.d.ts +1 -1
- package/dist/types/labs/next/internal/context/shared-config.d.ts +2 -2
- package/dist/types/labs/next/mobile.d.ts +1 -1
- package/dist/types/plugins/alignment/commands/index.d.ts +3 -2
- package/dist/types/plugins/base/pm-plugins/inline-cursor-target.d.ts +1 -3
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/blocktype-button.d.ts +1 -0
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/styled.d.ts +2 -4
- package/dist/types/plugins/card/nodeviews/blockCard.d.ts +1 -1
- package/dist/types/plugins/card/nodeviews/embedCard.d.ts +1 -1
- package/dist/types/plugins/card/nodeviews/inlineCard.d.ts +3 -6
- package/dist/types/plugins/card/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/card/pm-plugins/util/resolve.d.ts +1 -1
- package/dist/types/plugins/card/pm-plugins/util/state.d.ts +2 -2
- package/dist/types/plugins/card/toolbar.d.ts +1 -1
- package/dist/types/plugins/card/ui/LinkToolbarAppearance.d.ts +1 -1
- package/dist/types/plugins/card/ui/LinkToolbarButtonGroup.d.ts +2 -7
- package/dist/types/plugins/card/ui/ResizableEmbedCard.d.ts +1 -1
- package/dist/types/plugins/card/utils.d.ts +1 -1
- package/dist/types/plugins/date/actions.d.ts +2 -1
- package/dist/types/plugins/emoji/ui/Emoji/index.d.ts +3 -2
- package/dist/types/plugins/emoji/ui/EmojiContextProvider/index.d.ts +1 -1
- package/dist/types/plugins/extension/ui/Extension/Extension/index.d.ts +2 -2
- package/dist/types/plugins/extension/ui/Extension/Extension/styles.d.ts +3 -4
- package/dist/types/plugins/feature-flags-context/get-enabled-feature-flag-keys.d.ts +1 -1
- package/dist/types/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +1 -0
- package/dist/types/plugins/floating-toolbar/index.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/ui/Dropdown.d.ts +3 -1
- package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +3 -3
- package/dist/types/plugins/floating-toolbar/ui/Input.d.ts +3 -1
- package/dist/types/plugins/floating-toolbar/ui/Separator.d.ts +3 -2
- package/dist/types/plugins/floating-toolbar/ui/Toolbar.d.ts +2 -1
- package/dist/types/plugins/floating-toolbar/ui/ToolbarLoader.d.ts +1 -1
- package/dist/types/plugins/help-dialog/ui/HelpDialogLoader.d.ts +1 -1
- package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.d.ts +1 -1
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.d.ts +1 -0
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/index.d.ts +3 -1
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/item.d.ts +1 -0
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/styles.d.ts +1 -2
- package/dist/types/plugins/list/actions/wrap-and-join-lists.d.ts +1 -11
- package/dist/types/plugins/list/ui/ToolbarLists/index.d.ts +3 -3
- package/dist/types/plugins/media/commands/helpers.d.ts +2 -2
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +4 -2
- package/dist/types/plugins/media/nodeviews/styles.d.ts +4 -2
- package/dist/types/plugins/media/picker-facade.d.ts +5 -12
- package/dist/types/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.d.ts +1 -1
- package/dist/types/plugins/media/pm-plugins/main.d.ts +1 -4
- package/dist/types/plugins/media/pm-plugins/types.d.ts +0 -1
- package/dist/types/plugins/media/toolbar/linking-toolbar-appearance.d.ts +1 -0
- package/dist/types/plugins/media/types.d.ts +0 -1
- package/dist/types/plugins/media/ui/CaptionPlaceholder/index.d.ts +3 -2
- package/dist/types/plugins/media/ui/Media/DropPlaceholder.d.ts +3 -2
- package/dist/types/plugins/media/ui/MediaLinkingToolbar.d.ts +3 -1
- package/dist/types/plugins/media/ui/MediaPicker/PickerFacadeProvider.d.ts +1 -1
- package/dist/types/plugins/media/ui/ResizableMediaSingle/index.d.ts +1 -1
- package/dist/types/plugins/media/utils/media-files.d.ts +3 -2
- package/dist/types/plugins/media/utils/media-single.d.ts +2 -2
- package/dist/types/plugins/mentions/analytics.d.ts +4 -3
- package/dist/types/plugins/mentions/ui/InviteItem/styles.d.ts +6 -6
- package/dist/types/plugins/quick-insert/assets/index.d.ts +24 -24
- package/dist/types/plugins/status/nodeviews/status.d.ts +1 -4
- package/dist/types/plugins/status/ui/statusPicker.d.ts +4 -2
- package/dist/types/plugins/table/nodeviews/tableCell.d.ts +0 -1
- package/dist/types/plugins/table/types.d.ts +0 -1
- package/dist/types/plugins/table/ui/FloatingContextualMenu/ContextualMenu.d.ts +6 -4
- package/dist/types/plugins/table/ui/common-styles.d.ts +0 -2
- package/dist/types/plugins/table/utils/paste.d.ts +2 -0
- package/dist/types/plugins/tasks-and-decisions/commands.d.ts +5 -2
- package/dist/types/plugins/text-color/ui/ToolbarTextColor/index.d.ts +3 -1
- package/dist/types/plugins/text-color/ui/ToolbarTextColor/styles.d.ts +3 -11
- package/dist/types/plugins/text-formatting/ui/Toolbar/index.d.ts +1 -0
- package/dist/types/plugins/text-formatting/ui/Toolbar/more-button.d.ts +1 -0
- package/dist/types/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.d.ts +1 -0
- package/dist/types/plugins/type-ahead/api.d.ts +1 -2
- package/dist/types/plugins/type-ahead/ui/InputQuery.d.ts +1 -0
- package/dist/types/plugins/type-ahead/ui/TypeAheadList.d.ts +8 -5
- package/dist/types/plugins/type-ahead/ui/TypeAheadListItem.d.ts +2 -1
- package/dist/types/plugins/type-ahead/ui/TypeAheadPopup.d.ts +1 -0
- package/dist/types/plugins/type-ahead/ui/hooks/use-resize-observer.d.ts +0 -1
- package/dist/types/plugins/undo-redo/ui/ToolbarUndoRedo/index.d.ts +6 -4
- package/dist/types/ui/Addon/ClickAreaBlock/index.d.ts +3 -1
- package/dist/types/ui/Addon/ClickAreaInline/index.d.ts +3 -1
- package/dist/types/ui/Addon/ClickAreaMobile/index.d.ts +3 -1
- package/dist/types/ui/Addon/Dropdown/index.d.ts +3 -1
- package/dist/types/ui/Addon/Dropdown/styles.d.ts +1 -2
- package/dist/types/ui/Addon/DropdownItem/index.d.ts +3 -2
- package/dist/types/ui/Addon/DropdownItem/styles.d.ts +1 -2
- package/dist/types/ui/Alignment/index.d.ts +3 -3
- package/dist/types/ui/Alignment/styles.d.ts +1 -2
- package/dist/types/ui/Appearance/Chromeless.d.ts +3 -1
- package/dist/types/ui/Appearance/Comment/Comment.d.ts +1 -0
- package/dist/types/ui/Appearance/Comment/Toolbar.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/FullPage.d.ts +3 -1
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +1 -0
- package/dist/types/ui/Appearance/FullPage/MainToolbar.d.ts +6 -12
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +376 -17
- package/dist/types/ui/AppearanceComponents/Mobile.d.ts +3 -1
- package/dist/types/ui/ChromeCollapsed/index.d.ts +1 -0
- package/dist/types/ui/ChromeCollapsed/styles.d.ts +1 -4
- package/dist/types/ui/ColorPalette/Color/index.d.ts +3 -1
- package/dist/types/ui/ColorPalette/Color/styles.d.ts +2 -3
- package/dist/types/ui/ColorPalette/index.d.ts +1 -0
- package/dist/types/ui/ColorPalette/styles.d.ts +1 -2
- package/dist/types/ui/ColorPickerButton/index.d.ts +2 -1
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ConfigPanelLoader.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/ErrorMessage/index.d.ts +5 -4
- package/dist/types/ui/ConfigPanel/Fields/CheckboxGroup.d.ts +2 -2
- package/dist/types/ui/ConfigPanel/Fields/ColorPicker.d.ts +3 -2
- package/dist/types/ui/ConfigPanel/Fields/DateRange.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/Fields/Expand.d.ts +11 -7
- package/dist/types/ui/ConfigPanel/Fields/Fieldset.d.ts +1 -0
- package/dist/types/ui/ConfigPanel/Fields/SelectItem.d.ts +3 -2
- package/dist/types/ui/ConfigPanel/Fields/TabGroup.d.ts +6 -4
- package/dist/types/ui/ConfigPanel/Fields/common/RequiredIndicator.d.ts +1 -2
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/Header.d.ts +13 -7
- package/dist/types/ui/ConfigPanel/LoadingState.d.ts +3 -2
- package/dist/types/ui/ConfigPanel/NestedForms/RemovableField.d.ts +14 -8
- package/dist/types/ui/ContentStyles/index.d.ts +4 -1
- package/dist/types/ui/ContextPanel/index.d.ts +8 -14
- package/dist/types/ui/DropdownMenu/index.d.ts +3 -1
- package/dist/types/ui/EditorContext/index.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/InsertMenu.d.ts +2 -2
- package/dist/types/ui/ElementBrowser/components/CategoryList.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/components/ElementBrowserLoader.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/components/ElementList/ElementList.d.ts +1 -1
- package/dist/types/ui/ElementBrowser/components/ElementSearch.d.ts +3 -2
- package/dist/types/ui/ElementBrowser/components/StatelessElementBrowser.d.ts +1 -1
- package/dist/types/ui/FloatingToolbar/index.d.ts +3 -2
- package/dist/types/ui/FloatingToolbar/styles.d.ts +1 -5
- package/dist/types/ui/LinkSearch/LinkSearchListItem.d.ts +5 -7
- package/dist/types/ui/LinkSearch/ToolbarComponents.d.ts +3 -8
- package/dist/types/ui/LinkSearch/index.d.ts +20 -20
- package/dist/types/ui/LinkSearch/withActivityProvider.d.ts +21 -20
- package/dist/types/ui/PanelTextInput/index.d.ts +3 -1
- package/dist/types/ui/PanelTextInput/styles.d.ts +2 -4
- package/dist/types/ui/PluginSlot/index.d.ts +3 -1
- package/dist/types/ui/Toolbar/ToolbarWithSizeDetector.d.ts +1 -0
- package/dist/types/ui/Toolbar/toolbar-size.d.ts +3 -2
- package/dist/types/ui/ToolbarButton/index.d.ts +5 -7
- package/dist/types/ui/ToolbarButton/styles.d.ts +2 -4
- package/dist/types/ui/ToolbarFeedback/index.d.ts +4 -2
- package/dist/types/ui/ToolbarFeedback/styles.d.ts +6 -7
- package/dist/types/ui/WithEditorActions/index.d.ts +2 -2
- package/dist/types/ui/WithHelpTrigger/index.d.ts +1 -1
- package/dist/types/ui/WithPluginState/index.d.ts +3 -3
- package/dist/types/ui/styles.d.ts +12 -22
- package/dist/types/utils/nodes.d.ts +2 -1
- package/dist/types/utils/prosemirror/autojoin.d.ts +13 -0
- package/package.json +23 -23
- package/dist/cjs/ui/Separator/index.js +0 -21
- package/dist/es2019/ui/Separator/index.js +0 -9
- package/dist/esm/ui/Separator/index.js +0 -8
- package/dist/types/ui/Separator/index.d.ts +0 -3
|
@@ -13,8 +13,9 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
13
13
|
|
|
14
14
|
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; } }
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
import
|
|
16
|
+
/** @jsx jsx */
|
|
17
|
+
import { PureComponent } from 'react';
|
|
18
|
+
import { css, jsx } from '@emotion/react'; // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
18
19
|
|
|
19
20
|
import DropList from '@atlaskit/droplist'; // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
20
21
|
|
|
@@ -23,18 +24,14 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
23
24
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
24
25
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
25
26
|
import withOuterListeners from '../with-outer-listeners';
|
|
26
|
-
var
|
|
27
|
+
var wrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* tooltip in ToolbarButton is display:block */\n & > div > div {\n display: flex;\n }\n"])));
|
|
27
28
|
var DropListWithOutsideListeners = withOuterListeners(DropList);
|
|
28
29
|
/**
|
|
29
30
|
* Hack for item to imitate old dropdown-menu selected styles
|
|
30
31
|
*/
|
|
31
32
|
|
|
32
|
-
var
|
|
33
|
-
|
|
34
|
-
});
|
|
35
|
-
var ItemContentWrapper = styled.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n ", ";\n"])), function (props) {
|
|
36
|
-
return props.hasElemBefore ? 'margin-left: 8px;' : '';
|
|
37
|
-
});
|
|
33
|
+
var itemWrapper = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n && > span,\n && > span:hover {\n background: #6c798f;\n color: #fff;\n }\n"])));
|
|
34
|
+
var itemContentWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 8px;\n"])));
|
|
38
35
|
/**
|
|
39
36
|
* Wrapper around @atlaskit/droplist which uses Popup and Portal to render
|
|
40
37
|
* dropdown-menu outside of "overflow: hidden" containers when needed.
|
|
@@ -100,15 +97,15 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
100
97
|
// If neither are present, don't wrap in an Item.
|
|
101
98
|
|
|
102
99
|
if (!item.onClick && !item.value && !item.value.name) {
|
|
103
|
-
return
|
|
100
|
+
return jsx("span", {
|
|
104
101
|
key: String(item.content)
|
|
105
102
|
}, item.content);
|
|
106
103
|
}
|
|
107
104
|
|
|
108
|
-
var dropListItem =
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
},
|
|
105
|
+
var dropListItem = jsx("div", {
|
|
106
|
+
css: item.isActive ? itemWrapper : '',
|
|
107
|
+
key: item.key || item.content
|
|
108
|
+
}, jsx(Item, {
|
|
112
109
|
role: shouldUseDefaultRole ? 'button' : 'menuitem',
|
|
113
110
|
elemBefore: item.elemBefore,
|
|
114
111
|
elemAfter: item.elemAfter,
|
|
@@ -131,12 +128,12 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
131
128
|
className: item.className,
|
|
132
129
|
"aria-label": item.label || String(item.content),
|
|
133
130
|
"aria-pressed": shouldUseDefaultRole ? item.isActive : undefined
|
|
134
|
-
},
|
|
135
|
-
|
|
131
|
+
}, jsx("span", {
|
|
132
|
+
css: !!item.elemBefore ? itemContentWrapper : ''
|
|
136
133
|
}, item.content)));
|
|
137
134
|
|
|
138
135
|
if (item.tooltipDescription) {
|
|
139
|
-
return
|
|
136
|
+
return jsx(Tooltip, {
|
|
140
137
|
key: item.key || item.content,
|
|
141
138
|
content: item.tooltipDescription,
|
|
142
139
|
position: item.tooltipPosition
|
|
@@ -164,7 +161,7 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
164
161
|
isOpen = _this$props2.isOpen,
|
|
165
162
|
zIndex = _this$props2.zIndex,
|
|
166
163
|
shouldUseDefaultRole = _this$props2.shouldUseDefaultRole;
|
|
167
|
-
return
|
|
164
|
+
return jsx(Popup, {
|
|
168
165
|
target: isOpen ? target : undefined,
|
|
169
166
|
mountTo: mountTo,
|
|
170
167
|
boundariesElement: boundariesElement,
|
|
@@ -174,7 +171,7 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
174
171
|
fitWidth: fitWidth,
|
|
175
172
|
zIndex: zIndex || akEditorFloatingPanelZIndex,
|
|
176
173
|
offset: offset
|
|
177
|
-
},
|
|
174
|
+
}, jsx(DropListWithOutsideListeners, {
|
|
178
175
|
isOpen: true,
|
|
179
176
|
appearance: "tall",
|
|
180
177
|
position: popupPlacement.join(' '),
|
|
@@ -183,13 +180,13 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
183
180
|
isTriggerNotTabbable: true,
|
|
184
181
|
handleClickOutside: this.handleClose,
|
|
185
182
|
handleEscapeKeydown: this.handleClose
|
|
186
|
-
},
|
|
183
|
+
}, jsx("div", {
|
|
187
184
|
style: {
|
|
188
185
|
height: 0,
|
|
189
186
|
minWidth: fitWidth || 0
|
|
190
187
|
}
|
|
191
188
|
}), items.map(function (group, index) {
|
|
192
|
-
return
|
|
189
|
+
return jsx(ItemGroup, {
|
|
193
190
|
key: index,
|
|
194
191
|
role: shouldUseDefaultRole ? 'group' : 'menu'
|
|
195
192
|
}, group.items.map(function (item) {
|
|
@@ -203,7 +200,9 @@ var DropdownMenuWrapper = /*#__PURE__*/function (_PureComponent) {
|
|
|
203
200
|
var _this$props3 = this.props,
|
|
204
201
|
children = _this$props3.children,
|
|
205
202
|
isOpen = _this$props3.isOpen;
|
|
206
|
-
return
|
|
203
|
+
return jsx("div", {
|
|
204
|
+
css: wrapper
|
|
205
|
+
}, jsx("div", {
|
|
207
206
|
ref: this.handleRef
|
|
208
207
|
}, children), isOpen ? this.renderDropdownMenu() : null);
|
|
209
208
|
}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
1
3
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
4
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
5
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
6
|
+
var _excluded = ["children"];
|
|
4
7
|
|
|
5
8
|
var _templateObject, _templateObject2, _templateObject3;
|
|
6
9
|
|
|
10
|
+
/** @jsx jsx */
|
|
7
11
|
import React, { useState, useCallback } from 'react';
|
|
8
|
-
import
|
|
12
|
+
import { css, jsx } from '@emotion/react';
|
|
9
13
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
10
14
|
import Item, { itemThemeNamespace } from '@atlaskit/item'; // AFP-2532 TODO: Fix automatic suppressions below
|
|
11
15
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
@@ -80,10 +84,10 @@ var InsertMenu = function InsertMenu(_ref) {
|
|
|
80
84
|
}, [quickInsertDropdownItems]);
|
|
81
85
|
var render = useCallback(function (_ref2) {
|
|
82
86
|
var quickInsertState = _ref2.quickInsertState;
|
|
83
|
-
return
|
|
87
|
+
return jsx(ElementBrowserWrapper, {
|
|
84
88
|
handleClickOutside: toggleVisiblity,
|
|
85
89
|
handleEscapeKeydown: toggleVisiblity
|
|
86
|
-
},
|
|
90
|
+
}, jsx(ElementBrowser, {
|
|
87
91
|
mode: "inline",
|
|
88
92
|
getItems: getItems(quickInsertState),
|
|
89
93
|
emptyStateHandler: quickInsertState === null || quickInsertState === void 0 ? void 0 : quickInsertState.emptyStateHandler,
|
|
@@ -94,14 +98,16 @@ var InsertMenu = function InsertMenu(_ref) {
|
|
|
94
98
|
key: quickInsertDropdownItems.length
|
|
95
99
|
}));
|
|
96
100
|
}, [getItems, onInsertItem, quickInsertDropdownItems.length, toggleVisiblity]);
|
|
97
|
-
return
|
|
98
|
-
|
|
99
|
-
|
|
101
|
+
return jsx("div", {
|
|
102
|
+
css: function css(theme) {
|
|
103
|
+
return insertMenuWrapper(theme, itemCount);
|
|
104
|
+
}
|
|
105
|
+
}, jsx(WithPluginState, {
|
|
100
106
|
plugins: {
|
|
101
107
|
quickInsertState: pluginKey
|
|
102
108
|
},
|
|
103
109
|
render: render
|
|
104
|
-
}), itemCount > 0 && viewMoreItem &&
|
|
110
|
+
}), itemCount > 0 && viewMoreItem && jsx(ViewMore, {
|
|
105
111
|
item: viewMoreItem
|
|
106
112
|
}));
|
|
107
113
|
};
|
|
@@ -118,9 +124,11 @@ var ViewMore = function ViewMore(_ref3) {
|
|
|
118
124
|
item.action();
|
|
119
125
|
}
|
|
120
126
|
}, [item]);
|
|
121
|
-
return
|
|
127
|
+
return jsx(Item, {
|
|
122
128
|
onClick: item.action,
|
|
123
|
-
elemBefore:
|
|
129
|
+
elemBefore: jsx("div", {
|
|
130
|
+
css: itemBefore
|
|
131
|
+
}, item.icon()),
|
|
124
132
|
"aria-describedby": item.title,
|
|
125
133
|
"data-testid": "view-more-elements-item",
|
|
126
134
|
onKeyPress: onKeyPress,
|
|
@@ -140,7 +148,7 @@ var getSvgIconForItem = function getSvgIconForItem(_ref4) {
|
|
|
140
148
|
date: IconDate,
|
|
141
149
|
status: IconStatus
|
|
142
150
|
}[name];
|
|
143
|
-
return Icon ?
|
|
151
|
+
return Icon ? jsx(Icon, {
|
|
144
152
|
label: ""
|
|
145
153
|
}) : undefined;
|
|
146
154
|
};
|
|
@@ -157,11 +165,16 @@ var getInsertMenuHeight = function getInsertMenuHeight(_ref5) {
|
|
|
157
165
|
return 560; // For showing 6 Elements.
|
|
158
166
|
};
|
|
159
167
|
|
|
160
|
-
var
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
})
|
|
164
|
-
|
|
168
|
+
var insertMenuWrapper = function insertMenuWrapper(theme, itemCount) {
|
|
169
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 320px;\n height: ", "px;\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: 0 0 0 1px ", ", 0 2px 1px ", ", 0 0 20px -6px ", ";\n"])), getInsertMenuHeight({
|
|
170
|
+
itemCount: itemCount
|
|
171
|
+
}), themed({
|
|
172
|
+
light: N0,
|
|
173
|
+
dark: DN50
|
|
174
|
+
})(theme), borderRadius(), N30A, N30A, N60A);
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
var itemBefore = css(_templateObject2 || (_templateObject2 = _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);
|
|
165
178
|
var PADDING_LEFT = 14;
|
|
166
179
|
var HEIGHT = 40;
|
|
167
180
|
|
|
@@ -174,6 +187,16 @@ var viewMoreItemTheme = _defineProperty({}, itemThemeNamespace, {
|
|
|
174
187
|
height: HEIGHT
|
|
175
188
|
});
|
|
176
189
|
|
|
177
|
-
var
|
|
190
|
+
var flexWrapperStyles = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex: 1;\n box-sizing: border-box;\n overflow: hidden;\n"])));
|
|
191
|
+
|
|
192
|
+
var FlexWrapper = function FlexWrapper(props) {
|
|
193
|
+
var children = props.children,
|
|
194
|
+
divProps = _objectWithoutProperties(props, _excluded);
|
|
195
|
+
|
|
196
|
+
return jsx("div", _extends({
|
|
197
|
+
css: flexWrapperStyles
|
|
198
|
+
}, divProps), children);
|
|
199
|
+
};
|
|
200
|
+
|
|
178
201
|
var ElementBrowserWrapper = withOuterListeners(FlexWrapper);
|
|
179
202
|
export default InsertMenu;
|
|
@@ -13,8 +13,9 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
13
13
|
|
|
14
14
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
import
|
|
16
|
+
/** @jsx jsx */
|
|
17
|
+
import { css, jsx } from '@emotion/react';
|
|
18
|
+
import React, { memo, useCallback, Fragment } from 'react';
|
|
18
19
|
import { N800, B400, B50 } from '@atlaskit/theme/colors';
|
|
19
20
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
20
21
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
@@ -32,8 +33,8 @@ function CategoryList(_ref) {
|
|
|
32
33
|
focusedCategoryIndex = _React$useState2[0],
|
|
33
34
|
setFocusedCategoryIndex = _React$useState2[1];
|
|
34
35
|
|
|
35
|
-
return
|
|
36
|
-
return
|
|
36
|
+
return jsx(Fragment, null, categories.map(function (category, index) {
|
|
37
|
+
return jsx(CategoryListItem, _extends({
|
|
37
38
|
key: category.title,
|
|
38
39
|
index: index,
|
|
39
40
|
category: category,
|
|
@@ -95,7 +96,9 @@ function CategoryListItem(_ref2) {
|
|
|
95
96
|
})
|
|
96
97
|
}, rest);
|
|
97
98
|
}, [category.name, selectedCategory]);
|
|
98
|
-
return
|
|
99
|
+
return jsx("div", {
|
|
100
|
+
css: buttonWrapper
|
|
101
|
+
}, jsx(Button, {
|
|
99
102
|
appearance: "subtle",
|
|
100
103
|
isSelected: selectedCategory === category.name,
|
|
101
104
|
onClick: onClick,
|
|
@@ -106,7 +109,7 @@ function CategoryListItem(_ref2) {
|
|
|
106
109
|
}, category.title));
|
|
107
110
|
}
|
|
108
111
|
|
|
109
|
-
var
|
|
112
|
+
var buttonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n height: ", "px;\n margin: 4px 4px 4px 0;\n\n @media (min-width: ", "px) {\n :not(:last-child) {\n margin-bottom: 0;\n }\n }\n"])), GRID_SIZE * 4, DEVICE_BREAKPOINT_NUMBERS.medium);
|
|
110
113
|
var MemoizedCategoryListWithAnalytics = /*#__PURE__*/memo(withAnalyticsContext({
|
|
111
114
|
component: 'CategoryList'
|
|
112
115
|
})(CategoryList));
|
|
@@ -2,11 +2,12 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
|
+
/** @jsx jsx */
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
5
7
|
import React from 'react';
|
|
6
8
|
import Loadable from 'react-loadable';
|
|
7
|
-
import styled from 'styled-components';
|
|
8
9
|
import Spinner from '@atlaskit/spinner';
|
|
9
|
-
var
|
|
10
|
+
var spinnerContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n"])));
|
|
10
11
|
var ElementBrowserLoader = Loadable({
|
|
11
12
|
loader: function loader() {
|
|
12
13
|
return import(
|
|
@@ -16,7 +17,9 @@ var ElementBrowserLoader = Loadable({
|
|
|
16
17
|
});
|
|
17
18
|
},
|
|
18
19
|
loading: function loading() {
|
|
19
|
-
return
|
|
20
|
+
return jsx("div", {
|
|
21
|
+
css: spinnerContainer
|
|
22
|
+
}, jsx(Spinner, {
|
|
20
23
|
size: "medium"
|
|
21
24
|
}));
|
|
22
25
|
}
|
|
@@ -25,8 +25,8 @@ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
|
25
25
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
26
26
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../../../plugins/analytics';
|
|
27
27
|
import IconFallback from '../../../../plugins/quick-insert/assets/fallback';
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
28
|
+
import { itemIcon } from '../../../../plugins/type-ahead/ui/TypeAheadListItem';
|
|
29
|
+
import { shortcutStyle } from '../../../styles';
|
|
30
30
|
import { ELEMENT_ITEM_HEIGHT, ELEMENT_LIST_PADDING, GRID_SIZE, SCROLLBAR_THUMB_COLOR, SCROLLBAR_TRACK_COLOR, SCROLLBAR_WIDTH } from '../../constants';
|
|
31
31
|
import useContainerWidth from '../../hooks/use-container-width';
|
|
32
32
|
import useFocus from '../../hooks/use-focus';
|
|
@@ -253,8 +253,8 @@ var itemStyleOverrides = {
|
|
|
253
253
|
var ElementBefore = /*#__PURE__*/memo(function (_ref5) {
|
|
254
254
|
var icon = _ref5.icon,
|
|
255
255
|
title = _ref5.title;
|
|
256
|
-
return jsx(
|
|
257
|
-
css: itemIconStyle
|
|
256
|
+
return jsx("div", {
|
|
257
|
+
css: [itemIcon, itemIconStyle]
|
|
258
258
|
}, icon ? icon() : jsx(IconFallback, null));
|
|
259
259
|
});
|
|
260
260
|
var ItemContent = /*#__PURE__*/memo(function (_ref6) {
|
|
@@ -272,7 +272,9 @@ var ItemContent = /*#__PURE__*/memo(function (_ref6) {
|
|
|
272
272
|
css: itemTitle
|
|
273
273
|
}, title), jsx("div", {
|
|
274
274
|
css: itemAfter
|
|
275
|
-
}, keyshortcut && jsx(
|
|
275
|
+
}, keyshortcut && jsx("div", {
|
|
276
|
+
css: shortcutStyle
|
|
277
|
+
}, keyshortcut))), description && jsx("p", {
|
|
276
278
|
css: itemDescription
|
|
277
279
|
}, description)));
|
|
278
280
|
});
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
2
|
|
|
3
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
3
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
4
4
|
|
|
5
|
+
/** @jsx jsx */
|
|
5
6
|
import React, { memo } from 'react';
|
|
6
|
-
import
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
7
8
|
import { injectIntl } from 'react-intl-next';
|
|
8
9
|
import Textfield from '@atlaskit/textfield';
|
|
9
10
|
import SearchIcon from '@atlaskit/icon/glyph/search';
|
|
10
11
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
11
12
|
import { N200 } from '@atlaskit/theme/colors';
|
|
12
|
-
import {
|
|
13
|
+
import { shortcutStyle } from '../../styles';
|
|
13
14
|
import { GRID_SIZE, SEARCH_ITEM_HEIGHT_WIDTH } from '../constants';
|
|
14
15
|
import useFocus from '../hooks/use-focus';
|
|
15
16
|
import { Modes } from '../types';
|
|
@@ -33,24 +34,28 @@ function ElementSearch(_ref) {
|
|
|
33
34
|
|
|
34
35
|
var onBlur = function onBlur(e) {};
|
|
35
36
|
|
|
36
|
-
return
|
|
37
|
-
|
|
38
|
-
},
|
|
37
|
+
return jsx("div", {
|
|
38
|
+
css: [wrapper, mode === Modes.inline && wrapperInline]
|
|
39
|
+
}, jsx(Textfield, {
|
|
39
40
|
ref: ref,
|
|
40
41
|
onChange: onChange,
|
|
41
42
|
onClick: onClick,
|
|
42
43
|
onFocus: onFocus,
|
|
43
44
|
onBlur: onBlur,
|
|
44
|
-
elemBeforeInput:
|
|
45
|
+
elemBeforeInput: jsx("div", {
|
|
46
|
+
css: elementBeforeInput,
|
|
45
47
|
"data-testid": "element_search__element_before_input"
|
|
46
|
-
},
|
|
48
|
+
}, jsx(SearchIcon, {
|
|
47
49
|
size: "medium",
|
|
48
50
|
label: "Advanced search",
|
|
49
51
|
primaryColor: "inherit"
|
|
50
52
|
})),
|
|
51
|
-
elemAfterInput:
|
|
53
|
+
elemAfterInput: jsx("div", {
|
|
54
|
+
css: elementAfterInput,
|
|
52
55
|
"data-testid": "element_search__element_after_input"
|
|
53
|
-
},
|
|
56
|
+
}, jsx("div", {
|
|
57
|
+
css: styledShortcut
|
|
58
|
+
}, "\u23CE ", formatMessage(elementAfterInputMessage))),
|
|
54
59
|
placeholder: formatMessage(placeHolderMessage),
|
|
55
60
|
"aria-label": "search",
|
|
56
61
|
value: searchTerm
|
|
@@ -67,14 +72,11 @@ var placeHolderMessage = {
|
|
|
67
72
|
defaultMessage: 'Search',
|
|
68
73
|
description: 'Search field placeholder'
|
|
69
74
|
};
|
|
70
|
-
var
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}, Modes.inline ? 'revert' : 'visible', Modes.inline ? 3 : 2, Modes.inline ? relativeFontSizeToBase16(14) : relativeFontSizeToBase16(GRID_SIZE * 2), GRID_SIZE, GRID_SIZE);
|
|
76
|
-
var ElementBeforeInput = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin: 1px 6px 0 8px;\n color: ", ";\n\n // Custom SearchIcon style\n span,\n svg {\n height: 20px;\n width: 20px;\n }\n"])), N200);
|
|
77
|
-
var ElementAfterInput = styled.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: 0 8px;\n height: ", ";\n text-align: center;\n"])), SEARCH_ITEM_HEIGHT_WIDTH);
|
|
75
|
+
var styledShortcut = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n padding: ", "px ", "px;\n width: ", "px;\n"])), shortcutStyle, GRID_SIZE / 2, GRID_SIZE, GRID_SIZE * 6);
|
|
76
|
+
var wrapper = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n & > [data-ds--text-field--container] {\n height: ", "px;\n border-radius: ", "px;\n flex: 1 1 100%;\n overflow: visible;\n & > [data-ds--text-field--input] {\n margin-bottom: 3px;\n font-size: ", ";\n padding: ", "px 6px ", "px 0;\n }\n }\n"])), GRID_SIZE * 6, GRID_SIZE, relativeFontSizeToBase16(14), GRID_SIZE, GRID_SIZE);
|
|
77
|
+
var wrapperInline = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n & > [data-ds--text-field--container] {\n height: ", "px;\n flex: none;\n overflow: revert;\n }\n"])), GRID_SIZE * 5);
|
|
78
|
+
var elementBeforeInput = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin: 1px 6px 0 8px;\n color: ", ";\n\n // Custom SearchIcon style\n span,\n svg {\n height: 20px;\n width: 20px;\n }\n"])), N200);
|
|
79
|
+
var elementAfterInput = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin: 0 8px;\n height: ", ";\n text-align: center;\n"])), SEARCH_ITEM_HEIGHT_WIDTH);
|
|
78
80
|
var MemoizedElementSearchWithAnalytics = /*#__PURE__*/memo(withAnalyticsContext({
|
|
79
81
|
component: 'Searchbar'
|
|
80
82
|
})(injectIntl(ElementSearch)));
|
|
@@ -8,10 +8,11 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
8
8
|
|
|
9
9
|
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; } }
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
/** @jsx jsx */
|
|
12
|
+
import { jsx } from '@emotion/react';
|
|
12
13
|
import { PureComponent } from 'react';
|
|
13
14
|
import { Popup } from '@atlaskit/editor-common/ui';
|
|
14
|
-
import {
|
|
15
|
+
import { container } from './styles';
|
|
15
16
|
export { handlePositionCalculatedWith, getOffsetParent, getNearestNonTextNode } from './utils';
|
|
16
17
|
|
|
17
18
|
var FloatingToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -29,7 +30,6 @@ var FloatingToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
29
30
|
key: "render",
|
|
30
31
|
value: function render() {
|
|
31
32
|
var _this$props = this.props,
|
|
32
|
-
containerRef = _this$props.containerRef,
|
|
33
33
|
children = _this$props.children,
|
|
34
34
|
target = _this$props.target,
|
|
35
35
|
offset = _this$props.offset,
|
|
@@ -48,7 +48,7 @@ var FloatingToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
48
48
|
return null;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
return
|
|
51
|
+
return jsx(Popup, {
|
|
52
52
|
alignX: alignX,
|
|
53
53
|
alignY: alignY,
|
|
54
54
|
target: target,
|
|
@@ -59,10 +59,10 @@ var FloatingToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
59
59
|
fitWidth: fitWidth,
|
|
60
60
|
fitHeight: fitHeight,
|
|
61
61
|
onPositionCalculated: onPositionCalculated
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
}, jsx("div", {
|
|
63
|
+
css: container(fitHeight),
|
|
64
|
+
"data-testid": "popup-container",
|
|
65
|
+
className: className
|
|
66
66
|
}, children));
|
|
67
67
|
}
|
|
68
68
|
}]);
|
|
@@ -2,11 +2,10 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2;
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import { css } from '@emotion/react';
|
|
6
6
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
7
7
|
import { N0 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { dropShadow } from '../styles';
|
|
9
|
-
export var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
});
|
|
9
|
+
export var container = function container(height) {
|
|
10
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border-radius: ", "px;\n ", "\n display: flex;\n align-items: center;\n box-sizing: border-box;\n padding: 4px 8px;\n background-color: ", ";\n ", ";\n"])), borderRadius(), dropShadow, N0, height ? css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: ", "px;\n "])), height) : '');
|
|
11
|
+
};
|
|
@@ -7,14 +7,15 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
8
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
9
9
|
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
11
11
|
|
|
12
12
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
13
13
|
|
|
14
14
|
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; } }
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
import
|
|
16
|
+
/** @jsx jsx */
|
|
17
|
+
import React, { Fragment } from 'react';
|
|
18
|
+
import { css, jsx } from '@emotion/react'; // AFP-2532 TODO: Fix automatic suppressions below
|
|
18
19
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
19
20
|
|
|
20
21
|
import { fontSizeSmall } from '@atlaskit/theme';
|
|
@@ -23,13 +24,12 @@ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
|
23
24
|
import { getCorrectAltByIconUrl } from './listItemAlts';
|
|
24
25
|
import { transformTimeStamp } from './transformTimeStamp';
|
|
25
26
|
import { injectIntl } from 'react-intl-next';
|
|
26
|
-
export var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
var
|
|
30
|
-
export var
|
|
31
|
-
|
|
32
|
-
var Icon = styled.span(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n min-width: 16px;\n margin-top: 3px;\n margin-right: 12px;\n\n img {\n max-width: 16px;\n }\n"])));
|
|
27
|
+
export var container = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: transparent;\n padding: 8px 12px;\n cursor: pointer;\n display: flex;\n margin-top: 0;\n"])));
|
|
28
|
+
export var containerSelected = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n"])), N20);
|
|
29
|
+
var nameWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n overflow: hidden;\n"])));
|
|
30
|
+
export var nameStyle = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n color: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n line-height: 20px;\n"])), N800);
|
|
31
|
+
export var containerName = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n color: ", ";\n line-height: 14px;\n font-size: ", ";\n"])), N300, relativeFontSizeToBase16(fontSizeSmall()));
|
|
32
|
+
var iconStyle = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n min-width: 16px;\n margin-top: 3px;\n margin-right: 12px;\n\n img {\n max-width: 16px;\n }\n"])));
|
|
33
33
|
|
|
34
34
|
var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
35
35
|
_inherits(LinkSearchListItem, _React$PureComponent);
|
|
@@ -90,11 +90,15 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
90
90
|
intl = _this$props5.intl;
|
|
91
91
|
|
|
92
92
|
if (icon) {
|
|
93
|
-
return
|
|
93
|
+
return jsx("span", {
|
|
94
|
+
css: iconStyle
|
|
95
|
+
}, icon);
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
if (iconUrl) {
|
|
97
|
-
return
|
|
99
|
+
return jsx("span", {
|
|
100
|
+
css: iconStyle
|
|
101
|
+
}, jsx("img", {
|
|
98
102
|
src: iconUrl,
|
|
99
103
|
alt: getCorrectAltByIconUrl(iconUrl, intl)
|
|
100
104
|
}));
|
|
@@ -109,7 +113,7 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
109
113
|
item = _this$props6.item,
|
|
110
114
|
intl = _this$props6.intl;
|
|
111
115
|
var date = transformTimeStamp(intl, item.lastViewedDate, item.lastUpdatedDate);
|
|
112
|
-
return date &&
|
|
116
|
+
return date && jsx(Fragment, null, "\xA0 \u2022", jsx("span", {
|
|
113
117
|
className: "link-search-timestamp",
|
|
114
118
|
"data-test-id": "link-search-timestamp"
|
|
115
119
|
}, "\xA0 ", date.pageAction, " ", date.dateString, " ", date.timeSince || ''));
|
|
@@ -122,17 +126,24 @@ var LinkSearchListItem = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
122
126
|
selected = _this$props7.selected,
|
|
123
127
|
id = _this$props7.id,
|
|
124
128
|
role = _this$props7.role;
|
|
125
|
-
return
|
|
129
|
+
return jsx("li", {
|
|
130
|
+
css: [container, selected && containerSelected],
|
|
126
131
|
role: role,
|
|
127
132
|
id: id,
|
|
128
133
|
"aria-selected": selected,
|
|
129
134
|
"data-testid": "link-search-list-item",
|
|
130
|
-
selected: selected,
|
|
131
135
|
onMouseMove: this.handleMouseMove,
|
|
132
136
|
onMouseEnter: this.handleMouseEnter,
|
|
133
137
|
onMouseLeave: this.handleMouseLeave,
|
|
134
138
|
onClick: this.handleSelect
|
|
135
|
-
}, this.renderIcon(),
|
|
139
|
+
}, this.renderIcon(), jsx("span", {
|
|
140
|
+
css: nameWrapper
|
|
141
|
+
}, jsx("div", {
|
|
142
|
+
css: nameStyle
|
|
143
|
+
}, item.name), jsx("div", {
|
|
144
|
+
"data-testid": "link-search-list-item-container",
|
|
145
|
+
css: containerName
|
|
146
|
+
}, item.container, this.renderTimeStamp())));
|
|
136
147
|
}
|
|
137
148
|
}]);
|
|
138
149
|
|
|
@@ -2,13 +2,10 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3;
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import { css } from '@emotion/react';
|
|
6
6
|
export var RECENT_SEARCH_WIDTH_IN_PX = 420;
|
|
7
7
|
export var RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX = 360;
|
|
8
8
|
export var RECENT_SEARCH_HEIGHT_IN_PX = 360;
|
|
9
|
-
export var
|
|
10
|
-
export var
|
|
11
|
-
export var
|
|
12
|
-
var provider = _ref.provider;
|
|
13
|
-
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", "px;\n "])), provider ? RECENT_SEARCH_WIDTH_IN_PX : RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX);
|
|
14
|
-
});
|
|
9
|
+
export var inputWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n line-height: 0;\n padding: 5px 0;\n align-items: center;\n"])));
|
|
10
|
+
export var container = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n overflow: auto;\n padding: 0;\n\n width: ", "px;\n line-height: initial;\n"])), RECENT_SEARCH_WIDTH_WITHOUT_ITEMS_IN_PX);
|
|
11
|
+
export var containerWithProvider = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", "px;\n"])), RECENT_SEARCH_WIDTH_IN_PX);
|
|
@@ -11,9 +11,10 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
11
11
|
|
|
12
12
|
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; } }
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
/** @jsx jsx */
|
|
15
|
+
import { jsx } from '@emotion/react';
|
|
15
16
|
import { PureComponent } from 'react';
|
|
16
|
-
import {
|
|
17
|
+
import { panelTextInput, panelTextInputWithCustomWidth } from './styles';
|
|
17
18
|
import { browser } from '@atlaskit/editor-common/utils';
|
|
18
19
|
var KeyZCode = 90;
|
|
19
20
|
var KeyYCode = 89;
|
|
@@ -137,7 +138,8 @@ var PanelTextInput = /*#__PURE__*/function (_PureComponent) {
|
|
|
137
138
|
ariaAutoComplete = _this$props2.ariaAutoComplete,
|
|
138
139
|
role = _this$props2.role;
|
|
139
140
|
var value = this.state.value;
|
|
140
|
-
return
|
|
141
|
+
return jsx("input", {
|
|
142
|
+
css: [panelTextInput, width !== undefined && panelTextInputWithCustomWidth(width)],
|
|
141
143
|
role: role,
|
|
142
144
|
"aria-autocomplete": ariaAutoComplete ? 'list' : undefined,
|
|
143
145
|
"aria-expanded": ariaExpanded,
|
|
@@ -152,8 +154,7 @@ var PanelTextInput = /*#__PURE__*/function (_PureComponent) {
|
|
|
152
154
|
onKeyDown: this.handleKeydown,
|
|
153
155
|
onMouseDown: this.onMouseDown,
|
|
154
156
|
onBlur: this.onBlur,
|
|
155
|
-
|
|
156
|
-
width: width,
|
|
157
|
+
ref: this.handleRef,
|
|
157
158
|
maxLength: maxLength,
|
|
158
159
|
"aria-label": ariaLabel
|
|
159
160
|
});
|