UNPKG

@wordpress/block-library

Version:
56 lines (55 loc) 1.23 kB
// packages/block-library/src/cover/index.js import { __ } from "@wordpress/i18n"; import { cover as icon } from "@wordpress/icons"; import initBlock from "../utils/init-block.mjs"; import deprecated from "./deprecated.mjs"; import edit from "./edit/index.mjs"; import metadata from "./block.json"; import save from "./save.mjs"; import transforms from "./transforms.mjs"; import variations from "./variations.mjs"; var { name } = metadata; var settings = { icon, example: { attributes: { customOverlayColor: "#065174", dimRatio: 40, url: "https://s.w.org/images/core/5.3/Windbuchencom.jpg", style: { typography: { fontSize: 48 }, color: { text: "white" } } }, innerBlocks: [ { name: "core/paragraph", attributes: { content: `<strong>${__("Snow Patrol")}</strong>`, style: { typography: { textAlign: "center" } } } } ] }, transforms, save, edit, deprecated, variations }; var init = () => initBlock({ name, metadata, settings }); export { init, metadata, name, settings }; //# sourceMappingURL=index.mjs.map