@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
|
@@ -2,7 +2,6 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
4
4
|
|
|
5
|
-
import styled from 'styled-components';
|
|
6
5
|
import { css } from '@emotion/react';
|
|
7
6
|
import { themed } from '@atlaskit/theme/components';
|
|
8
7
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
@@ -13,11 +12,13 @@ export var widerLayoutClassName = 'wider-layout';
|
|
|
13
12
|
export var wrapperStyle = function wrapperStyle(theme, extensionWidth) {
|
|
14
13
|
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n &.without-frame {\n background: transparent;\n }\n cursor: pointer;\n width: 100%;\n\n .extension-overflow-wrapper:not(.with-body) {\n overflow-x: auto;\n }\n\n /* extension container breakout, only works on top level */\n .ProseMirror\n > ", "\n > [extensiontype]\n &.", ",\n .ProseMirror\n > [extensiontype]\n &.", " {\n width: ", ";\n margin-left: 50%;\n transform: translateX(-50%);\n }\n"])), wrapperDefault(theme), dataConsumerSelector, widerLayoutClassName, widerLayoutClassName, extensionWidth);
|
|
15
14
|
};
|
|
16
|
-
export var
|
|
17
|
-
export var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
export var header = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: ", "px ", "px ", "px;\n vertical-align: middle;\n\n &.with-children:not(.without-frame) {\n padding: 4px 8px 8px;\n }\n &.without-frame {\n padding: 0;\n }\n"])), padding / 2, padding / 2, padding / 4);
|
|
16
|
+
export var content = function content(theme) {
|
|
17
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: ", "px;\n background: ", ";\n color: ", ";\n border: 1px solid ", ";\n border-radius: ", "px;\n cursor: initial;\n"])), padding, themed({
|
|
18
|
+
light: 'white',
|
|
19
|
+
dark: DN30
|
|
20
|
+
})(theme), themed({
|
|
21
|
+
dark: DN900
|
|
22
|
+
})(theme), N30, borderRadius());
|
|
23
|
+
};
|
|
24
|
+
export var contentWrapper = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: 0 ", "px ", "px;\n"])), padding, padding);
|
|
@@ -8,14 +8,15 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
9
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
10
10
|
|
|
11
|
-
var _templateObject, _templateObject2;
|
|
11
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
12
12
|
|
|
13
13
|
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); }; }
|
|
14
14
|
|
|
15
15
|
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; } }
|
|
16
16
|
|
|
17
|
+
/** @jsx jsx */
|
|
17
18
|
import React from 'react';
|
|
18
|
-
import
|
|
19
|
+
import { css, jsx } from '@emotion/react';
|
|
19
20
|
import { defineMessages, injectIntl } from 'react-intl-next';
|
|
20
21
|
import EditorSearchIcon from '@atlaskit/icon/glyph/editor/search';
|
|
21
22
|
import { akEditorFloatingPanelZIndex, akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
@@ -24,10 +25,9 @@ import Dropdown from '../../../ui/Dropdown';
|
|
|
24
25
|
import FindReplace from './FindReplace';
|
|
25
26
|
import { TRIGGER_METHOD } from '../../analytics/types';
|
|
26
27
|
import { ToolTipContent, findKeymapByDescription } from '../../../keymaps';
|
|
27
|
-
var
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var Wrapper = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n"])));
|
|
28
|
+
var toolbarButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex: 1 1 auto;\n flex-grow: 0;\n justify-content: flex-end;\n align-items: center;\n padding: 0 8px;\n @media (max-width: ", "px) {\n justify-content: center;\n padding: 0;\n }\n"])), akEditorMobileMaxWidth);
|
|
29
|
+
var toolbarButtonWrapperFullWith = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n flex-grow: 1;\n"])));
|
|
30
|
+
var wrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n"])));
|
|
31
31
|
var messages = defineMessages({
|
|
32
32
|
findReplaceToolbarButton: {
|
|
33
33
|
id: 'fabric.editor.findReplaceToolbarButton',
|
|
@@ -105,9 +105,9 @@ var FindReplaceToolbarButton = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
105
105
|
takeFullWidth = _this$props.takeFullWidth;
|
|
106
106
|
var title = formatMessage(messages.findReplaceToolbarButton);
|
|
107
107
|
var stackBelowOtherEditorFloatingPanels = akEditorFloatingPanelZIndex - 1;
|
|
108
|
-
return
|
|
109
|
-
|
|
110
|
-
},
|
|
108
|
+
return jsx("div", {
|
|
109
|
+
css: [toolbarButtonWrapper, takeFullWidth && toolbarButtonWrapperFullWith]
|
|
110
|
+
}, jsx(Dropdown, {
|
|
111
111
|
mountTo: popupsMountPoint,
|
|
112
112
|
boundariesElement: popupsBoundariesElement,
|
|
113
113
|
scrollableElement: popupsScrollableElement,
|
|
@@ -121,22 +121,24 @@ var FindReplaceToolbarButton = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
121
121
|
},
|
|
122
122
|
fitWidth: 352,
|
|
123
123
|
zIndex: stackBelowOtherEditorFloatingPanels,
|
|
124
|
-
trigger:
|
|
124
|
+
trigger: jsx(ToolbarButton, {
|
|
125
125
|
buttonId: TOOLBAR_BUTTON.FIND_REPLACE,
|
|
126
126
|
spacing: isReducedSpacing ? 'none' : 'default',
|
|
127
127
|
selected: isActive,
|
|
128
|
-
title:
|
|
128
|
+
title: jsx(ToolTipContent, {
|
|
129
129
|
description: title,
|
|
130
130
|
keymap: findKeymapByDescription('Find')
|
|
131
131
|
}),
|
|
132
|
-
iconBefore:
|
|
132
|
+
iconBefore: jsx(EditorSearchIcon, {
|
|
133
133
|
label: title
|
|
134
134
|
}),
|
|
135
135
|
onClick: this.toggleOpen,
|
|
136
136
|
"aria-expanded": isActive,
|
|
137
137
|
"aria-haspopup": true
|
|
138
138
|
})
|
|
139
|
-
},
|
|
139
|
+
}, jsx("div", {
|
|
140
|
+
css: wrapper
|
|
141
|
+
}, jsx(FindReplace, _extends({
|
|
140
142
|
findText: findText,
|
|
141
143
|
replaceText: replaceText,
|
|
142
144
|
count: {
|
|
@@ -13,18 +13,23 @@ 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
|
+
/** @jsx jsx */
|
|
16
17
|
import React, { Component } from 'react';
|
|
17
|
-
import
|
|
18
|
+
import { css, jsx } from '@emotion/react';
|
|
18
19
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
19
20
|
import UiDropdown from '../../../ui/Dropdown';
|
|
20
21
|
import Button from './Button';
|
|
21
22
|
import DropdownMenu, { itemSpacing, menuItemDimensions } from './DropdownMenu';
|
|
22
|
-
var
|
|
23
|
-
var
|
|
23
|
+
var dropdownExpandContainer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin: 0px -4px;\n"])));
|
|
24
|
+
var iconGroup = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n"])));
|
|
24
25
|
|
|
25
26
|
var CompositeIcon = function CompositeIcon(_ref) {
|
|
26
27
|
var icon = _ref.icon;
|
|
27
|
-
return
|
|
28
|
+
return jsx("div", {
|
|
29
|
+
css: iconGroup
|
|
30
|
+
}, icon, jsx("span", {
|
|
31
|
+
css: dropdownExpandContainer
|
|
32
|
+
}, jsx(ExpandIcon, {
|
|
28
33
|
label: "Expand dropdown menu"
|
|
29
34
|
})));
|
|
30
35
|
};
|
|
@@ -50,7 +55,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
50
55
|
});
|
|
51
56
|
|
|
52
57
|
_defineProperty(_assertThisInitialized(_this), "renderArrayOptions", function (options) {
|
|
53
|
-
return
|
|
58
|
+
return jsx(DropdownMenu, {
|
|
54
59
|
hide: _this.hide,
|
|
55
60
|
dispatchCommand: _this.props.dispatchCommand,
|
|
56
61
|
items: options
|
|
@@ -91,10 +96,10 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
91
96
|
var trigger;
|
|
92
97
|
|
|
93
98
|
if (icon) {
|
|
94
|
-
var TriggerIcon = hideExpandIcon ? icon :
|
|
99
|
+
var TriggerIcon = hideExpandIcon ? icon : jsx(CompositeIcon, {
|
|
95
100
|
icon: icon
|
|
96
101
|
});
|
|
97
|
-
trigger =
|
|
102
|
+
trigger = jsx(Button, {
|
|
98
103
|
testId: buttonTestId,
|
|
99
104
|
title: title,
|
|
100
105
|
icon: TriggerIcon,
|
|
@@ -104,9 +109,11 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
104
109
|
tooltipContent: tooltip
|
|
105
110
|
});
|
|
106
111
|
} else {
|
|
107
|
-
trigger =
|
|
112
|
+
trigger = jsx(Button, {
|
|
108
113
|
testId: buttonTestId,
|
|
109
|
-
iconAfter:
|
|
114
|
+
iconAfter: jsx("span", {
|
|
115
|
+
css: dropdownExpandContainer
|
|
116
|
+
}, jsx(ExpandIcon, {
|
|
110
117
|
label: "Expand dropdown menu"
|
|
111
118
|
})),
|
|
112
119
|
onClick: this.toggleOpen,
|
|
@@ -124,7 +131,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
124
131
|
var fitTolerance = 10;
|
|
125
132
|
var fitWidth = Array.isArray(options) ? menuItemDimensions.width : options.width;
|
|
126
133
|
var fitHeight = Array.isArray(options) ? options.length * menuItemDimensions.height + itemSpacing * 2 : options.height;
|
|
127
|
-
return
|
|
134
|
+
return jsx(UiDropdown, {
|
|
128
135
|
mountTo: mountPoint,
|
|
129
136
|
boundariesElement: boundariesElement,
|
|
130
137
|
scrollableElement: scrollableElement,
|
|
@@ -12,9 +12,9 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
12
12
|
|
|
13
13
|
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; } }
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
/** @jsx jsx */
|
|
16
|
+
import { css, jsx } from '@emotion/react';
|
|
16
17
|
import { Component } from 'react';
|
|
17
|
-
import styled from 'styled-components';
|
|
18
18
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
19
19
|
import { B400 } from '@atlaskit/theme/colors'; // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
20
20
|
|
|
@@ -27,8 +27,8 @@ export var menuItemDimensions = {
|
|
|
27
27
|
width: 175,
|
|
28
28
|
height: 32
|
|
29
29
|
};
|
|
30
|
-
var
|
|
31
|
-
var
|
|
30
|
+
var spacer = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex: 1;\n padding: 8px;\n"])));
|
|
31
|
+
var menuContainer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-width: ", "px;\n\n // temporary solution before we migrated off dst/item\n & span[class^='ItemParts__Before'] {\n margin-right: 4px;\n }\n"])), menuItemDimensions.width);
|
|
32
32
|
var padding = gridSize();
|
|
33
33
|
export var itemSpacing = gridSize() / 2;
|
|
34
34
|
var editorItemTheme = {
|
|
@@ -70,10 +70,12 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
70
70
|
dispatchCommand = _this$props.dispatchCommand,
|
|
71
71
|
items = _this$props.items,
|
|
72
72
|
intl = _this$props.intl;
|
|
73
|
-
return
|
|
73
|
+
return jsx("div", {
|
|
74
|
+
css: menuContainer
|
|
75
|
+
}, items.filter(function (item) {
|
|
74
76
|
return !item.hidden;
|
|
75
77
|
}).map(function (item, idx) {
|
|
76
|
-
var itemContent =
|
|
78
|
+
var itemContent = jsx(Item, {
|
|
77
79
|
key: idx,
|
|
78
80
|
isCompact: true,
|
|
79
81
|
elemBefore: _this.renderSelected(item, intl),
|
|
@@ -93,7 +95,7 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
93
95
|
}, item.title);
|
|
94
96
|
|
|
95
97
|
if (item.tooltip) {
|
|
96
|
-
return
|
|
98
|
+
return jsx(Tooltip, {
|
|
97
99
|
key: idx,
|
|
98
100
|
content: item.tooltip
|
|
99
101
|
}, itemContent);
|
|
@@ -108,11 +110,13 @@ var Dropdown = /*#__PURE__*/function (_Component) {
|
|
|
108
110
|
var selected = item.selected;
|
|
109
111
|
|
|
110
112
|
if (selected !== undefined) {
|
|
111
|
-
return selected ?
|
|
113
|
+
return selected ? jsx(EditorDoneIcon, {
|
|
112
114
|
primaryColor: B400,
|
|
113
115
|
size: "small",
|
|
114
116
|
label: intl.formatMessage(messages.confirmModalOK)
|
|
115
|
-
}) :
|
|
117
|
+
}) : jsx("span", {
|
|
118
|
+
css: spacer
|
|
119
|
+
});
|
|
116
120
|
}
|
|
117
121
|
|
|
118
122
|
return;
|
|
@@ -3,8 +3,9 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
3
3
|
|
|
4
4
|
var _templateObject, _templateObject2;
|
|
5
5
|
|
|
6
|
+
/** @jsx jsx */
|
|
7
|
+
import { css, jsx } from '@emotion/react';
|
|
6
8
|
import React from 'react';
|
|
7
|
-
import styled from 'styled-components';
|
|
8
9
|
import Button from '@atlaskit/button';
|
|
9
10
|
import { WithProviders } from '@atlaskit/editor-common/provider-factory';
|
|
10
11
|
import { Popup, withOuterListeners } from '@atlaskit/editor-common/ui';
|
|
@@ -12,11 +13,11 @@ import { EmojiPicker } from '@atlaskit/emoji';
|
|
|
12
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
14
|
import EditorEmojiAddIcon from './EditorEmojiAddIcon'; // helps adjusts position of popup
|
|
14
15
|
|
|
15
|
-
var
|
|
16
|
+
var emojiPickerButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n position: relative;\n"]))); // helps to vertically align emoji picker
|
|
16
17
|
// both top and bottom margin should be 2px
|
|
17
18
|
// https://product-fabric.atlassian.net/browse/CETI-148
|
|
18
19
|
|
|
19
|
-
var
|
|
20
|
+
var emojiPickerWrapper = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-bottom: -12px;\n margin-top: -4px;\n"])));
|
|
20
21
|
export var EmojiPickerButton = function EmojiPickerButton(props) {
|
|
21
22
|
var buttonRef = React.useRef(null);
|
|
22
23
|
|
|
@@ -56,7 +57,7 @@ export var EmojiPickerButton = function EmojiPickerButton(props) {
|
|
|
56
57
|
return null;
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
return
|
|
60
|
+
return jsx(EmojiPickerWithListener, {
|
|
60
61
|
emojiProvider: providers.emojiProvider,
|
|
61
62
|
onSelection: updateEmoji,
|
|
62
63
|
onPickerRef: function onPickerRef() {},
|
|
@@ -69,13 +70,15 @@ export var EmojiPickerButton = function EmojiPickerButton(props) {
|
|
|
69
70
|
return;
|
|
70
71
|
}
|
|
71
72
|
|
|
72
|
-
return
|
|
73
|
+
return jsx(Popup, {
|
|
73
74
|
target: buttonRef.current,
|
|
74
75
|
mountTo: buttonRef.current.parentElement,
|
|
75
76
|
fitHeight: 350,
|
|
76
77
|
fitWidth: 350,
|
|
77
78
|
offset: [0, 10]
|
|
78
|
-
},
|
|
79
|
+
}, jsx("div", {
|
|
80
|
+
css: emojiPickerWrapper
|
|
81
|
+
}, jsx(WithProviders, {
|
|
79
82
|
providers: ['emojiProvider'],
|
|
80
83
|
providerFactory: props.providerFactory,
|
|
81
84
|
renderNode: renderPicker
|
|
@@ -83,10 +86,12 @@ export var EmojiPickerButton = function EmojiPickerButton(props) {
|
|
|
83
86
|
};
|
|
84
87
|
|
|
85
88
|
var title = props.title || '';
|
|
86
|
-
return
|
|
89
|
+
return jsx("div", {
|
|
90
|
+
css: emojiPickerButtonWrapper
|
|
91
|
+
}, jsx(Tooltip, {
|
|
87
92
|
content: title,
|
|
88
93
|
position: "top"
|
|
89
|
-
},
|
|
94
|
+
}, jsx(Button, {
|
|
90
95
|
appearance: 'subtle',
|
|
91
96
|
key: props.idx,
|
|
92
97
|
style: {
|
|
@@ -99,6 +104,6 @@ export var EmojiPickerButton = function EmojiPickerButton(props) {
|
|
|
99
104
|
onClick: togglePopup,
|
|
100
105
|
ref: buttonRef,
|
|
101
106
|
isSelected: props.isSelected,
|
|
102
|
-
iconBefore:
|
|
107
|
+
iconBefore: jsx(EditorEmojiAddIcon, null)
|
|
103
108
|
})), renderPopup());
|
|
104
109
|
};
|
|
@@ -10,9 +10,11 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
10
10
|
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
12
|
|
|
13
|
+
/** @jsx jsx */
|
|
13
14
|
import React from 'react';
|
|
15
|
+
import { jsx } from '@emotion/react';
|
|
14
16
|
import { Component } from 'react';
|
|
15
|
-
import {
|
|
17
|
+
import { panelTextInput } from '../../../ui/PanelTextInput/styles';
|
|
16
18
|
|
|
17
19
|
var TextField = /*#__PURE__*/function (_Component) {
|
|
18
20
|
_inherits(TextField, _Component);
|
|
@@ -67,9 +69,10 @@ var TextField = /*#__PURE__*/function (_Component) {
|
|
|
67
69
|
key: "render",
|
|
68
70
|
value: function render() {
|
|
69
71
|
var placeholder = this.props.placeholder;
|
|
70
|
-
return
|
|
72
|
+
return jsx("form", {
|
|
71
73
|
onSubmit: this.handleSubmit
|
|
72
|
-
},
|
|
74
|
+
}, jsx("input", {
|
|
75
|
+
css: panelTextInput,
|
|
73
76
|
value: this.state.text,
|
|
74
77
|
onChange: this.handleChange,
|
|
75
78
|
placeholder: placeholder,
|
|
@@ -2,12 +2,13 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
|
|
3
3
|
var _templateObject;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
import
|
|
5
|
+
/** @jsx jsx */
|
|
6
|
+
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { N30 } from '@atlaskit/theme/colors';
|
|
8
|
-
var
|
|
8
|
+
var separator = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n width: 1px;\n height: 20px;\n margin: 0 4px;\n align-self: center;\n"])), N30);
|
|
9
9
|
export default (function () {
|
|
10
|
-
return
|
|
10
|
+
return jsx("div", {
|
|
11
|
+
css: separator,
|
|
11
12
|
className: "separator"
|
|
12
13
|
});
|
|
13
14
|
});
|
|
@@ -5,15 +5,16 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
|
|
|
5
5
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
6
6
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
7
7
|
|
|
8
|
-
var _templateObject;
|
|
8
|
+
var _templateObject, _templateObject2;
|
|
9
9
|
|
|
10
10
|
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); }; }
|
|
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
|
+
/** @jsx jsx */
|
|
14
15
|
import React from 'react';
|
|
16
|
+
import { css, jsx } from '@emotion/react';
|
|
15
17
|
import { Component } from 'react';
|
|
16
|
-
import styled from 'styled-components';
|
|
17
18
|
import ButtonGroup from '@atlaskit/button/button-group';
|
|
18
19
|
import { themed } from '@atlaskit/theme/components';
|
|
19
20
|
import { borderRadius, gridSize } from '@atlaskit/theme/constants';
|
|
@@ -33,12 +34,15 @@ import Announcer from '../../../utils/announcer/announcer';
|
|
|
33
34
|
import { injectIntl } from 'react-intl-next';
|
|
34
35
|
import messages from './messages';
|
|
35
36
|
var akGridSize = gridSize();
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
});
|
|
37
|
+
|
|
38
|
+
var toolbarContainer = function toolbarContainer(theme) {
|
|
39
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: 0 0 1px rgba(9, 30, 66, 0.31),\n 0 4px 8px -2px rgba(9, 30, 66, 0.25);\n padding: ", "px ", "px;\n display: flex;\n line-height: 1;\n box-sizing: border-box;\n\n & > div {\n align-items: center;\n }\n"])), themed({
|
|
40
|
+
light: 'white',
|
|
41
|
+
dark: DN70
|
|
42
|
+
})(theme), borderRadius(), akGridSize / 2, akGridSize);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var toolbarContainerLeftPadding = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding-left: ", "px;\n"])), akGridSize / 2);
|
|
42
46
|
|
|
43
47
|
function makeSameType(_a, _b) {
|
|
44
48
|
return true;
|
|
@@ -149,14 +153,18 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
149
153
|
|
|
150
154
|
|
|
151
155
|
var firstElementIsSelect = items[0].type === 'select';
|
|
152
|
-
return
|
|
156
|
+
return jsx("div", {
|
|
157
|
+
css: function css(theme) {
|
|
158
|
+
return [toolbarContainer({
|
|
159
|
+
theme: theme
|
|
160
|
+
}), firstElementIsSelect && toolbarContainerLeftPadding];
|
|
161
|
+
},
|
|
153
162
|
"aria-label": intl.formatMessage(messages.floatingToolbarAriaLabel),
|
|
154
|
-
hasCompactLeftPadding: firstElementIsSelect,
|
|
155
163
|
className: className
|
|
156
|
-
},
|
|
164
|
+
}, jsx(Announcer, {
|
|
157
165
|
text: intl.formatMessage(messages.floatingToolbarAnnouncer),
|
|
158
166
|
delay: 250
|
|
159
|
-
}),
|
|
167
|
+
}), jsx(ButtonGroup, null, items.filter(function (item) {
|
|
160
168
|
return !item.hidden;
|
|
161
169
|
}).map(function (item, idx) {
|
|
162
170
|
switch (item.type) {
|
|
@@ -171,12 +179,12 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
171
179
|
}
|
|
172
180
|
};
|
|
173
181
|
|
|
174
|
-
return
|
|
182
|
+
return jsx(Button, {
|
|
175
183
|
className: item.className,
|
|
176
184
|
key: idx,
|
|
177
185
|
title: item.title,
|
|
178
186
|
href: item.href,
|
|
179
|
-
icon: item.icon ?
|
|
187
|
+
icon: item.icon ? jsx(ButtonIcon, {
|
|
180
188
|
label: item.title
|
|
181
189
|
}) : undefined,
|
|
182
190
|
appearance: item.appearance,
|
|
@@ -204,7 +212,7 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
204
212
|
}, item.showTitle && item.title);
|
|
205
213
|
|
|
206
214
|
case 'input':
|
|
207
|
-
return
|
|
215
|
+
return jsx(Input, {
|
|
208
216
|
key: idx,
|
|
209
217
|
mountPoint: popupsMountPoint,
|
|
210
218
|
boundariesElement: popupsBoundariesElement,
|
|
@@ -225,10 +233,10 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
225
233
|
|
|
226
234
|
case 'dropdown':
|
|
227
235
|
var DropdownIcon = item.icon;
|
|
228
|
-
return
|
|
236
|
+
return jsx(Dropdown, {
|
|
229
237
|
key: idx,
|
|
230
238
|
title: item.title,
|
|
231
|
-
icon: DropdownIcon &&
|
|
239
|
+
icon: DropdownIcon && jsx(DropdownIcon, {
|
|
232
240
|
label: item.title
|
|
233
241
|
}),
|
|
234
242
|
dispatchCommand: dispatchCommand,
|
|
@@ -243,7 +251,7 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
243
251
|
|
|
244
252
|
case 'select':
|
|
245
253
|
if (item.selectType === 'list') {
|
|
246
|
-
return
|
|
254
|
+
return jsx(Select, {
|
|
247
255
|
key: idx,
|
|
248
256
|
dispatchCommand: dispatchCommand,
|
|
249
257
|
options: item.options,
|
|
@@ -261,7 +269,7 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
261
269
|
}
|
|
262
270
|
|
|
263
271
|
if (item.selectType === 'color') {
|
|
264
|
-
return
|
|
272
|
+
return jsx(ColorPickerButton, {
|
|
265
273
|
key: idx,
|
|
266
274
|
title: item.title,
|
|
267
275
|
onChange: function onChange(selected) {
|
|
@@ -274,7 +282,7 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
274
282
|
}
|
|
275
283
|
|
|
276
284
|
if (item.selectType === 'emoji') {
|
|
277
|
-
return
|
|
285
|
+
return jsx(EmojiPickerButton, {
|
|
278
286
|
key: idx,
|
|
279
287
|
editorView: editorView,
|
|
280
288
|
title: item.title,
|
|
@@ -300,7 +308,7 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
300
308
|
return null;
|
|
301
309
|
}
|
|
302
310
|
|
|
303
|
-
return
|
|
311
|
+
return jsx(ExtensionsPlaceholder, {
|
|
304
312
|
key: idx,
|
|
305
313
|
node: node,
|
|
306
314
|
editorView: editorView,
|
|
@@ -309,7 +317,7 @@ var Toolbar = /*#__PURE__*/function (_Component) {
|
|
|
309
317
|
});
|
|
310
318
|
|
|
311
319
|
case 'separator':
|
|
312
|
-
return
|
|
320
|
+
return jsx(Separator, {
|
|
313
321
|
key: idx
|
|
314
322
|
});
|
|
315
323
|
}
|
|
@@ -13,7 +13,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
13
13
|
|
|
14
14
|
import React from 'react';
|
|
15
15
|
import classnames from 'classnames';
|
|
16
|
-
import { withTheme } from '
|
|
16
|
+
import { withTheme } from '@emotion/react';
|
|
17
17
|
import { PluginKey } from 'prosemirror-state';
|
|
18
18
|
import { breakoutWideScaleRatio, akEditorFullPageMaxWidth, akEditorBreakoutPadding } from '@atlaskit/editor-shared-styles';
|
|
19
19
|
import { pluginKey as widthPlugin } from '../width/index';
|
|
@@ -19,7 +19,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
19
19
|
|
|
20
20
|
/** @jsx jsx */
|
|
21
21
|
import React from 'react';
|
|
22
|
-
import { jsx } from '@emotion/react';
|
|
22
|
+
import { css, jsx } from '@emotion/react';
|
|
23
23
|
import { isSafeUrl } from '@atlaskit/adf-schema';
|
|
24
24
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
25
25
|
import EditorAlignLeftIcon from '@atlaskit/icon/glyph/editor/align-left';
|
|
@@ -29,12 +29,11 @@ import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
|
|
|
29
29
|
import Tooltip from '@atlaskit/tooltip';
|
|
30
30
|
import { PureComponent } from 'react';
|
|
31
31
|
import { defineMessages, injectIntl } from 'react-intl-next';
|
|
32
|
-
import styled from 'styled-components';
|
|
33
32
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
34
33
|
import { linkToolbarMessages as linkToolbarCommonMessages } from '../../../../messages';
|
|
35
34
|
import PanelTextInput from '../../../../ui/PanelTextInput';
|
|
36
35
|
import LinkSearchList from '../../../../ui/LinkSearch/LinkSearchList';
|
|
37
|
-
import {
|
|
36
|
+
import { container, containerWithProvider, inputWrapper } from '../../../../ui/LinkSearch/ToolbarComponents';
|
|
38
37
|
import { INPUT_METHOD, fireAnalyticsEvent, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '../../../analytics';
|
|
39
38
|
import { normalizeUrl } from '../../utils';
|
|
40
39
|
import { filterUniqueItems } from '../../../../utils/array';
|
|
@@ -47,9 +46,9 @@ import { browser } from '@atlaskit/editor-common/utils';
|
|
|
47
46
|
import { transformTimeStamp } from '../../../../ui/LinkSearch/transformTimeStamp';
|
|
48
47
|
import Announcer from '../../../../utils/announcer/announcer';
|
|
49
48
|
export var RECENT_SEARCH_LIST_SIZE = 5;
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
49
|
+
var clearText = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n padding: 0;\n margin-right: 8px;\n color: ", ";\n background: transparent;\n border: none;\n"])), N90);
|
|
50
|
+
var textInputWrapper = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", ";\n border-top: 1px solid ", ";\n border-bottom: 1px solid ", ";\n"])), inputWrapper, N30, N30);
|
|
51
|
+
var iconWrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n padding: 4px 8px;\n width: 18px;\n"])), N80);
|
|
53
52
|
export var messages = defineMessages({
|
|
54
53
|
displayText: {
|
|
55
54
|
id: 'fabric.editor.displayText',
|
|
@@ -442,11 +441,11 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
442
441
|
if (items.length && selectedIndex > -1) {
|
|
443
442
|
var _items$selectedIndex = items[selectedIndex],
|
|
444
443
|
name = _items$selectedIndex.name,
|
|
445
|
-
|
|
444
|
+
_container = _items$selectedIndex.container,
|
|
446
445
|
lastUpdatedDate = _items$selectedIndex.lastUpdatedDate,
|
|
447
446
|
lastViewedDate = _items$selectedIndex.lastViewedDate;
|
|
448
447
|
var date = transformTimeStamp(intl, lastViewedDate, lastUpdatedDate);
|
|
449
|
-
return "".concat(name, ", ").concat(
|
|
448
|
+
return "".concat(name, ", ").concat(_container, ", ").concat(date === null || date === void 0 ? void 0 : date.pageAction, " ").concat(date === null || date === void 0 ? void 0 : date.dateString, " ").concat((date === null || date === void 0 ? void 0 : date.timeSince) || '');
|
|
450
449
|
}
|
|
451
450
|
});
|
|
452
451
|
|
|
@@ -936,10 +935,14 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
936
935
|
var screenReaderText = browser.safari && this.getScreenReaderText();
|
|
937
936
|
return jsx("div", {
|
|
938
937
|
className: "recent-list"
|
|
939
|
-
}, jsx(
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
}, jsx(
|
|
938
|
+
}, jsx("div", {
|
|
939
|
+
css: [container, !!activityProvider && containerWithProvider],
|
|
940
|
+
ref: this.wrapperRef
|
|
941
|
+
}, jsx("div", {
|
|
942
|
+
css: inputWrapper
|
|
943
|
+
}, jsx("span", {
|
|
944
|
+
css: iconWrapper
|
|
945
|
+
}, jsx(Tooltip, {
|
|
943
946
|
content: formatLinkAddressText
|
|
944
947
|
}, jsx(LinkIcon, {
|
|
945
948
|
label: formatLinkAddressText
|
|
@@ -974,11 +977,16 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
974
977
|
onKeyDown: this.handleKeyDown
|
|
975
978
|
}), displayUrl && jsx(Tooltip, {
|
|
976
979
|
content: formatClearLinkText
|
|
977
|
-
}, jsx(
|
|
980
|
+
}, jsx("button", {
|
|
981
|
+
css: clearText,
|
|
978
982
|
onClick: this.handleClearText
|
|
979
983
|
}, jsx(CrossCircleIcon, {
|
|
980
984
|
label: formatClearLinkText
|
|
981
|
-
})))), jsx(
|
|
985
|
+
})))), jsx("div", {
|
|
986
|
+
css: textInputWrapper
|
|
987
|
+
}, jsx("span", {
|
|
988
|
+
css: iconWrapper
|
|
989
|
+
}, jsx(Tooltip, {
|
|
982
990
|
content: formatDisplayText
|
|
983
991
|
}, jsx(EditorAlignLeftIcon, {
|
|
984
992
|
label: formatDisplayText
|
|
@@ -996,7 +1004,8 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
996
1004
|
onKeyDown: this.handleKeyDown
|
|
997
1005
|
}), displayText && jsx(Tooltip, {
|
|
998
1006
|
content: formatMessage(messages.clearText)
|
|
999
|
-
}, jsx(
|
|
1007
|
+
}, jsx("button", {
|
|
1008
|
+
css: clearText,
|
|
1000
1009
|
onClick: this.handleClearDisplayText,
|
|
1001
1010
|
onKeyDown: this.handleClearTextKeyDown
|
|
1002
1011
|
}, jsx(CrossCircleIcon, {
|