@wordpress/block-library
Version:
Block library for the WordPress editor.
49 lines (48 loc) • 1.13 kB
JavaScript
import { list } from "@wordpress/icons";
import { __ } from "@wordpress/i18n";
import initBlock from "../utils/init-block.mjs";
import deprecated from "./deprecated.mjs";
import edit from "./edit.mjs";
import metadata from "./block.json";
import save from "./save.mjs";
import transforms from "./transforms.mjs";
// packages/block-library/src/list/index.js
const { name } = metadata;
const settings = {
icon: list,
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: [["core/list-item"]],
templateInsertUpdatesSelection: true,
edit,
save,
deprecated
};
const init = () => initBlock({
name,
metadata,
settings
});
export { init, metadata, name, settings };
//# sourceMappingURL=index.mjs.map