@wordpress/global-styles-ui
Version:
Global Styles UI components for WordPress.
24 lines • 1.15 kB
TypeScript
import type { GlobalStylesConfig } from '@wordpress/global-styles-engine';
/**
* Whether the user has customized a block.
*
* Per-block user data lives under two roots: `styles.blocks` for style values
* and `settings.blocks` for things like a block-specific color palette. Either
* one counts as a customization, and both are resettable by the user.
*
* Reads the user layer only. The merged config would match nearly every block,
* because themes style most of them.
*
* @param user The user's global styles config.
* @param blockName The block to check, e.g. `core/quote`.
* @return Whether the user has any styles or settings for that block.
*/
export declare function hasUserStylesForBlock(user: GlobalStylesConfig | undefined, blockName: string): boolean;
export declare function useBlockHasGlobalStyles(blockName: string): any;
interface BlockMenuItemProps {
block: any;
}
export declare function BlockMenuItem({ block }: BlockMenuItemProps): import("react").JSX.Element | null;
declare function ScreenBlockList(): import("react").JSX.Element;
export default ScreenBlockList;
//# sourceMappingURL=screen-block-list.d.ts.map