@wordpress/block-library
Version:
Block library for the WordPress editor.
33 lines (32 loc) • 821 B
JavaScript
// packages/block-library/src/more/index.js
import { more as icon } from "@wordpress/icons";
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";
var { name } = metadata;
var settings = {
icon,
example: {},
__experimentalLabel(attributes, { context }) {
const customName = attributes?.metadata?.name;
if ((context === "list-view" || context === "breadcrumb") && customName) {
return customName;
}
if (context === "accessibility") {
return attributes.customText;
}
},
transforms,
edit,
save
};
var init = () => initBlock({ name, metadata, settings });
export {
init,
metadata,
name,
settings
};
//# sourceMappingURL=index.mjs.map