UNPKG

@wordpress/block-library

Version:
78 lines (77 loc) 1.62 kB
/** * WordPress dependencies */ import { postCommentsCount as icon } from '@wordpress/icons'; /** * Internal dependencies */ import initBlock from '../utils/init-block'; const metadata = { $schema: "https://schemas.wp.org/trunk/block.json", apiVersion: 3, name: "core/post-comments-count", title: "Comments Count", category: "theme", description: "Display a post's comments count.", textdomain: "default", attributes: { textAlign: { type: "string" } }, usesContext: ["postId"], supports: { html: false, color: { gradients: true, __experimentalDefaultControls: { background: true, text: true } }, spacing: { margin: true, padding: true }, typography: { fontSize: true, lineHeight: true, __experimentalFontFamily: true, __experimentalFontWeight: true, __experimentalFontStyle: true, __experimentalTextTransform: true, __experimentalTextDecoration: true, __experimentalLetterSpacing: true, __experimentalDefaultControls: { fontSize: true } }, __experimentalBorder: { radius: true, color: true, width: true, style: true }, interactivity: { clientNavigation: true } }, style: "wp-block-post-comments-count" }; import edit from './edit'; import transforms from './transforms'; const { name } = metadata; export { metadata, name }; export const settings = { icon, edit, transforms }; export const init = () => initBlock({ name, metadata, settings }); //# sourceMappingURL=index.js.map