| @@ -149,22 +149,15 @@ | ||
| 149 | 149 | module.exports = window.wp.plugins; |
| 150 | 150 | } |
| 151 | 151 | }); |
| 152 | 152 | |
| 153 | - // vendor-external:react | |
| 154 | - var require_react = __commonJS({ | |
| 155 | - "vendor-external:react"(exports, module) { | |
| 156 | - module.exports = window.React; | |
| 153 | + // package-external:@wordpress/block-editor | |
| 154 | + var require_block_editor = __commonJS({ | |
| 155 | + "package-external:@wordpress/block-editor"(exports, module) { | |
| 156 | + module.exports = window.wp.blockEditor; | |
| 157 | 157 | } |
| 158 | 158 | }); |
| 159 | 159 | |
| 160 | - // package-external:@wordpress/theme | |
| 161 | - var require_theme = __commonJS({ | |
| 162 | - "package-external:@wordpress/theme"(exports, module) { | |
| 163 | - module.exports = window.wp.theme; | |
| 164 | - } | |
| 165 | - }); | |
| 166 | - | |
| 167 | 160 | // package-external:@wordpress/private-apis |
| 168 | 161 | var require_private_apis = __commonJS({ |
| 169 | 162 | "package-external:@wordpress/private-apis"(exports, module) { |
| 170 | 163 | module.exports = window.wp.privateApis; |
| @@ -170,15 +163,8 @@ | ||
| 170 | 163 | module.exports = window.wp.privateApis; |
| 171 | 164 | } |
| 172 | 165 | }); |
| 173 | 166 | |
| 174 | - // package-external:@wordpress/block-editor | |
| 175 | - var require_block_editor = __commonJS({ | |
| 176 | - "package-external:@wordpress/block-editor"(exports, module) { | |
| 177 | - module.exports = window.wp.blockEditor; | |
| 178 | - } | |
| 179 | - }); | |
| 180 | - | |
| 181 | 167 | // package-external:@wordpress/hooks |
| 182 | 168 | var require_hooks = __commonJS({ |
| 183 | 169 | "package-external:@wordpress/hooks"(exports, module) { |
| 184 | 170 | module.exports = window.wp.hooks; |
| @@ -237,9 +223,9 @@ | ||
| 237 | 223 | }); |
| 238 | 224 | var import_blocks3 = __toESM(require_blocks(), 1); |
| 239 | 225 | var import_data32 = __toESM(require_data(), 1); |
| 240 | 226 | var import_deprecated6 = __toESM(require_deprecated(), 1); |
| 241 | - var import_element26 = __toESM(require_element(), 1); | |
| 227 | + var import_element25 = __toESM(require_element(), 1); | |
| 242 | 228 | var import_block_library2 = __toESM(require_block_library(), 1); |
| 243 | 229 | var import_core_data12 = __toESM(require_core_data(), 1); |
| 244 | 230 | var import_widgets5 = __toESM(require_widgets(), 1); |
| 245 | 231 | var import_preferences10 = __toESM(require_preferences(), 1); |
| @@ -364,69 +350,69 @@ | ||
| 364 | 350 | |
| 365 | 351 | // packages/icons/build-module/library/block-default.mjs |
| 366 | 352 | var import_primitives = __toESM(require_primitives(), 1); |
| 367 | 353 | var import_jsx_runtime = __toESM(require_jsx_runtime(), 1); |
| 368 | - var block_default_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: "M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z" }) }); | |
| 354 | + var block_default_default = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { d: "M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z" }) }); | |
| 369 | 355 | |
| 370 | 356 | // packages/icons/build-module/library/check.mjs |
| 371 | 357 | var import_primitives2 = __toESM(require_primitives(), 1); |
| 372 | 358 | var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1); |
| 373 | - var check_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: "M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z" }) }); | |
| 359 | + var check_default = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.Path, { d: "M16.5 7.5 10 13.9l-2.5-2.4-1 1 3.5 3.6 7.5-7.6z" }) }); | |
| 374 | 360 | |
| 375 | 361 | // packages/icons/build-module/library/close-small.mjs |
| 376 | 362 | var import_primitives3 = __toESM(require_primitives(), 1); |
| 377 | 363 | var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1); |
| 378 | - var close_small_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 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z" }) }); | |
| 364 | + var close_small_default = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.Path, { d: "M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z" }) }); | |
| 379 | 365 | |
| 380 | 366 | // packages/icons/build-module/library/drawer-left.mjs |
| 381 | 367 | var import_primitives4 = __toESM(require_primitives(), 1); |
| 382 | 368 | var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1); |
| 383 | - var drawer_left_default = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z" }) }); | |
| 369 | + var drawer_left_default = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM8.5 18.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h2.5v13zm10-.5c0 .3-.2.5-.5.5h-8v-13h8c.3 0 .5.2.5.5v12z" }) }); | |
| 384 | 370 | |
| 385 | 371 | // packages/icons/build-module/library/drawer-right.mjs |
| 386 | 372 | var import_primitives5 = __toESM(require_primitives(), 1); |
| 387 | 373 | var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1); |
| 388 | - var drawer_right_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: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z" }) }); | |
| 374 | + var drawer_right_default = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_primitives5.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_primitives5.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-4 14.5H6c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h8v13zm4.5-.5c0 .3-.2.5-.5.5h-2.5v-13H18c.3 0 .5.2.5.5v12z" }) }); | |
| 389 | 375 | |
| 390 | 376 | // packages/icons/build-module/library/external.mjs |
| 391 | 377 | var import_primitives6 = __toESM(require_primitives(), 1); |
| 392 | 378 | var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1); |
| 393 | - var external_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: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z" }) }); | |
| 379 | + var external_default = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_primitives6.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_primitives6.Path, { d: "M19.5 4.5h-7V6h4.44l-5.97 5.97 1.06 1.06L18 7.06v4.44h1.5v-7Zm-13 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-3H17v3a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h3V5.5h-3Z" }) }); | |
| 394 | 380 | |
| 395 | 381 | // packages/icons/build-module/library/list-view.mjs |
| 396 | 382 | var import_primitives7 = __toESM(require_primitives(), 1); |
| 397 | 383 | var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1); |
| 398 | - var list_view_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: "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z" }) }); | |
| 384 | + var list_view_default = /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_primitives7.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_primitives7.Path, { d: "M3 6h11v1.5H3V6Zm3.5 5.5h11V13h-11v-1.5ZM21 17H10v1.5h11V17Z" }) }); | |
| 399 | 385 | |
| 400 | 386 | // packages/icons/build-module/library/more-vertical.mjs |
| 401 | 387 | var import_primitives8 = __toESM(require_primitives(), 1); |
| 402 | 388 | var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1); |
| 403 | - var more_vertical_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: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z" }) }); | |
| 389 | + var more_vertical_default = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives8.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives8.Path, { d: "M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z" }) }); | |
| 404 | 390 | |
| 405 | 391 | // packages/icons/build-module/library/plus.mjs |
| 406 | 392 | var import_primitives9 = __toESM(require_primitives(), 1); |
| 407 | 393 | var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1); |
| 408 | - var plus_default = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_primitives9.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_primitives9.Path, { d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z" }) }); | |
| 394 | + var plus_default = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_primitives9.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_primitives9.Path, { d: "M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z" }) }); | |
| 409 | 395 | |
| 410 | 396 | // packages/icons/build-module/library/redo.mjs |
| 411 | 397 | var import_primitives10 = __toESM(require_primitives(), 1); |
| 412 | 398 | var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1); |
| 413 | - var redo_default = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_primitives10.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_primitives10.Path, { d: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z" }) }); | |
| 399 | + var redo_default = /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_primitives10.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_primitives10.Path, { d: "M15.6 6.5l-1.1 1 2.9 3.3H8c-.9 0-1.7.3-2.3.9-1.4 1.5-1.4 4.2-1.4 5.6v.2h1.5v-.3c0-1.1 0-3.5 1-4.5.3-.3.7-.5 1.3-.5h9.2L14.5 15l1.1 1.1 4.6-4.6-4.6-5z" }) }); | |
| 414 | 400 | |
| 415 | 401 | // packages/icons/build-module/library/star-empty.mjs |
| 416 | 402 | var import_primitives11 = __toESM(require_primitives(), 1); |
| 417 | 403 | var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1); |
| 418 | - var star_empty_default = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_primitives11.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_primitives11.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z" }) }); | |
| 404 | + var star_empty_default = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_primitives11.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_primitives11.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M9.706 8.646a.25.25 0 01-.188.137l-4.626.672a.25.25 0 00-.139.427l3.348 3.262a.25.25 0 01.072.222l-.79 4.607a.25.25 0 00.362.264l4.138-2.176a.25.25 0 01.233 0l4.137 2.175a.25.25 0 00.363-.263l-.79-4.607a.25.25 0 01.072-.222l3.347-3.262a.25.25 0 00-.139-.427l-4.626-.672a.25.25 0 01-.188-.137l-2.069-4.192a.25.25 0 00-.448 0L9.706 8.646zM12 7.39l-.948 1.921a1.75 1.75 0 01-1.317.957l-2.12.308 1.534 1.495c.412.402.6.982.503 1.55l-.362 2.11 1.896-.997a1.75 1.75 0 011.629 0l1.895.997-.362-2.11a1.75 1.75 0 01.504-1.55l1.533-1.495-2.12-.308a1.75 1.75 0 01-1.317-.957L12 7.39z" }) }); | |
| 419 | 405 | |
| 420 | 406 | // packages/icons/build-module/library/star-filled.mjs |
| 421 | 407 | var import_primitives12 = __toESM(require_primitives(), 1); |
| 422 | 408 | var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1); |
| 423 | - var star_filled_default = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives12.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives12.Path, { d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z" }) }); | |
| 409 | + var star_filled_default = /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives12.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives12.Path, { d: "M11.776 4.454a.25.25 0 01.448 0l2.069 4.192a.25.25 0 00.188.137l4.626.672a.25.25 0 01.139.426l-3.348 3.263a.25.25 0 00-.072.222l.79 4.607a.25.25 0 01-.362.263l-4.138-2.175a.25.25 0 00-.232 0l-4.138 2.175a.25.25 0 01-.363-.263l.79-4.607a.25.25 0 00-.071-.222L4.754 9.881a.25.25 0 01.139-.426l4.626-.672a.25.25 0 00.188-.137l2.069-4.192z" }) }); | |
| 424 | 410 | |
| 425 | 411 | // packages/icons/build-module/library/undo.mjs |
| 426 | 412 | var import_primitives13 = __toESM(require_primitives(), 1); |
| 427 | 413 | var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1); |
| 428 | - var undo_default = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives13.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives13.Path, { d: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z" }) }); | |
| 414 | + var undo_default = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives13.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives13.Path, { d: "M18.3 11.7c-.6-.6-1.4-.9-2.3-.9H6.7l2.9-3.3-1.1-1-4.5 5L8.5 16l1-1-2.7-2.7H16c.5 0 .9.2 1.3.5 1 1 1 3.4 1 4.5v.3h1.5v-.2c0-1.5 0-4.3-1.5-5.7z" }) }); | |
| 429 | 415 | |
| 430 | 416 | // packages/interface/build-module/components/complementary-area/index.mjs |
| 431 | 417 | var import_element2 = __toESM(require_element(), 1); |
| 432 | 418 | var import_viewport = __toESM(require_viewport(), 1); |
| @@ -1161,584 +1147,12 @@ | ||
| 1161 | 1147 | } |
| 1162 | 1148 | ComplementaryArea.Slot = ComplementaryAreaSlot; |
| 1163 | 1149 | var complementary_area_default = ComplementaryArea; |
| 1164 | 1150 | |
| 1165 | - // node_modules/@base-ui/utils/useRefWithInit.mjs | |
| 1166 | - var React = __toESM(require_react(), 1); | |
| 1167 | - var UNINITIALIZED = {}; | |
| 1168 | - function useRefWithInit(init, initArg) { | |
| 1169 | - const ref = React.useRef(UNINITIALIZED); | |
| 1170 | - if (ref.current === UNINITIALIZED) { | |
| 1171 | - ref.current = init(initArg); | |
| 1172 | - } | |
| 1173 | - return ref; | |
| 1174 | - } | |
| 1175 | - | |
| 1176 | - // node_modules/@base-ui/utils/warn.mjs | |
| 1177 | - var set; | |
| 1178 | - if (true) { | |
| 1179 | - set = /* @__PURE__ */ new Set(); | |
| 1180 | - } | |
| 1181 | - function warn(...messages) { | |
| 1182 | - if (true) { | |
| 1183 | - const messageKey = messages.join(" "); | |
| 1184 | - if (!set.has(messageKey)) { | |
| 1185 | - set.add(messageKey); | |
| 1186 | - console.warn(`Base UI: ${messageKey}`); | |
| 1187 | - } | |
| 1188 | - } | |
| 1189 | - } | |
| 1190 | - | |
| 1191 | - // node_modules/@base-ui/react/internals/useRenderElement.mjs | |
| 1192 | - var React4 = __toESM(require_react(), 1); | |
| 1193 | - | |
| 1194 | - // node_modules/@base-ui/utils/useMergedRefs.mjs | |
| 1195 | - function useMergedRefs(a, b, c, d) { | |
| 1196 | - const forkRef = useRefWithInit(createForkRef).current; | |
| 1197 | - if (didChange(forkRef, a, b, c, d)) { | |
| 1198 | - update(forkRef, [a, b, c, d]); | |
| 1199 | - } | |
| 1200 | - return forkRef.callback; | |
| 1201 | - } | |
| 1202 | - function useMergedRefsN(refs) { | |
| 1203 | - const forkRef = useRefWithInit(createForkRef).current; | |
| 1204 | - if (didChangeN(forkRef, refs)) { | |
| 1205 | - update(forkRef, refs); | |
| 1206 | - } | |
| 1207 | - return forkRef.callback; | |
| 1208 | - } | |
| 1209 | - function createForkRef() { | |
| 1210 | - return { | |
| 1211 | - callback: null, | |
| 1212 | - cleanup: null, | |
| 1213 | - refs: [] | |
| 1214 | - }; | |
| 1215 | - } | |
| 1216 | - function didChange(forkRef, a, b, c, d) { | |
| 1217 | - return forkRef.refs[0] !== a || forkRef.refs[1] !== b || forkRef.refs[2] !== c || forkRef.refs[3] !== d; | |
| 1218 | - } | |
| 1219 | - function didChangeN(forkRef, newRefs) { | |
| 1220 | - return forkRef.refs.length !== newRefs.length || forkRef.refs.some((ref, index) => ref !== newRefs[index]); | |
| 1221 | - } | |
| 1222 | - function update(forkRef, refs) { | |
| 1223 | - forkRef.refs = refs; | |
| 1224 | - if (refs.every((ref) => ref == null)) { | |
| 1225 | - forkRef.callback = null; | |
| 1226 | - return; | |
| 1227 | - } | |
| 1228 | - forkRef.callback = (instance) => { | |
| 1229 | - if (forkRef.cleanup) { | |
| 1230 | - forkRef.cleanup(); | |
| 1231 | - forkRef.cleanup = null; | |
| 1232 | - } | |
| 1233 | - if (instance != null) { | |
| 1234 | - const cleanupCallbacks = Array(refs.length).fill(null); | |
| 1235 | - for (let i = 0; i < refs.length; i += 1) { | |
| 1236 | - const ref = refs[i]; | |
| 1237 | - if (ref == null) { | |
| 1238 | - continue; | |
| 1239 | - } | |
| 1240 | - switch (typeof ref) { | |
| 1241 | - case "function": { | |
| 1242 | - const refCleanup = ref(instance); | |
| 1243 | - if (typeof refCleanup === "function") { | |
| 1244 | - cleanupCallbacks[i] = refCleanup; | |
| 1245 | - } | |
| 1246 | - break; | |
| 1247 | - } | |
| 1248 | - case "object": { | |
| 1249 | - ref.current = instance; | |
| 1250 | - break; | |
| 1251 | - } | |
| 1252 | - default: | |
| 1253 | - } | |
| 1254 | - } | |
| 1255 | - forkRef.cleanup = () => { | |
| 1256 | - for (let i = 0; i < refs.length; i += 1) { | |
| 1257 | - const ref = refs[i]; | |
| 1258 | - if (ref == null) { | |
| 1259 | - continue; | |
| 1260 | - } | |
| 1261 | - switch (typeof ref) { | |
| 1262 | - case "function": { | |
| 1263 | - const cleanupCallback = cleanupCallbacks[i]; | |
| 1264 | - if (typeof cleanupCallback === "function") { | |
| 1265 | - cleanupCallback(); | |
| 1266 | - } else { | |
| 1267 | - ref(null); | |
| 1268 | - } | |
| 1269 | - break; | |
| 1270 | - } | |
| 1271 | - case "object": { | |
| 1272 | - ref.current = null; | |
| 1273 | - break; | |
| 1274 | - } | |
| 1275 | - default: | |
| 1276 | - } | |
| 1277 | - } | |
| 1278 | - }; | |
| 1279 | - } | |
| 1280 | - }; | |
| 1281 | - } | |
| 1282 | - | |
| 1283 | - // node_modules/@base-ui/utils/getReactElementRef.mjs | |
| 1284 | - var React3 = __toESM(require_react(), 1); | |
| 1285 | - | |
| 1286 | - // node_modules/@base-ui/utils/reactVersion.mjs | |
| 1287 | - var React2 = __toESM(require_react(), 1); | |
| 1288 | - var majorVersion = parseInt(React2.version, 10); | |
| 1289 | - function isReactVersionAtLeast(reactVersionToCheck) { | |
| 1290 | - return majorVersion >= reactVersionToCheck; | |
| 1291 | - } | |
| 1292 | - | |
| 1293 | - // node_modules/@base-ui/utils/getReactElementRef.mjs | |
| 1294 | - function getReactElementRef(element) { | |
| 1295 | - if (!/* @__PURE__ */ React3.isValidElement(element)) { | |
| 1296 | - return null; | |
| 1297 | - } | |
| 1298 | - const reactElement = element; | |
| 1299 | - const propsWithRef = reactElement.props; | |
| 1300 | - return (isReactVersionAtLeast(19) ? propsWithRef?.ref : reactElement.ref) ?? null; | |
| 1301 | - } | |
| 1302 | - | |
| 1303 | - // node_modules/@base-ui/utils/mergeObjects.mjs | |
| 1304 | - function mergeObjects(a, b) { | |
| 1305 | - if (a && !b) { | |
| 1306 | - return a; | |
| 1307 | - } | |
| 1308 | - if (!a && b) { | |
| 1309 | - return b; | |
| 1310 | - } | |
| 1311 | - if (a || b) { | |
| 1312 | - return { | |
| 1313 | - ...a, | |
| 1314 | - ...b | |
| 1315 | - }; | |
| 1316 | - } | |
| 1317 | - return void 0; | |
| 1318 | - } | |
| 1319 | - | |
| 1320 | - // node_modules/@base-ui/utils/empty.mjs | |
| 1321 | - var EMPTY_ARRAY = Object.freeze([]); | |
| 1322 | - var EMPTY_OBJECT = Object.freeze({}); | |
| 1323 | - | |
| 1324 | - // node_modules/@base-ui/react/internals/getStateAttributesProps.mjs | |
| 1325 | - function getStateAttributesProps(state, customMapping) { | |
| 1326 | - const props = {}; | |
| 1327 | - for (const key in state) { | |
| 1328 | - const value = state[key]; | |
| 1329 | - if (customMapping?.hasOwnProperty(key)) { | |
| 1330 | - const customProps = customMapping[key](value); | |
| 1331 | - if (customProps != null) { | |
| 1332 | - Object.assign(props, customProps); | |
| 1333 | - } | |
| 1334 | - continue; | |
| 1335 | - } | |
| 1336 | - if (value === true) { | |
| 1337 | - props[`data-${key.toLowerCase()}`] = ""; | |
| 1338 | - } else if (value) { | |
| 1339 | - props[`data-${key.toLowerCase()}`] = value.toString(); | |
| 1340 | - } | |
| 1341 | - } | |
| 1342 | - return props; | |
| 1343 | - } | |
| 1344 | - | |
| 1345 | - // node_modules/@base-ui/react/utils/resolveClassName.mjs | |
| 1346 | - function resolveClassName(className, state) { | |
| 1347 | - return typeof className === "function" ? className(state) : className; | |
| 1348 | - } | |
| 1349 | - | |
| 1350 | - // node_modules/@base-ui/react/utils/resolveStyle.mjs | |
| 1351 | - function resolveStyle(style, state) { | |
| 1352 | - return typeof style === "function" ? style(state) : style; | |
| 1353 | - } | |
| 1354 | - | |
| 1355 | - // node_modules/@base-ui/react/merge-props/mergeProps.mjs | |
| 1356 | - var EMPTY_PROPS = {}; | |
| 1357 | - function mergeProps(a, b, c, d, e) { | |
| 1358 | - if (!c && !d && !e && !a) { | |
| 1359 | - return createInitialMergedProps(b); | |
| 1360 | - } | |
| 1361 | - let merged = createInitialMergedProps(a); | |
| 1362 | - if (b) { | |
| 1363 | - merged = mergeInto(merged, b); | |
| 1364 | - } | |
| 1365 | - if (c) { | |
| 1366 | - merged = mergeInto(merged, c); | |
| 1367 | - } | |
| 1368 | - if (d) { | |
| 1369 | - merged = mergeInto(merged, d); | |
| 1370 | - } | |
| 1371 | - if (e) { | |
| 1372 | - merged = mergeInto(merged, e); | |
| 1373 | - } | |
| 1374 | - return merged; | |
| 1375 | - } | |
| 1376 | - function mergePropsN(props) { | |
| 1377 | - if (props.length === 0) { | |
| 1378 | - return EMPTY_PROPS; | |
| 1379 | - } | |
| 1380 | - if (props.length === 1) { | |
| 1381 | - return createInitialMergedProps(props[0]); | |
| 1382 | - } | |
| 1383 | - let merged = createInitialMergedProps(props[0]); | |
| 1384 | - for (let i = 1; i < props.length; i += 1) { | |
| 1385 | - merged = mergeInto(merged, props[i]); | |
| 1386 | - } | |
| 1387 | - return merged; | |
| 1388 | - } | |
| 1389 | - function createInitialMergedProps(inputProps) { | |
| 1390 | - if (isPropsGetter(inputProps)) { | |
| 1391 | - return { | |
| 1392 | - ...resolvePropsGetter(inputProps, EMPTY_PROPS) | |
| 1393 | - }; | |
| 1394 | - } | |
| 1395 | - return copyInitialProps(inputProps); | |
| 1396 | - } | |
| 1397 | - function mergeInto(merged, inputProps) { | |
| 1398 | - if (isPropsGetter(inputProps)) { | |
| 1399 | - return resolvePropsGetter(inputProps, merged); | |
| 1400 | - } | |
| 1401 | - return mutablyMergeInto(merged, inputProps); | |
| 1402 | - } | |
| 1403 | - function copyInitialProps(inputProps) { | |
| 1404 | - const copiedProps = { | |
| 1405 | - ...inputProps | |
| 1406 | - }; | |
| 1407 | - for (const propName in copiedProps) { | |
| 1408 | - const propValue = copiedProps[propName]; | |
| 1409 | - if (isEventHandler(propName, propValue)) { | |
| 1410 | - copiedProps[propName] = wrapEventHandler(propValue); | |
| 1411 | - } | |
| 1412 | - } | |
| 1413 | - return copiedProps; | |
| 1414 | - } | |
| 1415 | - function mutablyMergeInto(mergedProps, externalProps) { | |
| 1416 | - if (!externalProps) { | |
| 1417 | - return mergedProps; | |
| 1418 | - } | |
| 1419 | - for (const propName in externalProps) { | |
| 1420 | - const externalPropValue = externalProps[propName]; | |
| 1421 | - switch (propName) { | |
| 1422 | - case "style": { | |
| 1423 | - mergedProps[propName] = mergeObjects(mergedProps.style, externalPropValue); | |
| 1424 | - break; | |
| 1425 | - } | |
| 1426 | - case "className": { | |
| 1427 | - mergedProps[propName] = mergeClassNames(mergedProps.className, externalPropValue); | |
| 1428 | - break; | |
| 1429 | - } | |
| 1430 | - default: { | |
| 1431 | - if (isEventHandler(propName, externalPropValue)) { | |
| 1432 | - mergedProps[propName] = mergeEventHandlers(mergedProps[propName], externalPropValue); | |
| 1433 | - } else { | |
| 1434 | - mergedProps[propName] = externalPropValue; | |
| 1435 | - } | |
| 1436 | - } | |
| 1437 | - } | |
| 1438 | - } | |
| 1439 | - return mergedProps; | |
| 1440 | - } | |
| 1441 | - function isEventHandler(key, value) { | |
| 1442 | - const code0 = key.charCodeAt(0); | |
| 1443 | - const code1 = key.charCodeAt(1); | |
| 1444 | - const code2 = key.charCodeAt(2); | |
| 1445 | - return code0 === 111 && code1 === 110 && code2 >= 65 && code2 <= 90 && (typeof value === "function" || typeof value === "undefined"); | |
| 1446 | - } | |
| 1447 | - function isPropsGetter(inputProps) { | |
| 1448 | - return typeof inputProps === "function"; | |
| 1449 | - } | |
| 1450 | - function resolvePropsGetter(inputProps, previousProps) { | |
| 1451 | - if (isPropsGetter(inputProps)) { | |
| 1452 | - return inputProps(previousProps); | |
| 1453 | - } | |
| 1454 | - return inputProps ?? EMPTY_PROPS; | |
| 1455 | - } | |
| 1456 | - function mergeEventHandlers(ourHandler, theirHandler) { | |
| 1457 | - if (!theirHandler) { | |
| 1458 | - return ourHandler; | |
| 1459 | - } | |
| 1460 | - if (!ourHandler) { | |
| 1461 | - return wrapEventHandler(theirHandler); | |
| 1462 | - } | |
| 1463 | - return (...args) => { | |
| 1464 | - const event = args[0]; | |
| 1465 | - if (isSyntheticEvent(event)) { | |
| 1466 | - const baseUIEvent = event; | |
| 1467 | - makeEventPreventable(baseUIEvent); | |
| 1468 | - const result2 = theirHandler(...args); | |
| 1469 | - if (!baseUIEvent.baseUIHandlerPrevented) { | |
| 1470 | - ourHandler?.(...args); | |
| 1471 | - } | |
| 1472 | - return result2; | |
| 1473 | - } | |
| 1474 | - const result = theirHandler(...args); | |
| 1475 | - ourHandler?.(...args); | |
| 1476 | - return result; | |
| 1477 | - }; | |
| 1478 | - } | |
| 1479 | - function wrapEventHandler(handler) { | |
| 1480 | - if (!handler) { | |
| 1481 | - return handler; | |
| 1482 | - } | |
| 1483 | - return (...args) => { | |
| 1484 | - const event = args[0]; | |
| 1485 | - if (isSyntheticEvent(event)) { | |
| 1486 | - makeEventPreventable(event); | |
| 1487 | - } | |
| 1488 | - return handler(...args); | |
| 1489 | - }; | |
| 1490 | - } | |
| 1491 | - function makeEventPreventable(event) { | |
| 1492 | - event.preventBaseUIHandler = () => { | |
| 1493 | - event.baseUIHandlerPrevented = true; | |
| 1494 | - }; | |
| 1495 | - return event; | |
| 1496 | - } | |
| 1497 | - function mergeClassNames(ourClassName, theirClassName) { | |
| 1498 | - if (theirClassName) { | |
| 1499 | - if (ourClassName) { | |
| 1500 | - return theirClassName + " " + ourClassName; | |
| 1501 | - } | |
| 1502 | - return theirClassName; | |
| 1503 | - } | |
| 1504 | - return ourClassName; | |
| 1505 | - } | |
| 1506 | - function isSyntheticEvent(event) { | |
| 1507 | - return event != null && typeof event === "object" && "nativeEvent" in event; | |
| 1508 | - } | |
| 1509 | - | |
| 1510 | - // node_modules/@base-ui/react/internals/useRenderElement.mjs | |
| 1511 | - var import_react = __toESM(require_react(), 1); | |
| 1512 | - function useRenderElement(element, componentProps, params = {}) { | |
| 1513 | - const renderProp = componentProps.render; | |
| 1514 | - const outProps = useRenderElementProps(componentProps, params); | |
| 1515 | - if (params.enabled === false) { | |
| 1516 | - return null; | |
| 1517 | - } | |
| 1518 | - const state = params.state ?? EMPTY_OBJECT; | |
| 1519 | - return evaluateRenderProp(element, renderProp, outProps, state); | |
| 1520 | - } | |
| 1521 | - function useRenderElementProps(componentProps, params = {}) { | |
| 1522 | - const { | |
| 1523 | - className: classNameProp, | |
| 1524 | - style: styleProp, | |
| 1525 | - render: renderProp | |
| 1526 | - } = componentProps; | |
| 1527 | - const { | |
| 1528 | - state = EMPTY_OBJECT, | |
| 1529 | - ref, | |
| 1530 | - props, | |
| 1531 | - stateAttributesMapping, | |
| 1532 | - enabled = true | |
| 1533 | - } = params; | |
| 1534 | - const className = enabled ? resolveClassName(classNameProp, state) : void 0; | |
| 1535 | - const style = enabled ? resolveStyle(styleProp, state) : void 0; | |
| 1536 | - const stateProps = enabled ? getStateAttributesProps(state, stateAttributesMapping) : EMPTY_OBJECT; | |
| 1537 | - const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : void 0; | |
| 1538 | - const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT; | |
| 1539 | - if (typeof document !== "undefined") { | |
| 1540 | - if (!enabled) { | |
| 1541 | - useMergedRefs(null, null); | |
| 1542 | - } else if (Array.isArray(ref)) { | |
| 1543 | - outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]); | |
| 1544 | - } else { | |
| 1545 | - outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref); | |
| 1546 | - } | |
| 1547 | - } | |
| 1548 | - if (!enabled) { | |
| 1549 | - return EMPTY_OBJECT; | |
| 1550 | - } | |
| 1551 | - if (className !== void 0) { | |
| 1552 | - outProps.className = mergeClassNames(outProps.className, className); | |
| 1553 | - } | |
| 1554 | - if (style !== void 0) { | |
| 1555 | - outProps.style = mergeObjects(outProps.style, style); | |
| 1556 | - } | |
| 1557 | - return outProps; | |
| 1558 | - } | |
| 1559 | - function resolveRenderFunctionProps(props) { | |
| 1560 | - if (Array.isArray(props)) { | |
| 1561 | - return mergePropsN(props); | |
| 1562 | - } | |
| 1563 | - return mergeProps(void 0, props); | |
| 1564 | - } | |
| 1565 | - var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"); | |
| 1566 | - var COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/; | |
| 1567 | - var LOWERCASE_CHARACTER_PATTERN = /[a-z]/; | |
| 1568 | - function evaluateRenderProp(element, render, props, state) { | |
| 1569 | - if (render) { | |
| 1570 | - if (typeof render === "function") { | |
| 1571 | - if (true) { | |
| 1572 | - warnIfRenderPropLooksLikeComponent(render); | |
| 1573 | - } | |
| 1574 | - return render(props, state); | |
| 1575 | - } | |
| 1576 | - const mergedProps = mergeProps(props, render.props); | |
| 1577 | - mergedProps.ref = props.ref; | |
| 1578 | - let newElement = render; | |
| 1579 | - if (newElement?.$$typeof === REACT_LAZY_TYPE) { | |
| 1580 | - const children = React4.Children.toArray(render); | |
| 1581 | - newElement = children[0]; | |
| 1582 | - } | |
| 1583 | - if (true) { | |
| 1584 | - if (!/* @__PURE__ */ React4.isValidElement(newElement)) { | |
| 1585 | - throw new Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.", "A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.", "https://base-ui.com/r/invalid-render-prop"].join("\n")); | |
| 1586 | - } | |
| 1587 | - } | |
| 1588 | - return /* @__PURE__ */ React4.cloneElement(newElement, mergedProps); | |
| 1589 | - } | |
| 1590 | - if (element) { | |
| 1591 | - if (typeof element === "string") { | |
| 1592 | - return renderTag(element, props); | |
| 1593 | - } | |
| 1594 | - } | |
| 1595 | - throw new Error(true ? "Base UI: Render element or function are not defined." : formatErrorMessage_default(8)); | |
| 1596 | - } | |
| 1597 | - function warnIfRenderPropLooksLikeComponent(renderFn) { | |
| 1598 | - const functionName = renderFn.name; | |
| 1599 | - if (functionName.length === 0) { | |
| 1600 | - return; | |
| 1601 | - } | |
| 1602 | - if (!COMPONENT_IDENTIFIER_PATTERN.test(functionName)) { | |
| 1603 | - return; | |
| 1604 | - } | |
| 1605 | - if (!LOWERCASE_CHARACTER_PATTERN.test(functionName)) { | |
| 1606 | - return; | |
| 1607 | - } | |
| 1608 | - warn(`The \`render\` prop received a function named \`${functionName}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.", "https://base-ui.com/r/invalid-render-prop"); | |
| 1609 | - } | |
| 1610 | - function renderTag(Tag, props) { | |
| 1611 | - if (Tag === "button") { | |
| 1612 | - return /* @__PURE__ */ (0, import_react.createElement)("button", { | |
| 1613 | - type: "button", | |
| 1614 | - ...props, | |
| 1615 | - key: props.key | |
| 1616 | - }); | |
| 1617 | - } | |
| 1618 | - if (Tag === "img") { | |
| 1619 | - return /* @__PURE__ */ (0, import_react.createElement)("img", { | |
| 1620 | - alt: "", | |
| 1621 | - ...props, | |
| 1622 | - key: props.key | |
| 1623 | - }); | |
| 1624 | - } | |
| 1625 | - return /* @__PURE__ */ React4.createElement(Tag, props); | |
| 1626 | - } | |
| 1627 | - | |
| 1628 | - // node_modules/@base-ui/react/use-render/useRender.mjs | |
| 1629 | - function useRender(params) { | |
| 1630 | - return useRenderElement(params.defaultTagName ?? "div", params, params); | |
| 1631 | - } | |
| 1632 | - | |
| 1633 | - // packages/ui/build-module/visually-hidden/visually-hidden.mjs | |
| 1151 | + // packages/admin-ui/build-module/navigable-region/index.mjs | |
| 1634 | 1152 | var import_element3 = __toESM(require_element(), 1); |
| 1635 | - var STYLE_HASH_ATTRIBUTE = "data-wp-hash"; | |
| 1636 | - function getRuntime() { | |
| 1637 | - const globalScope = globalThis; | |
| 1638 | - if (globalScope.__wpStyleRuntime) { | |
| 1639 | - return globalScope.__wpStyleRuntime; | |
| 1640 | - } | |
| 1641 | - globalScope.__wpStyleRuntime = { | |
| 1642 | - documents: /* @__PURE__ */ new Map(), | |
| 1643 | - styles: /* @__PURE__ */ new Map(), | |
| 1644 | - injectedStyles: /* @__PURE__ */ new WeakMap() | |
| 1645 | - }; | |
| 1646 | - if (typeof document !== "undefined") { | |
| 1647 | - registerDocument(document); | |
| 1648 | - } | |
| 1649 | - return globalScope.__wpStyleRuntime; | |
| 1650 | - } | |
| 1651 | - function documentContainsStyleHash(targetDocument, hash) { | |
| 1652 | - if (!targetDocument.head) { | |
| 1653 | - return false; | |
| 1654 | - } | |
| 1655 | - for (const style of targetDocument.head.querySelectorAll( | |
| 1656 | - `style[${STYLE_HASH_ATTRIBUTE}]` | |
| 1657 | - )) { | |
| 1658 | - if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) { | |
| 1659 | - return true; | |
| 1660 | - } | |
| 1661 | - } | |
| 1662 | - return false; | |
| 1663 | - } | |
| 1664 | - function injectStyle(targetDocument, hash, css) { | |
| 1665 | - if (!targetDocument.head) { | |
| 1666 | - return; | |
| 1667 | - } | |
| 1668 | - const runtime = getRuntime(); | |
| 1669 | - let injectedStyles = runtime.injectedStyles.get(targetDocument); | |
| 1670 | - if (!injectedStyles) { | |
| 1671 | - injectedStyles = /* @__PURE__ */ new Set(); | |
| 1672 | - runtime.injectedStyles.set(targetDocument, injectedStyles); | |
| 1673 | - } | |
| 1674 | - if (injectedStyles.has(hash)) { | |
| 1675 | - return; | |
| 1676 | - } | |
| 1677 | - if (documentContainsStyleHash(targetDocument, hash)) { | |
| 1678 | - injectedStyles.add(hash); | |
| 1679 | - return; | |
| 1680 | - } | |
| 1681 | - const style = targetDocument.createElement("style"); | |
| 1682 | - style.setAttribute(STYLE_HASH_ATTRIBUTE, hash); | |
| 1683 | - style.appendChild(targetDocument.createTextNode(css)); | |
| 1684 | - targetDocument.head.appendChild(style); | |
| 1685 | - injectedStyles.add(hash); | |
| 1686 | - } | |
| 1687 | - function registerDocument(targetDocument) { | |
| 1688 | - const runtime = getRuntime(); | |
| 1689 | - runtime.documents.set( | |
| 1690 | - targetDocument, | |
| 1691 | - (runtime.documents.get(targetDocument) ?? 0) + 1 | |
| 1692 | - ); | |
| 1693 | - for (const [hash, css] of runtime.styles) { | |
| 1694 | - injectStyle(targetDocument, hash, css); | |
| 1695 | - } | |
| 1696 | - return () => { | |
| 1697 | - const count = runtime.documents.get(targetDocument); | |
| 1698 | - if (count === void 0) { | |
| 1699 | - return; | |
| 1700 | - } | |
| 1701 | - if (count <= 1) { | |
| 1702 | - runtime.documents.delete(targetDocument); | |
| 1703 | - return; | |
| 1704 | - } | |
| 1705 | - runtime.documents.set(targetDocument, count - 1); | |
| 1706 | - }; | |
| 1707 | - } | |
| 1708 | - function registerStyle(hash, css) { | |
| 1709 | - const runtime = getRuntime(); | |
| 1710 | - runtime.styles.set(hash, css); | |
| 1711 | - for (const targetDocument of runtime.documents.keys()) { | |
| 1712 | - injectStyle(targetDocument, hash, css); | |
| 1713 | - } | |
| 1714 | - } | |
| 1715 | - if (typeof process === "undefined" || true) { | |
| 1716 | - registerStyle("fa606a57ae", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}"); | |
| 1717 | - } | |
| 1718 | - var style_default = { "visually-hidden": "f37b9e2e191ebd66__visually-hidden" }; | |
| 1719 | - var VisuallyHidden = (0, import_element3.forwardRef)( | |
| 1720 | - function VisuallyHidden2({ render, ...restProps }, ref) { | |
| 1721 | - const element = useRender({ | |
| 1722 | - render, | |
| 1723 | - ref, | |
| 1724 | - props: mergeProps( | |
| 1725 | - { className: style_default["visually-hidden"] }, | |
| 1726 | - restProps, | |
| 1727 | - { | |
| 1728 | - // @ts-expect-error Arbitrary data-* attributes aren't indexable on the typed div props. Kept hardcoded so consumers can't change or remove it. | |
| 1729 | - "data-visually-hidden": "" | |
| 1730 | - } | |
| 1731 | - ) | |
| 1732 | - }); | |
| 1733 | - return element; | |
| 1734 | - } | |
| 1735 | - ); | |
| 1736 | - | |
| 1737 | - // packages/admin-ui/build-module/navigable-region/index.mjs | |
| 1738 | - var import_element4 = __toESM(require_element(), 1); | |
| 1739 | 1153 | var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1); |
| 1740 | - var NavigableRegion = (0, import_element4.forwardRef)( | |
| 1154 | + var NavigableRegion = (0, import_element3.forwardRef)( | |
| 1741 | 1155 | ({ children, className, ariaLabel, as: Tag = "div", ...props }, ref) => { |
| 1742 | 1156 | return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)( |
| 1743 | 1157 | Tag, |
| 1744 | 1158 | { |
| @@ -1756,9 +1170,9 @@ | ||
| 1756 | 1170 | NavigableRegion.displayName = "NavigableRegion"; |
| 1757 | 1171 | var navigable_region_default = NavigableRegion; |
| 1758 | 1172 | |
| 1759 | 1173 | // packages/interface/build-module/components/interface-skeleton/index.mjs |
| 1760 | - var import_element5 = __toESM(require_element(), 1); | |
| 1174 | + var import_element4 = __toESM(require_element(), 1); | |
| 1761 | 1175 | var import_components6 = __toESM(require_components(), 1); |
| 1762 | 1176 | var import_i18n2 = __toESM(require_i18n(), 1); |
| 1763 | 1177 | var import_compose2 = __toESM(require_compose(), 1); |
| 1764 | 1178 | var import_jsx_runtime21 = __toESM(require_jsx_runtime(), 1); |
| @@ -1768,9 +1182,9 @@ | ||
| 1768 | 1182 | duration: ANIMATION_DURATION2, |
| 1769 | 1183 | ease: [0.6, 0, 0.4, 1] |
| 1770 | 1184 | }; |
| 1771 | 1185 | function useHTMLClass(className) { |
| 1772 | - (0, import_element5.useEffect)(() => { | |
| 1186 | + (0, import_element4.useEffect)(() => { | |
| 1773 | 1187 | const element = document && document.querySelector(`html:not(.${className})`); |
| 1774 | 1188 | if (!element) { |
| 1775 | 1189 | return; |
| 1776 | 1190 | } |
| @@ -1943,9 +1357,9 @@ | ||
| 1943 | 1357 | ] |
| 1944 | 1358 | } |
| 1945 | 1359 | ); |
| 1946 | 1360 | } |
| 1947 | - var interface_skeleton_default = (0, import_element5.forwardRef)(InterfaceSkeleton); | |
| 1361 | + var interface_skeleton_default = (0, import_element4.forwardRef)(InterfaceSkeleton); | |
| 1948 | 1362 | |
| 1949 | 1363 | // packages/edit-widgets/build-module/store/actions.mjs |
| 1950 | 1364 | var import_widgets2 = __toESM(require_widgets(), 1); |
| 1951 | 1365 | var import_core_data = __toESM(require_core_data(), 1); |
| @@ -2680,9 +2094,9 @@ | ||
| 2680 | 2094 | style: "wp-block-widget-area" |
| 2681 | 2095 | }; |
| 2682 | 2096 | |
| 2683 | 2097 | // packages/edit-widgets/build-module/blocks/widget-area/edit/index.mjs |
| 2684 | - var import_element8 = __toESM(require_element(), 1); | |
| 2098 | + var import_element7 = __toESM(require_element(), 1); | |
| 2685 | 2099 | var import_data10 = __toESM(require_data(), 1); |
| 2686 | 2100 | var import_core_data5 = __toESM(require_core_data(), 1); |
| 2687 | 2101 | var import_components7 = __toESM(require_components(), 1); |
| 2688 | 2102 | var import_block_editor5 = __toESM(require_block_editor(), 1); |
| @@ -2689,15 +2103,15 @@ | ||
| 2689 | 2103 | |
| 2690 | 2104 | // packages/edit-widgets/build-module/blocks/widget-area/edit/inner-blocks.mjs |
| 2691 | 2105 | var import_core_data4 = __toESM(require_core_data(), 1); |
| 2692 | 2106 | var import_block_editor4 = __toESM(require_block_editor(), 1); |
| 2693 | - var import_element7 = __toESM(require_element(), 1); | |
| 2107 | + var import_element6 = __toESM(require_element(), 1); | |
| 2694 | 2108 | |
| 2695 | 2109 | // packages/edit-widgets/build-module/blocks/widget-area/edit/use-is-dragging-within.mjs |
| 2696 | - var import_element6 = __toESM(require_element(), 1); | |
| 2110 | + var import_element5 = __toESM(require_element(), 1); | |
| 2697 | 2111 | var useIsDraggingWithin = (elementRef) => { |
| 2698 | - const [isDraggingWithin, setIsDraggingWithin] = (0, import_element6.useState)(false); | |
| 2699 | - (0, import_element6.useEffect)(() => { | |
| 2112 | + const [isDraggingWithin, setIsDraggingWithin] = (0, import_element5.useState)(false); | |
| 2113 | + (0, import_element5.useEffect)(() => { | |
| 2700 | 2114 | const { ownerDocument } = elementRef.current; |
| 2701 | 2115 | function handleDragStart(event) { |
| 2702 | 2116 | handleDragEnter(event); |
| 2703 | 2117 | } |
| @@ -2730,9 +2144,9 @@ | ||
| 2730 | 2144 | const [blocks, onInput, onChange] = (0, import_core_data4.useEntityBlockEditor)( |
| 2731 | 2145 | "root", |
| 2732 | 2146 | "postType" |
| 2733 | 2147 | ); |
| 2734 | - const innerBlocksRef = (0, import_element7.useRef)(); | |
| 2148 | + const innerBlocksRef = (0, import_element6.useRef)(); | |
| 2735 | 2149 | const isDraggingWithinInnerBlocks = use_is_dragging_within_default(innerBlocksRef); |
| 2736 | 2150 | const shouldHighlightDropZone = isDraggingWithinInnerBlocks; |
| 2737 | 2151 | const innerBlocksProps = (0, import_block_editor4.useInnerBlocksProps)( |
| 2738 | 2152 | { ref: innerBlocksRef }, |
| @@ -2769,17 +2183,17 @@ | ||
| 2769 | 2183 | (select) => select(store2).getIsWidgetAreaOpen(clientId), |
| 2770 | 2184 | [clientId] |
| 2771 | 2185 | ); |
| 2772 | 2186 | const { setIsWidgetAreaOpen: setIsWidgetAreaOpen2 } = (0, import_data10.useDispatch)(store2); |
| 2773 | - const wrapper = (0, import_element8.useRef)(); | |
| 2774 | - const setOpen = (0, import_element8.useCallback)( | |
| 2187 | + const wrapper = (0, import_element7.useRef)(); | |
| 2188 | + const setOpen = (0, import_element7.useCallback)( | |
| 2775 | 2189 | (openState) => setIsWidgetAreaOpen2(clientId, openState), |
| 2776 | 2190 | [clientId] |
| 2777 | 2191 | ); |
| 2778 | 2192 | const isDragging = useIsDragging(wrapper); |
| 2779 | 2193 | const isDraggingWithin = use_is_dragging_within_default(wrapper); |
| 2780 | - const [openedWhileDragging, setOpenedWhileDragging] = (0, import_element8.useState)(false); | |
| 2781 | - (0, import_element8.useEffect)(() => { | |
| 2194 | + const [openedWhileDragging, setOpenedWhileDragging] = (0, import_element7.useState)(false); | |
| 2195 | + (0, import_element7.useEffect)(() => { | |
| 2782 | 2196 | if (!isDragging) { |
| 2783 | 2197 | setOpenedWhileDragging(false); |
| 2784 | 2198 | return; |
| 2785 | 2199 | } |
| @@ -2825,10 +2239,10 @@ | ||
| 2825 | 2239 | } |
| 2826 | 2240 | ) }) }); |
| 2827 | 2241 | } |
| 2828 | 2242 | var useIsDragging = (elementRef) => { |
| 2829 | - const [isDragging, setIsDragging] = (0, import_element8.useState)(false); | |
| 2830 | - (0, import_element8.useEffect)(() => { | |
| 2243 | + const [isDragging, setIsDragging] = (0, import_element7.useState)(false); | |
| 2244 | + (0, import_element7.useEffect)(() => { | |
| 2831 | 2245 | const { ownerDocument } = elementRef.current; |
| 2832 | 2246 | function handleDragStart() { |
| 2833 | 2247 | setIsDragging(true); |
| 2834 | 2248 | } |
| @@ -2861,9 +2275,9 @@ | ||
| 2861 | 2275 | var import_notices4 = __toESM(require_notices(), 1); |
| 2862 | 2276 | var import_components22 = __toESM(require_components(), 1); |
| 2863 | 2277 | |
| 2864 | 2278 | // packages/edit-widgets/build-module/components/error-boundary/index.mjs |
| 2865 | - var import_element9 = __toESM(require_element(), 1); | |
| 2279 | + var import_element8 = __toESM(require_element(), 1); | |
| 2866 | 2280 | var import_i18n5 = __toESM(require_i18n(), 1); |
| 2867 | 2281 | var import_components8 = __toESM(require_components(), 1); |
| 2868 | 2282 | var import_block_editor6 = __toESM(require_block_editor(), 1); |
| 2869 | 2283 | var import_compose4 = __toESM(require_compose(), 1); |
| @@ -2878,9 +2292,9 @@ | ||
| 2878 | 2292 | /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(CopyButton, { text: error.stack, children: (0, import_i18n5.__)("Copy Error") }, "copy-error") |
| 2879 | 2293 | ]; |
| 2880 | 2294 | return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_block_editor6.Warning, { className: "edit-widgets-error-boundary", actions, children: message }); |
| 2881 | 2295 | } |
| 2882 | - var ErrorBoundary = class extends import_element9.Component { | |
| 2296 | + var ErrorBoundary = class extends import_element8.Component { | |
| 2883 | 2297 | constructor() { |
| 2884 | 2298 | super(...arguments); |
| 2885 | 2299 | this.state = { |
| 2886 | 2300 | error: null |
| @@ -2913,9 +2327,9 @@ | ||
| 2913 | 2327 | var import_compose5 = __toESM(require_compose(), 1); |
| 2914 | 2328 | var import_media_utils2 = __toESM(require_media_utils(), 1); |
| 2915 | 2329 | var import_data13 = __toESM(require_data(), 1); |
| 2916 | 2330 | var import_core_data8 = __toESM(require_core_data(), 1); |
| 2917 | - var import_element11 = __toESM(require_element(), 1); | |
| 2331 | + var import_element10 = __toESM(require_element(), 1); | |
| 2918 | 2332 | var import_block_editor8 = __toESM(require_block_editor(), 1); |
| 2919 | 2333 | var import_patterns = __toESM(require_patterns(), 1); |
| 2920 | 2334 | var import_preferences4 = __toESM(require_preferences(), 1); |
| 2921 | 2335 | var import_block_library = __toESM(require_block_library(), 1); |
| @@ -2920,9 +2334,9 @@ | ||
| 2920 | 2334 | var import_preferences4 = __toESM(require_preferences(), 1); |
| 2921 | 2335 | var import_block_library = __toESM(require_block_library(), 1); |
| 2922 | 2336 | |
| 2923 | 2337 | // packages/edit-widgets/build-module/components/keyboard-shortcuts/index.mjs |
| 2924 | - var import_element10 = __toESM(require_element(), 1); | |
| 2338 | + var import_element9 = __toESM(require_element(), 1); | |
| 2925 | 2339 | var import_keyboard_shortcuts = __toESM(require_keyboard_shortcuts(), 1); |
| 2926 | 2340 | var import_keycodes = __toESM(require_keycodes(), 1); |
| 2927 | 2341 | var import_data11 = __toESM(require_data(), 1); |
| 2928 | 2342 | var import_i18n6 = __toESM(require_i18n(), 1); |
| @@ -2945,9 +2359,9 @@ | ||
| 2945 | 2359 | return null; |
| 2946 | 2360 | } |
| 2947 | 2361 | function KeyboardShortcutsRegister() { |
| 2948 | 2362 | const { registerShortcut } = (0, import_data11.useDispatch)(import_keyboard_shortcuts.store); |
| 2949 | - (0, import_element10.useEffect)(() => { | |
| 2363 | + (0, import_element9.useEffect)(() => { | |
| 2950 | 2364 | registerShortcut({ |
| 2951 | 2365 | name: "core/edit-widgets/undo", |
| 2952 | 2366 | category: "global", |
| 2953 | 2367 | description: (0, import_i18n6.__)("Undo your last changes."), |
| @@ -3067,9 +2481,9 @@ | ||
| 3067 | 2481 | var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1); |
| 3068 | 2482 | var { ExperimentalBlockEditorProvider } = unlock(import_block_editor8.privateApis); |
| 3069 | 2483 | var { PatternsMenuItems } = unlock(import_patterns.privateApis); |
| 3070 | 2484 | var { BlockKeyboardShortcuts } = unlock(import_block_library.privateApis); |
| 3071 | - var EMPTY_ARRAY2 = []; | |
| 2485 | + var EMPTY_ARRAY = []; | |
| 3072 | 2486 | function WidgetAreasBlockEditorProvider({ |
| 3073 | 2487 | blockEditorSettings, |
| 3074 | 2488 | children, |
| 3075 | 2489 | ...props |
| @@ -3092,9 +2506,9 @@ | ||
| 3092 | 2506 | hasUploadPermissions: canUser("create", { |
| 3093 | 2507 | kind: "postType", |
| 3094 | 2508 | name: "attachment" |
| 3095 | 2509 | }) ?? true, |
| 3096 | - reusableBlocks: ALLOW_REUSABLE_BLOCKS ? getEntityRecords("postType", "wp_block") : EMPTY_ARRAY2, | |
| 2510 | + reusableBlocks: ALLOW_REUSABLE_BLOCKS ? getEntityRecords("postType", "wp_block") : EMPTY_ARRAY, | |
| 3097 | 2511 | isFixedToolbarActive: !!select(import_preferences4.store).get( |
| 3098 | 2512 | "core/edit-widgets", |
| 3099 | 2513 | "fixedToolbar" |
| 3100 | 2514 | ), |
| @@ -3106,9 +2520,9 @@ | ||
| 3106 | 2520 | pageForPosts: siteSettings?.page_for_posts |
| 3107 | 2521 | }; |
| 3108 | 2522 | }, []); |
| 3109 | 2523 | const { setIsInserterOpened: setIsInserterOpened2 } = (0, import_data13.useDispatch)(store2); |
| 3110 | - const settings2 = (0, import_element11.useMemo)(() => { | |
| 2524 | + const settings2 = (0, import_element10.useMemo)(() => { | |
| 3111 | 2525 | let mediaUploadBlockEditor; |
| 3112 | 2526 | if (hasUploadPermissions) { |
| 3113 | 2527 | mediaUploadBlockEditor = ({ onError, ...argumentsObject }) => { |
| 3114 | 2528 | (0, import_media_utils2.uploadMedia)({ |
| @@ -3168,9 +2582,9 @@ | ||
| 3168 | 2582 | ] }); |
| 3169 | 2583 | } |
| 3170 | 2584 | |
| 3171 | 2585 | // packages/edit-widgets/build-module/components/sidebar/index.mjs |
| 3172 | - var import_element13 = __toESM(require_element(), 1); | |
| 2586 | + var import_element12 = __toESM(require_element(), 1); | |
| 3173 | 2587 | var import_i18n8 = __toESM(require_i18n(), 1); |
| 3174 | 2588 | var import_block_editor10 = __toESM(require_block_editor(), 1); |
| 3175 | 2589 | var import_components11 = __toESM(require_components(), 1); |
| 3176 | 2590 | var import_data15 = __toESM(require_data(), 1); |
| @@ -3176,9 +2590,9 @@ | ||
| 3176 | 2590 | var import_data15 = __toESM(require_data(), 1); |
| 3177 | 2591 | |
| 3178 | 2592 | // packages/edit-widgets/build-module/components/sidebar/widget-areas.mjs |
| 3179 | 2593 | var import_data14 = __toESM(require_data(), 1); |
| 3180 | - var import_element12 = __toESM(require_element(), 1); | |
| 2594 | + var import_element11 = __toESM(require_element(), 1); | |
| 3181 | 2595 | var import_block_editor9 = __toESM(require_block_editor(), 1); |
| 3182 | 2596 | var import_components10 = __toESM(require_components(), 1); |
| 3183 | 2597 | var import_i18n7 = __toESM(require_i18n(), 1); |
| 3184 | 2598 | var import_url = __toESM(require_url(), 1); |
| @@ -3188,9 +2602,9 @@ | ||
| 3188 | 2602 | const widgetAreas = (0, import_data14.useSelect)( |
| 3189 | 2603 | (select) => select(store2).getWidgetAreas(), |
| 3190 | 2604 | [] |
| 3191 | 2605 | ); |
| 3192 | - const selectedWidgetArea = (0, import_element12.useMemo)( | |
| 2606 | + const selectedWidgetArea = (0, import_element11.useMemo)( | |
| 3193 | 2607 | () => selectedWidgetAreaId && widgetAreas?.find( |
| 3194 | 2608 | (widgetArea) => widgetArea.id === selectedWidgetAreaId |
| 3195 | 2609 | ), |
| 3196 | 2610 | [selectedWidgetAreaId, widgetAreas] |
| @@ -3239,9 +2653,12 @@ | ||
| 3239 | 2653 | } |
| 3240 | 2654 | |
| 3241 | 2655 | // packages/edit-widgets/build-module/components/sidebar/index.mjs |
| 3242 | 2656 | var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1); |
| 3243 | - var SIDEBAR_ACTIVE_BY_DEFAULT = true; | |
| 2657 | + var SIDEBAR_ACTIVE_BY_DEFAULT = import_element12.Platform.select({ | |
| 2658 | + web: true, | |
| 2659 | + native: false | |
| 2660 | + }); | |
| 3244 | 2661 | var BLOCK_INSPECTOR_IDENTIFIER = "edit-widgets/block-inspector"; |
| 3245 | 2662 | var WIDGET_AREAS_IDENTIFIER = "edit-widgets/block-areas"; |
| 3246 | 2663 | var { Tabs } = unlock(import_components11.privateApis); |
| 3247 | 2664 | function SidebarHeader({ selectedWidgetAreaBlock }) { |
| @@ -3256,9 +2673,9 @@ | ||
| 3256 | 2673 | isGeneralSidebarOpen, |
| 3257 | 2674 | selectedWidgetAreaBlock |
| 3258 | 2675 | }) { |
| 3259 | 2676 | const { enableComplementaryArea: enableComplementaryArea2 } = (0, import_data15.useDispatch)(store); |
| 3260 | - (0, import_element13.useEffect)(() => { | |
| 2677 | + (0, import_element12.useEffect)(() => { | |
| 3261 | 2678 | if (hasSelectedNonAreaBlock && currentArea === WIDGET_AREAS_IDENTIFIER && isGeneralSidebarOpen) { |
| 3262 | 2679 | enableComplementaryArea2( |
| 3263 | 2680 | "core/edit-widgets", |
| 3264 | 2681 | BLOCK_INSPECTOR_IDENTIFIER |
| @@ -3270,9 +2687,9 @@ | ||
| 3270 | 2687 | WIDGET_AREAS_IDENTIFIER |
| 3271 | 2688 | ); |
| 3272 | 2689 | } |
| 3273 | 2690 | }, [hasSelectedNonAreaBlock, enableComplementaryArea2]); |
| 3274 | - const tabsContextValue = (0, import_element13.useContext)(Tabs.Context); | |
| 2691 | + const tabsContextValue = (0, import_element12.useContext)(Tabs.Context); | |
| 3275 | 2692 | return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)( |
| 3276 | 2693 | complementary_area_default, |
| 3277 | 2694 | { |
| 3278 | 2695 | className: "edit-widgets-sidebar", |
| @@ -3358,9 +2775,9 @@ | ||
| 3358 | 2775 | selectedWidgetAreaBlock: widgetAreaBlock |
| 3359 | 2776 | }; |
| 3360 | 2777 | }, []); |
| 3361 | 2778 | const { enableComplementaryArea: enableComplementaryArea2 } = (0, import_data15.useDispatch)(store); |
| 3362 | - const onTabSelect = (0, import_element13.useCallback)( | |
| 2779 | + const onTabSelect = (0, import_element12.useCallback)( | |
| 3363 | 2780 | (newSelectedTabId) => { |
| 3364 | 2781 | if (!!newSelectedTabId) { |
| 3365 | 2782 | enableComplementaryArea2( |
| 3366 | 2783 | store2.name, |
| @@ -3391,9 +2808,9 @@ | ||
| 3391 | 2808 | |
| 3392 | 2809 | // packages/edit-widgets/build-module/components/layout/interface.mjs |
| 3393 | 2810 | var import_compose12 = __toESM(require_compose(), 1); |
| 3394 | 2811 | var import_block_editor17 = __toESM(require_block_editor(), 1); |
| 3395 | - var import_element23 = __toESM(require_element(), 1); | |
| 2812 | + var import_element22 = __toESM(require_element(), 1); | |
| 3396 | 2813 | var import_data28 = __toESM(require_data(), 1); |
| 3397 | 2814 | var import_i18n18 = __toESM(require_i18n(), 1); |
| 3398 | 2815 | var import_preferences8 = __toESM(require_preferences(), 1); |
| 3399 | 2816 | |
| @@ -3399,9 +2816,9 @@ | ||
| 3399 | 2816 | |
| 3400 | 2817 | // packages/edit-widgets/build-module/components/header/index.mjs |
| 3401 | 2818 | var import_block_editor12 = __toESM(require_block_editor(), 1); |
| 3402 | 2819 | var import_data22 = __toESM(require_data(), 1); |
| 3403 | - var import_element19 = __toESM(require_element(), 1); | |
| 2820 | + var import_element18 = __toESM(require_element(), 1); | |
| 3404 | 2821 | var import_i18n16 = __toESM(require_i18n(), 1); |
| 3405 | 2822 | var import_components19 = __toESM(require_components(), 1); |
| 3406 | 2823 | var import_compose8 = __toESM(require_compose(), 1); |
| 3407 | 2824 | var import_preferences6 = __toESM(require_preferences(), 1); |
| @@ -3410,9 +2827,9 @@ | ||
| 3410 | 2827 | var import_data18 = __toESM(require_data(), 1); |
| 3411 | 2828 | var import_i18n11 = __toESM(require_i18n(), 1); |
| 3412 | 2829 | var import_components14 = __toESM(require_components(), 1); |
| 3413 | 2830 | var import_block_editor11 = __toESM(require_block_editor(), 1); |
| 3414 | - var import_element16 = __toESM(require_element(), 1); | |
| 2831 | + var import_element15 = __toESM(require_element(), 1); | |
| 3415 | 2832 | var import_compose6 = __toESM(require_compose(), 1); |
| 3416 | 2833 | |
| 3417 | 2834 | // packages/edit-widgets/build-module/components/header/undo-redo/undo.mjs |
| 3418 | 2835 | var import_i18n9 = __toESM(require_i18n(), 1); |
| @@ -3419,9 +2836,9 @@ | ||
| 3419 | 2836 | var import_components12 = __toESM(require_components(), 1); |
| 3420 | 2837 | var import_data16 = __toESM(require_data(), 1); |
| 3421 | 2838 | var import_keycodes2 = __toESM(require_keycodes(), 1); |
| 3422 | 2839 | var import_core_data9 = __toESM(require_core_data(), 1); |
| 3423 | - var import_element14 = __toESM(require_element(), 1); | |
| 2840 | + var import_element13 = __toESM(require_element(), 1); | |
| 3424 | 2841 | var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1); |
| 3425 | 2842 | function UndoButton(props, ref) { |
| 3426 | 2843 | const hasUndo = (0, import_data16.useSelect)( |
| 3427 | 2844 | (select) => select(import_core_data9.store).hasUndo(), |
| @@ -3441,9 +2858,9 @@ | ||
| 3441 | 2858 | size: "compact" |
| 3442 | 2859 | } |
| 3443 | 2860 | ); |
| 3444 | 2861 | } |
| 3445 | - var undo_default2 = (0, import_element14.forwardRef)(UndoButton); | |
| 2862 | + var undo_default2 = (0, import_element13.forwardRef)(UndoButton); | |
| 3446 | 2863 | |
| 3447 | 2864 | // packages/edit-widgets/build-module/components/header/undo-redo/redo.mjs |
| 3448 | 2865 | var import_i18n10 = __toESM(require_i18n(), 1); |
| 3449 | 2866 | var import_components13 = __toESM(require_components(), 1); |
| @@ -3449,9 +2866,9 @@ | ||
| 3449 | 2866 | var import_components13 = __toESM(require_components(), 1); |
| 3450 | 2867 | var import_data17 = __toESM(require_data(), 1); |
| 3451 | 2868 | var import_keycodes3 = __toESM(require_keycodes(), 1); |
| 3452 | 2869 | var import_core_data10 = __toESM(require_core_data(), 1); |
| 3453 | - var import_element15 = __toESM(require_element(), 1); | |
| 2870 | + var import_element14 = __toESM(require_element(), 1); | |
| 3454 | 2871 | var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1); |
| 3455 | 2872 | function RedoButton(props, ref) { |
| 3456 | 2873 | const shortcut = (0, import_keycodes3.isAppleOS)() ? import_keycodes3.displayShortcut.primaryShift("z") : import_keycodes3.displayShortcut.primary("y"); |
| 3457 | 2874 | const hasRedo = (0, import_data17.useSelect)( |
| @@ -3472,9 +2889,9 @@ | ||
| 3472 | 2889 | size: "compact" |
| 3473 | 2890 | } |
| 3474 | 2891 | ); |
| 3475 | 2892 | } |
| 3476 | - var redo_default2 = (0, import_element15.forwardRef)(RedoButton); | |
| 2893 | + var redo_default2 = (0, import_element14.forwardRef)(RedoButton); | |
| 3477 | 2894 | |
| 3478 | 2895 | // packages/edit-widgets/build-module/components/header/document-tools/index.mjs |
| 3479 | 2896 | var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1); |
| 3480 | 2897 | function DocumentTools() { |
| @@ -3498,13 +2915,13 @@ | ||
| 3498 | 2915 | listViewToggleRef: getListViewToggleRef2() |
| 3499 | 2916 | }; |
| 3500 | 2917 | }, []); |
| 3501 | 2918 | const { setIsInserterOpened: setIsInserterOpened2, setIsListViewOpened: setIsListViewOpened2 } = (0, import_data18.useDispatch)(store2); |
| 3502 | - const toggleListView = (0, import_element16.useCallback)( | |
| 2919 | + const toggleListView = (0, import_element15.useCallback)( | |
| 3503 | 2920 | () => setIsListViewOpened2(!isListViewOpen), |
| 3504 | 2921 | [setIsListViewOpened2, isListViewOpen] |
| 3505 | 2922 | ); |
| 3506 | - const toggleInserterSidebar = (0, import_element16.useCallback)( | |
| 2923 | + const toggleInserterSidebar = (0, import_element15.useCallback)( | |
| 3507 | 2924 | () => setIsInserterOpened2(!isInserterOpen), |
| 3508 | 2925 | [setIsInserterOpened2, isInserterOpen] |
| 3509 | 2926 | ); |
| 3510 | 2927 | return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)( |
| @@ -3595,9 +3012,9 @@ | ||
| 3595 | 3012 | var save_button_default = SaveButton; |
| 3596 | 3013 | |
| 3597 | 3014 | // packages/edit-widgets/build-module/components/more-menu/index.mjs |
| 3598 | 3015 | var import_components18 = __toESM(require_components(), 1); |
| 3599 | - var import_element18 = __toESM(require_element(), 1); | |
| 3016 | + var import_element17 = __toESM(require_element(), 1); | |
| 3600 | 3017 | var import_i18n15 = __toESM(require_i18n(), 1); |
| 3601 | 3018 | var import_preferences5 = __toESM(require_preferences(), 1); |
| 3602 | 3019 | var import_keycodes5 = __toESM(require_keycodes(), 1); |
| 3603 | 3020 | var import_keyboard_shortcuts5 = __toESM(require_keyboard_shortcuts(), 1); |
| @@ -3669,9 +3086,9 @@ | ||
| 3669 | 3086 | } |
| 3670 | 3087 | ]; |
| 3671 | 3088 | |
| 3672 | 3089 | // packages/edit-widgets/build-module/components/keyboard-shortcut-help-modal/shortcut.mjs |
| 3673 | - var import_element17 = __toESM(require_element(), 1); | |
| 3090 | + var import_element16 = __toESM(require_element(), 1); | |
| 3674 | 3091 | var import_keycodes4 = __toESM(require_keycodes(), 1); |
| 3675 | 3092 | var import_jsx_runtime33 = __toESM(require_jsx_runtime(), 1); |
| 3676 | 3093 | function KeyCombination({ keyCombination, forceAriaLabel }) { |
| 3677 | 3094 | const shortcut = keyCombination.modifier ? import_keycodes4.displayShortcutList[keyCombination.modifier]( |
| @@ -3687,9 +3104,9 @@ | ||
| 3687 | 3104 | className: "edit-widgets-keyboard-shortcut-help-modal__shortcut-key-combination", |
| 3688 | 3105 | "aria-label": forceAriaLabel || ariaLabel, |
| 3689 | 3106 | children: shortcuts.map((character, index) => { |
| 3690 | 3107 | if (character === "+") { |
| 3691 | - return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_element17.Fragment, { children: character }, index); | |
| 3108 | + return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_element16.Fragment, { children: character }, index); | |
| 3692 | 3109 | } |
| 3693 | 3110 | return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)( |
| 3694 | 3111 | "kbd", |
| 3695 | 3112 | { |
| @@ -3906,9 +3323,9 @@ | ||
| 3906 | 3323 | function MoreMenu() { |
| 3907 | 3324 | const [ |
| 3908 | 3325 | isKeyboardShortcutsModalActive, |
| 3909 | 3326 | setIsKeyboardShortcutsModalVisible |
| 3910 | - ] = (0, import_element18.useState)(false); | |
| 3327 | + ] = (0, import_element17.useState)(false); | |
| 3911 | 3328 | const toggleKeyboardShortcutsModal = () => setIsKeyboardShortcutsModalVisible(!isKeyboardShortcutsModalActive); |
| 3912 | 3329 | (0, import_keyboard_shortcuts5.useShortcut)( |
| 3913 | 3330 | "core/edit-widgets/keyboard-shortcuts", |
| 3914 | 3331 | toggleKeyboardShortcutsModal |
| @@ -3973,13 +3390,13 @@ | ||
| 3973 | 3390 | href: (0, import_i18n15.__)( |
| 3974 | 3391 | "https://wordpress.org/documentation/article/block-based-widgets-editor/" |
| 3975 | 3392 | ), |
| 3976 | 3393 | target: "_blank", |
| 3977 | - rel: "noopener", | |
| 3394 | + rel: "noopener noreferrer", | |
| 3978 | 3395 | children: [ |
| 3979 | 3396 | (0, import_i18n15.__)("Help"), |
| 3980 | - /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(VisuallyHidden, { | |
| 3981 | - render: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", {}), | |
| 3397 | + /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_components18.VisuallyHidden, { | |
| 3398 | + as: "span", | |
| 3982 | 3399 | /* translators: accessibility text */ |
| 3983 | 3400 | children: (0, import_i18n15.__)("(opens in a new tab)") |
| 3984 | 3401 | }) |
| 3985 | 3402 | ] |
| @@ -4057,9 +3474,9 @@ | ||
| 4057 | 3474 | // packages/edit-widgets/build-module/components/header/index.mjs |
| 4058 | 3475 | var import_jsx_runtime38 = __toESM(require_jsx_runtime(), 1); |
| 4059 | 3476 | function Header() { |
| 4060 | 3477 | const isLargeViewport = (0, import_compose8.useViewportMatch)("medium"); |
| 4061 | - const blockToolbarRef = (0, import_element19.useRef)(); | |
| 3478 | + const blockToolbarRef = (0, import_element18.useRef)(); | |
| 4062 | 3479 | const { hasFixedToolbar } = (0, import_data22.useSelect)( |
| 4063 | 3480 | (select) => ({ |
| 4064 | 3481 | hasFixedToolbar: !!select(import_preferences6.store).get( |
| 4065 | 3482 | "core/edit-widgets", |
| @@ -4071,12 +3488,12 @@ | ||
| 4071 | 3488 | return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_jsx_runtime38.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "edit-widgets-header", children: [ |
| 4072 | 3489 | /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "edit-widgets-header__navigable-toolbar-wrapper", children: [ |
| 4073 | 3490 | isLargeViewport && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h1", { className: "edit-widgets-header__title", children: (0, import_i18n16.__)("Widgets") }), |
| 4074 | 3491 | !isLargeViewport && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)( |
| 4075 | - VisuallyHidden, | |
| 3492 | + import_components19.VisuallyHidden, | |
| 4076 | 3493 | { |
| 3494 | + as: "h1", | |
| 4077 | 3495 | className: "edit-widgets-header__title", |
| 4078 | - render: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h1", {}), | |
| 4079 | 3496 | children: (0, import_i18n16.__)("Widgets") |
| 4080 | 3497 | } |
| 4081 | 3498 | ), |
| 4082 | 3499 | /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(document_tools_default, {}), |
| @@ -4103,21 +3520,19 @@ | ||
| 4103 | 3520 | // packages/edit-widgets/build-module/components/widget-areas-block-editor-content/index.mjs |
| 4104 | 3521 | var import_block_editor13 = __toESM(require_block_editor(), 1); |
| 4105 | 3522 | var import_compose9 = __toESM(require_compose(), 1); |
| 4106 | 3523 | var import_data23 = __toESM(require_data(), 1); |
| 4107 | - var import_element20 = __toESM(require_element(), 1); | |
| 3524 | + var import_element19 = __toESM(require_element(), 1); | |
| 4108 | 3525 | var import_preferences7 = __toESM(require_preferences(), 1); |
| 4109 | 3526 | |
| 4110 | 3527 | // packages/edit-widgets/build-module/components/notices/index.mjs |
| 4111 | 3528 | var import_notices2 = __toESM(require_notices(), 1); |
| 4112 | - var import_theme = __toESM(require_theme(), 1); | |
| 4113 | 3529 | var import_jsx_runtime39 = __toESM(require_jsx_runtime(), 1); |
| 4114 | 3530 | function Notices() { |
| 4115 | - return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_theme.ThemeProvider, { cornerRadius: "none", children: [ | |
| 3531 | + return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [ | |
| 4116 | 3532 | /* @__PURE__ */ (0, import_jsx_runtime39.jsx)( |
| 4117 | 3533 | import_notices2.InlineNotices, |
| 4118 | 3534 | { |
| 4119 | - className: "edit-widgets-notices", | |
| 4120 | 3535 | pinnedNoticesClassName: "edit-widgets-notices__pinned", |
| 4121 | 3536 | dismissibleNoticesClassName: "edit-widgets-notices__dismissible" |
| 4122 | 3537 | } |
| 4123 | 3538 | ), |
| @@ -4138,9 +3553,9 @@ | ||
| 4138 | 3553 | ), |
| 4139 | 3554 | [] |
| 4140 | 3555 | ); |
| 4141 | 3556 | const isLargeViewport = (0, import_compose9.useViewportMatch)("medium"); |
| 4142 | - const styles = (0, import_element20.useMemo)(() => { | |
| 3557 | + const styles = (0, import_element19.useMemo)(() => { | |
| 4143 | 3558 | return hasThemeStyles ? blockEditorSettings.styles : []; |
| 4144 | 3559 | }, [blockEditorSettings, hasThemeStyles]); |
| 4145 | 3560 | return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "edit-widgets-block-editor", children: [ |
| 4146 | 3561 | /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(notices_default, {}), |
| @@ -4164,9 +3579,9 @@ | ||
| 4164 | 3579 | |
| 4165 | 3580 | // packages/edit-widgets/build-module/components/secondary-sidebar/inserter-sidebar.mjs |
| 4166 | 3581 | var import_block_editor15 = __toESM(require_block_editor(), 1); |
| 4167 | 3582 | var import_compose10 = __toESM(require_compose(), 1); |
| 4168 | - var import_element21 = __toESM(require_element(), 1); | |
| 3583 | + var import_element20 = __toESM(require_element(), 1); | |
| 4169 | 3584 | var import_data25 = __toESM(require_data(), 1); |
| 4170 | 3585 | |
| 4171 | 3586 | // packages/edit-widgets/build-module/hooks/use-widget-library-insertion-point.mjs |
| 4172 | 3587 | var import_data24 = __toESM(require_data(), 1); |
| @@ -4217,12 +3632,12 @@ | ||
| 4217 | 3632 | function InserterSidebar() { |
| 4218 | 3633 | const isMobileViewport = (0, import_compose10.useViewportMatch)("medium", "<"); |
| 4219 | 3634 | const { rootClientId, insertionIndex } = use_widget_library_insertion_point_default(); |
| 4220 | 3635 | const { setIsInserterOpened: setIsInserterOpened2 } = (0, import_data25.useDispatch)(store2); |
| 4221 | - const closeInserter = (0, import_element21.useCallback)(() => { | |
| 3636 | + const closeInserter = (0, import_element20.useCallback)(() => { | |
| 4222 | 3637 | return setIsInserterOpened2(false); |
| 4223 | 3638 | }, [setIsInserterOpened2]); |
| 4224 | - const libraryRef = (0, import_element21.useRef)(); | |
| 3639 | + const libraryRef = (0, import_element20.useRef)(); | |
| 4225 | 3640 | return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "edit-widgets-layout__inserter-panel", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "edit-widgets-layout__inserter-panel-content", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)( |
| 4226 | 3641 | import_block_editor15.__experimentalLibrary, |
| 4227 | 3642 | { |
| 4228 | 3643 | showInserterHelpPanel: true, |
| @@ -4239,9 +3654,9 @@ | ||
| 4239 | 3654 | var import_block_editor16 = __toESM(require_block_editor(), 1); |
| 4240 | 3655 | var import_components20 = __toESM(require_components(), 1); |
| 4241 | 3656 | var import_compose11 = __toESM(require_compose(), 1); |
| 4242 | 3657 | var import_data26 = __toESM(require_data(), 1); |
| 4243 | - var import_element22 = __toESM(require_element(), 1); | |
| 3658 | + var import_element21 = __toESM(require_element(), 1); | |
| 4244 | 3659 | var import_i18n17 = __toESM(require_i18n(), 1); |
| 4245 | 3660 | var import_keycodes6 = __toESM(require_keycodes(), 1); |
| 4246 | 3661 | var import_jsx_runtime42 = __toESM(require_jsx_runtime(), 1); |
| 4247 | 3662 | function ListViewSidebar() { |
| @@ -4246,15 +3661,15 @@ | ||
| 4246 | 3661 | var import_jsx_runtime42 = __toESM(require_jsx_runtime(), 1); |
| 4247 | 3662 | function ListViewSidebar() { |
| 4248 | 3663 | const { setIsListViewOpened: setIsListViewOpened2 } = (0, import_data26.useDispatch)(store2); |
| 4249 | 3664 | const { getListViewToggleRef: getListViewToggleRef2 } = unlock((0, import_data26.useSelect)(store2)); |
| 4250 | - const [dropZoneElement, setDropZoneElement] = (0, import_element22.useState)(null); | |
| 3665 | + const [dropZoneElement, setDropZoneElement] = (0, import_element21.useState)(null); | |
| 4251 | 3666 | const focusOnMountRef = (0, import_compose11.useFocusOnMount)("firstElement"); |
| 4252 | - const closeListView = (0, import_element22.useCallback)(() => { | |
| 3667 | + const closeListView = (0, import_element21.useCallback)(() => { | |
| 4253 | 3668 | setIsListViewOpened2(false); |
| 4254 | 3669 | getListViewToggleRef2().current?.focus(); |
| 4255 | 3670 | }, [getListViewToggleRef2, setIsListViewOpened2]); |
| 4256 | - const closeOnEscape = (0, import_element22.useCallback)( | |
| 3671 | + const closeOnEscape = (0, import_element21.useCallback)( | |
| 4257 | 3672 | (event) => { |
| 4258 | 3673 | if (event.keyCode === import_keycodes6.ESCAPE && !event.defaultPrevented) { |
| 4259 | 3674 | event.preventDefault(); |
| 4260 | 3675 | closeListView(); |
| @@ -4349,15 +3764,15 @@ | ||
| 4349 | 3764 | ) |
| 4350 | 3765 | }), |
| 4351 | 3766 | [] |
| 4352 | 3767 | ); |
| 4353 | - (0, import_element23.useEffect)(() => { | |
| 3768 | + (0, import_element22.useEffect)(() => { | |
| 4354 | 3769 | if (hasSidebarEnabled && !isHugeViewport) { |
| 4355 | 3770 | setIsInserterOpened2(false); |
| 4356 | 3771 | setIsListViewOpened2(false); |
| 4357 | 3772 | } |
| 4358 | 3773 | }, [hasSidebarEnabled, isHugeViewport]); |
| 4359 | - (0, import_element23.useEffect)(() => { | |
| 3774 | + (0, import_element22.useEffect)(() => { | |
| 4360 | 3775 | if ((isInserterOpened2 || isListViewOpened2) && !isHugeViewport) { |
| 4361 | 3776 | closeGeneralSidebar2(); |
| 4362 | 3777 | } |
| 4363 | 3778 | }, [isInserterOpened2, isListViewOpened2, isHugeViewport]); |
| @@ -4386,9 +3801,9 @@ | ||
| 4386 | 3801 | var interface_default = Interface; |
| 4387 | 3802 | |
| 4388 | 3803 | // packages/edit-widgets/build-module/components/layout/unsaved-changes-warning.mjs |
| 4389 | 3804 | var import_i18n19 = __toESM(require_i18n(), 1); |
| 4390 | - var import_element24 = __toESM(require_element(), 1); | |
| 3805 | + var import_element23 = __toESM(require_element(), 1); | |
| 4391 | 3806 | var import_data29 = __toESM(require_data(), 1); |
| 4392 | 3807 | function UnsavedChangesWarning() { |
| 4393 | 3808 | const isDirty = (0, import_data29.useSelect)((select) => { |
| 4394 | 3809 | const { getEditedWidgetAreas: getEditedWidgetAreas2 } = select(store2); |
| @@ -4394,9 +3809,9 @@ | ||
| 4394 | 3809 | const { getEditedWidgetAreas: getEditedWidgetAreas2 } = select(store2); |
| 4395 | 3810 | const editedWidgetAreas = getEditedWidgetAreas2(); |
| 4396 | 3811 | return editedWidgetAreas?.length > 0; |
| 4397 | 3812 | }, []); |
| 4398 | - (0, import_element24.useEffect)(() => { | |
| 3813 | + (0, import_element23.useEffect)(() => { | |
| 4399 | 3814 | const warnIfUnsavedChanges = (event) => { |
| 4400 | 3815 | if (isDirty) { |
| 4401 | 3816 | event.returnValue = (0, import_i18n19.__)( |
| 4402 | 3817 | "You have unsaved changes. If you proceed, they will be lost." |
| @@ -4415,9 +3830,9 @@ | ||
| 4415 | 3830 | // packages/edit-widgets/build-module/components/welcome-guide/index.mjs |
| 4416 | 3831 | var import_data30 = __toESM(require_data(), 1); |
| 4417 | 3832 | var import_components21 = __toESM(require_components(), 1); |
| 4418 | 3833 | var import_i18n20 = __toESM(require_i18n(), 1); |
| 4419 | - var import_element25 = __toESM(require_element(), 1); | |
| 3834 | + var import_element24 = __toESM(require_element(), 1); | |
| 4420 | 3835 | var import_preferences9 = __toESM(require_preferences(), 1); |
| 4421 | 3836 | var import_jsx_runtime45 = __toESM(require_jsx_runtime(), 1); |
| 4422 | 3837 | function WelcomeGuide() { |
| 4423 | 3838 | const isActive = (0, import_data30.useSelect)( |
| @@ -4517,9 +3932,9 @@ | ||
| 4517 | 3932 | } |
| 4518 | 3933 | ), |
| 4519 | 3934 | content: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [ |
| 4520 | 3935 | /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("h1", { className: "edit-widgets-welcome-guide__heading", children: (0, import_i18n20.__)("Explore all blocks") }), |
| 4521 | - /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "edit-widgets-welcome-guide__text", children: (0, import_element25.createInterpolateElement)( | |
| 3936 | + /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "edit-widgets-welcome-guide__text", children: (0, import_element24.createInterpolateElement)( | |
| 4522 | 3937 | (0, import_i18n20.__)( |
| 4523 | 3938 | "All of the blocks available to you live in the block library. You\u2019ll find it wherever you see the <InserterIconImage /> icon." |
| 4524 | 3939 | ), |
| 4525 | 3940 | { |
| @@ -4544,9 +3959,9 @@ | ||
| 4544 | 3959 | } |
| 4545 | 3960 | ), |
| 4546 | 3961 | content: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [ |
| 4547 | 3962 | /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("h1", { className: "edit-widgets-welcome-guide__heading", children: (0, import_i18n20.__)("Learn more") }), |
| 4548 | - /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "edit-widgets-welcome-guide__text", children: (0, import_element25.createInterpolateElement)( | |
| 3963 | + /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("p", { className: "edit-widgets-welcome-guide__text", children: (0, import_element24.createInterpolateElement)( | |
| 4549 | 3964 | (0, import_i18n20.__)( |
| 4550 | 3965 | "New to the block editor? Want to learn more about using it? <a>Here's a detailed guide.</a>" |
| 4551 | 3966 | ), |
| 4552 | 3967 | { |
| @@ -4628,9 +4043,9 @@ | ||
| 4628 | 4043 | ...ALLOW_REUSABLE_BLOCKS ? [] : ["core/block"] |
| 4629 | 4044 | ]; |
| 4630 | 4045 | function initializeEditor(id, settings2) { |
| 4631 | 4046 | const target = document.getElementById(id); |
| 4632 | - const root = (0, import_element26.createRoot)(target); | |
| 4047 | + const root = (0, import_element25.createRoot)(target); | |
| 4633 | 4048 | const coreBlocks = (0, import_block_library2.__experimentalGetCoreBlocks)().filter((block) => { |
| 4634 | 4049 | return !(disabledBlocks.includes(block.name) || block.name.startsWith("core/post") || block.name.startsWith("core/query") || block.name.startsWith("core/site") || block.name.startsWith("core/navigation") || block.name.startsWith("core/term")); |
| 4635 | 4050 | }); |
| 4636 | 4051 | (0, import_data32.dispatch)(import_preferences10.store).setDefaults("core/edit-widgets", { |
| @@ -4652,9 +4067,9 @@ | ||
| 4652 | 4067 | (0, import_widgets5.registerWidgetGroupBlock)(); |
| 4653 | 4068 | settings2.__experimentalFetchLinkSuggestions = (search, searchOptions) => (0, import_core_data12.__experimentalFetchLinkSuggestions)(search, searchOptions, settings2); |
| 4654 | 4069 | (0, import_blocks3.setFreeformContentHandlerName)("core/html"); |
| 4655 | 4070 | root.render( |
| 4656 | - /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_element26.StrictMode, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(layout_default, { blockEditorSettings: settings2 }) }) | |
| 4071 | + /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_element25.StrictMode, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(layout_default, { blockEditorSettings: settings2 }) }) | |
| 4657 | 4072 | ); |
| 4658 | 4073 | return root; |
| 4659 | 4074 | } |
| 4660 | 4075 | var initialize = initializeEditor; |