diff --git a/packages/edit-post/src/components/layout/index.js b/packages/edit-post/src/components/layout/index.js index 2f6325842290b..2b48764443bf2 100644 --- a/packages/edit-post/src/components/layout/index.js +++ b/packages/edit-post/src/components/layout/index.js @@ -52,7 +52,6 @@ import KeyboardShortcutHelpModal from '../keyboard-shortcut-help-modal'; import EditPostPreferencesModal from '../preferences-modal'; import BrowserURL from '../browser-url'; import Header from '../header'; -import ListViewSidebar from '../secondary-sidebar/list-view-sidebar'; import SettingsSidebar from '../sidebar/settings-sidebar'; import MetaBoxes from '../meta-boxes'; import WelcomeGuide from '../welcome-guide'; @@ -65,7 +64,7 @@ import useCommonCommands from '../../hooks/commands/use-common-commands'; const { getLayoutStyles } = unlock( blockEditorPrivateApis ); const { useCommands } = unlock( coreCommandsPrivateApis ); const { useCommandContext } = unlock( commandsPrivateApis ); -const { InserterSidebar } = unlock( editorPrivateApis ); +const { InserterSidebar, ListViewSidebar } = unlock( editorPrivateApis ); const interfaceLabels = { /* translators: accessibility text for the editor top bar landmark region. */ diff --git a/packages/edit-post/src/components/secondary-sidebar/list-view-outline.js b/packages/edit-post/src/components/secondary-sidebar/list-view-outline.js deleted file mode 100644 index 6d27767bdfd0b..0000000000000 --- a/packages/edit-post/src/components/secondary-sidebar/list-view-outline.js +++ /dev/null @@ -1,98 +0,0 @@ -/** - * WordPress dependencies - */ -import { useSelect } from '@wordpress/data'; -import { - DocumentOutline, - WordCount, - TimeToRead, - CharacterCount, -} from '@wordpress/editor'; -import { store as blockEditorStore } from '@wordpress/block-editor'; -import { - __experimentalText as Text, - Path, - SVG, - Line, - Rect, -} from '@wordpress/components'; -import { __ } from '@wordpress/i18n'; - -function EmptyOutlineIllustration() { - return ( - - ); -} - -export default function ListViewOutline() { - const { headingCount } = useSelect( ( select ) => { - const { getGlobalBlockCount } = select( blockEditorStore ); - return { - headingCount: getGlobalBlockCount( 'core/heading' ), - }; - }, [] ); - return ( - <> -
- { __( - 'Navigate the structure of your document and address issues like empty or incorrect heading levels.' - ) } -
-+ { __( + 'Navigate the structure of your document and address issues like empty or incorrect heading levels.' + ) } +
+