@atlaskit/editor-core 151.1.2 → 151.3.1
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/CHANGELOG.md +22 -0
- package/dist/cjs/create-editor/ReactEditorView.js +22 -8
- package/dist/cjs/create-editor/create-plugins-list.js +30 -11
- package/dist/cjs/labs/next/presets/cxhtml.js +1 -2
- package/dist/cjs/labs/next/presets/default.js +3 -1
- package/dist/cjs/nodeviews/ReactNodeView.js +2 -2
- package/dist/cjs/nodeviews/SelectionBasedNodeView.js +6 -0
- package/dist/cjs/plugins/analytics/types/enums.js +1 -0
- package/dist/cjs/plugins/annotation/utils.js +19 -8
- package/dist/cjs/plugins/avatar-group/index.js +2 -1
- package/dist/cjs/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +5 -2
- package/dist/cjs/plugins/before-primaryToolbar/index.js +26 -0
- package/dist/cjs/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +28 -0
- package/dist/cjs/plugins/code-bidi-warning/index.js +5 -2
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/main.js +12 -3
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +15 -5
- package/dist/cjs/plugins/code-block/index.js +3 -3
- package/dist/cjs/plugins/code-block/nodeviews/highlighting-code-block.js +6 -3
- package/dist/cjs/plugins/code-block/pm-plugins/main.js +11 -3
- package/dist/cjs/plugins/extension/extension-api.js +10 -2
- package/dist/cjs/plugins/extension/ui/styles.js +1 -1
- package/dist/cjs/plugins/feature-flags-context/feature-flags-from-props.js +4 -2
- package/dist/cjs/plugins/find-replace/FindReplaceToolbarButtonWithState.js +172 -0
- package/dist/cjs/plugins/find-replace/index.js +14 -137
- package/dist/cjs/plugins/find-replace/ui/Find.js +16 -9
- package/dist/cjs/plugins/find-replace/ui/FindReplace.js +9 -2
- package/dist/cjs/plugins/find-replace/ui/Replace.js +11 -3
- package/dist/cjs/plugins/find-replace/ui/styles.js +44 -35
- package/dist/cjs/plugins/floating-toolbar/ui/EmojiPickerButton.js +10 -4
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +1 -1
- package/dist/cjs/plugins/fragment/index.js +34 -0
- package/dist/cjs/plugins/fragment/plugin-key.js +11 -0
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/cjs/plugins/index.js +16 -0
- package/dist/cjs/plugins/list/actions/conversions.js +39 -71
- package/dist/cjs/plugins/list/transforms.js +7 -1
- package/dist/cjs/plugins/media/index.js +2 -3
- package/dist/cjs/plugins/media/nodeviews/mediaGroup.js +3 -1
- package/dist/cjs/plugins/media/nodeviews/mediaInline.js +12 -5
- package/dist/cjs/plugins/media/nodeviews/mediaNodeUpdater.js +3 -3
- package/dist/cjs/plugins/media/nodeviews/mediaSingle.js +6 -4
- package/dist/cjs/plugins/media/nodeviews/styles.js +6 -1
- package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +5 -1
- package/dist/cjs/plugins/media/pm-plugins/main.js +49 -15
- package/dist/cjs/plugins/media/toolbar/commands.js +59 -0
- package/dist/cjs/plugins/media/toolbar/filePreviewItem.js +7 -2
- package/dist/cjs/plugins/media/toolbar/index.js +90 -3
- package/dist/cjs/plugins/media/ui/ResizableMediaSingle/index.js +9 -1
- package/dist/cjs/plugins/media/utils/media-common.js +1 -1
- package/dist/cjs/plugins/media/utils/media-files.js +5 -1
- package/dist/cjs/plugins/panel/actions.js +2 -2
- package/dist/cjs/plugins/panel/index.js +3 -3
- package/dist/cjs/plugins/panel/nodeviews/panel.js +2 -2
- package/dist/cjs/plugins/panel/toolbar.js +10 -5
- package/dist/cjs/plugins/panel/utils.js +15 -0
- package/dist/cjs/plugins/rank.js +3 -2
- package/dist/cjs/plugins/selection/pm-plugins/selection-main.js +49 -1
- package/dist/cjs/plugins/status/ui/statusPicker.js +4 -2
- package/dist/cjs/plugins/table/commands/insert.js +1 -0
- package/dist/cjs/plugins/table/index.js +3 -2
- package/dist/cjs/plugins/table/nodeviews/OverflowShadowsObserver.js +1 -3
- package/dist/cjs/plugins/table/pm-plugins/main.js +26 -3
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +2 -2
- package/dist/cjs/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +2 -0
- package/dist/cjs/plugins/table/transforms/column-width.js +14 -5
- package/dist/cjs/plugins/table/transforms/fix-tables.js +43 -6
- package/dist/cjs/plugins/table/ui/FloatingContextualButton/index.js +3 -2
- package/dist/cjs/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +1 -0
- package/dist/cjs/plugins/table/ui/common-styles.css.js +1 -1
- package/dist/cjs/plugins/table/ui/consts.js +1 -1
- package/dist/cjs/plugins/table/ui/messages.js +1 -1
- package/dist/cjs/plugins/tasks-and-decisions/nodeviews/decisionItem.js +1 -1
- package/dist/cjs/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -1
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/main.js +2 -2
- package/dist/cjs/plugins/text-color/ui/ToolbarTextColor/index.js +2 -1
- package/dist/cjs/plugins/text-formatting/index.js +2 -1
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadList.js +1 -0
- package/dist/cjs/ui/Appearance/FullPage/FullPageToolbar.js +77 -26
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +32 -9
- package/dist/cjs/ui/ColorPalette/Color/index.js +8 -18
- package/dist/cjs/ui/ColorPalette/index.js +7 -4
- package/dist/cjs/ui/ColorPickerButton/index.js +1 -1
- package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +114 -61
- package/dist/cjs/ui/ConfigPanel/FormContent.js +39 -26
- package/dist/cjs/ui/ConfigPanel/transformers.js +490 -248
- package/dist/cjs/ui/ConfigPanel/utils.js +2 -10
- package/dist/cjs/ui/DropdownMenu/index.js +3 -1
- package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +1 -1
- package/dist/cjs/ui/Resizer/index.js +9 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/create-editor/ReactEditorView.js +19 -8
- package/dist/es2019/create-editor/create-plugins-list.js +31 -12
- package/dist/es2019/labs/next/presets/cxhtml.js +1 -2
- package/dist/es2019/labs/next/presets/default.js +3 -1
- package/dist/es2019/nodeviews/ReactNodeView.js +1 -1
- package/dist/es2019/nodeviews/SelectionBasedNodeView.js +11 -0
- package/dist/es2019/plugins/analytics/types/enums.js +1 -0
- package/dist/es2019/plugins/annotation/utils.js +18 -7
- package/dist/es2019/plugins/avatar-group/index.js +2 -1
- package/dist/es2019/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +3 -2
- package/dist/es2019/plugins/before-primaryToolbar/index.js +15 -0
- package/dist/es2019/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +12 -0
- package/dist/es2019/plugins/code-bidi-warning/index.js +8 -2
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/main.js +12 -2
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +16 -5
- package/dist/es2019/plugins/code-block/index.js +3 -2
- package/dist/es2019/plugins/code-block/nodeviews/highlighting-code-block.js +6 -3
- package/dist/es2019/plugins/code-block/pm-plugins/main.js +11 -3
- package/dist/es2019/plugins/extension/extension-api.js +9 -2
- package/dist/es2019/plugins/extension/ui/styles.js +6 -0
- package/dist/es2019/plugins/feature-flags-context/feature-flags-from-props.js +4 -2
- package/dist/es2019/plugins/find-replace/FindReplaceToolbarButtonWithState.js +152 -0
- package/dist/es2019/plugins/find-replace/index.js +15 -128
- package/dist/es2019/plugins/find-replace/ui/Find.js +18 -10
- package/dist/es2019/plugins/find-replace/ui/FindReplace.js +11 -3
- package/dist/es2019/plugins/find-replace/ui/Replace.js +12 -4
- package/dist/es2019/plugins/find-replace/ui/styles.js +37 -47
- package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +2 -1
- package/dist/es2019/plugins/floating-toolbar/ui/EmojiPickerButton.js +10 -2
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +1 -1
- package/dist/es2019/plugins/fragment/index.js +22 -0
- package/dist/es2019/plugins/fragment/plugin-key.js +2 -0
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
- package/dist/es2019/plugins/index.js +2 -0
- package/dist/es2019/plugins/list/actions/conversions.js +38 -69
- package/dist/es2019/plugins/list/transforms.js +5 -1
- package/dist/es2019/plugins/media/index.js +2 -2
- package/dist/es2019/plugins/media/nodeviews/mediaGroup.js +2 -1
- package/dist/es2019/plugins/media/nodeviews/mediaInline.js +8 -4
- package/dist/es2019/plugins/media/nodeviews/mediaNodeUpdater.js +3 -3
- package/dist/es2019/plugins/media/nodeviews/mediaSingle.js +7 -5
- package/dist/es2019/plugins/media/nodeviews/styles.js +2 -0
- package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +5 -1
- package/dist/es2019/plugins/media/pm-plugins/main.js +32 -17
- package/dist/es2019/plugins/media/toolbar/commands.js +47 -0
- package/dist/es2019/plugins/media/toolbar/filePreviewItem.js +6 -2
- package/dist/es2019/plugins/media/toolbar/index.js +90 -3
- package/dist/es2019/plugins/media/ui/ResizableMediaSingle/index.js +7 -1
- package/dist/es2019/plugins/media/utils/media-common.js +1 -1
- package/dist/es2019/plugins/media/utils/media-files.js +6 -1
- package/dist/es2019/plugins/panel/actions.js +2 -2
- package/dist/es2019/plugins/panel/index.js +5 -5
- package/dist/es2019/plugins/panel/nodeviews/panel.js +2 -2
- package/dist/es2019/plugins/panel/toolbar.js +10 -5
- package/dist/es2019/plugins/panel/utils.js +8 -1
- package/dist/es2019/plugins/rank.js +3 -2
- package/dist/es2019/plugins/selection/pm-plugins/selection-main.js +48 -1
- package/dist/es2019/plugins/status/ui/statusPicker.js +4 -2
- package/dist/es2019/plugins/table/commands/insert.js +1 -2
- package/dist/es2019/plugins/table/index.js +2 -1
- package/dist/es2019/plugins/table/nodeviews/OverflowShadowsObserver.js +1 -2
- package/dist/es2019/plugins/table/pm-plugins/main.js +25 -4
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +2 -2
- package/dist/es2019/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +2 -0
- package/dist/es2019/plugins/table/transforms/column-width.js +13 -3
- package/dist/es2019/plugins/table/transforms/fix-tables.js +43 -5
- package/dist/es2019/plugins/table/ui/FloatingContextualButton/index.js +3 -2
- package/dist/es2019/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +1 -0
- package/dist/es2019/plugins/table/ui/common-styles.css.js +5 -1
- package/dist/es2019/plugins/table/ui/consts.js +2 -2
- package/dist/es2019/plugins/table/ui/messages.js +1 -1
- package/dist/es2019/plugins/tasks-and-decisions/nodeviews/decisionItem.js +1 -1
- package/dist/es2019/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -1
- package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/main.js +3 -3
- package/dist/es2019/plugins/text-color/ui/ToolbarTextColor/index.js +2 -1
- package/dist/es2019/plugins/text-formatting/index.js +3 -2
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadList.js +2 -1
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +2 -1
- package/dist/es2019/ui/Appearance/FullPage/FullPageToolbar.js +60 -27
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +51 -7
- package/dist/es2019/ui/ColorPalette/Color/index.js +9 -18
- package/dist/es2019/ui/ColorPalette/index.js +7 -4
- package/dist/es2019/ui/ColorPickerButton/index.js +1 -1
- package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +101 -49
- package/dist/es2019/ui/ConfigPanel/FormContent.js +35 -26
- package/dist/es2019/ui/ConfigPanel/transformers.js +243 -72
- package/dist/es2019/ui/ConfigPanel/utils.js +1 -2
- package/dist/es2019/ui/Dropdown/index.js +2 -1
- package/dist/es2019/ui/DropdownMenu/index.js +7 -3
- package/dist/es2019/ui/ElementBrowser/InsertMenu.js +1 -0
- package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +1 -0
- package/dist/es2019/ui/LinkSearch/LinkSearchListItem.js +2 -2
- package/dist/es2019/ui/Resizer/index.js +9 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/create-editor/ReactEditorView.js +22 -8
- package/dist/esm/create-editor/create-plugins-list.js +31 -12
- package/dist/esm/labs/next/presets/cxhtml.js +1 -2
- package/dist/esm/labs/next/presets/default.js +3 -1
- package/dist/esm/nodeviews/ReactNodeView.js +2 -2
- package/dist/esm/nodeviews/SelectionBasedNodeView.js +7 -0
- package/dist/esm/plugins/analytics/types/enums.js +1 -0
- package/dist/esm/plugins/annotation/utils.js +18 -7
- package/dist/esm/plugins/avatar-group/index.js +2 -1
- package/dist/esm/plugins/avatar-group/ui/AvatarGroupPluginWrapper.js +5 -2
- package/dist/esm/plugins/before-primaryToolbar/index.js +15 -0
- package/dist/esm/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.js +12 -0
- package/dist/esm/plugins/code-bidi-warning/index.js +5 -2
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/main.js +12 -3
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +15 -5
- package/dist/esm/plugins/code-block/index.js +3 -3
- package/dist/esm/plugins/code-block/nodeviews/highlighting-code-block.js +6 -3
- package/dist/esm/plugins/code-block/pm-plugins/main.js +11 -3
- package/dist/esm/plugins/extension/extension-api.js +9 -2
- package/dist/esm/plugins/extension/ui/styles.js +1 -1
- package/dist/esm/plugins/feature-flags-context/feature-flags-from-props.js +4 -2
- package/dist/esm/plugins/find-replace/FindReplaceToolbarButtonWithState.js +155 -0
- package/dist/esm/plugins/find-replace/index.js +14 -131
- package/dist/esm/plugins/find-replace/ui/Find.js +17 -10
- package/dist/esm/plugins/find-replace/ui/FindReplace.js +10 -3
- package/dist/esm/plugins/find-replace/ui/Replace.js +11 -4
- package/dist/esm/plugins/find-replace/ui/styles.js +39 -18
- package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +2 -1
- package/dist/esm/plugins/floating-toolbar/ui/EmojiPickerButton.js +9 -4
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +1 -1
- package/dist/esm/plugins/fragment/index.js +22 -0
- package/dist/esm/plugins/fragment/plugin-key.js +2 -0
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
- package/dist/esm/plugins/index.js +2 -0
- package/dist/esm/plugins/list/actions/conversions.js +38 -71
- package/dist/esm/plugins/list/transforms.js +7 -1
- package/dist/esm/plugins/media/index.js +2 -3
- package/dist/esm/plugins/media/nodeviews/mediaGroup.js +2 -1
- package/dist/esm/plugins/media/nodeviews/mediaInline.js +11 -6
- package/dist/esm/plugins/media/nodeviews/mediaNodeUpdater.js +3 -3
- package/dist/esm/plugins/media/nodeviews/mediaSingle.js +7 -5
- package/dist/esm/plugins/media/nodeviews/styles.js +2 -0
- package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +5 -1
- package/dist/esm/plugins/media/pm-plugins/main.js +47 -16
- package/dist/esm/plugins/media/toolbar/commands.js +45 -0
- package/dist/esm/plugins/media/toolbar/filePreviewItem.js +6 -2
- package/dist/esm/plugins/media/toolbar/index.js +88 -3
- package/dist/esm/plugins/media/ui/ResizableMediaSingle/index.js +9 -1
- package/dist/esm/plugins/media/utils/media-common.js +1 -1
- package/dist/esm/plugins/media/utils/media-files.js +6 -1
- package/dist/esm/plugins/panel/actions.js +2 -2
- package/dist/esm/plugins/panel/index.js +5 -5
- package/dist/esm/plugins/panel/nodeviews/panel.js +2 -2
- package/dist/esm/plugins/panel/toolbar.js +9 -4
- package/dist/esm/plugins/panel/utils.js +13 -0
- package/dist/esm/plugins/rank.js +3 -2
- package/dist/esm/plugins/selection/pm-plugins/selection-main.js +50 -1
- package/dist/esm/plugins/status/ui/statusPicker.js +4 -2
- package/dist/esm/plugins/table/commands/insert.js +1 -2
- package/dist/esm/plugins/table/index.js +3 -2
- package/dist/esm/plugins/table/nodeviews/OverflowShadowsObserver.js +1 -2
- package/dist/esm/plugins/table/pm-plugins/main.js +27 -4
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/colgroup.js +2 -2
- package/dist/esm/plugins/table/pm-plugins/table-resizing/utils/resize-state.js +2 -0
- package/dist/esm/plugins/table/transforms/column-width.js +13 -3
- package/dist/esm/plugins/table/transforms/fix-tables.js +42 -4
- package/dist/esm/plugins/table/ui/FloatingContextualButton/index.js +3 -2
- package/dist/esm/plugins/table/ui/FloatingContextualMenu/ContextualMenu.js +1 -0
- package/dist/esm/plugins/table/ui/common-styles.css.js +1 -1
- package/dist/esm/plugins/table/ui/consts.js +2 -2
- package/dist/esm/plugins/table/ui/messages.js +1 -1
- package/dist/esm/plugins/tasks-and-decisions/nodeviews/decisionItem.js +1 -1
- package/dist/esm/plugins/tasks-and-decisions/nodeviews/taskItem.js +1 -1
- package/dist/esm/plugins/tasks-and-decisions/pm-plugins/main.js +3 -3
- package/dist/esm/plugins/text-color/ui/ToolbarTextColor/index.js +2 -1
- package/dist/esm/plugins/text-formatting/index.js +3 -2
- package/dist/esm/plugins/type-ahead/ui/TypeAheadList.js +2 -1
- package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +2 -1
- package/dist/esm/ui/Appearance/FullPage/FullPageToolbar.js +67 -27
- package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +20 -7
- package/dist/esm/ui/ColorPalette/Color/index.js +9 -16
- package/dist/esm/ui/ColorPalette/index.js +7 -4
- package/dist/esm/ui/ColorPickerButton/index.js +1 -1
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +113 -62
- package/dist/esm/ui/ConfigPanel/FormContent.js +39 -26
- package/dist/esm/ui/ConfigPanel/transformers.js +488 -248
- package/dist/esm/ui/ConfigPanel/utils.js +1 -6
- package/dist/esm/ui/Dropdown/index.js +2 -1
- package/dist/esm/ui/DropdownMenu/index.js +7 -3
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +1 -0
- package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +1 -0
- package/dist/esm/ui/LinkSearch/LinkSearchListItem.js +2 -2
- package/dist/esm/ui/Resizer/index.js +9 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/labs/next/full-page.d.ts +1 -1
- package/dist/types/nodeviews/ReactNodeView.d.ts +1 -1
- package/dist/types/nodeviews/SelectionBasedNodeView.d.ts +1 -0
- package/dist/types/plugins/analytics/types/enums.d.ts +1 -0
- package/dist/types/plugins/analytics/types/events.d.ts +7 -1
- package/dist/types/plugins/annotation/utils.d.ts +1 -1
- package/dist/types/plugins/avatar-group/index.d.ts +1 -0
- package/dist/types/plugins/avatar-group/ui/AvatarGroupPluginWrapper.d.ts +1 -0
- package/dist/types/plugins/before-primaryToolbar/index.d.ts +5 -0
- package/dist/types/plugins/before-primaryToolbar/ui/BeforePrimaryToolbarWrapper.d.ts +5 -0
- package/dist/types/plugins/code-bidi-warning/index.d.ts +4 -2
- package/dist/types/plugins/code-bidi-warning/pm-plugins/main.d.ts +4 -2
- package/dist/types/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +2 -1
- package/dist/types/plugins/code-bidi-warning/pm-plugins/types.d.ts +1 -0
- package/dist/types/plugins/code-block/index.d.ts +1 -1
- package/dist/types/plugins/code-block/nodeviews/highlighting-code-block.d.ts +12 -1
- package/dist/types/plugins/code-block/pm-plugins/main.d.ts +3 -1
- package/dist/types/plugins/code-block/types.d.ts +2 -0
- package/dist/types/plugins/feature-flags-context/get-enabled-feature-flag-keys.d.ts +1 -1
- package/dist/types/plugins/find-replace/FindReplaceToolbarButtonWithState.d.ts +15 -0
- package/dist/types/plugins/find-replace/index.d.ts +1 -0
- package/dist/types/plugins/find-replace/ui/Find.d.ts +1 -0
- package/dist/types/plugins/find-replace/ui/FindReplace.d.ts +1 -0
- package/dist/types/plugins/find-replace/ui/Replace.d.ts +1 -0
- package/dist/types/plugins/find-replace/ui/styles.d.ts +5 -14
- package/dist/types/plugins/floating-toolbar/ui/EmojiPickerButton.d.ts +1 -1
- package/dist/types/plugins/fragment/index.d.ts +5 -0
- package/dist/types/plugins/fragment/plugin-key.d.ts +2 -0
- package/dist/types/plugins/index.d.ts +2 -0
- package/dist/types/plugins/media/nodeviews/mediaInline.d.ts +3 -2
- package/dist/types/plugins/media/nodeviews/mediaNodeUpdater.d.ts +2 -2
- package/dist/types/plugins/media/nodeviews/mediaSingle.d.ts +1 -1
- package/dist/types/plugins/media/nodeviews/styles.d.ts +2 -0
- package/dist/types/plugins/media/toolbar/commands.d.ts +3 -0
- package/dist/types/plugins/media/toolbar/filePreviewItem.d.ts +2 -0
- package/dist/types/plugins/media/types.d.ts +0 -1
- package/dist/types/plugins/panel/actions.d.ts +1 -1
- package/dist/types/plugins/panel/types.d.ts +8 -2
- package/dist/types/plugins/quick-insert/index.d.ts +2 -1
- package/dist/types/plugins/table/commands/insert.d.ts +3 -0
- package/dist/types/plugins/table/pm-plugins/main.d.ts +2 -1
- package/dist/types/plugins/table/pm-plugins/table-resizing/utils/types.d.ts +1 -0
- package/dist/types/plugins/table/transforms/column-width.d.ts +4 -1
- package/dist/types/plugins/table/transforms/fix-tables.d.ts +3 -2
- package/dist/types/plugins/table/types.d.ts +8 -0
- package/dist/types/plugins/table/ui/consts.d.ts +1 -1
- package/dist/types/types/editor-appearance-component.d.ts +2 -2
- package/dist/types/types/editor-props.d.ts +11 -1
- package/dist/types/types/feature-flags.d.ts +13 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/FullPageToolbar.d.ts +2 -2
- package/dist/types/ui/Appearance/FullPage/MainToolbar.d.ts +10 -1
- package/dist/types/ui/ColorPalette/Color/index.d.ts +8 -5
- package/dist/types/ui/ColorPalette/index.d.ts +1 -0
- package/dist/types/ui/ConfigPanel/transformers.d.ts +7 -1
- package/dist/types/ui/ConfigPanel/utils.d.ts +0 -1
- package/dist/types/ui/Resizer/index.d.ts +1 -0
- package/package.json +14 -10
- package/dist/cjs/plugins/floating-toolbar/ui/EditorRemoveEmojiIcon.js +0 -38
- package/dist/es2019/plugins/floating-toolbar/ui/EditorRemoveEmojiIcon.js +0 -28
- package/dist/esm/plugins/floating-toolbar/ui/EditorRemoveEmojiIcon.js +0 -28
- package/dist/types/plugins/floating-toolbar/ui/EditorRemoveEmojiIcon.d.ts +0 -1
|
@@ -44,6 +44,7 @@ export { default as breakoutPlugin } from './breakout';
|
|
|
44
44
|
export { default as alignmentPlugin } from './alignment';
|
|
45
45
|
export { default as dataConsumerMarkPlugin } from './data-consumer';
|
|
46
46
|
export { default as editorDisabledPlugin } from './editor-disabled';
|
|
47
|
+
export { default as fragmentMarkPlugin } from './fragment';
|
|
47
48
|
export { default as indentationPlugin } from './indentation';
|
|
48
49
|
export { default as annotationPlugin } from './annotation';
|
|
49
50
|
export { default as analyticsPlugin } from './analytics';
|
|
@@ -63,4 +64,5 @@ export { default as clipboardPlugin } from './clipboard';
|
|
|
63
64
|
export { default as undoRedoPlugin } from './undo-redo';
|
|
64
65
|
export { default as avatarGroupPlugin } from './avatar-group';
|
|
65
66
|
export { default as viewUpdateSubscriptionPlugin } from './view-update-subscription';
|
|
67
|
+
export { default as beforePrimaryToolbarPlugin } from './before-primaryToolbar';
|
|
66
68
|
export { default as codeBidiWarningPlugin } from './code-bidi-warning';
|
|
@@ -2,7 +2,7 @@ import { Node as PMNode } from 'prosemirror-model';
|
|
|
2
2
|
import { EditorView, NodeView } from 'prosemirror-view';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { EventDispatcher } from '../../../event-dispatcher';
|
|
5
|
-
import { getPosHandler,
|
|
5
|
+
import { getPosHandler, SelectionBasedNodeView } from '../../../nodeviews/';
|
|
6
6
|
import { FileIdentifier } from '@atlaskit/media-client';
|
|
7
7
|
import { MediaProvider, ProviderFactory } from '@atlaskit/editor-common';
|
|
8
8
|
import { PortalProviderAPI } from '../../../../src/ui/PortalProvider';
|
|
@@ -10,12 +10,13 @@ export interface MediaInlineProps {
|
|
|
10
10
|
mediaProvider: Promise<MediaProvider>;
|
|
11
11
|
identifier: FileIdentifier;
|
|
12
12
|
node: PMNode;
|
|
13
|
+
isSelected: boolean;
|
|
13
14
|
}
|
|
14
15
|
export declare const MediaInline: React.FC<MediaInlineProps>;
|
|
15
16
|
export interface MediaInlineNodeViewProps {
|
|
16
17
|
providerFactory: ProviderFactory;
|
|
17
18
|
}
|
|
18
|
-
export declare class MediaInlineNodeView extends
|
|
19
|
+
export declare class MediaInlineNodeView extends SelectionBasedNodeView<MediaInlineNodeViewProps> {
|
|
19
20
|
createDomRef(): HTMLSpanElement;
|
|
20
21
|
getContentDOM(): {
|
|
21
22
|
dom: HTMLSpanElement;
|
|
@@ -28,9 +28,9 @@ export declare class MediaNodeUpdater {
|
|
|
28
28
|
hasFileAttributesDefined: () => string | false | 0 | null | undefined;
|
|
29
29
|
updateFileAttrs: (isMediaSingle?: boolean) => Promise<void>;
|
|
30
30
|
getAttrs: () => MediaADFAttrs | undefined;
|
|
31
|
-
getObjectId: () => Promise<string |
|
|
31
|
+
getObjectId: () => Promise<string | null>;
|
|
32
32
|
uploadExternalMedia: (getPos: ProsemirrorGetPosHandler) => Promise<void>;
|
|
33
|
-
getNodeContextId: () => string |
|
|
33
|
+
getNodeContextId: () => string | null;
|
|
34
34
|
updateDimensions: (dimensions: RemoteDimensions) => void;
|
|
35
35
|
getRemoteDimensions(): Promise<false | RemoteDimensions>;
|
|
36
36
|
hasDifferentContextId: () => Promise<boolean>;
|
|
@@ -47,7 +47,7 @@ declare class MediaSingleNodeView extends ReactNodeView<MediaSingleNodeViewProps
|
|
|
47
47
|
checkAndUpdateSelectionType: () => import("../../../utils/nodes").SelectedState | null;
|
|
48
48
|
isNodeSelected: () => boolean;
|
|
49
49
|
getNodeMediaId(node: PMNode): string | undefined;
|
|
50
|
-
update(node: PMNode, decorations: Decoration[], isValidUpdate?: (currentNode: PMNode, newNode: PMNode) => boolean): boolean;
|
|
50
|
+
update(node: PMNode, decorations: Decoration[], _innerDecorations?: Decoration[], isValidUpdate?: (currentNode: PMNode, newNode: PMNode) => boolean): boolean;
|
|
51
51
|
render(props: MediaSingleNodeViewProps, forwardRef?: ForwardRef): JSX.Element;
|
|
52
52
|
ignoreMutation(): boolean;
|
|
53
53
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NumericalCardDimensions } from '@atlaskit/media-card';
|
|
3
|
+
export declare const MediaInlineNodeSelector = "media-inline-node";
|
|
4
|
+
export declare const MediaSingleNodeSelector = "media-single-node";
|
|
3
5
|
export declare const FigureWrapper: import("styled-components").StyledComponentClass<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, any, React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>>;
|
|
4
6
|
declare type MediaCardWrapperProps = {
|
|
5
7
|
dimensions: NumericalCardDimensions;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { MediaPluginState } from '../pm-plugins/types';
|
|
3
|
+
import { InjectedIntl } from 'react-intl';
|
|
3
4
|
interface FilePreviewProps {
|
|
4
5
|
mediaPluginState: MediaPluginState;
|
|
6
|
+
intl: InjectedIntl;
|
|
5
7
|
}
|
|
6
8
|
export declare const FilePreviewItem: FC<FilePreviewProps>;
|
|
7
9
|
export {};
|
|
@@ -10,7 +10,6 @@ import { PlaceholderTextOptions } from '../../plugins/placeholder-text/types';
|
|
|
10
10
|
export declare type MediaStateStatus = 'unknown' | 'ready' | 'cancelled' | 'preview' | 'error' | 'mobile-upload-end';
|
|
11
11
|
export interface MediaOptions {
|
|
12
12
|
provider?: Providers['mediaProvider'];
|
|
13
|
-
allowMediaInline?: boolean;
|
|
14
13
|
allowMediaSingle?: boolean | MediaSingleOptions;
|
|
15
14
|
allowMediaGroup?: boolean;
|
|
16
15
|
customDropzoneContainer?: HTMLElement;
|
|
@@ -6,4 +6,4 @@ export declare type DomAtPos = (pos: number) => {
|
|
|
6
6
|
offset: number;
|
|
7
7
|
};
|
|
8
8
|
export declare const removePanel: () => Command;
|
|
9
|
-
export declare const changePanelType: (panelType: PanelType, panelOptions?: PanelOptions,
|
|
9
|
+
export declare const changePanelType: (panelType: PanelType, panelOptions?: PanelOptions, allowCustomPanel?: boolean) => Command;
|
|
@@ -4,6 +4,12 @@ export declare const pluginKey: PluginKey<any, any>;
|
|
|
4
4
|
export interface PanelPluginOptions extends LongPressSelectionPluginOptions, PanelPluginConfig {
|
|
5
5
|
}
|
|
6
6
|
export interface PanelPluginConfig {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
allowCustomPanel?: boolean;
|
|
8
|
+
allowCustomPanelEdit?: boolean;
|
|
9
9
|
}
|
|
10
|
+
export declare type DomPanelAtrrs = {
|
|
11
|
+
class: string;
|
|
12
|
+
'data-panel-type': string;
|
|
13
|
+
'data-panel-color'?: string;
|
|
14
|
+
style: string;
|
|
15
|
+
};
|
|
@@ -7,4 +7,5 @@ export type { QuickInsertHandler, QuickInsertPluginState, QuickInsertPluginOptio
|
|
|
7
7
|
export { pluginKey };
|
|
8
8
|
declare const quickInsertPlugin: (options?: QuickInsertPluginOptions | undefined) => EditorPlugin;
|
|
9
9
|
export default quickInsertPlugin;
|
|
10
|
-
|
|
10
|
+
declare const processItems: (items: Array<QuickInsertHandler>, intl: InjectedIntl, extendedActions?: Record<string, Function> | undefined) => QuickInsertItem[];
|
|
11
|
+
export declare const memoProcessItems: typeof processItems;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { Transaction } from 'prosemirror-state';
|
|
1
2
|
import { Command } from '../../../types';
|
|
3
|
+
import { EditorView } from 'prosemirror-view';
|
|
4
|
+
export declare function addColumnAt(column: number, allowAddColumnCustomStep: boolean | undefined, view: EditorView | undefined): (tr: Transaction) => Transaction<any>;
|
|
2
5
|
export declare const addColumnBefore: Command;
|
|
3
6
|
export declare const addColumnAfter: Command;
|
|
4
7
|
export declare const insertColumn: (column: number) => Command;
|
|
@@ -2,4 +2,5 @@ import { Plugin } from 'prosemirror-state';
|
|
|
2
2
|
import { Dispatch, EventDispatcher } from '../../../event-dispatcher';
|
|
3
3
|
import { PortalProviderAPI } from '../../../ui/PortalProvider';
|
|
4
4
|
import { PluginConfig } from '../types';
|
|
5
|
-
|
|
5
|
+
import { DispatchAnalyticsEvent } from '../../analytics/types/dispatch-analytics-event';
|
|
6
|
+
export declare const createPlugin: (dispatchAnalyticsEvent: DispatchAnalyticsEvent, dispatch: Dispatch, portalProviderAPI: PortalProviderAPI, eventDispatcher: EventDispatcher, pluginConfig: PluginConfig, dynamicTextSizing?: boolean | undefined, breakoutEnabled?: boolean | undefined, fullWidthModeEnabled?: boolean | undefined, previousFullWidthModeEnabled?: boolean | undefined) => Plugin<import("../types").TablePluginState, import("prosemirror-model").Schema<any, any>>;
|
|
@@ -5,7 +5,10 @@ import { ContentNodeWithPos } from 'prosemirror-utils';
|
|
|
5
5
|
import { EditorView } from 'prosemirror-view';
|
|
6
6
|
export declare const updateColumnWidths: (resizeState: ResizeState, table: PMNode, start: number) => (tr: Transaction) => Transaction;
|
|
7
7
|
/**
|
|
8
|
-
* This function is called when user inserts/deletes a column in a table to
|
|
8
|
+
* This function is called when user inserts/deletes a column in a table to;
|
|
9
|
+
* - rescale all columns (if the table did not overflow before the insertion)
|
|
10
|
+
* - and update column widths.
|
|
11
|
+
*
|
|
9
12
|
* This is done manually to avoid a multi-dispatch in TableComponent. See [ED-8288].
|
|
10
13
|
* @param table
|
|
11
14
|
* @param view
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Node as PMNode } from 'prosemirror-model';
|
|
2
2
|
import { Transaction } from 'prosemirror-state';
|
|
3
3
|
import { EditorView } from 'prosemirror-view';
|
|
4
|
+
import { ReportInvalidNodeAttrs } from '../types';
|
|
4
5
|
export declare const fireAnalytics: (properties?: {}) => Promise<Response>;
|
|
5
|
-
export declare const removeExtraneousColumnWidths: (node: PMNode, basePos: number, tr: Transaction) => boolean;
|
|
6
|
-
export declare const fixTables: (tr: Transaction) => Transaction | undefined;
|
|
6
|
+
export declare const removeExtraneousColumnWidths: (node: PMNode, basePos: number, tr: Transaction, reportInvalidTableCellSpanAttrs?: ReportInvalidNodeAttrs | undefined) => boolean;
|
|
7
|
+
export declare const fixTables: (tr: Transaction, reportInvalidTableCellSpanAttrs?: ReportInvalidNodeAttrs | undefined) => Transaction | undefined;
|
|
7
8
|
export declare const fixAutoSizedTable: (view: EditorView, tableNode: PMNode, tableRef: HTMLTableElement, tablePos: number, opts: {
|
|
8
9
|
dynamicTextSizing: boolean;
|
|
9
10
|
containerWidth: number;
|
|
@@ -324,3 +324,11 @@ export declare enum ShadowEvent {
|
|
|
324
324
|
SHOW_BEFORE_SHADOW = "showBeforeShadow",
|
|
325
325
|
SHOW_AFTER_SHADOW = "showAfterShadow"
|
|
326
326
|
}
|
|
327
|
+
export declare type ReportInvalidNodeAttrs = (invalidNodeAttrs: InvalidNodeAttr) => void;
|
|
328
|
+
export declare type InvalidNodeAttr = {
|
|
329
|
+
nodeType: string;
|
|
330
|
+
attribute: string;
|
|
331
|
+
reason: string;
|
|
332
|
+
spanValue: number;
|
|
333
|
+
tableLocalId: string;
|
|
334
|
+
};
|
|
@@ -10,7 +10,7 @@ export declare const tableCellSelectedColor = "#B3D4FF";
|
|
|
10
10
|
export declare const tableToolbarSelectedColor = "#4C9AFF";
|
|
11
11
|
export declare const tableBorderSelectedColor = "#0065FF";
|
|
12
12
|
export declare const tableCellDeleteColor = "#FFEBE6";
|
|
13
|
-
export declare const tableBorderDeleteColor = "#
|
|
13
|
+
export declare const tableBorderDeleteColor = "#DE350B";
|
|
14
14
|
export declare const tableToolbarDeleteColor = "#FFBDAD";
|
|
15
15
|
export declare const tableBorderRadiusSize = 3;
|
|
16
16
|
export declare const tablePadding = 8;
|
|
@@ -4,7 +4,7 @@ import { ProviderFactory, ExtensionHandlers } from '@atlaskit/editor-common';
|
|
|
4
4
|
import { EventDispatcher } from '../event-dispatcher';
|
|
5
5
|
import EditorActions from '../actions';
|
|
6
6
|
import { UIComponentFactory } from '../types/ui-components';
|
|
7
|
-
import { ReactComponents } from '../types/editor-props';
|
|
7
|
+
import { ReactComponents, PrimaryToolbarComponents } from '../types/editor-props';
|
|
8
8
|
import { ToolbarUIComponentFactory } from '../ui/Toolbar/types';
|
|
9
9
|
import { CollabEditOptions } from '../plugins/collab-edit/types';
|
|
10
10
|
import { DispatchAnalyticsEvent } from '../plugins/analytics';
|
|
@@ -28,7 +28,7 @@ export interface EditorAppearanceComponentProps {
|
|
|
28
28
|
primaryToolbarIconBefore?: ReactElement;
|
|
29
29
|
secondaryToolbarComponents?: UIComponentFactory[];
|
|
30
30
|
customContentComponents?: ReactComponents;
|
|
31
|
-
customPrimaryToolbarComponents?:
|
|
31
|
+
customPrimaryToolbarComponents?: PrimaryToolbarComponents;
|
|
32
32
|
customSecondaryToolbarComponents?: ReactComponents;
|
|
33
33
|
insertMenuItems?: MenuItem[];
|
|
34
34
|
contextPanel?: ReactComponents;
|
|
@@ -41,10 +41,15 @@ export declare type FeedbackInfo = {
|
|
|
41
41
|
contentId?: string;
|
|
42
42
|
tabId?: string;
|
|
43
43
|
};
|
|
44
|
+
export declare type BeforeAndAfterToolbarComponents = {
|
|
45
|
+
before: ReactComponents;
|
|
46
|
+
after: ReactComponents;
|
|
47
|
+
};
|
|
48
|
+
export declare type PrimaryToolbarComponents = BeforeAndAfterToolbarComponents | ReactComponents;
|
|
44
49
|
export interface EditorProps {
|
|
45
50
|
appearance?: EditorAppearance;
|
|
46
51
|
contentComponents?: ReactComponents;
|
|
47
|
-
primaryToolbarComponents?:
|
|
52
|
+
primaryToolbarComponents?: PrimaryToolbarComponents;
|
|
48
53
|
primaryToolbarIconBefore?: ReactElement;
|
|
49
54
|
secondaryToolbarComponents?: ReactComponents;
|
|
50
55
|
allowAnalyticsGASV3?: boolean;
|
|
@@ -205,6 +210,11 @@ export interface EditorProps {
|
|
|
205
210
|
featureFlags?: {
|
|
206
211
|
[featureFlag: string]: string | boolean;
|
|
207
212
|
};
|
|
213
|
+
/**
|
|
214
|
+
* Enable experimental support for the "fragment" mark.
|
|
215
|
+
* Refer to ADF Change proposal #60 for more details.
|
|
216
|
+
*/
|
|
217
|
+
UNSAFE_allowFragmentMark?: boolean;
|
|
208
218
|
/**
|
|
209
219
|
* @deprecated Do not use outside of Editor team.
|
|
210
220
|
* This has subtle side effects - you __WILL__ break functionality without implementer knowledge of editor-core internals
|
|
@@ -28,6 +28,13 @@
|
|
|
28
28
|
* Example: name = "newInsertionBehaviour" -> "Enable new insertion behaviour"
|
|
29
29
|
*/
|
|
30
30
|
export declare type FeatureFlags = {
|
|
31
|
+
/**
|
|
32
|
+
* @description Enable single layout option
|
|
33
|
+
*
|
|
34
|
+
* @see https://hello.atlassian.net/browse/LOVE-187
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
singleLayout?: boolean;
|
|
31
38
|
/**
|
|
32
39
|
* @description Enable new insertion behaviour
|
|
33
40
|
*
|
|
@@ -259,5 +266,11 @@ export declare type FeatureFlags = {
|
|
|
259
266
|
* @default false
|
|
260
267
|
*/
|
|
261
268
|
ufo?: boolean;
|
|
269
|
+
/**
|
|
270
|
+
* Split editor toolbar to two lines when viewport is small
|
|
271
|
+
* @see https://product-fabric.atlassian.net/browse/CERN-1124
|
|
272
|
+
* @default false
|
|
273
|
+
*/
|
|
274
|
+
twoLineEditorToolbar?: boolean;
|
|
262
275
|
};
|
|
263
276
|
export declare type FeatureFlagKey = keyof FeatureFlags;
|
|
@@ -2,7 +2,7 @@ export type { EditorInstance } from './editor-instance';
|
|
|
2
2
|
export type { EditorConfig } from './editor-config';
|
|
3
3
|
export type { EditorPlugin, PluginsOptions } from './editor-plugin';
|
|
4
4
|
export type { EditorReactContext } from './editor-react-context';
|
|
5
|
-
export type { EditorProps, FeedbackInfo, ReactComponents, ExtensionProvidersProp, } from './editor-props';
|
|
5
|
+
export type { EditorProps, FeedbackInfo, ReactComponents, ExtensionProvidersProp, PrimaryToolbarComponents, } from './editor-props';
|
|
6
6
|
export type { EditorAppearanceComponentProps } from './editor-appearance-component';
|
|
7
7
|
export type { Command, CommandDispatch } from './command';
|
|
8
8
|
export type { MessageDescriptor } from './i18n';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ReactElement } from 'react';
|
|
2
2
|
import { ProviderFactory } from '@atlaskit/editor-common';
|
|
3
3
|
import { EditorView } from 'prosemirror-view';
|
|
4
|
-
import { EditorAppearance,
|
|
4
|
+
import { EditorAppearance, ToolbarUIComponentFactory, PrimaryToolbarComponents } from '../../../types';
|
|
5
5
|
import { CollabEditOptions } from '../../../plugins/collab-edit';
|
|
6
6
|
import { DispatchAnalyticsEvent } from '../../../plugins/analytics';
|
|
7
7
|
import { EventDispatcher } from '../../../event-dispatcher';
|
|
@@ -16,7 +16,7 @@ export interface FullPageToolbarProps {
|
|
|
16
16
|
eventDispatcher: EventDispatcher;
|
|
17
17
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
18
18
|
primaryToolbarComponents?: ToolbarUIComponentFactory[];
|
|
19
|
-
customPrimaryToolbarComponents?:
|
|
19
|
+
customPrimaryToolbarComponents?: PrimaryToolbarComponents;
|
|
20
20
|
popupsMountPoint?: HTMLElement;
|
|
21
21
|
popupsBoundariesElement?: HTMLElement;
|
|
22
22
|
popupsScrollableElement?: HTMLElement;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
export declare const MAXIMUM_TWO_LINE_TOOLBAR_BREAKPOINT = 868;
|
|
2
3
|
export interface MainToolbarProps {
|
|
3
4
|
showKeyline: boolean;
|
|
5
|
+
twoLineEditorToolbar: boolean;
|
|
6
|
+
}
|
|
7
|
+
interface MainToolbarChildProps {
|
|
8
|
+
twoLineEditorToolbar: boolean;
|
|
4
9
|
}
|
|
5
10
|
export declare const MainToolbar: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & MainToolbarProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & MainToolbarProps>;
|
|
6
11
|
export declare const MainToolbarIconBefore: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
7
|
-
export declare const
|
|
12
|
+
export declare const MainToolbarFirstChild: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & MainToolbarChildProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & MainToolbarChildProps>;
|
|
13
|
+
export declare const MainToolbarSecondChild: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & MainToolbarChildProps, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & MainToolbarChildProps>;
|
|
8
14
|
export declare const SecondaryToolbar: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
15
|
+
export declare const NonCustomToolbarWrapper: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
16
|
+
export declare const CustomToolbarWrapper: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
17
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { PureComponent } from 'react';
|
|
3
3
|
export interface Props {
|
|
4
4
|
value: string;
|
|
5
5
|
label: string;
|
|
@@ -8,8 +8,11 @@ export interface Props {
|
|
|
8
8
|
onClick: (value: string, label: string) => void;
|
|
9
9
|
borderColor: string;
|
|
10
10
|
checkMarkColor?: string;
|
|
11
|
+
autoFocus?: boolean;
|
|
11
12
|
}
|
|
12
|
-
declare
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
|
|
13
|
+
declare class Color extends PureComponent<Props> {
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
onMouseDown: (e: React.MouseEvent<{}>) => void;
|
|
16
|
+
onClick: (e: React.MouseEvent<{}>) => void;
|
|
17
|
+
}
|
|
18
|
+
export default Color;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
import { FieldDefinition, Parameters, ExtensionManifest, ParametersWithDuplicateFields } from '@atlaskit/editor-common/extensions';
|
|
2
|
-
|
|
2
|
+
interface SerializeOptions {
|
|
3
|
+
depth?: number;
|
|
4
|
+
parentType?: 'fieldset' | 'tab' | 'expand';
|
|
5
|
+
}
|
|
6
|
+
export declare const findDuplicateFields: (fields: FieldDefinition[]) => FieldDefinition | undefined;
|
|
7
|
+
export declare const serialize: (manifest: ExtensionManifest, data: Parameters, fields: FieldDefinition[], options?: SerializeOptions) => Promise<Parameters>;
|
|
3
8
|
export declare const deserialize: (manifest: ExtensionManifest, data: Parameters | ParametersWithDuplicateFields, fields: FieldDefinition[], depth?: number) => Promise<Parameters>;
|
|
9
|
+
export {};
|
|
@@ -2,7 +2,6 @@ import { Option, FieldDefinition, Parameters } from '@atlaskit/editor-common/ext
|
|
|
2
2
|
import { ValidationError, Entry } from './types';
|
|
3
3
|
export declare const validate: <T>(field: Partial<FieldDefinition>, value: T) => ValidationError | undefined;
|
|
4
4
|
export declare const fromEntries: <T>(iterable: Entry<T>[]) => Parameters;
|
|
5
|
-
export declare const toEntries: (parameters: Parameters) => [string, unknown][];
|
|
6
5
|
declare type ValidationProps = {
|
|
7
6
|
isRequired?: boolean;
|
|
8
7
|
isMultiple?: boolean;
|
|
@@ -25,6 +25,7 @@ export declare type ResizerProps = Omit<ResizableMediaSingleProps, 'height' | 'w
|
|
|
25
25
|
height?: number;
|
|
26
26
|
width: number;
|
|
27
27
|
ratio?: string;
|
|
28
|
+
handleComponentFunc?: (side: string) => React.ReactElement<any> | undefined;
|
|
28
29
|
};
|
|
29
30
|
export declare type ResizerState = {
|
|
30
31
|
isResizing: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "151.1
|
|
3
|
+
"version": "151.3.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@atlaskit/button": "^16.1.0",
|
|
39
39
|
"@atlaskit/calendar": "^12.1.0",
|
|
40
40
|
"@atlaskit/checkbox": "^12.3.0",
|
|
41
|
-
"@atlaskit/code": "^14.
|
|
41
|
+
"@atlaskit/code": "^14.3.0",
|
|
42
42
|
"@atlaskit/date": "^0.8.0",
|
|
43
43
|
"@atlaskit/datetime-picker": "^11.1.0",
|
|
44
44
|
"@atlaskit/droplist": "^11.0.0",
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"@atlaskit/util-service-support": "^6.0.0",
|
|
83
83
|
"@atlaskit/width-detector": "^3.0.0",
|
|
84
84
|
"@babel/runtime": "^7.0.0",
|
|
85
|
+
"@emotion/core": "^10.0.9",
|
|
85
86
|
"@types/prosemirror-collab": "^1.1.1",
|
|
86
87
|
"@types/prosemirror-commands": "^1.0.1",
|
|
87
88
|
"@types/prosemirror-history": "^1.0.1",
|
|
@@ -106,16 +107,16 @@
|
|
|
106
107
|
"memoize-one": "^6.0.0",
|
|
107
108
|
"prop-types": "^15.5.10",
|
|
108
109
|
"prosemirror-collab": "^1.2.2",
|
|
109
|
-
"prosemirror-commands": "
|
|
110
|
+
"prosemirror-commands": "1.1.11",
|
|
110
111
|
"prosemirror-history": "^1.1.3",
|
|
111
112
|
"prosemirror-inputrules": "^1.1.3",
|
|
112
113
|
"prosemirror-keymap": "1.1.4",
|
|
113
|
-
"prosemirror-model": "1.
|
|
114
|
+
"prosemirror-model": "1.14.3",
|
|
114
115
|
"prosemirror-schema-list": "^1.1.4",
|
|
115
|
-
"prosemirror-state": "1.3.
|
|
116
|
-
"prosemirror-transform": "1.2
|
|
116
|
+
"prosemirror-state": "1.3.4",
|
|
117
|
+
"prosemirror-transform": "1.3.2",
|
|
117
118
|
"prosemirror-utils": "^1.0.0-0",
|
|
118
|
-
"prosemirror-view": "1.
|
|
119
|
+
"prosemirror-view": "1.23.1",
|
|
119
120
|
"raf-schd": "^2.1.0",
|
|
120
121
|
"re-resizable": "6.0.0",
|
|
121
122
|
"react-loadable": "^5.1.0",
|
|
@@ -137,7 +138,7 @@
|
|
|
137
138
|
"devDependencies": {
|
|
138
139
|
"@atlaskit/atlassian-navigation": "^1.2.0",
|
|
139
140
|
"@atlaskit/breadcrumbs": "11.4.0",
|
|
140
|
-
"@atlaskit/code": "^14.
|
|
141
|
+
"@atlaskit/code": "^14.3.0",
|
|
141
142
|
"@atlaskit/collab-provider": "7.1.0",
|
|
142
143
|
"@atlaskit/docs": "*",
|
|
143
144
|
"@atlaskit/drawer": "^7.0.0",
|
|
@@ -155,7 +156,7 @@
|
|
|
155
156
|
"@atlaskit/page-layout": "^1.0.1",
|
|
156
157
|
"@atlaskit/profilecard": "^15.8.0",
|
|
157
158
|
"@atlaskit/pubsub": "^6.0.0",
|
|
158
|
-
"@atlaskit/renderer": "^82.
|
|
159
|
+
"@atlaskit/renderer": "^82.2.0",
|
|
159
160
|
"@atlaskit/section-message": "^6.1.0",
|
|
160
161
|
"@atlaskit/share": "*",
|
|
161
162
|
"@atlaskit/smart-card": "^16.2.0",
|
|
@@ -169,7 +170,7 @@
|
|
|
169
170
|
"@atlaskit/webdriver-runner": "*",
|
|
170
171
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
171
172
|
"@atlassian/search-provider": "2.1.15",
|
|
172
|
-
"@atlassian/ufo": "^0.0.
|
|
173
|
+
"@atlassian/ufo": "^0.0.31",
|
|
173
174
|
"@testing-library/react": "^8.0.1",
|
|
174
175
|
"@testing-library/react-hooks": "^1.0.4",
|
|
175
176
|
"@types/jscodeshift": "^0.11.0",
|
|
@@ -205,6 +206,9 @@
|
|
|
205
206
|
"circular-dependencies": [
|
|
206
207
|
"file-level"
|
|
207
208
|
]
|
|
209
|
+
},
|
|
210
|
+
"@repo/internal": {
|
|
211
|
+
"deprecation": "no-deprecated-imports"
|
|
208
212
|
}
|
|
209
213
|
},
|
|
210
214
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = EditorRemoveEmojiIcon;
|
|
9
|
-
|
|
10
|
-
var _react = _interopRequireDefault(require("react"));
|
|
11
|
-
|
|
12
|
-
function EditorRemoveEmojiIcon() {
|
|
13
|
-
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
14
|
-
width: "24",
|
|
15
|
-
height: "24",
|
|
16
|
-
viewBox: "0 0 24 24",
|
|
17
|
-
fill: "none",
|
|
18
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
-
}, /*#__PURE__*/_react.default.createElement("rect", {
|
|
20
|
-
width: "24",
|
|
21
|
-
height: "24",
|
|
22
|
-
fill: "white",
|
|
23
|
-
fillOpacity: "0.01"
|
|
24
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
25
|
-
fillRule: "evenodd",
|
|
26
|
-
clipRule: "evenodd",
|
|
27
|
-
d: "M5.84238 8.67075C5.29444 9.68427 5 10.827 5 12C5 13.8565 5.7375 15.637 7.05025 16.9497C8.36301 18.2625 10.1435 19 12 19C12.9193 19 13.8295 18.8189 14.6788 18.4672C14.9012 18.375 15.1183 18.2717 15.3292 18.1576L14.2087 17.037C13.5324 17.3347 12.7851 17.5 12 17.5C8.967 17.5 6.5 15.033 6.5 12C6.50084 11.2327 6.66182 10.4821 6.9644 9.79277L5.84238 8.67075ZM17.0371 14.2086C17.3347 13.5323 17.5 12.7851 17.5 12C17.5 8.967 15.033 6.5 12 6.5C11.2327 6.50084 10.4821 6.6618 9.79285 6.96437L8.67083 5.84234C9.68433 5.29442 10.827 5 12 5C12.9193 5 13.8295 5.18106 14.6788 5.53284C15.5281 5.88463 16.2997 6.40024 16.9497 7.05025C17.5998 7.70026 18.1154 8.47194 18.4672 9.32122C18.8189 10.1705 19 11.0807 19 12C19 12.9193 18.8189 13.8295 18.4672 14.6788C18.375 14.9012 18.2717 15.1182 18.1577 15.3292L17.0371 14.2086Z",
|
|
28
|
-
fill: "currentColor"
|
|
29
|
-
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
30
|
-
x: "4.31882",
|
|
31
|
-
y: "5.55618",
|
|
32
|
-
width: "1.75",
|
|
33
|
-
height: "19.9758",
|
|
34
|
-
rx: "0.875",
|
|
35
|
-
transform: "rotate(-45 4.31882 5.55618)",
|
|
36
|
-
fill: "currentColor"
|
|
37
|
-
}));
|
|
38
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export default function EditorRemoveEmojiIcon() {
|
|
3
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
4
|
-
width: "24",
|
|
5
|
-
height: "24",
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
fill: "none",
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
-
}, /*#__PURE__*/React.createElement("rect", {
|
|
10
|
-
width: "24",
|
|
11
|
-
height: "24",
|
|
12
|
-
fill: "white",
|
|
13
|
-
fillOpacity: "0.01"
|
|
14
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
15
|
-
fillRule: "evenodd",
|
|
16
|
-
clipRule: "evenodd",
|
|
17
|
-
d: "M5.84238 8.67075C5.29444 9.68427 5 10.827 5 12C5 13.8565 5.7375 15.637 7.05025 16.9497C8.36301 18.2625 10.1435 19 12 19C12.9193 19 13.8295 18.8189 14.6788 18.4672C14.9012 18.375 15.1183 18.2717 15.3292 18.1576L14.2087 17.037C13.5324 17.3347 12.7851 17.5 12 17.5C8.967 17.5 6.5 15.033 6.5 12C6.50084 11.2327 6.66182 10.4821 6.9644 9.79277L5.84238 8.67075ZM17.0371 14.2086C17.3347 13.5323 17.5 12.7851 17.5 12C17.5 8.967 15.033 6.5 12 6.5C11.2327 6.50084 10.4821 6.6618 9.79285 6.96437L8.67083 5.84234C9.68433 5.29442 10.827 5 12 5C12.9193 5 13.8295 5.18106 14.6788 5.53284C15.5281 5.88463 16.2997 6.40024 16.9497 7.05025C17.5998 7.70026 18.1154 8.47194 18.4672 9.32122C18.8189 10.1705 19 11.0807 19 12C19 12.9193 18.8189 13.8295 18.4672 14.6788C18.375 14.9012 18.2717 15.1182 18.1577 15.3292L17.0371 14.2086Z",
|
|
18
|
-
fill: "currentColor"
|
|
19
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
20
|
-
x: "4.31882",
|
|
21
|
-
y: "5.55618",
|
|
22
|
-
width: "1.75",
|
|
23
|
-
height: "19.9758",
|
|
24
|
-
rx: "0.875",
|
|
25
|
-
transform: "rotate(-45 4.31882 5.55618)",
|
|
26
|
-
fill: "currentColor"
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export default function EditorRemoveEmojiIcon() {
|
|
3
|
-
return /*#__PURE__*/React.createElement("svg", {
|
|
4
|
-
width: "24",
|
|
5
|
-
height: "24",
|
|
6
|
-
viewBox: "0 0 24 24",
|
|
7
|
-
fill: "none",
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
9
|
-
}, /*#__PURE__*/React.createElement("rect", {
|
|
10
|
-
width: "24",
|
|
11
|
-
height: "24",
|
|
12
|
-
fill: "white",
|
|
13
|
-
fillOpacity: "0.01"
|
|
14
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
15
|
-
fillRule: "evenodd",
|
|
16
|
-
clipRule: "evenodd",
|
|
17
|
-
d: "M5.84238 8.67075C5.29444 9.68427 5 10.827 5 12C5 13.8565 5.7375 15.637 7.05025 16.9497C8.36301 18.2625 10.1435 19 12 19C12.9193 19 13.8295 18.8189 14.6788 18.4672C14.9012 18.375 15.1183 18.2717 15.3292 18.1576L14.2087 17.037C13.5324 17.3347 12.7851 17.5 12 17.5C8.967 17.5 6.5 15.033 6.5 12C6.50084 11.2327 6.66182 10.4821 6.9644 9.79277L5.84238 8.67075ZM17.0371 14.2086C17.3347 13.5323 17.5 12.7851 17.5 12C17.5 8.967 15.033 6.5 12 6.5C11.2327 6.50084 10.4821 6.6618 9.79285 6.96437L8.67083 5.84234C9.68433 5.29442 10.827 5 12 5C12.9193 5 13.8295 5.18106 14.6788 5.53284C15.5281 5.88463 16.2997 6.40024 16.9497 7.05025C17.5998 7.70026 18.1154 8.47194 18.4672 9.32122C18.8189 10.1705 19 11.0807 19 12C19 12.9193 18.8189 13.8295 18.4672 14.6788C18.375 14.9012 18.2717 15.1182 18.1577 15.3292L17.0371 14.2086Z",
|
|
18
|
-
fill: "currentColor"
|
|
19
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
20
|
-
x: "4.31882",
|
|
21
|
-
y: "5.55618",
|
|
22
|
-
width: "1.75",
|
|
23
|
-
height: "19.9758",
|
|
24
|
-
rx: "0.875",
|
|
25
|
-
transform: "rotate(-45 4.31882 5.55618)",
|
|
26
|
-
fill: "currentColor"
|
|
27
|
-
}));
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function EditorRemoveEmojiIcon(): JSX.Element;
|