UNPKG

@wordpress/block-library

Version:
10 lines (9 loc) • 377 B
import { createBlock } from "@wordpress/blocks"; // packages/block-library/src/post-author-name/transforms.js const transforms = { from: [{ type: "block", blocks: ["core/post-author"], transform: ({ textAlign }) => createBlock("core/post-author-name", { style: { typography: { textAlign } } }) }] }; export { transforms as default }; //# sourceMappingURL=transforms.mjs.map