@atlaskit/editor-core 163.0.0 → 164.0.0
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 +73 -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/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 +2 -1
- 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/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 +3 -2
- 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/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 +3 -2
- 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/editor.d.ts +3 -1
- 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/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/inlineCard.d.ts +2 -5
- 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/ui/LinkToolbarButtonGroup.d.ts +2 -7
- package/dist/types/plugins/emoji/ui/Emoji/index.d.ts +3 -2
- package/dist/types/plugins/extension/ui/Extension/Extension/styles.d.ts +3 -4
- package/dist/types/plugins/find-replace/ui/FindReplaceToolbarButton.d.ts +1 -0
- 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 +1 -0
- 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/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/mentions/ui/InviteItem/styles.d.ts +6 -6
- package/dist/types/plugins/status/nodeviews/status.d.ts +1 -4
- package/dist/types/plugins/status/ui/statusPicker.d.ts +3 -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/ui/InputQuery.d.ts +1 -0
- 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/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 +13 -16
- 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 +1 -0
- 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 +3 -2
- 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/common/RequiredIndicator.d.ts +1 -2
- package/dist/types/ui/ConfigPanel/LoadingState.d.ts +3 -2
- package/dist/types/ui/ConfigPanel/NestedForms/RemovableField.d.ts +1 -0
- package/dist/types/ui/ContentStyles/index.d.ts +2 -0
- package/dist/types/ui/ContextPanel/index.d.ts +8 -14
- package/dist/types/ui/DropdownMenu/index.d.ts +3 -1
- package/dist/types/ui/ElementBrowser/InsertMenu.d.ts +2 -2
- package/dist/types/ui/ElementBrowser/components/ElementSearch.d.ts +1 -0
- 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/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/ToolbarButton/index.d.ts +1 -0
- package/dist/types/ui/ToolbarFeedback/index.d.ts +3 -1
- package/dist/types/ui/ToolbarFeedback/styles.d.ts +6 -7
- package/dist/types/ui/styles.d.ts +12 -22
- package/dist/types/utils/prosemirror/autojoin.d.ts +13 -0
- package/package.json +19 -19
- 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
package/dist/cjs/i18n/th.js
CHANGED
|
@@ -206,7 +206,7 @@ var _default = {
|
|
|
206
206
|
'fabric.editor.mediaGroupDeleteLabel': 'ลบ',
|
|
207
207
|
'fabric.editor.mention': 'กล่าวถึง',
|
|
208
208
|
'fabric.editor.mention.description': 'กล่าวถึงผู้ใช้เพื่อส่งการแจ้งเตือน',
|
|
209
|
-
'fabric.editor.mentionsAddLabel': '
|
|
209
|
+
'fabric.editor.mentionsAddLabel': 'ไอคอนเพื่อเพิ่มการอ้างถึง',
|
|
210
210
|
'fabric.editor.mentionsIconLabel': 'กล่าวถึง',
|
|
211
211
|
'fabric.editor.mergeCells': 'รวมช่องข้อมูล',
|
|
212
212
|
'fabric.editor.moreFormatting': 'การจัดรูปแบบเพิ่มเติม',
|
|
@@ -284,7 +284,7 @@ var _default = {
|
|
|
284
284
|
'fabric.editor.tooltip.nestedExpand': 'การขยายที่ซ้อนกัน',
|
|
285
285
|
'fabric.editor.tooltip.taskList': 'รายการดำเนินการ',
|
|
286
286
|
'fabric.editor.twoColumns': 'สองคอลัมน์',
|
|
287
|
-
'fabric.editor.typeAheadResultLabel': '
|
|
287
|
+
'fabric.editor.typeAheadResultLabel': 'ผลลัพธ์ในการพิมพ์ล่วงหน้า',
|
|
288
288
|
'fabric.editor.unableToOpenLink': 'ไม่สามารถเปิดลิงก์นี้ได้',
|
|
289
289
|
'fabric.editor.underline': 'ขีดเส้นใต้',
|
|
290
290
|
'fabric.editor.undo': 'เลิกทำ',
|
package/dist/cjs/i18n/tr.js
CHANGED
|
@@ -16,12 +16,12 @@ var _default = {
|
|
|
16
16
|
'fabric.editor.action': 'Yapılacaklar listesi',
|
|
17
17
|
'fabric.editor.action.description': 'Yapılacaklar listesi oluşturun ve atayın',
|
|
18
18
|
'fabric.editor.addAltText': 'Alternatif metin',
|
|
19
|
-
'fabric.editor.alignCenter': '
|
|
19
|
+
'fabric.editor.alignCenter': 'Ortaya Hizalanmış',
|
|
20
20
|
'fabric.editor.alignImageCenter': 'Ortaya hizala',
|
|
21
21
|
'fabric.editor.alignImageLeft': 'Sola hizala',
|
|
22
22
|
'fabric.editor.alignImageRight': 'Sağa hizala',
|
|
23
23
|
'fabric.editor.alignLeft': 'Sola hizala',
|
|
24
|
-
'fabric.editor.alignRight': '
|
|
24
|
+
'fabric.editor.alignRight': 'Sağa Hizalanmış',
|
|
25
25
|
'fabric.editor.alignment': 'Metin hizalama',
|
|
26
26
|
'fabric.editor.altText': 'Alternatif metin',
|
|
27
27
|
'fabric.editor.alttext.validation': 'Lütfen alt (alternatif metin) özniteliğindeki özel karakterleri kaldırın.',
|
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -284,7 +284,7 @@ var _default = {
|
|
|
284
284
|
'fabric.editor.tooltip.nestedExpand': 'nút mở rộng lồng nhau',
|
|
285
285
|
'fabric.editor.tooltip.taskList': 'một mục thao tác',
|
|
286
286
|
'fabric.editor.twoColumns': 'Hai cột',
|
|
287
|
-
'fabric.editor.typeAheadResultLabel': 'Kết quả
|
|
287
|
+
'fabric.editor.typeAheadResultLabel': 'Kết quả tự động điền',
|
|
288
288
|
'fabric.editor.unableToOpenLink': 'Không thể mở liên kết này',
|
|
289
289
|
'fabric.editor.underline': 'Gạch dưới',
|
|
290
290
|
'fabric.editor.undo': 'Hoàn tác',
|
package/dist/cjs/i18n/zh.js
CHANGED
|
@@ -160,6 +160,7 @@ var _default = {
|
|
|
160
160
|
'fabric.editor.heading5Description': '用于对列表项进行分组',
|
|
161
161
|
'fabric.editor.heading6': '标题 6',
|
|
162
162
|
'fabric.editor.heading6Description': '用于次级标题',
|
|
163
|
+
'fabric.editor.headingLink.hyperlinkIconBlogLabel': '博文',
|
|
163
164
|
'fabric.editor.headingLink.hyperlinkIconBugLabel': '缺陷',
|
|
164
165
|
'fabric.editor.headingLink.hyperlinkIconIssueLabel': '事务',
|
|
165
166
|
'fabric.editor.headingLink.hyperlinkIconPageLabel': '页面',
|
|
@@ -205,6 +206,7 @@ var _default = {
|
|
|
205
206
|
'fabric.editor.mediaGroupDeleteLabel': '删除',
|
|
206
207
|
'fabric.editor.mention': '提到',
|
|
207
208
|
'fabric.editor.mention.description': '提及某人以发送通知',
|
|
209
|
+
'fabric.editor.mentionsAddLabel': '“添加”图标',
|
|
208
210
|
'fabric.editor.mentionsIconLabel': '提及',
|
|
209
211
|
'fabric.editor.mergeCells': '合并单元格',
|
|
210
212
|
'fabric.editor.moreFormatting': '更多格式',
|
|
@@ -214,6 +216,7 @@ var _default = {
|
|
|
214
216
|
'fabric.editor.notePanel': '记录面板',
|
|
215
217
|
'fabric.editor.notePanel.description': '在彩色面板添加注释',
|
|
216
218
|
'fabric.editor.numberedColumn': '编号列',
|
|
219
|
+
'fabric.editor.off': '{formattingType}已关闭',
|
|
217
220
|
'fabric.editor.on': '{formattingType}已开启',
|
|
218
221
|
'fabric.editor.orderedList': '有序列表',
|
|
219
222
|
'fabric.editor.orderedList.description': '创建有序列表',
|
package/dist/cjs/index.js
CHANGED
|
@@ -373,6 +373,18 @@ Object.defineProperty(exports, "insertTaskDecision", {
|
|
|
373
373
|
return _commands5.insertTaskDecision;
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
|
+
Object.defineProperty(exports, "insertTaskDecisionCommand", {
|
|
377
|
+
enumerable: true,
|
|
378
|
+
get: function get() {
|
|
379
|
+
return _commands5.insertTaskDecisionCommand;
|
|
380
|
+
}
|
|
381
|
+
});
|
|
382
|
+
Object.defineProperty(exports, "isEmptyDocument", {
|
|
383
|
+
enumerable: true,
|
|
384
|
+
get: function get() {
|
|
385
|
+
return _utils.isEmptyDocument;
|
|
386
|
+
}
|
|
387
|
+
});
|
|
376
388
|
Object.defineProperty(exports, "isLinkAtPos", {
|
|
377
389
|
enumerable: true,
|
|
378
390
|
get: function get() {
|
|
@@ -40,7 +40,7 @@ function createNodeView(_ref) {
|
|
|
40
40
|
// nodeView if DOM structure has nested plain "div"s, it doesn't see the
|
|
41
41
|
// difference between them and it kills the nodeView
|
|
42
42
|
|
|
43
|
-
domRef.classList.add("".concat(nodeViewParams.node.type.name, "View-content-wrap"), "
|
|
43
|
+
domRef.classList.add("".concat(nodeViewParams.node.type.name, "View-content-wrap"), "inlineNodeView"); // This util is shared for tracking rendering, and the ErrorBoundary that
|
|
44
44
|
// is setup to wrap the Component when rendering
|
|
45
45
|
// NOTE: This is not a prosemirror dispatch
|
|
46
46
|
|
|
@@ -17,5 +17,5 @@ var _templateObject;
|
|
|
17
17
|
|
|
18
18
|
// For reasoning behind styles, see comments in:
|
|
19
19
|
// ./getInlineNodeViewProducer -> portalChildren()
|
|
20
|
-
var InlineNodeViewSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .
|
|
20
|
+
var InlineNodeViewSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .inlineNodeView {\n display: inline;\n user-select: all;\n }\n\n &.ua-chrome .inlineNodeView > span {\n user-select: none;\n }\n\n .inlineNodeViewAddZeroWidthSpace {\n ::after {\n content: '", "';\n }\n }\n"])), _utils.ZERO_WIDTH_SPACE);
|
|
21
21
|
exports.InlineNodeViewSharedStyles = InlineNodeViewSharedStyles;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.isInlineNodeView = exports.inlineCursorTargetStateKey = exports.
|
|
6
|
+
exports.isInlineNodeView = exports.inlineCursorTargetStateKey = exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
var _prosemirrorView = require("prosemirror-view");
|
|
9
9
|
|
|
@@ -24,20 +24,6 @@ var isInlineNodeView = function isInlineNodeView(node) {
|
|
|
24
24
|
|
|
25
25
|
exports.isInlineNodeView = isInlineNodeView;
|
|
26
26
|
|
|
27
|
-
var findInlineNodeViewAfter = function findInlineNodeViewAfter($pos) {
|
|
28
|
-
return isInlineNodeView($pos.nodeAfter);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
exports.findInlineNodeViewAfter = findInlineNodeViewAfter;
|
|
32
|
-
|
|
33
|
-
var findInlineNodeViewBefore = function findInlineNodeViewBefore($pos) {
|
|
34
|
-
return isInlineNodeView($pos.nodeBefore) || // This prevents the cursor from disappearing when at the beginning
|
|
35
|
-
// of a paragraph and next to an inline node view.
|
|
36
|
-
$pos.parentOffset === 0 && isInlineNodeView($pos.nodeAfter);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
exports.findInlineNodeViewBefore = findInlineNodeViewBefore;
|
|
40
|
-
|
|
41
27
|
var _default = function _default() {
|
|
42
28
|
return new _safePlugin.SafePlugin({
|
|
43
29
|
key: inlineCursorTargetStateKey,
|
|
@@ -48,20 +34,27 @@ var _default = function _default() {
|
|
|
48
34
|
};
|
|
49
35
|
},
|
|
50
36
|
apply: function apply(tr) {
|
|
51
|
-
var selection = tr.selection
|
|
37
|
+
var selection = tr.selection,
|
|
38
|
+
doc = tr.doc;
|
|
52
39
|
var $from = selection.$from,
|
|
53
40
|
$to = selection.$to;
|
|
54
41
|
|
|
55
42
|
if (selection && (0, _utils2.isTextSelection)(selection)) {
|
|
56
|
-
var hasInlineNodeViewAfter =
|
|
57
|
-
var hasInlineNodeViewBefore =
|
|
58
|
-
|
|
59
|
-
//
|
|
60
|
-
//
|
|
43
|
+
var hasInlineNodeViewAfter = isInlineNodeView($from.nodeAfter);
|
|
44
|
+
var hasInlineNodeViewBefore = isInlineNodeView($from.nodeBefore);
|
|
45
|
+
var isAtStart = $from.parentOffset === 0 && isInlineNodeView($from.nodeAfter);
|
|
46
|
+
var isAtEnd = doc.resolve($from.pos).node().lastChild === $from.nodeBefore && isInlineNodeView($from.nodeBefore); // Create editable decoration widgets either side of the cursor to allow
|
|
47
|
+
// text input.
|
|
61
48
|
// We check beforeInput events below to prevent content
|
|
62
49
|
// being added to the decorations.
|
|
63
|
-
|
|
64
|
-
|
|
50
|
+
//
|
|
51
|
+
// This prevents issues with the cursor disappearing
|
|
52
|
+
// or appearing in the wrong place when;
|
|
53
|
+
// - positioned between inline nodes (chrome + firefox)
|
|
54
|
+
// - positioned between the beginning of another node and an inline node (firefox)
|
|
55
|
+
// - positioned between an inline node and the end of a node (chrome)
|
|
56
|
+
|
|
57
|
+
if ((hasInlineNodeViewAfter || isAtEnd) && (hasInlineNodeViewBefore || isAtStart)) {
|
|
65
58
|
var createWidget = function createWidget(side) {
|
|
66
59
|
var node = document.createElement('span');
|
|
67
60
|
node.contentEditable = 'true';
|
|
@@ -9,6 +9,8 @@ exports.messages = exports.BlockTypeButton = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
|
|
12
|
+
var _react2 = require("@emotion/react");
|
|
13
|
+
|
|
12
14
|
var _reactIntlNext = require("react-intl-next");
|
|
13
15
|
|
|
14
16
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
@@ -21,6 +23,7 @@ var _styles = require("../../../../ui/styles");
|
|
|
21
23
|
|
|
22
24
|
var _types = require("../../types");
|
|
23
25
|
|
|
26
|
+
/** @jsx jsx */
|
|
24
27
|
var messages = (0, _reactIntlNext.defineMessages)({
|
|
25
28
|
textStyles: {
|
|
26
29
|
id: 'fabric.editor.textStyles',
|
|
@@ -32,7 +35,7 @@ exports.messages = messages;
|
|
|
32
35
|
|
|
33
36
|
var BlockTypeButton = function BlockTypeButton(props) {
|
|
34
37
|
var labelTextStyles = props.formatMessage(messages.textStyles);
|
|
35
|
-
return
|
|
38
|
+
return (0, _react2.jsx)(_ToolbarButton.default, {
|
|
36
39
|
spacing: props.isReducedSpacing ? 'none' : 'default',
|
|
37
40
|
selected: props.selected,
|
|
38
41
|
className: "block-type-btn",
|
|
@@ -42,16 +45,18 @@ var BlockTypeButton = function BlockTypeButton(props) {
|
|
|
42
45
|
"aria-label": labelTextStyles,
|
|
43
46
|
"aria-haspopup": true,
|
|
44
47
|
"aria-expanded": props['aria-expanded'],
|
|
45
|
-
iconAfter:
|
|
46
|
-
|
|
47
|
-
}, props.isSmall &&
|
|
48
|
+
iconAfter: (0, _react2.jsx)("span", {
|
|
49
|
+
css: [_styles.wrapperStyle, props.isSmall && _styles.wrapperSmallStyle]
|
|
50
|
+
}, props.isSmall && (0, _react2.jsx)(_textStyle.default, {
|
|
48
51
|
label: labelTextStyles
|
|
49
|
-
}),
|
|
52
|
+
}), (0, _react2.jsx)("span", {
|
|
53
|
+
css: _styles.expandIconWrapperStyle
|
|
54
|
+
}, (0, _react2.jsx)(_chevronDown.default, {
|
|
50
55
|
label: ""
|
|
51
56
|
})))
|
|
52
|
-
}, !props.isSmall &&
|
|
53
|
-
|
|
54
|
-
},
|
|
57
|
+
}, !props.isSmall && (0, _react2.jsx)("span", {
|
|
58
|
+
css: [_styles.buttonContentStyle, props.isReducedSpacing && _styles.buttonContentReducedSpacingStyle]
|
|
59
|
+
}, (0, _react2.jsx)(_reactIntlNext.FormattedMessage, props.title || _types.NORMAL_TEXT.title), (0, _react2.jsx)("div", {
|
|
55
60
|
style: {
|
|
56
61
|
overflow: 'hidden',
|
|
57
62
|
height: 0
|
|
@@ -91,8 +91,8 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
91
91
|
value: blockType,
|
|
92
92
|
label: formatMessage(blockType.title),
|
|
93
93
|
key: "".concat(blockType.name, "-").concat(index),
|
|
94
|
-
elemAfter: (0, _react2.jsx)(
|
|
95
|
-
|
|
94
|
+
elemAfter: (0, _react2.jsx)("div", {
|
|
95
|
+
css: [_styled.keyboardShortcut, isActive && _styled.keyboardShortcutSelect]
|
|
96
96
|
}, (0, _keymaps.tooltip)((0, _keymaps.findKeymapByDescription)(blockType.title.defaultMessage))),
|
|
97
97
|
isActive: isActive
|
|
98
98
|
};
|
|
@@ -149,7 +149,9 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
149
149
|
|
|
150
150
|
if (!this.props.isDisabled && !blockTypesDisabled) {
|
|
151
151
|
var items = this.createItems();
|
|
152
|
-
return (0, _react2.jsx)(
|
|
152
|
+
return (0, _react2.jsx)("span", {
|
|
153
|
+
css: _styles.wrapperStyle
|
|
154
|
+
}, (0, _react2.jsx)(_DropdownMenu.default, {
|
|
153
155
|
items: items,
|
|
154
156
|
onOpenChange: this.onOpenChange,
|
|
155
157
|
onItemActivated: this.handleSelectBlockType,
|
|
@@ -170,10 +172,14 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
170
172
|
onClick: this.handleTriggerClick,
|
|
171
173
|
formatMessage: formatMessage,
|
|
172
174
|
"aria-expanded": active
|
|
173
|
-
}, longestDropdownMenuItem)), (0, _react2.jsx)(
|
|
175
|
+
}, longestDropdownMenuItem)), (0, _react2.jsx)("span", {
|
|
176
|
+
css: _styles.separatorStyles
|
|
177
|
+
}));
|
|
174
178
|
}
|
|
175
179
|
|
|
176
|
-
return (0, _react2.jsx)(
|
|
180
|
+
return (0, _react2.jsx)("span", {
|
|
181
|
+
css: _styles.wrapperStyle
|
|
182
|
+
}, (0, _react2.jsx)(_blocktypeButton.BlockTypeButton, {
|
|
177
183
|
isSmall: isSmall,
|
|
178
184
|
isReducedSpacing: isReducedSpacing,
|
|
179
185
|
selected: active,
|
|
@@ -182,7 +188,9 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
182
188
|
onClick: this.handleTriggerClick,
|
|
183
189
|
formatMessage: formatMessage,
|
|
184
190
|
"aria-expanded": active
|
|
185
|
-
}, longestDropdownMenuItem), (0, _react2.jsx)(
|
|
191
|
+
}, longestDropdownMenuItem), (0, _react2.jsx)("span", {
|
|
192
|
+
css: _styles.separatorStyles
|
|
193
|
+
}));
|
|
186
194
|
}
|
|
187
195
|
}]);
|
|
188
196
|
return ToolbarBlockType;
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.keyboardShortcutSelect = exports.keyboardShortcut = exports.blockTypeMenuItemStyle = void 0;
|
|
9
9
|
|
|
10
10
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
11
11
|
|
|
@@ -13,13 +13,11 @@ var _react = require("@emotion/react");
|
|
|
13
13
|
|
|
14
14
|
var _colors = require("@atlaskit/theme/colors");
|
|
15
15
|
|
|
16
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
17
|
-
|
|
18
16
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
19
17
|
|
|
20
18
|
var _styles2 = require("../../../../ui/styles");
|
|
21
19
|
|
|
22
|
-
var _templateObject, _templateObject2;
|
|
20
|
+
var _templateObject, _templateObject2, _templateObject3;
|
|
23
21
|
|
|
24
22
|
var blockTypeMenuItemStyle = function blockTypeMenuItemStyle(tagName, selected) {
|
|
25
23
|
// TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
|
|
@@ -30,7 +28,7 @@ var blockTypeMenuItemStyle = function blockTypeMenuItemStyle(tagName, selected)
|
|
|
30
28
|
};
|
|
31
29
|
|
|
32
30
|
exports.blockTypeMenuItemStyle = blockTypeMenuItemStyle;
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
exports.
|
|
31
|
+
var keyboardShortcut = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n ", "\n margin-left: 16px;\n"])), _styles2.shortcutStyle);
|
|
32
|
+
exports.keyboardShortcut = keyboardShortcut;
|
|
33
|
+
var keyboardShortcutSelect = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), _colors.N400);
|
|
34
|
+
exports.keyboardShortcutSelect = keyboardShortcutSelect;
|
|
@@ -5,9 +5,8 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.InlineCardComponent =
|
|
9
|
-
|
|
10
|
-
var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
|
|
8
|
+
exports.InlineCardComponent = void 0;
|
|
9
|
+
exports.InlineCardNodeView = InlineCardNodeView;
|
|
11
10
|
|
|
12
11
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
12
|
|
|
@@ -31,14 +30,10 @@ var _smartCard = require("@atlaskit/smart-card");
|
|
|
31
30
|
|
|
32
31
|
var _ui = require("@atlaskit/editor-common/ui");
|
|
33
32
|
|
|
34
|
-
var _utils = require("@atlaskit/editor-common/utils");
|
|
35
|
-
|
|
36
33
|
var _rafSchd = _interopRequireDefault(require("raf-schd"));
|
|
37
34
|
|
|
38
35
|
var _genericCard = require("./genericCard");
|
|
39
36
|
|
|
40
|
-
var _ReactNodeView2 = _interopRequireDefault(require("../../../nodeviews/ReactNodeView"));
|
|
41
|
-
|
|
42
37
|
var _actions = require("../pm-plugins/actions");
|
|
43
38
|
|
|
44
39
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
@@ -103,7 +98,7 @@ var InlineCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
103
98
|
url = _node$attrs.url,
|
|
104
99
|
data = _node$attrs.data;
|
|
105
100
|
|
|
106
|
-
var card = /*#__PURE__*/_react.default.createElement("span",
|
|
101
|
+
var card = /*#__PURE__*/_react.default.createElement("span", {
|
|
107
102
|
className: "card"
|
|
108
103
|
}, /*#__PURE__*/_react.default.createElement(_smartCard.Card, {
|
|
109
104
|
key: url,
|
|
@@ -114,7 +109,7 @@ var InlineCardComponent = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
114
109
|
container: this.scrollContainer,
|
|
115
110
|
onResolve: this.onResolve,
|
|
116
111
|
inlinePreloaderStyle: useAlternativePreloader ? 'on-right-without-skeleton' : undefined
|
|
117
|
-
}))
|
|
112
|
+
})); // [WS-2307]: we only render card wrapped into a Provider when the value is ready,
|
|
118
113
|
// otherwise if we got data, we can render the card directly since it doesn't need the Provider
|
|
119
114
|
|
|
120
115
|
|
|
@@ -132,36 +127,15 @@ exports.InlineCardComponent = InlineCardComponent;
|
|
|
132
127
|
});
|
|
133
128
|
var WrappedInlineCard = (0, _genericCard.Card)(InlineCardComponent, _ui.UnsupportedInline);
|
|
134
129
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
value: function createDomRef() {
|
|
148
|
-
return (0, _get2.default)((0, _getPrototypeOf2.default)(InlineCard.prototype), "createDomRef", this).call(this, {
|
|
149
|
-
displayInlineBlockForInlineNodes: false
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
}, {
|
|
153
|
-
key: "render",
|
|
154
|
-
value: function render() {
|
|
155
|
-
var useAlternativePreloader = this.reactComponentProps.useAlternativePreloader;
|
|
156
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(WrappedInlineCard, {
|
|
157
|
-
node: this.node,
|
|
158
|
-
view: this.view,
|
|
159
|
-
getPos: this.getPos,
|
|
160
|
-
useAlternativePreloader: useAlternativePreloader
|
|
161
|
-
}));
|
|
162
|
-
}
|
|
163
|
-
}]);
|
|
164
|
-
return InlineCard;
|
|
165
|
-
}(_ReactNodeView2.default);
|
|
166
|
-
|
|
167
|
-
exports.InlineCard = InlineCard;
|
|
130
|
+
function InlineCardNodeView(props) {
|
|
131
|
+
var useAlternativePreloader = props.useAlternativePreloader,
|
|
132
|
+
node = props.node,
|
|
133
|
+
view = props.view,
|
|
134
|
+
getPos = props.getPos;
|
|
135
|
+
return /*#__PURE__*/_react.default.createElement(WrappedInlineCard, {
|
|
136
|
+
node: node,
|
|
137
|
+
view: view,
|
|
138
|
+
getPos: getPos,
|
|
139
|
+
useAlternativePreloader: useAlternativePreloader
|
|
140
|
+
});
|
|
141
|
+
}
|
|
@@ -17,6 +17,8 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
|
17
17
|
|
|
18
18
|
var _rafSchd = _interopRequireDefault(require("raf-schd"));
|
|
19
19
|
|
|
20
|
+
var _getInlineNodeViewProducer = require("../../../nodeviews/getInlineNodeViewProducer");
|
|
21
|
+
|
|
20
22
|
var _reducers = _interopRequireDefault(require("./reducers"));
|
|
21
23
|
|
|
22
24
|
var _pluginKey = require("./plugin-key");
|
|
@@ -34,12 +36,7 @@ var _inlineCard = require("../nodeviews/inlineCard");
|
|
|
34
36
|
var _analytics = require("../../../plugins/analytics");
|
|
35
37
|
|
|
36
38
|
var createPlugin = function createPlugin(options) {
|
|
37
|
-
return function (
|
|
38
|
-
var portalProviderAPI = _ref.portalProviderAPI,
|
|
39
|
-
eventDispatcher = _ref.eventDispatcher,
|
|
40
|
-
providerFactory = _ref.providerFactory,
|
|
41
|
-
dispatchAnalyticsEvent = _ref.dispatchAnalyticsEvent,
|
|
42
|
-
featureFlags = _ref.featureFlags;
|
|
39
|
+
return function (pmPluginFactoryParams) {
|
|
43
40
|
var platform = options.platform,
|
|
44
41
|
allowResizing = options.allowResizing,
|
|
45
42
|
useAlternativePreloader = options.useAlternativePreloader,
|
|
@@ -48,8 +45,8 @@ var createPlugin = function createPlugin(options) {
|
|
|
48
45
|
return new _safePlugin.SafePlugin({
|
|
49
46
|
state: {
|
|
50
47
|
init: function init() {
|
|
51
|
-
var viewChangingExperimentToolbarStyle = featureFlags.viewChangingExperimentToolbarStyle;
|
|
52
|
-
dispatchAnalyticsEvent({
|
|
48
|
+
var viewChangingExperimentToolbarStyle = pmPluginFactoryParams.featureFlags.viewChangingExperimentToolbarStyle;
|
|
49
|
+
pmPluginFactoryParams.dispatchAnalyticsEvent({
|
|
53
50
|
eventType: _analytics.EVENT_TYPE.OPERATIONAL,
|
|
54
51
|
action: _analytics.ACTION.EXPOSED,
|
|
55
52
|
actionSubject: _analytics.ACTION_SUBJECT.FEATURE,
|
|
@@ -92,7 +89,7 @@ var createPlugin = function createPlugin(options) {
|
|
|
92
89
|
};
|
|
93
90
|
|
|
94
91
|
var rafCancellationCallbacks = [];
|
|
95
|
-
providerFactory.subscribe('cardProvider', subscriptionHandler);
|
|
92
|
+
pmPluginFactoryParams.providerFactory.subscribe('cardProvider', subscriptionHandler);
|
|
96
93
|
return {
|
|
97
94
|
update: function update(view, prevState) {
|
|
98
95
|
var currentState = (0, _state.getPluginState)(view.state);
|
|
@@ -130,20 +127,22 @@ var createPlugin = function createPlugin(options) {
|
|
|
130
127
|
rafCancellationCallbacks.forEach(function (cancellationCallback) {
|
|
131
128
|
return cancellationCallback();
|
|
132
129
|
});
|
|
133
|
-
providerFactory.unsubscribe('cardProvider', subscriptionHandler);
|
|
130
|
+
pmPluginFactoryParams.providerFactory.unsubscribe('cardProvider', subscriptionHandler);
|
|
134
131
|
}
|
|
135
132
|
};
|
|
136
133
|
},
|
|
137
134
|
props: {
|
|
138
135
|
nodeViews: {
|
|
139
|
-
inlineCard:
|
|
140
|
-
|
|
136
|
+
inlineCard: (0, _getInlineNodeViewProducer.getInlineNodeViewProducer)({
|
|
137
|
+
pmPluginFactoryParams: pmPluginFactoryParams,
|
|
138
|
+
Component: _inlineCard.InlineCardNodeView,
|
|
139
|
+
extraComponentProps: {
|
|
141
140
|
useAlternativePreloader: useAlternativePreloader
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
return new _inlineCard.InlineCard(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, undefined, true, undefined, hasIntlContext).init();
|
|
145
|
-
},
|
|
141
|
+
}
|
|
142
|
+
}),
|
|
146
143
|
blockCard: function blockCard(node, view, getPos) {
|
|
144
|
+
var portalProviderAPI = pmPluginFactoryParams.portalProviderAPI,
|
|
145
|
+
eventDispatcher = pmPluginFactoryParams.eventDispatcher;
|
|
147
146
|
var reactComponentProps = {
|
|
148
147
|
platform: platform
|
|
149
148
|
};
|
|
@@ -151,6 +150,9 @@ var createPlugin = function createPlugin(options) {
|
|
|
151
150
|
return new _blockCard.BlockCard(node, view, getPos, portalProviderAPI, eventDispatcher, reactComponentProps, undefined, true, undefined, hasIntlContext).init();
|
|
152
151
|
},
|
|
153
152
|
embedCard: function embedCard(node, view, getPos) {
|
|
153
|
+
var portalProviderAPI = pmPluginFactoryParams.portalProviderAPI,
|
|
154
|
+
eventDispatcher = pmPluginFactoryParams.eventDispatcher,
|
|
155
|
+
dispatchAnalyticsEvent = pmPluginFactoryParams.dispatchAnalyticsEvent;
|
|
154
156
|
var reactComponentProps = {
|
|
155
157
|
eventDispatcher: eventDispatcher,
|
|
156
158
|
allowResizing: allowResizing,
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.LinkToolbarButtonGroup = void 0;
|
|
9
9
|
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
13
13
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
var _button = require("@atlaskit/button");
|
|
19
19
|
|
|
@@ -21,21 +21,18 @@ var _Button = _interopRequireDefault(require("../../floating-toolbar/ui/Button")
|
|
|
21
21
|
|
|
22
22
|
var _excluded = ["disabled"];
|
|
23
23
|
|
|
24
|
-
var _templateObject, _templateObject2;
|
|
24
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Applying `pointer-events: none;` when disabled allows the Tooltip to be displayed
|
|
28
28
|
*/
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
return disabled ? 'none' : 'auto';
|
|
32
|
-
});
|
|
33
|
-
exports.StyledButton = StyledButton;
|
|
29
|
+
var buttonStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n pointer-events: auto;\n"])));
|
|
30
|
+
var buttonStyleNoneEvent = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n pointer-events: none;\n"])));
|
|
34
31
|
|
|
35
|
-
var DisallowedWrapper = function DisallowedWrapper(
|
|
36
|
-
var disabled =
|
|
37
|
-
props = (0, _objectWithoutProperties2.default)(
|
|
38
|
-
return
|
|
32
|
+
var DisallowedWrapper = function DisallowedWrapper(_ref) {
|
|
33
|
+
var disabled = _ref.disabled,
|
|
34
|
+
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
35
|
+
return (0, _react2.jsx)("div", props);
|
|
39
36
|
};
|
|
40
37
|
/**
|
|
41
38
|
* The button requires `pointer-events: none;` in order to fix the tooltip, hence
|
|
@@ -43,27 +40,27 @@ var DisallowedWrapper = function DisallowedWrapper(_ref2) {
|
|
|
43
40
|
*/
|
|
44
41
|
|
|
45
42
|
|
|
46
|
-
var
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
return /*#__PURE__*/_react.default.createElement(StyledDisallowedWrapper, {
|
|
43
|
+
var defaultWrapperStyle = (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n cursor: pointer;\n"])));
|
|
44
|
+
var disallowedWrapperStyle = (0, _react2.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n cursor: not-allowed;\n"])));
|
|
45
|
+
|
|
46
|
+
var LinkToolbarButtonGroup = function LinkToolbarButtonGroup(_ref2) {
|
|
47
|
+
var options = _ref2.options;
|
|
48
|
+
return (0, _react2.jsx)(_button.ButtonGroup, null, options.map(function (_ref3) {
|
|
49
|
+
var onClick = _ref3.onClick,
|
|
50
|
+
selected = _ref3.selected,
|
|
51
|
+
disabled = _ref3.disabled,
|
|
52
|
+
testId = _ref3.testId,
|
|
53
|
+
tooltipContent = _ref3.tooltipContent,
|
|
54
|
+
title = _ref3.title,
|
|
55
|
+
Icon = _ref3.icon;
|
|
56
|
+
return (0, _react2.jsx)(DisallowedWrapper, {
|
|
57
|
+
css: disabled ? disallowedWrapperStyle : defaultWrapperStyle,
|
|
62
58
|
key: testId,
|
|
63
59
|
disabled: disabled
|
|
64
|
-
},
|
|
60
|
+
}, (0, _react2.jsx)(_Button.default, {
|
|
61
|
+
css: disabled ? buttonStyleNoneEvent : buttonStyle,
|
|
65
62
|
title: title,
|
|
66
|
-
icon:
|
|
63
|
+
icon: (0, _react2.jsx)(Icon, {
|
|
67
64
|
size: "medium",
|
|
68
65
|
label: title
|
|
69
66
|
}),
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.default = EmojiNode;
|
|
9
7
|
|
|
10
|
-
var _react =
|
|
8
|
+
var _react = require("@emotion/react");
|
|
11
9
|
|
|
12
10
|
var _styles = require("../../../../ui/styles");
|
|
13
11
|
|
|
14
12
|
var _emoji = require("@atlaskit/editor-common/emoji");
|
|
15
13
|
|
|
14
|
+
/** @jsx jsx */
|
|
16
15
|
function EmojiNode(props) {
|
|
17
|
-
return
|
|
16
|
+
return (0, _react.jsx)("span", {
|
|
17
|
+
css: _styles.clickSelectWrapperStyle
|
|
18
|
+
}, (0, _react.jsx)(_emoji.Emoji, props));
|
|
18
19
|
}
|
|
@@ -30,6 +30,11 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
30
30
|
|
|
31
31
|
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; } }
|
|
32
32
|
|
|
33
|
+
// getInlineNodeViewProducer is a new api to use instead of ReactNodeView
|
|
34
|
+
// when creating inline node views, however, it is difficult to test the impact
|
|
35
|
+
// on selections when migrating inlineExtension to use the new api.
|
|
36
|
+
// The ReactNodeView api will be visited in the second phase of the selections
|
|
37
|
+
// project whilst investigating block nodes. We will revisit the Extension node view there too.
|
|
33
38
|
var ExtensionNode = /*#__PURE__*/function (_ReactNodeView) {
|
|
34
39
|
(0, _inherits2.default)(ExtensionNode, _ReactNodeView);
|
|
35
40
|
|