From 152bdccd82169485b40a1b6c6319caebbd59b739 Mon Sep 17 00:00:00 2001 From: Nik Tsekouras Date: Tue, 25 Apr 2023 09:21:01 +0300 Subject: [PATCH] Fix PrivateInserter import (#50038) --- .../src/components/off-canvas-editor/appender.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/block-editor/src/components/off-canvas-editor/appender.js b/packages/block-editor/src/components/off-canvas-editor/appender.js index 88624be2ef304a..5f981d5a90ca51 100644 --- a/packages/block-editor/src/components/off-canvas-editor/appender.js +++ b/packages/block-editor/src/components/off-canvas-editor/appender.js @@ -17,9 +17,7 @@ import { __, sprintf } from '@wordpress/i18n'; */ import { store as blockEditorStore } from '../../store'; import useBlockDisplayTitle from '../block-title/use-block-display-title'; - -import { unlock } from '../../lock-unlock'; -import { privateApis as blockEditorPrivateApis } from '../../private-apis'; +import { ComposedPrivateInserter as PrivateInserter } from '../inserter'; const prioritizedInserterBlocks = [ 'core/navigation-link/page', @@ -86,7 +84,6 @@ export const Appender = forwardRef( if ( hideInserter ) { return null; } - const { PrivateInserter } = unlock( blockEditorPrivateApis ); const descriptionId = `off-canvas-editor-appender__${ instanceId }`; const description = sprintf( /* translators: 1: The name of the block. 2: The numerical position of the block. 3: The level of nesting for the block. */