UNPKG

@wordpress/block-library

Version:
54 lines (52 loc) 1.49 kB
import { createElement } from "@wordpress/element"; /** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; import { RawHTML } from '@wordpress/element'; import { createBlock } from '@wordpress/blocks'; import { G, Path, SVG } from '@wordpress/components'; /** * Internal dependencies */ import edit from './edit'; export var name = 'core/nextpage'; export var settings = { title: __('Page Break'), description: __('Separate your content into a multi-page experience.'), icon: createElement(SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" }, createElement(G, null, createElement(Path, { d: "M9 12h6v-2H9zm-7 0h5v-2H2zm15 0h5v-2h-5zm3 2v2l-6 6H6a2 2 0 0 1-2-2v-6h2v6h6v-4a2 2 0 0 1 2-2h6zM4 8V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4h-2V4H6v4z" }))), category: 'layout', keywords: [__('next page'), __('pagination')], supports: { customClassName: false, className: false, html: false }, attributes: {}, transforms: { from: [{ type: 'raw', schema: { 'wp-block': { attributes: ['data-block'] } }, isMatch: function isMatch(node) { return node.dataset && node.dataset.block === 'core/nextpage'; }, transform: function transform() { return createBlock('core/nextpage', {}); } }] }, edit: edit, save: function save() { return createElement(RawHTML, null, '<!--nextpage-->'); } }; //# sourceMappingURL=index.js.map