@wordpress/block-library
Version:
Block library for the WordPress editor.
10 lines (9 loc) • 377 B
JavaScript
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