From f1a1c614a20e9afbefa0df38d136fe81a2e9293e Mon Sep 17 00:00:00 2001 From: Ben Dwyer Date: Tue, 30 Jul 2024 16:26:10 +0100 Subject: [PATCH] remove disconnected change --- .../src/components/inserter/search.js | 95 ------------------- 1 file changed, 95 deletions(-) delete mode 100644 packages/block-editor/src/components/inserter/search.js diff --git a/packages/block-editor/src/components/inserter/search.js b/packages/block-editor/src/components/inserter/search.js deleted file mode 100644 index 23d8ec5eb9b8a..0000000000000 --- a/packages/block-editor/src/components/inserter/search.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * External dependencies - */ -import clsx from 'clsx'; - -/** - * WordPress dependencies - */ -import { - forwardRef, - useState, - useCallback, - useMemo, - useRef, - useLayoutEffect, -} from '@wordpress/element'; -import { VisuallyHidden, SearchControl, Popover } from '@wordpress/components'; -import { __ } from '@wordpress/i18n'; -import { useDebouncedInput } from '@wordpress/compose'; -import { useSelect } from '@wordpress/data'; - -/** - * Internal dependencies - */ -import Tips from './tips'; -import InserterPreviewPanel from './preview-panel'; -import BlockTypesTab from './block-types-tab'; -import BlockPatternsTab from './block-patterns-tab'; -import { PatternCategoryPreviews } from './block-patterns-tab/pattern-category-previews'; -import { MediaTab, MediaCategoryPanel } from './media-tab'; -import InserterSearchResults from './search-results'; -import useInsertionPoint from './hooks/use-insertion-point'; -import { store as blockEditorStore } from '../../store'; -import TabbedSidebar from '../tabbed-sidebar'; -import { useZoomOut } from '../../hooks/use-zoom-out'; - -// TODO - add back useMemo -export const InserterSearch = ( { filterValue, selectedTab } ) => { - if ( selectedTab === 'media' ) { - return null; - } - - return ( - <> - { - if ( hoveredItem ) { - setHoveredItem( null ); - } - setFilterValue( value ); - } } - value={ filterValue } - label={ __( 'Search for blocks and patterns' ) } - placeholder={ __( 'Search' ) } - /> - { !! delayedFilterValue && ( - - ) } - - ); -}; -/*[ - selectedTab, - hoveredItem, - setHoveredItem, - setFilterValue, - filterValue, - delayedFilterValue, - onSelect, - onHover, - onHoverPattern, - shouldFocusBlock, - clientId, - rootClientId, - __experimentalInsertionIndex, - isAppender, - ] -); -*/