@wordpress/block-library
Version:
Block library for the WordPress editor.
34 lines (33 loc) • 867 B
JavaScript
import { __ } from "@wordpress/i18n";
import { quote } from "@wordpress/icons";
import initBlock from "../utils/init-block.mjs";
import deprecated from "./deprecated.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/quote/index.js
const { name } = metadata;
const settings = {
icon: quote,
example: {
attributes: { citation: __("Julio Cortázar") },
innerBlocks: [{
name: "core/paragraph",
attributes: { content: __("In quoting others, we cite ourselves.") }
}]
},
transforms,
template: [["core/paragraph", {}]],
templateInsertUpdatesSelection: true,
edit,
save,
deprecated
};
const init = () => initBlock({
name,
metadata,
settings
});
export { init, metadata, name, settings };
//# sourceMappingURL=index.mjs.map