From 377c88d4620d12c2e35d345f6fa53d614580ac48 Mon Sep 17 00:00:00 2001 From: Riad Benguella Date: Tue, 8 Jun 2021 08:07:15 +0000 Subject: [PATCH] Block Editor: Package updates for 5.8 beta 1. This includes the following fixes: Widgets Editor: - Load widgets.php https://github.com/WordPress/gutenberg/pull/32299 - Fix Legacy Widget Preview https://github.com/WordPress/gutenberg/pull/32300 - Fix error when saving empty Legacy Widget block https://github.com/WordPress/gutenberg/pull/32359 Widget blocks in the customizer: - Fix deselection blocks when the inspector is open https://github.com/WordPress/gutenberg/pull/32361 - Display wide widgets as popovers https://github.com/WordPress/gutenberg/pull/31736 Global Styles: - Align classNames generation between client and server https://github.com/WordPress/gutenberg/pull/32352 - Group typography block supports https://github.com/WordPress/gutenberg/pull/32252 https://github.com/WordPress/gutenberg/pull/32444 https://github.com/WordPress/gutenberg/pull/32459 - Make theme.json syntax errors more visible to the users https://github.com/WordPress/gutenberg/pull/32404 Template Editor: - Update the appearance of the template details https://github.com/WordPress/gutenberg/pull/32042 - Fix layout definition https://github.com/WordPress/gutenberg/pull/32425 - Fix grouping post content block https://github.com/WordPress/gutenberg/pull/32453 Miscellaneous: - Prevent saving when the post is locked https://github.com/WordPress/gutenberg/pull/32341 - Fix allowed block patterns selector https://github.com/WordPress/gutenberg/pull/32376 - Fix wrong results in the Post Author picker https://github.com/WordPress/gutenberg/pull/32344 - Fix notices position in top toolbar mode https://github.com/WordPress/gutenberg/pull/32238 - Allow non-latin characters in post slugs https://github.com/WordPress/gutenberg/pull/32232 - Fix Random collapse of the color settings panel https://github.com/WordPress/gutenberg/pull/32388 - Fix theme logo theme mode not being removed on theme removal https://github.com/WordPress/gutenberg/pull/32370 - Fix block alignment styles in the editor https://github.com/WordPress/gutenberg/pull/32454 - Fix some block toolbar overlaps https://github.com/WordPress/gutenberg/pull/32424 - Fix content loss when switching list types https://github.com/WordPress/gutenberg/pull/32432 Performance: - Improve the performance of buttons block https://github.com/WordPress/gutenberg/pull/32356 - Improve the performance of the container blocks https://github.com/WordPress/gutenberg/pull/32380 Props noisysocks, nosolosw, jorgefilipecosta. See #52991. git-svn-id: https://develop.svn.wordpress.org/trunk@51089 602fd350-edb4-49c9-b593-d223f7449a82 --- package-lock.json | 569 ++++++++++-------- package.json | 36 +- .../assets/script-loader-packages.php | 2 +- src/wp-includes/block-supports/typography.php | 92 +-- src/wp-includes/blocks.php | 26 + src/wp-includes/blocks/button/block.json | 6 +- src/wp-includes/blocks/code/block.json | 4 +- src/wp-includes/blocks/heading/block.json | 7 +- src/wp-includes/blocks/legacy-widget.php | 23 +- src/wp-includes/blocks/list/block.json | 5 +- src/wp-includes/blocks/loginout/block.json | 4 +- src/wp-includes/blocks/paragraph/block.json | 6 +- src/wp-includes/blocks/post-date/block.json | 6 +- .../blocks/post-excerpt/block.json | 6 +- src/wp-includes/blocks/post-terms/block.json | 6 +- src/wp-includes/blocks/post-title/block.json | 8 +- .../blocks/preformatted/block.json | 4 +- .../blocks/query-pagination-next/block.json | 6 +- .../query-pagination-previous/block.json | 6 +- src/wp-includes/blocks/query-title/block.json | 8 +- .../blocks/site-tagline/block.json | 10 +- src/wp-includes/blocks/site-title/block.json | 14 +- src/wp-includes/blocks/verse/block.json | 6 +- .../class-wp-theme-json-resolver.php | 2 +- src/wp-includes/class-wp-theme-json.php | 6 +- src/wp-includes/default-filters.php | 2 + tests/phpunit/includes/functions.php | 2 +- 27 files changed, 522 insertions(+), 350 deletions(-) diff --git a/package-lock.json b/package-lock.json index 92d41b460c3f2..dede7b1c32a1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1435,15 +1435,15 @@ "integrity": "sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA==" }, "@eslint/eslintrc": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.1.tgz", - "integrity": "sha512-5v7TDE9plVhvxQeWLXDTvFvJBdH6pEsdnl2g/dAptmuFEPedQ4Erq5rsDsX+mvAM610IhNaO2W5V1dOOnDKxkQ==", + "version": "0.4.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.2.tgz", + "integrity": "sha512-8nmGq/4ycLpIwzvhI4tNDmQztZ8sp+hI7cyG8i1nQDhkAbRzHpXPidRAHlNvCZQpJTKw5ItIpMw9RSToGF00mg==", "dev": true, "requires": { "ajv": "^6.12.4", "debug": "^4.1.1", "espree": "^7.3.0", - "globals": "^12.1.0", + "globals": "^13.9.0", "ignore": "^4.0.6", "import-fresh": "^3.2.1", "js-yaml": "^3.13.1", @@ -1452,12 +1452,12 @@ }, "dependencies": { "globals": { - "version": "12.4.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-12.4.0.tgz", - "integrity": "sha512-BWICuzzDvDoH54NHKCseDanAhE3CeDorgDL5MT6LMXXj2WCnd9UC2szdk4AWLfjdgNBCXLUanXYcpBBKOSWGwg==", + "version": "13.9.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.9.0.tgz", + "integrity": "sha512-74/FduwI/JaIrr1H8e71UbDE+5x7pIPs1C2rrwC52SszOo043CsWOZEMW7o2Y58xwm9b+0RBKDxY5n2sUpEFxA==", "dev": true, "requires": { - "type-fest": "^0.8.1" + "type-fest": "^0.20.2" } }, "ignore": { @@ -1465,6 +1465,12 @@ "resolved": "https://registry.npmjs.org/ignore/-/ignore-4.0.6.tgz", "integrity": "sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==", "dev": true + }, + "type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true } } }, @@ -2115,28 +2121,28 @@ } }, "@nodelib/fs.scandir": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", - "integrity": "sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==", + "version": "2.1.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", "dev": true, "requires": { - "@nodelib/fs.stat": "2.0.4", + "@nodelib/fs.stat": "2.0.5", "run-parallel": "^1.1.9" } }, "@nodelib/fs.stat": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz", - "integrity": "sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q==", + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", "dev": true }, "@nodelib/fs.walk": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz", - "integrity": "sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==", + "version": "1.2.7", + "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.7.tgz", + "integrity": "sha512-BTIhocbPBSrRmHxOAJFtR18oLhxTtAFDAvL8hY1S3iU8k+E60W/YFs4jrixGzQjMpF4qPXxIQHcjVD9dz1C2QA==", "dev": true, "requires": { - "@nodelib/fs.scandir": "2.1.4", + "@nodelib/fs.scandir": "2.1.5", "fastq": "^1.6.0" } }, @@ -2588,9 +2594,9 @@ } }, "@types/istanbul-reports": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.0.tgz", - "integrity": "sha512-nwKNbvnwJ2/mndE9ItP/zc2TCzw6uuodnF4EHYWD+gCQDVBuRQL5UzbZD0/ezy1iKsFU2ZQiDqg4M9dN4+wZgA==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", "dev": true, "requires": { "@types/istanbul-lib-report": "*" @@ -2793,35 +2799,67 @@ } }, "@typescript-eslint/eslint-plugin": { - "version": "4.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.25.0.tgz", - "integrity": "sha512-Qfs3dWkTMKkKwt78xp2O/KZQB8MPS1UQ5D3YW2s6LQWBE1074BE+Rym+b1pXZIX3M3fSvPUDaCvZLKV2ylVYYQ==", + "version": "4.26.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.26.0.tgz", + "integrity": "sha512-yA7IWp+5Qqf+TLbd8b35ySFOFzUfL7i+4If50EqvjT6w35X8Lv0eBHb6rATeWmucks37w+zV+tWnOXI9JlG6Eg==", "dev": true, "requires": { - "@typescript-eslint/experimental-utils": "4.25.0", - "@typescript-eslint/scope-manager": "4.25.0", - "debug": "^4.1.1", + "@typescript-eslint/experimental-utils": "4.26.0", + "@typescript-eslint/scope-manager": "4.26.0", + "debug": "^4.3.1", "functional-red-black-tree": "^1.0.1", - "lodash": "^4.17.15", - "regexpp": "^3.0.0", - "semver": "^7.3.2", - "tsutils": "^3.17.1" + "lodash": "^4.17.21", + "regexpp": "^3.1.0", + "semver": "^7.3.5", + "tsutils": "^3.21.0" + }, + "dependencies": { + "debug": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + } } }, "@typescript-eslint/experimental-utils": { - "version": "4.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.25.0.tgz", - "integrity": "sha512-f0doRE76vq7NEEU0tw+ajv6CrmPelw5wLoaghEHkA2dNLFb3T/zJQqGPQ0OYt5XlZaS13MtnN+GTPCuUVg338w==", + "version": "4.26.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.26.0.tgz", + "integrity": "sha512-TH2FO2rdDm7AWfAVRB5RSlbUhWxGVuxPNzGT7W65zVfl8H/WeXTk1e69IrcEVsBslrQSTDKQSaJD89hwKrhdkw==", "dev": true, "requires": { - "@types/json-schema": "^7.0.3", - "@typescript-eslint/scope-manager": "4.25.0", - "@typescript-eslint/types": "4.25.0", - "@typescript-eslint/typescript-estree": "4.25.0", - "eslint-scope": "^5.0.0", - "eslint-utils": "^2.0.0" + "@types/json-schema": "^7.0.7", + "@typescript-eslint/scope-manager": "4.26.0", + "@typescript-eslint/types": "4.26.0", + "@typescript-eslint/typescript-estree": "4.26.0", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" }, "dependencies": { + "@types/json-schema": { + "version": "7.0.7", + "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.7.tgz", + "integrity": "sha512-cxWFQVseBm6O9Gbw1IWb8r6OS4OhSt3hPZLkFApLjM8TEXROBuQGLAH2i2gZpcXdLBIrpXuTDhH7Vbm1iXmNGA==", + "dev": true + }, "eslint-scope": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz", @@ -2835,46 +2873,63 @@ } }, "@typescript-eslint/parser": { - "version": "4.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.25.0.tgz", - "integrity": "sha512-OZFa1SKyEJpAhDx8FcbWyX+vLwh7OEtzoo2iQaeWwxucyfbi0mT4DijbOSsTgPKzGHr6GrF2V5p/CEpUH/VBxg==", + "version": "4.26.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-4.26.0.tgz", + "integrity": "sha512-b4jekVJG9FfmjUfmM4VoOItQhPlnt6MPOBUL0AQbiTmm+SSpSdhHYlwayOm4IW9KLI/4/cRKtQCmDl1oE2OlPg==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "4.25.0", - "@typescript-eslint/types": "4.25.0", - "@typescript-eslint/typescript-estree": "4.25.0", - "debug": "^4.1.1" + "@typescript-eslint/scope-manager": "4.26.0", + "@typescript-eslint/types": "4.26.0", + "@typescript-eslint/typescript-estree": "4.26.0", + "debug": "^4.3.1" + }, + "dependencies": { + "debug": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + } } }, "@typescript-eslint/scope-manager": { - "version": "4.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.25.0.tgz", - "integrity": "sha512-2NElKxMb/0rya+NJG1U71BuNnp1TBd1JgzYsldsdA83h/20Tvnf/HrwhiSlNmuq6Vqa0EzidsvkTArwoq+tH6w==", + "version": "4.26.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.26.0.tgz", + "integrity": "sha512-G6xB6mMo4xVxwMt5lEsNTz3x4qGDt0NSGmTBNBPJxNsrTXJSm21c6raeYroS2OwQsOyIXqKZv266L/Gln1BWqg==", "dev": true, "requires": { - "@typescript-eslint/types": "4.25.0", - "@typescript-eslint/visitor-keys": "4.25.0" + "@typescript-eslint/types": "4.26.0", + "@typescript-eslint/visitor-keys": "4.26.0" } }, "@typescript-eslint/types": { - "version": "4.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.25.0.tgz", - "integrity": "sha512-+CNINNvl00OkW6wEsi32wU5MhHti2J25TJsJJqgQmJu3B3dYDBcmOxcE5w9cgoM13TrdE/5ND2HoEnBohasxRQ==", + "version": "4.26.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.26.0.tgz", + "integrity": "sha512-rADNgXl1kS/EKnDr3G+m7fB9yeJNnR9kF7xMiXL6mSIWpr3Wg5MhxyfEXy/IlYthsqwBqHOr22boFbf/u6O88A==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "4.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.25.0.tgz", - "integrity": "sha512-1B8U07TGNAFMxZbSpF6jqiDs1cVGO0izVkf18Q/SPcUAc9LhHxzvSowXDTvkHMWUVuPpagupaW63gB6ahTXVlg==", + "version": "4.26.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.26.0.tgz", + "integrity": "sha512-GHUgahPcm9GfBuy3TzdsizCcPjKOAauG9xkz9TR8kOdssz2Iz9jRCSQm6+aVFa23d5NcSpo1GdHGSQKe0tlcbg==", "dev": true, "requires": { - "@typescript-eslint/types": "4.25.0", - "@typescript-eslint/visitor-keys": "4.25.0", - "debug": "^4.1.1", - "globby": "^11.0.1", + "@typescript-eslint/types": "4.26.0", + "@typescript-eslint/visitor-keys": "4.26.0", + "debug": "^4.3.1", + "globby": "^11.0.3", "is-glob": "^4.0.1", - "semver": "^7.3.2", - "tsutils": "^3.17.1" + "semver": "^7.3.5", + "tsutils": "^3.21.0" }, "dependencies": { "array-union": { @@ -2883,6 +2938,15 @@ "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", "dev": true }, + "debug": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } + }, "globby": { "version": "11.0.3", "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", @@ -2896,16 +2960,31 @@ "merge2": "^1.3.0", "slash": "^3.0.0" } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } } } }, "@typescript-eslint/visitor-keys": { - "version": "4.25.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.25.0.tgz", - "integrity": "sha512-AmkqV9dDJVKP/TcZrbf6s6i1zYXt5Hl8qOLrRDTFfRNae4+LB8A4N3i+FLZPW85zIxRy39BgeWOfMS3HoH5ngg==", + "version": "4.26.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.26.0.tgz", + "integrity": "sha512-cw4j8lH38V1ycGBbF+aFiLUls9Z0Bw8QschP3mkth50BbWzgFS33ISIgBzUMuQ2IdahoEv/rXstr8Zhlz4B1Zg==", "dev": true, "requires": { - "@typescript-eslint/types": "4.25.0", + "@typescript-eslint/types": "4.26.0", "eslint-visitor-keys": "^2.0.0" } }, @@ -3159,17 +3238,17 @@ }, "dependencies": { "core-js": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.13.1.tgz", - "integrity": "sha512-JqveUc4igkqwStL2RTRn/EPFGBOfEZHxJl/8ej1mXJR75V3go2mFF4bmUYkEIT1rveHKnkUlcJX/c+f1TyIovQ==", + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.14.0.tgz", + "integrity": "sha512-3s+ed8er9ahK+zJpp9ZtuVcDoFzHNiZsPbNAAE4KXgrRHbjSqqNN6xGSXq6bq7TZIbKj4NLrLb6bJ5i+vSVjHA==", "dev": true } } }, "@wordpress/base-styles": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/@wordpress/base-styles/-/base-styles-3.5.1.tgz", - "integrity": "sha512-fK0BYDW4+Ch3JqjC/mObnOKjhYNGrIotZjrY2PfAOckRR3sBWY3g4ujgx1sSlcAeNskhGDULylQWhuF+MvQ7bw==", + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/@wordpress/base-styles/-/base-styles-3.5.2.tgz", + "integrity": "sha512-29M9yiZte+1gInnHmAvfRr8HaPrkm8c+kDX2PkO1IJ5trWOUFcM8sCG/Cxm0N+c+6EpE5ToxME0Ex8CgZ52IKA==", "dev": true }, "@wordpress/blob": { @@ -3181,22 +3260,22 @@ } }, "@wordpress/block-directory": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-2.1.3.tgz", - "integrity": "sha512-wc3n5+Fa2eQNJQPy5VF7WWjO+iLg6fEOX2DpeIE/z7LshRwR/Tfd2e5c+5+rp3o2XgOctQ/rCq8MoJE0jguFRA==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-2.1.4.tgz", + "integrity": "sha512-2c+EUSwAj0Zh6x3Rg3xfAmUKMFTJar5K91/N37ICK43Zls/3y807QcEXBIYRL767QvQi2eIo+ZWoSD0HAr/hDA==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/a11y": "^3.1.1", "@wordpress/api-fetch": "^5.1.1", - "@wordpress/block-editor": "^6.1.1", - "@wordpress/blocks": "^9.1.1", - "@wordpress/components": "^14.1.1", + "@wordpress/block-editor": "^6.1.2", + "@wordpress/blocks": "^9.1.2", + "@wordpress/components": "^14.1.2", "@wordpress/compose": "^4.1.1", - "@wordpress/core-data": "^3.1.2", + "@wordpress/core-data": "^3.1.3", "@wordpress/data": "^5.1.1", "@wordpress/data-controls": "^2.1.1", - "@wordpress/edit-post": "^4.1.3", - "@wordpress/editor": "^10.1.2", + "@wordpress/edit-post": "^4.1.4", + "@wordpress/editor": "^10.1.3", "@wordpress/element": "^3.1.1", "@wordpress/hooks": "^3.1.1", "@wordpress/html-entities": "^3.1.1", @@ -3209,16 +3288,16 @@ } }, "@wordpress/block-editor": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-6.1.1.tgz", - "integrity": "sha512-+TUHeHa6kA/mBGFuYFSZgFYVFKVBlCSmHhErM8YhjU1SAXRiWp8WrpJEQgW8dOWMRGm/XjXdM2UGBAZyuc4C2A==", + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-6.1.2.tgz", + "integrity": "sha512-0jDHpJwgX1eSqOZI0P2mblJGBW/AqZ/IFzHzcesvXScBnHF5ub1GZnnYXSnoQFiUoDYjnb3QuvbwZjRXwt1fCA==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/a11y": "^3.1.1", "@wordpress/blob": "^3.1.1", "@wordpress/block-serialization-default-parser": "^4.1.1", - "@wordpress/blocks": "^9.1.1", - "@wordpress/components": "^14.1.1", + "@wordpress/blocks": "^9.1.2", + "@wordpress/components": "^14.1.2", "@wordpress/compose": "^4.1.1", "@wordpress/data": "^5.1.1", "@wordpress/data-controls": "^2.1.1", @@ -3254,25 +3333,25 @@ } }, "@wordpress/block-library": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-3.2.2.tgz", - "integrity": "sha512-DXG6fitkxQvEzNNMi/C7CUYlTeiDtZ4Llo2FOI61Bh8P+cHPbh5Kq8zSk98LJJQL6HGlJxCazEZXfOqFVbukYQ==", + "version": "3.2.3", + "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-3.2.3.tgz", + "integrity": "sha512-jfa7l3mop9dIWxqN6LaIqSKtXPVvm881m9z0OVlM4fiZ+Xd1U92mI6TUChZm9UM2AJO43GQYECeZ1T8sJz+sSQ==", "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.1", - "@wordpress/blocks": "^9.1.1", - "@wordpress/components": "^14.1.1", + "@wordpress/block-editor": "^6.1.2", + "@wordpress/blocks": "^9.1.2", + "@wordpress/components": "^14.1.2", "@wordpress/compose": "^4.1.1", - "@wordpress/core-data": "^3.1.2", + "@wordpress/core-data": "^3.1.3", "@wordpress/data": "^5.1.1", "@wordpress/date": "^4.1.1", "@wordpress/deprecated": "^3.1.1", "@wordpress/dom": "^3.1.1", - "@wordpress/editor": "^10.1.2", + "@wordpress/editor": "^10.1.3", "@wordpress/element": "^3.1.1", "@wordpress/escape-html": "^2.1.1", "@wordpress/hooks": "^3.1.1", @@ -3282,9 +3361,9 @@ "@wordpress/keycodes": "^3.1.1", "@wordpress/notices": "^3.1.1", "@wordpress/primitives": "^2.1.1", - "@wordpress/reusable-blocks": "^2.1.2", + "@wordpress/reusable-blocks": "^2.1.3", "@wordpress/rich-text": "^4.1.1", - "@wordpress/server-side-render": "^2.1.1", + "@wordpress/server-side-render": "^2.1.2", "@wordpress/url": "^3.1.1", "@wordpress/viewport": "^3.1.1", "classnames": "^2.2.5", @@ -3306,9 +3385,9 @@ } }, "@wordpress/blocks": { - "version": "9.1.1", - "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-9.1.1.tgz", - "integrity": "sha512-jB8opZVUKzqgUiEqOH9JhKcyrLooBTbEBSEnMKc1/Ej9Xc9QWnThKCuv3AnHLp5ThFzpTYa3y6nyMVbi2Dkhlw==", + "version": "9.1.2", + "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-9.1.2.tgz", + "integrity": "sha512-JCc3zV3fJzmJ114nN4g7yzA+Dp8jbwp5IzqO3VdjEifd+nbnTzrikeAlddTHYl55DKeQFMsVMsV9L0q7PhgcnQ==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/autop": "^3.1.1", @@ -3341,9 +3420,9 @@ "dev": true }, "@wordpress/components": { - "version": "14.1.1", - "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-14.1.1.tgz", - "integrity": "sha512-MXq9B+v/sVUvvOieiGIkK7pgIRssl8szbeN1XglYL0kgFUmney02xV+IffDE9UocWBIwjQzVD2/LigBCHn4ISQ==", + "version": "14.1.2", + "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-14.1.2.tgz", + "integrity": "sha512-Fc1zjhJfCnmACtX8tVoQWJZLXE871Hr2aA8plKnf/hkbowlL1yIRu8JzTj1xpqmJ1ItnoLXwn34obfna20Lscw==", "requires": { "@babel/runtime": "^7.13.10", "@emotion/cache": "^10.0.27", @@ -3405,13 +3484,13 @@ } }, "@wordpress/core-data": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-3.1.2.tgz", - "integrity": "sha512-4a8k78ILhBLtKQ+suXCI990Tpo5whuPiDsbxslC+px4qKZvfGaXIisOaMaoX5GTVxe920tlnvp1AqFosmFxqaA==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-3.1.3.tgz", + "integrity": "sha512-CEIF39cugCfMQ9pYinmJCut7xvpel5G6pOJTAiQ3HjgdjsLq4frPSJgzHaIVDcfXjRoSYaClv/bkZV1rhoVcJw==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/api-fetch": "^5.1.1", - "@wordpress/blocks": "^9.1.1", + "@wordpress/blocks": "^9.1.2", "@wordpress/data": "^5.1.1", "@wordpress/data-controls": "^2.1.1", "@wordpress/element": "^3.1.1", @@ -3435,18 +3514,18 @@ } }, "@wordpress/customize-widgets": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-1.0.2.tgz", - "integrity": "sha512-GbcyTGCvYb+Tt7hONHiiUNYtayHDUcTsJ3CB/jKs/jXwzZHaa5E9qnduKhUdhdDC1n7JbRadPEvjjyZccyFPWg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-1.0.3.tgz", + "integrity": "sha512-2nICoprIR3jHlJyHdivwYWaC6N2cKzjsdhQk315zcbr51E83mirO5yEaK4V0wtu/fad6gDAqahydMRSAiJxTHA==", "requires": { "@babel/runtime": "^7.11.2", "@wordpress/a11y": "^3.1.1", - "@wordpress/block-editor": "^6.1.1", - "@wordpress/block-library": "^3.2.2", - "@wordpress/blocks": "^9.1.1", - "@wordpress/components": "^14.1.1", + "@wordpress/block-editor": "^6.1.2", + "@wordpress/block-library": "^3.2.3", + "@wordpress/blocks": "^9.1.2", + "@wordpress/components": "^14.1.2", "@wordpress/compose": "^4.1.1", - "@wordpress/core-data": "^3.1.2", + "@wordpress/core-data": "^3.1.3", "@wordpress/data": "^5.1.1", "@wordpress/dom": "^3.1.1", "@wordpress/element": "^3.1.1", @@ -3457,7 +3536,7 @@ "@wordpress/keyboard-shortcuts": "^2.1.1", "@wordpress/keycodes": "^3.1.1", "@wordpress/media-utils": "^2.1.1", - "@wordpress/widgets": "^1.1.2", + "@wordpress/widgets": "^1.1.3", "classnames": "^2.2.6", "lodash": "^4.17.21" } @@ -3572,27 +3651,27 @@ } }, "@wordpress/edit-post": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-4.1.3.tgz", - "integrity": "sha512-wUxxL7uqCZFrpRIlvnW/nTat3v7gPPYs03nWRT5ia46d9ctVQY1RQxDzy4UglvBadidRA7BAsthTH1eJQ8ADsQ==", + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-4.1.4.tgz", + "integrity": "sha512-ZvMvclyDgEPqRiNDuon6K8jubM9spFeyFV4tRVJWswbWyobUpwgLj2FqLS7Iv0MiprmakpjH5qVUPNrn+B1U6w==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/a11y": "^3.1.1", "@wordpress/api-fetch": "^5.1.1", - "@wordpress/block-editor": "^6.1.1", - "@wordpress/block-library": "^3.2.2", - "@wordpress/blocks": "^9.1.1", - "@wordpress/components": "^14.1.1", + "@wordpress/block-editor": "^6.1.2", + "@wordpress/block-library": "^3.2.3", + "@wordpress/blocks": "^9.1.2", + "@wordpress/components": "^14.1.2", "@wordpress/compose": "^4.1.1", - "@wordpress/core-data": "^3.1.2", + "@wordpress/core-data": "^3.1.3", "@wordpress/data": "^5.1.1", "@wordpress/data-controls": "^2.1.1", - "@wordpress/editor": "^10.1.2", + "@wordpress/editor": "^10.1.3", "@wordpress/element": "^3.1.1", "@wordpress/hooks": "^3.1.1", "@wordpress/i18n": "^4.1.1", "@wordpress/icons": "^4.0.1", - "@wordpress/interface": "^3.1.1", + "@wordpress/interface": "^3.1.2", "@wordpress/keyboard-shortcuts": "^2.1.1", "@wordpress/keycodes": "^3.1.1", "@wordpress/media-utils": "^2.1.1", @@ -3618,35 +3697,35 @@ } }, "@wordpress/edit-widgets": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-2.1.3.tgz", - "integrity": "sha512-9hTU7wC5IAtEpqVU2TpUcWG82c0aaJ21kzteebMn9JKyYYtVDEulyMwcudG4rx3zjwJn1koBNHyXhwtYoPn7EQ==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-2.1.4.tgz", + "integrity": "sha512-E+z1JiA0FF45vy3kURgsO9mMGE9ea5y/tiVCVL7vhcwDwOXx+YHNSZKLuCDcCTRNdbJYGfDyU0yYVdeCnopgog==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/a11y": "^3.1.1", "@wordpress/api-fetch": "^5.1.1", - "@wordpress/block-editor": "^6.1.1", - "@wordpress/block-library": "^3.2.2", - "@wordpress/blocks": "^9.1.1", - "@wordpress/components": "^14.1.1", + "@wordpress/block-editor": "^6.1.2", + "@wordpress/block-library": "^3.2.3", + "@wordpress/blocks": "^9.1.2", + "@wordpress/components": "^14.1.2", "@wordpress/compose": "^4.1.1", - "@wordpress/core-data": "^3.1.2", + "@wordpress/core-data": "^3.1.3", "@wordpress/data": "^5.1.1", "@wordpress/data-controls": "^2.1.1", "@wordpress/element": "^3.1.1", "@wordpress/hooks": "^3.1.1", "@wordpress/i18n": "^4.1.1", "@wordpress/icons": "^4.0.1", - "@wordpress/interface": "^3.1.1", + "@wordpress/interface": "^3.1.2", "@wordpress/keyboard-shortcuts": "^2.1.1", "@wordpress/keycodes": "^3.1.1", "@wordpress/media-utils": "^2.1.1", "@wordpress/notices": "^3.1.1", "@wordpress/plugins": "^3.1.1", - "@wordpress/reusable-blocks": "^2.1.2", - "@wordpress/server-side-render": "^2.1.1", + "@wordpress/reusable-blocks": "^2.1.3", + "@wordpress/server-side-render": "^2.1.2", "@wordpress/url": "^3.1.1", - "@wordpress/widgets": "^1.1.2", + "@wordpress/widgets": "^1.1.3", "classnames": "^2.2.5", "lodash": "^4.17.21", "rememo": "^3.0.0", @@ -3654,19 +3733,19 @@ } }, "@wordpress/editor": { - "version": "10.1.2", - "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-10.1.2.tgz", - "integrity": "sha512-hUWXoOF3IvI23VRkQEwpb9Njxu6Wg2MAO5iRN6h+TkeZR0aQDkQOZcJs/av05jVtfQENUR2JAd5SiEwXdEqGJQ==", + "version": "10.1.3", + "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-10.1.3.tgz", + "integrity": "sha512-ZOkJUwUVHaKslmQ6k7E0mSUBsastEdz/NfszR87r/PMkrkVxAYpWignQPyI5FKWnpvfHqbAkk50gX0Ey6ohAEw==", "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.1", - "@wordpress/blocks": "^9.1.1", - "@wordpress/components": "^14.1.1", + "@wordpress/block-editor": "^6.1.2", + "@wordpress/blocks": "^9.1.2", + "@wordpress/components": "^14.1.2", "@wordpress/compose": "^4.1.1", - "@wordpress/core-data": "^3.1.2", + "@wordpress/core-data": "^3.1.3", "@wordpress/data": "^5.1.1", "@wordpress/data-controls": "^2.1.1", "@wordpress/date": "^4.1.1", @@ -3681,9 +3760,9 @@ "@wordpress/keycodes": "^3.1.1", "@wordpress/media-utils": "^2.1.1", "@wordpress/notices": "^3.1.1", - "@wordpress/reusable-blocks": "^2.1.2", + "@wordpress/reusable-blocks": "^2.1.3", "@wordpress/rich-text": "^4.1.1", - "@wordpress/server-side-render": "^2.1.1", + "@wordpress/server-side-render": "^2.1.2", "@wordpress/url": "^3.1.1", "@wordpress/wordcount": "^3.1.1", "classnames": "^2.2.5", @@ -3770,14 +3849,14 @@ } }, "@wordpress/format-library": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-2.1.1.tgz", - "integrity": "sha512-tM3woFvpI1Q1wzlHuak55Vu9BTg0ks89B05973PyzvTA0jWkf3h3PXeCrPADw8jsBE1aT/sEA6lIracFyD5jPQ==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-2.1.2.tgz", + "integrity": "sha512-O6DHdVuDw0SJaxu6NGiDONYUu9kKxe3tKHVlwpluTkSPEUk4f9wVHv5A82X2b+zkEY5K19667Tz0qNQ3+PImiA==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/a11y": "^3.1.1", - "@wordpress/block-editor": "^6.1.1", - "@wordpress/components": "^14.1.1", + "@wordpress/block-editor": "^6.1.2", + "@wordpress/components": "^14.1.2", "@wordpress/compose": "^4.1.1", "@wordpress/data": "^5.1.1", "@wordpress/dom": "^3.1.1", @@ -3832,12 +3911,12 @@ } }, "@wordpress/interface": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@wordpress/interface/-/interface-3.1.1.tgz", - "integrity": "sha512-d+m/1bSrxHOKNdXTneL1Dp81xey8YQmU+KGI6bfluX/ZmEe0ch0/kn1Q2ZeCK6PqWCXqf65cHBjC1Qh9AQSB2Q==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@wordpress/interface/-/interface-3.1.2.tgz", + "integrity": "sha512-wCLmk288v7kXbDWksaX3VeX82h4PdTKdJT/8q2URzW2DlBrvh/hBMy/ALUHhTYXXxFn4Xyj2NmM5ro6sl9IjAA==", "requires": { "@babel/runtime": "^7.13.10", - "@wordpress/components": "^14.1.1", + "@wordpress/components": "^14.1.2", "@wordpress/compose": "^4.1.1", "@wordpress/data": "^5.1.1", "@wordpress/deprecated": "^3.1.1", @@ -3935,13 +4014,13 @@ } }, "@wordpress/list-reusable-blocks": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-2.1.1.tgz", - "integrity": "sha512-lhklrpVvrHDSHkICuzi1qI3i0FGYNSR6RRagDxP+O3PK6C1DTzryL/bvV7TmCVGxJXzkWrymlfiLhrlKqAZXUQ==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-2.1.2.tgz", + "integrity": "sha512-CygAl+okVScm2WHVgvDz1S5hKJ6u85otHXWS/kZUclLX/V9OoWo1mYNABSoFqU+8lCGCV+Qx/LZ7ivOf2CgAsg==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/api-fetch": "^5.1.1", - "@wordpress/components": "^14.1.1", + "@wordpress/components": "^14.1.2", "@wordpress/compose": "^4.1.1", "@wordpress/element": "^3.1.1", "@wordpress/i18n": "^4.1.1", @@ -3979,12 +4058,12 @@ "dev": true }, "@wordpress/nux": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-4.1.1.tgz", - "integrity": "sha512-Kc+e/PMe2nEW6V796+tXgAAGh5RYO/CajFK5MKVtMDZd17rnaQr4bz4Ly6WC8QLAWNdjzLX7F0txLvTHUF1vmA==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-4.1.2.tgz", + "integrity": "sha512-49VLVRBMJpgw6tF2OzNn/4K2j31yel67a4JJRtk6H9wSbaclQh/mR8JEoeVBAYwG3Kw12ew0tAfIvrn9mmaVcQ==", "requires": { "@babel/runtime": "^7.13.10", - "@wordpress/components": "^14.1.1", + "@wordpress/components": "^14.1.2", "@wordpress/compose": "^4.1.1", "@wordpress/data": "^5.1.1", "@wordpress/deprecated": "^3.1.1", @@ -4010,12 +4089,12 @@ } }, "@wordpress/postcss-plugins-preset": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/@wordpress/postcss-plugins-preset/-/postcss-plugins-preset-3.1.1.tgz", - "integrity": "sha512-ILKZaDslKwGe5pjgIXnT7vmgRsV9OOVOsZRJHBuAAg/mZzxklTRULRfqX8a6/oNQtDcsQc+njtQa+O7ZSNCGbg==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@wordpress/postcss-plugins-preset/-/postcss-plugins-preset-3.1.2.tgz", + "integrity": "sha512-8cXNX4anZul09Qh6wRTrQJND5hfcY7M9CzSowbnSr9utgw8hJ5Xn7M7ngzs4ScvadSuJ2SFfMEjXkJwGpPnL8w==", "dev": true, "requires": { - "@wordpress/base-styles": "^3.5.1", + "@wordpress/base-styles": "^3.5.2", "autoprefixer": "^10.2.5" }, "dependencies": { @@ -4034,9 +4113,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001231", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001231.tgz", - "integrity": "sha512-WAFFv31GgU4DiwNAy77qMo3nNyycEhH3ikcCVHvkQpPe/fO8Tb2aRYzss8kgyLQBm8mJ7OryW4X6Y4vsBCIqag==", + "version": "1.0.30001235", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001235.tgz", + "integrity": "sha512-zWEwIVqnzPkSAXOUlQnPW2oKoYb2aLQ4Q5ejdjBcnH63rfypaW34CxaeBn1VMya2XaEU3P/R2qHpWyj+l0BT1A==", "dev": true }, "colorette": { @@ -4089,15 +4168,15 @@ } }, "@wordpress/reusable-blocks": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-2.1.2.tgz", - "integrity": "sha512-JliQHigUdiFNKZzru3IYyRzb7/6sq9OGcF3fD065ZEq7IjvRP3AlXNYrxuu07j+rmx+/W1nBsi1icz4oVvbVTQ==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-2.1.3.tgz", + "integrity": "sha512-vzfmPM+nguOgBpx/Y0i9mIU3bo48dwXn1f8kBF/0mvhkBM36EmQZgdPZIpZp1D6oFCuokd0Ct8DXWPkf2XijsA==", "requires": { - "@wordpress/block-editor": "^6.1.1", - "@wordpress/blocks": "^9.1.1", - "@wordpress/components": "^14.1.1", + "@wordpress/block-editor": "^6.1.2", + "@wordpress/blocks": "^9.1.2", + "@wordpress/components": "^14.1.2", "@wordpress/compose": "^4.1.1", - "@wordpress/core-data": "^3.1.2", + "@wordpress/core-data": "^3.1.3", "@wordpress/data": "^5.1.1", "@wordpress/element": "^3.1.1", "@wordpress/i18n": "^4.1.1", @@ -4127,9 +4206,9 @@ } }, "@wordpress/scripts": { - "version": "16.1.1", - "resolved": "https://registry.npmjs.org/@wordpress/scripts/-/scripts-16.1.1.tgz", - "integrity": "sha512-dgf4d+wUgvOqwNAjHXDyX+HDwfPAHL5I4rPPLOGVLplOAOq8JKRTtySveTaFDa/ButshranFHbeOvKd4xBFFsQ==", + "version": "16.1.2", + "resolved": "https://registry.npmjs.org/@wordpress/scripts/-/scripts-16.1.2.tgz", + "integrity": "sha512-u6QFrG19wRp7kL5EQ2TcZ50GtPgXH35IwWWW/iio3XBSAuc5IWq2NNorGlgVS/sR1HnvoAoCTVkfaN+fpBziZA==", "dev": true, "requires": { "@svgr/webpack": "^5.2.0", @@ -4138,7 +4217,7 @@ "@wordpress/eslint-plugin": "^9.0.6", "@wordpress/jest-preset-default": "^7.0.5", "@wordpress/npm-package-json-lint-config": "^4.0.5", - "@wordpress/postcss-plugins-preset": "^3.1.1", + "@wordpress/postcss-plugins-preset": "^3.1.2", "@wordpress/prettier-config": "^1.0.5", "@wordpress/stylelint-config": "^19.0.5", "babel-jest": "^26.6.3", @@ -4686,14 +4765,14 @@ } }, "@wordpress/server-side-render": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@wordpress/server-side-render/-/server-side-render-2.1.1.tgz", - "integrity": "sha512-NRjT47OwljRUBe7pFssZsfU5ivw1v9oeRuT0FR84K8zVujAepZMC+Rg+oXs6AIzvY8y7YMJvc1SxlwdYgBwkdA==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@wordpress/server-side-render/-/server-side-render-2.1.2.tgz", + "integrity": "sha512-YCkeaX+9F23N29xRwR25jnfuYH/dnZm71bUvj5fzN9KLdDp0bEEe4N/l0hO/oZaGEqPBWR3gAZqCWkToo+Iz8A==", "requires": { "@babel/runtime": "^7.13.10", "@wordpress/api-fetch": "^5.1.1", - "@wordpress/blocks": "^9.1.1", - "@wordpress/components": "^14.1.1", + "@wordpress/blocks": "^9.1.2", + "@wordpress/components": "^14.1.2", "@wordpress/compose": "^4.1.1", "@wordpress/data": "^5.1.1", "@wordpress/deprecated": "^3.1.1", @@ -4760,14 +4839,14 @@ "integrity": "sha512-EX+/6P2bWO0zRrKJYx1yck0rY2K5z5aPb67DTU+2ggcowW8JRP7hBzGdzhXqoE32oMS7RO97nG3uD9sZtn2DJA==" }, "@wordpress/widgets": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-1.1.2.tgz", - "integrity": "sha512-JAx8MZFuRQBx68bc7/mj5lQrAc20mjrT0V2tP4Xg9LBkXLbR/LszyxowUM2zY8hExjCTYCOs1/hEZUVqP5Xlxg==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-1.1.3.tgz", + "integrity": "sha512-atpYcBSKQy0Nn3mooy+MCMGY1XTAKh9/BGFuy2YahtVZvizdNlQSq0hQNjv9tAO4uA95GaE+uFeMJ6DaPrkATA==", "requires": { "@babel/runtime": "^7.13.10", - "@wordpress/blocks": "^9.1.1", - "@wordpress/components": "^14.1.1", - "@wordpress/core-data": "^3.1.2", + "@wordpress/blocks": "^9.1.2", + "@wordpress/components": "^14.1.2", + "@wordpress/core-data": "^3.1.3", "@wordpress/data": "^5.1.1", "@wordpress/i18n": "^4.1.1", "@wordpress/icons": "^4.0.1" @@ -5796,9 +5875,9 @@ "dev": true }, "axe-core": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.2.1.tgz", - "integrity": "sha512-evY7DN8qSIbsW2H/TWQ1bX3sXN1d4MNb5Vb4n7BzPuCwRHdkZ1H2eNLuSh73EoQqkGKUtju2G2HCcjCfhvZIAA==", + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.2.2.tgz", + "integrity": "sha512-OKRkKM4ojMEZRJ5UNJHmq9tht7cEnRnqKG6KyB/trYws00Xtkv12mHtlJ0SK7cmuNbrU8dPUova3ELTuilfBbw==", "dev": true }, "axios": { @@ -7353,9 +7432,9 @@ }, "dependencies": { "css-select": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.1.2.tgz", - "integrity": "sha512-nu5ye2Hg/4ISq4XqdLY2bEatAcLIdt3OYGFc9Tm9n7VSlFBcfRv0gBNksHRgSdUDQGtN3XrZ94ztW+NfzkFSUw==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/css-select/-/css-select-4.1.3.tgz", + "integrity": "sha512-gT3wBNd9Nj49rAbmtFHj1cljIAOLYSX1nZ8CB7TBO3INYckygm5B7LISU/szY//YmdiSLbJvDLOx9VnMVpMBxA==", "dev": true, "requires": { "boolbase": "^1.0.0", @@ -7389,9 +7468,9 @@ "dev": true }, "domutils": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.6.0.tgz", - "integrity": "sha512-y0BezHuy4MDYxh6OvolXYsH+1EMGmFbwv5FKW7ovwMG6zTPWqNPq3WF9ayZssFq+UlKdffGLbOEaghNdaOm1WA==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.7.0.tgz", + "integrity": "sha512-8eaHa17IwJUPAiB+SoTYBo5mCdeMgdcAoXJ59m6DT1vw+5iLS3gNoqYaRowaBKtGVrOF1Jz4yDTgYKLK2kvfJg==", "dev": true, "requires": { "dom-serializer": "^1.0.1", @@ -8100,9 +8179,9 @@ "integrity": "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ==" }, "core-js-compat": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.13.1.tgz", - "integrity": "sha512-mdrcxc0WznfRd8ZicEZh1qVeJ2mu6bwQFh8YVUK48friy/FOwFV5EJj9/dlh+nMQ74YusdVfBFDuomKgUspxWQ==", + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.14.0.tgz", + "integrity": "sha512-R4NS2eupxtiJU+VwgkF9WTpnSfZW4pogwKHd8bclWU2sp93Pr5S1uYJI84cMOubJRou7bcfL0vmwtLslWN5p3A==", "dev": true, "requires": { "browserslist": "^4.16.6", @@ -8118,9 +8197,9 @@ } }, "core-js-pure": { - "version": "3.13.1", - "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.13.1.tgz", - "integrity": "sha512-wVlh0IAi2t1iOEh16y4u1TRk6ubd4KvLE8dlMi+3QUI6SfKphQUh7tAwihGGSQ8affxEXpVIPpOdf9kjR4v4Pw==", + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.14.0.tgz", + "integrity": "sha512-YVh+LN2FgNU0odThzm61BsdkwrbrchumFq3oztnE9vTKC4KS2fvnPmcx8t6jnqAyOTCTF4ZSiuK8Qhh7SNcL4g==", "dev": true }, "core-js-url-browser": { @@ -9818,13 +9897,13 @@ } }, "eslint": { - "version": "7.27.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.27.0.tgz", - "integrity": "sha512-JZuR6La2ZF0UD384lcbnd0Cgg6QJjiCwhMD6eU4h/VGPcVGwawNNzKU41tgokGXnfjOOyI6QIffthhJTPzzuRA==", + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-7.28.0.tgz", + "integrity": "sha512-UMfH0VSjP0G4p3EWirscJEQ/cHqnT/iuH6oNZOB94nBjWbMnhGEPxsZm1eyIW0C/9jLI0Fow4W5DXLjEI7mn1g==", "dev": true, "requires": { "@babel/code-frame": "7.12.11", - "@eslint/eslintrc": "^0.4.1", + "@eslint/eslintrc": "^0.4.2", "ajv": "^6.10.0", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", @@ -9841,7 +9920,7 @@ "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", "functional-red-black-tree": "^1.0.1", - "glob-parent": "^5.0.0", + "glob-parent": "^5.1.2", "globals": "^13.6.0", "ignore": "^4.0.6", "import-fresh": "^3.0.0", @@ -9915,6 +9994,32 @@ "estraverse": "^4.1.1" } }, + "eslint-utils": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", + "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "dev": true, + "requires": { + "eslint-visitor-keys": "^1.1.0" + }, + "dependencies": { + "eslint-visitor-keys": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", + "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", + "dev": true + } + } + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "requires": { + "is-glob": "^4.0.1" + } + }, "globals": { "version": "13.9.0", "resolved": "https://registry.npmjs.org/globals/-/globals-13.9.0.tgz", @@ -10535,20 +10640,12 @@ } }, "eslint-utils": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-2.1.0.tgz", - "integrity": "sha512-w94dQYoauyvlDc43XnGB8lU3Zt713vNChgt4EWwhXAP2XkBvndfxF0AgIqKOOasjPIPzj9JqgwkwbCYD0/V3Zg==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", "dev": true, "requires": { - "eslint-visitor-keys": "^1.1.0" - }, - "dependencies": { - "eslint-visitor-keys": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz", - "integrity": "sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ==", - "dev": true - } + "eslint-visitor-keys": "^2.0.0" } }, "eslint-visitor-keys": { @@ -13433,9 +13530,9 @@ "dev": true }, "domutils": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.6.0.tgz", - "integrity": "sha512-y0BezHuy4MDYxh6OvolXYsH+1EMGmFbwv5FKW7ovwMG6zTPWqNPq3WF9ayZssFq+UlKdffGLbOEaghNdaOm1WA==", + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/domutils/-/domutils-2.7.0.tgz", + "integrity": "sha512-8eaHa17IwJUPAiB+SoTYBo5mCdeMgdcAoXJ59m6DT1vw+5iLS3gNoqYaRowaBKtGVrOF1Jz4yDTgYKLK2kvfJg==", "dev": true, "requires": { "dom-serializer": "^1.0.1", @@ -20791,9 +20888,9 @@ } }, "react-easy-crop": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/react-easy-crop/-/react-easy-crop-3.4.0.tgz", - "integrity": "sha512-UMjm3O78Mry3a9d8h4GYqdtnrFX9GupYGTXyHs1VfsgywqbUCT10fEiw6Uz5f3ZIKJ+AgG+t/+njopZsKd4DYA==", + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/react-easy-crop/-/react-easy-crop-3.5.1.tgz", + "integrity": "sha512-VWTYAwRcapguZcYHTSKOcaO2QoNPA57KlS6J0DUrl6dPMV/KrmnPl++LSe/fjN/5vak2PJFKFA4js6Lkwwuy2g==", "requires": { "normalize-wheel": "^1.0.1", "tslib": "2.0.1" @@ -24187,9 +24284,9 @@ }, "dependencies": { "ajv": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.5.0.tgz", - "integrity": "sha512-Y2l399Tt1AguU3BPRP9Fn4eN+Or+StUGWCUpbnFyXSo8NZ9S4uj+AG2pjs5apK+ZMOwYOz1+a+VKvKH7CudXgQ==", + "version": "8.6.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.6.0.tgz", + "integrity": "sha512-cnUG4NSBiM4YFBxgZIj/In3/6KX+rQ2l2YPRVcvAMQGWEPKuXoPIhxzwqh31jA3IPbI4qEOp/5ILI4ynioXsGQ==", "dev": true, "requires": { "fast-deep-equal": "^3.1.1", diff --git a/package.json b/package.json index 670f081f2177b..3b9e2bf2175f0 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "@wordpress/dependency-extraction-webpack-plugin": "3.1.4", "@wordpress/e2e-test-utils": "5.3.0", "@wordpress/library-export-default-webpack-plugin": "2.0.5", - "@wordpress/scripts": "16.1.1", + "@wordpress/scripts": "16.1.2", "autoprefixer": "^9.8.6", "chalk": "4.1.1", "check-node-version": "4.1.0", @@ -82,52 +82,52 @@ "@wordpress/api-fetch": "5.1.1", "@wordpress/autop": "3.1.1", "@wordpress/blob": "3.1.1", - "@wordpress/block-directory": "2.1.3", - "@wordpress/block-editor": "6.1.1", - "@wordpress/block-library": "3.2.2", + "@wordpress/block-directory": "2.1.4", + "@wordpress/block-editor": "6.1.2", + "@wordpress/block-library": "3.2.3", "@wordpress/block-serialization-default-parser": "4.1.1", - "@wordpress/blocks": "9.1.1", - "@wordpress/components": "14.1.1", + "@wordpress/blocks": "9.1.2", + "@wordpress/components": "14.1.2", "@wordpress/compose": "4.1.1", - "@wordpress/core-data": "3.1.2", - "@wordpress/customize-widgets": "1.0.2", + "@wordpress/core-data": "3.1.3", + "@wordpress/customize-widgets": "1.0.3", "@wordpress/data": "5.1.1", "@wordpress/data-controls": "2.1.1", "@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.3", - "@wordpress/edit-widgets": "2.1.3", - "@wordpress/editor": "10.1.2", + "@wordpress/edit-post": "4.1.4", + "@wordpress/edit-widgets": "2.1.4", + "@wordpress/editor": "10.1.3", "@wordpress/element": "3.1.1", "@wordpress/escape-html": "2.1.1", - "@wordpress/format-library": "2.1.1", + "@wordpress/format-library": "2.1.2", "@wordpress/hooks": "3.1.1", "@wordpress/html-entities": "3.1.1", "@wordpress/i18n": "4.1.1", "@wordpress/icons": "4.0.1", - "@wordpress/interface": "3.1.1", + "@wordpress/interface": "3.1.2", "@wordpress/is-shallow-equal": "4.1.1", "@wordpress/keyboard-shortcuts": "2.1.1", "@wordpress/keycodes": "3.1.1", - "@wordpress/list-reusable-blocks": "2.1.1", + "@wordpress/list-reusable-blocks": "2.1.2", "@wordpress/media-utils": "2.1.1", "@wordpress/notices": "3.1.1", - "@wordpress/nux": "4.1.1", + "@wordpress/nux": "4.1.2", "@wordpress/plugins": "3.1.1", "@wordpress/primitives": "2.1.1", "@wordpress/priority-queue": "2.1.1", "@wordpress/redux-routine": "4.1.1", - "@wordpress/reusable-blocks": "2.1.2", + "@wordpress/reusable-blocks": "2.1.3", "@wordpress/rich-text": "4.1.1", - "@wordpress/server-side-render": "2.1.1", + "@wordpress/server-side-render": "2.1.2", "@wordpress/shortcode": "3.1.1", "@wordpress/token-list": "2.1.1", "@wordpress/url": "3.1.1", "@wordpress/viewport": "3.1.1", "@wordpress/warning": "2.1.1", - "@wordpress/widgets": "1.1.2", + "@wordpress/widgets": "1.1.3", "@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 14b3e219ec4e7..c8649c68a9f86 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-block-serialization-default-parser', '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' => 'f823c301211f8809d0e0a700fc258a2a'), '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' => '6d24146b126b611669a4ea0934c70ff3'), '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' => '2084c9d3e56a247f6679a2cd97ca33ec'), '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' => 'd84e03c31f8b5e63518fdf5b7431f110'), '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' => 'c6d0b8dc5425477346847d4ad0688185'), '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' => '8cc9c436eaf87fb78cfe5137d63c607f'), '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' => '764e89485afe710f9d82aaeadad5752a'), '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' => '9f1a3d6ac652e9da7ef51f01de8243a0'), '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' => 'ace2f4da0ec6d4fadb0a86066e8e336b'), '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' => 'abf60e402d329702847c5b902d5ef7bf'), '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' => '0fdbd123c5f1dff84770a0e41ed87984'), '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('wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '71f70729a158b4f607a172e7f488545b'), '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' => '3c1cba840926b275f0ffbea8f08f0290'), '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' => 'eba0d7cd6ae96f0c39c7a5c6d0860cb4'), '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' => '4e17533e5353cce270a728187f51b91e'), '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' => '81fbc59ac7c5abcd280b254b241c04b9'), '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' => 'c6d0b8dc5425477346847d4ad0688185'), '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' => '8cc9c436eaf87fb78cfe5137d63c607f'), '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' => '1e93868d933a9e0bd7e84dd5a47f1181'), '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' => '9f1a3d6ac652e9da7ef51f01de8243a0'), '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' => 'af1259793651e5bd7dded1d7e936c9e2'), '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' => 'ad8829da67393d9d82f0d38c9eb6101d'), '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('wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => '71f70729a158b4f607a172e7f488545b'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '02339c8ad03da1e7a03f9212da004007')); \ No newline at end of file diff --git a/src/wp-includes/block-supports/typography.php b/src/wp-includes/block-supports/typography.php index a2ddb5be68e5b..c6e71662d0b64 100644 --- a/src/wp-includes/block-supports/typography.php +++ b/src/wp-includes/block-supports/typography.php @@ -19,19 +19,26 @@ function wp_register_typography_support( $block_type ) { return; } - $has_font_size_support = _wp_array_get( $block_type->supports, array( 'fontSize' ), false ); - $has_font_style_support = _wp_array_get( $block_type->supports, array( '__experimentalFontStyle' ), false ); - $has_font_weight_support = _wp_array_get( $block_type->supports, array( '__experimentalFontWeight' ), false ); - $has_line_height_support = _wp_array_get( $block_type->supports, array( 'lineHeight' ), false ); - $has_text_decoration_support = _wp_array_get( $block_type->supports, array( '__experimentalTextDecoration' ), false ); - $has_text_transform_support = _wp_array_get( $block_type->supports, array( '__experimentalTextTransform' ), false ); - - $has_typography_support = $has_font_size_support - || $has_font_weight_support + $typography_supports = _wp_array_get( $block_type->supports, array( 'typography' ), false ); + if ( ! $typography_supports ) { + return; + } + + $has_font_family_support = _wp_array_get( $typography_supports, array( '__experimentalFontFamily' ), false ); + $has_font_size_support = _wp_array_get( $typography_supports, array( 'fontSize' ), false ); + $has_font_style_support = _wp_array_get( $typography_supports, array( '__experimentalFontStyle' ), false ); + $has_font_weight_support = _wp_array_get( $typography_supports, array( '__experimentalFontWeight' ), false ); + $has_line_height_support = _wp_array_get( $typography_supports, array( 'lineHeight' ), false ); + $has_text_decoration_support = _wp_array_get( $typography_supports, array( '__experimentalTextDecoration' ), false ); + $has_text_transform_support = _wp_array_get( $typography_supports, array( '__experimentalTextTransform' ), false ); + + $has_typography_support = $has_font_family_support + || $has_font_size_support || $has_font_style_support + || $has_font_weight_support || $has_line_height_support - || $has_text_transform_support - || $has_text_decoration_support; + || $has_text_decoration_support + || $has_text_transform_support; if ( ! $block_type->attributes ) { $block_type->attributes = array(); @@ -68,29 +75,32 @@ function wp_apply_typography_support( $block_type, $block_attributes ) { return array(); } + $typography_supports = _wp_array_get( $block_type->supports, array( 'typography' ), false ); + if ( ! $typography_supports ) { + return array(); + } + + $skip_typography_serialization = _wp_array_get( $typography_supports, array( '__experimentalSkipSerialization' ), false ); + if ( $skip_typography_serialization ) { + return array(); + } + $attributes = array(); $classes = array(); $styles = array(); - $has_font_family_support = _wp_array_get( $block_type->supports, array( '__experimentalFontFamily' ), false ); - $has_font_style_support = _wp_array_get( $block_type->supports, array( '__experimentalFontStyle' ), false ); - $has_font_weight_support = _wp_array_get( $block_type->supports, array( '__experimentalFontWeight' ), false ); - $has_font_size_support = _wp_array_get( $block_type->supports, array( 'fontSize' ), false ); - $has_line_height_support = _wp_array_get( $block_type->supports, array( 'lineHeight' ), false ); - $has_text_decoration_support = _wp_array_get( $block_type->supports, array( '__experimentalTextDecoration' ), false ); - $has_text_transform_support = _wp_array_get( $block_type->supports, array( '__experimentalTextTransform' ), false ); - - $skip_font_size_support_serialization = _wp_array_get( $block_type->supports, array( '__experimentalSkipFontSizeSerialization' ), false ); - - // Covers all typography features _except_ font size. - $skip_typography_serialization = _wp_array_get( $block_type->supports, array( '__experimentalSkipTypographySerialization' ), false ); + $has_font_family_support = _wp_array_get( $typography_supports, array( '__experimentalFontFamily' ), false ); + $has_font_size_support = _wp_array_get( $typography_supports, array( 'fontSize' ), false ); + $has_font_style_support = _wp_array_get( $typography_supports, array( '__experimentalFontStyle' ), false ); + $has_font_weight_support = _wp_array_get( $typography_supports, array( '__experimentalFontWeight' ), false ); + $has_line_height_support = _wp_array_get( $typography_supports, array( 'lineHeight' ), false ); + $has_text_decoration_support = _wp_array_get( $typography_supports, array( '__experimentalTextDecoration' ), false ); + $has_text_transform_support = _wp_array_get( $typography_supports, array( '__experimentalTextTransform' ), false ); - // Font Size. - if ( $has_font_size_support && ! $skip_font_size_support_serialization ) { + if ( $has_font_size_support ) { $has_named_font_size = array_key_exists( 'fontSize', $block_attributes ); $has_custom_font_size = isset( $block_attributes['style']['typography']['fontSize'] ); - // Apply required class or style. if ( $has_named_font_size ) { $classes[] = sprintf( 'has-%s-font-size', $block_attributes['fontSize'] ); } elseif ( $has_custom_font_size ) { @@ -98,10 +108,8 @@ function wp_apply_typography_support( $block_type, $block_attributes ) { } } - // Font Family. - if ( $has_font_family_support && ! $skip_typography_serialization ) { + if ( $has_font_family_support ) { $has_font_family = isset( $block_attributes['style']['typography']['fontFamily'] ); - // Apply required class and style. if ( $has_font_family ) { $font_family = $block_attributes['style']['typography']['fontFamily']; if ( strpos( $font_family, 'var:preset|font-family' ) !== false ) { @@ -115,44 +123,36 @@ function wp_apply_typography_support( $block_type, $block_attributes ) { } } - // Font style. - if ( $has_font_style_support && ! $skip_typography_serialization ) { - // Apply font style. - $font_style = wp_typography_get_css_variable_inline_style( $block_attributes, 'fontStyle', 'font-style' ); + if ( $has_font_style_support ) { + $font_style = gutenberg_typography_get_css_variable_inline_style( $block_attributes, 'fontStyle', 'font-style' ); if ( $font_style ) { $styles[] = $font_style; } } - // Font weight. - if ( $has_font_weight_support && ! $skip_typography_serialization ) { - // Apply font weight. - $font_weight = wp_typography_get_css_variable_inline_style( $block_attributes, 'fontWeight', 'font-weight' ); + if ( $has_font_weight_support ) { + $font_weight = gutenberg_typography_get_css_variable_inline_style( $block_attributes, 'fontWeight', 'font-weight' ); if ( $font_weight ) { $styles[] = $font_weight; } } - // Line Height. - if ( $has_line_height_support && ! $skip_typography_serialization ) { + if ( $has_line_height_support ) { $has_line_height = isset( $block_attributes['style']['typography']['lineHeight'] ); - // Add the style (no classes for line-height). if ( $has_line_height ) { $styles[] = sprintf( 'line-height: %s;', $block_attributes['style']['typography']['lineHeight'] ); } } - // Text Decoration. - if ( $has_text_decoration_support && ! $skip_typography_serialization ) { - $text_decoration_style = wp_typography_get_css_variable_inline_style( $block_attributes, 'textDecoration', 'text-decoration' ); + if ( $has_text_decoration_support ) { + $text_decoration_style = gutenberg_typography_get_css_variable_inline_style( $block_attributes, 'textDecoration', 'text-decoration' ); if ( $text_decoration_style ) { $styles[] = $text_decoration_style; } } - // Text Transform. - if ( $has_text_transform_support && ! $skip_typography_serialization ) { - $text_transform_style = wp_typography_get_css_variable_inline_style( $block_attributes, 'textTransform', 'text-transform' ); + if ( $has_text_transform_support ) { + $text_transform_style = gutenberg_typography_get_css_variable_inline_style( $block_attributes, 'textTransform', 'text-transform' ); if ( $text_transform_style ) { $styles[] = $text_transform_style; } diff --git a/src/wp-includes/blocks.php b/src/wp-includes/blocks.php index 1e7113e1d2e2c..f210858e55943 100644 --- a/src/wp-includes/blocks.php +++ b/src/wp-includes/blocks.php @@ -956,6 +956,32 @@ function block_has_support( $block_type, $feature, $default = false ) { return true === $block_support || is_array( $block_support ); } +function wp_migrate_old_typography_shape( $metadata ) { + $typography_keys = array( + '__experimentalFontFamily', + '__experimentalFontStyle', + '__experimentalFontWeight', + '__experimentalLetterSpacing', + '__experimentalTextDecoration', + '__experimentalTextTransform', + 'fontSize', + 'lineHeight', + ); + foreach ( $typography_keys as $typography_key ) { + $support_for_key = _wp_array_get( $metadata['supports'], array( $typography_key ), null ); + if ( null !== $support_for_key ) { + trigger_error( + /* translators: %1$s: Block type, %2$s: typography supports key e.g: fontSize, lineHeight etc... */ + sprintf( __( 'Block %1$s is declaring %2$s support on block.json under supports.%2$s. %2$s support is now declared under supports.typography.%2$s.', 'gutenberg' ), $metadata['name'], $typography_key ), + headers_sent() || WP_DEBUG ? E_USER_WARNING : E_USER_NOTICE + ); + gutenberg_experimental_set( $metadata['supports'], array( 'typography', $typography_key ), $support_for_key ); + unset( $metadata['supports'][ $typography_key ] ); + } + } + return $metadata; +} + /** * Helper function that constructs a WP_Query args array from * a `Query` block properties. diff --git a/src/wp-includes/blocks/button/block.json b/src/wp-includes/blocks/button/block.json index 3cb59a7fd653e..f2e4a52debd81 100644 --- a/src/wp-includes/blocks/button/block.json +++ b/src/wp-includes/blocks/button/block.json @@ -61,13 +61,15 @@ "__experimentalSkipSerialization": true, "gradients": true }, - "fontSize": true, + "typography": { + "fontSize": true, + "__experimentalFontFamily": true + }, "reusable": false, "__experimentalBorder": { "radius": true, "__experimentalSkipSerialization": true }, - "__experimentalFontFamily": true, "__experimentalSelector": ".wp-block-button__link" }, "styles": [ diff --git a/src/wp-includes/blocks/code/block.json b/src/wp-includes/blocks/code/block.json index 8cb922288730f..8ea75ed6dacb9 100644 --- a/src/wp-includes/blocks/code/block.json +++ b/src/wp-includes/blocks/code/block.json @@ -14,7 +14,9 @@ }, "supports": { "anchor": true, - "fontSize": true + "typography": { + "fontSize": true + } }, "style": "wp-block-code" } diff --git a/src/wp-includes/blocks/heading/block.json b/src/wp-includes/blocks/heading/block.json index fbfd5408d36b8..69ec1ba3741a4 100644 --- a/src/wp-includes/blocks/heading/block.json +++ b/src/wp-includes/blocks/heading/block.json @@ -32,8 +32,11 @@ "color": { "link": true }, - "fontSize": true, - "lineHeight": true, + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontWeight": true + }, "__experimentalSelector": "h1,h2,h3,h4,h5,h6", "__unstablePasteTextInline": true }, diff --git a/src/wp-includes/blocks/legacy-widget.php b/src/wp-includes/blocks/legacy-widget.php index 6a49111b8e692..f8b64ab5c138c 100644 --- a/src/wp-includes/blocks/legacy-widget.php +++ b/src/wp-includes/blocks/legacy-widget.php @@ -50,21 +50,25 @@ function render_block_core_legacy_widget( $attributes ) { } /** - * On application init this does two things: - * - * - Registers the 'core/legacy-widget' block. - * - Intercepts any request with legacy-widget-preview in the query param and, - * if set, renders a page containing a preview of the requested Legacy Widget - * block. + * Registers the 'core/legacy-widget' block. */ -function init_legacy_widget_block() { +function register_block_core_legacy_widget() { register_block_type_from_metadata( __DIR__ . '/legacy-widget', array( 'render_callback' => 'render_block_core_legacy_widget', ) ); +} + +add_action( 'init', 'register_block_core_legacy_widget' ); +/** + * Intercepts any request with legacy-widget-preview in the query param and, if + * set, renders a page containing a preview of the requested Legacy Widget + * block. + */ +function handle_legacy_widget_preview_iframe() { if ( empty( $_GET['legacy-widget-preview'] ) ) { return; } @@ -110,4 +114,7 @@ function init_legacy_widget_block() { exit; } -add_action( 'init', 'init_legacy_widget_block' ); +// Ensure handle_legacy_widget_preview_iframe() is called after Core's +// register_block_core_legacy_widget() (priority = 10) and after Gutenberg's +// register_block_core_legacy_widget() (priority = 20). +add_action( 'init', 'handle_legacy_widget_preview_iframe', 21 ); diff --git a/src/wp-includes/blocks/list/block.json b/src/wp-includes/blocks/list/block.json index d1106c8fcdfbf..278dbad0d0a68 100644 --- a/src/wp-includes/blocks/list/block.json +++ b/src/wp-includes/blocks/list/block.json @@ -37,7 +37,10 @@ "supports": { "anchor": true, "className": false, - "fontSize": true, + "typography": { + "fontSize": true, + "__experimentalFontFamily": true + }, "color": { "gradients": true }, diff --git a/src/wp-includes/blocks/loginout/block.json b/src/wp-includes/blocks/loginout/block.json index 117ec3c60e1fe..dfb40f7a06637 100644 --- a/src/wp-includes/blocks/loginout/block.json +++ b/src/wp-includes/blocks/loginout/block.json @@ -18,6 +18,8 @@ }, "supports": { "className": true, - "fontSize": false + "typography": { + "fontSize": false + } } } diff --git a/src/wp-includes/blocks/paragraph/block.json b/src/wp-includes/blocks/paragraph/block.json index b10ea9eef980e..d05e48a7bebe2 100644 --- a/src/wp-includes/blocks/paragraph/block.json +++ b/src/wp-includes/blocks/paragraph/block.json @@ -35,8 +35,10 @@ "color": { "link": true }, - "fontSize": true, - "lineHeight": true, + "typography": { + "fontSize": true, + "lineHeight": true + }, "__experimentalSelector": "p", "__unstablePasteTextInline": true }, diff --git a/src/wp-includes/blocks/post-date/block.json b/src/wp-includes/blocks/post-date/block.json index dbd837a037343..ca03fce4ad2a3 100644 --- a/src/wp-includes/blocks/post-date/block.json +++ b/src/wp-includes/blocks/post-date/block.json @@ -24,7 +24,9 @@ "gradients": true, "link": true }, - "fontSize": true, - "lineHeight": true + "typography": { + "fontSize": true, + "lineHeight": true + } } } diff --git a/src/wp-includes/blocks/post-excerpt/block.json b/src/wp-includes/blocks/post-excerpt/block.json index bc654a1c2cf84..26e2425d1a1cd 100644 --- a/src/wp-includes/blocks/post-excerpt/block.json +++ b/src/wp-includes/blocks/post-excerpt/block.json @@ -24,12 +24,14 @@ "usesContext": [ "postId", "postType" ], "supports": { "html": false, - "fontSize": true, "color": { "gradients": true, "link": true }, - "lineHeight": true + "typography": { + "fontSize": true, + "lineHeight": true + } }, "editorStyle": "wp-block-post-excerpt-editor", "style": "wp-block-post-excerpt" diff --git a/src/wp-includes/blocks/post-terms/block.json b/src/wp-includes/blocks/post-terms/block.json index 6aff9d449c0f9..1f9f61738eb59 100644 --- a/src/wp-includes/blocks/post-terms/block.json +++ b/src/wp-includes/blocks/post-terms/block.json @@ -16,11 +16,13 @@ "usesContext": [ "postId", "postType" ], "supports": { "html": false, - "fontSize": true, "color": { "gradients": true, "link": true }, - "lineHeight": true + "typography": { + "lineHeight": true, + "fontSize": true + } } } diff --git a/src/wp-includes/blocks/post-title/block.json b/src/wp-includes/blocks/post-title/block.json index 21c1c52537db8..803d1d5a1690f 100644 --- a/src/wp-includes/blocks/post-title/block.json +++ b/src/wp-includes/blocks/post-title/block.json @@ -35,9 +35,11 @@ "gradients": true, "link": true }, - "fontSize": true, - "lineHeight": true, - "__experimentalFontFamily": true + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontFamily": true + } }, "style": "wp-block-post-title" } diff --git a/src/wp-includes/blocks/preformatted/block.json b/src/wp-includes/blocks/preformatted/block.json index ece56338db0df..6deb40540b6c0 100644 --- a/src/wp-includes/blocks/preformatted/block.json +++ b/src/wp-includes/blocks/preformatted/block.json @@ -20,7 +20,9 @@ "color": { "gradients": true }, - "fontSize": true + "typography": { + "fontSize": true + } }, "style": "wp-block-preformatted" } diff --git a/src/wp-includes/blocks/query-pagination-next/block.json b/src/wp-includes/blocks/query-pagination-next/block.json index d3f018907d9ef..afc69d6e14a3b 100644 --- a/src/wp-includes/blocks/query-pagination-next/block.json +++ b/src/wp-includes/blocks/query-pagination-next/block.json @@ -19,7 +19,9 @@ "gradients": true, "link": true }, - "fontSize": true, - "lineHeight": true + "typography": { + "fontSize": true, + "lineHeight": true + } } } diff --git a/src/wp-includes/blocks/query-pagination-previous/block.json b/src/wp-includes/blocks/query-pagination-previous/block.json index ace5b5fbf32af..78a53867d0b7a 100644 --- a/src/wp-includes/blocks/query-pagination-previous/block.json +++ b/src/wp-includes/blocks/query-pagination-previous/block.json @@ -19,7 +19,9 @@ "gradients": true, "link": true }, - "fontSize": true, - "lineHeight": true + "typography": { + "fontSize": true, + "lineHeight": true + } } } diff --git a/src/wp-includes/blocks/query-title/block.json b/src/wp-includes/blocks/query-title/block.json index a78e9b77a58c7..3e5d43fc50846 100644 --- a/src/wp-includes/blocks/query-title/block.json +++ b/src/wp-includes/blocks/query-title/block.json @@ -23,9 +23,11 @@ "color": { "gradients": true }, - "fontSize": true, - "lineHeight": true, - "__experimentalFontFamily": true + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontFamily": true + } }, "editorStyle": "wp-block-query-title-editor" } diff --git a/src/wp-includes/blocks/site-tagline/block.json b/src/wp-includes/blocks/site-tagline/block.json index d85e68f3e1d0b..d18b951724134 100644 --- a/src/wp-includes/blocks/site-tagline/block.json +++ b/src/wp-includes/blocks/site-tagline/block.json @@ -20,9 +20,11 @@ "margin": true, "padding": true }, - "fontSize": true, - "lineHeight": true, - "__experimentalFontFamily": true, - "__experimentalTextTransform": true + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontFamily": true, + "__experimentalTextTransform": true + } } } diff --git a/src/wp-includes/blocks/site-title/block.json b/src/wp-includes/blocks/site-title/block.json index 26ee7c601f107..3e16e62071a32 100644 --- a/src/wp-includes/blocks/site-title/block.json +++ b/src/wp-includes/blocks/site-title/block.json @@ -26,11 +26,13 @@ "padding": true, "margin": true }, - "fontSize": true, - "lineHeight": true, - "__experimentalFontFamily": true, - "__experimentalTextTransform": true, - "__experimentalFontStyle": true, - "__experimentalFontWeight": true + "typography": { + "fontSize": true, + "lineHeight": true, + "__experimentalFontFamily": true, + "__experimentalTextTransform": true, + "__experimentalFontStyle": true, + "__experimentalFontWeight": true + } } } diff --git a/src/wp-includes/blocks/verse/block.json b/src/wp-includes/blocks/verse/block.json index 5e86c1518083d..ec080e7c1ed13 100644 --- a/src/wp-includes/blocks/verse/block.json +++ b/src/wp-includes/blocks/verse/block.json @@ -25,8 +25,10 @@ "gradients": true, "link": true }, - "__experimentalFontFamily": true, - "fontSize": true, + "typography": { + "fontSize": true, + "__experimentalFontFamily": true + }, "spacing": { "padding": true } diff --git a/src/wp-includes/class-wp-theme-json-resolver.php b/src/wp-includes/class-wp-theme-json-resolver.php index db0747bb842cb..332038b1f7cac 100644 --- a/src/wp-includes/class-wp-theme-json-resolver.php +++ b/src/wp-includes/class-wp-theme-json-resolver.php @@ -66,7 +66,7 @@ private static function read_json_file( $file_path ) { $json_decoding_error = json_last_error(); if ( JSON_ERROR_NONE !== $json_decoding_error ) { - error_log( 'Error when decoding file schema: ' . json_last_error_msg() ); + trigger_error( "Error when decoding a theme.json schema at path $file_path " . json_last_error_msg() ); return $config; } diff --git a/src/wp-includes/class-wp-theme-json.php b/src/wp-includes/class-wp-theme-json.php index 5580e39285df7..d13fef2249477 100644 --- a/src/wp-includes/class-wp-theme-json.php +++ b/src/wp-includes/class-wp-theme-json.php @@ -655,7 +655,11 @@ private static function compute_preset_classes( $settings, $selector ) { foreach ( $values as $value ) { foreach ( $preset['classes'] as $class ) { $stylesheet .= self::to_ruleset( - self::append_to_selector( $selector, '.has-' . $value['slug'] . '-' . $class['class_suffix'] ), + // We don't want to use kebabCase here, + // see https://github.com/WordPress/gutenberg/issues/32347 + // However, we need to make sure the generated class + // doesn't contain spaces. + self::append_to_selector( $selector, '.has-' . preg_replace( '/\s+/', '-', $value['slug'] ) . '-' . $class['class_suffix'] ), array( array( 'name' => $class['property_name'], diff --git a/src/wp-includes/default-filters.php b/src/wp-includes/default-filters.php index 5b312b54f1825..b91135c151ea9 100644 --- a/src/wp-includes/default-filters.php +++ b/src/wp-includes/default-filters.php @@ -217,6 +217,8 @@ add_filter( 'widget_block_content', 'do_blocks', 9 ); add_filter( 'widget_block_content', 'do_shortcode', 11 ); +add_filter( 'block_type_metadata', 'wp_migrate_old_typography_shape' ); + add_filter( 'wp_get_custom_css', 'wp_replace_insecure_home_url' ); // RSS filters. diff --git a/tests/phpunit/includes/functions.php b/tests/phpunit/includes/functions.php index 45556f0e47424..8a441eaa2edae 100644 --- a/tests/phpunit/includes/functions.php +++ b/tests/phpunit/includes/functions.php @@ -333,6 +333,6 @@ function _unhook_block_registration() { remove_action( 'init', 'register_block_core_social_link' ); remove_action( 'init', 'register_block_core_tag_cloud' ); remove_action( 'init', 'register_core_block_types_from_metadata' ); - remove_action( 'init', 'init_legacy_widget_block' ); + remove_action( 'init', 'register_block_core_legacy_widget' ); } tests_add_filter( 'init', '_unhook_block_registration', 1000 );