@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
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { Command } from '../../../types/command';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
2
|
+
import { AlignmentState } from '../pm-plugins/types';
|
|
3
|
+
export declare const isAlignable: (align?: AlignmentState | undefined) => Command;
|
|
4
|
+
export declare const changeAlignment: (align?: AlignmentState | undefined) => Command;
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Decoration } from 'prosemirror-view';
|
|
2
|
-
import {
|
|
2
|
+
import { Node } from 'prosemirror-model';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { PluginKey } from 'prosemirror-state';
|
|
5
5
|
export declare const inlineCursorTargetStateKey: PluginKey<any, any>;
|
|
6
6
|
export declare const isInlineNodeView: (node: Node | null | undefined) => boolean | null | undefined;
|
|
7
|
-
export declare const findInlineNodeViewAfter: ($pos: ResolvedPos) => boolean | null | undefined;
|
|
8
|
-
export declare const findInlineNodeViewBefore: ($pos: ResolvedPos) => boolean | null | undefined;
|
|
9
7
|
export interface InlineCursorTargetState {
|
|
10
8
|
cursorTarget?: {
|
|
11
9
|
decorations: [Decoration | null, Decoration | null];
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ThemeProps } from '@atlaskit/theme/types';
|
|
2
|
-
import { HTMLAttributes, ComponentClass } from 'react';
|
|
3
2
|
export declare const blockTypeMenuItemStyle: (tagName: string, selected?: boolean | undefined) => (themeProps: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
}>;
|
|
3
|
+
export declare const keyboardShortcut: import("@emotion/react").SerializedStyles;
|
|
4
|
+
export declare const keyboardShortcutSelect: import("@emotion/react").SerializedStyles;
|
|
@@ -14,7 +14,7 @@ export declare class BlockCardComponent extends React.PureComponent<SmartCardPro
|
|
|
14
14
|
private scrollContainer?;
|
|
15
15
|
onClick: () => void;
|
|
16
16
|
static contextTypes: {
|
|
17
|
-
contextAdapter: PropTypes.Requireable<
|
|
17
|
+
contextAdapter: PropTypes.Requireable<object>;
|
|
18
18
|
};
|
|
19
19
|
UNSAFE_componentWillMount(): void;
|
|
20
20
|
onResolve: (data: {
|
|
@@ -14,7 +14,7 @@ export declare class EmbedCardComponent extends React.PureComponent<SmartCardPro
|
|
|
14
14
|
private embedIframeRef;
|
|
15
15
|
onClick: () => void;
|
|
16
16
|
static contextTypes: {
|
|
17
|
-
contextAdapter: PropTypes.Requireable<
|
|
17
|
+
contextAdapter: PropTypes.Requireable<object>;
|
|
18
18
|
};
|
|
19
19
|
state: EmbedCardState;
|
|
20
20
|
UNSAFE_componentWillMount(): void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { SmartCardProps } from './genericCard';
|
|
4
|
-
import
|
|
4
|
+
import { InlineNodeViewComponentProps } from '../../../nodeviews/getInlineNodeViewProducer';
|
|
5
5
|
export declare class InlineCardComponent extends React.PureComponent<SmartCardProps> {
|
|
6
6
|
private scrollContainer?;
|
|
7
7
|
private onClick;
|
|
8
8
|
static contextTypes: {
|
|
9
|
-
contextAdapter: PropTypes.Requireable<
|
|
9
|
+
contextAdapter: PropTypes.Requireable<object>;
|
|
10
10
|
};
|
|
11
11
|
UNSAFE_componentWillMount(): void;
|
|
12
12
|
onResolve: (data: {
|
|
@@ -16,7 +16,4 @@ export declare class InlineCardComponent extends React.PureComponent<SmartCardPr
|
|
|
16
16
|
render(): JSX.Element | null;
|
|
17
17
|
}
|
|
18
18
|
export declare type InlineCardNodeViewProps = Pick<SmartCardProps, 'useAlternativePreloader'>;
|
|
19
|
-
export declare
|
|
20
|
-
createDomRef(): HTMLElement;
|
|
21
|
-
render(): JSX.Element;
|
|
22
|
-
}
|
|
19
|
+
export declare function InlineCardNodeView(props: InlineNodeViewComponentProps & InlineCardNodeViewProps): JSX.Element;
|
|
@@ -2,4 +2,4 @@ import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
|
2
2
|
import { CardPluginOptions, CardPluginState } from '../types';
|
|
3
3
|
import { PMPluginFactoryParams } from '../../../types';
|
|
4
4
|
export { pluginKey } from './plugin-key';
|
|
5
|
-
export declare const createPlugin: (options: CardPluginOptions) => (
|
|
5
|
+
export declare const createPlugin: (options: CardPluginOptions) => (pmPluginFactoryParams: PMPluginFactoryParams) => SafePlugin<CardPluginState, any>;
|
|
@@ -2,5 +2,5 @@ import { CardProvider } from '@atlaskit/editor-common/provider-factory';
|
|
|
2
2
|
import { EditorView } from 'prosemirror-view';
|
|
3
3
|
import { OutstandingRequests, Request } from '../../types';
|
|
4
4
|
import { CardOptions } from '@atlaskit/editor-common/card';
|
|
5
|
-
export declare const resolveWithProvider: (view: EditorView, outstandingRequests: OutstandingRequests, provider: CardProvider, request: Request, options: CardOptions) => Promise<void | import("@atlaskit/
|
|
5
|
+
export declare const resolveWithProvider: (view: EditorView, outstandingRequests: OutstandingRequests, provider: CardProvider, request: Request, options: CardOptions) => Promise<void | import("@atlaskit/linking-common").InlineCardAdf | import("@atlaskit/linking-common").BlockCardAdf | import("@atlaskit/linking-common").EmbedCardAdf>;
|
|
6
6
|
export declare const handleProvider: (_: 'cardProvider', provider: Promise<CardProvider> | undefined, view: EditorView) => void;
|
|
@@ -5,9 +5,9 @@ export declare const getPluginStateWithUpdatedPos: (pluginState: CardPluginState
|
|
|
5
5
|
requests: {
|
|
6
6
|
pos: number;
|
|
7
7
|
url: string;
|
|
8
|
-
appearance: import("@atlaskit/
|
|
8
|
+
appearance: import("@atlaskit/editor-common/provider-factory").CardAppearance;
|
|
9
9
|
compareLinkText: boolean;
|
|
10
|
-
source: import("
|
|
10
|
+
source: import("../../types").CardReplacementInputMethod;
|
|
11
11
|
analyticsAction?: import("../../../analytics").ACTION | undefined;
|
|
12
12
|
shouldReplaceLink?: boolean | undefined;
|
|
13
13
|
}[];
|
|
@@ -6,4 +6,4 @@ import { CardOptions } from '@atlaskit/editor-common/card';
|
|
|
6
6
|
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
7
7
|
export declare const removeCard: Command;
|
|
8
8
|
export declare const visitCardLink: Command;
|
|
9
|
-
export declare const floatingToolbar: (cardOptions: CardOptions, platform?: "
|
|
9
|
+
export declare const floatingToolbar: (cardOptions: CardOptions, platform?: import("json-ld-types").JsonLd.Primitives.Platforms | undefined) => (state: EditorState, intl: IntlShape, providerFactory: ProviderFactory) => FloatingToolbarConfig | undefined;
|
|
@@ -16,7 +16,7 @@ export interface LinkToolbarAppearanceProps {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class LinkToolbarAppearance extends React.Component<LinkToolbarAppearanceProps, {}> {
|
|
18
18
|
static contextTypes: {
|
|
19
|
-
contextAdapter: PropTypes.Requireable<
|
|
19
|
+
contextAdapter: PropTypes.Requireable<object>;
|
|
20
20
|
};
|
|
21
21
|
renderDropdown: (view?: EditorView<any> | undefined, cardContext?: CardContext | undefined) => JSX.Element | null;
|
|
22
22
|
render(): JSX.Element | null;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import type { GlyphProps } from '@atlaskit/icon/types';
|
|
3
|
-
/**
|
|
4
|
-
* Applying `pointer-events: none;` when disabled allows the Tooltip to be displayed
|
|
5
|
-
*/
|
|
6
|
-
export declare const StyledButton: import("styled-components").StyledComponentClass<import("../../floating-toolbar/ui/Button").Props, any, Pick<import("../../floating-toolbar/ui/Button").Props, "title" | "children" | "className" | "tabIndex" | "icon" | "onFocus" | "onBlur" | "appearance" | "disabled" | "target" | "iconAfter" | "onClick" | "onMouseEnter" | "onMouseLeave" | "selected" | "href" | "tooltipContent" | "testId" | "hideTooltipOnClick" | "ariaHasPopup"> & {
|
|
7
|
-
theme?: any;
|
|
8
|
-
}>;
|
|
9
4
|
export interface ButtonOptionProps {
|
|
10
5
|
title: string;
|
|
11
6
|
selected: boolean;
|
|
@@ -18,4 +13,4 @@ export interface ButtonOptionProps {
|
|
|
18
13
|
export interface LinkToolbarButtonGroupProps {
|
|
19
14
|
options: ButtonOptionProps[];
|
|
20
15
|
}
|
|
21
|
-
export declare const LinkToolbarButtonGroup: ({ options, }: LinkToolbarButtonGroupProps) => JSX.Element;
|
|
16
|
+
export declare const LinkToolbarButtonGroup: ({ options, }: LinkToolbarButtonGroupProps) => jsx.JSX.Element;
|
|
@@ -40,7 +40,7 @@ export default class ResizableEmbedCard extends React.Component<Props, State> {
|
|
|
40
40
|
wrapper?: HTMLElement;
|
|
41
41
|
get wideLayoutWidth(): number;
|
|
42
42
|
calcSnapPoints(): number[];
|
|
43
|
-
calcPxWidth: (useLayout?:
|
|
43
|
+
calcPxWidth: (useLayout?: RichMediaLayout | undefined) => number;
|
|
44
44
|
get insideInlineLike(): boolean;
|
|
45
45
|
highlights: (newWidth: number, snapPoints: number[]) => number[] | string[];
|
|
46
46
|
/**
|
|
@@ -3,7 +3,7 @@ import { NodeType, Node, Slice } from 'prosemirror-model';
|
|
|
3
3
|
import { CardAppearance } from '@atlaskit/editor-common/provider-factory';
|
|
4
4
|
import { CardInfo } from './types';
|
|
5
5
|
export declare const appearanceForNodeType: (spec: NodeType) => CardAppearance | undefined;
|
|
6
|
-
export declare const selectedCardAppearance: (state: EditorState) => false |
|
|
6
|
+
export declare const selectedCardAppearance: (state: EditorState) => false | CardAppearance | undefined;
|
|
7
7
|
export declare type TitleUrlPair = {
|
|
8
8
|
title?: string;
|
|
9
9
|
url?: string;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { EditorState, Transaction } from 'prosemirror-state';
|
|
2
2
|
import { Command, CommandDispatch } from '../../types';
|
|
3
3
|
import { DateType } from './types';
|
|
4
|
+
import { TOOLBAR_MENU_TYPE } from '../insert-block/ui/ToolbarInsertBlock/types';
|
|
4
5
|
import { INPUT_METHOD } from '../analytics';
|
|
5
6
|
export declare const createDate: (isQuickInsertAction?: boolean | undefined) => (insert: (node: Node | Object | string, opts?: any) => Transaction, state: EditorState) => Transaction;
|
|
6
7
|
/** Delete the date and close the datepicker */
|
|
7
8
|
export declare const deleteDate: () => Command;
|
|
8
9
|
/** Focus input */
|
|
9
10
|
export declare const focusDateInput: () => (state: EditorState, dispatch: CommandDispatch | undefined) => boolean;
|
|
10
|
-
export declare const insertDate: (date?: DateType | undefined, inputMethod?:
|
|
11
|
+
export declare const insertDate: (date?: DateType | undefined, inputMethod?: TOOLBAR_MENU_TYPE | undefined, commitMethod?: INPUT_METHOD.KEYBOARD | INPUT_METHOD.PICKER | undefined, enterPressed?: boolean) => Command;
|
|
11
12
|
export declare const setDatePickerAt: (showDatePickerAt: number | null) => (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
|
|
12
13
|
export declare const closeDatePicker: () => Command;
|
|
13
14
|
export declare const closeDatePickerWithAnalytics: ({ date, }: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
2
3
|
import type { EmojiProps } from '@atlaskit/editor-common/emoji';
|
|
3
|
-
export default function EmojiNode(props: EmojiProps): JSX.Element;
|
|
4
|
+
export default function EmojiNode(props: EmojiProps): jsx.JSX.Element;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
export declare class EmojiContextProvider extends React.Component<any, any> {
|
|
4
4
|
static childContextTypes: {
|
|
5
|
-
emoji: PropTypes.Requireable<
|
|
5
|
+
emoji: PropTypes.Requireable<object>;
|
|
6
6
|
};
|
|
7
7
|
getChildContext(): {
|
|
8
8
|
emoji: {
|
|
@@ -34,7 +34,7 @@ declare const _default: {
|
|
|
34
34
|
handleContainer: (container: HTMLElement | null) => void;
|
|
35
35
|
render(): JSX.Element;
|
|
36
36
|
context: any;
|
|
37
|
-
setState<K extends
|
|
37
|
+
setState<K extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K> | null, callback?: (() => void) | undefined): void;
|
|
38
38
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
39
39
|
readonly props: Readonly<Props> & Readonly<{
|
|
40
40
|
children?: React.ReactNode;
|
|
@@ -72,7 +72,7 @@ declare const _default: {
|
|
|
72
72
|
handleContainer: (container: HTMLElement | null) => void;
|
|
73
73
|
render(): JSX.Element;
|
|
74
74
|
context: any;
|
|
75
|
-
setState<K_1 extends
|
|
75
|
+
setState<K_1 extends keyof import("@atlaskit/editor-common/ui").OverflowShadowState>(state: import("@atlaskit/editor-common/ui").OverflowShadowState | ((prevState: Readonly<import("@atlaskit/editor-common/ui").OverflowShadowState>, props: Readonly<Props>) => import("@atlaskit/editor-common/ui").OverflowShadowState | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null) | Pick<import("@atlaskit/editor-common/ui").OverflowShadowState, K_1> | null, callback?: (() => void) | undefined): void;
|
|
76
76
|
forceUpdate(callBack?: (() => void) | undefined): void;
|
|
77
77
|
readonly props: Readonly<Props> & Readonly<{
|
|
78
78
|
children?: React.ReactNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { ThemeProps } from '@atlaskit/theme/types';
|
|
3
2
|
export declare const widerLayoutClassName = "wider-layout";
|
|
4
3
|
export declare const wrapperStyle: (theme: ThemeProps, extensionWidth: string) => import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
4
|
+
export declare const header: import("@emotion/react").SerializedStyles;
|
|
5
|
+
export declare const content: (theme: ThemeProps) => import("@emotion/react").SerializedStyles;
|
|
6
|
+
export declare const contentWrapper: import("@emotion/react").SerializedStyles;
|
|
@@ -4,4 +4,4 @@ import type { FeatureFlags } from '../../types/feature-flags';
|
|
|
4
4
|
*
|
|
5
5
|
* Useful for analytics and analysis purposes.
|
|
6
6
|
*/
|
|
7
|
-
export declare function getEnabledFeatureFlagKeys(featureFlags: FeatureFlags): (
|
|
7
|
+
export declare function getEnabledFeatureFlagKeys(featureFlags: FeatureFlags): (keyof FeatureFlags)[];
|
|
@@ -16,4 +16,4 @@ export default floatingToolbarPlugin;
|
|
|
16
16
|
* ProseMirror Plugin
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
|
-
export declare const pluginKey: PluginKey<
|
|
19
|
+
export declare const pluginKey: PluginKey<FloatingToolbarPluginState, any>;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import { Component, ReactElement } from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
import { DropdownOptions } from './types';
|
|
3
5
|
export interface Props {
|
|
4
6
|
title: string;
|
|
@@ -18,7 +20,7 @@ export interface State {
|
|
|
18
20
|
}
|
|
19
21
|
export default class Dropdown extends Component<Props, State> {
|
|
20
22
|
state: State;
|
|
21
|
-
render(): JSX.Element;
|
|
23
|
+
render(): jsx.JSX.Element;
|
|
22
24
|
private renderArrayOptions;
|
|
23
25
|
private toggleOpen;
|
|
24
26
|
private hide;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { DropdownOptionT } from './types';
|
|
3
3
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
4
4
|
export declare const menuItemDimensions: {
|
|
@@ -11,7 +11,7 @@ export interface Props {
|
|
|
11
11
|
dispatchCommand: Function;
|
|
12
12
|
items: Array<DropdownOptionT<Function>>;
|
|
13
13
|
}
|
|
14
|
-
declare const _default:
|
|
15
|
-
WrappedComponent:
|
|
14
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
15
|
+
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
16
16
|
};
|
|
17
17
|
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
import { Component } from 'react';
|
|
3
5
|
export interface Props {
|
|
4
6
|
mountPoint?: HTMLElement;
|
|
@@ -17,5 +19,5 @@ export default class TextField extends Component<Props, State> {
|
|
|
17
19
|
handleChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
18
20
|
handleSubmit: (e: React.FormEvent) => void;
|
|
19
21
|
handleBlur: (e: React.FocusEvent<{}>) => void;
|
|
20
|
-
render(): JSX.Element;
|
|
22
|
+
render(): jsx.JSX.Element;
|
|
21
23
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { EditorView } from 'prosemirror-view';
|
|
3
4
|
import { Node } from 'prosemirror-model';
|
|
@@ -23,7 +24,7 @@ export interface Props {
|
|
|
23
24
|
extensionsProvider?: ExtensionProvider;
|
|
24
25
|
}
|
|
25
26
|
export declare const isSameItem: (leftItem: Item, rightItem: Item) => boolean;
|
|
26
|
-
export declare const areSameItems: (leftArr?:
|
|
27
|
+
export declare const areSameItems: (leftArr?: Item[] | undefined, rightArr?: Item[] | undefined) => boolean;
|
|
27
28
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
28
29
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
29
30
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
3
|
import type { Props } from './Toolbar';
|
|
4
|
-
export declare const ToolbarLoader:
|
|
4
|
+
export declare const ToolbarLoader: import("react").ComponentType<Props> & Loadable.LoadableComponent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import Loadable from 'react-loadable';
|
|
3
3
|
import type { Props as HelpDialogProps } from './index';
|
|
4
|
-
export declare const HelpDialogLoader:
|
|
4
|
+
export declare const HelpDialogLoader: import("react").ComponentType<HelpDialogProps> & Loadable.LoadableComponent;
|
|
@@ -105,5 +105,5 @@ export declare class HyperlinkLinkAddToolbar extends PureComponent<Props, State>
|
|
|
105
105
|
export declare const HyperlinkLinkAddToolbarWithIntl: React.FC<import("react-intl-next").WithIntlProps<HyperlinkLinkAddToolbarProps>> & {
|
|
106
106
|
WrappedComponent: React.ComponentType<HyperlinkLinkAddToolbarProps>;
|
|
107
107
|
};
|
|
108
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
108
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<HyperlinkLinkAddToolbarProps>>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
109
109
|
export default _default;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
5
|
import { Props, State } from './types';
|
|
4
6
|
export declare class ToolbarInsertBlock extends React.PureComponent<Props & WrappedComponentProps, State> {
|
|
@@ -17,7 +19,7 @@ export declare class ToolbarInsertBlock extends React.PureComponent<Props & Wrap
|
|
|
17
19
|
private handleEmojiButtonRef;
|
|
18
20
|
private handlePlusButtonRef;
|
|
19
21
|
private handleDropDownButtonRef;
|
|
20
|
-
render(): JSX.Element | null;
|
|
22
|
+
render(): jsx.JSX.Element | null;
|
|
21
23
|
private toggleLinkPanel;
|
|
22
24
|
private insertMention;
|
|
23
25
|
private insertTable;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const TriggerWrapper: ComponentClass<HTMLAttributes<{}>>;
|
|
1
|
+
export declare const triggerWrapper: import("@emotion/react").SerializedStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NodeType } from 'prosemirror-model';
|
|
2
2
|
import { Transaction } from 'prosemirror-state';
|
|
3
3
|
/**
|
|
4
4
|
* Wraps the selection in a list with the given type. If this results in
|
|
@@ -13,13 +13,3 @@ export declare function wrapInListAndJoin(nodeType: NodeType, tr: Transaction):
|
|
|
13
13
|
export declare function wrapInList(listType: NodeType, attrs?: {
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
}): (tr: Transaction) => boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Checks whether two adjacent nodes can be joined. If so, the document
|
|
18
|
-
* will be updated to join those nodes. If not, the original transaction
|
|
19
|
-
* remains untouched.
|
|
20
|
-
*
|
|
21
|
-
* Nodes are considered joinable if the `isJoinable` predicate returns true.
|
|
22
|
-
*
|
|
23
|
-
* Adapted from https://github.com/ProseMirror/prosemirror-commands/blob/master/src/commands.js#L597-L610
|
|
24
|
-
*/
|
|
25
|
-
export declare function autoJoin(tr: Transaction, isJoinable: (before: Node, after: Node) => boolean): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { WrappedComponentProps } from 'react-intl-next';
|
|
3
3
|
import { EditorView } from 'prosemirror-view';
|
|
4
4
|
export interface Props {
|
|
@@ -18,7 +18,7 @@ export interface Props {
|
|
|
18
18
|
export interface State {
|
|
19
19
|
isDropdownOpen: boolean;
|
|
20
20
|
}
|
|
21
|
-
declare const _default:
|
|
22
|
-
WrappedComponent:
|
|
21
|
+
declare const _default: import("react").FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
22
|
+
WrappedComponent: import("react").ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
23
23
|
};
|
|
24
24
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Command } from '../../../types/command';
|
|
2
|
-
import { MediaNodeWithPosHandler, MediaPluginState } from '../pm-plugins/types';
|
|
1
|
+
import type { Command } from '../../../types/command';
|
|
2
|
+
import type { MediaNodeWithPosHandler, MediaPluginState } from '../pm-plugins/types';
|
|
3
3
|
export declare const findMediaSingleNode: (mediaPluginState: MediaPluginState, id: string) => MediaNodeWithPosHandler | null;
|
|
4
4
|
/**
|
|
5
5
|
* Finds the media inline node with the given id.
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
2
|
+
import { jsx } from '@emotion/react';
|
|
1
3
|
import { Component } from 'react';
|
|
2
4
|
import { Node as PMNode } from 'prosemirror-model';
|
|
3
5
|
import { EditorView, Decoration } from 'prosemirror-view';
|
|
@@ -32,7 +34,7 @@ export default class MediaSingleNode extends Component<MediaSingleNodeProps, Med
|
|
|
32
34
|
componentDidMount(): Promise<void>;
|
|
33
35
|
selectMediaSingle: ({ event }: CardEvent) => void;
|
|
34
36
|
updateSize: (width: number | null, layout: MediaSingleLayout) => void;
|
|
35
|
-
render(): JSX.Element;
|
|
37
|
+
render(): jsx.JSX.Element;
|
|
36
38
|
private clickPlaceholder;
|
|
37
39
|
private getLineLength;
|
|
38
40
|
}
|
|
@@ -49,7 +51,7 @@ declare class MediaSingleNodeView extends ReactNodeView<MediaSingleNodeViewProps
|
|
|
49
51
|
isNodeSelected: () => boolean;
|
|
50
52
|
getNodeMediaId(node: PMNode): string | undefined;
|
|
51
53
|
update(node: PMNode, decorations: Decoration[], _innerDecorations?: Decoration[], isValidUpdate?: (currentNode: PMNode, newNode: PMNode) => boolean): boolean;
|
|
52
|
-
render(props: MediaSingleNodeViewProps, forwardRef?: ForwardRef): JSX.Element;
|
|
54
|
+
render(props: MediaSingleNodeViewProps, forwardRef?: ForwardRef): jsx.JSX.Element;
|
|
53
55
|
ignoreMutation(): boolean;
|
|
54
56
|
}
|
|
55
57
|
export declare const ReactMediaSingleNode: (portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, providerFactory: ProviderFactory, dispatchAnalyticsEvent?: DispatchAnalyticsEvent | undefined, mediaOptions?: MediaOptions) => (node: PMNode, view: EditorView, getPos: getPosHandler) => MediaSingleNodeView;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
/** @jsx jsx */
|
|
1
2
|
import React from 'react';
|
|
3
|
+
import { jsx } from '@emotion/react';
|
|
2
4
|
import { NumericalCardDimensions } from '@atlaskit/media-card';
|
|
3
5
|
export declare const MediaInlineNodeSelector = "media-inline-node";
|
|
4
6
|
export declare const MediaSingleNodeSelector = "media-single-node";
|
|
5
|
-
export declare const
|
|
7
|
+
export declare const figureWrapper: import("@emotion/react").SerializedStyles;
|
|
6
8
|
declare type MediaCardWrapperProps = {
|
|
7
9
|
dimensions: NumericalCardDimensions;
|
|
8
10
|
children: React.ReactNode;
|
|
9
11
|
onContextMenu?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
|
|
10
12
|
};
|
|
11
|
-
export declare const MediaCardWrapper: ({ dimensions, children, onContextMenu, }: MediaCardWrapperProps) => JSX.Element;
|
|
13
|
+
export declare const MediaCardWrapper: ({ dimensions, children, onContextMenu, }: MediaCardWrapperProps) => jsx.JSX.Element;
|
|
12
14
|
export {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Popup, PopupConfig, UploadPreviewUpdateEventPayload, UploadParams, UploadErrorEventPayload, UploadEndEventPayload } from '@atlaskit/media-picker/types';
|
|
1
|
+
import { UploadPreviewUpdateEventPayload, UploadParams, UploadErrorEventPayload, UploadEndEventPayload } from '@atlaskit/media-picker/types';
|
|
3
2
|
import { MediaClientConfig } from '@atlaskit/media-core';
|
|
4
3
|
import type { ErrorReportingHandler } from '@atlaskit/editor-common/utils';
|
|
5
4
|
import { MediaFeatureFlags } from '@atlaskit/media-common/mediaFeatureFlags';
|
|
6
5
|
import { MediaState, CustomMediaPicker, MobileUploadEndEventPayload } from './types';
|
|
7
|
-
export declare type PickerType = '
|
|
6
|
+
export declare type PickerType = 'clipboard' | 'dropzone' | 'customMediaPicker';
|
|
8
7
|
export declare type ExtendedComponentConfigs = {
|
|
9
|
-
popup: PopupConfig;
|
|
10
8
|
customMediaPicker: CustomMediaPicker;
|
|
11
9
|
dropzone: null;
|
|
12
10
|
clipboard: null;
|
|
@@ -22,25 +20,20 @@ export declare type MediaStateEventSubscriber = (listener: MediaStateEventListen
|
|
|
22
20
|
export declare type NewMediaEvent = (state: MediaState, onStateChanged: MediaStateEventSubscriber, pickerType?: string) => void;
|
|
23
21
|
export default class PickerFacade {
|
|
24
22
|
readonly config: PickerFacadeConfig;
|
|
25
|
-
readonly pickerConfig?: CustomMediaPicker |
|
|
26
|
-
readonly mediaPickerFactoryClass: typeof MediaPicker;
|
|
23
|
+
readonly pickerConfig?: CustomMediaPicker | null | undefined;
|
|
27
24
|
private picker?;
|
|
28
25
|
private onDragListeners;
|
|
29
|
-
private errorReporter;
|
|
30
26
|
private pickerType;
|
|
31
27
|
private onStartListeners;
|
|
32
28
|
private eventListeners;
|
|
33
29
|
private analyticsName;
|
|
34
30
|
erroredFiles: Set<string>;
|
|
35
|
-
constructor(pickerType: PickerType, config: PickerFacadeConfig, pickerConfig?: CustomMediaPicker |
|
|
31
|
+
constructor(pickerType: PickerType, config: PickerFacadeConfig, pickerConfig?: CustomMediaPicker | null | undefined, analyticsName?: string);
|
|
36
32
|
init(): Promise<PickerFacade>;
|
|
37
33
|
get type(): PickerType;
|
|
38
|
-
get mediaPicker(): CustomMediaPicker |
|
|
34
|
+
get mediaPicker(): CustomMediaPicker | undefined;
|
|
39
35
|
destroy(): void;
|
|
40
36
|
setUploadParams(params: UploadParams): void;
|
|
41
|
-
onClose(cb: () => void): () => void;
|
|
42
|
-
show(): void;
|
|
43
|
-
hide(): void;
|
|
44
37
|
onNewMedia(cb: NewMediaEvent): void;
|
|
45
38
|
onDrag(cb: (state: 'enter' | 'leave') => any): void;
|
|
46
39
|
handleUploadPreviewUpdate: (event: UploadPreviewUpdateEventPayload) => void;
|
|
@@ -37,5 +37,5 @@ export declare class AltTextEditComponent extends React.Component<Props, AltText
|
|
|
37
37
|
private handleOnBlur;
|
|
38
38
|
private handleClearText;
|
|
39
39
|
}
|
|
40
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
40
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<React.PropsWithChildren<import("react-intl-next").WithIntlProps<Props>>, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
|
|
41
41
|
export default _default;
|
|
@@ -34,19 +34,17 @@ export declare class MediaPluginStateImplementation implements MediaPluginState
|
|
|
34
34
|
private destroyed;
|
|
35
35
|
private contextIdentifierProvider?;
|
|
36
36
|
private errorReporter;
|
|
37
|
-
private popupPicker?;
|
|
38
37
|
private customPicker?;
|
|
39
38
|
private removeOnCloseListener;
|
|
40
39
|
private openMediaPickerBrowser?;
|
|
41
40
|
private onPopupToggleCallback;
|
|
42
|
-
private reactContext;
|
|
43
41
|
pickers: PickerFacade[];
|
|
44
42
|
pickerPromises: Array<Promise<PickerFacade>>;
|
|
45
43
|
editingMediaSinglePos?: number;
|
|
46
44
|
showEditingDialog?: boolean;
|
|
47
45
|
mediaOptions?: MediaOptions;
|
|
48
46
|
dispatch?: Dispatch;
|
|
49
|
-
constructor(state: EditorState, options: MediaPluginOptions,
|
|
47
|
+
constructor(state: EditorState, options: MediaPluginOptions, mediaOptions?: MediaOptions, dispatch?: Dispatch);
|
|
50
48
|
onContextIdentifierProvider: (_name: string, provider?: Promise<ContextIdentifierProvider> | undefined) => Promise<void>;
|
|
51
49
|
setMediaProvider: (mediaProvider?: Promise<MediaProvider> | undefined) => Promise<void>;
|
|
52
50
|
getMediaOptions: () => MediaPluginOptions;
|
|
@@ -62,7 +60,6 @@ export declare class MediaPluginStateImplementation implements MediaPluginState
|
|
|
62
60
|
addPendingTask: (promise: Promise<any>) => void;
|
|
63
61
|
splitMediaGroup: () => boolean;
|
|
64
62
|
onPopupPickerClose: () => void;
|
|
65
|
-
shouldUseMediaPickerPopup: () => boolean;
|
|
66
63
|
showMediaPicker: () => void;
|
|
67
64
|
setBrowseFn: (browseFn: () => void) => void;
|
|
68
65
|
onPopupToggle: (onPopupToggleCallback: (isOpen: boolean) => void) => void;
|
|
@@ -37,7 +37,6 @@ export interface MediaPluginState {
|
|
|
37
37
|
onContextIdentifierProvider: (_name: string, provider?: Promise<ContextIdentifierProvider>) => Promise<void>;
|
|
38
38
|
setMediaProvider: (mediaProvider?: Promise<MediaProvider>) => Promise<void>;
|
|
39
39
|
getMediaOptions: () => MediaPluginOptions;
|
|
40
|
-
shouldUseMediaPickerPopup: () => boolean;
|
|
41
40
|
insertFile: (mediaState: MediaState, onMediaStateChanged: MediaStateEventSubscriber, pickerType?: string) => void;
|
|
42
41
|
addPendingTask: (promise: Promise<any>) => void;
|
|
43
42
|
splitMediaGroup: () => boolean;
|
|
@@ -32,7 +32,6 @@ export interface MediaOptions {
|
|
|
32
32
|
enableDownloadButton?: boolean;
|
|
33
33
|
altTextValidator?: (value: string) => string[];
|
|
34
34
|
useForgePlugins?: boolean;
|
|
35
|
-
useMediaPickerPopup?: boolean;
|
|
36
35
|
allowTemplatePlaceholders?: boolean | PlaceholderTextOptions;
|
|
37
36
|
alignLeftOnInsert?: boolean;
|
|
38
37
|
featureFlags?: MediaFeatureFlags;
|