@wordpress/block-library
Version:
Block library for the WordPress editor.
50 lines (49 loc) • 1.15 kB
JavaScript
// packages/block-library/src/list/index.js
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";
var { name } = metadata;
var 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,
edit,
save,
deprecated
};
var init = () => initBlock({ name, metadata, settings });
export {
init,
metadata,
name,
settings
};
//# sourceMappingURL=index.js.map