@wordpress/block-library
Version:
Block library for the WordPress editor.
35 lines (34 loc) • 1.02 kB
JavaScript
// packages/block-library/src/video/index.js
import { __ } from "@wordpress/i18n";
import { video as icon } 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";
import variations from "./variations.mjs";
var { name } = metadata;
var settings = {
icon,
example: {
attributes: {
src: "https://upload.wikimedia.org/wikipedia/commons/c/ca/Wood_thrush_in_Central_Park_switch_sides_%2816510%29.webm",
// translators: Caption accompanying a video of the wood thrush singing, which serves as an example for the Video block.
caption: __("Wood thrush singing in Central Park, NYC.")
}
},
transforms,
variations,
deprecated,
edit,
save
};
var init = () => initBlock({ name, metadata, settings });
export {
init,
metadata,
name,
settings
};
//# sourceMappingURL=index.mjs.map