From a794914408ff86b4aca71c2691ace7e8911445b5 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Fri, 25 Jun 2021 15:50:14 +0000 Subject: [PATCH] Block Editor: Update the packages with a number of fixes targeted for Beta 4. It includes fixes from these two backport PRs: - https://github.com/WordPress/gutenberg/pull/32992 - https://github.com/WordPress/gutenberg/pull/32956 Props gziolo, ryelle, ntsekouras, desrosj, jorgefilipecosta. See #53397 git-svn-id: https://develop.svn.wordpress.org/trunk@51241 602fd350-edb4-49c9-b593-d223f7449a82 --- package-lock.json | 164 +++++++++--------- package.json | 22 +-- .../assets/script-loader-packages.php | 2 +- .../block-patterns/query-grid-posts.php | 4 +- .../block-patterns/query-offset-posts.php | 6 +- src/wp-includes/blocks/file.php | 10 +- src/wp-includes/blocks/file/block.json | 1 + .../blocks/site-logo/editor-rtl.css | 19 ++ .../blocks/site-logo/editor-rtl.min.css | 2 +- src/wp-includes/blocks/site-logo/editor.css | 19 ++ .../blocks/site-logo/editor.min.css | 2 +- src/wp-includes/class-wp-theme-json.php | 1 - .../rest-api/class-wp-rest-server.php | 24 +++ 13 files changed, 168 insertions(+), 108 deletions(-) diff --git a/package-lock.json b/package-lock.json index b6f8474bc595f..c60de16017463 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3242,22 +3242,22 @@ } }, "@wordpress/block-directory": { - "version": "2.1.10", - "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-2.1.10.tgz", - "integrity": "sha512-quD81V7Ii9neQ+DxlCtMykntJ5dM+E9OmUUgwHmIRXWcK6F5fSntMOugmuiwwKy5htQhotb814I4DTjju6qShA==", + "version": "2.1.12", + "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-2.1.12.tgz", + "integrity": "sha512-LV6P7sGN4F40eeDj9/8EI0mCFwBb53HmsHzdJGN2508iCtfU1YfuGJIFspTCpRy5VGOwpMr5nxmRcgA+aShZoQ==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/a11y": "^3.1.1", "@wordpress/api-fetch": "^5.1.1", - "@wordpress/block-editor": "^6.1.5", + "@wordpress/block-editor": "^6.1.7", "@wordpress/blocks": "^9.1.4", "@wordpress/components": "^14.1.4", "@wordpress/compose": "^4.1.2", - "@wordpress/core-data": "^3.1.7", + "@wordpress/core-data": "^3.1.8", "@wordpress/data": "^5.1.2", "@wordpress/data-controls": "^2.1.2", - "@wordpress/edit-post": "^4.1.10", - "@wordpress/editor": "^10.1.8", + "@wordpress/edit-post": "^4.1.12", + "@wordpress/editor": "^10.1.10", "@wordpress/element": "^3.1.1", "@wordpress/hooks": "^3.1.1", "@wordpress/html-entities": "^3.1.1", @@ -3270,9 +3270,9 @@ } }, "@wordpress/block-editor": { - "version": "6.1.5", - "resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-6.1.5.tgz", - "integrity": "sha512-mPJ+OAAIeWbcN75H5CvMJ71fvrp4VqFK+N7XMhQS1ae0n9eMcSB8Le0OV0R8gBzd56mXRhDssXxVB4/zbwOU6w==", + "version": "6.1.7", + "resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-6.1.7.tgz", + "integrity": "sha512-yAKVtx+4ZcPSeL+16Sob6VMri9unJCY5LgKeYkG1qSLjb0HmeJuskvfdd3Lze53r0zbIJGKfBOdiovZVr9w9Fg==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/a11y": "^3.1.1", @@ -3315,20 +3315,20 @@ } }, "@wordpress/block-library": { - "version": "3.2.8", - "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-3.2.8.tgz", - "integrity": "sha512-IVh3dOeYReYcTt7f/ggA0lv08FsqrZ5RLp5XYsDlMCMe1kfwjyY3Byway+un3N2/HdnmR0h3XhtcrwK9JTg4bA==", + "version": "3.2.10", + "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-3.2.10.tgz", + "integrity": "sha512-65y+RbDXyCrFCc+NLfTFo/x/V3gsw7HYOXJ7ptPsx/UCNThZ+7KttmZYuQL0cpXUGh/dgE9IV5r+6ROwF2lTsA==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/a11y": "^3.1.1", "@wordpress/api-fetch": "^5.1.1", "@wordpress/autop": "^3.1.1", "@wordpress/blob": "^3.1.1", - "@wordpress/block-editor": "^6.1.5", + "@wordpress/block-editor": "^6.1.7", "@wordpress/blocks": "^9.1.4", "@wordpress/components": "^14.1.4", "@wordpress/compose": "^4.1.2", - "@wordpress/core-data": "^3.1.7", + "@wordpress/core-data": "^3.1.8", "@wordpress/data": "^5.1.2", "@wordpress/date": "^4.1.1", "@wordpress/deprecated": "^3.1.1", @@ -3342,7 +3342,7 @@ "@wordpress/keycodes": "^3.1.1", "@wordpress/notices": "^3.1.2", "@wordpress/primitives": "^2.1.1", - "@wordpress/reusable-blocks": "^2.1.8", + "@wordpress/reusable-blocks": "^2.1.10", "@wordpress/rich-text": "^4.1.2", "@wordpress/server-side-render": "^2.1.5", "@wordpress/url": "^3.1.1", @@ -3465,9 +3465,9 @@ } }, "@wordpress/core-data": { - "version": "3.1.7", - "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-3.1.7.tgz", - "integrity": "sha512-9+wrgmVHl0uHNcxS5X2NxFkmonCjyTD9CEwrEhjOqbuYLNc/ljYiP/3F3VCJADFFYwcBe3pvTLZce4Ayniiz5A==", + "version": "3.1.8", + "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-3.1.8.tgz", + "integrity": "sha512-ZQBADH5EooVDg5KMnt1fcWq87EtotPDlAiqN8/hwBy7KavkOKZVH7pAlBcoY6CSlNxm5X808XiDW1LObcqwDkw==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/api-fetch": "^5.1.1", @@ -3495,18 +3495,18 @@ } }, "@wordpress/customize-widgets": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-1.0.9.tgz", - "integrity": "sha512-KkE6EhN9CBNFUKDPt3/rNmTAAhV3NcPu7U9h0EEdBpgdavDmwyWp1nhIRqtX8OgHTBJbl3S0WoAR8WY11jqEgA==", + "version": "1.0.11", + "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-1.0.11.tgz", + "integrity": "sha512-UTeNbo2mRTtsxO4rp0jNfpwWNU2aL+ElB+/ZtEi0LEKlHLBm8DKpiqkHiqi8I/o72BgxltWWQ8YJjn0JMUwWow==", "requires": { "@babel/runtime": "^7.11.2", "@wordpress/a11y": "^3.1.1", - "@wordpress/block-editor": "^6.1.5", - "@wordpress/block-library": "^3.2.8", + "@wordpress/block-editor": "^6.1.7", + "@wordpress/block-library": "^3.2.10", "@wordpress/blocks": "^9.1.4", "@wordpress/components": "^14.1.4", "@wordpress/compose": "^4.1.2", - "@wordpress/core-data": "^3.1.7", + "@wordpress/core-data": "^3.1.8", "@wordpress/data": "^5.1.2", "@wordpress/dom": "^3.1.1", "@wordpress/element": "^3.1.1", @@ -3517,7 +3517,7 @@ "@wordpress/keyboard-shortcuts": "^2.1.2", "@wordpress/keycodes": "^3.1.1", "@wordpress/media-utils": "^2.1.1", - "@wordpress/widgets": "^1.1.9", + "@wordpress/widgets": "^1.1.11", "classnames": "^2.2.6", "lodash": "^4.17.21" } @@ -3632,22 +3632,22 @@ } }, "@wordpress/edit-post": { - "version": "4.1.10", - "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-4.1.10.tgz", - "integrity": "sha512-JjbSHopm7AheC8pvZMgqDFmxFFXu0vBG/vpOzQuEFQSHwmKKGeaIWibYAQjY62oohN+CTakKtNXzuUsfJI32Rw==", + "version": "4.1.12", + "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-4.1.12.tgz", + "integrity": "sha512-/hCLEi4OU9QeKNgipFlNeOv3DKjMbjrI1by5LWCA9RTHb3ZCXartIfiMx2PzBYNv6kCf0BDru03fNnNPepYEzg==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/a11y": "^3.1.1", "@wordpress/api-fetch": "^5.1.1", - "@wordpress/block-editor": "^6.1.5", - "@wordpress/block-library": "^3.2.8", + "@wordpress/block-editor": "^6.1.7", + "@wordpress/block-library": "^3.2.10", "@wordpress/blocks": "^9.1.4", "@wordpress/components": "^14.1.4", "@wordpress/compose": "^4.1.2", - "@wordpress/core-data": "^3.1.7", + "@wordpress/core-data": "^3.1.8", "@wordpress/data": "^5.1.2", "@wordpress/data-controls": "^2.1.2", - "@wordpress/editor": "^10.1.8", + "@wordpress/editor": "^10.1.10", "@wordpress/element": "^3.1.1", "@wordpress/hooks": "^3.1.1", "@wordpress/i18n": "^4.1.1", @@ -3678,19 +3678,19 @@ } }, "@wordpress/edit-widgets": { - "version": "2.1.10", - "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-2.1.10.tgz", - "integrity": "sha512-kRYt+IdYoB3gEuJGmMPy/Dbj0rFtfFqu8TexqOuyewumIWYld1WCZUKgIZdjKLb0ICGm+DJlDQ8WB9/oZd5nBw==", + "version": "2.1.12", + "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-2.1.12.tgz", + "integrity": "sha512-h8iMypH8UxClbQeBPD0nCgidLRLyt9CXK9IOQkYWbPh79EzdGDW96X1mhuBqWHG6OVQj65a86VFw7QfGnsEFuw==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/a11y": "^3.1.1", "@wordpress/api-fetch": "^5.1.1", - "@wordpress/block-editor": "^6.1.5", - "@wordpress/block-library": "^3.2.8", + "@wordpress/block-editor": "^6.1.7", + "@wordpress/block-library": "^3.2.10", "@wordpress/blocks": "^9.1.4", "@wordpress/components": "^14.1.4", "@wordpress/compose": "^4.1.2", - "@wordpress/core-data": "^3.1.7", + "@wordpress/core-data": "^3.1.8", "@wordpress/data": "^5.1.2", "@wordpress/data-controls": "^2.1.2", "@wordpress/element": "^3.1.1", @@ -3703,10 +3703,10 @@ "@wordpress/media-utils": "^2.1.1", "@wordpress/notices": "^3.1.2", "@wordpress/plugins": "^3.1.2", - "@wordpress/reusable-blocks": "^2.1.8", + "@wordpress/reusable-blocks": "^2.1.10", "@wordpress/server-side-render": "^2.1.5", "@wordpress/url": "^3.1.1", - "@wordpress/widgets": "^1.1.9", + "@wordpress/widgets": "^1.1.11", "classnames": "^2.2.5", "lodash": "^4.17.21", "rememo": "^3.0.0", @@ -3714,19 +3714,19 @@ } }, "@wordpress/editor": { - "version": "10.1.8", - "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-10.1.8.tgz", - "integrity": "sha512-9OQf8fWSt3RB3BG4blOCYfxpqW3nP/oMeU6OlK6DdzZcocL3z/q/JA4Dmz9HrOH/waWl219Fh69s1u4Z/6A+Gg==", + "version": "10.1.10", + "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-10.1.10.tgz", + "integrity": "sha512-JSro2pj+HyrABzqGmPy05ElEDAGF2kTsWEj82i/Jdxz39BR626Fg16VzTlHvsYcpeGXGFzlc07s4SoWkmvxRKA==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/api-fetch": "^5.1.1", "@wordpress/autop": "^3.1.1", "@wordpress/blob": "^3.1.1", - "@wordpress/block-editor": "^6.1.5", + "@wordpress/block-editor": "^6.1.7", "@wordpress/blocks": "^9.1.4", "@wordpress/components": "^14.1.4", "@wordpress/compose": "^4.1.2", - "@wordpress/core-data": "^3.1.7", + "@wordpress/core-data": "^3.1.8", "@wordpress/data": "^5.1.2", "@wordpress/data-controls": "^2.1.2", "@wordpress/date": "^4.1.1", @@ -3741,7 +3741,7 @@ "@wordpress/keycodes": "^3.1.1", "@wordpress/media-utils": "^2.1.1", "@wordpress/notices": "^3.1.2", - "@wordpress/reusable-blocks": "^2.1.8", + "@wordpress/reusable-blocks": "^2.1.10", "@wordpress/rich-text": "^4.1.2", "@wordpress/server-side-render": "^2.1.5", "@wordpress/url": "^3.1.1", @@ -3830,13 +3830,13 @@ } }, "@wordpress/format-library": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-2.1.5.tgz", - "integrity": "sha512-aHP8u5VaDNl+oV/nL9F+KiOt9fFpYBDZ7t6fylaHPDeVKG462d5ypBW5uqyCZC2OHsQJfjzxsdB94RHnwR+uFQ==", + "version": "2.1.7", + "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-2.1.7.tgz", + "integrity": "sha512-OPnxuuIrlARQzJ79C7xNZngBR3bHD1T847orO/d/chNbV4IxCVP5lm4xCQvuxO/21HiPC8drGLO1Oy7DQZePHw==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/a11y": "^3.1.1", - "@wordpress/block-editor": "^6.1.5", + "@wordpress/block-editor": "^6.1.7", "@wordpress/components": "^14.1.4", "@wordpress/compose": "^4.1.2", "@wordpress/data": "^5.1.2", @@ -4149,15 +4149,15 @@ } }, "@wordpress/reusable-blocks": { - "version": "2.1.8", - "resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-2.1.8.tgz", - "integrity": "sha512-jxeJQz5Sk/taA1rWBvkk4Suv1CJoEBpnVKHGWllYSL6fmOtO0Vx5gsQX4Kapn0mUvlXOImAkLBbJpRescgxUkQ==", + "version": "2.1.10", + "resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-2.1.10.tgz", + "integrity": "sha512-IdiynlnZI2vcpLKDAoFfkZTXcfsC1vhdNf1vlQt9XAAj7vkDzOLc8Pncl+b+2qUiYq2s0t5PoZw6J0KwQCeXpw==", "requires": { - "@wordpress/block-editor": "^6.1.5", + "@wordpress/block-editor": "^6.1.7", "@wordpress/blocks": "^9.1.4", "@wordpress/components": "^14.1.4", "@wordpress/compose": "^4.1.2", - "@wordpress/core-data": "^3.1.7", + "@wordpress/core-data": "^3.1.8", "@wordpress/data": "^5.1.2", "@wordpress/element": "^3.1.1", "@wordpress/i18n": "^4.1.1", @@ -4820,17 +4820,17 @@ "integrity": "sha512-EX+/6P2bWO0zRrKJYx1yck0rY2K5z5aPb67DTU+2ggcowW8JRP7hBzGdzhXqoE32oMS7RO97nG3uD9sZtn2DJA==" }, "@wordpress/widgets": { - "version": "1.1.9", - "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-1.1.9.tgz", - "integrity": "sha512-qN+ctymQgmdmijNzBg5WuVnr/osRzgvrSRr6VG7X1aRS1iJlriwP8wweD3UJjLbwNQaUqW+uMf3WodpJ7zScdA==", + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-1.1.11.tgz", + "integrity": "sha512-7V6eM1wzjRn2HkFs6Fjw7yMMxRBi4I+52e5RNzvJ0bISswb//Jdi1QL3o//C+Vwa0wIW1X/2G9pYKclN2z/A1g==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/api-fetch": "^5.1.1", - "@wordpress/block-editor": "^6.1.5", + "@wordpress/block-editor": "^6.1.7", "@wordpress/blocks": "^9.1.4", "@wordpress/components": "^14.1.4", "@wordpress/compose": "^4.1.2", - "@wordpress/core-data": "^3.1.7", + "@wordpress/core-data": "^3.1.8", "@wordpress/data": "^5.1.2", "@wordpress/element": "^3.1.1", "@wordpress/i18n": "^4.1.1", @@ -5858,9 +5858,9 @@ "dev": true }, "axe-core": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.2.2.tgz", - "integrity": "sha512-OKRkKM4ojMEZRJ5UNJHmq9tht7cEnRnqKG6KyB/trYws00Xtkv12mHtlJ0SK7cmuNbrU8dPUova3ELTuilfBbw==", + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.2.3.tgz", + "integrity": "sha512-pXnVMfJKSIWU2Ml4JHP7pZEPIrgBO1Fd3WGx+fPBsS+KRGhE4vxooD8XBGWbQOIVSZsVK7pUDBBkCicNu80yzQ==", "dev": true }, "axios": { @@ -8157,15 +8157,15 @@ } }, "core-js": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.15.0.tgz", - "integrity": "sha512-GUbtPllXMYRzIgHNZ4dTYTcUemls2cni83Q4Q/TrFONHfhcg9oEGOtaGHfb0cpzec60P96UKPvMkjX1jET8rUw==", + "version": "3.15.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.15.1.tgz", + "integrity": "sha512-h8VbZYnc9pDzueiS2610IULDkpFFPunHwIpl8yRwFahAEEdSpHlTy3h3z3rKq5h11CaUdBEeRViu9AYvbxiMeg==", "dev": true }, "core-js-compat": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.15.0.tgz", - "integrity": "sha512-8X6lWsG+s7IfOKzV93a7fRYfWRZobOfjw5V5rrq43Vh/W+V6qYxl7Akalsvgab4PFT/4L/pjQbdBUEM36NXKrw==", + "version": "3.15.1", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.15.1.tgz", + "integrity": "sha512-xGhzYMX6y7oEGQGAJmP2TmtBLvR4nZmRGEcFa3ubHOq5YEp51gGN9AovVa0AoujGZIq+Wm6dISiYyGNfdflYww==", "dev": true, "requires": { "browserslist": "^4.16.6", @@ -8181,9 +8181,9 @@ } }, "core-js-pure": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.15.0.tgz", - "integrity": "sha512-RO+LFAso8DB6OeBX9BAcEGvyth36QtxYon1OyVsITNVtSKr/Hos0BXZwnsOJ7o+O6KHtK+O+cJIEj9NGg6VwFA==", + "version": "3.15.1", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.15.1.tgz", + "integrity": "sha512-OZuWHDlYcIda8sJLY4Ec6nWq2hRjlyCqCZ+jCflyleMkVt3tPedDVErvHslyS2nbO+SlBFMSBJYvtLMwxnrzjA==", "dev": true }, "core-js-url-browser": { @@ -8772,9 +8772,9 @@ } }, "decimal.js": { - "version": "10.2.1", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.2.1.tgz", - "integrity": "sha512-KaL7+6Fw6i5A2XSnsbhm/6B+NuEA7TZ4vqxnd5tXz9sbKtrN9Srj8ab4vKVdK8YAqZO9P1kg45Y6YLoduPf+kw==", + "version": "10.3.1", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.3.1.tgz", + "integrity": "sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==", "dev": true }, "decode-uri-component": { @@ -16160,9 +16160,9 @@ }, "dependencies": { "acorn": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.4.0.tgz", - "integrity": "sha512-ULr0LDaEqQrMFGyQ3bhJkLsbtrQ8QibAseGZeaSUiT/6zb9IvIkomWHJIvgvwad+hinRAgsI51JcWk2yvwyL+w==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.4.1.tgz", + "integrity": "sha512-asabaBSkEKosYKMITunzX177CXxQ4Q8BSSzMTKD+FefUhipQC70gfW5SiUDhYQ3vk8G+81HqQk7Fv9OXwwn9KA==", "dev": true }, "agent-base": { @@ -25773,9 +25773,9 @@ }, "dependencies": { "acorn": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.4.0.tgz", - "integrity": "sha512-ULr0LDaEqQrMFGyQ3bhJkLsbtrQ8QibAseGZeaSUiT/6zb9IvIkomWHJIvgvwad+hinRAgsI51JcWk2yvwyL+w==", + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.4.1.tgz", + "integrity": "sha512-asabaBSkEKosYKMITunzX177CXxQ4Q8BSSzMTKD+FefUhipQC70gfW5SiUDhYQ3vk8G+81HqQk7Fv9OXwwn9KA==", "dev": true }, "acorn-walk": { diff --git a/package.json b/package.json index 1e85090124819..83adb700ce847 100644 --- a/package.json +++ b/package.json @@ -82,27 +82,27 @@ "@wordpress/api-fetch": "5.1.1", "@wordpress/autop": "3.1.1", "@wordpress/blob": "3.1.1", - "@wordpress/block-directory": "2.1.10", - "@wordpress/block-editor": "6.1.5", - "@wordpress/block-library": "3.2.8", + "@wordpress/block-directory": "2.1.12", + "@wordpress/block-editor": "6.1.7", + "@wordpress/block-library": "3.2.10", "@wordpress/block-serialization-default-parser": "4.1.1", "@wordpress/blocks": "9.1.4", "@wordpress/components": "14.1.4", "@wordpress/compose": "4.1.2", - "@wordpress/core-data": "3.1.7", - "@wordpress/customize-widgets": "1.0.9", + "@wordpress/core-data": "3.1.8", + "@wordpress/customize-widgets": "1.0.11", "@wordpress/data": "5.1.2", "@wordpress/data-controls": "2.1.2", "@wordpress/date": "4.1.1", "@wordpress/deprecated": "3.1.1", "@wordpress/dom": "3.1.1", "@wordpress/dom-ready": "3.1.1", - "@wordpress/edit-post": "4.1.10", - "@wordpress/edit-widgets": "2.1.10", - "@wordpress/editor": "10.1.8", + "@wordpress/edit-post": "4.1.12", + "@wordpress/edit-widgets": "2.1.12", + "@wordpress/editor": "10.1.10", "@wordpress/element": "3.1.1", "@wordpress/escape-html": "2.1.1", - "@wordpress/format-library": "2.1.5", + "@wordpress/format-library": "2.1.7", "@wordpress/hooks": "3.1.1", "@wordpress/html-entities": "3.1.1", "@wordpress/i18n": "4.1.1", @@ -119,7 +119,7 @@ "@wordpress/primitives": "2.1.1", "@wordpress/priority-queue": "2.1.1", "@wordpress/redux-routine": "4.1.1", - "@wordpress/reusable-blocks": "2.1.8", + "@wordpress/reusable-blocks": "2.1.10", "@wordpress/rich-text": "4.1.2", "@wordpress/server-side-render": "2.1.5", "@wordpress/shortcode": "3.1.1", @@ -127,7 +127,7 @@ "@wordpress/url": "3.1.1", "@wordpress/viewport": "3.1.2", "@wordpress/warning": "2.1.1", - "@wordpress/widgets": "1.1.9", + "@wordpress/widgets": "1.1.11", "@wordpress/wordcount": "3.1.1", "backbone": "1.4.0", "clipboard": "2.0.8", diff --git a/src/wp-includes/assets/script-loader-packages.php b/src/wp-includes/assets/script-loader-packages.php index bafda1d1714fb..1f7b7d5ae3b6d 100644 --- a/src/wp-includes/assets/script-loader-packages.php +++ b/src/wp-includes/assets/script-loader-packages.php @@ -1 +1 @@ - array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '3243bf46da298d46850bacd71bcc111e'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '4556c7bbdf2d9d6a81c1ca770cf73893'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '293ce6ecd6439249249485d369385617'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'bed28c77ea305cd8e02b0529011189f9'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8855b04f6a52a7bca89f8d945d46866'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'b471a46218b45512872b205f5684f390'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-wordcount'), 'version' => 'e13b60465b80e1383868ffcd513e96be'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '451e439e9a5201265d3efe35b8e0ce27'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cc8e5d0e23cf68bb9944bf2a7a016e52'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => 'c46f2427fb0c8d873f6b003bb05d64ba'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '26b4c0f5b80cf4db0d135647109ec426'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '0f215b3868e125c7f29468d3cbb4a759'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => 'fa690a3b8a7395ad1b9a38995b31ebe4'), 'customize-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-primitives', 'wp-widgets'), 'version' => 'c21a5e2d3bf2314427de7319fc7c4d83'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '98309fcd2b4633f5d768069fc08ac82a'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'ceef9ce8c9c058d69ebf44db39353687'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '2abad43cdd2da929e01f7d7648e392ab'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '13724e4923d40e224e7c99fdc350a6a1'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'd964a25eeb2e148dbb51da5fad4cc9fe'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1e1b9c1535c1c32d3236d41aa27c7bf9'), 'edit-post.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => 'b02b38110ccbddb0902dae1001a5164a'), 'edit-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '6d95bfb853bb58ca413f90fd2e672b4c'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '14a01b5f8bfac6899d950b0baa1beae4'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '669f5c11ca4fe7c44d64157347343913'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4f03d9c45a01df8191f6833373fe1cfa'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'eb83de0befbc72e594aab5d708ca128e'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f7ecf196f38940ae0673c46c6c30cd86'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '140ecb91be91e7eec34220584d085033'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'd897c43bea0c2753dd7368eb2d990898'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '798b660598677b39413fdb5f68624aa8'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '8a860f4afab68874dffb1e7eec6c1bc1'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'cf38e80b47baf72f4822ddb8847f4f24'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '80af68069161321e8e131bad6a00d5dc'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'df373dcd13d7abc3f8b042f369b88557'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'b08e53c1e070954fa0884cad9a164683'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '0575a03bf7a434453e3768c23cd45a54'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => 'f976fd36733989ed2c1409c712cd0e02'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'dc0962ac2885a26f8c2abdbe0cf0e333'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '18c93919f04bb681234310b314675b17'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '3c50c6bd1563bc7fb88433198400a74c'), 'reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'ec5d97a08f4ba305bcc6f0de27fda10f'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '17198c4dd83a20f1f820c6cf500bd5f1'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '7c732c1add9f9667bdf8dd66fbf74759'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '15757929bc8d52a3b184c3fcaeb38c64'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '7bcd3684420783ef1f6ebb7680fe958e'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'e9868cffba8a348b31011f87dd53b3c4'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '0a54bbdc44c5f135018c568a887b8279'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '202ac16e99afe7c33c257b248625a947'), 'widgets.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '270dd5f6c9aa56bc9dd178205c859e98'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '02339c8ad03da1e7a03f9212da004007')); \ No newline at end of file + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => '3243bf46da298d46850bacd71bcc111e'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => '4556c7bbdf2d9d6a81c1ca770cf73893'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '293ce6ecd6439249249485d369385617'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'bed28c77ea305cd8e02b0529011189f9'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8855b04f6a52a7bca89f8d945d46866'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'b471a46218b45512872b205f5684f390'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-wordcount'), 'version' => 'a7f839c7c65fdce82e5c424d9c4bd931'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'react', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => 'e9f924e41f5b4901b46759ee49fe2644'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cc8e5d0e23cf68bb9944bf2a7a016e52'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-primitives', 'wp-shortcode'), 'version' => 'c46f2427fb0c8d873f6b003bb05d64ba'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '26b4c0f5b80cf4db0d135647109ec426'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '0f215b3868e125c7f29468d3cbb4a759'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-data-controls', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '2b920f4b2b10716d0b8d2bbfe4799a48'), 'customize-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-polyfill', 'wp-primitives', 'wp-widgets'), 'version' => 'a19adc65f6968852e0e6fc54a9c69535'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => '98309fcd2b4633f5d768069fc08ac82a'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'ceef9ce8c9c058d69ebf44db39353687'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => '2abad43cdd2da929e01f7d7648e392ab'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '13724e4923d40e224e7c99fdc350a6a1'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'd964a25eeb2e148dbb51da5fad4cc9fe'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '1e1b9c1535c1c32d3236d41aa27c7bf9'), 'edit-post.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '582d39197c94ec823549be14a0f44984'), 'edit-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => 'aff444e849ca7ee92a13e973ea7786c6'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '14a01b5f8bfac6899d950b0baa1beae4'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '669f5c11ca4fe7c44d64157347343913'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4f03d9c45a01df8191f6833373fe1cfa'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => 'eb83de0befbc72e594aab5d708ca128e'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'f7ecf196f38940ae0673c46c6c30cd86'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '140ecb91be91e7eec34220584d085033'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => 'd897c43bea0c2753dd7368eb2d990898'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '798b660598677b39413fdb5f68624aa8'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-keycodes', 'wp-polyfill'), 'version' => '8a860f4afab68874dffb1e7eec6c1bc1'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => 'cf38e80b47baf72f4822ddb8847f4f24'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '80af68069161321e8e131bad6a00d5dc'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'df373dcd13d7abc3f8b042f369b88557'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'b08e53c1e070954fa0884cad9a164683'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '0575a03bf7a434453e3768c23cd45a54'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => 'f976fd36733989ed2c1409c712cd0e02'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'dc0962ac2885a26f8c2abdbe0cf0e333'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '18c93919f04bb681234310b314675b17'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '3c50c6bd1563bc7fb88433198400a74c'), 'reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => 'ec5d97a08f4ba305bcc6f0de27fda10f'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-keycodes', 'wp-polyfill'), 'version' => '17198c4dd83a20f1f820c6cf500bd5f1'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '7c732c1add9f9667bdf8dd66fbf74759'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '15757929bc8d52a3b184c3fcaeb38c64'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '7bcd3684420783ef1f6ebb7680fe958e'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'e9868cffba8a348b31011f87dd53b3c4'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '0a54bbdc44c5f135018c568a887b8279'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '202ac16e99afe7c33c257b248625a947'), 'widgets.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '270dd5f6c9aa56bc9dd178205c859e98'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '02339c8ad03da1e7a03f9212da004007')); \ No newline at end of file diff --git a/src/wp-includes/block-patterns/query-grid-posts.php b/src/wp-includes/block-patterns/query-grid-posts.php index 8091d75c3569b..cb62cb193ed54 100644 --- a/src/wp-includes/block-patterns/query-grid-posts.php +++ b/src/wp-includes/block-patterns/query-grid-posts.php @@ -12,8 +12,8 @@ 'content' => '
- -
+ +
diff --git a/src/wp-includes/block-patterns/query-offset-posts.php b/src/wp-includes/block-patterns/query-offset-posts.php index 31064b92e29d9..34eeb0efac9fe 100644 --- a/src/wp-includes/block-patterns/query-offset-posts.php +++ b/src/wp-includes/block-patterns/query-offset-posts.php @@ -9,8 +9,8 @@ 'title' => _x( 'Offset', 'Block pattern title' ), 'blockTypes' => array( 'core/query' ), 'categories' => array( 'query' ), - 'content' => ' -
+ 'content' => ' +
@@ -35,6 +35,6 @@
-
+
', ); diff --git a/src/wp-includes/blocks/file.php b/src/wp-includes/blocks/file.php index 212bd31228f20..8209061dbb319 100644 --- a/src/wp-includes/blocks/file.php +++ b/src/wp-includes/blocks/file.php @@ -6,7 +6,7 @@ */ /** - * When the `core/file` block is rendering, check if we need to enqueue the `'wp-block-library-file` script. + * When the `core/file` block is rendering, check if we need to enqueue the `'wp-block-file-view` script. * * @param array $attributes The block attributes. * @param array $content The block content. @@ -14,11 +14,9 @@ * @return string Returns the block content. */ function render_block_core_file( $attributes, $content ) { - if ( ! empty( $attributes['displayPreview'] ) ) { - // Check if it's already enqueued, so we don't add the inline script multiple times. - if ( ! wp_script_is( 'wp-block-library-file' ) ) { - wp_enqueue_script( 'wp-block-library-file', plugins_url( 'file/frontend.js', __FILE__ ) ); - } + $should_load_view_script = ! empty( $attributes['displayPreview'] ) && ! wp_script_is( 'wp-block-file-view' ); + if ( $should_load_view_script ) { + wp_enqueue_script( 'wp-block-file-view' ); } return $content; diff --git a/src/wp-includes/blocks/file/block.json b/src/wp-includes/blocks/file/block.json index 4874eec3961d9..b7cfe765078a0 100644 --- a/src/wp-includes/blocks/file/block.json +++ b/src/wp-includes/blocks/file/block.json @@ -51,6 +51,7 @@ "anchor": true, "align": true }, + "viewScript": "file:./view.min.js", "editorStyle": "wp-block-file-editor", "style": "wp-block-file" } diff --git a/src/wp-includes/blocks/site-logo/editor-rtl.css b/src/wp-includes/blocks/site-logo/editor-rtl.css index 8441ce33f5bc4..aa77fd7cadecf 100644 --- a/src/wp-includes/blocks/site-logo/editor-rtl.css +++ b/src/wp-includes/blocks/site-logo/editor-rtl.css @@ -126,4 +126,23 @@ } .wp-block-site-logo .components-placeholder .components-drop-zone__content-text { display: none; +} + +.editor-styles-wrapper .site-logo_placeholder { + display: flex; + flex-direction: row; + align-items: flex-start; + border-radius: 2px; + background-color: #fff; + box-shadow: inset 0 0 0 1px #1e1e1e; + padding: 12px; +} +.editor-styles-wrapper .site-logo_placeholder svg { + margin-left: 12px; +} +.editor-styles-wrapper .site-logo_placeholder p { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; + margin: 0; + line-height: initial; } \ No newline at end of file diff --git a/src/wp-includes/blocks/site-logo/editor-rtl.min.css b/src/wp-includes/blocks/site-logo/editor-rtl.min.css index 029006a4a184b..f18728a30a32e 100644 --- a/src/wp-includes/blocks/site-logo/editor-rtl.min.css +++ b/src/wp-includes/blocks/site-logo/editor-rtl.min.css @@ -1 +1 @@ -.wp-block[data-align=center]>.wp-block-site-logo{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-site-logo .components-placeholder{min-height:auto;height:120px;padding:8px}.wp-block-site-logo .components-placeholder .components-placeholder__label{white-space:nowrap}.wp-block-site-logo .components-placeholder .components-placeholder__label .block-editor-block-icon{margin-left:4px}.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none} \ No newline at end of file +.wp-block[data-align=center]>.wp-block-site-logo{margin-right:auto;margin-left:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-site-logo .components-placeholder{min-height:auto;height:120px;padding:8px}.wp-block-site-logo .components-placeholder .components-placeholder__label{white-space:nowrap}.wp-block-site-logo .components-placeholder .components-placeholder__label .block-editor-block-icon{margin-left:4px}.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;left:4px;bottom:4px;right:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.editor-styles-wrapper .site-logo_placeholder{display:flex;flex-direction:row;align-items:flex-start;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;padding:12px}.editor-styles-wrapper .site-logo_placeholder svg{margin-left:12px}.editor-styles-wrapper .site-logo_placeholder p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0;line-height:normal} \ No newline at end of file diff --git a/src/wp-includes/blocks/site-logo/editor.css b/src/wp-includes/blocks/site-logo/editor.css index 709d0c9a210de..848bc7c487252 100644 --- a/src/wp-includes/blocks/site-logo/editor.css +++ b/src/wp-includes/blocks/site-logo/editor.css @@ -126,4 +126,23 @@ } .wp-block-site-logo .components-placeholder .components-drop-zone__content-text { display: none; +} + +.editor-styles-wrapper .site-logo_placeholder { + display: flex; + flex-direction: row; + align-items: flex-start; + border-radius: 2px; + background-color: #fff; + box-shadow: inset 0 0 0 1px #1e1e1e; + padding: 12px; +} +.editor-styles-wrapper .site-logo_placeholder svg { + margin-right: 12px; +} +.editor-styles-wrapper .site-logo_placeholder p { + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; + font-size: 13px; + margin: 0; + line-height: initial; } \ No newline at end of file diff --git a/src/wp-includes/blocks/site-logo/editor.min.css b/src/wp-includes/blocks/site-logo/editor.min.css index a08db2a169a03..1664e7e495d14 100644 --- a/src/wp-includes/blocks/site-logo/editor.min.css +++ b/src/wp-includes/blocks/site-logo/editor.min.css @@ -1 +1 @@ -.wp-block[data-align=center]>.wp-block-site-logo{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-site-logo .components-placeholder{min-height:auto;height:120px;padding:8px}.wp-block-site-logo .components-placeholder .components-placeholder__label{white-space:nowrap}.wp-block-site-logo .components-placeholder .components-placeholder__label .block-editor-block-icon{margin-right:4px}.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none} \ No newline at end of file +.wp-block[data-align=center]>.wp-block-site-logo{margin-left:auto;margin-right:auto;text-align:center}.wp-block-site-logo a{pointer-events:none}.wp-block-site-logo:not(.is-default-size){display:table}.wp-block-site-logo.is-default-size{width:120px}.wp-block-site-logo.is-default-size img{width:100%}.wp-block-site-logo .custom-logo-link{cursor:inherit}.wp-block-site-logo .custom-logo-link:focus{box-shadow:none}.wp-block-site-logo .custom-logo-link.is-transient img{opacity:.3}.wp-block-site-logo img{display:block;max-width:100%}.wp-block-site-logo .components-placeholder{min-height:auto;height:120px;padding:8px}.wp-block-site-logo .components-placeholder .components-placeholder__label{white-space:nowrap}.wp-block-site-logo .components-placeholder .components-placeholder__label .block-editor-block-icon{margin-right:4px}.wp-block-site-logo .components-placeholder .components-form-file-upload{display:none}.wp-block-site-logo .components-placeholder .components-placeholder__preview{position:absolute;top:4px;right:4px;bottom:4px;left:4px;background:hsla(0,0%,100%,.8);display:flex;align-items:center;justify-content:center}.wp-block-site-logo .components-placeholder .components-drop-zone__content-text{display:none}.editor-styles-wrapper .site-logo_placeholder{display:flex;flex-direction:row;align-items:flex-start;border-radius:2px;background-color:#fff;box-shadow:inset 0 0 0 1px #1e1e1e;padding:12px}.editor-styles-wrapper .site-logo_placeholder svg{margin-right:12px}.editor-styles-wrapper .site-logo_placeholder p{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;font-size:13px;margin:0;line-height:normal} \ No newline at end of file diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index 4733e6e497569..21285caece6cc 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -1095,7 +1095,6 @@ public function merge( $incoming ) { * In those cases, we want to replace the existing with the incoming value, if it exists. */ $to_replace = array(); - $to_replace[] = array( 'custom' ); $to_replace[] = array( 'spacing', 'units' ); $to_replace[] = array( 'color', 'duotone' ); foreach ( self::VALID_ORIGINS as $origin ) { diff --git a/src/wp-includes/rest-api/class-wp-rest-server.php b/src/wp-includes/rest-api/class-wp-rest-server.php index f9e35bdcbf698..6891889410aa1 100644 --- a/src/wp-includes/rest-api/class-wp-rest-server.php +++ b/src/wp-includes/rest-api/class-wp-rest-server.php @@ -1228,6 +1228,7 @@ public function get_index( $request ) { $response = new WP_REST_Response( $available ); $response->add_link( 'help', 'https://developer.wordpress.org/rest-api/' ); $this->add_active_theme_link_to_index( $response ); + $this->add_site_logo_to_index( $response ); /** * Filters the REST API root index data. @@ -1272,6 +1273,29 @@ protected function add_active_theme_link_to_index( WP_REST_Response $response ) } } + /** + * Exposes the site logo through the WordPress REST API. + * This is used for fetching this information when user has no rights + * to update settings. + * + * @since 5.8.0 + * + * @param WP_REST_Response $response REST API response. + */ + protected function add_site_logo_to_index( WP_REST_Response $response ) { + $site_logo_id = get_theme_mod( 'custom_logo' ); + $response->data['site_logo'] = $site_logo_id; + if ( $site_logo_id ) { + $response->add_link( + 'https://api.w.org/featuredmedia', + rest_url( 'wp/v2/media/' . $site_logo_id ), + array( + 'embeddable' => true, + ) + ); + } + } + /** * Retrieves the index for a namespace. *