@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,6 +13,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
17
|
+
|
|
16
18
|
var _bold = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/bold"));
|
|
17
19
|
|
|
18
20
|
var _italic = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/italic"));
|
|
@@ -52,7 +54,7 @@ var IconButtons = {
|
|
|
52
54
|
message: _toolbarMessages.toolbarMessages.bold,
|
|
53
55
|
tooltipKeymap: _keymaps.toggleBold,
|
|
54
56
|
component: function component() {
|
|
55
|
-
return
|
|
57
|
+
return (0, _react2.jsx)(_bold.default, {
|
|
56
58
|
label: ""
|
|
57
59
|
});
|
|
58
60
|
}
|
|
@@ -63,7 +65,7 @@ var IconButtons = {
|
|
|
63
65
|
message: _toolbarMessages.toolbarMessages.italic,
|
|
64
66
|
tooltipKeymap: _keymaps.toggleItalic,
|
|
65
67
|
component: function component() {
|
|
66
|
-
return
|
|
68
|
+
return (0, _react2.jsx)(_italic.default, {
|
|
67
69
|
label: ""
|
|
68
70
|
});
|
|
69
71
|
}
|
|
@@ -110,11 +112,13 @@ var getIcon = function getIcon(_ref) {
|
|
|
110
112
|
key: iconType,
|
|
111
113
|
command: icon.command,
|
|
112
114
|
iconElement: icon.component ? icon.component() : undefined,
|
|
113
|
-
tooltipElement: tooltipKeymap ?
|
|
115
|
+
tooltipElement: tooltipKeymap ? (0, _react2.jsx)(_keymaps.ToolTipContent, {
|
|
114
116
|
description: content,
|
|
115
117
|
keymap: tooltipKeymap
|
|
116
118
|
}) : undefined,
|
|
117
|
-
elemAfter: tooltipKeymap ?
|
|
119
|
+
elemAfter: tooltipKeymap ? (0, _react2.jsx)("div", {
|
|
120
|
+
css: _styles.shortcutStyle
|
|
121
|
+
}, (0, _keymaps.tooltip)(tooltipKeymap)) : undefined,
|
|
118
122
|
value: {
|
|
119
123
|
name: iconType
|
|
120
124
|
},
|
|
@@ -25,6 +25,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
25
25
|
|
|
26
26
|
var _react = _interopRequireWildcard(require("react"));
|
|
27
27
|
|
|
28
|
+
var _react2 = require("@emotion/react");
|
|
29
|
+
|
|
28
30
|
var _reactIntlNext = require("react-intl-next");
|
|
29
31
|
|
|
30
32
|
var _styles = require("../../../../ui/styles");
|
|
@@ -161,25 +163,27 @@ var ToolbarFormatting = function ToolbarFormatting(_ref) {
|
|
|
161
163
|
setMessage(screenReaderMessage);
|
|
162
164
|
}
|
|
163
165
|
}, [screenReaderMessage]);
|
|
164
|
-
return
|
|
165
|
-
|
|
166
|
-
}, message &&
|
|
166
|
+
return (0, _react2.jsx)("span", {
|
|
167
|
+
css: _styles.buttonGroupStyle
|
|
168
|
+
}, message && (0, _react2.jsx)(_announcer.default, {
|
|
167
169
|
ariaLive: "assertive",
|
|
168
170
|
text: message,
|
|
169
171
|
ariaRelevant: "additions",
|
|
170
172
|
delay: 250
|
|
171
|
-
}),
|
|
173
|
+
}), (0, _react2.jsx)(_singleToolbarButtons.SingleToolbarButtons, {
|
|
172
174
|
items: singleItems,
|
|
173
175
|
editorView: editorView,
|
|
174
176
|
isReducedSpacing: isReducedSpacing
|
|
175
|
-
}),
|
|
177
|
+
}), (0, _react2.jsx)("span", {
|
|
178
|
+
css: _styles.wrapperStyle
|
|
179
|
+
}, isToolbarDisabled ? (0, _react2.jsx)("div", null, (0, _react2.jsx)(_moreButton.MoreButton, {
|
|
176
180
|
label: moreFormattingButtonLabel,
|
|
177
181
|
isReducedSpacing: isReducedSpacing,
|
|
178
182
|
isDisabled: true,
|
|
179
183
|
isSelected: false,
|
|
180
184
|
"aria-expanded": undefined,
|
|
181
185
|
"aria-pressed": undefined
|
|
182
|
-
})) :
|
|
186
|
+
})) : (0, _react2.jsx)(_dropdownMenu.FormattingTextDropdownMenu, {
|
|
183
187
|
popupsMountPoint: popupsMountPoint,
|
|
184
188
|
popupsBoundariesElement: popupsBoundariesElement,
|
|
185
189
|
popupsScrollableElement: popupsScrollableElement,
|
|
@@ -188,7 +192,9 @@ var ToolbarFormatting = function ToolbarFormatting(_ref) {
|
|
|
188
192
|
moreButtonLabel: moreFormattingButtonLabel,
|
|
189
193
|
hasFormattingActive: hasFormattingActive,
|
|
190
194
|
items: items
|
|
191
|
-
}),
|
|
195
|
+
}), (0, _react2.jsx)("span", {
|
|
196
|
+
css: _styles.separatorStyles
|
|
197
|
+
})));
|
|
192
198
|
};
|
|
193
199
|
|
|
194
200
|
var Toolbar = /*#__PURE__*/function (_React$PureComponent) {
|
|
@@ -213,7 +219,7 @@ var Toolbar = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
213
219
|
isToolbarDisabled = _this$props.isToolbarDisabled,
|
|
214
220
|
shouldUseResponsiveToolbar = _this$props.shouldUseResponsiveToolbar,
|
|
215
221
|
intl = _this$props.intl;
|
|
216
|
-
return
|
|
222
|
+
return (0, _react2.jsx)(ToolbarFormatting, {
|
|
217
223
|
popupsMountPoint: popupsMountPoint,
|
|
218
224
|
popupsScrollableElement: popupsScrollableElement,
|
|
219
225
|
toolbarSize: toolbarSize,
|
|
@@ -9,12 +9,15 @@ exports.MoreButton = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
|
|
12
14
|
var _more = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/more"));
|
|
13
15
|
|
|
14
16
|
var _styles = require("../../../../ui/styles");
|
|
15
17
|
|
|
16
18
|
var _ToolbarButton = _interopRequireDefault(require("../../../../ui/ToolbarButton"));
|
|
17
19
|
|
|
20
|
+
/** @jsx jsx */
|
|
18
21
|
var MoreButton = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
19
22
|
var label = _ref.label,
|
|
20
23
|
ariaExpanded = _ref['aria-expanded'],
|
|
@@ -22,13 +25,15 @@ var MoreButton = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
22
25
|
isSelected = _ref.isSelected,
|
|
23
26
|
isDisabled = _ref.isDisabled,
|
|
24
27
|
onClick = _ref.onClick;
|
|
25
|
-
return
|
|
28
|
+
return (0, _react2.jsx)(_ToolbarButton.default, {
|
|
26
29
|
disabled: isDisabled,
|
|
27
30
|
selected: isSelected,
|
|
28
31
|
onClick: onClick,
|
|
29
32
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
30
33
|
title: label,
|
|
31
|
-
iconBefore:
|
|
34
|
+
iconBefore: (0, _react2.jsx)("div", {
|
|
35
|
+
css: _styles.triggerWrapperStyles
|
|
36
|
+
}, (0, _react2.jsx)(_more.default, {
|
|
32
37
|
label: ""
|
|
33
38
|
})),
|
|
34
39
|
"aria-expanded": ariaExpanded,
|
|
@@ -11,6 +11,8 @@ exports.SingleToolbarButtons = void 0;
|
|
|
11
11
|
|
|
12
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
13
|
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
|
+
|
|
14
16
|
var _styles = require("../../../../ui/styles");
|
|
15
17
|
|
|
16
18
|
var _ToolbarButton = _interopRequireDefault(require("../../../../ui/ToolbarButton"));
|
|
@@ -19,6 +21,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
19
21
|
|
|
20
22
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
23
|
|
|
24
|
+
/** @jsx jsx */
|
|
22
25
|
var SingleToolbarButtons = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
23
26
|
var items = _ref.items,
|
|
24
27
|
isReducedSpacing = _ref.isReducedSpacing,
|
|
@@ -29,10 +32,10 @@ var SingleToolbarButtons = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
29
32
|
return false;
|
|
30
33
|
};
|
|
31
34
|
}, [editorView.state, editorView.dispatch]);
|
|
32
|
-
return
|
|
33
|
-
|
|
35
|
+
return (0, _react2.jsx)("span", {
|
|
36
|
+
css: _styles.buttonGroupStyle
|
|
34
37
|
}, items.map(function (item) {
|
|
35
|
-
return
|
|
38
|
+
return (0, _react2.jsx)(_ToolbarButton.default, {
|
|
36
39
|
key: item.key,
|
|
37
40
|
buttonId: item.buttonId,
|
|
38
41
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
@@ -13,7 +13,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
var _w3cKeyname = require("w3c-keyname");
|
|
19
19
|
|
|
@@ -29,7 +29,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
29
29
|
|
|
30
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var querySpan = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n outline: none;\n"])));
|
|
33
33
|
|
|
34
34
|
var isNavigationKey = function isNavigationKey(event) {
|
|
35
35
|
return ['Enter', 'Tab', 'ArrowDown', 'ArrowUp'].includes(event.key);
|
|
@@ -326,9 +326,16 @@ var InputQuery = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
}, [forceFocus, reopenQuery]);
|
|
329
|
-
|
|
329
|
+
/**
|
|
330
|
+
When we migrated to emotion from styled component, we started getting this error.
|
|
331
|
+
jsx-a11y/interactive-supports-focus
|
|
332
|
+
Task added in https://product-fabric.atlassian.net/wiki/spaces/E/pages/3182068181/Potential+improvements#Moderate-changes.
|
|
333
|
+
*/
|
|
334
|
+
|
|
335
|
+
return (0, _react2.jsx)(_react.Fragment, null, triggerQueryPrefix, (0, _react2.jsx)("span", {
|
|
336
|
+
css: querySpan,
|
|
330
337
|
contentEditable: true,
|
|
331
|
-
|
|
338
|
+
ref: ref,
|
|
332
339
|
onKeyUp: onKeyUp,
|
|
333
340
|
onClick: onClick,
|
|
334
341
|
role: "textbox",
|
|
@@ -7,7 +7,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", {
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
|
-
exports.itemTheme = exports.
|
|
10
|
+
exports.itemTheme = exports.itemIcon = exports.TypeAheadListItem = exports.ITEM_PADDING = exports.ICON_WIDTH = exports.ICON_HEIGHT = void 0;
|
|
11
11
|
|
|
12
12
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
13
13
|
|
|
@@ -15,6 +15,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
15
15
|
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
|
+
|
|
18
20
|
var _colors = require("@atlaskit/theme/colors");
|
|
19
21
|
|
|
20
22
|
var _components = require("@atlaskit/theme/components");
|
|
@@ -25,8 +27,6 @@ var _item = _interopRequireWildcard(require("@atlaskit/item"));
|
|
|
25
27
|
|
|
26
28
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
27
29
|
|
|
28
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
29
|
-
|
|
30
30
|
var _fallback = _interopRequireDefault(require("../../quick-insert/assets/fallback"));
|
|
31
31
|
|
|
32
32
|
var _styles = require("../../../ui/styles");
|
|
@@ -83,24 +83,18 @@ var itemTheme = (0, _defineProperty2.default)({}, _item.itemThemeNamespace, {
|
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
exports.itemTheme = itemTheme;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
var ItemBody = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n line-height: 1.4;\n"])));
|
|
92
|
-
|
|
93
|
-
var ItemText = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n white-space: initial;\n .item-description {\n font-size: ", ";\n color: ", ";\n margin-top: 4px;\n }\n"])), (0, _editorSharedStyles.relativeFontSizeToBase16)(11.67), _colors.N200);
|
|
94
|
-
|
|
95
|
-
var ItemAfter = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n flex: 0 0 auto;\n"])));
|
|
96
|
-
|
|
86
|
+
var itemIcon = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: ", "px;\n height: ", "px;\n overflow: hidden;\n border: 1px solid rgba(223, 225, 229, 0.5); /* 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, (0, _constants.borderRadius)(), ICON_WIDTH, ICON_HEIGHT);
|
|
87
|
+
exports.itemIcon = itemIcon;
|
|
88
|
+
var itemBody = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n justify-content: space-between;\n line-height: 1.4;\n"])));
|
|
89
|
+
var itemText = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n white-space: initial;\n .item-description {\n font-size: ", ";\n color: ", ";\n margin-top: 4px;\n }\n"])), (0, _editorSharedStyles.relativeFontSizeToBase16)(11.67), _colors.N200);
|
|
90
|
+
var itemAfter = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n flex: 0 0 auto;\n"])));
|
|
97
91
|
var hidden = {
|
|
98
92
|
overflow: 'hidden'
|
|
99
93
|
};
|
|
100
94
|
|
|
101
95
|
var FallbackIcon = /*#__PURE__*/_react.default.memo(function (_ref) {
|
|
102
96
|
var label = _ref.label;
|
|
103
|
-
return
|
|
97
|
+
return (0, _react2.jsx)(_fallback.default, null);
|
|
104
98
|
});
|
|
105
99
|
|
|
106
100
|
var noop = function noop() {};
|
|
@@ -136,7 +130,9 @@ var TypeAheadListItem = function TypeAheadListItem(_ref2) {
|
|
|
136
130
|
title = item.title,
|
|
137
131
|
customRenderItem = item.render;
|
|
138
132
|
var elementIcon = (0, _react.useMemo)(function () {
|
|
139
|
-
return
|
|
133
|
+
return (0, _react2.jsx)("div", {
|
|
134
|
+
css: itemIcon
|
|
135
|
+
}, icon ? icon() : (0, _react2.jsx)(FallbackIcon, {
|
|
140
136
|
label: title
|
|
141
137
|
}));
|
|
142
138
|
}, [icon, title]);
|
|
@@ -149,14 +145,14 @@ var TypeAheadListItem = function TypeAheadListItem(_ref2) {
|
|
|
149
145
|
}
|
|
150
146
|
|
|
151
147
|
var Comp = customRenderItem;
|
|
152
|
-
return
|
|
148
|
+
return (0, _react2.jsx)("div", {
|
|
153
149
|
"aria-selected": isSelected,
|
|
154
150
|
"aria-label": title,
|
|
155
151
|
role: "option",
|
|
156
152
|
tabIndex: 0,
|
|
157
153
|
style: hidden,
|
|
158
154
|
onMouseMove: onMouseMove
|
|
159
|
-
},
|
|
155
|
+
}, (0, _react2.jsx)(Comp, {
|
|
160
156
|
onClick: insertSelectedItem,
|
|
161
157
|
isSelected: isSelected,
|
|
162
158
|
onHover: noop
|
|
@@ -167,7 +163,7 @@ var TypeAheadListItem = function TypeAheadListItem(_ref2) {
|
|
|
167
163
|
return customItem;
|
|
168
164
|
}
|
|
169
165
|
|
|
170
|
-
return
|
|
166
|
+
return (0, _react2.jsx)(_item.default, {
|
|
171
167
|
onClick: insertSelectedItem,
|
|
172
168
|
onMouseMove: onMouseMove,
|
|
173
169
|
elemBefore: elementIcon,
|
|
@@ -176,11 +172,19 @@ var TypeAheadListItem = function TypeAheadListItem(_ref2) {
|
|
|
176
172
|
"aria-label": item.title,
|
|
177
173
|
role: "option",
|
|
178
174
|
theme: itemTheme
|
|
179
|
-
},
|
|
175
|
+
}, (0, _react2.jsx)("div", {
|
|
176
|
+
css: itemBody
|
|
177
|
+
}, (0, _react2.jsx)("div", {
|
|
178
|
+
css: itemText
|
|
179
|
+
}, (0, _react2.jsx)("div", {
|
|
180
180
|
className: "item-title"
|
|
181
|
-
}, item.title), item.description &&
|
|
181
|
+
}, item.title), item.description && (0, _react2.jsx)("div", {
|
|
182
182
|
className: "item-description"
|
|
183
|
-
}, item.description)),
|
|
183
|
+
}, item.description)), (0, _react2.jsx)("div", {
|
|
184
|
+
css: itemAfter
|
|
185
|
+
}, item.keyshortcut && (0, _react2.jsx)("div", {
|
|
186
|
+
css: _styles.shortcutStyle
|
|
187
|
+
}, item.keyshortcut))));
|
|
184
188
|
};
|
|
185
189
|
|
|
186
190
|
exports.TypeAheadListItem = TypeAheadListItem;
|
|
@@ -13,7 +13,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
19
19
|
|
|
@@ -35,7 +35,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
|
|
|
35
35
|
|
|
36
36
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var typeAheadContent = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n border-radius: ", "px;\n box-shadow: 0 0 1px ", ", 0 4px 8px -2px ", ";\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"])), _colors.N0, (0, _constants.borderRadius)(), _colors.N60A, _colors.N50A, (0, _constants.gridSize)() / 2);
|
|
39
39
|
|
|
40
40
|
var Highlight = function Highlight(_ref) {
|
|
41
41
|
var state = _ref.state,
|
|
@@ -115,7 +115,7 @@ var TypeAheadPopup = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
115
115
|
// we need to send the event again
|
|
116
116
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
117
117
|
triggerHandler]);
|
|
118
|
-
return
|
|
118
|
+
return (0, _react2.jsx)(_ui.Popup, {
|
|
119
119
|
zIndex: _editorSharedStyles.akEditorFloatingDialogZIndex,
|
|
120
120
|
target: anchorElement,
|
|
121
121
|
mountTo: popupsMountPoint,
|
|
@@ -124,13 +124,14 @@ var TypeAheadPopup = /*#__PURE__*/_react.default.memo(function (props) {
|
|
|
124
124
|
fitHeight: 300,
|
|
125
125
|
fitWidth: 340,
|
|
126
126
|
offset: OFFSET
|
|
127
|
-
},
|
|
127
|
+
}, (0, _react2.jsx)("div", {
|
|
128
|
+
css: typeAheadContent,
|
|
128
129
|
tabIndex: 0,
|
|
129
130
|
className: _constants2.TYPE_AHEAD_POPUP_CONTENT_CLASS
|
|
130
|
-
},
|
|
131
|
+
}, (0, _react2.jsx)(Highlight, {
|
|
131
132
|
state: editorView.state,
|
|
132
133
|
triggerHandler: triggerHandler
|
|
133
|
-
}),
|
|
134
|
+
}), (0, _react2.jsx)(_TypeAheadList.TypeAheadList, {
|
|
134
135
|
items: items,
|
|
135
136
|
selectedIndex: selectedIndex,
|
|
136
137
|
onItemHover: setSelectedItem,
|
|
@@ -19,7 +19,9 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
19
19
|
|
|
20
20
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
21
21
|
|
|
22
|
-
var _react =
|
|
22
|
+
var _react = require("react");
|
|
23
|
+
|
|
24
|
+
var _react2 = require("@emotion/react");
|
|
23
25
|
|
|
24
26
|
var _reactIntlNext = require("react-intl-next");
|
|
25
27
|
|
|
@@ -108,37 +110,39 @@ var ToolbarUndoRedo = /*#__PURE__*/function (_PureComponent) {
|
|
|
108
110
|
var labelRedo = formatMessage(_messages.messages.redo);
|
|
109
111
|
var canUndo = historyState.canUndo,
|
|
110
112
|
canRedo = historyState.canRedo;
|
|
111
|
-
return
|
|
112
|
-
|
|
113
|
-
},
|
|
113
|
+
return (0, _react2.jsx)("span", {
|
|
114
|
+
css: _styles.buttonGroupStyle
|
|
115
|
+
}, (0, _react2.jsx)(_ToolbarButton.default, {
|
|
114
116
|
buttonId: _ToolbarButton.TOOLBAR_BUTTON.UNDO,
|
|
115
117
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
116
118
|
onClick: handleUndo,
|
|
117
119
|
disabled: !canUndo || disabled,
|
|
118
120
|
"aria-label": labelUndo,
|
|
119
|
-
title:
|
|
121
|
+
title: (0, _react2.jsx)(_keymaps.ToolTipContent, {
|
|
120
122
|
description: labelUndo,
|
|
121
123
|
keymap: _keymaps.undo
|
|
122
124
|
}),
|
|
123
|
-
iconBefore:
|
|
125
|
+
iconBefore: (0, _react2.jsx)(_undo.default, {
|
|
124
126
|
label: ""
|
|
125
127
|
}),
|
|
126
128
|
testId: "ak-editor-toolbar-button-undo"
|
|
127
|
-
}),
|
|
129
|
+
}), (0, _react2.jsx)(_ToolbarButton.default, {
|
|
128
130
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
129
131
|
buttonId: _ToolbarButton.TOOLBAR_BUTTON.REDO,
|
|
130
132
|
onClick: handleRedo,
|
|
131
133
|
disabled: !canRedo || disabled,
|
|
132
|
-
title:
|
|
134
|
+
title: (0, _react2.jsx)(_keymaps.ToolTipContent, {
|
|
133
135
|
description: labelRedo,
|
|
134
136
|
keymap: _keymaps.redo
|
|
135
137
|
}),
|
|
136
|
-
iconBefore:
|
|
138
|
+
iconBefore: (0, _react2.jsx)(_redo.default, {
|
|
137
139
|
label: ""
|
|
138
140
|
}),
|
|
139
141
|
testId: "ak-editor-toolbar-button-redo",
|
|
140
142
|
"aria-label": labelRedo
|
|
141
|
-
}),
|
|
143
|
+
}), (0, _react2.jsx)("span", {
|
|
144
|
+
css: _styles.separatorStyles
|
|
145
|
+
}));
|
|
142
146
|
}
|
|
143
147
|
}]);
|
|
144
148
|
return ToolbarUndoRedo;
|
|
@@ -25,7 +25,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
25
25
|
|
|
26
26
|
var _react = _interopRequireDefault(require("react"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _react2 = require("@emotion/react");
|
|
29
29
|
|
|
30
30
|
var _clickAreaHelper = require("../click-area-helper");
|
|
31
31
|
|
|
@@ -35,9 +35,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
35
35
|
|
|
36
36
|
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; } }
|
|
37
37
|
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
ClickWrapper.displayName = 'ClickWrapper';
|
|
38
|
+
var clickWrapper = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n height: 100%;\n"])));
|
|
41
39
|
|
|
42
40
|
var ClickAreaBlock = /*#__PURE__*/function (_React$Component) {
|
|
43
41
|
(0, _inherits2.default)(ClickAreaBlock, _React$Component);
|
|
@@ -69,7 +67,9 @@ var ClickAreaBlock = /*#__PURE__*/function (_React$Component) {
|
|
|
69
67
|
(0, _createClass2.default)(ClickAreaBlock, [{
|
|
70
68
|
key: "render",
|
|
71
69
|
value: function render() {
|
|
72
|
-
return
|
|
70
|
+
return (0, _react2.jsx)("div", {
|
|
71
|
+
"data-testid": "click-wrapper",
|
|
72
|
+
css: clickWrapper,
|
|
73
73
|
onClick: this.handleClick
|
|
74
74
|
}, this.props.children);
|
|
75
75
|
}
|
|
@@ -25,7 +25,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
25
25
|
|
|
26
26
|
var _react = _interopRequireDefault(require("react"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _react2 = require("@emotion/react");
|
|
29
29
|
|
|
30
30
|
var _commands = require("../../../commands");
|
|
31
31
|
|
|
@@ -35,9 +35,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
35
35
|
|
|
36
36
|
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; } }
|
|
37
37
|
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
ClickArea.displayName = 'ClickArea';
|
|
38
|
+
var clickArea = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n"])));
|
|
41
39
|
|
|
42
40
|
var ClickAreaInline = /*#__PURE__*/function (_React$Component) {
|
|
43
41
|
(0, _inherits2.default)(ClickAreaInline, _React$Component);
|
|
@@ -70,7 +68,8 @@ var ClickAreaInline = /*#__PURE__*/function (_React$Component) {
|
|
|
70
68
|
(0, _createClass2.default)(ClickAreaInline, [{
|
|
71
69
|
key: "render",
|
|
72
70
|
value: function render() {
|
|
73
|
-
return
|
|
71
|
+
return (0, _react2.jsx)("div", {
|
|
72
|
+
css: clickArea,
|
|
74
73
|
onClick: this.handleClick
|
|
75
74
|
});
|
|
76
75
|
}
|
|
@@ -25,7 +25,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
25
25
|
|
|
26
26
|
var _react = _interopRequireDefault(require("react"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _react2 = require("@emotion/react");
|
|
29
29
|
|
|
30
30
|
var _clickAreaHelper = require("../click-area-helper");
|
|
31
31
|
|
|
@@ -40,11 +40,11 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
40
40
|
* clicks/taps within or below the content (e.g. if the content
|
|
41
41
|
* doesn't exceed the viewport, or whether it overflows it).
|
|
42
42
|
*/
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
var clickWrapper = function clickWrapper(_ref) {
|
|
44
|
+
var isExpanded = _ref.isExpanded,
|
|
45
|
+
minHeight = _ref.minHeight;
|
|
46
|
+
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 100%;\n ", ";\n"])), isExpanded && minHeight ? "min-height: ".concat(minHeight, "px") : '');
|
|
47
|
+
};
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* Click Area is responsible for improving UX by ensuring the user
|
|
@@ -101,13 +101,14 @@ var ClickAreaMobile = /*#__PURE__*/function (_React$Component) {
|
|
|
101
101
|
(0, _createClass2.default)(ClickAreaMobile, [{
|
|
102
102
|
key: "render",
|
|
103
103
|
value: function render() {
|
|
104
|
-
return
|
|
104
|
+
return (0, _react2.jsx)("div", {
|
|
105
|
+
css: clickWrapper({
|
|
106
|
+
isExpanded: this.props.isExpanded,
|
|
107
|
+
minHeight: this.props.minHeight
|
|
108
|
+
}),
|
|
105
109
|
className: "editor-click-wrapper",
|
|
106
|
-
minHeight: this.props.minHeight,
|
|
107
|
-
persistScrollGutter: this.props.persistScrollGutter,
|
|
108
110
|
onClick: this.handleClick,
|
|
109
|
-
|
|
110
|
-
isExpanded: this.props.isExpanded
|
|
111
|
+
ref: this.clickElementRef
|
|
111
112
|
}, this.props.children);
|
|
112
113
|
}
|
|
113
114
|
}]);
|
|
@@ -23,6 +23,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
23
23
|
|
|
24
24
|
var _react = _interopRequireDefault(require("react"));
|
|
25
25
|
|
|
26
|
+
var _react2 = require("@emotion/react");
|
|
27
|
+
|
|
26
28
|
var _styles = require("./styles");
|
|
27
29
|
|
|
28
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
@@ -72,7 +74,9 @@ var DropdownWrapper = /*#__PURE__*/function (_React$Component) {
|
|
|
72
74
|
});
|
|
73
75
|
});
|
|
74
76
|
|
|
75
|
-
return
|
|
77
|
+
return (0, _react2.jsx)("div", {
|
|
78
|
+
css: _styles.dropdown
|
|
79
|
+
}, children);
|
|
76
80
|
}
|
|
77
81
|
}]);
|
|
78
82
|
return DropdownWrapper;
|
|
@@ -5,11 +5,11 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.dropdown = void 0;
|
|
9
9
|
|
|
10
10
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _react = require("@emotion/react");
|
|
13
13
|
|
|
14
14
|
var _constants = require("@atlaskit/theme/constants");
|
|
15
15
|
|
|
@@ -17,6 +17,5 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
17
17
|
|
|
18
18
|
var _templateObject;
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
|
|
22
|
-
exports.Dropdown = Dropdown;
|
|
20
|
+
var dropdown = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: column;\n background: white;\n border-radius: ", "px;\n box-shadow: 0 4px 8px -2px ", ", 0 0 1px ", ";\n box-sizing: border-box;\n padding: 4px 0;\n"])), (0, _constants.borderRadius)(), _colors.N60A, _colors.N60A);
|
|
21
|
+
exports.dropdown = dropdown;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = void 0;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = require("@emotion/react");
|
|
11
9
|
|
|
12
10
|
var _styles = require("./styles");
|
|
13
11
|
|
|
12
|
+
/** @jsx jsx */
|
|
14
13
|
var DropdownItemWrapper = function DropdownItemWrapper(props) {
|
|
15
|
-
return
|
|
14
|
+
return (0, _react.jsx)("div", {
|
|
15
|
+
css: _styles.dropdownItem,
|
|
16
16
|
onClick: function onClick() {
|
|
17
17
|
return props.onClick && props.onClick({
|
|
18
18
|
actionOnClick: props.actionOnClick,
|
|
19
19
|
renderOnClick: props.renderOnClick
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
},
|
|
22
|
+
}, (0, _react.jsx)("span", null, props.icon), props.children);
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
var _default = DropdownItemWrapper;
|