/** * Shim mapping `@wordpress/components` to `window.wp.components` (adoption * plan Phase 0.5). Requires the `wp-components` script dependency on the * consuming bundle. Add named exports here as editor surfaces need them. */ const pkg = (window as any).wp?.components ?? {}; export const { Button, ToggleControl, TextControl, TextareaControl, CheckboxControl, SelectControl, PanelBody, PanelRow, Spinner, Notice, ExternalLink, Tooltip, Icon, Flex, FlexItem, FlexBlock, BaseControl, Dashicon, Modal, } = pkg; export default pkg;