| @@ -44,52 +44,75 @@ | ||
| 44 | 44 | module.exports = window.wp.data; |
| 45 | 45 | } |
| 46 | 46 | }); |
| 47 | 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 | + | |
| 48 | 55 | // packages/icons/build-module/library/home.mjs |
| 49 | 56 | var import_primitives = __toESM(require_primitives(), 1); |
| 50 | 57 | var import_jsx_runtime = __toESM(require_jsx_runtime(), 1); |
| 51 | -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" }) }); | |
| 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", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { d: "M13.75 19.25H19.25V8.5L12 5L4.75 8.5V19.25H10.25M13.75 19.25V13.7H10.25V19.25M13.75 19.25H10.25", vectorEffect: "non-scaling-stroke" }) }); | |
| 52 | 59 | |
| 53 | 60 | // packages/icons/build-module/library/layout.mjs |
| 54 | 61 | var import_primitives2 = __toESM(require_primitives(), 1); |
| 55 | 62 | var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1); |
| 56 | -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" }) }); | |
| 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", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.Path, { d: "M9.75 19.25H18C18.6904 19.25 19.25 18.6904 19.25 18V9.75M9.75 19.25H6C5.30964 19.25 4.75 18.6904 4.75 18V9.75M9.75 19.25V9.75M19.25 9.75V6C19.25 5.30964 18.6904 4.75 18 4.75H6C5.30964 4.75 4.75 5.30964 4.75 6V9.75M19.25 9.75H9.75M9.75 9.75H4.75", vectorEffect: "non-scaling-stroke" }) }); | |
| 57 | 64 | |
| 58 | 65 | // packages/icons/build-module/library/navigation.mjs |
| 59 | 66 | var import_primitives3 = __toESM(require_primitives(), 1); |
| 60 | 67 | var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1); |
| 61 | -var navigation_default = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.Path, { d: "M12 4c-4.4 0-8 3.6-8 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8zm0 14.5c-3.6 0-6.5-2.9-6.5-6.5S8.4 5.5 12 5.5s6.5 2.9 6.5 6.5-2.9 6.5-6.5 6.5zM9 16l4.5-3L15 8.4l-4.5 3L9 16z" }) }); | |
| 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 | +] }); | |
| 62 | 72 | |
| 63 | 73 | // packages/icons/build-module/library/page.mjs |
| 64 | 74 | var import_primitives4 = __toESM(require_primitives(), 1); |
| 65 | 75 | var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1); |
| 66 | -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: [ | |
| 67 | - /* @__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" }), | |
| 68 | - /* @__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" }) | |
| 69 | -] }); | |
| 76 | +var page_default = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.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_runtime4.jsx)(import_primitives4.Path, { d: "M8.5 8.25H15.5M8.5 11.75H15.5M8.5 15.25H15.5M18.25 18V6C18.25 5.30964 17.6904 4.75 17 4.75H7C6.30964 4.75 5.75 5.30964 5.75 6L5.75 18C5.75 18.6904 6.30964 19.25 7 19.25H17C17.6904 19.25 18.25 18.6904 18.25 18Z", vectorEffect: "non-scaling-stroke" }) }); | |
| 70 | 77 | |
| 71 | -// packages/icons/build-module/library/styles.mjs | |
| 78 | +// packages/icons/build-module/library/site-logo.mjs | |
| 72 | 79 | var import_primitives5 = __toESM(require_primitives(), 1); |
| 73 | 80 | var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1); |
| 74 | -var styles_default = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_primitives5.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_primitives5.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M20 12a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-1.5 0a6.5 6.5 0 0 1-6.5 6.5v-13a6.5 6.5 0 0 1 6.5 6.5Z" }) }); | |
| 81 | +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" }) }); | |
| 75 | 82 | |
| 76 | -// packages/icons/build-module/library/symbol-filled.mjs | |
| 83 | +// packages/icons/build-module/library/styles.mjs | |
| 77 | 84 | var import_primitives6 = __toESM(require_primitives(), 1); |
| 78 | 85 | var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1); |
| 79 | -var symbol_filled_default = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_primitives6.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_primitives6.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" }) }); | |
| 86 | +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: [ | |
| 87 | + /* @__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" }), | |
| 88 | + /* @__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" }) | |
| 89 | +] }); | |
| 80 | 90 | |
| 81 | -// packages/icons/build-module/library/symbol.mjs | |
| 91 | +// packages/icons/build-module/library/symbol-filled.mjs | |
| 82 | 92 | var import_primitives7 = __toESM(require_primitives(), 1); |
| 83 | 93 | var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1); |
| 84 | -var symbol_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-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" }) }); | |
| 94 | +var symbol_filled_default = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_primitives7.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ | |
| 95 | + /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_primitives7.Path, { d: "M15.2071 6.20711L20.2929 11.2929C20.6834 11.6834 20.6834 12.3166 20.2929 12.7071L15.2071 17.7929C14.8166 18.1834 14.1834 18.1834 13.7929 17.7929L8.70711 12.7071C8.31658 12.3166 8.31658 11.6834 8.70711 11.2929L13.7929 6.20711C14.1834 5.81658 14.8166 5.81658 15.2071 6.20711Z", fill: "currentColor", vectorEffect: "non-scaling-stroke" }), | |
| 96 | + /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_primitives7.Path, { d: "M9.5 5.5L3.70711 11.2929C3.31658 11.6834 3.31658 12.3166 3.70711 12.7071L9.5 18.5", vectorEffect: "non-scaling-stroke" }) | |
| 97 | +] }); | |
| 85 | 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.jsxs)(import_primitives8.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [ | |
| 103 | + /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives8.Path, { d: "M15.2071 6.20711L20.2929 11.2929C20.6834 11.6834 20.6834 12.3166 20.2929 12.7071L15.2071 17.7929C14.8166 18.1834 14.1834 18.1834 13.7929 17.7929L8.70711 12.7071C8.31658 12.3166 8.31658 11.6834 8.70711 11.2929L13.7929 6.20711C14.1834 5.81658 14.8166 5.81658 15.2071 6.20711Z", vectorEffect: "non-scaling-stroke" }), | |
| 104 | + /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives8.Path, { d: "M9.5 5.5L3.70711 11.2929C3.31658 11.6834 3.31658 12.3166 3.70711 12.7071L9.5 18.5", vectorEffect: "non-scaling-stroke" }) | |
| 105 | +] }); | |
| 106 | + | |
| 86 | 107 | // packages/edit-site-init/build-module/index.mjs |
| 87 | 108 | var import_data = __toESM(require_data(), 1); |
| 109 | +var import_preferences = __toESM(require_preferences(), 1); | |
| 88 | 110 | import { store as bootStore } from "@wordpress/boot"; |
| 89 | 111 | async function init() { |
| 90 | 112 | const menuIcons = { |
| 91 | 113 | home: { icon: home_default }, |
| 114 | + identity: { icon: site_logo_default }, | |
| 92 | 115 | styles: { icon: styles_default }, |
| 93 | 116 | navigation: { icon: navigation_default }, |
| 94 | 117 | pages: { icon: page_default }, |
| 95 | 118 | templateParts: { icon: symbol_filled_default }, |
| @@ -97,8 +120,26 @@ | ||
| 97 | 120 | templates: { icon: layout_default } |
| 98 | 121 | }; |
| 99 | 122 | Object.entries(menuIcons).forEach(([id, { icon }]) => { |
| 100 | 123 | (0, import_data.dispatch)(bootStore).updateMenuItem(id, { icon }); |
| 124 | + }); | |
| 125 | + const entityLinks = { | |
| 126 | + default: { list: "/types/{type}", edit: "/types/{type}/edit/{id}" }, | |
| 127 | + wp_template: { list: "/templates" }, | |
| 128 | + wp_template_part: { list: "/template-parts" }, | |
| 129 | + wp_block: { list: "/patterns" }, | |
| 130 | + wp_navigation: { list: "/navigation" } | |
| 131 | + }; | |
| 132 | + Object.entries(entityLinks).forEach(([postType, links]) => { | |
| 133 | + (0, import_data.dispatch)(bootStore).registerEntityLinks(postType, { | |
| 134 | + ...entityLinks.default, | |
| 135 | + ...links | |
| 136 | + }); | |
| 137 | + }); | |
| 138 | + (0, import_data.dispatch)(import_preferences.store).setDefaults("core", { | |
| 139 | + allowRightClickOverrides: true, | |
| 140 | + enableChoosePatternModal: true, | |
| 141 | + showBlockBreadcrumbs: true | |
| 101 | 142 | }); |
| 102 | 143 | } |
| 103 | 144 | export { |
| 104 | 145 | init |