| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Summary view] [Print] [Text view]
1 var __create = Object.create; 2 var __defProp = Object.defineProperty; 3 var __getOwnPropDesc = Object.getOwnPropertyDescriptor; 4 var __getOwnPropNames = Object.getOwnPropertyNames; 5 var __getProtoOf = Object.getPrototypeOf; 6 var __hasOwnProp = Object.prototype.hasOwnProperty; 7 var __commonJS = (cb, mod) => function __require() { 8 return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; 9 }; 10 var __copyProps = (to, from, except, desc) => { 11 if (from && typeof from === "object" || typeof from === "function") { 12 for (let key of __getOwnPropNames(from)) 13 if (!__hasOwnProp.call(to, key) && key !== except) 14 __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); 15 } 16 return to; 17 }; 18 var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( 19 // If the importer is in node compatibility mode or this is not an ESM 20 // file that has been converted to a CommonJS file using a Babel- 21 // compatible transform (i.e. "__esModule" has not been set), then set 22 // "default" to the CommonJS "module.exports" for node compatibility. 23 isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, 24 mod 25 )); 26 27 // package-external:@wordpress/primitives 28 var require_primitives = __commonJS({ 29 "package-external:@wordpress/primitives"(exports, module) { 30 module.exports = window.wp.primitives; 31 } 32 }); 33 34 // vendor-external:react/jsx-runtime 35 var require_jsx_runtime = __commonJS({ 36 "vendor-external:react/jsx-runtime"(exports, module) { 37 module.exports = window.ReactJSXRuntime; 38 } 39 }); 40 41 // package-external:@wordpress/data 42 var require_data = __commonJS({ 43 "package-external:@wordpress/data"(exports, module) { 44 module.exports = window.wp.data; 45 } 46 }); 47 48 // package-external:@wordpress/preferences 49 var require_preferences = __commonJS({ 50 "package-external:@wordpress/preferences"(exports, module) { 51 module.exports = window.wp.preferences; 52 } 53 }); 54 55 // packages/icons/build-module/library/home.mjs 56 var import_primitives = __toESM(require_primitives(), 1); 57 var import_jsx_runtime = __toESM(require_jsx_runtime(), 1); 58 var home_default = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { d: "M12 4L4 7.9V20h16V7.9L12 4zm6.5 14.5H14V13h-4v5.5H5.5V8.8L12 5.7l6.5 3.1v9.7z" }) }); 59 60 // packages/icons/build-module/library/layout.mjs 61 var import_primitives2 = __toESM(require_primitives(), 1); 62 var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1); 63 var layout_default = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.Path, { d: "M18 5.5H6a.5.5 0 00-.5.5v3h13V6a.5.5 0 00-.5-.5zm.5 5H10v8h8a.5.5 0 00.5-.5v-7.5zm-10 0h-3V18a.5.5 0 00.5.5h2.5v-8zM6 4h12a2 2 0 012 2v12a2 2 0 01-2 2H6a2 2 0 01-2-2V6a2 2 0 012-2z" }) }); 64 65 // packages/icons/build-module/library/navigation.mjs 66 var import_primitives3 = __toESM(require_primitives(), 1); 67 var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1); 68 var navigation_default = /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ 69 /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.Path, { d: "M9 16L13.5 12.8421L15 8L10.5 11.1579L9 16Z", fill: "currentColor", stroke: "none" }), 70 /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.Path, { d: "M4.75 12C4.75 7.99593 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12Z", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) 71 ] }); 72 73 // packages/icons/build-module/library/page.mjs 74 var import_primitives4 = __toESM(require_primitives(), 1); 75 var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1); 76 var page_default = /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_primitives4.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: [ 77 /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.Path, { d: "M15.5 7.5h-7V9h7V7.5Zm-7 3.5h7v1.5h-7V11Zm7 3.5h-7V16h7v-1.5Z" }), 78 /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.Path, { d: "M17 4H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2ZM7 5.5h10a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H7a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5Z" }) 79 ] }); 80 81 // packages/icons/build-module/library/site-logo.mjs 82 var import_primitives5 = __toESM(require_primitives(), 1); 83 var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1); 84 var site_logo_default = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_primitives5.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_primitives5.Path, { d: "M5.07325 14.1472L8.71429 12L12.5 13.3333L15.75 11C15.75 11 17.934 11.9169 19.2032 12.8281M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) }); 85 86 // packages/icons/build-module/library/styles.mjs 87 var import_primitives6 = __toESM(require_primitives(), 1); 88 var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1); 89 var styles_default = /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_primitives6.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ 90 /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_primitives6.Path, { d: "M12 4.75C7.99594 4.75 4.75 7.99593 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25L12 4.75Z", fill: "currentColor", stroke: "none" }), 91 /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_primitives6.Path, { d: "M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z", strokeLinejoin: "round", vectorEffect: "non-scaling-stroke" }) 92 ] }); 93 94 // packages/icons/build-module/library/symbol-filled.mjs 95 var import_primitives7 = __toESM(require_primitives(), 1); 96 var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1); 97 var symbol_filled_default = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_primitives7.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_primitives7.Path, { d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-17.6 1L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z" }) }); 98 99 // packages/icons/build-module/library/symbol.mjs 100 var import_primitives8 = __toESM(require_primitives(), 1); 101 var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1); 102 var symbol_default = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives8.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives8.Path, { d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z" }) }); 103 104 // packages/edit-site-init/build-module/index.mjs 105 var import_data = __toESM(require_data(), 1); 106 var import_preferences = __toESM(require_preferences(), 1); 107 import { store as bootStore } from "@wordpress/boot"; 108 async function init() { 109 const menuIcons = { 110 home: { icon: home_default }, 111 identity: { icon: site_logo_default }, 112 styles: { icon: styles_default }, 113 navigation: { icon: navigation_default }, 114 pages: { icon: page_default }, 115 templateParts: { icon: symbol_filled_default }, 116 patterns: { icon: symbol_default }, 117 templates: { icon: layout_default } 118 }; 119 Object.entries(menuIcons).forEach(([id, { icon }]) => { 120 (0, import_data.dispatch)(bootStore).updateMenuItem(id, { icon }); 121 }); 122 const entityLinks = { 123 default: { list: "/types/{type}", edit: "/types/{type}/edit/{id}" }, 124 wp_template: { list: "/templates" }, 125 wp_template_part: { list: "/template-parts" }, 126 wp_block: { list: "/patterns" }, 127 wp_navigation: { list: "/navigation" } 128 }; 129 Object.entries(entityLinks).forEach(([postType, links]) => { 130 (0, import_data.dispatch)(bootStore).registerEntityLinks(postType, { 131 ...entityLinks.default, 132 ...links 133 }); 134 }); 135 (0, import_data.dispatch)(import_preferences.store).setDefaults("core", { 136 allowRightClickOverrides: true, 137 enableChoosePatternModal: true, 138 showBlockBreadcrumbs: true 139 }); 140 } 141 export { 142 init 143 };
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated : Wed Sep 9 08:20:27 2026 | Cross-referenced by PHPXref |