diff --git a/packages/edit-post/src/deprecated.js b/packages/edit-post/src/deprecated.js index c07d93602091f..3360d67b82b7b 100644 --- a/packages/edit-post/src/deprecated.js +++ b/packages/edit-post/src/deprecated.js @@ -84,4 +84,17 @@ export function PluginSidebarMoreMenuItem( props ) { deprecateSlot( 'PluginSidebarMoreMenuItem' ); return ; } + +/** + * @see PluginPostExcerpt in @wordpress/editor package. + */ +export function __experimentalPluginPostExcerpt() { + deprecated( 'wp.editPost.__experimentalPluginPostExcerpt', { + since: '6.6', + hint: 'Core and custom panels can be access programmatically using their panel name.', + link: 'https://developer.wordpress.org/block-editor/reference-guides/slotfills/plugin-document-setting-panel/#accessing-a-panel-programmatically', + } ); + return null; +} + /* eslint-enable jsdoc/require-param */ diff --git a/packages/edit-post/src/index.js b/packages/edit-post/src/index.js index 88aae97f7af92..0a2d17a344e47 100644 --- a/packages/edit-post/src/index.js +++ b/packages/edit-post/src/index.js @@ -14,20 +14,13 @@ import { registerLegacyWidgetBlock, registerWidgetGroupBlock, } from '@wordpress/widgets'; -import { - privateApis as editorPrivateApis, - store as editorStore, -} from '@wordpress/editor'; +import { store as editorStore } from '@wordpress/editor'; /** * Internal dependencies */ import './hooks'; import Editor from './editor'; -import { unlock } from './lock-unlock'; - -const { PluginPostExcerpt: __experimentalPluginPostExcerpt } = - unlock( editorPrivateApis ); /** * Initializes and returns an instance of Editor. @@ -161,6 +154,6 @@ export function reinitializeEditor() { export { default as __experimentalFullscreenModeClose } from './components/header/fullscreen-mode-close'; export { default as __experimentalMainDashboardButton } from './components/header/main-dashboard-button'; -export { __experimentalPluginPostExcerpt }; + export { store } from './store'; export * from './deprecated';