From fa9a33d818470a5796f0ff8797f98b510ed8de18 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 09:57:30 +0200 Subject: Merging upstream version 6.5+dfsg1. Signed-off-by: Daniel Baumann --- wp-includes/js/dist/block-library.js | 13959 ++++++++++++++++++++------------- 1 file changed, 8451 insertions(+), 5508 deletions(-) (limited to 'wp-includes/js/dist/block-library.js') diff --git a/wp-includes/js/dist/block-library.js b/wp-includes/js/dist/block-library.js index 7a456aa..a83fe84 100644 --- a/wp-includes/js/dist/block-library.js +++ b/wp-includes/js/dist/block-library.js @@ -1,8 +1,8 @@ -/******/ (function() { // webpackBootstrap +/******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ -/***/ 7078: -/***/ (function(module) { +/***/ 2321: +/***/ ((module) => { /** * Checks if the block is experimental based on the metadata loaded @@ -23,8 +23,8 @@ module.exports = function isBlockMetadataExperimental(metadata) { /***/ }), -/***/ 3827: -/***/ (function(module, exports) { +/***/ 1668: +/***/ ((module, exports) => { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! Copyright (c) 2018 Jed Watson. @@ -144,8 +144,8 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), -/***/ 4403: -/***/ (function(module, exports) { +/***/ 5755: +/***/ ((module, exports) => { var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! Copyright (c) 2018 Jed Watson. @@ -210,8 +210,8 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*! /***/ }), -/***/ 5619: -/***/ (function(module) { +/***/ 7734: +/***/ ((module) => { "use strict"; @@ -290,8 +290,8 @@ module.exports = function equal(a, b) { /***/ }), -/***/ 4793: -/***/ (function(module) { +/***/ 9681: +/***/ ((module) => { var characterMap = { "À": "A", @@ -806,1049 +806,1091 @@ module.exports.remove = removeAccents; /******/ /************************************************************************/ /******/ /* webpack/runtime/compat get default export */ -/******/ !function() { +/******/ (() => { /******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { +/******/ __webpack_require__.n = (module) => { /******/ var getter = module && module.__esModule ? -/******/ function() { return module['default']; } : -/******/ function() { return module; }; +/******/ () => (module['default']) : +/******/ () => (module); /******/ __webpack_require__.d(getter, { a: getter }); /******/ return getter; /******/ }; -/******/ }(); +/******/ })(); /******/ /******/ /* webpack/runtime/define property getters */ -/******/ !function() { +/******/ (() => { /******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = function(exports, definition) { +/******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; -/******/ }(); +/******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ !function() { -/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } -/******/ }(); +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); /******/ /******/ /* webpack/runtime/make namespace object */ -/******/ !function() { +/******/ (() => { /******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { +/******/ __webpack_require__.r = (exports) => { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; -/******/ }(); +/******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; // This entry need to be wrapped in an IIFE because it need to be in strict mode. -!function() { +(() => { "use strict"; // ESM COMPAT FLAG __webpack_require__.r(__webpack_exports__); // EXPORTS __webpack_require__.d(__webpack_exports__, { - __experimentalGetCoreBlocks: function() { return /* binding */ __experimentalGetCoreBlocks; }, - __experimentalRegisterExperimentalCoreBlocks: function() { return /* binding */ __experimentalRegisterExperimentalCoreBlocks; }, - registerCoreBlocks: function() { return /* binding */ registerCoreBlocks; } + __experimentalGetCoreBlocks: () => (/* binding */ __experimentalGetCoreBlocks), + __experimentalRegisterExperimentalCoreBlocks: () => (/* binding */ __experimentalRegisterExperimentalCoreBlocks), + registerCoreBlocks: () => (/* binding */ registerCoreBlocks) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/archives/index.js var archives_namespaceObject = {}; __webpack_require__.r(archives_namespaceObject); __webpack_require__.d(archives_namespaceObject, { - init: function() { return init; }, - metadata: function() { return metadata; }, - name: function() { return archives_name; }, - settings: function() { return settings; } + init: () => (init), + metadata: () => (metadata), + name: () => (archives_name), + settings: () => (settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/avatar/index.js var avatar_namespaceObject = {}; __webpack_require__.r(avatar_namespaceObject); __webpack_require__.d(avatar_namespaceObject, { - init: function() { return avatar_init; }, - metadata: function() { return avatar_metadata; }, - name: function() { return avatar_name; }, - settings: function() { return avatar_settings; } + init: () => (avatar_init), + metadata: () => (avatar_metadata), + name: () => (avatar_name), + settings: () => (avatar_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/audio/index.js var build_module_audio_namespaceObject = {}; __webpack_require__.r(build_module_audio_namespaceObject); __webpack_require__.d(build_module_audio_namespaceObject, { - init: function() { return audio_init; }, - metadata: function() { return audio_metadata; }, - name: function() { return audio_name; }, - settings: function() { return audio_settings; } + init: () => (audio_init), + metadata: () => (audio_metadata), + name: () => (audio_name), + settings: () => (audio_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/button/index.js var build_module_button_namespaceObject = {}; __webpack_require__.r(build_module_button_namespaceObject); __webpack_require__.d(build_module_button_namespaceObject, { - init: function() { return button_init; }, - metadata: function() { return button_metadata; }, - name: function() { return button_name; }, - settings: function() { return button_settings; } + init: () => (button_init), + metadata: () => (button_metadata), + name: () => (button_name), + settings: () => (button_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/buttons/index.js var build_module_buttons_namespaceObject = {}; __webpack_require__.r(build_module_buttons_namespaceObject); __webpack_require__.d(build_module_buttons_namespaceObject, { - init: function() { return buttons_init; }, - metadata: function() { return buttons_metadata; }, - name: function() { return buttons_name; }, - settings: function() { return buttons_settings; } + init: () => (buttons_init), + metadata: () => (buttons_metadata), + name: () => (buttons_name), + settings: () => (buttons_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/calendar/index.js var build_module_calendar_namespaceObject = {}; __webpack_require__.r(build_module_calendar_namespaceObject); __webpack_require__.d(build_module_calendar_namespaceObject, { - init: function() { return calendar_init; }, - metadata: function() { return calendar_metadata; }, - name: function() { return calendar_name; }, - settings: function() { return calendar_settings; } + init: () => (calendar_init), + metadata: () => (calendar_metadata), + name: () => (calendar_name), + settings: () => (calendar_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/categories/index.js var categories_namespaceObject = {}; __webpack_require__.r(categories_namespaceObject); __webpack_require__.d(categories_namespaceObject, { - init: function() { return categories_init; }, - metadata: function() { return categories_metadata; }, - name: function() { return categories_name; }, - settings: function() { return categories_settings; } + init: () => (categories_init), + metadata: () => (categories_metadata), + name: () => (categories_name), + settings: () => (categories_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/freeform/index.js var freeform_namespaceObject = {}; __webpack_require__.r(freeform_namespaceObject); __webpack_require__.d(freeform_namespaceObject, { - init: function() { return freeform_init; }, - metadata: function() { return freeform_metadata; }, - name: function() { return freeform_name; }, - settings: function() { return freeform_settings; } + init: () => (freeform_init), + metadata: () => (freeform_metadata), + name: () => (freeform_name), + settings: () => (freeform_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/code/index.js var build_module_code_namespaceObject = {}; __webpack_require__.r(build_module_code_namespaceObject); __webpack_require__.d(build_module_code_namespaceObject, { - init: function() { return code_init; }, - metadata: function() { return code_metadata; }, - name: function() { return code_name; }, - settings: function() { return code_settings; } + init: () => (code_init), + metadata: () => (code_metadata), + name: () => (code_name), + settings: () => (code_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/column/index.js var build_module_column_namespaceObject = {}; __webpack_require__.r(build_module_column_namespaceObject); __webpack_require__.d(build_module_column_namespaceObject, { - init: function() { return column_init; }, - metadata: function() { return column_metadata; }, - name: function() { return column_name; }, - settings: function() { return column_settings; } + init: () => (column_init), + metadata: () => (column_metadata), + name: () => (column_name), + settings: () => (column_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/columns/index.js var build_module_columns_namespaceObject = {}; __webpack_require__.r(build_module_columns_namespaceObject); __webpack_require__.d(build_module_columns_namespaceObject, { - init: function() { return columns_init; }, - metadata: function() { return columns_metadata; }, - name: function() { return columns_name; }, - settings: function() { return columns_settings; } + init: () => (columns_init), + metadata: () => (columns_metadata), + name: () => (columns_name), + settings: () => (columns_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/comments/index.js var comments_namespaceObject = {}; __webpack_require__.r(comments_namespaceObject); __webpack_require__.d(comments_namespaceObject, { - init: function() { return comments_init; }, - metadata: function() { return comments_metadata; }, - name: function() { return comments_name; }, - settings: function() { return comments_settings; } + init: () => (comments_init), + metadata: () => (comments_metadata), + name: () => (comments_name), + settings: () => (comments_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/comment-author-avatar/index.js var build_module_comment_author_avatar_namespaceObject = {}; __webpack_require__.r(build_module_comment_author_avatar_namespaceObject); __webpack_require__.d(build_module_comment_author_avatar_namespaceObject, { - init: function() { return comment_author_avatar_init; }, - metadata: function() { return comment_author_avatar_metadata; }, - name: function() { return comment_author_avatar_name; }, - settings: function() { return comment_author_avatar_settings; } + init: () => (comment_author_avatar_init), + metadata: () => (comment_author_avatar_metadata), + name: () => (comment_author_avatar_name), + settings: () => (comment_author_avatar_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/comment-author-name/index.js var build_module_comment_author_name_namespaceObject = {}; __webpack_require__.r(build_module_comment_author_name_namespaceObject); __webpack_require__.d(build_module_comment_author_name_namespaceObject, { - init: function() { return comment_author_name_init; }, - metadata: function() { return comment_author_name_metadata; }, - name: function() { return comment_author_name_name; }, - settings: function() { return comment_author_name_settings; } + init: () => (comment_author_name_init), + metadata: () => (comment_author_name_metadata), + name: () => (comment_author_name_name), + settings: () => (comment_author_name_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/comment-content/index.js var build_module_comment_content_namespaceObject = {}; __webpack_require__.r(build_module_comment_content_namespaceObject); __webpack_require__.d(build_module_comment_content_namespaceObject, { - init: function() { return comment_content_init; }, - metadata: function() { return comment_content_metadata; }, - name: function() { return comment_content_name; }, - settings: function() { return comment_content_settings; } + init: () => (comment_content_init), + metadata: () => (comment_content_metadata), + name: () => (comment_content_name), + settings: () => (comment_content_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/comment-date/index.js var comment_date_namespaceObject = {}; __webpack_require__.r(comment_date_namespaceObject); __webpack_require__.d(comment_date_namespaceObject, { - init: function() { return comment_date_init; }, - metadata: function() { return comment_date_metadata; }, - name: function() { return comment_date_name; }, - settings: function() { return comment_date_settings; } + init: () => (comment_date_init), + metadata: () => (comment_date_metadata), + name: () => (comment_date_name), + settings: () => (comment_date_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/comment-edit-link/index.js var build_module_comment_edit_link_namespaceObject = {}; __webpack_require__.r(build_module_comment_edit_link_namespaceObject); __webpack_require__.d(build_module_comment_edit_link_namespaceObject, { - init: function() { return comment_edit_link_init; }, - metadata: function() { return comment_edit_link_metadata; }, - name: function() { return comment_edit_link_name; }, - settings: function() { return comment_edit_link_settings; } + init: () => (comment_edit_link_init), + metadata: () => (comment_edit_link_metadata), + name: () => (comment_edit_link_name), + settings: () => (comment_edit_link_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/comment-reply-link/index.js var build_module_comment_reply_link_namespaceObject = {}; __webpack_require__.r(build_module_comment_reply_link_namespaceObject); __webpack_require__.d(build_module_comment_reply_link_namespaceObject, { - init: function() { return comment_reply_link_init; }, - metadata: function() { return comment_reply_link_metadata; }, - name: function() { return comment_reply_link_name; }, - settings: function() { return comment_reply_link_settings; } + init: () => (comment_reply_link_init), + metadata: () => (comment_reply_link_metadata), + name: () => (comment_reply_link_name), + settings: () => (comment_reply_link_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/comment-template/index.js var comment_template_namespaceObject = {}; __webpack_require__.r(comment_template_namespaceObject); __webpack_require__.d(comment_template_namespaceObject, { - init: function() { return comment_template_init; }, - metadata: function() { return comment_template_metadata; }, - name: function() { return comment_template_name; }, - settings: function() { return comment_template_settings; } + init: () => (comment_template_init), + metadata: () => (comment_template_metadata), + name: () => (comment_template_name), + settings: () => (comment_template_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/comments-pagination-previous/index.js var comments_pagination_previous_namespaceObject = {}; __webpack_require__.r(comments_pagination_previous_namespaceObject); __webpack_require__.d(comments_pagination_previous_namespaceObject, { - init: function() { return comments_pagination_previous_init; }, - metadata: function() { return comments_pagination_previous_metadata; }, - name: function() { return comments_pagination_previous_name; }, - settings: function() { return comments_pagination_previous_settings; } + init: () => (comments_pagination_previous_init), + metadata: () => (comments_pagination_previous_metadata), + name: () => (comments_pagination_previous_name), + settings: () => (comments_pagination_previous_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/comments-pagination/index.js var comments_pagination_namespaceObject = {}; __webpack_require__.r(comments_pagination_namespaceObject); __webpack_require__.d(comments_pagination_namespaceObject, { - init: function() { return comments_pagination_init; }, - metadata: function() { return comments_pagination_metadata; }, - name: function() { return comments_pagination_name; }, - settings: function() { return comments_pagination_settings; } + init: () => (comments_pagination_init), + metadata: () => (comments_pagination_metadata), + name: () => (comments_pagination_name), + settings: () => (comments_pagination_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/comments-pagination-next/index.js var comments_pagination_next_namespaceObject = {}; __webpack_require__.r(comments_pagination_next_namespaceObject); __webpack_require__.d(comments_pagination_next_namespaceObject, { - init: function() { return comments_pagination_next_init; }, - metadata: function() { return comments_pagination_next_metadata; }, - name: function() { return comments_pagination_next_name; }, - settings: function() { return comments_pagination_next_settings; } + init: () => (comments_pagination_next_init), + metadata: () => (comments_pagination_next_metadata), + name: () => (comments_pagination_next_name), + settings: () => (comments_pagination_next_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/comments-pagination-numbers/index.js var comments_pagination_numbers_namespaceObject = {}; __webpack_require__.r(comments_pagination_numbers_namespaceObject); __webpack_require__.d(comments_pagination_numbers_namespaceObject, { - init: function() { return comments_pagination_numbers_init; }, - metadata: function() { return comments_pagination_numbers_metadata; }, - name: function() { return comments_pagination_numbers_name; }, - settings: function() { return comments_pagination_numbers_settings; } + init: () => (comments_pagination_numbers_init), + metadata: () => (comments_pagination_numbers_metadata), + name: () => (comments_pagination_numbers_name), + settings: () => (comments_pagination_numbers_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/comments-title/index.js var comments_title_namespaceObject = {}; __webpack_require__.r(comments_title_namespaceObject); __webpack_require__.d(comments_title_namespaceObject, { - init: function() { return comments_title_init; }, - metadata: function() { return comments_title_metadata; }, - name: function() { return comments_title_name; }, - settings: function() { return comments_title_settings; } + init: () => (comments_title_init), + metadata: () => (comments_title_metadata), + name: () => (comments_title_name), + settings: () => (comments_title_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/cover/index.js var build_module_cover_namespaceObject = {}; __webpack_require__.r(build_module_cover_namespaceObject); __webpack_require__.d(build_module_cover_namespaceObject, { - init: function() { return cover_init; }, - metadata: function() { return cover_metadata; }, - name: function() { return cover_name; }, - settings: function() { return cover_settings; } + init: () => (cover_init), + metadata: () => (cover_metadata), + name: () => (cover_name), + settings: () => (cover_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/details/index.js var build_module_details_namespaceObject = {}; __webpack_require__.r(build_module_details_namespaceObject); __webpack_require__.d(build_module_details_namespaceObject, { - init: function() { return details_init; }, - metadata: function() { return details_metadata; }, - name: function() { return details_name; }, - settings: function() { return details_settings; } + init: () => (details_init), + metadata: () => (details_metadata), + name: () => (details_name), + settings: () => (details_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/embed/index.js var embed_namespaceObject = {}; __webpack_require__.r(embed_namespaceObject); __webpack_require__.d(embed_namespaceObject, { - init: function() { return embed_init; }, - metadata: function() { return embed_metadata; }, - name: function() { return embed_name; }, - settings: function() { return embed_settings; } + init: () => (embed_init), + metadata: () => (embed_metadata), + name: () => (embed_name), + settings: () => (embed_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/file/index.js var build_module_file_namespaceObject = {}; __webpack_require__.r(build_module_file_namespaceObject); __webpack_require__.d(build_module_file_namespaceObject, { - init: function() { return file_init; }, - metadata: function() { return file_metadata; }, - name: function() { return file_name; }, - settings: function() { return file_settings; } + init: () => (file_init), + metadata: () => (file_metadata), + name: () => (file_name), + settings: () => (file_settings) +}); + +// NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/form/index.js +var build_module_form_namespaceObject = {}; +__webpack_require__.r(build_module_form_namespaceObject); +__webpack_require__.d(build_module_form_namespaceObject, { + init: () => (form_init), + metadata: () => (form_metadata), + name: () => (form_name), + settings: () => (form_settings) +}); + +// NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/form-input/index.js +var form_input_namespaceObject = {}; +__webpack_require__.r(form_input_namespaceObject); +__webpack_require__.d(form_input_namespaceObject, { + init: () => (form_input_init), + metadata: () => (form_input_metadata), + name: () => (form_input_name), + settings: () => (form_input_settings) +}); + +// NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/form-submit-button/index.js +var form_submit_button_namespaceObject = {}; +__webpack_require__.r(form_submit_button_namespaceObject); +__webpack_require__.d(form_submit_button_namespaceObject, { + init: () => (form_submit_button_init), + metadata: () => (form_submit_button_metadata), + name: () => (form_submit_button_name), + settings: () => (form_submit_button_settings) +}); + +// NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/form-submission-notification/index.js +var form_submission_notification_namespaceObject = {}; +__webpack_require__.r(form_submission_notification_namespaceObject); +__webpack_require__.d(form_submission_notification_namespaceObject, { + init: () => (form_submission_notification_init), + metadata: () => (form_submission_notification_metadata), + name: () => (form_submission_notification_name), + settings: () => (form_submission_notification_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/gallery/index.js var build_module_gallery_namespaceObject = {}; __webpack_require__.r(build_module_gallery_namespaceObject); __webpack_require__.d(build_module_gallery_namespaceObject, { - init: function() { return gallery_init; }, - metadata: function() { return gallery_metadata; }, - name: function() { return gallery_name; }, - settings: function() { return gallery_settings; } + init: () => (gallery_init), + metadata: () => (gallery_metadata), + name: () => (gallery_name), + settings: () => (gallery_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/group/index.js var build_module_group_namespaceObject = {}; __webpack_require__.r(build_module_group_namespaceObject); __webpack_require__.d(build_module_group_namespaceObject, { - init: function() { return group_init; }, - metadata: function() { return group_metadata; }, - name: function() { return group_name; }, - settings: function() { return group_settings; } + init: () => (group_init), + metadata: () => (group_metadata), + name: () => (group_name), + settings: () => (group_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/heading/index.js var build_module_heading_namespaceObject = {}; __webpack_require__.r(build_module_heading_namespaceObject); __webpack_require__.d(build_module_heading_namespaceObject, { - init: function() { return heading_init; }, - metadata: function() { return heading_metadata; }, - name: function() { return heading_name; }, - settings: function() { return heading_settings; } + init: () => (heading_init), + metadata: () => (heading_metadata), + name: () => (heading_name), + settings: () => (heading_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/home-link/index.js var home_link_namespaceObject = {}; __webpack_require__.r(home_link_namespaceObject); __webpack_require__.d(home_link_namespaceObject, { - init: function() { return home_link_init; }, - metadata: function() { return home_link_metadata; }, - name: function() { return home_link_name; }, - settings: function() { return home_link_settings; } + init: () => (home_link_init), + metadata: () => (home_link_metadata), + name: () => (home_link_name), + settings: () => (home_link_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/html/index.js var build_module_html_namespaceObject = {}; __webpack_require__.r(build_module_html_namespaceObject); __webpack_require__.d(build_module_html_namespaceObject, { - init: function() { return html_init; }, - metadata: function() { return html_metadata; }, - name: function() { return html_name; }, - settings: function() { return html_settings; } + init: () => (html_init), + metadata: () => (html_metadata), + name: () => (html_name), + settings: () => (html_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/image/index.js var build_module_image_namespaceObject = {}; __webpack_require__.r(build_module_image_namespaceObject); __webpack_require__.d(build_module_image_namespaceObject, { - init: function() { return image_init; }, - metadata: function() { return image_metadata; }, - name: function() { return image_name; }, - settings: function() { return image_settings; } + init: () => (image_init), + metadata: () => (image_metadata), + name: () => (image_name), + settings: () => (image_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/latest-comments/index.js var latest_comments_namespaceObject = {}; __webpack_require__.r(latest_comments_namespaceObject); __webpack_require__.d(latest_comments_namespaceObject, { - init: function() { return latest_comments_init; }, - metadata: function() { return latest_comments_metadata; }, - name: function() { return latest_comments_name; }, - settings: function() { return latest_comments_settings; } + init: () => (latest_comments_init), + metadata: () => (latest_comments_metadata), + name: () => (latest_comments_name), + settings: () => (latest_comments_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/latest-posts/index.js var latest_posts_namespaceObject = {}; __webpack_require__.r(latest_posts_namespaceObject); __webpack_require__.d(latest_posts_namespaceObject, { - init: function() { return latest_posts_init; }, - metadata: function() { return latest_posts_metadata; }, - name: function() { return latest_posts_name; }, - settings: function() { return latest_posts_settings; } + init: () => (latest_posts_init), + metadata: () => (latest_posts_metadata), + name: () => (latest_posts_name), + settings: () => (latest_posts_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/list/index.js var build_module_list_namespaceObject = {}; __webpack_require__.r(build_module_list_namespaceObject); __webpack_require__.d(build_module_list_namespaceObject, { - init: function() { return list_init; }, - metadata: function() { return list_metadata; }, - name: function() { return list_name; }, - settings: function() { return list_settings; } + init: () => (list_init), + metadata: () => (list_metadata), + name: () => (list_name), + settings: () => (list_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/list-item/index.js var build_module_list_item_namespaceObject = {}; __webpack_require__.r(build_module_list_item_namespaceObject); __webpack_require__.d(build_module_list_item_namespaceObject, { - init: function() { return list_item_init; }, - metadata: function() { return list_item_metadata; }, - name: function() { return list_item_name; }, - settings: function() { return list_item_settings; } + init: () => (list_item_init), + metadata: () => (list_item_metadata), + name: () => (list_item_name), + settings: () => (list_item_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/loginout/index.js var loginout_namespaceObject = {}; __webpack_require__.r(loginout_namespaceObject); __webpack_require__.d(loginout_namespaceObject, { - init: function() { return loginout_init; }, - metadata: function() { return loginout_metadata; }, - name: function() { return loginout_name; }, - settings: function() { return loginout_settings; } + init: () => (loginout_init), + metadata: () => (loginout_metadata), + name: () => (loginout_name), + settings: () => (loginout_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/media-text/index.js var media_text_namespaceObject = {}; __webpack_require__.r(media_text_namespaceObject); __webpack_require__.d(media_text_namespaceObject, { - init: function() { return media_text_init; }, - metadata: function() { return media_text_metadata; }, - name: function() { return media_text_name; }, - settings: function() { return media_text_settings; } + init: () => (media_text_init), + metadata: () => (media_text_metadata), + name: () => (media_text_name), + settings: () => (media_text_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/missing/index.js var missing_namespaceObject = {}; __webpack_require__.r(missing_namespaceObject); __webpack_require__.d(missing_namespaceObject, { - init: function() { return missing_init; }, - metadata: function() { return missing_metadata; }, - name: function() { return missing_name; }, - settings: function() { return missing_settings; } + init: () => (missing_init), + metadata: () => (missing_metadata), + name: () => (missing_name), + settings: () => (missing_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/more/index.js var build_module_more_namespaceObject = {}; __webpack_require__.r(build_module_more_namespaceObject); __webpack_require__.d(build_module_more_namespaceObject, { - init: function() { return more_init; }, - metadata: function() { return more_metadata; }, - name: function() { return more_name; }, - settings: function() { return more_settings; } + init: () => (more_init), + metadata: () => (more_metadata), + name: () => (more_name), + settings: () => (more_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/navigation/index.js var build_module_navigation_namespaceObject = {}; __webpack_require__.r(build_module_navigation_namespaceObject); __webpack_require__.d(build_module_navigation_namespaceObject, { - init: function() { return navigation_init; }, - metadata: function() { return navigation_metadata; }, - name: function() { return navigation_name; }, - settings: function() { return navigation_settings; } + init: () => (navigation_init), + metadata: () => (navigation_metadata), + name: () => (navigation_name), + settings: () => (navigation_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/navigation-link/index.js var navigation_link_namespaceObject = {}; __webpack_require__.r(navigation_link_namespaceObject); __webpack_require__.d(navigation_link_namespaceObject, { - init: function() { return navigation_link_init; }, - metadata: function() { return navigation_link_metadata; }, - name: function() { return navigation_link_name; }, - settings: function() { return navigation_link_settings; } + init: () => (navigation_link_init), + metadata: () => (navigation_link_metadata), + name: () => (navigation_link_name), + settings: () => (navigation_link_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/navigation-submenu/index.js var navigation_submenu_namespaceObject = {}; __webpack_require__.r(navigation_submenu_namespaceObject); __webpack_require__.d(navigation_submenu_namespaceObject, { - init: function() { return navigation_submenu_init; }, - metadata: function() { return navigation_submenu_metadata; }, - name: function() { return navigation_submenu_name; }, - settings: function() { return navigation_submenu_settings; } + init: () => (navigation_submenu_init), + metadata: () => (navigation_submenu_metadata), + name: () => (navigation_submenu_name), + settings: () => (navigation_submenu_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/nextpage/index.js var nextpage_namespaceObject = {}; __webpack_require__.r(nextpage_namespaceObject); __webpack_require__.d(nextpage_namespaceObject, { - init: function() { return nextpage_init; }, - metadata: function() { return nextpage_metadata; }, - name: function() { return nextpage_name; }, - settings: function() { return nextpage_settings; } + init: () => (nextpage_init), + metadata: () => (nextpage_metadata), + name: () => (nextpage_name), + settings: () => (nextpage_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/pattern/index.js var pattern_namespaceObject = {}; __webpack_require__.r(pattern_namespaceObject); __webpack_require__.d(pattern_namespaceObject, { - init: function() { return pattern_init; }, - metadata: function() { return pattern_metadata; }, - name: function() { return pattern_name; }, - settings: function() { return pattern_settings; } + init: () => (pattern_init), + metadata: () => (pattern_metadata), + name: () => (pattern_name), + settings: () => (pattern_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/page-list/index.js var page_list_namespaceObject = {}; __webpack_require__.r(page_list_namespaceObject); __webpack_require__.d(page_list_namespaceObject, { - init: function() { return page_list_init; }, - metadata: function() { return page_list_metadata; }, - name: function() { return page_list_name; }, - settings: function() { return page_list_settings; } + init: () => (page_list_init), + metadata: () => (page_list_metadata), + name: () => (page_list_name), + settings: () => (page_list_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/page-list-item/index.js var page_list_item_namespaceObject = {}; __webpack_require__.r(page_list_item_namespaceObject); __webpack_require__.d(page_list_item_namespaceObject, { - init: function() { return page_list_item_init; }, - metadata: function() { return page_list_item_metadata; }, - name: function() { return page_list_item_name; }, - settings: function() { return page_list_item_settings; } + init: () => (page_list_item_init), + metadata: () => (page_list_item_metadata), + name: () => (page_list_item_name), + settings: () => (page_list_item_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/paragraph/index.js var build_module_paragraph_namespaceObject = {}; __webpack_require__.r(build_module_paragraph_namespaceObject); __webpack_require__.d(build_module_paragraph_namespaceObject, { - init: function() { return paragraph_init; }, - metadata: function() { return paragraph_metadata; }, - name: function() { return paragraph_name; }, - settings: function() { return paragraph_settings; } + init: () => (paragraph_init), + metadata: () => (paragraph_metadata), + name: () => (paragraph_name), + settings: () => (paragraph_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-author/index.js var build_module_post_author_namespaceObject = {}; __webpack_require__.r(build_module_post_author_namespaceObject); __webpack_require__.d(build_module_post_author_namespaceObject, { - init: function() { return post_author_init; }, - metadata: function() { return post_author_metadata; }, - name: function() { return post_author_name; }, - settings: function() { return post_author_settings; } + init: () => (post_author_init), + metadata: () => (post_author_metadata), + name: () => (post_author_name), + settings: () => (post_author_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-author-name/index.js var post_author_name_namespaceObject = {}; __webpack_require__.r(post_author_name_namespaceObject); __webpack_require__.d(post_author_name_namespaceObject, { - init: function() { return post_author_name_init; }, - metadata: function() { return post_author_name_metadata; }, - name: function() { return post_author_name_name; }, - settings: function() { return post_author_name_settings; } + init: () => (post_author_name_init), + metadata: () => (post_author_name_metadata), + name: () => (post_author_name_name), + settings: () => (post_author_name_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-author-biography/index.js var post_author_biography_namespaceObject = {}; __webpack_require__.r(post_author_biography_namespaceObject); __webpack_require__.d(post_author_biography_namespaceObject, { - init: function() { return post_author_biography_init; }, - metadata: function() { return post_author_biography_metadata; }, - name: function() { return post_author_biography_name; }, - settings: function() { return post_author_biography_settings; } + init: () => (post_author_biography_init), + metadata: () => (post_author_biography_metadata), + name: () => (post_author_biography_name), + settings: () => (post_author_biography_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-comment/index.js var post_comment_namespaceObject = {}; __webpack_require__.r(post_comment_namespaceObject); __webpack_require__.d(post_comment_namespaceObject, { - init: function() { return post_comment_init; }, - metadata: function() { return post_comment_metadata; }, - name: function() { return post_comment_name; }, - settings: function() { return post_comment_settings; } + init: () => (post_comment_init), + metadata: () => (post_comment_metadata), + name: () => (post_comment_name), + settings: () => (post_comment_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-comments-count/index.js var build_module_post_comments_count_namespaceObject = {}; __webpack_require__.r(build_module_post_comments_count_namespaceObject); __webpack_require__.d(build_module_post_comments_count_namespaceObject, { - init: function() { return post_comments_count_init; }, - metadata: function() { return post_comments_count_metadata; }, - name: function() { return post_comments_count_name; }, - settings: function() { return post_comments_count_settings; } + init: () => (post_comments_count_init), + metadata: () => (post_comments_count_metadata), + name: () => (post_comments_count_name), + settings: () => (post_comments_count_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-comments-form/index.js var build_module_post_comments_form_namespaceObject = {}; __webpack_require__.r(build_module_post_comments_form_namespaceObject); __webpack_require__.d(build_module_post_comments_form_namespaceObject, { - init: function() { return post_comments_form_init; }, - metadata: function() { return post_comments_form_metadata; }, - name: function() { return post_comments_form_name; }, - settings: function() { return post_comments_form_settings; } + init: () => (post_comments_form_init), + metadata: () => (post_comments_form_metadata), + name: () => (post_comments_form_name), + settings: () => (post_comments_form_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-comments-link/index.js var post_comments_link_namespaceObject = {}; __webpack_require__.r(post_comments_link_namespaceObject); __webpack_require__.d(post_comments_link_namespaceObject, { - init: function() { return post_comments_link_init; }, - metadata: function() { return post_comments_link_metadata; }, - name: function() { return post_comments_link_name; }, - settings: function() { return post_comments_link_settings; } + init: () => (post_comments_link_init), + metadata: () => (post_comments_link_metadata), + name: () => (post_comments_link_name), + settings: () => (post_comments_link_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-content/index.js var build_module_post_content_namespaceObject = {}; __webpack_require__.r(build_module_post_content_namespaceObject); __webpack_require__.d(build_module_post_content_namespaceObject, { - init: function() { return post_content_init; }, - metadata: function() { return post_content_metadata; }, - name: function() { return post_content_name; }, - settings: function() { return post_content_settings; } + init: () => (post_content_init), + metadata: () => (post_content_metadata), + name: () => (post_content_name), + settings: () => (post_content_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-date/index.js var build_module_post_date_namespaceObject = {}; __webpack_require__.r(build_module_post_date_namespaceObject); __webpack_require__.d(build_module_post_date_namespaceObject, { - init: function() { return post_date_init; }, - metadata: function() { return post_date_metadata; }, - name: function() { return post_date_name; }, - settings: function() { return post_date_settings; } + init: () => (post_date_init), + metadata: () => (post_date_metadata), + name: () => (post_date_name), + settings: () => (post_date_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-excerpt/index.js var build_module_post_excerpt_namespaceObject = {}; __webpack_require__.r(build_module_post_excerpt_namespaceObject); __webpack_require__.d(build_module_post_excerpt_namespaceObject, { - init: function() { return post_excerpt_init; }, - metadata: function() { return post_excerpt_metadata; }, - name: function() { return post_excerpt_name; }, - settings: function() { return post_excerpt_settings; } + init: () => (post_excerpt_init), + metadata: () => (post_excerpt_metadata), + name: () => (post_excerpt_name), + settings: () => (post_excerpt_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-featured-image/index.js var build_module_post_featured_image_namespaceObject = {}; __webpack_require__.r(build_module_post_featured_image_namespaceObject); __webpack_require__.d(build_module_post_featured_image_namespaceObject, { - init: function() { return post_featured_image_init; }, - metadata: function() { return post_featured_image_metadata; }, - name: function() { return post_featured_image_name; }, - settings: function() { return post_featured_image_settings; } + init: () => (post_featured_image_init), + metadata: () => (post_featured_image_metadata), + name: () => (post_featured_image_name), + settings: () => (post_featured_image_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-navigation-link/index.js var post_navigation_link_namespaceObject = {}; __webpack_require__.r(post_navigation_link_namespaceObject); __webpack_require__.d(post_navigation_link_namespaceObject, { - init: function() { return post_navigation_link_init; }, - metadata: function() { return post_navigation_link_metadata; }, - name: function() { return post_navigation_link_name; }, - settings: function() { return post_navigation_link_settings; } + init: () => (post_navigation_link_init), + metadata: () => (post_navigation_link_metadata), + name: () => (post_navigation_link_name), + settings: () => (post_navigation_link_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-template/index.js var post_template_namespaceObject = {}; __webpack_require__.r(post_template_namespaceObject); __webpack_require__.d(post_template_namespaceObject, { - init: function() { return post_template_init; }, - metadata: function() { return post_template_metadata; }, - name: function() { return post_template_name; }, - settings: function() { return post_template_settings; } + init: () => (post_template_init), + metadata: () => (post_template_metadata), + name: () => (post_template_name), + settings: () => (post_template_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-terms/index.js var build_module_post_terms_namespaceObject = {}; __webpack_require__.r(build_module_post_terms_namespaceObject); __webpack_require__.d(build_module_post_terms_namespaceObject, { - init: function() { return post_terms_init; }, - metadata: function() { return post_terms_metadata; }, - name: function() { return post_terms_name; }, - settings: function() { return post_terms_settings; } + init: () => (post_terms_init), + metadata: () => (post_terms_metadata), + name: () => (post_terms_name), + settings: () => (post_terms_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-time-to-read/index.js var post_time_to_read_namespaceObject = {}; __webpack_require__.r(post_time_to_read_namespaceObject); __webpack_require__.d(post_time_to_read_namespaceObject, { - init: function() { return post_time_to_read_init; }, - metadata: function() { return post_time_to_read_metadata; }, - name: function() { return post_time_to_read_name; }, - settings: function() { return post_time_to_read_settings; } + init: () => (post_time_to_read_init), + metadata: () => (post_time_to_read_metadata), + name: () => (post_time_to_read_name), + settings: () => (post_time_to_read_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/post-title/index.js var post_title_namespaceObject = {}; __webpack_require__.r(post_title_namespaceObject); __webpack_require__.d(post_title_namespaceObject, { - init: function() { return post_title_init; }, - metadata: function() { return post_title_metadata; }, - name: function() { return post_title_name; }, - settings: function() { return post_title_settings; } + init: () => (post_title_init), + metadata: () => (post_title_metadata), + name: () => (post_title_name), + settings: () => (post_title_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/preformatted/index.js var build_module_preformatted_namespaceObject = {}; __webpack_require__.r(build_module_preformatted_namespaceObject); __webpack_require__.d(build_module_preformatted_namespaceObject, { - init: function() { return preformatted_init; }, - metadata: function() { return preformatted_metadata; }, - name: function() { return preformatted_name; }, - settings: function() { return preformatted_settings; } + init: () => (preformatted_init), + metadata: () => (preformatted_metadata), + name: () => (preformatted_name), + settings: () => (preformatted_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/pullquote/index.js var build_module_pullquote_namespaceObject = {}; __webpack_require__.r(build_module_pullquote_namespaceObject); __webpack_require__.d(build_module_pullquote_namespaceObject, { - init: function() { return pullquote_init; }, - metadata: function() { return pullquote_metadata; }, - name: function() { return pullquote_name; }, - settings: function() { return pullquote_settings; } + init: () => (pullquote_init), + metadata: () => (pullquote_metadata), + name: () => (pullquote_name), + settings: () => (pullquote_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/query/index.js var query_namespaceObject = {}; __webpack_require__.r(query_namespaceObject); __webpack_require__.d(query_namespaceObject, { - init: function() { return query_init; }, - metadata: function() { return query_metadata; }, - name: function() { return query_name; }, - settings: function() { return query_settings; } + init: () => (query_init), + metadata: () => (query_metadata), + name: () => (query_name), + settings: () => (query_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/query-no-results/index.js var query_no_results_namespaceObject = {}; __webpack_require__.r(query_no_results_namespaceObject); __webpack_require__.d(query_no_results_namespaceObject, { - init: function() { return query_no_results_init; }, - metadata: function() { return query_no_results_metadata; }, - name: function() { return query_no_results_name; }, - settings: function() { return query_no_results_settings; } + init: () => (query_no_results_init), + metadata: () => (query_no_results_metadata), + name: () => (query_no_results_name), + settings: () => (query_no_results_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/query-pagination/index.js var build_module_query_pagination_namespaceObject = {}; __webpack_require__.r(build_module_query_pagination_namespaceObject); __webpack_require__.d(build_module_query_pagination_namespaceObject, { - init: function() { return query_pagination_init; }, - metadata: function() { return query_pagination_metadata; }, - name: function() { return query_pagination_name; }, - settings: function() { return query_pagination_settings; } + init: () => (query_pagination_init), + metadata: () => (query_pagination_metadata), + name: () => (query_pagination_name), + settings: () => (query_pagination_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/query-pagination-next/index.js var build_module_query_pagination_next_namespaceObject = {}; __webpack_require__.r(build_module_query_pagination_next_namespaceObject); __webpack_require__.d(build_module_query_pagination_next_namespaceObject, { - init: function() { return query_pagination_next_init; }, - metadata: function() { return query_pagination_next_metadata; }, - name: function() { return query_pagination_next_name; }, - settings: function() { return query_pagination_next_settings; } + init: () => (query_pagination_next_init), + metadata: () => (query_pagination_next_metadata), + name: () => (query_pagination_next_name), + settings: () => (query_pagination_next_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/query-pagination-numbers/index.js var build_module_query_pagination_numbers_namespaceObject = {}; __webpack_require__.r(build_module_query_pagination_numbers_namespaceObject); __webpack_require__.d(build_module_query_pagination_numbers_namespaceObject, { - init: function() { return query_pagination_numbers_init; }, - metadata: function() { return query_pagination_numbers_metadata; }, - name: function() { return query_pagination_numbers_name; }, - settings: function() { return query_pagination_numbers_settings; } + init: () => (query_pagination_numbers_init), + metadata: () => (query_pagination_numbers_metadata), + name: () => (query_pagination_numbers_name), + settings: () => (query_pagination_numbers_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/query-pagination-previous/index.js var build_module_query_pagination_previous_namespaceObject = {}; __webpack_require__.r(build_module_query_pagination_previous_namespaceObject); __webpack_require__.d(build_module_query_pagination_previous_namespaceObject, { - init: function() { return query_pagination_previous_init; }, - metadata: function() { return query_pagination_previous_metadata; }, - name: function() { return query_pagination_previous_name; }, - settings: function() { return query_pagination_previous_settings; } + init: () => (query_pagination_previous_init), + metadata: () => (query_pagination_previous_metadata), + name: () => (query_pagination_previous_name), + settings: () => (query_pagination_previous_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/query-title/index.js var query_title_namespaceObject = {}; __webpack_require__.r(query_title_namespaceObject); __webpack_require__.d(query_title_namespaceObject, { - init: function() { return query_title_init; }, - metadata: function() { return query_title_metadata; }, - name: function() { return query_title_name; }, - settings: function() { return query_title_settings; } + init: () => (query_title_init), + metadata: () => (query_title_metadata), + name: () => (query_title_name), + settings: () => (query_title_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/quote/index.js var build_module_quote_namespaceObject = {}; __webpack_require__.r(build_module_quote_namespaceObject); __webpack_require__.d(build_module_quote_namespaceObject, { - init: function() { return quote_init; }, - metadata: function() { return quote_metadata; }, - name: function() { return quote_name; }, - settings: function() { return quote_settings; } + init: () => (quote_init), + metadata: () => (quote_metadata), + name: () => (quote_name), + settings: () => (quote_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/block/index.js var block_namespaceObject = {}; __webpack_require__.r(block_namespaceObject); __webpack_require__.d(block_namespaceObject, { - init: function() { return block_init; }, - metadata: function() { return block_metadata; }, - name: function() { return block_name; }, - settings: function() { return block_settings; } + init: () => (block_init), + metadata: () => (block_metadata), + name: () => (block_name), + settings: () => (block_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/read-more/index.js var read_more_namespaceObject = {}; __webpack_require__.r(read_more_namespaceObject); __webpack_require__.d(read_more_namespaceObject, { - init: function() { return read_more_init; }, - metadata: function() { return read_more_metadata; }, - name: function() { return read_more_name; }, - settings: function() { return read_more_settings; } + init: () => (read_more_init), + metadata: () => (read_more_metadata), + name: () => (read_more_name), + settings: () => (read_more_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/rss/index.js var build_module_rss_namespaceObject = {}; __webpack_require__.r(build_module_rss_namespaceObject); __webpack_require__.d(build_module_rss_namespaceObject, { - init: function() { return rss_init; }, - metadata: function() { return rss_metadata; }, - name: function() { return rss_name; }, - settings: function() { return rss_settings; } + init: () => (rss_init), + metadata: () => (rss_metadata), + name: () => (rss_name), + settings: () => (rss_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/search/index.js var build_module_search_namespaceObject = {}; __webpack_require__.r(build_module_search_namespaceObject); __webpack_require__.d(build_module_search_namespaceObject, { - init: function() { return search_init; }, - metadata: function() { return search_metadata; }, - name: function() { return search_name; }, - settings: function() { return search_settings; } + init: () => (search_init), + metadata: () => (search_metadata), + name: () => (search_name), + settings: () => (search_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/separator/index.js var build_module_separator_namespaceObject = {}; __webpack_require__.r(build_module_separator_namespaceObject); __webpack_require__.d(build_module_separator_namespaceObject, { - init: function() { return separator_init; }, - metadata: function() { return separator_metadata; }, - name: function() { return separator_name; }, - settings: function() { return separator_settings; } + init: () => (separator_init), + metadata: () => (separator_metadata), + name: () => (separator_name), + settings: () => (separator_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/shortcode/index.js var build_module_shortcode_namespaceObject = {}; __webpack_require__.r(build_module_shortcode_namespaceObject); __webpack_require__.d(build_module_shortcode_namespaceObject, { - init: function() { return shortcode_init; }, - metadata: function() { return shortcode_metadata; }, - name: function() { return shortcode_name; }, - settings: function() { return shortcode_settings; } + init: () => (shortcode_init), + metadata: () => (shortcode_metadata), + name: () => (shortcode_name), + settings: () => (shortcode_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/site-logo/index.js var build_module_site_logo_namespaceObject = {}; __webpack_require__.r(build_module_site_logo_namespaceObject); __webpack_require__.d(build_module_site_logo_namespaceObject, { - init: function() { return site_logo_init; }, - metadata: function() { return site_logo_metadata; }, - name: function() { return site_logo_name; }, - settings: function() { return site_logo_settings; } + init: () => (site_logo_init), + metadata: () => (site_logo_metadata), + name: () => (site_logo_name), + settings: () => (site_logo_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/site-tagline/index.js var site_tagline_namespaceObject = {}; __webpack_require__.r(site_tagline_namespaceObject); __webpack_require__.d(site_tagline_namespaceObject, { - init: function() { return site_tagline_init; }, - metadata: function() { return site_tagline_metadata; }, - name: function() { return site_tagline_name; }, - settings: function() { return site_tagline_settings; } + init: () => (site_tagline_init), + metadata: () => (site_tagline_metadata), + name: () => (site_tagline_name), + settings: () => (site_tagline_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/site-title/index.js var site_title_namespaceObject = {}; __webpack_require__.r(site_title_namespaceObject); __webpack_require__.d(site_title_namespaceObject, { - init: function() { return site_title_init; }, - metadata: function() { return site_title_metadata; }, - name: function() { return site_title_name; }, - settings: function() { return site_title_settings; } + init: () => (site_title_init), + metadata: () => (site_title_metadata), + name: () => (site_title_name), + settings: () => (site_title_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/social-link/index.js var social_link_namespaceObject = {}; __webpack_require__.r(social_link_namespaceObject); __webpack_require__.d(social_link_namespaceObject, { - init: function() { return social_link_init; }, - metadata: function() { return social_link_metadata; }, - name: function() { return social_link_name; }, - settings: function() { return social_link_settings; } + init: () => (social_link_init), + metadata: () => (social_link_metadata), + name: () => (social_link_name), + settings: () => (social_link_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/social-links/index.js var social_links_namespaceObject = {}; __webpack_require__.r(social_links_namespaceObject); __webpack_require__.d(social_links_namespaceObject, { - init: function() { return social_links_init; }, - metadata: function() { return social_links_metadata; }, - name: function() { return social_links_name; }, - settings: function() { return social_links_settings; } + init: () => (social_links_init), + metadata: () => (social_links_metadata), + name: () => (social_links_name), + settings: () => (social_links_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/spacer/index.js var spacer_namespaceObject = {}; __webpack_require__.r(spacer_namespaceObject); __webpack_require__.d(spacer_namespaceObject, { - init: function() { return spacer_init; }, - metadata: function() { return spacer_metadata; }, - name: function() { return spacer_name; }, - settings: function() { return spacer_settings; } + init: () => (spacer_init), + metadata: () => (spacer_metadata), + name: () => (spacer_name), + settings: () => (spacer_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/table/index.js var build_module_table_namespaceObject = {}; __webpack_require__.r(build_module_table_namespaceObject); __webpack_require__.d(build_module_table_namespaceObject, { - init: function() { return table_init; }, - metadata: function() { return table_metadata; }, - name: function() { return table_name; }, - settings: function() { return table_settings; } + init: () => (table_init), + metadata: () => (table_metadata), + name: () => (table_name), + settings: () => (table_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/table-of-contents/index.js -var table_of_contents_namespaceObject = {}; -__webpack_require__.r(table_of_contents_namespaceObject); -__webpack_require__.d(table_of_contents_namespaceObject, { - init: function() { return table_of_contents_init; }, - metadata: function() { return table_of_contents_metadata; }, - name: function() { return table_of_contents_name; }, - settings: function() { return table_of_contents_settings; } +var build_module_table_of_contents_namespaceObject = {}; +__webpack_require__.r(build_module_table_of_contents_namespaceObject); +__webpack_require__.d(build_module_table_of_contents_namespaceObject, { + init: () => (table_of_contents_init), + metadata: () => (table_of_contents_metadata), + name: () => (table_of_contents_name), + settings: () => (table_of_contents_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/tag-cloud/index.js var tag_cloud_namespaceObject = {}; __webpack_require__.r(tag_cloud_namespaceObject); __webpack_require__.d(tag_cloud_namespaceObject, { - init: function() { return tag_cloud_init; }, - metadata: function() { return tag_cloud_metadata; }, - name: function() { return tag_cloud_name; }, - settings: function() { return tag_cloud_settings; } + init: () => (tag_cloud_init), + metadata: () => (tag_cloud_metadata), + name: () => (tag_cloud_name), + settings: () => (tag_cloud_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/template-part/index.js var template_part_namespaceObject = {}; __webpack_require__.r(template_part_namespaceObject); __webpack_require__.d(template_part_namespaceObject, { - init: function() { return template_part_init; }, - metadata: function() { return template_part_metadata; }, - name: function() { return template_part_name; }, - settings: function() { return template_part_settings; } + init: () => (template_part_init), + metadata: () => (template_part_metadata), + name: () => (template_part_name), + settings: () => (template_part_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/term-description/index.js var build_module_term_description_namespaceObject = {}; __webpack_require__.r(build_module_term_description_namespaceObject); __webpack_require__.d(build_module_term_description_namespaceObject, { - init: function() { return term_description_init; }, - metadata: function() { return term_description_metadata; }, - name: function() { return term_description_name; }, - settings: function() { return term_description_settings; } + init: () => (term_description_init), + metadata: () => (term_description_metadata), + name: () => (term_description_name), + settings: () => (term_description_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/text-columns/index.js var text_columns_namespaceObject = {}; __webpack_require__.r(text_columns_namespaceObject); __webpack_require__.d(text_columns_namespaceObject, { - init: function() { return text_columns_init; }, - metadata: function() { return text_columns_metadata; }, - name: function() { return text_columns_name; }, - settings: function() { return text_columns_settings; } + init: () => (text_columns_init), + metadata: () => (text_columns_metadata), + name: () => (text_columns_name), + settings: () => (text_columns_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/verse/index.js var build_module_verse_namespaceObject = {}; __webpack_require__.r(build_module_verse_namespaceObject); __webpack_require__.d(build_module_verse_namespaceObject, { - init: function() { return verse_init; }, - metadata: function() { return verse_metadata; }, - name: function() { return verse_name; }, - settings: function() { return verse_settings; } + init: () => (verse_init), + metadata: () => (verse_metadata), + name: () => (verse_name), + settings: () => (verse_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/video/index.js var build_module_video_namespaceObject = {}; __webpack_require__.r(build_module_video_namespaceObject); __webpack_require__.d(build_module_video_namespaceObject, { - init: function() { return video_init; }, - metadata: function() { return video_metadata; }, - name: function() { return video_name; }, - settings: function() { return video_settings; } + init: () => (video_init), + metadata: () => (video_metadata), + name: () => (video_name), + settings: () => (video_settings) }); // NAMESPACE OBJECT: ./node_modules/@wordpress/block-library/build-module/footnotes/index.js var footnotes_namespaceObject = {}; __webpack_require__.r(footnotes_namespaceObject); __webpack_require__.d(footnotes_namespaceObject, { - init: function() { return footnotes_init; }, - metadata: function() { return footnotes_metadata; }, - name: function() { return footnotes_name; }, - settings: function() { return footnotes_settings; } + init: () => (footnotes_init), + metadata: () => (footnotes_metadata), + name: () => (footnotes_name), + settings: () => (footnotes_settings) }); ;// CONCATENATED MODULE: external ["wp","blocks"] -var external_wp_blocks_namespaceObject = window["wp"]["blocks"]; -;// CONCATENATED MODULE: external ["wp","element"] -var external_wp_element_namespaceObject = window["wp"]["element"]; +const external_wp_blocks_namespaceObject = window["wp"]["blocks"]; +;// CONCATENATED MODULE: external "React" +const external_React_namespaceObject = window["React"]; ;// CONCATENATED MODULE: external ["wp","primitives"] -var external_wp_primitives_namespaceObject = window["wp"]["primitives"]; +const external_wp_primitives_namespaceObject = window["wp"]["primitives"]; ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/archive.js /** * WordPress dependencies */ -const archive = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const archive = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { - d: "M19 6.2h-5.9l-.6-1.1c-.3-.7-1-1.1-1.8-1.1H5c-1.1 0-2 .9-2 2v11.8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8.2c0-1.1-.9-2-2-2zm.5 11.6c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V6c0-.3.2-.5.5-.5h5.8c.2 0 .4.1.4.3l1 2H19c.3 0 .5.2.5.5v9.5zM8 12.8h8v-1.5H8v1.5zm0 3h8v-1.5H8v1.5z" +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M11.934 7.406a1 1 0 0 0 .914.594H19a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5h5.764a.5.5 0 0 1 .447.276l.723 1.63Zm1.064-1.216a.5.5 0 0 0 .462.31H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h5.764a2 2 0 0 1 1.789 1.106l.445 1.084ZM8.5 10.5h7V12h-7v-1.5Zm7 3.5h-7v1.5h7V14Z" })); -/* harmony default export */ var library_archive = (archive); +/* harmony default export */ const library_archive = (archive); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/utils/init-block.js /** @@ -1880,13 +1922,13 @@ function initBlock(block) { } ;// CONCATENATED MODULE: external ["wp","components"] -var external_wp_components_namespaceObject = window["wp"]["components"]; +const external_wp_components_namespaceObject = window["wp"]["components"]; ;// CONCATENATED MODULE: external ["wp","i18n"] -var external_wp_i18n_namespaceObject = window["wp"]["i18n"]; +const external_wp_i18n_namespaceObject = window["wp"]["i18n"]; ;// CONCATENATED MODULE: external ["wp","blockEditor"] -var external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"]; +const external_wp_blockEditor_namespaceObject = window["wp"]["blockEditor"]; ;// CONCATENATED MODULE: external ["wp","serverSideRender"] -var external_wp_serverSideRender_namespaceObject = window["wp"]["serverSideRender"]; +const external_wp_serverSideRender_namespaceObject = window["wp"]["serverSideRender"]; var external_wp_serverSideRender_default = /*#__PURE__*/__webpack_require__.n(external_wp_serverSideRender_namespaceObject); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/archives/edit.js @@ -1907,30 +1949,30 @@ function ArchivesEdit({ displayAsDropdown, type } = attributes; - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, { + return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, { title: (0,external_wp_i18n_namespaceObject.__)('Settings') - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('Display as dropdown'), checked: displayAsDropdown, onChange: () => setAttributes({ displayAsDropdown: !displayAsDropdown }) - }), displayAsDropdown && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { + }), displayAsDropdown && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('Show label'), checked: showLabel, onChange: () => setAttributes({ showLabel: !showLabel }) - }), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { + }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('Show post counts'), checked: showPostCounts, onChange: () => setAttributes({ showPostCounts: !showPostCounts }) - }), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, { + }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('Group by:'), options: [{ @@ -1950,9 +1992,9 @@ function ArchivesEdit({ onChange: value => setAttributes({ type: value }) - }))), (0,external_wp_element_namespaceObject.createElement)("div", { + }))), (0,external_React_namespaceObject.createElement)("div", { ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)() - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, null, (0,external_wp_element_namespaceObject.createElement)((external_wp_serverSideRender_default()), { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, null, (0,external_React_namespaceObject.createElement)((external_wp_serverSideRender_default()), { block: "core/archives", skipBlockSupportAttributes: true, attributes: attributes @@ -2018,6 +2060,9 @@ const metadata = { __experimentalDefaultControls: { fontSize: true } + }, + interactivity: { + clientNavigation: true } }, editorStyle: "wp-block-archives-editor" @@ -2044,25 +2089,25 @@ const init = () => initBlock({ * WordPress dependencies */ -const commentAuthorAvatar = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const commentAuthorAvatar = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { fillRule: "evenodd", d: "M7.25 16.437a6.5 6.5 0 1 1 9.5 0V16A2.75 2.75 0 0 0 14 13.25h-4A2.75 2.75 0 0 0 7.25 16v.437Zm1.5 1.193a6.47 6.47 0 0 0 3.25.87 6.47 6.47 0 0 0 3.25-.87V16c0-.69-.56-1.25-1.25-1.25h-4c-.69 0-1.25.56-1.25 1.25v1.63ZM4 12a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm10-2a2 2 0 1 1-4 0 2 2 0 0 1 4 0Z", clipRule: "evenodd" })); -/* harmony default export */ var comment_author_avatar = (commentAuthorAvatar); +/* harmony default export */ const comment_author_avatar = (commentAuthorAvatar); // EXTERNAL MODULE: ./node_modules/classnames/index.js -var classnames = __webpack_require__(4403); +var classnames = __webpack_require__(5755); var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames); ;// CONCATENATED MODULE: external ["wp","url"] -var external_wp_url_namespaceObject = window["wp"]["url"]; +const external_wp_url_namespaceObject = window["wp"]["url"]; ;// CONCATENATED MODULE: external ["wp","coreData"] -var external_wp_coreData_namespaceObject = window["wp"]["coreData"]; +const external_wp_coreData_namespaceObject = window["wp"]["coreData"]; ;// CONCATENATED MODULE: external ["wp","data"] -var external_wp_data_namespaceObject = window["wp"]["data"]; +const external_wp_data_namespaceObject = window["wp"]["data"]; ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/avatar/hooks.js /** * WordPress dependencies @@ -2155,6 +2200,8 @@ function useUserAvatar({ }; } +;// CONCATENATED MODULE: external ["wp","element"] +const external_wp_element_namespaceObject = window["wp"]["element"]; ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/avatar/user-control.js /** @@ -2191,7 +2238,7 @@ function UserControl({ value: author.id }; }); - return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ComboboxControl, { + return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ComboboxControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('User'), help: (0,external_wp_i18n_namespaceObject.__)('Select the avatar user to display, if it is blank it will use the post/page author.'), @@ -2201,7 +2248,7 @@ function UserControl({ onFilterValueChange: inputValue => setFilteredAuthorsList(options.filter(option => option.label.toLowerCase().startsWith(inputValue.toLowerCase()))) }); } -/* harmony default export */ var user_control = (UserControl); +/* harmony default export */ const user_control = (UserControl); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/avatar/edit.js @@ -2228,9 +2275,9 @@ const AvatarInspectorControls = ({ avatar, attributes, selectUser -}) => (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, { +}) => (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, { title: (0,external_wp_i18n_namespaceObject.__)('Settings') -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, { +}, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, { __nextHasNoMarginBottom: true, __next40pxDefaultSize: true, label: (0,external_wp_i18n_namespaceObject.__)('Image size'), @@ -2241,20 +2288,20 @@ const AvatarInspectorControls = ({ max: avatar.maxSize, initialPosition: attributes?.size, value: attributes?.size -}), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { +}), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('Link to user profile'), onChange: () => setAttributes({ isLink: !attributes.isLink }), checked: attributes.isLink -}), attributes.isLink && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { +}), attributes.isLink && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { label: (0,external_wp_i18n_namespaceObject.__)('Open in new tab'), onChange: value => setAttributes({ linkTarget: value ? '_blank' : '_self' }), checked: attributes.linkTarget === '_blank' -}), selectUser && (0,external_wp_element_namespaceObject.createElement)(user_control, { +}), selectUser && (0,external_React_namespaceObject.createElement)(user_control, { value: attributes?.userId, onChange: value => { setAttributes({ @@ -2273,9 +2320,9 @@ const ResizableAvatar = ({ const doubledSizedSrc = (0,external_wp_url_namespaceObject.addQueryArgs)((0,external_wp_url_namespaceObject.removeQueryArgs)(avatar?.src, ['s']), { s: attributes?.size * 2 }); - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...blockProps - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ResizableBox, { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ResizableBox, { size: { width: attributes.size, height: attributes.size @@ -2295,7 +2342,7 @@ const ResizableAvatar = ({ }, minWidth: avatar.minSize, maxWidth: avatar.maxSize - }, (0,external_wp_element_namespaceObject.createElement)("img", { + }, (0,external_React_namespaceObject.createElement)("img", { src: doubledSizedSrc, alt: avatar.alt, className: classnames_default()('avatar', 'avatar-' + attributes.size, 'photo', 'wp-block-avatar__image', borderProps.className), @@ -2315,22 +2362,22 @@ const CommentEdit = ({ const avatar = useCommentAvatar({ commentId }); - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(AvatarInspectorControls, { + return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(AvatarInspectorControls, { avatar: avatar, setAttributes: setAttributes, attributes: attributes, selectUser: false - }), attributes.isLink ? (0,external_wp_element_namespaceObject.createElement)("a", { + }), attributes.isLink ? (0,external_React_namespaceObject.createElement)("a", { href: "#avatar-pseudo-link", className: "wp-block-avatar__link", onClick: event => event.preventDefault() - }, (0,external_wp_element_namespaceObject.createElement)(ResizableAvatar, { + }, (0,external_React_namespaceObject.createElement)(ResizableAvatar, { attributes: attributes, avatar: avatar, blockProps: blockProps, isSelected: isSelected, setAttributes: setAttributes - })) : (0,external_wp_element_namespaceObject.createElement)(ResizableAvatar, { + })) : (0,external_React_namespaceObject.createElement)(ResizableAvatar, { attributes: attributes, avatar: avatar, blockProps: blockProps, @@ -2354,37 +2401,37 @@ const UserEdit = ({ postType }); const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)(); - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(AvatarInspectorControls, { + return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(AvatarInspectorControls, { selectUser: true, attributes: attributes, avatar: avatar, setAttributes: setAttributes - }), (0,external_wp_element_namespaceObject.createElement)("div", null, attributes.isLink ? (0,external_wp_element_namespaceObject.createElement)("a", { + }), attributes.isLink ? (0,external_React_namespaceObject.createElement)("a", { href: "#avatar-pseudo-link", className: "wp-block-avatar__link", onClick: event => event.preventDefault() - }, (0,external_wp_element_namespaceObject.createElement)(ResizableAvatar, { + }, (0,external_React_namespaceObject.createElement)(ResizableAvatar, { attributes: attributes, avatar: avatar, blockProps: blockProps, isSelected: isSelected, setAttributes: setAttributes - })) : (0,external_wp_element_namespaceObject.createElement)(ResizableAvatar, { + })) : (0,external_React_namespaceObject.createElement)(ResizableAvatar, { attributes: attributes, avatar: avatar, blockProps: blockProps, isSelected: isSelected, setAttributes: setAttributes - }))); + })); }; function Edit(props) { // Don't show the Comment Edit controls if we have a comment ID set, or if we're in the Site Editor (where it is `null`). if (props?.context?.commentId || props?.context?.commentId === null) { - return (0,external_wp_element_namespaceObject.createElement)(CommentEdit, { + return (0,external_React_namespaceObject.createElement)(CommentEdit, { ...props }); } - return (0,external_wp_element_namespaceObject.createElement)(UserEdit, { + return (0,external_React_namespaceObject.createElement)(UserEdit, { ...props }); } @@ -2431,7 +2478,11 @@ const avatar_metadata = { alignWide: false, spacing: { margin: true, - padding: true + padding: true, + __experimentalDefaultControls: { + margin: false, + padding: false + } }, __experimentalBorder: { __experimentalSkipSerialization: true, @@ -2447,6 +2498,9 @@ const avatar_metadata = { text: false, background: false, __experimentalDuotone: "img" + }, + interactivity: { + clientNavigation: true } }, selectors: { @@ -2476,13 +2530,13 @@ const avatar_init = () => initBlock({ * WordPress dependencies */ -const audio = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const audio = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { d: "M17.7 4.3c-1.2 0-2.8 0-3.8 1-.6.6-.9 1.5-.9 2.6V14c-.6-.6-1.5-1-2.5-1C8.6 13 7 14.6 7 16.5S8.6 20 10.5 20c1.5 0 2.8-1 3.3-2.3.5-.8.7-1.8.7-2.5V7.9c0-.7.2-1.2.5-1.6.6-.6 1.8-.6 2.8-.6h.3V4.3h-.4z" })); -/* harmony default export */ var library_audio = (audio); +/* harmony default export */ const library_audio = (audio); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/deprecated.js @@ -2490,7 +2544,7 @@ const audio = (0,external_wp_element_namespaceObject.createElement)(external_wp_ * WordPress dependencies */ -/* harmony default export */ var deprecated = ([{ +/* harmony default export */ const deprecated = ([{ attributes: { src: { type: 'string', @@ -2538,13 +2592,13 @@ const audio = (0,external_wp_element_namespaceObject.createElement)(external_wp_ preload, src } = attributes; - return (0,external_wp_element_namespaceObject.createElement)("figure", null, (0,external_wp_element_namespaceObject.createElement)("audio", { + return (0,external_React_namespaceObject.createElement)("figure", null, (0,external_React_namespaceObject.createElement)("audio", { controls: "controls", src: src, autoPlay: autoplay, loop: loop, preload: preload - }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: "figcaption", value: caption })); @@ -2552,29 +2606,11 @@ const audio = (0,external_wp_element_namespaceObject.createElement)(external_wp_ }]); ;// CONCATENATED MODULE: external ["wp","blob"] -var external_wp_blob_namespaceObject = window["wp"]["blob"]; -;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/caption.js - -/** - * WordPress dependencies - */ - -const caption = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { - viewBox: "0 0 24 24", - xmlns: "http://www.w3.org/2000/svg" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { - fillRule: "evenodd", - clipRule: "evenodd", - d: "M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z" -})); -/* harmony default export */ var library_caption = (caption); - +const external_wp_blob_namespaceObject = window["wp"]["blob"]; ;// CONCATENATED MODULE: external ["wp","notices"] -var external_wp_notices_namespaceObject = window["wp"]["notices"]; -;// CONCATENATED MODULE: external ["wp","compose"] -var external_wp_compose_namespaceObject = window["wp"]["compose"]; +const external_wp_notices_namespaceObject = window["wp"]["notices"]; // EXTERNAL MODULE: ./node_modules/classnames/dedupe.js -var dedupe = __webpack_require__(3827); +var dedupe = __webpack_require__(1668); var dedupe_default = /*#__PURE__*/__webpack_require__.n(dedupe); ;// CONCATENATED MODULE: ./node_modules/memize/dist/index.js /** @@ -2768,7 +2804,7 @@ const ASPECT_RATIOS = [ const WP_EMBED_TYPE = 'wp-embed'; ;// CONCATENATED MODULE: external ["wp","privateApis"] -var external_wp_privateApis_namespaceObject = window["wp"]["privateApis"]; +const external_wp_privateApis_namespaceObject = window["wp"]["privateApis"]; ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/lock-unlock.js /** * WordPress dependencies @@ -2811,8 +2847,8 @@ const util_metadata = { __experimentalRole: "content" }, caption: { - type: "string", - source: "html", + type: "rich-text", + source: "rich-text", selector: "figcaption", __experimentalRole: "content" }, @@ -2843,6 +2879,9 @@ const util_metadata = { align: true, spacing: { margin: true + }, + interactivity: { + clientNavigation: true } }, editorStyle: "wp-block-embed-editor", @@ -2853,9 +2892,6 @@ const util_metadata = { const { name: DEFAULT_EMBED_BLOCK } = util_metadata; -const { - kebabCase -} = unlock(external_wp_blockEditor_namespaceObject.privateApis); /** @typedef {import('@wordpress/blocks').WPBlockVariation} WPBlockVariation */ @@ -2895,7 +2931,7 @@ const getPhotoHtml = photo => { // 100% width for the preview so it fits nicely into the document, some "thumbnails" are // actually the full size photo. - const photoPreview = (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_element_namespaceObject.createElement)("img", { + const photoPreview = (0,external_React_namespaceObject.createElement)("p", null, (0,external_React_namespaceObject.createElement)("img", { src: imageUrl, alt: photo.title, width: "100%" @@ -3054,7 +3090,7 @@ function getClassNames(html, existingClassNames, allowResponsive = true) { * @param {Function} onReplace Function to call with the created fallback block. */ function fallback(url, onReplace) { - const link = (0,external_wp_element_namespaceObject.createElement)("a", { + const link = (0,external_React_namespaceObject.createElement)("a", { href: url }, url); onReplace((0,external_wp_blocks_namespaceObject.createBlock)('core/paragraph', { @@ -3087,6 +3123,9 @@ const getAttributesFromPreview = memize((preview, title, currentClassNames, isRe html, provider_name: providerName } = preview; + const { + kebabCase + } = unlock(external_wp_components_namespaceObject.privateApis); const providerNameSlug = kebabCase((providerName || title).toLowerCase()); if (isFromWordPress(html)) { type = WP_EMBED_TYPE; @@ -3126,7 +3165,25 @@ const getMergedAttributesWithPreview = (currentAttributes, preview, title, isRes }; }; -;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/edit.js +;// CONCATENATED MODULE: external ["wp","compose"] +const external_wp_compose_namespaceObject = window["wp"]["compose"]; +;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/caption.js + +/** + * WordPress dependencies + */ + +const caption = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { + viewBox: "0 0 24 24", + xmlns: "http://www.w3.org/2000/svg" +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M6 5.5h12a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H6a.5.5 0 0 1-.5-.5V6a.5.5 0 0 1 .5-.5ZM4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6Zm4 10h2v-1.5H8V16Zm5 0h-2v-1.5h2V16Zm1 0h2v-1.5h-2V16Z" +})); +/* harmony default export */ const library_caption = (caption); + +;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/utils/caption.js /** * External dependencies @@ -3144,6 +3201,97 @@ const getMergedAttributesWithPreview = (currentAttributes, preview, title, isRes +/** + * Internal dependencies + */ + +const { + PrivateRichText: RichText +} = unlock(external_wp_blockEditor_namespaceObject.privateApis); +function Caption({ + key = 'caption', + attributes, + setAttributes, + isSelected, + insertBlocksAfter, + placeholder = (0,external_wp_i18n_namespaceObject.__)('Add caption'), + label = (0,external_wp_i18n_namespaceObject.__)('Caption text'), + showToolbarButton = true, + className, + disableEditing +}) { + const caption = attributes[key]; + const prevCaption = (0,external_wp_compose_namespaceObject.usePrevious)(caption); + const isCaptionEmpty = RichText.isEmpty(caption); + const isPrevCaptionEmpty = RichText.isEmpty(prevCaption); + const [showCaption, setShowCaption] = (0,external_wp_element_namespaceObject.useState)(!isCaptionEmpty); + + // We need to show the caption when changes come from + // history navigation(undo/redo). + (0,external_wp_element_namespaceObject.useEffect)(() => { + if (!isCaptionEmpty && isPrevCaptionEmpty) { + setShowCaption(true); + } + }, [isCaptionEmpty, isPrevCaptionEmpty]); + (0,external_wp_element_namespaceObject.useEffect)(() => { + if (!isSelected && isCaptionEmpty) { + setShowCaption(false); + } + }, [isSelected, isCaptionEmpty]); + + // Focus the caption when we click to add one. + const ref = (0,external_wp_element_namespaceObject.useCallback)(node => { + if (node && isCaptionEmpty) { + node.focus(); + } + }, [isCaptionEmpty]); + return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, showToolbarButton && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, { + group: "block" + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, { + onClick: () => { + setShowCaption(!showCaption); + if (showCaption && caption) { + setAttributes({ + caption: undefined + }); + } + }, + icon: library_caption, + isPressed: showCaption, + label: showCaption ? (0,external_wp_i18n_namespaceObject.__)('Remove caption') : (0,external_wp_i18n_namespaceObject.__)('Add caption') + })), showCaption && (!RichText.isEmpty(caption) || isSelected) && (0,external_React_namespaceObject.createElement)(RichText, { + identifier: key, + tagName: "figcaption", + className: classnames_default()(className, (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption')), + ref: ref, + "aria-label": label, + placeholder: placeholder, + value: caption, + onChange: value => setAttributes({ + caption: value + }), + inlineToolbar: true, + __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)())), + disableEditing: disableEditing + })); +} + +;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/edit.js + +/** + * External dependencies + */ + + +/** + * WordPress dependencies + */ + + + + + + @@ -3151,37 +3299,32 @@ const getMergedAttributesWithPreview = (currentAttributes, preview, title, isRes * Internal dependencies */ + const ALLOWED_MEDIA_TYPES = ['audio']; function AudioEdit({ attributes, className, setAttributes, onReplace, - isSelected, + isSelected: isSingleSelected, insertBlocksAfter }) { const { id, autoplay, - caption, loop, preload, src } = attributes; - const prevCaption = (0,external_wp_compose_namespaceObject.usePrevious)(caption); - const [showCaption, setShowCaption] = (0,external_wp_element_namespaceObject.useState)(!!caption); const isTemporaryAudio = !id && (0,external_wp_blob_namespaceObject.isBlobURL)(src); - const mediaUpload = (0,external_wp_data_namespaceObject.useSelect)(select => { - const { - getSettings - } = select(external_wp_blockEditor_namespaceObject.store); - return getSettings().mediaUpload; - }, []); + const { + getSettings + } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store); (0,external_wp_element_namespaceObject.useEffect)(() => { if (!id && (0,external_wp_blob_namespaceObject.isBlobURL)(src)) { const file = (0,external_wp_blob_namespaceObject.getBlobByURL)(src); if (file) { - mediaUpload({ + getSettings().mediaUpload({ filesList: [file], onFileChange: ([media]) => onSelectAudio(media), onError: e => onUploadError(e), @@ -3190,26 +3333,6 @@ function AudioEdit({ } } }, []); - - // We need to show the caption when changes come from - // history navigation(undo/redo). - (0,external_wp_element_namespaceObject.useEffect)(() => { - if (caption && !prevCaption) { - setShowCaption(true); - } - }, [caption, prevCaption]); - - // Focus the caption when we click to add one. - const captionRef = (0,external_wp_element_namespaceObject.useCallback)(node => { - if (node && !caption) { - node.focus(); - } - }, [caption]); - (0,external_wp_element_namespaceObject.useEffect)(() => { - if (!isSelected && !caption) { - setShowCaption(false); - } - }, [isSelected, caption]); function toggleAttribute(attribute) { return newValue => { setAttributes({ @@ -3274,10 +3397,10 @@ function AudioEdit({ className: classes }); if (!src) { - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...blockProps - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, { - icon: (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaPlaceholder, { + icon: (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockIcon, { icon: library_audio }), onSelect: onSelectAudio, @@ -3288,23 +3411,9 @@ function AudioEdit({ onError: onUploadError })); } - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, { - group: "block" - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, { - onClick: () => { - setShowCaption(!showCaption); - if (showCaption && caption) { - setAttributes({ - caption: undefined - }); - } - }, - icon: library_caption, - isPressed: showCaption, - label: showCaption ? (0,external_wp_i18n_namespaceObject.__)('Remove caption') : (0,external_wp_i18n_namespaceObject.__)('Add caption') - })), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, { + return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, isSingleSelected && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, { group: "other" - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.MediaReplaceFlow, { mediaId: id, mediaURL: src, allowedTypes: ALLOWED_MEDIA_TYPES, @@ -3312,20 +3421,20 @@ function AudioEdit({ onSelect: onSelectAudio, onSelectURL: onSelectURL, onError: onUploadError - })), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, { + })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, { title: (0,external_wp_i18n_namespaceObject.__)('Settings') - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('Autoplay'), onChange: toggleAttribute('autoplay'), checked: autoplay, help: getAutoplayHelp - }), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { + }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('Loop'), onChange: toggleAttribute('loop'), checked: loop - }), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, { + }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SelectControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject._x)('Preload', 'noun; Audio block parameter'), value: preload || '' @@ -3347,29 +3456,23 @@ function AudioEdit({ value: 'none', label: (0,external_wp_i18n_namespaceObject._x)('None', 'Preload value') }] - }))), (0,external_wp_element_namespaceObject.createElement)("figure", { + }))), (0,external_React_namespaceObject.createElement)("figure", { ...blockProps - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, { - isDisabled: !isSelected - }, (0,external_wp_element_namespaceObject.createElement)("audio", { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, { + isDisabled: !isSingleSelected + }, (0,external_React_namespaceObject.createElement)("audio", { controls: "controls", src: src - })), isTemporaryAudio && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null), showCaption && (!external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) || isSelected) && (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, { - identifier: "caption", - tagName: "figcaption", - className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption'), - ref: captionRef, - "aria-label": (0,external_wp_i18n_namespaceObject.__)('Audio caption text'), - placeholder: (0,external_wp_i18n_namespaceObject.__)('Add caption'), - value: caption, - onChange: value => setAttributes({ - caption: value - }), - inlineToolbar: true, - __unstableOnSplitAtEnd: () => insertBlocksAfter((0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)())) + })), isTemporaryAudio && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null), (0,external_React_namespaceObject.createElement)(Caption, { + attributes: attributes, + setAttributes: setAttributes, + isSelected: isSingleSelected, + insertBlocksAfter: insertBlocksAfter, + label: (0,external_wp_i18n_namespaceObject.__)('Audio caption text'), + showToolbarButton: isSingleSelected }))); } -/* harmony default export */ var edit = (AudioEdit); +/* harmony default export */ const edit = (AudioEdit); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/save.js @@ -3387,15 +3490,15 @@ function save({ preload, src } = attributes; - return src && (0,external_wp_element_namespaceObject.createElement)("figure", { + return src && (0,external_React_namespaceObject.createElement)("figure", { ...external_wp_blockEditor_namespaceObject.useBlockProps.save() - }, (0,external_wp_element_namespaceObject.createElement)("audio", { + }, (0,external_React_namespaceObject.createElement)("audio", { controls: "controls", src: src, autoPlay: autoplay, loop: loop, preload: preload - }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + }), !external_wp_blockEditor_namespaceObject.RichText.isEmpty(caption) && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: "figcaption", value: caption, className: (0,external_wp_blockEditor_namespaceObject.__experimentalGetElementClassName)('caption') @@ -3476,7 +3579,7 @@ const transforms = { } }] }; -/* harmony default export */ var audio_transforms = (transforms); +/* harmony default export */ const audio_transforms = (transforms); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/audio/index.js /** @@ -3508,8 +3611,8 @@ const audio_metadata = { __experimentalRole: "content" }, caption: { - type: "string", - source: "html", + type: "rich-text", + source: "rich-text", selector: "figcaption", __experimentalRole: "content" }, @@ -3546,6 +3649,9 @@ const audio_metadata = { margin: false, padding: false } + }, + interactivity: { + clientNavigation: true } }, editorStyle: "wp-block-audio-editor", @@ -3582,13 +3688,13 @@ const audio_init = () => initBlock({ * WordPress dependencies */ -const button_button = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const button_button = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { d: "M8 12.5h8V11H8v1.5Z M19 6.5H5a2 2 0 0 0-2 2V15a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8.5a2 2 0 0 0-2-2ZM5 8h14a.5.5 0 0 1 .5.5V15a.5.5 0 0 1-.5.5H5a.5.5 0 0 1-.5-.5V8.5A.5.5 0 0 1 5 8Z" })); -/* harmony default export */ var library_button = (button_button); +/* harmony default export */ const library_button = (button_button); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/utils/migrate-font-family.js /** @@ -3864,11 +3970,11 @@ const v11 = { [`has-custom-width wp-block-button__width-${width}`]: width, [`has-custom-font-size`]: fontSize || style?.typography?.fontSize }); - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...external_wp_blockEditor_namespaceObject.useBlockProps.save({ className: wrapperClasses }) - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: "a", className: buttonClasses, href: url, @@ -3992,11 +4098,11 @@ const v10 = { [`has-custom-width wp-block-button__width-${width}`]: width, [`has-custom-font-size`]: fontSize || style?.typography?.fontSize }); - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...external_wp_blockEditor_namespaceObject.useBlockProps.save({ className: wrapperClasses }) - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: "a", className: buttonClasses, href: url, @@ -4100,11 +4206,11 @@ const deprecated_deprecated = [v11, v10, { [`has-custom-width wp-block-button__width-${width}`]: width, [`has-custom-font-size`]: fontSize || style?.typography?.fontSize }); - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...external_wp_blockEditor_namespaceObject.useBlockProps.save({ className: wrapperClasses }) - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: "a", className: buttonClasses, href: url, @@ -4192,11 +4298,11 @@ const deprecated_deprecated = [v11, v10, { const wrapperClasses = classnames_default()(className, { [`has-custom-width wp-block-button__width-${width}`]: width }); - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...external_wp_blockEditor_namespaceObject.useBlockProps.save({ className: wrapperClasses }) - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: "a", className: buttonClasses, href: url, @@ -4284,11 +4390,11 @@ const deprecated_deprecated = [v11, v10, { const wrapperClasses = classnames_default()(className, { [`has-custom-width wp-block-button__width-${width}`]: width }); - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...external_wp_blockEditor_namespaceObject.useBlockProps.save({ className: wrapperClasses }) - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: "a", className: buttonClasses, href: url, @@ -4358,7 +4464,7 @@ const deprecated_deprecated = [v11, v10, { const buttonStyle = { borderRadius: borderRadius ? borderRadius + 'px' : undefined }; - return (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + return (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: "a", className: buttonClasses, href: url, @@ -4455,7 +4561,7 @@ const deprecated_deprecated = [v11, v10, { // if it had already been assigned, for the sake of backward-compatibility. // A title will no longer be assigned for new or updated button block links. - return (0,external_wp_element_namespaceObject.createElement)("div", null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + return (0,external_React_namespaceObject.createElement)("div", null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: "a", className: buttonClasses, href: url, @@ -4541,7 +4647,7 @@ const deprecated_deprecated = [v11, v10, { backgroundColor: backgroundClass ? undefined : customBackgroundColor, color: textClass ? undefined : customTextColor }; - return (0,external_wp_element_namespaceObject.createElement)("div", null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + return (0,external_React_namespaceObject.createElement)("div", null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: "a", className: buttonClasses, href: url, @@ -4597,7 +4703,7 @@ const deprecated_deprecated = [v11, v10, { backgroundColor: backgroundClass ? undefined : customBackgroundColor, color: textClass ? undefined : customTextColor }; - return (0,external_wp_element_namespaceObject.createElement)("div", null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + return (0,external_React_namespaceObject.createElement)("div", null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: "a", className: buttonClasses, href: url, @@ -4636,9 +4742,9 @@ const deprecated_deprecated = [v11, v10, { color: textColor }; const linkClass = 'wp-block-button__link'; - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { className: `align${align}` - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: "a", className: linkClass, href: url, @@ -4673,12 +4779,12 @@ const deprecated_deprecated = [v11, v10, { color, textColor } = attributes; - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { className: `align${align}`, style: { backgroundColor: color } - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: "a", href: url, title: title, @@ -4690,23 +4796,90 @@ const deprecated_deprecated = [v11, v10, { }, migrate: oldColorsMigration }]; -/* harmony default export */ var button_deprecated = (deprecated_deprecated); +/* harmony default export */ const button_deprecated = (deprecated_deprecated); + +;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/constants.js +const NEW_TAB_REL = 'noreferrer noopener'; +const NEW_TAB_TARGET = '_blank'; +const NOFOLLOW_REL = 'nofollow'; + +;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/get-updated-link-attributes.js +/** + * Internal dependencies + */ + + +/** + * WordPress dependencies + */ + + +/** + * Updates the link attributes. + * + * @param {Object} attributes The current block attributes. + * @param {string} attributes.rel The current link rel attribute. + * @param {string} attributes.url The current link url. + * @param {boolean} attributes.opensInNewTab Whether the link should open in a new window. + * @param {boolean} attributes.nofollow Whether the link should be marked as nofollow. + */ +function getUpdatedLinkAttributes({ + rel = '', + url = '', + opensInNewTab, + nofollow +}) { + let newLinkTarget; + // Since `rel` is editable attribute, we need to check for existing values and proceed accordingly. + let updatedRel = rel; + if (opensInNewTab) { + newLinkTarget = NEW_TAB_TARGET; + updatedRel = updatedRel?.includes(NEW_TAB_REL) ? updatedRel : updatedRel + ` ${NEW_TAB_REL}`; + } else { + const relRegex = new RegExp(`\\b${NEW_TAB_REL}\\s*`, 'g'); + updatedRel = updatedRel?.replace(relRegex, '').trim(); + } + if (nofollow) { + updatedRel = updatedRel?.includes(NOFOLLOW_REL) ? updatedRel : updatedRel + ` ${NOFOLLOW_REL}`; + } else { + const relRegex = new RegExp(`\\b${NOFOLLOW_REL}\\s*`, 'g'); + updatedRel = updatedRel?.replace(relRegex, '').trim(); + } + return { + url: (0,external_wp_url_namespaceObject.prependHTTP)(url), + linkTarget: newLinkTarget, + rel: updatedRel || undefined + }; +} + +;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/utils/remove-anchor-tag.js +/** + * Removes anchor tags from a string. + * + * @param {string} value The value to remove anchor tags from. + * + * @return {string} The value with anchor tags removed. + */ +function removeAnchorTag(value) { + // To do: Refactor this to use rich text's removeFormat instead. + return value.toString().replace(/<\/?a[^>]*>/g, ''); +} ;// CONCATENATED MODULE: external ["wp","keycodes"] -var external_wp_keycodes_namespaceObject = window["wp"]["keycodes"]; +const external_wp_keycodes_namespaceObject = window["wp"]["keycodes"]; ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/link.js /** * WordPress dependencies */ -const link_link = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const link_link = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { d: "M10 17.389H8.444A5.194 5.194 0 1 1 8.444 7H10v1.5H8.444a3.694 3.694 0 0 0 0 7.389H10v1.5ZM14 7h1.556a5.194 5.194 0 0 1 0 10.39H14v-1.5h1.556a3.694 3.694 0 0 0 0-7.39H14V7Zm-4.5 6h5v-1.5h-5V13Z" })); -/* harmony default export */ var library_link = (link_link); +/* harmony default export */ const library_link = (link_link); ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/link-off.js @@ -4714,13 +4887,13 @@ const link_link = (0,external_wp_element_namespaceObject.createElement)(external * WordPress dependencies */ -const linkOff = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const linkOff = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { d: "M17.031 4.703 15.576 4l-1.56 3H14v.03l-2.324 4.47H9.5V13h1.396l-1.502 2.889h-.95a3.694 3.694 0 0 1 0-7.389H10V7H8.444a5.194 5.194 0 1 0 0 10.389h.17L7.5 19.53l1.416.719L15.049 8.5h.507a3.694 3.694 0 0 1 0 7.39H14v1.5h1.556a5.194 5.194 0 0 0 .273-10.383l1.202-2.304Z" })); -/* harmony default export */ var link_off = (linkOff); +/* harmony default export */ const link_off = (linkOff); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/edit.js @@ -4729,6 +4902,14 @@ const linkOff = (0,external_wp_element_namespaceObject.createElement)(external_w */ +/** + * Internal dependencies + */ + + + + + /** * WordPress dependencies */ @@ -4741,7 +4922,58 @@ const linkOff = (0,external_wp_element_namespaceObject.createElement)(external_w -const NEW_TAB_REL = 'noreferrer noopener'; +const LINK_SETTINGS = [...external_wp_blockEditor_namespaceObject.__experimentalLinkControl.DEFAULT_LINK_SETTINGS, { + id: 'nofollow', + title: (0,external_wp_i18n_namespaceObject.__)('Mark as nofollow') +}]; +function useEnter(props) { + const { + replaceBlocks, + selectionChange + } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store); + const { + getBlock, + getBlockRootClientId, + getBlockIndex + } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store); + const propsRef = (0,external_wp_element_namespaceObject.useRef)(props); + propsRef.current = props; + return (0,external_wp_compose_namespaceObject.useRefEffect)(element => { + function onKeyDown(event) { + if (event.defaultPrevented || event.keyCode !== external_wp_keycodes_namespaceObject.ENTER) { + return; + } + const { + content, + clientId + } = propsRef.current; + if (content.length) { + return; + } + event.preventDefault(); + const topParentListBlock = getBlock(getBlockRootClientId(clientId)); + const blockIndex = getBlockIndex(clientId); + const head = (0,external_wp_blocks_namespaceObject.cloneBlock)({ + ...topParentListBlock, + innerBlocks: topParentListBlock.innerBlocks.slice(0, blockIndex) + }); + const middle = (0,external_wp_blocks_namespaceObject.createBlock)((0,external_wp_blocks_namespaceObject.getDefaultBlockName)()); + const after = topParentListBlock.innerBlocks.slice(blockIndex + 1); + const tail = after.length ? [(0,external_wp_blocks_namespaceObject.cloneBlock)({ + ...topParentListBlock, + innerBlocks: after + })] : []; + replaceBlocks(topParentListBlock.clientId, [head, middle, ...tail], 1); + // We manually change the selection here because we are replacing + // a different block than the selected one. + selectionChange(middle.clientId); + } + element.addEventListener('keydown', onKeyDown); + return () => { + element.removeEventListener('keydown', onKeyDown); + }; + }, []); +} function WidthPanel({ selectedWidth, setAttributes @@ -4755,12 +4987,12 @@ function WidthPanel({ width }); } - return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, { + return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, { title: (0,external_wp_i18n_namespaceObject.__)('Width settings') - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ButtonGroup, { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ButtonGroup, { "aria-label": (0,external_wp_i18n_namespaceObject.__)('Button width') }, [25, 50, 75, 100].map(widthValue => { - return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, { + return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, { key: widthValue, size: "small", variant: widthValue === selectedWidth ? 'primary' : undefined, @@ -4775,7 +5007,8 @@ function ButtonEdit(props) { className, isSelected, onReplace, - mergeBlocks + mergeBlocks, + clientId } = props; const { tagName, @@ -4786,28 +5019,10 @@ function ButtonEdit(props) { style, text, url, - width + width, + metadata } = attributes; const TagName = tagName || 'a'; - function onToggleOpenInNewTab(value) { - const newLinkTarget = value ? '_blank' : undefined; - let updatedRel = rel; - if (newLinkTarget && !rel) { - updatedRel = NEW_TAB_REL; - } else if (!newLinkTarget && rel === NEW_TAB_REL) { - updatedRel = undefined; - } - setAttributes({ - linkTarget: newLinkTarget, - rel: updatedRel - }); - } - function setButtonText(newText) { - // Remove anchor tags from button text content. - setAttributes({ - text: newText.replace(/<\/?a[^>]*>/g, '') - }); - } function onKeyDown(event) { if (external_wp_keycodes_namespaceObject.isKeyboardEvent.primary(event, 'k')) { startEditing(event); @@ -4823,15 +5038,18 @@ function ButtonEdit(props) { const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalUseBorderProps)(attributes); const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalUseColorProps)(attributes); const spacingProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetSpacingClassesAndStyles)(attributes); + const shadowProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetShadowClassesAndStyles)(attributes); const ref = (0,external_wp_element_namespaceObject.useRef)(); const richTextRef = (0,external_wp_element_namespaceObject.useRef)(); const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({ ref: (0,external_wp_compose_namespaceObject.useMergeRefs)([setPopoverAnchor, ref]), onKeyDown }); + const blockEditingMode = (0,external_wp_blockEditor_namespaceObject.useBlockEditingMode)(); const [isEditingURL, setIsEditingURL] = (0,external_wp_element_namespaceObject.useState)(false); const isURLSet = !!url; - const opensInNewTab = linkTarget === '_blank'; + const opensInNewTab = linkTarget === NEW_TAB_TARGET; + const nofollow = !!rel?.includes(NOFOLLOW_REL); const isLinkTag = 'a' === TagName; function startEditing(event) { event.preventDefault(); @@ -4855,20 +5073,39 @@ function ButtonEdit(props) { // This is a temporary fix. See https://github.com/WordPress/gutenberg/issues/51256. const linkValue = (0,external_wp_element_namespaceObject.useMemo)(() => ({ url, - opensInNewTab - }), [url, opensInNewTab]); - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("div", { + opensInNewTab, + nofollow + }), [url, opensInNewTab, nofollow]); + const useEnterRef = useEnter({ + content: text, + clientId + }); + const mergedRef = (0,external_wp_compose_namespaceObject.useMergeRefs)([useEnterRef, richTextRef]); + const { + lockUrlControls = false + } = (0,external_wp_data_namespaceObject.useSelect)(select => { + if (!isSelected) { + return {}; + } + const blockBindingsSource = unlock(select(external_wp_blocks_namespaceObject.store)).getBlockBindingsSource(metadata?.bindings?.url?.source); + return { + lockUrlControls: !!metadata?.bindings?.url && (!blockBindingsSource || blockBindingsSource?.lockAttributesEditing) + }; + }, [isSelected]); + return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", { ...blockProps, className: classnames_default()(blockProps.className, { [`has-custom-width wp-block-button__width-${width}`]: width, [`has-custom-font-size`]: blockProps.style.fontSize }) - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, { - ref: richTextRef, + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, { + ref: mergedRef, "aria-label": (0,external_wp_i18n_namespaceObject.__)('Button text'), placeholder: placeholder || (0,external_wp_i18n_namespaceObject.__)('Add text…'), value: text, - onChange: value => setButtonText(value), + onChange: value => setAttributes({ + text: removeAnchorTag(value) + }), withoutInteractiveFormatting: true, className: classnames_default()(className, 'wp-block-button__link', colorProps.className, borderProps.className, { [`has-text-align-${textAlign}`]: textAlign, @@ -4879,7 +5116,8 @@ function ButtonEdit(props) { style: { ...borderProps.style, ...colorProps.style, - ...spacingProps.style + ...spacingProps.style, + ...shadowProps.style }, onSplit: value => (0,external_wp_blocks_namespaceObject.createBlock)('core/button', { ...attributes, @@ -4888,29 +5126,29 @@ function ButtonEdit(props) { onReplace: onReplace, onMerge: mergeBlocks, identifier: "text" - })), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, { + })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, { group: "block" - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, { + }, blockEditingMode === 'default' && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.AlignmentControl, { value: textAlign, onChange: nextAlign => { setAttributes({ textAlign: nextAlign }); } - }), !isURLSet && isLinkTag && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, { + }), !isURLSet && isLinkTag && !lockUrlControls && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, { name: "link", icon: library_link, title: (0,external_wp_i18n_namespaceObject.__)('Link'), shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primary('k'), onClick: startEditing - }), isURLSet && isLinkTag && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, { + }), isURLSet && isLinkTag && !lockUrlControls && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, { name: "link", icon: link_off, title: (0,external_wp_i18n_namespaceObject.__)('Unlink'), shortcut: external_wp_keycodes_namespaceObject.displayShortcut.primaryShift('k'), onClick: unlink, isActive: true - })), isLinkTag && isSelected && (isEditingURL || isURLSet) && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, { + })), isLinkTag && isSelected && (isEditingURL || isURLSet) && !lockUrlControls && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Popover, { placement: "bottom", onClose: () => { setIsEditingURL(false); @@ -4920,30 +5158,30 @@ function ButtonEdit(props) { focusOnMount: isEditingURL ? 'firstElement' : false, __unstableSlotName: '__unstable-block-tools-after', shift: true - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalLinkControl, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalLinkControl, { value: linkValue, onChange: ({ - url: newURL = '', - opensInNewTab: newOpensInNewTab - }) => { - setAttributes({ - url: (0,external_wp_url_namespaceObject.prependHTTP)(newURL) - }); - if (opensInNewTab !== newOpensInNewTab) { - onToggleOpenInNewTab(newOpensInNewTab); - } - }, + url: newURL, + opensInNewTab: newOpensInNewTab, + nofollow: newNofollow + }) => setAttributes(getUpdatedLinkAttributes({ + rel, + url: newURL, + opensInNewTab: newOpensInNewTab, + nofollow: newNofollow + })), onRemove: () => { unlink(); richTextRef.current?.focus(); }, - forceIsEditingLink: isEditingURL - })), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_wp_element_namespaceObject.createElement)(WidthPanel, { + forceIsEditingLink: isEditingURL, + settings: LINK_SETTINGS + })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(WidthPanel, { selectedWidth: width, setAttributes: setAttributes - })), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, { + })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, { group: "advanced" - }, isLinkTag && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, { + }, isLinkTag && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.TextControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('Link rel'), value: rel || '', @@ -4952,7 +5190,7 @@ function ButtonEdit(props) { }) }))); } -/* harmony default export */ var button_edit = (ButtonEdit); +/* harmony default export */ const button_edit = (ButtonEdit); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/button/save.js @@ -4982,7 +5220,7 @@ function save_save({ url, width } = attributes; - if (!text) { + if (external_wp_blockEditor_namespaceObject.RichText.isEmpty(text)) { return null; } const TagName = tagName || 'a'; @@ -4991,6 +5229,7 @@ function save_save({ const borderProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetBorderClassesAndStyles)(attributes); const colorProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetColorClassesAndStyles)(attributes); const spacingProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetSpacingClassesAndStyles)(attributes); + const shadowProps = (0,external_wp_blockEditor_namespaceObject.__experimentalGetShadowClassesAndStyles)(attributes); const buttonClasses = classnames_default()('wp-block-button__link', colorProps.className, borderProps.className, { [`has-text-align-${textAlign}`]: textAlign, // For backwards compatibility add style that isn't provided via @@ -5000,7 +5239,8 @@ function save_save({ const buttonStyle = { ...borderProps.style, ...colorProps.style, - ...spacingProps.style + ...spacingProps.style, + ...shadowProps.style }; // The use of a `title` attribute here is soft-deprecated, but still applied @@ -5011,11 +5251,11 @@ function save_save({ [`has-custom-width wp-block-button__width-${width}`]: width, [`has-custom-font-size`]: fontSize || style?.typography?.fontSize }); - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...external_wp_blockEditor_namespaceObject.useBlockProps.save({ className: wrapperClasses }) - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { tagName: TagName, type: isButtonTag ? buttonType : null, className: buttonClasses, @@ -5079,8 +5319,8 @@ const button_metadata = { __experimentalRole: "content" }, text: { - type: "string", - source: "html", + type: "rich-text", + source: "rich-text", selector: "a,button", __experimentalRole: "content" }, @@ -5140,7 +5380,9 @@ const button_metadata = { } }, reusable: false, - shadow: true, + shadow: { + __experimentalSkipSerialization: true + }, spacing: { __experimentalSkipSerialization: true, padding: ["horizontal", "vertical"], @@ -5161,7 +5403,10 @@ const button_metadata = { width: true } }, - __experimentalSelector: ".wp-block-button .wp-block-button__link" + __experimentalSelector: ".wp-block-button .wp-block-button__link", + interactivity: { + clientNavigation: true + } }, styles: [{ name: "fill", @@ -5209,13 +5454,13 @@ const button_init = () => initBlock({ * WordPress dependencies */ -const buttons = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const buttons = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { d: "M14.5 17.5H9.5V16H14.5V17.5Z M14.5 8H9.5V6.5H14.5V8Z M7 3.5H17C18.1046 3.5 19 4.39543 19 5.5V9C19 10.1046 18.1046 11 17 11H7C5.89543 11 5 10.1046 5 9V5.5C5 4.39543 5.89543 3.5 7 3.5ZM17 5H7C6.72386 5 6.5 5.22386 6.5 5.5V9C6.5 9.27614 6.72386 9.5 7 9.5H17C17.2761 9.5 17.5 9.27614 17.5 9V5.5C17.5 5.22386 17.2761 5 17 5Z M7 13H17C18.1046 13 19 13.8954 19 15V18.5C19 19.6046 18.1046 20.5 17 20.5H7C5.89543 20.5 5 19.6046 5 18.5V15C5 13.8954 5.89543 13 7 13ZM17 14.5H7C6.72386 14.5 6.5 14.7239 6.5 15V18.5C6.5 18.7761 6.72386 19 7 19H17C17.2761 19 17.5 18.7761 17.5 18.5V15C17.5 14.7239 17.2761 14.5 17 14.5Z" })); -/* harmony default export */ var library_buttons = (buttons); +/* harmony default export */ const library_buttons = (buttons); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/buttons/deprecated.js @@ -5288,14 +5533,14 @@ const buttons_deprecated_deprecated = [{ orientation } }) { - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...external_wp_blockEditor_namespaceObject.useBlockProps.save({ className: classnames_default()({ [`is-content-justification-${contentJustification}`]: contentJustification, 'is-vertical': orientation === 'vertical' }) }) - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); } }, { supports: { @@ -5303,7 +5548,7 @@ const buttons_deprecated_deprecated = [{ anchor: true }, save() { - return (0,external_wp_element_namespaceObject.createElement)("div", null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); + return (0,external_React_namespaceObject.createElement)("div", null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); }, isEligible({ align @@ -5324,16 +5569,73 @@ const buttons_deprecated_deprecated = [{ }); } }]; -/* harmony default export */ var buttons_deprecated = (buttons_deprecated_deprecated); +/* harmony default export */ const buttons_deprecated = (buttons_deprecated_deprecated); ;// CONCATENATED MODULE: external ["wp","richText"] -var external_wp_richText_namespaceObject = window["wp"]["richText"]; +const external_wp_richText_namespaceObject = window["wp"]["richText"]; +;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/utils/get-transformed-metadata.js +/** + * WordPress dependencies + */ + + +/** + * Transform the metadata attribute with only the values and bindings specified by each transform. + * Returns `undefined` if the input metadata is falsy. + * + * @param {Object} metadata Original metadata attribute from the block that is being transformed. + * @param {Object} newBlockName Name of the final block after the transformation. + * @param {Function} bindingsCallback Optional callback to transform the `bindings` property object. + * @return {Object|undefined} New metadata object only with the relevant properties. + */ +function getTransformedMetadata(metadata, newBlockName, bindingsCallback) { + if (!metadata) { + return; + } + const { + supports + } = (0,external_wp_blocks_namespaceObject.getBlockType)(newBlockName); + // Fixed until an opt-in mechanism is implemented. + const BLOCK_BINDINGS_SUPPORTED_BLOCKS = ['core/paragraph', 'core/heading', 'core/image', 'core/button']; + // The metadata properties that should be preserved after the transform. + const transformSupportedProps = []; + // If it support bindings, and there is a transform bindings callback, add the `id` and `bindings` properties. + if (BLOCK_BINDINGS_SUPPORTED_BLOCKS.includes(newBlockName) && bindingsCallback) { + transformSupportedProps.push('id', 'bindings'); + } + // If it support block naming (true by default), add the `name` property. + if (supports.renaming !== false) { + transformSupportedProps.push('name'); + } + + // Return early if no supported properties. + if (!transformSupportedProps.length) { + return; + } + const newMetadata = Object.entries(metadata).reduce((obj, [prop, value]) => { + // If prop is not supported, don't add it to the new metadata object. + if (!transformSupportedProps.includes(prop)) { + return obj; + } + obj[prop] = prop === 'bindings' ? bindingsCallback(value) : value; + return obj; + }, {}); + + // Return undefined if object is empty. + return Object.keys(newMetadata).length ? newMetadata : undefined; +} + ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/buttons/transforms.js /** * WordPress dependencies */ + +/** + * Internal dependencies + */ + const transforms_transforms = { from: [{ type: 'block', @@ -5355,7 +5657,11 @@ const transforms_transforms = { (0,external_wp_blocks_namespaceObject.createBlock)('core/buttons', {}, // Loop the selected buttons. buttons.map(attributes => { - const element = (0,external_wp_richText_namespaceObject.__unstableCreateElement)(document, attributes.content); + const { + content, + metadata + } = attributes; + const element = (0,external_wp_richText_namespaceObject.__unstableCreateElement)(document, content); // Remove any HTML tags. const text = element.innerText || ''; // Get first url. @@ -5364,7 +5670,12 @@ const transforms_transforms = { // Create singular button in the buttons block. return (0,external_wp_blocks_namespaceObject.createBlock)('core/button', { text, - url + url, + metadata: getTransformedMetadata(metadata, 'core/button', ({ + content: contentBinding + }) => ({ + text: contentBinding + })) }); })), isMatch: paragraphs => { @@ -5377,7 +5688,7 @@ const transforms_transforms = { } }] }; -/* harmony default export */ var buttons_transforms = (transforms_transforms); +/* harmony default export */ const buttons_transforms = (transforms_transforms); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/buttons/edit.js @@ -5392,14 +5703,8 @@ const transforms_transforms = { - -/** - * Internal dependencies - */ - -const ALLOWED_BLOCKS = [button_name]; const DEFAULT_BLOCK = { - name: button_name, + name: 'core/button', attributesToCopy: ['backgroundColor', 'border', 'className', 'fontFamily', 'fontSize', 'gradient', 'style', 'textColor', 'width'] }; function ButtonsEdit({ @@ -5422,28 +5727,27 @@ function ButtonsEdit({ hasButtonVariations } = (0,external_wp_data_namespaceObject.useSelect)(select => { const preferredStyleVariations = select(external_wp_blockEditor_namespaceObject.store).getSettings().__experimentalPreferredStyleVariations; - const buttonVariations = select(external_wp_blocks_namespaceObject.store).getBlockVariations(button_name, 'inserter'); + const buttonVariations = select(external_wp_blocks_namespaceObject.store).getBlockVariations('core/button', 'inserter'); return { - preferredStyle: preferredStyleVariations?.value?.[button_name], + preferredStyle: preferredStyleVariations?.value?.['core/button'], hasButtonVariations: buttonVariations.length > 0 }; }, []); const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(blockProps, { - allowedBlocks: ALLOWED_BLOCKS, defaultBlock: DEFAULT_BLOCK, // This check should be handled by the `Inserter` internally to be consistent across all blocks that use it. directInsert: !hasButtonVariations, - template: [[button_name, { + template: [['core/button', { className: preferredStyle && `is-style-${preferredStyle}` }]], templateInsertUpdatesSelection: true, orientation: (_layout$orientation = layout?.orientation) !== null && _layout$orientation !== void 0 ? _layout$orientation : 'horizontal' }); - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...innerBlocksProps }); } -/* harmony default export */ var buttons_edit = (ButtonsEdit); +/* harmony default export */ const buttons_edit = (ButtonsEdit); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/buttons/save.js @@ -5470,7 +5774,7 @@ function buttons_save_save({ }) }); const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps); - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...innerBlocksProps }); } @@ -5495,6 +5799,7 @@ const buttons_metadata = { name: "core/buttons", title: "Buttons", category: "design", + allowedBlocks: ["core/button"], description: "Prompt visitors to take action with a group of button-style links.", keywords: ["link"], textdomain: "default", @@ -5529,6 +5834,9 @@ const buttons_metadata = { "default": { type: "flex" } + }, + interactivity: { + clientNavigation: true } }, editorStyle: "wp-block-buttons-editor", @@ -5571,13 +5879,13 @@ const buttons_init = () => initBlock({ * WordPress dependencies */ -const calendar = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const calendar = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm.5 16c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5V7h15v12zM9 10H7v2h2v-2zm0 4H7v2h2v-2zm4-4h-2v2h2v-2zm4 0h-2v2h2v-2zm-4 4h-2v2h2v-2zm4 0h-2v2h2v-2z" })); -/* harmony default export */ var library_calendar = (calendar); +/* harmony default export */ const library_calendar = (calendar); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/edit.js @@ -5656,16 +5964,16 @@ function CalendarEdit({ }; }, []); if (!hasPosts) { - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...blockProps - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, { icon: library_calendar, label: (0,external_wp_i18n_namespaceObject.__)('Calendar') - }, !hasPostsResolved ? (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null) : (0,external_wp_i18n_namespaceObject.__)('No published posts found.'))); + }, !hasPostsResolved ? (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null) : (0,external_wp_i18n_namespaceObject.__)('No published posts found.'))); } - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...blockProps - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, null, (0,external_wp_element_namespaceObject.createElement)((external_wp_serverSideRender_default()), { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Disabled, null, (0,external_React_namespaceObject.createElement)((external_wp_serverSideRender_default()), { block: "core/calendar", attributes: { ...attributes, @@ -5691,7 +5999,7 @@ const calendar_transforms_transforms = { transform: () => (0,external_wp_blocks_namespaceObject.createBlock)('core/archives') }] }; -/* harmony default export */ var calendar_transforms = (calendar_transforms_transforms); +/* harmony default export */ const calendar_transforms = (calendar_transforms_transforms); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/calendar/index.js /** @@ -5742,6 +6050,9 @@ const calendar_metadata = { __experimentalDefaultControls: { fontSize: true } + }, + interactivity: { + clientNavigation: true } }, style: "wp-block-calendar" @@ -5770,31 +6081,31 @@ const calendar_init = () => initBlock({ * WordPress dependencies */ -const category = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const category = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { d: "M6 5.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM4 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2V6zm11-.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5h-3a.5.5 0 01-.5-.5V6a.5.5 0 01.5-.5zM13 6a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2h-3a2 2 0 01-2-2V6zm5 8.5h-3a.5.5 0 00-.5.5v3a.5.5 0 00.5.5h3a.5.5 0 00.5-.5v-3a.5.5 0 00-.5-.5zM15 13a2 2 0 00-2 2v3a2 2 0 002 2h3a2 2 0 002-2v-3a2 2 0 00-2-2h-3zm-9 1.5h3a.5.5 0 01.5.5v3a.5.5 0 01-.5.5H6a.5.5 0 01-.5-.5v-3a.5.5 0 01.5-.5zM4 15a2 2 0 012-2h3a2 2 0 012 2v3a2 2 0 01-2 2H6a2 2 0 01-2-2v-3z", fillRule: "evenodd", clipRule: "evenodd" })); -/* harmony default export */ var library_category = (category); +/* harmony default export */ const library_category = (category); ;// CONCATENATED MODULE: external ["wp","htmlEntities"] -var external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"]; +const external_wp_htmlEntities_namespaceObject = window["wp"]["htmlEntities"]; ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/pin.js /** * WordPress dependencies */ -const pin = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const pin = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { d: "m21.5 9.1-6.6-6.6-4.2 5.6c-1.2-.1-2.4.1-3.6.7-.1 0-.1.1-.2.1-.5.3-.9.6-1.2.9l3.7 3.7-5.7 5.7v1.1h1.1l5.7-5.7 3.7 3.7c.4-.4.7-.8.9-1.2.1-.1.1-.2.2-.3.6-1.1.8-2.4.6-3.6l5.6-4.1zm-7.3 3.5.1.9c.1.9 0 1.8-.4 2.6l-6-6c.8-.4 1.7-.5 2.6-.4l.9.1L15 4.9 19.1 9l-4.9 3.6z" })); -/* harmony default export */ var library_pin = (pin); +/* harmony default export */ const library_pin = (pin); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/edit.js @@ -5865,26 +6176,26 @@ function CategoriesEdit({ count, name } = category; - return (0,external_wp_element_namespaceObject.createElement)("li", { + return (0,external_React_namespaceObject.createElement)("li", { key: id, className: `cat-item cat-item-${id}` - }, (0,external_wp_element_namespaceObject.createElement)("a", { + }, (0,external_React_namespaceObject.createElement)("a", { href: link, target: "_blank", rel: "noreferrer noopener" - }, renderCategoryName(name)), showPostCounts && ` (${count})`, showHierarchy && !!childCategories.length && (0,external_wp_element_namespaceObject.createElement)("ul", { + }, renderCategoryName(name)), showPostCounts && ` (${count})`, showHierarchy && !!childCategories.length && (0,external_React_namespaceObject.createElement)("ul", { className: "children" }, childCategories.map(childCategory => renderCategoryListItem(childCategory)))); }; const renderCategoryDropdown = () => { const parentId = showHierarchy ? 0 : null; const categoriesList = getCategoriesList(parentId); - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, { + return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.VisuallyHidden, { as: "label", htmlFor: selectId - }, (0,external_wp_i18n_namespaceObject.__)('Categories')), (0,external_wp_element_namespaceObject.createElement)("select", { + }, (0,external_wp_i18n_namespaceObject.__)('Categories')), (0,external_React_namespaceObject.createElement)("select", { id: selectId - }, (0,external_wp_element_namespaceObject.createElement)("option", null, (0,external_wp_i18n_namespaceObject.__)('Select Category')), categoriesList.map(category => renderCategoryDropdownItem(category, 0)))); + }, (0,external_React_namespaceObject.createElement)("option", null, (0,external_wp_i18n_namespaceObject.__)('Select Category')), categoriesList.map(category => renderCategoryDropdownItem(category, 0)))); }; const renderCategoryDropdownItem = (category, level) => { const { @@ -5893,7 +6204,7 @@ function CategoriesEdit({ name } = category; const childCategories = getCategoriesList(id); - return [(0,external_wp_element_namespaceObject.createElement)("option", { + return [(0,external_React_namespaceObject.createElement)("option", { key: id, className: `level-${level}` }, Array.from({ @@ -5908,39 +6219,39 @@ function CategoriesEdit({ const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)({ className: classes }); - return (0,external_wp_element_namespaceObject.createElement)(TagName, { + return (0,external_React_namespaceObject.createElement)(TagName, { ...blockProps - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, { title: (0,external_wp_i18n_namespaceObject.__)('Settings') - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('Display as dropdown'), checked: displayAsDropdown, onChange: toggleAttribute('displayAsDropdown') - }), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { + }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('Show post counts'), checked: showPostCounts, onChange: toggleAttribute('showPostCounts') - }), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { + }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('Show only top level categories'), checked: showOnlyTopLevel, onChange: toggleAttribute('showOnlyTopLevel') - }), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { + }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('Show empty categories'), checked: showEmpty, onChange: toggleAttribute('showEmpty') - }), !showOnlyTopLevel && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { + }), !showOnlyTopLevel && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { __nextHasNoMarginBottom: true, label: (0,external_wp_i18n_namespaceObject.__)('Show hierarchy'), checked: showHierarchy, onChange: toggleAttribute('showHierarchy') - }))), isResolving && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, { + }))), isResolving && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Placeholder, { icon: library_pin, label: (0,external_wp_i18n_namespaceObject.__)('Categories') - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null)), !isResolving && categories?.length === 0 && (0,external_wp_element_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Your site does not have any posts, so there is nothing to display here at the moment.')), !isResolving && categories?.length > 0 && (displayAsDropdown ? renderCategoryDropdown() : renderCategoryList())); + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Spinner, null)), !isResolving && categories?.length === 0 && (0,external_React_namespaceObject.createElement)("p", null, (0,external_wp_i18n_namespaceObject.__)('Your site does not have any posts, so there is nothing to display here at the moment.')), !isResolving && categories?.length > 0 && (displayAsDropdown ? renderCategoryDropdown() : renderCategoryList())); } ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/categories/index.js @@ -6006,6 +6317,9 @@ const categories_metadata = { __experimentalDefaultControls: { fontSize: true } + }, + interactivity: { + clientNavigation: true } }, editorStyle: "wp-block-categories-editor", @@ -6033,13 +6347,13 @@ const categories_init = () => initBlock({ * WordPress dependencies */ -const classic = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const classic = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { d: "M20 6H4c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm.5 11c0 .3-.2.5-.5.5H4c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h16c.3 0 .5.2.5.5v9zM10 10H8v2h2v-2zm-5 2h2v-2H5v2zm8-2h-2v2h2v-2zm-5 6h8v-2H8v2zm6-4h2v-2h-2v2zm3 0h2v-2h-2v2zm0 4h2v-2h-2v2zM5 16h2v-2H5v2z" })); -/* harmony default export */ var library_classic = (classic); +/* harmony default export */ const library_classic = (classic); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/freeform/convert-to-blocks-button.js @@ -6060,13 +6374,13 @@ const ConvertToBlocksButton = ({ const block = (0,external_wp_data_namespaceObject.useSelect)(select => { return select(external_wp_blockEditor_namespaceObject.store).getBlock(clientId); }, [clientId]); - return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, { + return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, { onClick: () => replaceBlocks(block.clientId, (0,external_wp_blocks_namespaceObject.rawHandler)({ HTML: (0,external_wp_blocks_namespaceObject.serialize)(block) })) }, (0,external_wp_i18n_namespaceObject.__)('Convert to blocks')); }; -/* harmony default export */ var convert_to_blocks_button = (ConvertToBlocksButton); +/* harmony default export */ const convert_to_blocks_button = (ConvertToBlocksButton); ;// CONCATENATED MODULE: ./node_modules/@wordpress/icons/build-module/library/fullscreen.js @@ -6074,13 +6388,13 @@ const ConvertToBlocksButton = ({ * WordPress dependencies */ -const fullscreen = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const fullscreen = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { d: "M6 4a2 2 0 0 0-2 2v3h1.5V6a.5.5 0 0 1 .5-.5h3V4H6Zm3 14.5H6a.5.5 0 0 1-.5-.5v-3H4v3a2 2 0 0 0 2 2h3v-1.5Zm6 1.5v-1.5h3a.5.5 0 0 0 .5-.5v-3H20v3a2 2 0 0 1-2 2h-3Zm3-16a2 2 0 0 1 2 2v3h-1.5V6a.5.5 0 0 0-.5-.5h-3V4h3Z" })); -/* harmony default export */ var library_fullscreen = (fullscreen); +/* harmony default export */ const library_fullscreen = (fullscreen); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/freeform/modal.js @@ -6103,7 +6417,7 @@ function ModalAuxiliaryActions({ if (isMobileViewport) { return null; } - return (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, { + return (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, { onClick: onClick, icon: library_fullscreen, isPressed: isModalFullScreen, @@ -6143,7 +6457,7 @@ function ClassicEdit(props) { window.wp.oldEditor.remove(props.id); }; }, []); - return (0,external_wp_element_namespaceObject.createElement)("textarea", { + return (0,external_React_namespaceObject.createElement)("textarea", { ...props }); } @@ -6160,30 +6474,30 @@ function ModalEdit(props) { const [isModalFullScreen, setIsModalFullScreen] = (0,external_wp_element_namespaceObject.useState)(false); const id = `editor-${clientId}`; const onClose = () => content ? setOpen(false) : onReplace([]); - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, { + return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarButton, { onClick: () => setOpen(true) - }, (0,external_wp_i18n_namespaceObject.__)('Edit')))), content && (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, content), (isOpen || !content) && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, { + }, (0,external_wp_i18n_namespaceObject.__)('Edit')))), content && (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, content), (isOpen || !content) && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Modal, { title: (0,external_wp_i18n_namespaceObject.__)('Classic Editor'), onRequestClose: onClose, shouldCloseOnClickOutside: false, overlayClassName: "block-editor-freeform-modal", isFullScreen: isModalFullScreen, className: "block-editor-freeform-modal__content", - headerActions: (0,external_wp_element_namespaceObject.createElement)(ModalAuxiliaryActions, { + headerActions: (0,external_React_namespaceObject.createElement)(ModalAuxiliaryActions, { onClick: () => setIsModalFullScreen(!isModalFullScreen), isModalFullScreen: isModalFullScreen }) - }, (0,external_wp_element_namespaceObject.createElement)(ClassicEdit, { + }, (0,external_React_namespaceObject.createElement)(ClassicEdit, { id: id, defaultValue: content - }), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Flex, { + }), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Flex, { className: "block-editor-freeform-modal__actions", justify: "flex-end", expanded: false - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, { variant: "tertiary", onClick: onClose - }, (0,external_wp_i18n_namespaceObject.__)('Cancel'))), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, { + }, (0,external_wp_i18n_namespaceObject.__)('Cancel'))), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.FlexItem, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Button, { variant: "primary", onClick: () => { setAttributes({ @@ -6239,15 +6553,15 @@ function FreeformEdit(props) { const ref = (0,external_wp_compose_namespaceObject.useRefEffect)(element => { setIsIframed(element.ownerDocument !== document); }, []); - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, canRemove && (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_wp_element_namespaceObject.createElement)(convert_to_blocks_button, { + return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, canRemove && (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToolbarGroup, null, (0,external_React_namespaceObject.createElement)(convert_to_blocks_button, { clientId: clientId - }))), (0,external_wp_element_namespaceObject.createElement)("div", { + }))), (0,external_React_namespaceObject.createElement)("div", { ...(0,external_wp_blockEditor_namespaceObject.useBlockProps)({ ref }) - }, isIframed ? (0,external_wp_element_namespaceObject.createElement)(ModalEdit, { + }, isIframed ? (0,external_React_namespaceObject.createElement)(ModalEdit, { ...props - }) : (0,external_wp_element_namespaceObject.createElement)(edit_ClassicEdit, { + }) : (0,external_React_namespaceObject.createElement)(edit_ClassicEdit, { ...props }))); } @@ -6412,14 +6726,14 @@ function edit_ClassicEdit({ // from the KeyboardShortcuts component to stop their propagation. /* eslint-disable jsx-a11y/no-static-element-interactions */ - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)("div", { key: "toolbar", id: `toolbar-${clientId}`, className: "block-library-classic__toolbar", onClick: focus, "data-placeholder": (0,external_wp_i18n_namespaceObject.__)('Classic'), onKeyDown: onToolbarKeyDown - }), (0,external_wp_element_namespaceObject.createElement)("div", { + }), (0,external_React_namespaceObject.createElement)("div", { key: "editor", id: `editor-${clientId}`, className: "wp-block-freeform block-library-rich-text__tinymce" @@ -6439,7 +6753,7 @@ function freeform_save_save({ const { content } = attributes; - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, content); + return (0,external_React_namespaceObject.createElement)(external_wp_element_namespaceObject.RawHTML, null, content); } ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/freeform/index.js @@ -6496,13 +6810,13 @@ const freeform_init = () => initBlock({ * WordPress dependencies */ -const code = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const code = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { d: "M20.8 10.7l-4.3-4.3-1.1 1.1 4.3 4.3c.1.1.1.3 0 .4l-4.3 4.3 1.1 1.1 4.3-4.3c.7-.8.7-1.9 0-2.6zM4.2 11.8l4.3-4.3-1-1-4.3 4.3c-.7.7-.7 1.8 0 2.5l4.3 4.3 1.1-1.1-4.3-4.3c-.2-.1-.2-.3-.1-.4z" })); -/* harmony default export */ var library_code = (code); +/* harmony default export */ const library_code = (code); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/edit.js @@ -6520,9 +6834,9 @@ function CodeEdit({ mergeBlocks }) { const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)(); - return (0,external_wp_element_namespaceObject.createElement)("pre", { + return (0,external_React_namespaceObject.createElement)("pre", { ...blockProps - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText, { tagName: "code", identifier: "content", value: attributes.content, @@ -6604,11 +6918,17 @@ function escapeProtocolInIsolatedUrls(content) { function code_save_save({ attributes }) { - return (0,external_wp_element_namespaceObject.createElement)("pre", { + return (0,external_React_namespaceObject.createElement)("pre", { ...external_wp_blockEditor_namespaceObject.useBlockProps.save() - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { - tagName: "code", - value: utils_escape(attributes.content) + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.RichText.Content, { + tagName: "code" + // To do: `escape` encodes characters in shortcodes and URLs to + // prevent embedding in PHP. Ideally checks for the code block, + // or pre/code tags, should be made on the PHP side? + , + value: utils_escape(typeof attributes.content === 'string' ? attributes.content : attributes.content.toHTMLString({ + preserveWhiteSpace: true + })) })); } @@ -6617,6 +6937,12 @@ function code_save_save({ * WordPress dependencies */ + + +/** + * Internal dependencies + */ + const code_transforms_transforms = { from: [{ type: 'enter', @@ -6624,12 +6950,30 @@ const code_transforms_transforms = { transform: () => (0,external_wp_blocks_namespaceObject.createBlock)('core/code') }, { type: 'block', - blocks: ['core/html', 'core/paragraph'], + blocks: ['core/paragraph'], transform: ({ - content + content, + metadata + }) => (0,external_wp_blocks_namespaceObject.createBlock)('core/code', { + content, + metadata: getTransformedMetadata(metadata, 'core/code') + }) + }, { + type: 'block', + blocks: ['core/html'], + transform: ({ + content: text, + metadata }) => { return (0,external_wp_blocks_namespaceObject.createBlock)('core/code', { - content + // The HTML is plain text (with plain line breaks), so + // convert it to rich text. + content: (0,external_wp_richText_namespaceObject.toHTMLString)({ + value: (0,external_wp_richText_namespaceObject.create)({ + text + }) + }), + metadata: getTransformedMetadata(metadata, 'core/code') }); } }, { @@ -6651,15 +6995,15 @@ const code_transforms_transforms = { type: 'block', blocks: ['core/paragraph'], transform: ({ - content - }) => { - return (0,external_wp_blocks_namespaceObject.createBlock)('core/paragraph', { - content: content.replace(/\n/g, '
') - }); - } + content, + metadata + }) => (0,external_wp_blocks_namespaceObject.createBlock)('core/paragraph', { + content, + metadata: getTransformedMetadata(metadata, 'core/paragraph') + }) }] }; -/* harmony default export */ var code_transforms = (code_transforms_transforms); +/* harmony default export */ const code_transforms = (code_transforms_transforms); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/code/index.js /** @@ -6683,8 +7027,8 @@ const code_metadata = { textdomain: "default", attributes: { content: { - type: "string", - source: "html", + type: "rich-text", + source: "rich-text", selector: "code", __unstablePreserveWhiteSpace: true } @@ -6731,6 +7075,9 @@ const code_metadata = { background: true, text: true } + }, + interactivity: { + clientNavigation: true } }, style: "wp-block-code" @@ -6751,7 +7098,6 @@ const code_settings = { /* eslint-enable @wordpress/i18n-no-collapsible-whitespace */ } }, - merge(attributes, attributesToMerge) { return { content: attributes.content + '\n\n' + attributesToMerge.content @@ -6773,13 +7119,13 @@ const code_init = () => initBlock({ * WordPress dependencies */ -const column = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const column = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { d: "M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zM6 17.5c-.3 0-.5-.2-.5-.5V8c0-.3.2-.5.5-.5h3v10H6zm13.5-.5c0 .3-.2.5-.5.5h-3v-10h3c.3 0 .5.2.5.5v9z" })); -/* harmony default export */ var library_column = (column); +/* harmony default export */ const library_column = (column); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/deprecated.js @@ -6827,13 +7173,13 @@ const column_deprecated_deprecated = [{ const style = { flexBasis: width + '%' }; - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { className: wrapperClasses, style: style - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); } }]; -/* harmony default export */ var column_deprecated = (column_deprecated_deprecated); +/* harmony default export */ const column_deprecated = (column_deprecated_deprecated); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/edit.js @@ -6862,8 +7208,9 @@ function ColumnEdit({ const classes = classnames_default()('block-core-columns', { [`is-vertically-aligned-${verticalAlignment}`]: verticalAlignment }); + const [availableUnits] = (0,external_wp_blockEditor_namespaceObject.useSettings)('spacing.units'); const units = (0,external_wp_components_namespaceObject.__experimentalUseCustomUnits)({ - availableUnits: (0,external_wp_blockEditor_namespaceObject.useSetting)('spacing.units') || ['%', 'px', 'em', 'rem', 'vw'] + availableUnits: availableUnits || ['%', 'px', 'em', 'rem', 'vw'] }); const { columnsIds, @@ -6913,13 +7260,13 @@ function ColumnEdit({ allowedBlocks, renderAppender: hasChildBlocks ? undefined : external_wp_blockEditor_namespaceObject.InnerBlocks.ButtonBlockAppender }); - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockVerticalAlignmentToolbar, { + return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockVerticalAlignmentToolbar, { onChange: updateAlignment, value: verticalAlignment, controls: ['top', 'center', 'bottom', 'stretch'] - })), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, { - title: (0,external_wp_i18n_namespaceObject.__)('Column settings') - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, { + })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, { + title: (0,external_wp_i18n_namespaceObject.__)('Settings') + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.__experimentalUnitControl, { label: (0,external_wp_i18n_namespaceObject.__)('Width'), labelPosition: "edge", __unstableInputWidth: "80px", @@ -6931,11 +7278,11 @@ function ColumnEdit({ }); }, units: units - }))), (0,external_wp_element_namespaceObject.createElement)("div", { + }))), (0,external_React_namespaceObject.createElement)("div", { ...innerBlocksProps })); } -/* harmony default export */ var column_edit = (ColumnEdit); +/* harmony default export */ const column_edit = (ColumnEdit); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/column/save.js @@ -6977,7 +7324,7 @@ function column_save_save({ style }); const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps); - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...innerBlocksProps }); } @@ -7033,6 +7380,7 @@ const column_metadata = { text: true } }, + shadow: true, spacing: { blockGap: true, padding: true, @@ -7064,7 +7412,10 @@ const column_metadata = { fontSize: true } }, - layout: true + layout: true, + interactivity: { + clientNavigation: true + } } }; @@ -7090,13 +7441,15 @@ const column_init = () => initBlock({ * WordPress dependencies */ -const columns = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const columns = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { - d: "M19 6H6c-1.1 0-2 .9-2 2v9c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-4.1 1.5v10H10v-10h4.9zM5.5 17V8c0-.3.2-.5.5-.5h2.5v10H6c-.3 0-.5-.2-.5-.5zm14 0c0 .3-.2.5-.5.5h-2.6v-10H19c.3 0 .5.2.5.5v9z" +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { + fillRule: "evenodd", + clipRule: "evenodd", + d: "M15 7.5h-5v10h5v-10Zm1.5 0v10H19a.5.5 0 0 0 .5-.5V8a.5.5 0 0 0-.5-.5h-2.5ZM6 7.5h2.5v10H6a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5ZM6 6h13a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2Z" })); -/* harmony default export */ var library_columns = (columns); +/* harmony default export */ const library_columns = (columns); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/deprecated.js @@ -7160,7 +7513,7 @@ const migrateCustomColors = attributes => { isStackedOnMobile: true }; }; -/* harmony default export */ var columns_deprecated = ([{ +/* harmony default export */ const columns_deprecated = ([{ attributes: { verticalAlignment: { type: 'string' @@ -7202,10 +7555,10 @@ const migrateCustomColors = attributes => { backgroundColor: backgroundClass ? undefined : customBackgroundColor, color: textClass ? undefined : customTextColor }; - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { className: className ? className : undefined, style: style - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); } }, { attributes: { @@ -7259,9 +7612,9 @@ const migrateCustomColors = attributes => { const { columns } = attributes; - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { className: `has-${columns}-columns` - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); } }, { attributes: { @@ -7291,9 +7644,9 @@ const migrateCustomColors = attributes => { const wrapperClasses = classnames_default()(`has-${columns}-columns`, { [`are-vertically-aligned-${verticalAlignment}`]: verticalAlignment }); - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { className: wrapperClasses - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); } }]); @@ -7473,22 +7826,9 @@ function isPercentageUnit(unit) { * Internal dependencies */ - -/** - * Allowed blocks constant is passed to InnerBlocks precisely as specified here. - * The contents of the array should never change. - * The array should contain the name of each block that is allowed. - * In columns block, the only block we allow is 'core/column'. - * - * @constant - * @type {string[]} - */ -const edit_ALLOWED_BLOCKS = ['core/column']; function ColumnsEditContainer({ attributes, setAttributes, - updateAlignment, - updateColumns, clientId }) { const { @@ -7523,6 +7863,15 @@ function ColumnsEditContainer({ minCount: Math.max(...preventRemovalBlockIndexes) + 1 }; }, [clientId]); + const registry = (0,external_wp_data_namespaceObject.useRegistry)(); + const { + getBlocks, + getBlockOrder + } = (0,external_wp_data_namespaceObject.useSelect)(external_wp_blockEditor_namespaceObject.store); + const { + updateBlockAttributes, + replaceInnerBlocks + } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store); const classes = classnames_default()({ [`are-vertically-aligned-${verticalAlignment}`]: verticalAlignment, [`is-not-stacked-on-mobile`]: !isStackedOnMobile @@ -7531,69 +7880,33 @@ function ColumnsEditContainer({ className: classes }); const innerBlocksProps = (0,external_wp_blockEditor_namespaceObject.useInnerBlocksProps)(blockProps, { - allowedBlocks: edit_ALLOWED_BLOCKS, orientation: 'horizontal', renderAppender: false, templateLock }); - return (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockVerticalAlignmentToolbar, { - onChange: updateAlignment, - value: verticalAlignment - })), (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, null, canInsertColumnBlock && (0,external_wp_element_namespaceObject.createElement)(external_wp_element_namespaceObject.Fragment, null, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, { - __nextHasNoMarginBottom: true, - __next40pxDefaultSize: true, - label: (0,external_wp_i18n_namespaceObject.__)('Columns'), - value: count, - onChange: value => updateColumns(count, Math.max(minCount, value)), - min: Math.max(1, minCount), - max: Math.max(6, count) - }), count > 6 && (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Notice, { - status: "warning", - isDismissible: false - }, (0,external_wp_i18n_namespaceObject.__)('This column count exceeds the recommended amount and may cause visual breakage.'))), (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { - __nextHasNoMarginBottom: true, - label: (0,external_wp_i18n_namespaceObject.__)('Stack on mobile'), - checked: isStackedOnMobile, - onChange: () => setAttributes({ - isStackedOnMobile: !isStackedOnMobile - }) - }))), (0,external_wp_element_namespaceObject.createElement)("div", { - ...innerBlocksProps - })); -} -const ColumnsEditContainerWrapper = (0,external_wp_data_namespaceObject.withDispatch)((dispatch, ownProps, registry) => ({ + /** * Update all child Column blocks with a new vertical alignment setting * based on whatever alignment is passed in. This allows change to parent * to overide anything set on a individual column basis. * - * @param {string} verticalAlignment the vertical alignment setting + * @param {string} newVerticalAlignment The vertical alignment setting. */ - updateAlignment(verticalAlignment) { - const { - clientId, - setAttributes - } = ownProps; - const { - updateBlockAttributes - } = dispatch(external_wp_blockEditor_namespaceObject.store); - const { - getBlockOrder - } = registry.select(external_wp_blockEditor_namespaceObject.store); - - // Update own alignment. - setAttributes({ - verticalAlignment - }); - - // Update all child Column Blocks to match. + function updateAlignment(newVerticalAlignment) { const innerBlockClientIds = getBlockOrder(clientId); - innerBlockClientIds.forEach(innerBlockClientId => { - updateBlockAttributes(innerBlockClientId, { - verticalAlignment + + // Update own and child Column block vertical alignments. + // This is a single action; the batching prevents creating multiple history records. + registry.batch(() => { + setAttributes({ + verticalAlignment: newVerticalAlignment + }); + updateBlockAttributes(innerBlockClientIds, { + verticalAlignment: newVerticalAlignment }); }); - }, + } + /** * Updates the column count, including necessary revisions to child Column * blocks to grant required or redistribute available space. @@ -7601,16 +7914,7 @@ const ColumnsEditContainerWrapper = (0,external_wp_data_namespaceObject.withDisp * @param {number} previousColumns Previous column count. * @param {number} newColumns New column count. */ - updateColumns(previousColumns, newColumns) { - const { - clientId - } = ownProps; - const { - replaceInnerBlocks - } = dispatch(external_wp_blockEditor_namespaceObject.store); - const { - getBlocks - } = registry.select(external_wp_blockEditor_namespaceObject.store); + function updateColumns(previousColumns, newColumns) { let innerBlocks = getBlocks(clientId); const hasExplicitWidths = hasExplicitPercentColumnWidths(innerBlocks); @@ -7648,7 +7952,33 @@ const ColumnsEditContainerWrapper = (0,external_wp_data_namespaceObject.withDisp } replaceInnerBlocks(clientId, innerBlocks); } -}))(ColumnsEditContainer); + return (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockControls, null, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.BlockVerticalAlignmentToolbar, { + onChange: updateAlignment, + value: verticalAlignment + })), (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InspectorControls, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.PanelBody, { + title: (0,external_wp_i18n_namespaceObject.__)('Settings') + }, canInsertColumnBlock && (0,external_React_namespaceObject.createElement)(external_React_namespaceObject.Fragment, null, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.RangeControl, { + __nextHasNoMarginBottom: true, + __next40pxDefaultSize: true, + label: (0,external_wp_i18n_namespaceObject.__)('Columns'), + value: count, + onChange: value => updateColumns(count, Math.max(minCount, value)), + min: Math.max(1, minCount), + max: Math.max(6, count) + }), count > 6 && (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Notice, { + status: "warning", + isDismissible: false + }, (0,external_wp_i18n_namespaceObject.__)('This column count exceeds the recommended amount and may cause visual breakage.'))), (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.ToggleControl, { + __nextHasNoMarginBottom: true, + label: (0,external_wp_i18n_namespaceObject.__)('Stack on mobile'), + checked: isStackedOnMobile, + onChange: () => setAttributes({ + isStackedOnMobile: !isStackedOnMobile + }) + }))), (0,external_React_namespaceObject.createElement)("div", { + ...innerBlocksProps + })); +} function Placeholder({ clientId, name, @@ -7674,9 +8004,9 @@ function Placeholder({ replaceInnerBlocks } = (0,external_wp_data_namespaceObject.useDispatch)(external_wp_blockEditor_namespaceObject.store); const blockProps = (0,external_wp_blockEditor_namespaceObject.useBlockProps)(); - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...blockProps - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalBlockVariationPicker, { + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.__experimentalBlockVariationPicker, { icon: blockType?.icon?.src, label: blockType?.title, variations: variations, @@ -7696,12 +8026,12 @@ const ColumnsEdit = props => { clientId } = props; const hasInnerBlocks = (0,external_wp_data_namespaceObject.useSelect)(select => select(external_wp_blockEditor_namespaceObject.store).getBlocks(clientId).length > 0, [clientId]); - const Component = hasInnerBlocks ? ColumnsEditContainerWrapper : Placeholder; - return (0,external_wp_element_namespaceObject.createElement)(Component, { + const Component = hasInnerBlocks ? ColumnsEditContainer : Placeholder; + return (0,external_React_namespaceObject.createElement)(Component, { ...props }); }; -/* harmony default export */ var columns_edit = (ColumnsEdit); +/* harmony default export */ const columns_edit = (ColumnsEdit); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/save.js @@ -7729,7 +8059,7 @@ function columns_save_save({ className }); const innerBlocksProps = external_wp_blockEditor_namespaceObject.useInnerBlocksProps.save(blockProps); - return (0,external_wp_element_namespaceObject.createElement)("div", { + return (0,external_React_namespaceObject.createElement)("div", { ...innerBlocksProps }); } @@ -7753,12 +8083,12 @@ const variations = [{ name: 'one-column-full', title: (0,external_wp_i18n_namespaceObject.__)('100'), description: (0,external_wp_i18n_namespaceObject.__)('One column'), - icon: (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, { + icon: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, { width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "m39.0625 14h-30.0625v20.0938h30.0625zm-30.0625-2c-1.10457 0-2 .8954-2 2v20.0938c0 1.1045.89543 2 2 2h30.0625c1.1046 0 2-.8955 2-2v-20.0938c0-1.1046-.8954-2-2-2z" @@ -7769,12 +8099,12 @@ const variations = [{ name: 'two-columns-equal', title: (0,external_wp_i18n_namespaceObject.__)('50 / 50'), description: (0,external_wp_i18n_namespaceObject.__)('Two columns; equal split'), - icon: (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, { + icon: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, { width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H25V34H39ZM23 34H9V14H23V34Z" @@ -7786,12 +8116,12 @@ const variations = [{ name: 'two-columns-one-third-two-thirds', title: (0,external_wp_i18n_namespaceObject.__)('33 / 66'), description: (0,external_wp_i18n_namespaceObject.__)('Two columns; one-third, two-thirds split'), - icon: (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, { + icon: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, { width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H20V34H39ZM18 34H9V14H18V34Z" @@ -7806,12 +8136,12 @@ const variations = [{ name: 'two-columns-two-thirds-one-third', title: (0,external_wp_i18n_namespaceObject.__)('66 / 33'), description: (0,external_wp_i18n_namespaceObject.__)('Two columns; two-thirds, one-third split'), - icon: (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, { + icon: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, { width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, { fillRule: "evenodd", clipRule: "evenodd", d: "M39 12C40.1046 12 41 12.8954 41 14V34C41 35.1046 40.1046 36 39 36H9C7.89543 36 7 35.1046 7 34V14C7 12.8954 7.89543 12 9 12H39ZM39 34V14H30V34H39ZM28 34H9V14H28V34Z" @@ -7826,12 +8156,12 @@ const variations = [{ name: 'three-columns-equal', title: (0,external_wp_i18n_namespaceObject.__)('33 / 33 / 33'), description: (0,external_wp_i18n_namespaceObject.__)('Three columns; equal split'), - icon: (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, { + icon: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, { width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, { fillRule: "evenodd", d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM28.5 34h-9V14h9v20zm2 0V14H39v20h-8.5zm-13 0H9V14h8.5v20z" })), @@ -7841,12 +8171,12 @@ const variations = [{ name: 'three-columns-wider-center', title: (0,external_wp_i18n_namespaceObject.__)('25 / 50 / 25'), description: (0,external_wp_i18n_namespaceObject.__)('Three columns; wide center column'), - icon: (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, { + icon: (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.SVG, { width: "48", height: "48", viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, { + }, (0,external_React_namespaceObject.createElement)(external_wp_components_namespaceObject.Path, { fillRule: "evenodd", d: "M41 14a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h30a2 2 0 0 0 2-2V14zM31 34H17V14h14v20zm2 0V14h6v20h-6zm-18 0H9V14h6v20z" })), @@ -7859,7 +8189,7 @@ const variations = [{ }]], scope: ['block'] }]; -/* harmony default export */ var columns_variations = (variations); +/* harmony default export */ const columns_variations = (variations); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/transforms.js /** @@ -7960,7 +8290,7 @@ const columns_transforms_transforms = { }], ungroup: (attributes, innerBlocks) => innerBlocks.flatMap(innerBlock => innerBlock.innerBlocks) }; -/* harmony default export */ var columns_transforms = (columns_transforms_transforms); +/* harmony default export */ const columns_transforms = (columns_transforms_transforms); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/columns/index.js /** @@ -7981,6 +8311,7 @@ const columns_metadata = { name: "core/columns", title: "Columns", category: "design", + allowedBlocks: ["core/column"], description: "Display content in multiple columns, with blocks added to each column.", textdomain: "default", attributes: { @@ -8055,7 +8386,11 @@ const columns_metadata = { __experimentalDefaultControls: { fontSize: true } - } + }, + interactivity: { + clientNavigation: true + }, + shadow: true }, editorStyle: "wp-block-columns-editor", style: "wp-block-columns" @@ -8127,13 +8462,13 @@ const columns_init = () => initBlock({ * WordPress dependencies */ -const postComments = (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { +const postComments = (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" -}, (0,external_wp_element_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { +}, (0,external_React_namespaceObject.createElement)(external_wp_primitives_namespaceObject.Path, { d: "M14 10.1V4c0-.6-.4-1-1-1H5c-.6 0-1 .4-1 1v8.3c0 .3.2.7.6.8.1.1.2.1.3.1.2 0 .5-.1.6-.3l1.8-1.8H13c.6 0 1-.4 1-1zm-1.5-.5H6.7l-1.2 1.2V4.5h7v5.1zM19 12h-8c-.6 0-1 .4-1 1v6.1c0 .6.4 1 1 1h5.7l1.8 1.8c.1.2.4.3.6.3.1 0 .2 0 .3-.1.4-.1.6-.5.6-.8V13c0-.6-.4-1-1-1zm-.5 7.8l-1.2-1.2h-5.8v-5.1h7v6.3z" })); -/* harmony default export */ var post_comments = (postComments); +/* harmony default export */ const post_comments = (postComments); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments/deprecated.js @@ -8184,12 +8519,12 @@ const v1 = { ...blockProps, className: newClasses.join(' ') }; - return (0,external_wp_element_namespaceObject.createElement)(Tag, { + return (0,external_React_namespaceObject.createElement)(Tag, { ...newBlockProps - }, (0,external_wp_element_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); + }, (0,external_React_namespaceObject.createElement)(external_wp_blockEditor_namespaceObject.InnerBlocks.Content, null)); } }; -/* harmony default export */ var comments_deprecated = ([v1]); +/* harmony default export */ const comments_deprecated = ([v1]); ;// CONCATENATED MODULE: ./node_modules/@wordpress/block-library/build-module/comments/edit/comments-inspector-controls.js @@ -8209,10 +8544,11 @@ function CommentsInspectorControls({ section: (0,external_wp_i18n_namespaceObject.__)("The
element should represent a standalone portion of the document that can't be better represented by another element."), aside: (0,external_wp_i18n_namespaceObject.__)("The