@wordpress/block-library
Version:
Block library for the WordPress editor.
44 lines (43 loc) • 955 B
JavaScript
// packages/block-library/src/gallery/index.js
import { gallery as icon } from "@wordpress/icons";
import initBlock from "../utils/init-block";
import deprecated from "./deprecated";
import edit from "./edit";
import metadata from "./block.json";
import save from "./save";
import transforms from "./transforms";
var { name } = metadata;
var settings = {
icon,
example: {
attributes: {
columns: 2
},
innerBlocks: [
{
name: "core/image",
attributes: {
url: "https://s.w.org/images/core/5.3/Glacial_lakes%2C_Bhutan.jpg"
}
},
{
name: "core/image",
attributes: {
url: "https://s.w.org/images/core/5.3/Sediment_off_the_Yucatan_Peninsula.jpg"
}
}
]
},
transforms,
edit,
save,
deprecated
};
var init = () => initBlock({ name, metadata, settings });
export {
init,
metadata,
name,
settings
};
//# sourceMappingURL=index.js.map