UNPKG

@wordpress/block-library

Version:
31 lines (30 loc) • 1 kB
// packages/block-library/src/navigation/constants.js const DEFAULT_BLOCK = { name: "core/navigation-link", attributes: { kind: "post-type", type: "page" } }; const PRIORITIZED_INSERTER_BLOCKS = ["core/navigation-link/page", "core/navigation-link/custom-link"]; const PRELOADED_NAVIGATION_MENUS_QUERY = { per_page: 100, status: ["publish", "draft"], order: "desc", orderby: "date" }; const SELECT_NAVIGATION_MENUS_ARGS = [ "postType", "wp_navigation", PRELOADED_NAVIGATION_MENUS_QUERY ]; /** * Template part area identifier for navigation overlays. * This constant defines the area name used when registering and filtering * template parts that are specifically designed for navigation overlay layouts. * * @type {string} */ const NAVIGATION_OVERLAY_TEMPLATE_PART_AREA = "navigation-overlay"; export { DEFAULT_BLOCK, NAVIGATION_OVERLAY_TEMPLATE_PART_AREA, PRELOADED_NAVIGATION_MENUS_QUERY, PRIORITIZED_INSERTER_BLOCKS, SELECT_NAVIGATION_MENUS_ARGS }; //# sourceMappingURL=constants.mjs.map