/** * Shim mapping `@wordpress/edit-post` to `window.wp.editPost` (adoption plan * Phase 0.5). Requires the `wp-edit-post` script dependency on the consuming * bundle. * * Note: since WP 6.6 the Plugin* slot-fill components moved to * `@wordpress/editor` (see editor.ts); the wp.editPost copies still work but * log deprecation warnings. Prefer the editor.ts shim for new code. */ const pkg = (window as any).wp?.editPost ?? {}; export const { PluginSidebar, PluginSidebarMoreMenuItem, PluginDocumentSettingPanel, PluginPrePublishPanel, PluginPostPublishPanel, PluginPostStatusInfo, PluginMoreMenuItem, } = pkg; export default pkg;