@atlaskit/editor-core 176.0.3 → 177.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 +2 -2
- package/CHANGELOG.md +108 -0
- package/dist/cjs/create-editor/ReactEditorView.js +3 -1
- package/dist/cjs/create-editor/create-plugins-list.js +9 -6
- package/dist/cjs/create-editor/messages.js +17 -0
- package/dist/cjs/i18n/en.js +2 -2
- package/dist/cjs/i18n/en_GB.js +2 -2
- package/dist/cjs/i18n/en_ZZ.js +2 -2
- package/dist/cjs/i18n/index.js +4 -4
- package/dist/cjs/i18n/languages.js +9 -4
- package/dist/cjs/labs/next/presets/mobile.js +2 -2
- package/dist/cjs/labs/next/presets/preset.js +38 -6
- package/dist/cjs/plugins/annotation/nodeviews/index.js +1 -0
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/index.js +6 -1
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +5 -1
- package/dist/cjs/plugins/card/pm-plugins/doc.js +18 -29
- package/dist/cjs/plugins/card/pm-plugins/main.js +7 -21
- package/dist/cjs/plugins/card/toolbar.js +24 -8
- package/dist/cjs/plugins/card/ui/EditLinkToolbar.js +9 -5
- package/dist/cjs/plugins/card/ui/LinkToolbarAppearance.js +19 -53
- package/dist/cjs/plugins/card/utils.js +17 -3
- package/dist/cjs/plugins/collab-edit/actions.js +3 -3
- package/dist/cjs/plugins/copy-button/toolbar.js +5 -3
- package/dist/cjs/plugins/date/index.js +1 -7
- package/dist/cjs/plugins/date/ui/DatePicker/index.js +1 -2
- package/dist/cjs/plugins/emoji/index.js +7 -14
- package/dist/cjs/plugins/expand/pm-plugins/main.js +4 -1
- package/dist/cjs/plugins/expand/toolbar.js +1 -0
- package/dist/cjs/plugins/extension/commands.js +17 -2
- package/dist/cjs/plugins/extension/pm-plugins/main.js +10 -0
- package/dist/cjs/plugins/extension/toolbar.js +49 -7
- package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +11 -11
- package/dist/cjs/plugins/find-replace/ui/FindReplaceToolbarButton.js +7 -2
- package/dist/cjs/plugins/floating-toolbar/index.js +16 -4
- package/dist/cjs/plugins/floating-toolbar/ui/CheckboxModal.js +99 -0
- package/dist/cjs/plugins/floating-toolbar/ui/ConfirmationModal.js +10 -30
- package/dist/cjs/plugins/floating-toolbar/ui/Dropdown.js +16 -4
- package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +108 -55
- package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -2
- package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +29 -108
- package/dist/cjs/plugins/floating-toolbar/ui/SimpleModal.js +51 -0
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +27 -47
- package/dist/cjs/plugins/floating-toolbar/ui/messages.js +13 -3
- package/dist/cjs/plugins/floating-toolbar/utils.js +4 -19
- package/dist/cjs/plugins/help-dialog/index.js +3 -2
- package/dist/cjs/plugins/hyperlink/Toolbar.js +20 -1
- package/dist/cjs/plugins/hyperlink/ui/EditorLinkPicker/index.js +6 -3
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +5 -10
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -1
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -0
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/item.js +26 -12
- package/dist/cjs/plugins/layout/toolbar.js +1 -0
- package/dist/cjs/plugins/list/actions/outdent-list-items-selected.js +34 -4
- package/dist/cjs/plugins/list/commands/outdent-list.js +1 -1
- package/dist/cjs/plugins/list/index.js +6 -2
- package/dist/cjs/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +13 -2
- package/dist/cjs/plugins/list/pm-plugins/input-rules/index.js +5 -2
- package/dist/cjs/plugins/list/pm-plugins/main.js +32 -10
- package/dist/cjs/plugins/media/index.js +35 -0
- package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +7 -6
- package/dist/cjs/plugins/media/nodeviews/mediaInline.js +3 -1
- package/dist/cjs/plugins/media/nodeviews/mediaNodeUpdater.js +70 -64
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +3 -1
- package/dist/cjs/plugins/media/pm-plugins/main.js +6 -0
- package/dist/cjs/plugins/media/toolbar/index.js +3 -0
- package/dist/cjs/plugins/media/utils/media-single.js +19 -3
- package/dist/cjs/plugins/panel/toolbar.js +1 -0
- package/dist/cjs/plugins/panel/utils.js +1 -1
- package/dist/cjs/plugins/paste/index.js +2 -1
- package/dist/cjs/plugins/paste/pm-plugins/analytics.js +19 -3
- package/dist/cjs/plugins/paste/pm-plugins/main.js +1 -1
- package/dist/cjs/plugins/paste/util/index.js +2 -2
- package/dist/cjs/plugins/placeholder/index.js +24 -47
- package/dist/cjs/plugins/placeholder/styles.js +2 -4
- package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +7 -3
- package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -0
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +10 -5
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +5 -1
- package/dist/cjs/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +5 -1
- package/dist/cjs/plugins/toolbar-lists-indentation/ui/Toolbar.js +16 -6
- package/dist/cjs/plugins/type-ahead/index.js +2 -8
- package/dist/cjs/plugins/type-ahead/messages.js +44 -4
- package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +0 -1
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +17 -1
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +9 -4
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +8 -5
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +2 -1
- package/dist/cjs/plugins/type-ahead/utils.js +44 -2
- package/dist/cjs/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +6 -2
- package/dist/cjs/ui/Alignment/AlignmentButton/index.js +4 -1
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +1 -1
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
- package/dist/cjs/ui/CollapsedEditor/index.js +4 -2
- package/dist/cjs/ui/ColorPickerButton/index.js +2 -1
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +3 -4
- package/dist/cjs/ui/ConfigPanel/FormContent.js +2 -1
- package/dist/cjs/ui/ContentStyles/index.js +1 -1
- package/dist/cjs/ui/LinkSearch/ToolbarComponents.js +3 -1
- package/dist/cjs/ui/ToolbarArrowKeyNavigationProvider/index.js +55 -33
- package/dist/cjs/utils/commands.js +25 -13
- package/dist/cjs/utils/input-rules.js +26 -2
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +2 -1
- package/dist/es2019/create-editor/create-plugins-list.js +9 -6
- package/dist/es2019/create-editor/messages.js +8 -0
- package/dist/es2019/i18n/en.js +2 -2
- package/dist/es2019/i18n/en_GB.js +2 -2
- package/dist/es2019/i18n/en_ZZ.js +2 -2
- package/dist/es2019/i18n/index.js +4 -4
- package/dist/es2019/i18n/languages.js +9 -4
- package/dist/es2019/labs/next/presets/mobile.js +2 -2
- package/dist/es2019/labs/next/presets/preset.js +28 -7
- package/dist/es2019/plugins/annotation/nodeviews/index.js +1 -0
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/index.js +5 -1
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +4 -1
- package/dist/es2019/plugins/card/pm-plugins/doc.js +10 -19
- package/dist/es2019/plugins/card/pm-plugins/main.js +4 -19
- package/dist/es2019/plugins/card/toolbar.js +19 -2
- package/dist/es2019/plugins/card/ui/EditLinkToolbar.js +8 -6
- package/dist/es2019/plugins/card/ui/LinkToolbarAppearance.js +7 -36
- package/dist/es2019/plugins/card/utils.js +15 -2
- package/dist/es2019/plugins/collab-edit/actions.js +3 -3
- package/dist/es2019/plugins/copy-button/toolbar.js +5 -3
- package/dist/es2019/plugins/date/index.js +0 -7
- package/dist/es2019/plugins/date/ui/DatePicker/index.js +1 -2
- package/dist/es2019/plugins/emoji/index.js +7 -13
- package/dist/es2019/plugins/expand/pm-plugins/main.js +3 -3
- package/dist/es2019/plugins/expand/toolbar.js +1 -0
- package/dist/es2019/plugins/extension/commands.js +10 -1
- package/dist/es2019/plugins/extension/pm-plugins/main.js +10 -0
- package/dist/es2019/plugins/extension/toolbar.js +43 -8
- package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +11 -11
- package/dist/es2019/plugins/find-replace/ui/FindReplaceToolbarButton.js +7 -3
- package/dist/es2019/plugins/floating-toolbar/index.js +15 -5
- package/dist/es2019/plugins/floating-toolbar/ui/CheckboxModal.js +70 -0
- package/dist/es2019/plugins/floating-toolbar/ui/ConfirmationModal.js +8 -27
- package/dist/es2019/plugins/floating-toolbar/ui/Dropdown.js +17 -4
- package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +96 -50
- package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -1
- package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +29 -76
- package/dist/es2019/plugins/floating-toolbar/ui/SimpleModal.js +32 -0
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +26 -46
- package/dist/es2019/plugins/floating-toolbar/ui/messages.js +14 -4
- package/dist/es2019/plugins/floating-toolbar/utils.js +4 -17
- package/dist/es2019/plugins/help-dialog/index.js +2 -2
- package/dist/es2019/plugins/hyperlink/Toolbar.js +18 -2
- package/dist/es2019/plugins/hyperlink/ui/EditorLinkPicker/index.js +9 -2
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +5 -9
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -0
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/item.js +25 -12
- package/dist/es2019/plugins/layout/toolbar.js +1 -0
- package/dist/es2019/plugins/list/actions/outdent-list-items-selected.js +24 -4
- package/dist/es2019/plugins/list/commands/outdent-list.js +1 -1
- package/dist/es2019/plugins/list/index.js +7 -3
- package/dist/es2019/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +13 -2
- package/dist/es2019/plugins/list/pm-plugins/input-rules/index.js +5 -2
- package/dist/es2019/plugins/list/pm-plugins/main.js +31 -11
- package/dist/es2019/plugins/media/index.js +38 -0
- package/dist/es2019/plugins/media/nodeviews/mediaGroup.js +6 -5
- package/dist/es2019/plugins/media/nodeviews/mediaInline.js +3 -1
- package/dist/es2019/plugins/media/nodeviews/mediaNodeUpdater.js +2 -2
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +3 -1
- package/dist/es2019/plugins/media/pm-plugins/main.js +7 -0
- package/dist/es2019/plugins/media/toolbar/index.js +3 -0
- package/dist/es2019/plugins/media/utils/media-single.js +20 -3
- package/dist/es2019/plugins/panel/toolbar.js +1 -0
- package/dist/es2019/plugins/panel/utils.js +1 -1
- package/dist/es2019/plugins/paste/index.js +2 -1
- package/dist/es2019/plugins/paste/pm-plugins/analytics.js +15 -2
- package/dist/es2019/plugins/paste/pm-plugins/main.js +1 -1
- package/dist/es2019/plugins/paste/util/index.js +2 -2
- package/dist/es2019/plugins/placeholder/index.js +21 -47
- package/dist/es2019/plugins/placeholder/styles.js +1 -19
- package/dist/es2019/plugins/tasks-and-decisions/nodeviews/taskItem.js +6 -3
- package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -0
- package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +8 -7
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +4 -1
- package/dist/es2019/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +18 -12
- package/dist/es2019/plugins/toolbar-lists-indentation/ui/Toolbar.js +16 -7
- package/dist/es2019/plugins/type-ahead/index.js +2 -2
- package/dist/es2019/plugins/type-ahead/messages.js +44 -4
- package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +0 -1
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +17 -1
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadList.js +10 -5
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +8 -5
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +2 -1
- package/dist/es2019/plugins/type-ahead/utils.js +38 -0
- package/dist/es2019/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +6 -3
- package/dist/es2019/ui/Alignment/AlignmentButton/index.js +4 -2
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -2
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
- package/dist/es2019/ui/CollapsedEditor/index.js +3 -2
- package/dist/es2019/ui/ColorPickerButton/index.js +2 -1
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +4 -5
- package/dist/es2019/ui/ConfigPanel/FormContent.js +3 -3
- package/dist/es2019/ui/ContentStyles/index.js +7 -2
- package/dist/es2019/ui/LinkSearch/ToolbarComponents.js +1 -0
- package/dist/es2019/ui/ToolbarArrowKeyNavigationProvider/index.js +56 -34
- package/dist/es2019/utils/commands.js +26 -14
- package/dist/es2019/utils/input-rules.js +22 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +2 -1
- package/dist/esm/create-editor/create-plugins-list.js +9 -6
- package/dist/esm/create-editor/messages.js +8 -0
- package/dist/esm/i18n/en.js +2 -2
- package/dist/esm/i18n/en_GB.js +2 -2
- package/dist/esm/i18n/en_ZZ.js +2 -2
- package/dist/esm/i18n/index.js +4 -4
- package/dist/esm/i18n/languages.js +9 -4
- package/dist/esm/labs/next/presets/mobile.js +2 -2
- package/dist/esm/labs/next/presets/preset.js +36 -6
- package/dist/esm/plugins/annotation/nodeviews/index.js +1 -0
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/index.js +5 -1
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +4 -1
- package/dist/esm/plugins/card/pm-plugins/doc.js +10 -20
- package/dist/esm/plugins/card/pm-plugins/main.js +4 -17
- package/dist/esm/plugins/card/toolbar.js +24 -8
- package/dist/esm/plugins/card/ui/EditLinkToolbar.js +8 -6
- package/dist/esm/plugins/card/ui/LinkToolbarAppearance.js +9 -39
- package/dist/esm/plugins/card/utils.js +15 -2
- package/dist/esm/plugins/collab-edit/actions.js +3 -3
- package/dist/esm/plugins/copy-button/toolbar.js +5 -3
- package/dist/esm/plugins/date/index.js +1 -6
- package/dist/esm/plugins/date/ui/DatePicker/index.js +1 -2
- package/dist/esm/plugins/emoji/index.js +7 -13
- package/dist/esm/plugins/expand/pm-plugins/main.js +3 -3
- package/dist/esm/plugins/expand/toolbar.js +1 -0
- package/dist/esm/plugins/extension/commands.js +12 -1
- package/dist/esm/plugins/extension/pm-plugins/main.js +10 -0
- package/dist/esm/plugins/extension/toolbar.js +50 -8
- package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +11 -11
- package/dist/esm/plugins/find-replace/ui/FindReplaceToolbarButton.js +7 -3
- package/dist/esm/plugins/floating-toolbar/index.js +16 -4
- package/dist/esm/plugins/floating-toolbar/ui/CheckboxModal.js +75 -0
- package/dist/esm/plugins/floating-toolbar/ui/ConfirmationModal.js +11 -25
- package/dist/esm/plugins/floating-toolbar/ui/Dropdown.js +17 -4
- package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +100 -47
- package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +1 -1
- package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +29 -108
- package/dist/esm/plugins/floating-toolbar/ui/SimpleModal.js +30 -0
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +27 -47
- package/dist/esm/plugins/floating-toolbar/ui/messages.js +13 -3
- package/dist/esm/plugins/floating-toolbar/utils.js +4 -17
- package/dist/esm/plugins/help-dialog/index.js +3 -2
- package/dist/esm/plugins/hyperlink/Toolbar.js +20 -2
- package/dist/esm/plugins/hyperlink/ui/EditorLinkPicker/index.js +10 -3
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/index.js +5 -10
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-element-browser.js +2 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu-legacy.js +2 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/block-insert-menu.js +2 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.js +2 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +2 -0
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/item.js +25 -12
- package/dist/esm/plugins/layout/toolbar.js +1 -0
- package/dist/esm/plugins/list/actions/outdent-list-items-selected.js +30 -4
- package/dist/esm/plugins/list/commands/outdent-list.js +1 -1
- package/dist/esm/plugins/list/index.js +7 -3
- package/dist/esm/plugins/list/pm-plugins/input-rules/create-list-input-rule.js +13 -2
- package/dist/esm/plugins/list/pm-plugins/input-rules/index.js +5 -2
- package/dist/esm/plugins/list/pm-plugins/main.js +31 -11
- package/dist/esm/plugins/media/index.js +33 -0
- package/dist/esm/plugins/media/nodeviews/mediaGroup.js +7 -6
- package/dist/esm/plugins/media/nodeviews/mediaInline.js +3 -1
- package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +70 -64
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +3 -1
- package/dist/esm/plugins/media/pm-plugins/main.js +7 -0
- package/dist/esm/plugins/media/toolbar/index.js +3 -0
- package/dist/esm/plugins/media/utils/media-single.js +18 -3
- package/dist/esm/plugins/panel/toolbar.js +1 -0
- package/dist/esm/plugins/panel/utils.js +1 -1
- package/dist/esm/plugins/paste/index.js +2 -1
- package/dist/esm/plugins/paste/pm-plugins/analytics.js +15 -2
- package/dist/esm/plugins/paste/pm-plugins/main.js +1 -1
- package/dist/esm/plugins/paste/util/index.js +2 -2
- package/dist/esm/plugins/placeholder/index.js +23 -45
- package/dist/esm/plugins/placeholder/styles.js +1 -2
- package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +6 -3
- package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +1 -0
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +9 -5
- package/dist/esm/plugins/text-formatting/ui/Toolbar/hooks/formatting-icons.js +4 -1
- package/dist/esm/plugins/text-formatting/ui/Toolbar/single-toolbar-buttons.js +5 -1
- package/dist/esm/plugins/toolbar-lists-indentation/ui/Toolbar.js +16 -7
- package/dist/esm/plugins/type-ahead/index.js +2 -2
- package/dist/esm/plugins/type-ahead/messages.js +44 -4
- package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +0 -1
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +17 -1
- package/dist/esm/plugins/type-ahead/ui/TypeAheadList.js +10 -5
- package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +8 -5
- package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +2 -1
- package/dist/esm/plugins/type-ahead/utils.js +38 -0
- package/dist/esm/plugins/undo-redo/ui/ToolbarUndoRedo/index.js +6 -3
- package/dist/esm/ui/Alignment/AlignmentButton/index.js +4 -2
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -2
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +2 -1
- package/dist/esm/ui/CollapsedEditor/index.js +3 -2
- package/dist/esm/ui/ColorPickerButton/index.js +2 -1
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +4 -5
- package/dist/esm/ui/ConfigPanel/FormContent.js +3 -3
- package/dist/esm/ui/ContentStyles/index.js +1 -1
- package/dist/esm/ui/LinkSearch/ToolbarComponents.js +1 -0
- package/dist/esm/ui/ToolbarArrowKeyNavigationProvider/index.js +56 -34
- package/dist/esm/utils/commands.js +25 -13
- package/dist/esm/utils/input-rules.js +23 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/create-editor/messages.d.ts +7 -0
- package/dist/types/i18n/index.d.ts +4 -4
- package/dist/types/i18n/languages.d.ts +8 -3
- package/dist/types/labs/next/presets/cxhtml.d.ts +1 -1
- package/dist/types/labs/next/presets/default.d.ts +2 -2
- package/dist/types/labs/next/presets/mobile.d.ts +1 -1
- package/dist/types/labs/next/presets/preset.d.ts +10 -6
- package/dist/types/plugins/alignment/index.d.ts +2 -2
- package/dist/types/plugins/analytics/plugin.d.ts +2 -2
- package/dist/types/plugins/annotation/index.d.ts +2 -2
- package/dist/types/plugins/avatar-group/index.d.ts +4 -3
- package/dist/types/plugins/base/index.d.ts +2 -2
- package/dist/types/plugins/before-primaryToolbar/index.d.ts +4 -3
- package/dist/types/plugins/block-type/index.d.ts +2 -2
- package/dist/types/plugins/block-type/ui/ToolbarBlockType/index.d.ts +1 -1
- package/dist/types/plugins/breakout/index.d.ts +2 -2
- package/dist/types/plugins/caption/index.d.ts +2 -2
- package/dist/types/plugins/card/index.d.ts +2 -2
- package/dist/types/plugins/card/pm-plugins/doc.d.ts +4 -4
- package/dist/types/plugins/card/pm-plugins/main.d.ts +1 -1
- package/dist/types/plugins/card/ui/EditLinkToolbar.d.ts +1 -1
- package/dist/types/plugins/card/ui/LinkToolbarAppearance.d.ts +5 -5
- package/dist/types/plugins/card/utils.d.ts +2 -1
- package/dist/types/plugins/clear-marks-on-change-to-empty-document/index.d.ts +2 -2
- package/dist/types/plugins/clipboard/index.d.ts +2 -2
- package/dist/types/plugins/code-bidi-warning/index.d.ts +4 -3
- package/dist/types/plugins/code-block/index.d.ts +2 -2
- package/dist/types/plugins/collab-edit/actions.d.ts +1 -1
- package/dist/types/plugins/collab-edit/index.d.ts +2 -2
- package/dist/types/plugins/context-panel/index.d.ts +2 -2
- package/dist/types/plugins/copy-button/index.d.ts +2 -2
- package/dist/types/plugins/custom-autoformat/index.d.ts +2 -2
- package/dist/types/plugins/data-consumer/index.d.ts +2 -2
- package/dist/types/plugins/date/index.d.ts +2 -2
- package/dist/types/plugins/date/ui/DatePicker/index.d.ts +0 -1
- package/dist/types/plugins/editor-disabled/index.d.ts +2 -2
- package/dist/types/plugins/emoji/index.d.ts +2 -2
- package/dist/types/plugins/emoji/types.d.ts +2 -1
- package/dist/types/plugins/expand/index.d.ts +2 -2
- package/dist/types/plugins/expand/pm-plugins/main.d.ts +1 -0
- package/dist/types/plugins/extension/commands.d.ts +2 -0
- package/dist/types/plugins/extension/index.d.ts +2 -2
- package/dist/types/plugins/extension/toolbar.d.ts +10 -0
- package/dist/types/plugins/fake-text-cursor/index.d.ts +2 -2
- package/dist/types/plugins/feature-flags-context/index.d.ts +2 -2
- package/dist/types/plugins/feedback-dialog/index.d.ts +3 -2
- package/dist/types/plugins/find-replace/index.d.ts +4 -3
- package/dist/types/plugins/floating-toolbar/index.d.ts +2 -2
- package/dist/types/plugins/floating-toolbar/ui/CheckboxModal.d.ts +4 -0
- package/dist/types/plugins/floating-toolbar/ui/ConfirmationModal.d.ts +1 -8
- package/dist/types/plugins/floating-toolbar/ui/Dropdown.d.ts +3 -0
- package/dist/types/plugins/floating-toolbar/ui/DropdownMenu.d.ts +4 -0
- package/dist/types/plugins/floating-toolbar/ui/SimpleModal.d.ts +4 -0
- package/dist/types/plugins/floating-toolbar/ui/messages.d.ts +10 -0
- package/dist/types/plugins/floating-toolbar/ui/types.d.ts +1 -1
- package/dist/types/plugins/floating-toolbar/utils.d.ts +2 -3
- package/dist/types/plugins/fragment/index.d.ts +2 -2
- package/dist/types/plugins/grid/index.d.ts +2 -2
- package/dist/types/plugins/help-dialog/index.d.ts +2 -3
- package/dist/types/plugins/history/index.d.ts +2 -2
- package/dist/types/plugins/hyperlink/index.d.ts +2 -2
- package/dist/types/plugins/hyperlink/ui/EditorLinkPicker/index.d.ts +7 -2
- package/dist/types/plugins/hyperlink/ui/HyperlinkAddToolbar/index.d.ts +2 -1
- package/dist/types/plugins/image-upload/index.d.ts +2 -2
- package/dist/types/plugins/indentation/index.d.ts +2 -2
- package/dist/types/plugins/insert-block/index.d.ts +2 -2
- package/dist/types/plugins/insert-block/ui/ToolbarInsertBlock/dropdown-button.d.ts +1 -0
- package/dist/types/plugins/jira-issue/index.d.ts +2 -2
- package/dist/types/plugins/layout/index.d.ts +2 -2
- package/dist/types/plugins/list/actions/outdent-list-items-selected.d.ts +2 -2
- package/dist/types/plugins/list/index.d.ts +3 -2
- package/dist/types/plugins/list/pm-plugins/input-rules/create-list-input-rule.d.ts +3 -1
- package/dist/types/plugins/list/pm-plugins/main.d.ts +2 -2
- package/dist/types/plugins/list/types.d.ts +2 -0
- package/dist/types/plugins/macro/index.d.ts +2 -2
- package/dist/types/plugins/max-content-size/index.d.ts +2 -2
- package/dist/types/plugins/media/index.d.ts +2 -2
- package/dist/types/plugins/media/nodeviews/mediaNodeUpdater.d.ts +2 -1
- package/dist/types/plugins/media/pm-plugins/main.d.ts +1 -0
- package/dist/types/plugins/media/pm-plugins/types.d.ts +1 -0
- package/dist/types/plugins/mentions/index.d.ts +2 -2
- package/dist/types/plugins/mobile-dimensions/index.d.ts +2 -2
- package/dist/types/plugins/mobile-selection/mobile-selection-plugin.d.ts +2 -2
- package/dist/types/plugins/panel/index.d.ts +2 -2
- package/dist/types/plugins/paste/index.d.ts +3 -2
- package/dist/types/plugins/paste/pm-plugins/analytics.d.ts +1 -0
- package/dist/types/plugins/placeholder/index.d.ts +4 -4
- package/dist/types/plugins/placeholder/styles.d.ts +0 -1
- package/dist/types/plugins/placeholder-text/index.d.ts +2 -2
- package/dist/types/plugins/quick-insert/index.d.ts +2 -2
- package/dist/types/plugins/rule/index.d.ts +2 -2
- package/dist/types/plugins/save-on-enter/index.d.ts +3 -2
- package/dist/types/plugins/scroll-into-view/index.d.ts +2 -2
- package/dist/types/plugins/selection/index.d.ts +2 -2
- package/dist/types/plugins/status/index.d.ts +2 -2
- package/dist/types/plugins/submit-editor/index.d.ts +4 -2
- package/dist/types/plugins/tasks-and-decisions/index.d.ts +2 -2
- package/dist/types/plugins/text-color/index.d.ts +3 -2
- package/dist/types/plugins/text-formatting/index.d.ts +2 -2
- package/dist/types/plugins/toolbar-lists-indentation/index.d.ts +4 -3
- package/dist/types/plugins/type-ahead/index.d.ts +2 -2
- package/dist/types/plugins/type-ahead/messages.d.ts +41 -1
- package/dist/types/plugins/type-ahead/ui/TypeAheadList.d.ts +3 -1
- package/dist/types/plugins/type-ahead/ui/TypeAheadListItem.d.ts +1 -0
- package/dist/types/plugins/type-ahead/utils.d.ts +7 -1
- package/dist/types/plugins/undo-redo/index.d.ts +2 -2
- package/dist/types/plugins/unsupported-content/index.d.ts +2 -2
- package/dist/types/plugins/view-update-subscription/index.d.ts +2 -2
- package/dist/types/plugins/width/index.d.ts +2 -2
- package/dist/types/test-utils.d.ts +2 -1
- package/dist/types/types/editor-plugin.d.ts +1 -1
- package/dist/types/types/editor-props.d.ts +0 -2
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +3 -3
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/Fields/Fieldset.d.ts +2 -1
- package/dist/types/ui/ConfigPanel/FormContent.d.ts +2 -23
- package/dist/types/ui/ConfigPanel/types.d.ts +22 -0
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types/ui/LinkSearch/ToolbarComponents.d.ts +1 -0
- package/dist/types/ui/ToolbarArrowKeyNavigationProvider/index.d.ts +4 -1
- package/package.json +23 -23
- package/report.api.md +25 -16
- package/dist/cjs/plugins/card/ui/LinkToolbarIconDropdown.js +0 -181
- package/dist/cjs/plugins/card/ui/link-toolbar-icon-dropdown-options.js +0 -66
- package/dist/cjs/plugins/emoji/ui/EmojiContextProvider/index.js +0 -61
- package/dist/es2019/plugins/card/ui/LinkToolbarIconDropdown.js +0 -151
- package/dist/es2019/plugins/card/ui/link-toolbar-icon-dropdown-options.js +0 -51
- package/dist/es2019/plugins/emoji/ui/EmojiContextProvider/index.js +0 -21
- package/dist/esm/plugins/card/ui/LinkToolbarIconDropdown.js +0 -161
- package/dist/esm/plugins/card/ui/link-toolbar-icon-dropdown-options.js +0 -51
- package/dist/esm/plugins/emoji/ui/EmojiContextProvider/index.js +0 -46
- package/dist/types/plugins/card/ui/LinkToolbarIconDropdown.d.ts +0 -25
- package/dist/types/plugins/card/ui/link-toolbar-icon-dropdown-options.d.ts +0 -5
- package/dist/types/plugins/emoji/ui/EmojiContextProvider/index.d.ts +0 -13
package/.eslintrc.js
CHANGED
|
@@ -8,13 +8,13 @@ module.exports = {
|
|
|
8
8
|
target: 'packages/editor/editor-core/src/**/*',
|
|
9
9
|
from: `packages/editor/editor-core/src/plugins/*/!(types)*`,
|
|
10
10
|
message:
|
|
11
|
-
'[ELR101] Avoid importing dependencies from editor plugins. Move shared code to a common location.
|
|
11
|
+
'[ELR101] Avoid importing dependencies from editor plugins. Move shared code to a common location. go/elr101',
|
|
12
12
|
},
|
|
13
13
|
{
|
|
14
14
|
target: 'packages/editor/editor-core/src/**/*',
|
|
15
15
|
from: `packages/editor/editor-core/src/plugins/*/!(types)**/*`,
|
|
16
16
|
message:
|
|
17
|
-
'[ELR101] Avoid importing dependencies from editor plugins. Move shared code to a common location.
|
|
17
|
+
'[ELR101] Avoid importing dependencies from editor plugins. Move shared code to a common location. go/elr101',
|
|
18
18
|
},
|
|
19
19
|
],
|
|
20
20
|
},
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,113 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 177.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- [`ac1c880cf4c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ac1c880cf4c) - [ux] ED-12395 - Remove the keyboard accessible date picker feature flag, which has been 100% rolled out
|
|
8
|
+
|
|
9
|
+
## **DEPRECATION WARNING:**
|
|
10
|
+
|
|
11
|
+
There's two deprecations in this change:
|
|
12
|
+
|
|
13
|
+
### 1. Remove `keyboardAccessibleDatepicker` and the `allowKeyboardAccessibleDatepicker` feature flag
|
|
14
|
+
|
|
15
|
+
Now that this has been fully rolled out, this feature flag is no longer required. The if-statement that depends on this feature flag was also removed in point 2 below:
|
|
16
|
+
|
|
17
|
+
### 2. Remove the `showTextField` prop on the DatePicker
|
|
18
|
+
|
|
19
|
+
This was exclusively used to conditionally render the `DatePickerInput`. Its usage was always set to `true` in code or through the feature flag that has now been rolled out. Thus, this deprecation simplifies the API.
|
|
20
|
+
|
|
21
|
+
Since no code related to this feature flag remains, there are no inline deprecation warnings.
|
|
22
|
+
|
|
23
|
+
- [`5d317ed8aa3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5d317ed8aa3) - [ux] ED-15882: Implement custom starting numbers for orderedList nodes in adf-schema, editor, renderer, transformers behind restartNumberedLists feature flag. Users will be able to set a custom starting number when typing to create a numbered list in the Editor and this will be persisted across Renderer and other format transformations.
|
|
24
|
+
|
|
25
|
+
Note: restartNumberedLists will be off by default. To enable it, consumers will need to set <Editor featureFlags={{ restartNumberedLists: true }}> or <Renderer featureFlags={{ restartNumberedLists: true }}>
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- [`5307b130e91`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5307b130e91) - Cleaned up placeholder lint feature as it was no longer being used
|
|
30
|
+
- [`fe0fa175ab6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe0fa175ab6) - Add support to prevent Editor Popup overflowing top of the viewport.
|
|
31
|
+
To enable the behaviour use the feature flag `prevent-popup-overflow` as follows:
|
|
32
|
+
|
|
33
|
+
```tsx
|
|
34
|
+
<Editor
|
|
35
|
+
featureFlags={{
|
|
36
|
+
'prevent-popup-overflow': true,
|
|
37
|
+
}}
|
|
38
|
+
/>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
- [`3ca38fe77c1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ca38fe77c1) - [ux] ED-16206 Fixed - Tooltip for “Sort column Z-A“ option isn’t displayed if you first hover over the “Sort column A-Z“ option
|
|
42
|
+
- [`c42a0344d32`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c42a0344d32) - The linking view changing experiment toolbar style will be removed, including the feature flag. All variants will be removed except for toolbarIcons which will be the only view of the toolbar of the linking view switcher.
|
|
43
|
+
- [`c253ecf5377`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c253ecf5377) - Use preventPopupOverflow ff to prevent the link picker going off the screen horizontally in the inline comment Editor
|
|
44
|
+
- [`8820442c2b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8820442c2b2) - [ux] ED-15709: add feature for delete element if it is `isReferencedSource` is `true`
|
|
45
|
+
|
|
46
|
+
- add checkbox confirmation dialog when then config have `isReferentiality.`
|
|
47
|
+
- add referentiality helper functions.
|
|
48
|
+
- update confirmDialog config to a handler to reduce traverse times.
|
|
49
|
+
- user can now tick checkbox to delete descendent nodes or only selected node when user click the delete icon in floating toolbar.
|
|
50
|
+
|
|
51
|
+
- [`1d41bbc2965`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1d41bbc2965) - This changeset introduces non breaking changes to support ssr within the loader emoji component
|
|
52
|
+
- [`d2c62b69a6a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d2c62b69a6a) - [ux] Adds support to floating toolbar configuration to enable trapping focus within the Popup.
|
|
53
|
+
- [`92613b1f023`](https://bitbucket.org/atlassian/atlassian-frontend/commits/92613b1f023) - ED-15018 and ED-13913 - Remove all circular dependencies and ignored warnings in editor
|
|
54
|
+
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- [`2fd53283b55`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2fd53283b55) - Updated i18n language files
|
|
58
|
+
- [`dfb5f68a5c3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/dfb5f68a5c3) - [ux] ED-16187: prevent CollapsedEditor from crashing when IntlProvider isn't provided
|
|
59
|
+
- [`b03147b4b1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b03147b4b1e) - [ux] editor copy paste block cards as inline where allowBlockCards is false
|
|
60
|
+
- [`1ea235bf3f5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ea235bf3f5) - ED-15489 Changes to improve the assistive text for emoji and mention typeaheads
|
|
61
|
+
- [`4a79928bc16`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a79928bc16) - Updated aria label for editor content area according to content design recommendations.
|
|
62
|
+
- [`4c80b42a754`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c80b42a754) - [ED-16245] Make sure the Media dom nodes are mounted before scroll into
|
|
63
|
+
- [`0d5dfdc07bc`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0d5dfdc07bc) - Refactored Typeahead component to be compatible with VoiceOver in Safari.
|
|
64
|
+
- [`873ba4d6ae1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/873ba4d6ae1) - Fix task ticks updates not being reflected in the editor.
|
|
65
|
+
- [`aa3c130c43a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aa3c130c43a) - Changes the annotation mark to inclusive in order to fix the annotation being deleted when doing composition
|
|
66
|
+
- [`9f142486837`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f142486837) - ED-14867 updated zIndex for width toggle breakout btn to be below other popups
|
|
67
|
+
- [`b616ba20f04`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b616ba20f04) - [ux] The height of the panel stays the same when the emoji is removed
|
|
68
|
+
- [`c1eedb6a5e1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c1eedb6a5e1) - [ux] Removed extra span and it's related styles from Placeholder plugin to align height of flashing cursor with height of text line
|
|
69
|
+
- [`f608bc44cf2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f608bc44cf2) - [ux] ED-16177 Added new text color labels. These new labels are disabled by default and only present when useSomewhatSemanticTextColorNames feature flag is set to true.
|
|
70
|
+
- [`62789954243`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62789954243) - react-virutlaized has been replaced with @tanstack/react-virutal in @atlaskit/emoji
|
|
71
|
+
- [`224a2482244`](https://bitbucket.org/atlassian/atlassian-frontend/commits/224a2482244) - [ED-16166] Changes the renderer prop document type from any to DocNode
|
|
72
|
+
|
|
73
|
+
BREAKING for `@atlaskit/renderer`: Previously the `document` prop for the renderer component had the type of `any`. This has now been changed to `DocNode` which comes from `@atlaskit/adf-schema`.
|
|
74
|
+
|
|
75
|
+
Documents being passed into the renderer component will need to be updated to use this type.
|
|
76
|
+
|
|
77
|
+
Example Usage:
|
|
78
|
+
|
|
79
|
+
```tsx
|
|
80
|
+
import { DocNode } from '@atlaskit/adf-schema';
|
|
81
|
+
|
|
82
|
+
const emptyDoc: DocNode = {
|
|
83
|
+
type: 'doc',
|
|
84
|
+
version: 1,
|
|
85
|
+
content: [],
|
|
86
|
+
};
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
- [`41810bb081d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41810bb081d) - [ux] ED-15897 fixed unexpected behaviour when using scroll buttons
|
|
90
|
+
- [`76183098160`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76183098160) - [ux] ED-15285 - fix initial visibility of edit icon on extension floating toolbar when selecting an editable extension at the first node in the document
|
|
91
|
+
- [`bb9a5f9d77d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bb9a5f9d77d) - [ux] ED-16176 Added useSomewhatSemanticTextColorNames feature flag. This is part of COMMIT-5058 work to unblock dark mode for Jira. The intention of the flag is to show semantic names in tooltips when hovering over colors in the text color palette in token light/dark mode. Note that the flag is 'somewhat semantic' due to white/dark-gray not being semantic names.
|
|
92
|
+
- [`233e03b2d92`](https://bitbucket.org/atlassian/atlassian-frontend/commits/233e03b2d92) - ED-16007 To highlight the table rows and columns when the 'Delete Row' and 'Delete Column' options are highlighted in the 'cell options' menu of floating toolbar
|
|
93
|
+
- [`7fd5785d37d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7fd5785d37d) - [ESS-2752] Fix clientId type derived from prosemirror-collab
|
|
94
|
+
- [`651dee737d2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/651dee737d2) - ED-15301 Added initial preset builder types
|
|
95
|
+
- [`3a35da6c331`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3a35da6c331) - DTR-825 ED-9775: added jamfselfservice:// to whitelistedURLPatterns
|
|
96
|
+
- [`069fe0a9aa4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/069fe0a9aa4) - [ux] When trying to apply a mark and the selection contains a mix of the selected mark and other content it will apply the mark rather than removing the mark from the selection.
|
|
97
|
+
- [`3a236cfd8d3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3a236cfd8d3) - refactor typeahead emoji plugin by removing usage of legacy context provider
|
|
98
|
+
- [`129c07f042d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/129c07f042d) - ED-16271 To skip the scroll buttons when user uses arrow keys to navigate in floating toolbar as it is not keyboard user friendly (changes are not feature falgged)
|
|
99
|
+
- [`1267ffe2c42`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1267ffe2c42) - Add media traceId into copy/paste operations
|
|
100
|
+
- [`b2fa6d3e611`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b2fa6d3e611) - [ED-16106] Fix margin top when paragraph has alignment marks
|
|
101
|
+
- [`0745d7b54df`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0745d7b54df) - Updated containsClass method to be more robust, to prevent console errors
|
|
102
|
+
- [`97eb6fb59c8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/97eb6fb59c8) - [ux] Fixes focus being lost when closing the new link picker user interface when inserting via shortcut or toolbar. Focus instead now returns to the editor.
|
|
103
|
+
- [`f451c36becf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f451c36becf) - Fixed reconciliation issue causing emoji picker in floating-toolbar to re-mount on parent component update
|
|
104
|
+
- [`e4089f2c471`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e4089f2c471) - Modified toolbar buttons to read out keyboard shortcuts by screen readers.
|
|
105
|
+
- [`968ac659016`](https://bitbucket.org/atlassian/atlassian-frontend/commits/968ac659016) - [ux] ED-16274 fixed typeahead query line height issue
|
|
106
|
+
- [`53b8ef2ab95`](https://bitbucket.org/atlassian/atlassian-frontend/commits/53b8ef2ab95) - Updates link picker feature flag to be the only logic to determine if the new link picker UI should be used.
|
|
107
|
+
- [`e3c011d1c03`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e3c011d1c03) - [ux] Fixed issue where z-index of stickyToolbar was way to high, which meant popups were under the toolbar instead of over it
|
|
108
|
+
- [`60068f7fcbe`](https://bitbucket.org/atlassian/atlassian-frontend/commits/60068f7fcbe) - [ED-16007] Changes made to improve the floating toolbar's keyboard accessibility
|
|
109
|
+
- Updated dependencies
|
|
110
|
+
|
|
3
111
|
## 176.0.3
|
|
4
112
|
|
|
5
113
|
### Patch Changes
|
|
@@ -36,6 +36,8 @@ var _prosemirrorView = require("prosemirror-view");
|
|
|
36
36
|
|
|
37
37
|
var _reactIntlNext = require("react-intl-next");
|
|
38
38
|
|
|
39
|
+
var _messages = require("./messages");
|
|
40
|
+
|
|
39
41
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
40
42
|
|
|
41
43
|
var _ufo = require("@atlaskit/editor-common/ufo");
|
|
@@ -664,7 +666,7 @@ var ReactEditorView = /*#__PURE__*/function (_React$Component) {
|
|
|
664
666
|
className: getUAPrefix(),
|
|
665
667
|
key: "ProseMirror",
|
|
666
668
|
ref: _this.handleEditorViewRef,
|
|
667
|
-
"aria-label":
|
|
669
|
+
"aria-label": _this.props.intl.formatMessage(_messages.editorMessages.editorAssistiveLabel),
|
|
668
670
|
role: "textbox"
|
|
669
671
|
}));
|
|
670
672
|
_this.eventDispatcher = new _eventDispatcher.EventDispatcher();
|
|
@@ -98,7 +98,6 @@ function getDefaultPresetOptionsFromEditorProps(props, createAnalyticsEvent) {
|
|
|
98
98
|
},
|
|
99
99
|
placeholder: {
|
|
100
100
|
placeholder: props.placeholder,
|
|
101
|
-
placeholderHints: props.placeholderHints,
|
|
102
101
|
placeholderBracketHint: props.placeholderBracketHint
|
|
103
102
|
},
|
|
104
103
|
textFormatting: _objectSpread(_objectSpread({}, props.textFormatting || {}), {}, {
|
|
@@ -176,7 +175,11 @@ function createPluginsList(props, prevProps, createAnalyticsEvent, insertNodeAPI
|
|
|
176
175
|
} // Needs to be after allowTextColor as order of buttons in toolbar depends on it
|
|
177
176
|
|
|
178
177
|
|
|
179
|
-
preset.add(_plugins.listPlugin
|
|
178
|
+
preset.add([_plugins.listPlugin, {
|
|
179
|
+
restartNumberedLists: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.restartNumberedLists,
|
|
180
|
+
restartNumberedListsToolbar: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.restartNumberedListsToolbar,
|
|
181
|
+
listNumberContinuity: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.listNumberContinuity
|
|
182
|
+
}]);
|
|
180
183
|
|
|
181
184
|
if (props.allowRule) {
|
|
182
185
|
preset.add(_plugins.rulePlugin);
|
|
@@ -263,10 +266,10 @@ function createPluginsList(props, prevProps, createAnalyticsEvent, insertNodeAPI
|
|
|
263
266
|
}
|
|
264
267
|
|
|
265
268
|
if (props.allowHelpDialog) {
|
|
266
|
-
preset.add([_plugins.helpDialogPlugin, props.legacyImageUploadProvider]);
|
|
269
|
+
preset.add([_plugins.helpDialogPlugin, !!props.legacyImageUploadProvider]);
|
|
267
270
|
}
|
|
268
271
|
|
|
269
|
-
if (props.saveOnEnter) {
|
|
272
|
+
if (props.saveOnEnter && props.onSave) {
|
|
270
273
|
preset.add([_plugins.saveOnEnterPlugin, props.onSave]);
|
|
271
274
|
}
|
|
272
275
|
|
|
@@ -334,7 +337,7 @@ function createPluginsList(props, prevProps, createAnalyticsEvent, insertNodeAPI
|
|
|
334
337
|
|
|
335
338
|
|
|
336
339
|
if (!props.annotationProviders && props.allowConfluenceInlineComment) {
|
|
337
|
-
preset.add(_plugins.annotationPlugin);
|
|
340
|
+
preset.add([_plugins.annotationPlugin, undefined]);
|
|
338
341
|
}
|
|
339
342
|
|
|
340
343
|
if (props.allowDate) {
|
|
@@ -449,7 +452,7 @@ function createPluginsList(props, prevProps, createAnalyticsEvent, insertNodeAPI
|
|
|
449
452
|
}
|
|
450
453
|
|
|
451
454
|
if (featureFlags.enableViewUpdateSubscription) {
|
|
452
|
-
preset.add(
|
|
455
|
+
preset.add(_plugins.viewUpdateSubscriptionPlugin);
|
|
453
456
|
}
|
|
454
457
|
|
|
455
458
|
preset.add([_plugins.codeBidiWarningPlugin, {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.editorMessages = void 0;
|
|
7
|
+
|
|
8
|
+
var _reactIntlNext = require("react-intl-next");
|
|
9
|
+
|
|
10
|
+
var editorMessages = (0, _reactIntlNext.defineMessages)({
|
|
11
|
+
editorAssistiveLabel: {
|
|
12
|
+
id: 'fabric.editor.editorAssistiveLabel',
|
|
13
|
+
defaultMessage: 'Main content area, start typing to enter text.',
|
|
14
|
+
description: 'Text that is read out by screen reader when the main editor is in focus'
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
exports.editorMessages = editorMessages;
|
package/dist/cjs/i18n/en.js
CHANGED
|
@@ -107,8 +107,8 @@ var _default = {
|
|
|
107
107
|
'fabric.editor.error': 'Error',
|
|
108
108
|
'fabric.editor.errorPanel': 'Error panel',
|
|
109
109
|
'fabric.editor.errorPanel.description': 'Call out errors in a colored panel',
|
|
110
|
-
'fabric.editor.extension.confirmDeleteLinkedModalMessage': '
|
|
111
|
-
'fabric.editor.extension.confirmDeleteLinkedModalOKButton': '
|
|
110
|
+
'fabric.editor.extension.confirmDeleteLinkedModalMessage': 'Deleting {nodeName} will break anything connected to it.',
|
|
111
|
+
'fabric.editor.extension.confirmDeleteLinkedModalOKButton': 'Delete',
|
|
112
112
|
'fabric.editor.extensions.config-panel.save-indicator': 'All changes are always autosaved',
|
|
113
113
|
'fabric.editor.find': 'Find',
|
|
114
114
|
'fabric.editor.findNext': 'Find next',
|
package/dist/cjs/i18n/en_GB.js
CHANGED
|
@@ -107,8 +107,8 @@ var _default = {
|
|
|
107
107
|
'fabric.editor.error': 'Error',
|
|
108
108
|
'fabric.editor.errorPanel': 'Error panel',
|
|
109
109
|
'fabric.editor.errorPanel.description': 'Call out errors in a coloured panel',
|
|
110
|
-
'fabric.editor.extension.confirmDeleteLinkedModalMessage': '
|
|
111
|
-
'fabric.editor.extension.confirmDeleteLinkedModalOKButton': '
|
|
110
|
+
'fabric.editor.extension.confirmDeleteLinkedModalMessage': 'Deleting {nodeName} will break anything connected to it.',
|
|
111
|
+
'fabric.editor.extension.confirmDeleteLinkedModalOKButton': 'Delete',
|
|
112
112
|
'fabric.editor.extensions.config-panel.save-indicator': 'All changes are always autosaved',
|
|
113
113
|
'fabric.editor.find': 'Find',
|
|
114
114
|
'fabric.editor.findNext': 'Find next',
|
package/dist/cjs/i18n/en_ZZ.js
CHANGED
|
@@ -107,8 +107,8 @@ var _default = {
|
|
|
107
107
|
'fabric.editor.error': 'Error',
|
|
108
108
|
'fabric.editor.errorPanel': 'Error panel',
|
|
109
109
|
'fabric.editor.errorPanel.description': 'Call out errors in a colored panel',
|
|
110
|
-
'fabric.editor.extension.confirmDeleteLinkedModalMessage': '
|
|
111
|
-
'fabric.editor.extension.confirmDeleteLinkedModalOKButton': '
|
|
110
|
+
'fabric.editor.extension.confirmDeleteLinkedModalMessage': 'Deleting {nodeName} will break anything connected to it.',
|
|
111
|
+
'fabric.editor.extension.confirmDeleteLinkedModalOKButton': 'Delete',
|
|
112
112
|
'fabric.editor.extensions.config-panel.save-indicator': 'All changes are always autosaved',
|
|
113
113
|
'fabric.editor.find': 'Find',
|
|
114
114
|
'fabric.editor.findNext': 'Find next',
|
package/dist/cjs/i18n/index.js
CHANGED
|
@@ -188,6 +188,10 @@ var _cs = _interopRequireDefault(require("./cs"));
|
|
|
188
188
|
|
|
189
189
|
var _da = _interopRequireDefault(require("./da"));
|
|
190
190
|
|
|
191
|
+
var _en = _interopRequireDefault(require("./en"));
|
|
192
|
+
|
|
193
|
+
var _en_GB = _interopRequireDefault(require("./en_GB"));
|
|
194
|
+
|
|
191
195
|
var _nl = _interopRequireDefault(require("./nl"));
|
|
192
196
|
|
|
193
197
|
var _et = _interopRequireDefault(require("./et"));
|
|
@@ -230,10 +234,6 @@ var _uk = _interopRequireDefault(require("./uk"));
|
|
|
230
234
|
|
|
231
235
|
var _vi = _interopRequireDefault(require("./vi"));
|
|
232
236
|
|
|
233
|
-
var _en = _interopRequireDefault(require("./en"));
|
|
234
|
-
|
|
235
|
-
var _en_GB = _interopRequireDefault(require("./en_GB"));
|
|
236
|
-
|
|
237
237
|
var _is = _interopRequireDefault(require("./is"));
|
|
238
238
|
|
|
239
239
|
var _ro = _interopRequireDefault(require("./ro"));
|
|
@@ -8,14 +8,15 @@ exports.default = void 0;
|
|
|
8
8
|
/**
|
|
9
9
|
* NOTE:
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
11
|
+
* ED-16073:
|
|
12
|
+
* This was manually updated since the original `@atlaskit/i18n-tools` has been deprecated
|
|
13
13
|
*/
|
|
14
14
|
var _default = {
|
|
15
15
|
zh: 'Chinese',
|
|
16
|
+
zh_TW: 'Chinese (Traditional)',
|
|
16
17
|
cs: 'Czech',
|
|
17
|
-
da: 'Danish',
|
|
18
18
|
nl: 'Dutch',
|
|
19
|
+
da: 'Danish',
|
|
19
20
|
en: 'English',
|
|
20
21
|
en_GB: 'English (United Kingdom)',
|
|
21
22
|
et: 'Estonian',
|
|
@@ -35,6 +36,10 @@ var _default = {
|
|
|
35
36
|
ru: 'Russian',
|
|
36
37
|
sk: 'Slovak',
|
|
37
38
|
es: 'Spanish',
|
|
38
|
-
sv: 'Swedish'
|
|
39
|
+
sv: 'Swedish',
|
|
40
|
+
th: 'Thai',
|
|
41
|
+
tr: 'Turkish',
|
|
42
|
+
uk: 'Ukrainian',
|
|
43
|
+
vi: 'Vietnamese'
|
|
39
44
|
};
|
|
40
45
|
exports.default = _default;
|
|
@@ -122,8 +122,8 @@ function useMobilePreset(_ref) {
|
|
|
122
122
|
allowBlockCards: true,
|
|
123
123
|
platform: 'mobile'
|
|
124
124
|
}]);
|
|
125
|
-
preset.add(
|
|
126
|
-
preset.add(
|
|
125
|
+
preset.add(_mentions.default);
|
|
126
|
+
preset.add(_emoji.default); // End
|
|
127
127
|
|
|
128
128
|
if (maxContentSize) {
|
|
129
129
|
preset.add([_maxContentSize.default, maxContentSize]);
|
|
@@ -9,6 +9,10 @@ exports.Preset = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
11
|
|
|
12
|
+
var _construct2 = _interopRequireDefault(require("@babel/runtime/helpers/construct"));
|
|
13
|
+
|
|
14
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
15
|
+
|
|
12
16
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
13
17
|
|
|
14
18
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
@@ -16,19 +20,40 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
16
20
|
var Preset = /*#__PURE__*/function () {
|
|
17
21
|
function Preset() {
|
|
18
22
|
(0, _classCallCheck2.default)(this, Preset);
|
|
19
|
-
|
|
23
|
+
|
|
24
|
+
for (var _len = arguments.length, more = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
25
|
+
more[_key] = arguments[_key];
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
this.data = [].concat(more) || [];
|
|
20
29
|
}
|
|
21
30
|
|
|
22
31
|
(0, _createClass2.default)(Preset, [{
|
|
23
32
|
key: "add",
|
|
24
|
-
value: function add(
|
|
25
|
-
|
|
26
|
-
|
|
33
|
+
value: function add(nextOrTuple) {
|
|
34
|
+
var newPreset = (0, _construct2.default)(Preset, [nextOrTuple].concat((0, _toConsumableArray2.default)(this.data))); // TODO: remove this `this.data.push`,
|
|
35
|
+
// once refactoring `create-plugins-list` to address this complexity:
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* preset.add(x)
|
|
39
|
+
* preset.add(y)
|
|
40
|
+
* preset.add(z)
|
|
41
|
+
*/
|
|
42
|
+
// to:
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* immutablePreset = preset.add(x).add(foo).add(bar)
|
|
46
|
+
* presetWithY = presetWithY.add(y)
|
|
47
|
+
* presetWithZ = preset.add(z)
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
this.data.push(nextOrTuple);
|
|
51
|
+
return newPreset;
|
|
27
52
|
}
|
|
28
53
|
}, {
|
|
29
54
|
key: "has",
|
|
30
55
|
value: function has(plugin) {
|
|
31
|
-
return this.
|
|
56
|
+
return this.data.some(function (pluginPreset) {
|
|
32
57
|
if (Array.isArray(pluginPreset)) {
|
|
33
58
|
return pluginPreset[0] === plugin;
|
|
34
59
|
}
|
|
@@ -46,7 +71,7 @@ var Preset = /*#__PURE__*/function () {
|
|
|
46
71
|
key: "processEditorPlugins",
|
|
47
72
|
value: function processEditorPlugins() {
|
|
48
73
|
var cache = new Map();
|
|
49
|
-
this.
|
|
74
|
+
this.data.forEach(function (pluginEntry) {
|
|
50
75
|
if (Array.isArray(pluginEntry)) {
|
|
51
76
|
var _pluginEntry = (0, _slicedToArray2.default)(pluginEntry, 2),
|
|
52
77
|
fn = _pluginEntry[0],
|
|
@@ -73,6 +98,13 @@ var Preset = /*#__PURE__*/function () {
|
|
|
73
98
|
cache.forEach(function (options, fn) {
|
|
74
99
|
plugins.push(fn(options));
|
|
75
100
|
});
|
|
101
|
+
|
|
102
|
+
if (plugins.some(function (plugin) {
|
|
103
|
+
return typeof plugin === 'function';
|
|
104
|
+
})) {
|
|
105
|
+
throw new Error("!!! NextEditorPluginWithDependencies detected in presets. That's an unsupported runtime use case right now.");
|
|
106
|
+
}
|
|
107
|
+
|
|
76
108
|
return plugins;
|
|
77
109
|
}
|
|
78
110
|
}, {
|
|
@@ -58,6 +58,7 @@ var AnnotationNodeView = /*#__PURE__*/function (_ReactNodeView) {
|
|
|
58
58
|
/*#__PURE__*/
|
|
59
59
|
// all inline comment states are now set in decorations at ../pm-plugins/inline-comment.ts
|
|
60
60
|
_react.default.createElement("span", {
|
|
61
|
+
"data-mark-type": "annotation",
|
|
61
62
|
ref: forwardRef
|
|
62
63
|
})
|
|
63
64
|
);
|
|
@@ -43,6 +43,8 @@ var _keymaps = require("../../../../keymaps");
|
|
|
43
43
|
|
|
44
44
|
var _blocktypeButton = require("./blocktype-button");
|
|
45
45
|
|
|
46
|
+
var _keymaps2 = require("@atlaskit/editor-common/keymaps");
|
|
47
|
+
|
|
46
48
|
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); }; }
|
|
47
49
|
|
|
48
50
|
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; } }
|
|
@@ -84,16 +86,19 @@ var ToolbarBlockType = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
84
86
|
var isActive = currentBlockType === blockType;
|
|
85
87
|
var tagName = blockType.tagName || 'p';
|
|
86
88
|
var Tag = tagName;
|
|
89
|
+
var keyMap = (0, _keymaps.findKeymapByDescription)(blockType.title.defaultMessage);
|
|
87
90
|
return {
|
|
88
91
|
content: (0, _react2.jsx)("div", {
|
|
89
92
|
css: (0, _styled.blockTypeMenuItemStyle)(tagName, isActive)
|
|
90
93
|
}, (0, _react2.jsx)(Tag, null, formatMessage(blockType.title))),
|
|
91
94
|
value: blockType,
|
|
92
95
|
label: formatMessage(blockType.title),
|
|
96
|
+
'aria-label': (0, _keymaps.tooltip)(keyMap, formatMessage(blockType.title)),
|
|
97
|
+
keyShortcuts: (0, _keymaps2.getAriaKeyshortcuts)(keyMap),
|
|
93
98
|
key: "".concat(blockType.name, "-").concat(index),
|
|
94
99
|
elemAfter: (0, _react2.jsx)("div", {
|
|
95
100
|
css: [_styled.keyboardShortcut, isActive && _styled.keyboardShortcutSelect]
|
|
96
|
-
}, (0, _keymaps.tooltip)(
|
|
101
|
+
}, (0, _keymaps.tooltip)(keyMap)),
|
|
97
102
|
isActive: isActive
|
|
98
103
|
};
|
|
99
104
|
});
|
|
@@ -61,6 +61,8 @@ var _isSupportedNode = require("../utils/is-supported-node");
|
|
|
61
61
|
|
|
62
62
|
var _tokens = require("@atlaskit/tokens");
|
|
63
63
|
|
|
64
|
+
var _constants2 = require("@atlaskit/theme/constants");
|
|
65
|
+
|
|
64
66
|
var _templateObject;
|
|
65
67
|
|
|
66
68
|
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); }; }
|
|
@@ -156,6 +158,7 @@ var LayoutButton = /*#__PURE__*/function (_React$Component) {
|
|
|
156
158
|
var titleMessage = getTitle(breakoutMode);
|
|
157
159
|
var title = formatMessage(titleMessage);
|
|
158
160
|
var nextBreakoutMode = getNextBreakoutMode(breakoutMode);
|
|
161
|
+
var belowOtherPopupsZIndex = _constants2.layers.layer() - 1;
|
|
159
162
|
var pluginState = (0, _pluginKey.getPluginState)(state);
|
|
160
163
|
var element = getBreakoutNodeElement(pluginState, state.selection, editorView);
|
|
161
164
|
|
|
@@ -179,7 +182,8 @@ var LayoutButton = /*#__PURE__*/function (_React$Component) {
|
|
|
179
182
|
boundariesElement: boundariesElement,
|
|
180
183
|
scrollableElement: scrollableElement,
|
|
181
184
|
stick: true,
|
|
182
|
-
forcePlacement: true
|
|
185
|
+
forcePlacement: true,
|
|
186
|
+
zIndex: belowOtherPopupsZIndex
|
|
183
187
|
}, (0, _react2.jsx)("div", {
|
|
184
188
|
css: toolbarButtonWrapper
|
|
185
189
|
}, (0, _react2.jsx)(_ToolbarButton.default, {
|
|
@@ -11,33 +11,31 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
11
11
|
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
13
|
|
|
14
|
-
var _prosemirrorState = require("prosemirror-state");
|
|
15
|
-
|
|
16
14
|
var _prosemirrorHistory = require("prosemirror-history");
|
|
17
15
|
|
|
18
|
-
var
|
|
16
|
+
var _prosemirrorState = require("prosemirror-state");
|
|
19
17
|
|
|
20
|
-
var
|
|
18
|
+
var _adfSchema = require("@atlaskit/adf-schema");
|
|
21
19
|
|
|
22
|
-
var
|
|
20
|
+
var _analytics = require("../../../plugins/analytics");
|
|
23
21
|
|
|
24
|
-
var
|
|
22
|
+
var _nodeEvents = require("../../../plugins/analytics/types/node-events");
|
|
25
23
|
|
|
26
|
-
var
|
|
24
|
+
var _analytics2 = require("../../../plugins/hyperlink/analytics");
|
|
27
25
|
|
|
28
|
-
var
|
|
26
|
+
var _utils = require("../../../utils");
|
|
29
27
|
|
|
30
|
-
var
|
|
28
|
+
var _linkingUtils = require("../../../utils/linking-utils");
|
|
31
29
|
|
|
32
|
-
var
|
|
30
|
+
var _utils2 = require("../../hyperlink/utils");
|
|
33
31
|
|
|
34
|
-
var
|
|
32
|
+
var _utils3 = require("../utils");
|
|
35
33
|
|
|
36
|
-
var
|
|
34
|
+
var _actions = require("./actions");
|
|
37
35
|
|
|
38
|
-
var
|
|
36
|
+
var _pluginKey = require("./plugin-key");
|
|
39
37
|
|
|
40
|
-
var
|
|
38
|
+
var _shouldReplaceLink = require("./shouldReplaceLink");
|
|
41
39
|
|
|
42
40
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
43
41
|
|
|
@@ -94,7 +92,7 @@ var replaceQueuedUrlWithCard = function replaceQueuedUrlWithCard(url, cardData,
|
|
|
94
92
|
}); // try to transform response to ADF
|
|
95
93
|
|
|
96
94
|
var schema = editorState.schema;
|
|
97
|
-
var cardAdf = (0,
|
|
95
|
+
var cardAdf = (0, _utils.processRawValue)(schema, cardData);
|
|
98
96
|
var tr = editorState.tr;
|
|
99
97
|
|
|
100
98
|
if (cardAdf) {
|
|
@@ -136,7 +134,7 @@ var replaceQueuedUrlWithCard = function replaceQueuedUrlWithCard(url, cardData,
|
|
|
136
134
|
nodeType: nodeType,
|
|
137
135
|
nodeContext: nodeContext,
|
|
138
136
|
domainName: domainName,
|
|
139
|
-
fromCurrentDomain: (0,
|
|
137
|
+
fromCurrentDomain: (0, _utils2.isFromCurrentDomain)(url)
|
|
140
138
|
}
|
|
141
139
|
});
|
|
142
140
|
}
|
|
@@ -178,7 +176,7 @@ var queueCardsFromChangedTr = function queueCardsFromChangedTr(state, tr, source
|
|
|
178
176
|
var schema = state.schema;
|
|
179
177
|
var link = schema.marks.link;
|
|
180
178
|
var requests = [];
|
|
181
|
-
(0,
|
|
179
|
+
(0, _utils.nodesBetweenChanged)(tr, function (node, pos) {
|
|
182
180
|
if (!node.isText) {
|
|
183
181
|
return true;
|
|
184
182
|
}
|
|
@@ -250,17 +248,13 @@ var changeSelectedCardToLink = function changeSelectedCardToLink(text, href, sen
|
|
|
250
248
|
|
|
251
249
|
if (sendAnalytics) {
|
|
252
250
|
if (selectedNode) {
|
|
253
|
-
var _getFeatureFlags = (0, _featureFlagsContext.getFeatureFlags)(state),
|
|
254
|
-
viewChangingExperimentToolbarStyle = _getFeatureFlags.viewChangingExperimentToolbarStyle;
|
|
255
|
-
|
|
256
251
|
(0, _analytics.addAnalytics)(state, tr, {
|
|
257
252
|
action: _analytics.ACTION.CHANGED_TYPE,
|
|
258
253
|
actionSubject: _analytics.ACTION_SUBJECT.SMART_LINK,
|
|
259
254
|
eventType: _analytics.EVENT_TYPE.TRACK,
|
|
260
255
|
attributes: {
|
|
261
256
|
newType: _nodeEvents.SMART_LINK_TYPE.URL,
|
|
262
|
-
previousType: (0,
|
|
263
|
-
featureFlag: viewChangingExperimentToolbarStyle || 'noChange'
|
|
257
|
+
previousType: (0, _utils3.appearanceForNodeType)(selectedNode.type)
|
|
264
258
|
}
|
|
265
259
|
});
|
|
266
260
|
}
|
|
@@ -387,7 +381,7 @@ var setSelectedCardAppearance = function setSelectedCardAppearance(appearance) {
|
|
|
387
381
|
return false;
|
|
388
382
|
}
|
|
389
383
|
|
|
390
|
-
if ((0,
|
|
384
|
+
if ((0, _utils3.appearanceForNodeType)(selectedNode.type) === appearance) {
|
|
391
385
|
return false;
|
|
392
386
|
}
|
|
393
387
|
|
|
@@ -398,18 +392,13 @@ var setSelectedCardAppearance = function setSelectedCardAppearance(appearance) {
|
|
|
398
392
|
var from = state.selection.from;
|
|
399
393
|
var nodeType = getLinkNodeType(appearance, state.schema.nodes);
|
|
400
394
|
var tr = state.tr.setNodeMarkup(from, nodeType, attrs, selectedNode.marks);
|
|
401
|
-
|
|
402
|
-
var _getFeatureFlags2 = (0, _featureFlagsContext.getFeatureFlags)(state),
|
|
403
|
-
viewChangingExperimentToolbarStyle = _getFeatureFlags2.viewChangingExperimentToolbarStyle;
|
|
404
|
-
|
|
405
395
|
(0, _analytics.addAnalytics)(state, tr, {
|
|
406
396
|
action: _analytics.ACTION.CHANGED_TYPE,
|
|
407
397
|
actionSubject: _analytics.ACTION_SUBJECT.SMART_LINK,
|
|
408
398
|
eventType: _analytics.EVENT_TYPE.TRACK,
|
|
409
399
|
attributes: {
|
|
410
400
|
newType: appearance,
|
|
411
|
-
previousType: (0,
|
|
412
|
-
featureFlag: viewChangingExperimentToolbarStyle || 'noChange'
|
|
401
|
+
previousType: (0, _utils3.appearanceForNodeType)(selectedNode.type)
|
|
413
402
|
}
|
|
414
403
|
});
|
|
415
404
|
|
|
@@ -19,21 +19,19 @@ var _rafSchd = _interopRequireDefault(require("raf-schd"));
|
|
|
19
19
|
|
|
20
20
|
var _getInlineNodeViewProducer = require("../../../nodeviews/getInlineNodeViewProducer");
|
|
21
21
|
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
var _pluginKey = require("./plugin-key");
|
|
22
|
+
var _blockCard = require("../nodeviews/blockCard");
|
|
25
23
|
|
|
26
|
-
var
|
|
24
|
+
var _embedCard = require("../nodeviews/embedCard");
|
|
27
25
|
|
|
28
|
-
var
|
|
26
|
+
var _inlineCard = require("../nodeviews/inlineCard");
|
|
29
27
|
|
|
30
|
-
var
|
|
28
|
+
var _pluginKey = require("./plugin-key");
|
|
31
29
|
|
|
32
|
-
var
|
|
30
|
+
var _reducers = _interopRequireDefault(require("./reducers"));
|
|
33
31
|
|
|
34
|
-
var
|
|
32
|
+
var _resolve = require("./util/resolve");
|
|
35
33
|
|
|
36
|
-
var
|
|
34
|
+
var _state = require("./util/state");
|
|
37
35
|
|
|
38
36
|
var createPlugin = function createPlugin(options) {
|
|
39
37
|
return function (pmPluginFactoryParams) {
|
|
@@ -45,18 +43,6 @@ var createPlugin = function createPlugin(options) {
|
|
|
45
43
|
return new _safePlugin.SafePlugin({
|
|
46
44
|
state: {
|
|
47
45
|
init: function init() {
|
|
48
|
-
var viewChangingExperimentToolbarStyle = pmPluginFactoryParams.featureFlags.viewChangingExperimentToolbarStyle;
|
|
49
|
-
pmPluginFactoryParams.dispatchAnalyticsEvent({
|
|
50
|
-
eventType: _analytics.EVENT_TYPE.OPERATIONAL,
|
|
51
|
-
action: _analytics.ACTION.EXPOSED,
|
|
52
|
-
actionSubject: _analytics.ACTION_SUBJECT.FEATURE,
|
|
53
|
-
attributes: {
|
|
54
|
-
flagKey: 'confluence.frontend.fabric.editor.view-changing-experiment-toolbar-style',
|
|
55
|
-
value: viewChangingExperimentToolbarStyle || 'noChange'
|
|
56
|
-
},
|
|
57
|
-
source: '@atlaskit/feature-flag-client',
|
|
58
|
-
tags: ['measurement']
|
|
59
|
-
});
|
|
60
46
|
return {
|
|
61
47
|
requests: [],
|
|
62
48
|
provider: null,
|