@wordpress/block-library
Version:
Block library for the WordPress editor.
12 lines (11 loc) • 656 B
JavaScript
import { _x } from "@wordpress/i18n";
// packages/block-library/src/media-text/constants.js
const ALLOWED_MEDIA_TYPES = ["image", "video"];
const DEFAULT_MEDIA_SIZE_SLUG = "full";
const WIDTH_CONSTRAINT_PERCENTAGE = 15;
const LINK_DESTINATION_NONE = "none";
const LINK_DESTINATION_MEDIA = "media";
const LINK_DESTINATION_ATTACHMENT = "attachment";
const TEMPLATE = [["core/paragraph", { placeholder: _x("Content…", "content placeholder") }]];
export { ALLOWED_MEDIA_TYPES, DEFAULT_MEDIA_SIZE_SLUG, LINK_DESTINATION_ATTACHMENT, LINK_DESTINATION_MEDIA, LINK_DESTINATION_NONE, TEMPLATE, WIDTH_CONSTRAINT_PERCENTAGE };
//# sourceMappingURL=constants.mjs.map