@wordpress/block-library
Version:
Block library for the WordPress editor.
36 lines • 661 B
JavaScript
/**
* Internal dependencies
*/
import initBlock from '../utils/init-block';
const metadata = {
$schema: "https://schemas.wp.org/trunk/block.json",
apiVersion: 2,
name: "core/pattern",
title: "Pattern",
category: "theme",
description: "Show a block pattern.",
supports: {
html: false,
inserter: false
},
textdomain: "default",
attributes: {
slug: {
type: "string"
}
}
};
import PatternEdit from './edit';
const {
name
} = metadata;
export { metadata, name };
export const settings = {
edit: PatternEdit
};
export const init = () => initBlock({
name,
metadata,
settings
});
//# sourceMappingURL=index.js.map