@wordpress/block-library
Version:
Block library for the WordPress editor.
24 lines (23 loc) • 606 B
JavaScript
import initBlock from "../utils/init-block.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/text-columns/index.js
const { name } = metadata;
const settings = {
transforms,
getEditWrapperProps(attributes) {
const { width } = attributes;
if ("wide" === width || "full" === width) return { "data-align": width };
},
edit,
save
};
const init = () => initBlock({
name,
metadata,
settings
});
export { init, metadata, name, settings };
//# sourceMappingURL=index.mjs.map