/** * Shim mapping `@wordpress/editor` to `window.wp.editor` (adoption plan * Phase 0.5). Requires the `wp-editor` script dependency on the consuming * bundle. On WP 6.6+ this is the canonical home of the Plugin* slot-fills. */ const pkg = (window as any).wp?.editor ?? {}; export const { PluginSidebar, PluginSidebarMoreMenuItem, PluginDocumentSettingPanel, PluginPrePublishPanel, PluginPostPublishPanel, PluginPostStatusInfo, } = pkg; export default pkg;