@wordpress/block-library
Version:
Block library for the WordPress editor.
40 lines (34 loc) • 850 B
JavaScript
/**
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { pullquote as icon } from '@wordpress/icons';
/**
* Internal dependencies
*/
import initBlock from '../utils/init-block';
import deprecated from './deprecated';
import edit from './edit';
import metadata from './block.json';
import save from './save';
import transforms from './transforms';
const { name } = metadata;
export { metadata, name };
export const settings = {
icon,
example: {
attributes: {
value:
// translators: Quote serving as example for the Pullquote block. Attributed to Matt Mullenweg.
__(
'One of the hardest things to do in technology is disrupt yourself.'
),
citation: __( 'Matt Mullenweg' ),
},
},
transforms,
edit,
save,
deprecated,
};
export const init = () => initBlock( { name, metadata, settings } );