UNPKG

@wordpress/block-library

Version:
53 lines (46 loc) 1.13 kB
import { list as icon } from '@wordpress/icons'; import { __ } from '@wordpress/i18n'; 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 }; const TEMPLATE = [ [ 'core/list-item' ] ]; const settings = { icon, example: { innerBlocks: [ { name: 'core/list-item', attributes: { content: __( 'Alice.' ) }, }, { name: 'core/list-item', attributes: { content: __( 'The White Rabbit.' ) }, }, { name: 'core/list-item', attributes: { content: __( 'The Cheshire Cat.' ) }, }, { name: 'core/list-item', attributes: { content: __( 'The Mad Hatter.' ) }, }, { name: 'core/list-item', attributes: { content: __( 'The Queen of Hearts.' ) }, }, ], }, transforms, template: TEMPLATE, templateInsertUpdatesSelection: true, edit, save, deprecated, }; export { settings }; export const init = () => initBlock( { name, metadata, settings } );