@wordpress/block-library
Version:
Block library for the WordPress editor.
1 lines • 1.45 kB
Source Map (JSON)
{"version":3,"file":"constants.cjs","names":[],"sources":["../../src/navigation/constants.js"],"sourcesContent":["export const DEFAULT_BLOCK = {\n\tname: 'core/navigation-link',\n\tattributes: {\n\t\tkind: 'post-type',\n\t\ttype: 'page',\n\t},\n};\n\nexport const PRIORITIZED_INSERTER_BLOCKS = [\n\t'core/navigation-link/page',\n\t'core/navigation-link/custom-link',\n];\n\n// These parameters must be kept aligned with those in\n// lib/compat/wordpress-6.3/navigation-block-preloading.php\n// and\n// edit-site/src/components/sidebar-navigation-screen-navigation-menus/constants.js\nexport const PRELOADED_NAVIGATION_MENUS_QUERY = {\n\tper_page: 100,\n\tstatus: [ 'publish', 'draft' ],\n\torder: 'desc',\n\torderby: 'date',\n};\n\nexport const SELECT_NAVIGATION_MENUS_ARGS = [\n\t'postType',\n\t'wp_navigation',\n\tPRELOADED_NAVIGATION_MENUS_QUERY,\n];\n\n/**\n * Template part area identifier for navigation overlays.\n * This constant defines the area name used when registering and filtering\n * template parts that are specifically designed for navigation overlay layouts.\n *\n * @type {string}\n */\nexport const NAVIGATION_OVERLAY_TEMPLATE_PART_AREA = 'navigation-overlay';\n"],"mappings":";;;;;;AAAA,MAAa,gBAAgB;CAC5B,MAAM;CACN,YAAY;EACX,MAAM;EACN,MAAM;CACP;AACD;AAEA,MAAa,8BAA8B,CAC1C,6BACA,kCACD;AAMA,MAAa,mCAAmC;CAC/C,UAAU;CACV,QAAQ,CAAE,WAAW,OAAQ;CAC7B,OAAO;CACP,SAAS;AACV;AAEA,MAAa,+BAA+B;CAC3C;CACA;CACA;AACD;;;;;;;;AASA,MAAa,wCAAwC"}