UNPKG

@wordpress/block-library

Version:
34 lines (33 loc) • 1.36 kB
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); // packages/block-library/src/image/constants.js const MIN_SIZE = 20; const LINK_DESTINATION_NONE = "none"; const LINK_DESTINATION_MEDIA = "media"; const LINK_DESTINATION_ATTACHMENT = "attachment"; const LINK_DESTINATION_CUSTOM = "custom"; const NEW_TAB_REL = ["noopener"]; const ALLOWED_MEDIA_TYPES = ["image"]; const MEDIA_ID_NO_FEATURED_IMAGE_SET = 0; const SIZED_LAYOUTS = ["flex", "grid"]; const DEFAULT_MEDIA_SIZE_SLUG = "full"; /** * Delay in milliseconds before preloading an image after hovering. * This prevents unnecessary preloading during quick scrolling or mouse movements. */ const IMAGE_PRELOAD_DELAY = 200; exports.ALLOWED_MEDIA_TYPES = ALLOWED_MEDIA_TYPES; exports.DEFAULT_MEDIA_SIZE_SLUG = DEFAULT_MEDIA_SIZE_SLUG; exports.IMAGE_PRELOAD_DELAY = IMAGE_PRELOAD_DELAY; exports.LINK_DESTINATION_ATTACHMENT = LINK_DESTINATION_ATTACHMENT; exports.LINK_DESTINATION_CUSTOM = LINK_DESTINATION_CUSTOM; exports.LINK_DESTINATION_MEDIA = LINK_DESTINATION_MEDIA; exports.LINK_DESTINATION_NONE = LINK_DESTINATION_NONE; exports.MEDIA_ID_NO_FEATURED_IMAGE_SET = MEDIA_ID_NO_FEATURED_IMAGE_SET; exports.MIN_SIZE = MIN_SIZE; exports.NEW_TAB_REL = NEW_TAB_REL; exports.SIZED_LAYOUTS = SIZED_LAYOUTS; //# sourceMappingURL=constants.cjs.map