From 549de8b91aac89d3a5eb57c065f820f70ad67f42 Mon Sep 17 00:00:00 2001 From: "Mark M. Florida" <4173034+mflorida@users.noreply.github.com> Date: Mon, 4 Jul 2022 10:44:31 -0500 Subject: [PATCH 1/3] Set floating menu button widths to `auto` to prevent unexpected resizing (#11832) --- .../src/components/contextMenu/components/button.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/design-system/src/components/contextMenu/components/button.js b/packages/design-system/src/components/contextMenu/components/button.js index d085db37a320..4db559fe7386 100644 --- a/packages/design-system/src/components/contextMenu/components/button.js +++ b/packages/design-system/src/components/contextMenu/components/button.js @@ -31,7 +31,7 @@ import { menuItemStyles } from './styles'; const StyledButton = styled(BaseButton)` ${menuItemStyles}; - width: 100%; + width: auto; ${({ isHorizontal, isIconMenu, forcePadding, theme }) => { const hasHeight = isHorizontal; // In a horizontal menu, all buttons are 32px high From 88982de2585106e8e1ae07fb8e16ec90f45008bb Mon Sep 17 00:00:00 2001 From: Jonny Harris Date: Mon, 4 Jul 2022 16:46:14 +0100 Subject: [PATCH 2/3] Code Quality: Reference `@wordpress/data` stores by store definition (#11867) --- .eslintrc | 1 + package-lock.json | 474 ++++++++++-------- packages/stories-block/package.json | 2 + .../block/block-types/single-story/edit.js | 5 +- .../storyPicker/fetchSelectedStories.js | 3 +- .../components/storyPicker/selectStories.js | 3 +- .../components/storyPicker/storyPicker.js | 3 +- 7 files changed, 274 insertions(+), 217 deletions(-) diff --git a/.eslintrc b/.eslintrc index 13c5f08642aa..2312763bc6d8 100644 --- a/.eslintrc +++ b/.eslintrc @@ -595,6 +595,7 @@ "packages/tinymce-button/**/*.js" ], "rules":{ + "@wordpress/data-no-store-string-literals": "error", "no-restricted-imports": [ "error", { diff --git a/package-lock.json b/package-lock.json index 9ee0f61d1fb9..41987884a31c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15167,35 +15167,35 @@ } }, "node_modules/@wordpress/a11y": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/a11y/-/a11y-3.11.0.tgz", - "integrity": "sha512-mMQT1vvE9QkawI8CBkuZlVYGsb6it8LmJdqHTmAbgcmxmDK3TThhVpXTjCD863NvB/NyyNM8Kdaf2H4RnJytrA==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/a11y/-/a11y-3.12.0.tgz", + "integrity": "sha512-Fu+flXsHwSiQ4fjzTHEVTdKoOzpY8wtQ6YMFZbpIolaAC/I5j1dKHgBAQvHsFyBlg6fHrx0FZV6Xr4DgfW6daA==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/dom-ready": "^3.11.0", - "@wordpress/i18n": "^4.11.0" + "@wordpress/dom-ready": "^3.12.0", + "@wordpress/i18n": "^4.12.0" }, "engines": { "node": ">=12" } }, "node_modules/@wordpress/api-fetch": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-6.8.0.tgz", - "integrity": "sha512-uC7HIh8q1J+dWloI3K8mIfItUPeun52C8rE9JCW+zSkBt7qPLIOzYpSIEc9S9Fw6LmGYhRipw5nJxKc/Fm34ig==", + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-6.9.0.tgz", + "integrity": "sha512-H0IvLlisBcfKFa4tlMgtqFy7s7Iz3SSe6cEzqAAesK1fg+j3NewDP4fcQz5Ooo6pL+Y2A8oUM5dawjJctmsnAA==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/i18n": "^4.11.0", - "@wordpress/url": "^3.12.0" + "@wordpress/i18n": "^4.12.0", + "@wordpress/url": "^3.13.0" }, "engines": { "node": ">=12" } }, "node_modules/@wordpress/autop": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/autop/-/autop-3.11.0.tgz", - "integrity": "sha512-aACvy9BCbrmk17xixrbPYUA8aGgpFn6mrXEYJRNXBWUpYAeXTC7ghpbI6i6/qQkxKKIwmTw6yl9u+SxuTo5SOA==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/autop/-/autop-3.12.0.tgz", + "integrity": "sha512-SWi8YzZQho47NwnYnuAsxejw33BF9MRDADIEc5l7VHuCLvL8ddfT0+b9apvovBOpMhnhvrpQBbkk99lnSMlg6g==", "dependencies": { "@babel/runtime": "^7.16.0" }, @@ -15239,9 +15239,9 @@ } }, "node_modules/@wordpress/blob": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/blob/-/blob-3.11.0.tgz", - "integrity": "sha512-LXfG4yrq5RXDtfdU/1qI9U/yo2IMYEhCV1iUM9jXHDx8maJX0FAZ/3rJCChGmP0/XfQcXDBO7hzwaGMXi8aDbg==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/blob/-/blob-3.12.0.tgz", + "integrity": "sha512-VE5akjN7Y5PmkL5R0TM/mhp5EqOnuTX7hYjJMeo5rT52fmy+af166bEjP+FwMf4qV87jjidaamZxTRBsJrsv1w==", "dependencies": { "@babel/runtime": "^7.16.0" }, @@ -15302,9 +15302,9 @@ } }, "node_modules/@wordpress/block-serialization-default-parser": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-4.11.0.tgz", - "integrity": "sha512-7yBm7V2JAdVzP+KixX84daZ0QxtC8c7LSiR87uV1SW+kbWlQvVfZZ3j7+PBbYM4MHfWQ1f6eTJ6gfqI2TubKew==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-4.12.0.tgz", + "integrity": "sha512-6aoFszil0ZiMuaamiweD1BXIk4e/5v46TjeFPqSyuSjoPJ+HeOB8oNzQyD2Fxux/8fodvpHXOhlrskSU2ZLmqA==", "dependencies": { "@babel/runtime": "^7.16.0" }, @@ -15313,24 +15313,24 @@ } }, "node_modules/@wordpress/blocks": { - "version": "11.10.0", - "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-11.10.0.tgz", - "integrity": "sha512-b1rf6of8gxbTVMf7Jq94oojkWlWMyxzI5KlosQBiLAvq89ILzFfM/sujT/GceeoDJBM7y+e6q4x75eK99Wv0bg==", + "version": "11.11.0", + "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-11.11.0.tgz", + "integrity": "sha512-fIm4O0Nz5j/zJ6SP8N7qMdKvmU+/NJvBAWTyjQ5lj4zv+PTzhbeq5UKuAzgtgr6ifhFaayBWZG9SaAXBjf7rUQ==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/autop": "^3.11.0", - "@wordpress/blob": "^3.11.0", - "@wordpress/block-serialization-default-parser": "^4.11.0", - "@wordpress/compose": "^5.9.0", - "@wordpress/data": "^6.11.0", - "@wordpress/deprecated": "^3.11.0", - "@wordpress/dom": "^3.11.0", - "@wordpress/element": "^4.9.0", - "@wordpress/hooks": "^3.11.0", - "@wordpress/html-entities": "^3.11.0", - "@wordpress/i18n": "^4.11.0", - "@wordpress/is-shallow-equal": "^4.11.0", - "@wordpress/shortcode": "^3.11.0", + "@wordpress/autop": "^3.12.0", + "@wordpress/blob": "^3.12.0", + "@wordpress/block-serialization-default-parser": "^4.12.0", + "@wordpress/compose": "^5.10.0", + "@wordpress/data": "^6.12.0", + "@wordpress/deprecated": "^3.12.0", + "@wordpress/dom": "^3.12.0", + "@wordpress/element": "^4.10.0", + "@wordpress/hooks": "^3.12.0", + "@wordpress/html-entities": "^3.12.0", + "@wordpress/i18n": "^4.12.0", + "@wordpress/is-shallow-equal": "^4.12.0", + "@wordpress/shortcode": "^3.12.0", "colord": "^2.7.0", "hpq": "^1.3.0", "lodash": "^4.17.21", @@ -15512,19 +15512,19 @@ "integrity": "sha512-xGPXiFVl4YED9Jh7Euv2V220mriG9u4B2TA6Ybjc1catrstKD2PpIdU3U0RKpkVBC2EhmL/F0sPCr9vrFTNRag==" }, "node_modules/@wordpress/compose": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-5.9.0.tgz", - "integrity": "sha512-sztEjUPx/Q4AuYV8YgFxUXzK/OUAyeVeo20+yNPEYBohj6oQlQPWdm4UZic0FCiCSJfTbjhbZ1qtMcYzlLwF9w==", + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-5.10.0.tgz", + "integrity": "sha512-UZ7UhXvW+yP6F8+OfUN0yU97NLZTMINhf3DX+uG4W08h5UlA5wGJYomm8AlTV/hhMc3rlZLBADGztTBp3bP05A==", "dependencies": { "@babel/runtime": "^7.16.0", "@types/lodash": "^4.14.172", "@types/mousetrap": "^1.6.8", - "@wordpress/deprecated": "^3.11.0", - "@wordpress/dom": "^3.11.0", - "@wordpress/element": "^4.9.0", - "@wordpress/is-shallow-equal": "^4.11.0", - "@wordpress/keycodes": "^3.11.0", - "@wordpress/priority-queue": "^2.11.0", + "@wordpress/deprecated": "^3.12.0", + "@wordpress/dom": "^3.12.0", + "@wordpress/element": "^4.10.0", + "@wordpress/is-shallow-equal": "^4.12.0", + "@wordpress/keycodes": "^3.12.0", + "@wordpress/priority-queue": "^2.12.0", "clipboard": "^2.0.8", "lodash": "^4.17.21", "mousetrap": "^1.6.5", @@ -15537,18 +15537,46 @@ "react": "^17.0.0" } }, + "node_modules/@wordpress/core-data": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-4.10.0.tgz", + "integrity": "sha512-WCXiNF/3QQKmjFg4+4iyQaTDpf5xI2gXrmSxjrmEdyGgZgdrtrDIGjW4gcSKyAlEVXWlOl7KUsG6MZBdwv67Eg==", + "dependencies": { + "@babel/runtime": "^7.16.0", + "@wordpress/api-fetch": "^6.9.0", + "@wordpress/blocks": "^11.11.0", + "@wordpress/data": "^6.12.0", + "@wordpress/deprecated": "^3.12.0", + "@wordpress/element": "^4.10.0", + "@wordpress/html-entities": "^3.12.0", + "@wordpress/i18n": "^4.12.0", + "@wordpress/is-shallow-equal": "^4.12.0", + "@wordpress/url": "^3.13.0", + "equivalent-key-map": "^0.2.2", + "lodash": "^4.17.21", + "memize": "^1.1.0", + "rememo": "^4.0.0", + "uuid": "^8.3.0" + }, + "engines": { + "node": ">=12" + }, + "peerDependencies": { + "react": "^17.0.0" + } + }, "node_modules/@wordpress/data": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-6.11.0.tgz", - "integrity": "sha512-DwFonz53mBcYO6Y+rFi2ZpXPgUtEXmCMk7bPZkE87qvh88A61GHWbvynD2YEjoMjhN6ffJrqgUXL6SLIxKvo3g==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-6.12.0.tgz", + "integrity": "sha512-fnMfbYoGl3GqP7tDaArtRRizQznnh6cVT+tAZV8aDBICNkQ8za7BY+HcxEpviNb+JbHJJk6VEclaLjYhR3jLCQ==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/compose": "^5.9.0", - "@wordpress/deprecated": "^3.11.0", - "@wordpress/element": "^4.9.0", - "@wordpress/is-shallow-equal": "^4.11.0", - "@wordpress/priority-queue": "^2.11.0", - "@wordpress/redux-routine": "^4.11.0", + "@wordpress/compose": "^5.10.0", + "@wordpress/deprecated": "^3.12.0", + "@wordpress/element": "^4.10.0", + "@wordpress/is-shallow-equal": "^4.12.0", + "@wordpress/priority-queue": "^2.12.0", + "@wordpress/redux-routine": "^4.12.0", "equivalent-key-map": "^0.2.2", "is-promise": "^4.0.0", "lodash": "^4.17.21", @@ -15602,21 +15630,21 @@ } }, "node_modules/@wordpress/deprecated": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/deprecated/-/deprecated-3.11.0.tgz", - "integrity": "sha512-T5v2r5Linb9C/peHHOn+xvVoT7QfU4qt9gPn47msHIzmCOeW2S7VDtIpukgooROWziLNoq39kCIhPvJBL4z/KQ==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/deprecated/-/deprecated-3.12.0.tgz", + "integrity": "sha512-sep+c2jFwAZ4HTtPgIbNLC0YTz3q9gCH3A82XwY/krkvxhNk3g+mXxPUI2dUoxp7RAeeckqDtKosPvvpqUZWiQ==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/hooks": "^3.11.0" + "@wordpress/hooks": "^3.12.0" }, "engines": { "node": ">=12" } }, "node_modules/@wordpress/dom": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-3.11.0.tgz", - "integrity": "sha512-N2EQ663mtVYy7Vs+zS5RaExA0o7fV2kK5lW1L2+m+y+RAVmK9NAXrkTJk3kXXosKnnzSdn/EO+9Xd59KSZuP1w==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-3.12.0.tgz", + "integrity": "sha512-OliLqayM41MwfsCzLAg6wZWKnO28fLX50igGODVm5qtZUQMBDNhz3sX0T1OpB7P+UFOx/KffAkuk6HNi2NXKTQ==", "dependencies": { "@babel/runtime": "^7.16.0", "@wordpress/deprecated": "^3.8.0", @@ -15627,9 +15655,9 @@ } }, "node_modules/@wordpress/dom-ready": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/dom-ready/-/dom-ready-3.11.0.tgz", - "integrity": "sha512-UChotG2Qi8zRcrMI06vkKtq6QdcZWtpEx/xZEflg8S0NlxEaNdNd0JOAQG1rQYPAfgdxySnIqmToF4bfir6d+A==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/dom-ready/-/dom-ready-3.12.0.tgz", + "integrity": "sha512-+IzRp/Vo2TkBQ72C9t/PETXbyPJPgr9DZmhbaYz8/RuTq/E5GcHPfEkKgjXNhDjOVxtjUb3Ut03EioGI6XFpAg==", "dependencies": { "@babel/runtime": "^7.16.0" }, @@ -15672,14 +15700,14 @@ } }, "node_modules/@wordpress/element": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-4.9.0.tgz", - "integrity": "sha512-XFS9N7YvgquBPiZvGjFiXQ3GLKHReBODTzz5gIFSmXIUa8F2LQ8jVEQT5mIxBf8scv5qS1sz8JimCgvLaUrgnA==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-4.10.0.tgz", + "integrity": "sha512-Ddi5nwd8/zPDITo2PCm30ffKxvbOEpW8krXzffnTace7TaqGzz7QuX6yOVdm6xXx3KZH/AADYPzCwthJKbKGEg==", "dependencies": { "@babel/runtime": "^7.16.0", "@types/react": "^17.0.37", "@types/react-dom": "^17.0.11", - "@wordpress/escape-html": "^2.11.0", + "@wordpress/escape-html": "^2.12.0", "lodash": "^4.17.21", "react": "^17.0.2", "react-dom": "^17.0.2" @@ -15689,9 +15717,9 @@ } }, "node_modules/@wordpress/escape-html": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/escape-html/-/escape-html-2.11.0.tgz", - "integrity": "sha512-cEnYvKlgnJeapP3CXW5OqcLKWUkpwehm0RsVHZN05xkwf6A431hsAf2kgij455+rNxuR42nbd7JA50wIbK8Xig==", + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/escape-html/-/escape-html-2.12.0.tgz", + "integrity": "sha512-kuLtqEOHSIu53+HwHjCiz8THXhnhqFwsfFgr4gkZmv4n4NxLmGsMV2kMMZlRjWbTUSP0YN7Dix4uHx8JWlIRGg==", "dependencies": { "@babel/runtime": "^7.16.0" }, @@ -15877,9 +15905,9 @@ } }, "node_modules/@wordpress/hooks": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.11.0.tgz", - "integrity": "sha512-dKA69FJzrGshmMDL4nvrziIcNjlK4BauSoqJul2J73qwCgGJT6EltrySnUNXA7NAS9SUHMUYWW3Hf5/03HZtvw==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.12.0.tgz", + "integrity": "sha512-DTf2VLBfrbuNQvBvz2m5Nbn44KEA4tHjo+1cIeDCZAuqBAKmeBGmJZA76lDs5Qu5nqfaixcOmfeVBEr29npJNg==", "dependencies": { "@babel/runtime": "^7.16.0" }, @@ -15888,9 +15916,9 @@ } }, "node_modules/@wordpress/html-entities": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-3.11.0.tgz", - "integrity": "sha512-osDhQkaj/6wLGBzY7a2t0WyIr8XDRoM0c5fOSb9ZzuyC9m3j9zs3n35FA86trIRr2BBvXMUbzMXtt0bQ1dlspg==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-3.12.0.tgz", + "integrity": "sha512-e1aK/zBsP8kJNzmlCh/rvmVsFjJPmbf10eCKFOe0aVoM5dztAL0uY3AipWAdG6p9b2ovPiYDXjs3wpC49jZIiA==", "dependencies": { "@babel/runtime": "^7.16.0" }, @@ -15899,12 +15927,12 @@ } }, "node_modules/@wordpress/i18n": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.11.0.tgz", - "integrity": "sha512-//AsPYsfeSuPmWUnmyLMYTm6jAE+/RbNQbfCAyjvszFHbczwQHoxSu6no+qpOyHWZKq/TCG7+6Lowz1LrlcFLA==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.12.0.tgz", + "integrity": "sha512-UTccrAOZ03nszzlG74G+ZkMR/kK0PoS1fqFa8NRFAhHneYadJOnsgCCd5YgDAsN+tAKA6QM7RPmpQMwujvIbzA==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/hooks": "^3.11.0", + "@wordpress/hooks": "^3.12.0", "gettext-parser": "^1.3.1", "lodash": "^4.17.21", "memize": "^1.1.0", @@ -15932,9 +15960,9 @@ } }, "node_modules/@wordpress/is-shallow-equal": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/is-shallow-equal/-/is-shallow-equal-4.11.0.tgz", - "integrity": "sha512-p6IjVIQafDSVLDh+++E3eo1ThTJ0V/eAiqqN+mmXoL1yXSh2t2sgO02OAT/8g7OkbZnZZ8ypWKBycPZgoCQMdA==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/is-shallow-equal/-/is-shallow-equal-4.12.0.tgz", + "integrity": "sha512-jlpHXPLJw0mG13bcbZIJwOd1DQozJ5+fbkkKA2JeTO5d5PXs44Rw6EYdGMLUU97B44UxIwVbaui7tJGOvzF8Dw==", "dependencies": { "@babel/runtime": "^7.16.0" }, @@ -16013,12 +16041,12 @@ } }, "node_modules/@wordpress/keycodes": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-3.11.0.tgz", - "integrity": "sha512-WWB6kz++liLOEZGfvhLVtEhflsDYw56TwAZBAqOWfkfEdkC0ATg9F8QMGlCTcTTx2QnOIVmLtHnPCEeSxblegA==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-3.12.0.tgz", + "integrity": "sha512-wZQa8T2rgJnoJHG9Bmp0E1WNQOKK6awf0elnzEKs8UleauDKHJIMdiILq74bNz3SptVKkehdCsa8wpE9HuB8Kw==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/i18n": "^4.11.0", + "@wordpress/i18n": "^4.12.0", "lodash": "^4.17.21" }, "engines": { @@ -16026,14 +16054,13 @@ } }, "node_modules/@wordpress/notices": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-3.11.0.tgz", - "integrity": "sha512-rHD8vtJlG8AxDE22iiOv42AGMdWjcpAdOBiJvISFopM6r0n6JdhI6lABOJNQMYHGUV6sCQvqDOuQkCKbltxZ5g==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-3.12.0.tgz", + "integrity": "sha512-MpXzUeOS5mPKCL3cC4w3kgaw/0niIfQRtjwJaqPXnsYzzO6z21nMpEoACdwImzAuFcq/AuiTn3apvcaGytQ4jw==", "dependencies": { "@babel/runtime": "^7.16.0", - "@wordpress/a11y": "^3.11.0", - "@wordpress/data": "^6.11.0", - "lodash": "^4.17.21" + "@wordpress/a11y": "^3.12.0", + "@wordpress/data": "^6.12.0" }, "engines": { "node": ">=12" @@ -16068,9 +16095,9 @@ } }, "node_modules/@wordpress/priority-queue": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/priority-queue/-/priority-queue-2.11.0.tgz", - "integrity": "sha512-nFacHnMXTpJdW/QFM+KLOXkeERiLBM8+Rl0FPeoES+/yvjQLd4kBYBmQ56JO9tdNdAZNN7tZs1XUkB485VNLfg==", + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/priority-queue/-/priority-queue-2.12.0.tgz", + "integrity": "sha512-W/Foka//VcqY1D8fYXUE196tCm4ExH4qo6HFNyQU0VAwMI0ypKH+b9wgybfC7e+Hj2lTFZQVQOJgsGE/qZiufw==", "dependencies": { "@babel/runtime": "^7.16.0" }, @@ -16079,9 +16106,9 @@ } }, "node_modules/@wordpress/redux-routine": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/redux-routine/-/redux-routine-4.11.0.tgz", - "integrity": "sha512-alyl4NsTMWlGUPfbINhguJFn49k84zt7WLzNwP8HdC7ER5aEpMDLvRJyOcBdJq/jzVWfBxrcnEsy27uqqhZlJw==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/redux-routine/-/redux-routine-4.12.0.tgz", + "integrity": "sha512-PLheKMgvYcbOiQzwGQfpbdA04DGWTE08LSrkgM5VWJT8hcoS/RIWvxNph3MXSPx1lXLhN6d0CqjOSkuDI/xbfw==", "dependencies": { "@babel/runtime": "^7.16.0", "is-promise": "^4.0.0", @@ -16120,12 +16147,11 @@ } }, "node_modules/@wordpress/shortcode": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/shortcode/-/shortcode-3.11.0.tgz", - "integrity": "sha512-HzrSbmi9fY7Rc0glr+cp14JwkSopQWMsFA8qFLUg6C0YSDgFbPELAyy2yugbGSf24Y3wE66lKpwEzkCHZ4GGDg==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/shortcode/-/shortcode-3.12.0.tgz", + "integrity": "sha512-5Ln7VDLu5TDNRPr3pYrNqy/AnW6y5PkVGdmDW1TtwTcaSadh9uGQsDrHTiVDLiIPl9eV9dhfXXkxDZrF8zepxQ==", "dependencies": { "@babel/runtime": "^7.16.0", - "lodash": "^4.17.21", "memize": "^1.1.0" }, "engines": { @@ -16157,9 +16183,9 @@ } }, "node_modules/@wordpress/url": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-3.12.0.tgz", - "integrity": "sha512-6zoHPZB5P74DnYo2a3EqOnS8HPF0U1rafsi1vJotaQOOZgff/1DDlQ0Gawdn9ZkLWUGEpv4lFja4OWcA1qOjPg==", + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-3.13.0.tgz", + "integrity": "sha512-KROX6n67thgOuAfDwUa9jim/kWcTClHTVJapG5do//40PpWLw5dW4pVEPqGZzB6AeWuCnFzGThQ8yn6pWg2WJg==", "dependencies": { "@babel/runtime": "^7.16.0", "remove-accents": "^0.4.2" @@ -47373,11 +47399,13 @@ "@wordpress/blocks": "^11.10.0", "@wordpress/components": "^19.13.0", "@wordpress/compose": "^5.9.0", + "@wordpress/core-data": "^4.10.0", "@wordpress/data": "^6.11.0", "@wordpress/date": "^4.11.0", "@wordpress/element": "^4.9.0", "@wordpress/i18n": "^4.11.0", "@wordpress/icons": "^9.2.0", + "@wordpress/notices": "^3.12.0", "@wordpress/url": "^3.12.0", "@wordpress/viewport": "^4.9.0", "classnames": "^2.3.1", @@ -59196,11 +59224,13 @@ "@wordpress/blocks": "^11.10.0", "@wordpress/components": "^19.13.0", "@wordpress/compose": "^5.9.0", + "@wordpress/core-data": "^4.10.0", "@wordpress/data": "^6.11.0", "@wordpress/date": "^4.11.0", "@wordpress/element": "^4.9.0", "@wordpress/i18n": "^4.11.0", "@wordpress/icons": "^9.2.0", + "@wordpress/notices": "^3.12.0", "@wordpress/url": "^3.12.0", "@wordpress/viewport": "^4.9.0", "classnames": "^2.3.1", @@ -59577,29 +59607,29 @@ "integrity": "sha512-1VPkkTBk07gMR1fjpBtse4G+oJqpmE+0gUFB0dg3VIL7qJmUVaBoD/vlzMm/jNeOPfvlmerl1lpnsZyBUFIRuw==" }, "@wordpress/a11y": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/a11y/-/a11y-3.11.0.tgz", - "integrity": "sha512-mMQT1vvE9QkawI8CBkuZlVYGsb6it8LmJdqHTmAbgcmxmDK3TThhVpXTjCD863NvB/NyyNM8Kdaf2H4RnJytrA==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/a11y/-/a11y-3.12.0.tgz", + "integrity": "sha512-Fu+flXsHwSiQ4fjzTHEVTdKoOzpY8wtQ6YMFZbpIolaAC/I5j1dKHgBAQvHsFyBlg6fHrx0FZV6Xr4DgfW6daA==", "requires": { "@babel/runtime": "^7.16.0", - "@wordpress/dom-ready": "^3.11.0", - "@wordpress/i18n": "^4.11.0" + "@wordpress/dom-ready": "^3.12.0", + "@wordpress/i18n": "^4.12.0" } }, "@wordpress/api-fetch": { - "version": "6.8.0", - "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-6.8.0.tgz", - "integrity": "sha512-uC7HIh8q1J+dWloI3K8mIfItUPeun52C8rE9JCW+zSkBt7qPLIOzYpSIEc9S9Fw6LmGYhRipw5nJxKc/Fm34ig==", + "version": "6.9.0", + "resolved": "https://registry.npmjs.org/@wordpress/api-fetch/-/api-fetch-6.9.0.tgz", + "integrity": "sha512-H0IvLlisBcfKFa4tlMgtqFy7s7Iz3SSe6cEzqAAesK1fg+j3NewDP4fcQz5Ooo6pL+Y2A8oUM5dawjJctmsnAA==", "requires": { "@babel/runtime": "^7.16.0", - "@wordpress/i18n": "^4.11.0", - "@wordpress/url": "^3.12.0" + "@wordpress/i18n": "^4.12.0", + "@wordpress/url": "^3.13.0" } }, "@wordpress/autop": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/autop/-/autop-3.11.0.tgz", - "integrity": "sha512-aACvy9BCbrmk17xixrbPYUA8aGgpFn6mrXEYJRNXBWUpYAeXTC7ghpbI6i6/qQkxKKIwmTw6yl9u+SxuTo5SOA==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/autop/-/autop-3.12.0.tgz", + "integrity": "sha512-SWi8YzZQho47NwnYnuAsxejw33BF9MRDADIEc5l7VHuCLvL8ddfT0+b9apvovBOpMhnhvrpQBbkk99lnSMlg6g==", "requires": { "@babel/runtime": "^7.16.0" } @@ -59632,9 +59662,9 @@ } }, "@wordpress/blob": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/blob/-/blob-3.11.0.tgz", - "integrity": "sha512-LXfG4yrq5RXDtfdU/1qI9U/yo2IMYEhCV1iUM9jXHDx8maJX0FAZ/3rJCChGmP0/XfQcXDBO7hzwaGMXi8aDbg==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/blob/-/blob-3.12.0.tgz", + "integrity": "sha512-VE5akjN7Y5PmkL5R0TM/mhp5EqOnuTX7hYjJMeo5rT52fmy+af166bEjP+FwMf4qV87jjidaamZxTRBsJrsv1w==", "requires": { "@babel/runtime": "^7.16.0" } @@ -59685,32 +59715,32 @@ } }, "@wordpress/block-serialization-default-parser": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-4.11.0.tgz", - "integrity": "sha512-7yBm7V2JAdVzP+KixX84daZ0QxtC8c7LSiR87uV1SW+kbWlQvVfZZ3j7+PBbYM4MHfWQ1f6eTJ6gfqI2TubKew==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/block-serialization-default-parser/-/block-serialization-default-parser-4.12.0.tgz", + "integrity": "sha512-6aoFszil0ZiMuaamiweD1BXIk4e/5v46TjeFPqSyuSjoPJ+HeOB8oNzQyD2Fxux/8fodvpHXOhlrskSU2ZLmqA==", "requires": { "@babel/runtime": "^7.16.0" } }, "@wordpress/blocks": { - "version": "11.10.0", - "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-11.10.0.tgz", - "integrity": "sha512-b1rf6of8gxbTVMf7Jq94oojkWlWMyxzI5KlosQBiLAvq89ILzFfM/sujT/GceeoDJBM7y+e6q4x75eK99Wv0bg==", + "version": "11.11.0", + "resolved": "https://registry.npmjs.org/@wordpress/blocks/-/blocks-11.11.0.tgz", + "integrity": "sha512-fIm4O0Nz5j/zJ6SP8N7qMdKvmU+/NJvBAWTyjQ5lj4zv+PTzhbeq5UKuAzgtgr6ifhFaayBWZG9SaAXBjf7rUQ==", "requires": { "@babel/runtime": "^7.16.0", - "@wordpress/autop": "^3.11.0", - "@wordpress/blob": "^3.11.0", - "@wordpress/block-serialization-default-parser": "^4.11.0", - "@wordpress/compose": "^5.9.0", - "@wordpress/data": "^6.11.0", - "@wordpress/deprecated": "^3.11.0", - "@wordpress/dom": "^3.11.0", - "@wordpress/element": "^4.9.0", - "@wordpress/hooks": "^3.11.0", - "@wordpress/html-entities": "^3.11.0", - "@wordpress/i18n": "^4.11.0", - "@wordpress/is-shallow-equal": "^4.11.0", - "@wordpress/shortcode": "^3.11.0", + "@wordpress/autop": "^3.12.0", + "@wordpress/blob": "^3.12.0", + "@wordpress/block-serialization-default-parser": "^4.12.0", + "@wordpress/compose": "^5.10.0", + "@wordpress/data": "^6.12.0", + "@wordpress/deprecated": "^3.12.0", + "@wordpress/dom": "^3.12.0", + "@wordpress/element": "^4.10.0", + "@wordpress/hooks": "^3.12.0", + "@wordpress/html-entities": "^3.12.0", + "@wordpress/i18n": "^4.12.0", + "@wordpress/is-shallow-equal": "^4.12.0", + "@wordpress/shortcode": "^3.12.0", "colord": "^2.7.0", "hpq": "^1.3.0", "lodash": "^4.17.21", @@ -59859,37 +59889,59 @@ } }, "@wordpress/compose": { - "version": "5.9.0", - "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-5.9.0.tgz", - "integrity": "sha512-sztEjUPx/Q4AuYV8YgFxUXzK/OUAyeVeo20+yNPEYBohj6oQlQPWdm4UZic0FCiCSJfTbjhbZ1qtMcYzlLwF9w==", + "version": "5.10.0", + "resolved": "https://registry.npmjs.org/@wordpress/compose/-/compose-5.10.0.tgz", + "integrity": "sha512-UZ7UhXvW+yP6F8+OfUN0yU97NLZTMINhf3DX+uG4W08h5UlA5wGJYomm8AlTV/hhMc3rlZLBADGztTBp3bP05A==", "requires": { "@babel/runtime": "^7.16.0", "@types/lodash": "^4.14.172", "@types/mousetrap": "^1.6.8", - "@wordpress/deprecated": "^3.11.0", - "@wordpress/dom": "^3.11.0", - "@wordpress/element": "^4.9.0", - "@wordpress/is-shallow-equal": "^4.11.0", - "@wordpress/keycodes": "^3.11.0", - "@wordpress/priority-queue": "^2.11.0", + "@wordpress/deprecated": "^3.12.0", + "@wordpress/dom": "^3.12.0", + "@wordpress/element": "^4.10.0", + "@wordpress/is-shallow-equal": "^4.12.0", + "@wordpress/keycodes": "^3.12.0", + "@wordpress/priority-queue": "^2.12.0", "clipboard": "^2.0.8", "lodash": "^4.17.21", "mousetrap": "^1.6.5", "use-memo-one": "^1.1.1" } }, + "@wordpress/core-data": { + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-4.10.0.tgz", + "integrity": "sha512-WCXiNF/3QQKmjFg4+4iyQaTDpf5xI2gXrmSxjrmEdyGgZgdrtrDIGjW4gcSKyAlEVXWlOl7KUsG6MZBdwv67Eg==", + "requires": { + "@babel/runtime": "^7.16.0", + "@wordpress/api-fetch": "^6.9.0", + "@wordpress/blocks": "^11.11.0", + "@wordpress/data": "^6.12.0", + "@wordpress/deprecated": "^3.12.0", + "@wordpress/element": "^4.10.0", + "@wordpress/html-entities": "^3.12.0", + "@wordpress/i18n": "^4.12.0", + "@wordpress/is-shallow-equal": "^4.12.0", + "@wordpress/url": "^3.13.0", + "equivalent-key-map": "^0.2.2", + "lodash": "^4.17.21", + "memize": "^1.1.0", + "rememo": "^4.0.0", + "uuid": "^8.3.0" + } + }, "@wordpress/data": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-6.11.0.tgz", - "integrity": "sha512-DwFonz53mBcYO6Y+rFi2ZpXPgUtEXmCMk7bPZkE87qvh88A61GHWbvynD2YEjoMjhN6ffJrqgUXL6SLIxKvo3g==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/data/-/data-6.12.0.tgz", + "integrity": "sha512-fnMfbYoGl3GqP7tDaArtRRizQznnh6cVT+tAZV8aDBICNkQ8za7BY+HcxEpviNb+JbHJJk6VEclaLjYhR3jLCQ==", "requires": { "@babel/runtime": "^7.16.0", - "@wordpress/compose": "^5.9.0", - "@wordpress/deprecated": "^3.11.0", - "@wordpress/element": "^4.9.0", - "@wordpress/is-shallow-equal": "^4.11.0", - "@wordpress/priority-queue": "^2.11.0", - "@wordpress/redux-routine": "^4.11.0", + "@wordpress/compose": "^5.10.0", + "@wordpress/deprecated": "^3.12.0", + "@wordpress/element": "^4.10.0", + "@wordpress/is-shallow-equal": "^4.12.0", + "@wordpress/priority-queue": "^2.12.0", + "@wordpress/redux-routine": "^4.12.0", "equivalent-key-map": "^0.2.2", "is-promise": "^4.0.0", "lodash": "^4.17.21", @@ -59927,18 +59979,18 @@ } }, "@wordpress/deprecated": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/deprecated/-/deprecated-3.11.0.tgz", - "integrity": "sha512-T5v2r5Linb9C/peHHOn+xvVoT7QfU4qt9gPn47msHIzmCOeW2S7VDtIpukgooROWziLNoq39kCIhPvJBL4z/KQ==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/deprecated/-/deprecated-3.12.0.tgz", + "integrity": "sha512-sep+c2jFwAZ4HTtPgIbNLC0YTz3q9gCH3A82XwY/krkvxhNk3g+mXxPUI2dUoxp7RAeeckqDtKosPvvpqUZWiQ==", "requires": { "@babel/runtime": "^7.16.0", - "@wordpress/hooks": "^3.11.0" + "@wordpress/hooks": "^3.12.0" } }, "@wordpress/dom": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-3.11.0.tgz", - "integrity": "sha512-N2EQ663mtVYy7Vs+zS5RaExA0o7fV2kK5lW1L2+m+y+RAVmK9NAXrkTJk3kXXosKnnzSdn/EO+9Xd59KSZuP1w==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/dom/-/dom-3.12.0.tgz", + "integrity": "sha512-OliLqayM41MwfsCzLAg6wZWKnO28fLX50igGODVm5qtZUQMBDNhz3sX0T1OpB7P+UFOx/KffAkuk6HNi2NXKTQ==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/deprecated": "^3.8.0", @@ -59946,9 +59998,9 @@ } }, "@wordpress/dom-ready": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/dom-ready/-/dom-ready-3.11.0.tgz", - "integrity": "sha512-UChotG2Qi8zRcrMI06vkKtq6QdcZWtpEx/xZEflg8S0NlxEaNdNd0JOAQG1rQYPAfgdxySnIqmToF4bfir6d+A==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/dom-ready/-/dom-ready-3.12.0.tgz", + "integrity": "sha512-+IzRp/Vo2TkBQ72C9t/PETXbyPJPgr9DZmhbaYz8/RuTq/E5GcHPfEkKgjXNhDjOVxtjUb3Ut03EioGI6XFpAg==", "requires": { "@babel/runtime": "^7.16.0" } @@ -59980,23 +60032,23 @@ } }, "@wordpress/element": { - "version": "4.9.0", - "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-4.9.0.tgz", - "integrity": "sha512-XFS9N7YvgquBPiZvGjFiXQ3GLKHReBODTzz5gIFSmXIUa8F2LQ8jVEQT5mIxBf8scv5qS1sz8JimCgvLaUrgnA==", + "version": "4.10.0", + "resolved": "https://registry.npmjs.org/@wordpress/element/-/element-4.10.0.tgz", + "integrity": "sha512-Ddi5nwd8/zPDITo2PCm30ffKxvbOEpW8krXzffnTace7TaqGzz7QuX6yOVdm6xXx3KZH/AADYPzCwthJKbKGEg==", "requires": { "@babel/runtime": "^7.16.0", "@types/react": "^17.0.37", "@types/react-dom": "^17.0.11", - "@wordpress/escape-html": "^2.11.0", + "@wordpress/escape-html": "^2.12.0", "lodash": "^4.17.21", "react": "^17.0.2", "react-dom": "^17.0.2" } }, "@wordpress/escape-html": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/escape-html/-/escape-html-2.11.0.tgz", - "integrity": "sha512-cEnYvKlgnJeapP3CXW5OqcLKWUkpwehm0RsVHZN05xkwf6A431hsAf2kgij455+rNxuR42nbd7JA50wIbK8Xig==", + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/escape-html/-/escape-html-2.12.0.tgz", + "integrity": "sha512-kuLtqEOHSIu53+HwHjCiz8THXhnhqFwsfFgr4gkZmv4n4NxLmGsMV2kMMZlRjWbTUSP0YN7Dix4uHx8JWlIRGg==", "requires": { "@babel/runtime": "^7.16.0" } @@ -60103,28 +60155,28 @@ } }, "@wordpress/hooks": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.11.0.tgz", - "integrity": "sha512-dKA69FJzrGshmMDL4nvrziIcNjlK4BauSoqJul2J73qwCgGJT6EltrySnUNXA7NAS9SUHMUYWW3Hf5/03HZtvw==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/hooks/-/hooks-3.12.0.tgz", + "integrity": "sha512-DTf2VLBfrbuNQvBvz2m5Nbn44KEA4tHjo+1cIeDCZAuqBAKmeBGmJZA76lDs5Qu5nqfaixcOmfeVBEr29npJNg==", "requires": { "@babel/runtime": "^7.16.0" } }, "@wordpress/html-entities": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-3.11.0.tgz", - "integrity": "sha512-osDhQkaj/6wLGBzY7a2t0WyIr8XDRoM0c5fOSb9ZzuyC9m3j9zs3n35FA86trIRr2BBvXMUbzMXtt0bQ1dlspg==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/html-entities/-/html-entities-3.12.0.tgz", + "integrity": "sha512-e1aK/zBsP8kJNzmlCh/rvmVsFjJPmbf10eCKFOe0aVoM5dztAL0uY3AipWAdG6p9b2ovPiYDXjs3wpC49jZIiA==", "requires": { "@babel/runtime": "^7.16.0" } }, "@wordpress/i18n": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.11.0.tgz", - "integrity": "sha512-//AsPYsfeSuPmWUnmyLMYTm6jAE+/RbNQbfCAyjvszFHbczwQHoxSu6no+qpOyHWZKq/TCG7+6Lowz1LrlcFLA==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/i18n/-/i18n-4.12.0.tgz", + "integrity": "sha512-UTccrAOZ03nszzlG74G+ZkMR/kK0PoS1fqFa8NRFAhHneYadJOnsgCCd5YgDAsN+tAKA6QM7RPmpQMwujvIbzA==", "requires": { "@babel/runtime": "^7.16.0", - "@wordpress/hooks": "^3.11.0", + "@wordpress/hooks": "^3.12.0", "gettext-parser": "^1.3.1", "lodash": "^4.17.21", "memize": "^1.1.0", @@ -60143,9 +60195,9 @@ } }, "@wordpress/is-shallow-equal": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/is-shallow-equal/-/is-shallow-equal-4.11.0.tgz", - "integrity": "sha512-p6IjVIQafDSVLDh+++E3eo1ThTJ0V/eAiqqN+mmXoL1yXSh2t2sgO02OAT/8g7OkbZnZZ8ypWKBycPZgoCQMdA==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/is-shallow-equal/-/is-shallow-equal-4.12.0.tgz", + "integrity": "sha512-jlpHXPLJw0mG13bcbZIJwOd1DQozJ5+fbkkKA2JeTO5d5PXs44Rw6EYdGMLUU97B44UxIwVbaui7tJGOvzF8Dw==", "requires": { "@babel/runtime": "^7.16.0" } @@ -60193,24 +60245,23 @@ } }, "@wordpress/keycodes": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-3.11.0.tgz", - "integrity": "sha512-WWB6kz++liLOEZGfvhLVtEhflsDYw56TwAZBAqOWfkfEdkC0ATg9F8QMGlCTcTTx2QnOIVmLtHnPCEeSxblegA==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/keycodes/-/keycodes-3.12.0.tgz", + "integrity": "sha512-wZQa8T2rgJnoJHG9Bmp0E1WNQOKK6awf0elnzEKs8UleauDKHJIMdiILq74bNz3SptVKkehdCsa8wpE9HuB8Kw==", "requires": { "@babel/runtime": "^7.16.0", - "@wordpress/i18n": "^4.11.0", + "@wordpress/i18n": "^4.12.0", "lodash": "^4.17.21" } }, "@wordpress/notices": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-3.11.0.tgz", - "integrity": "sha512-rHD8vtJlG8AxDE22iiOv42AGMdWjcpAdOBiJvISFopM6r0n6JdhI6lABOJNQMYHGUV6sCQvqDOuQkCKbltxZ5g==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/notices/-/notices-3.12.0.tgz", + "integrity": "sha512-MpXzUeOS5mPKCL3cC4w3kgaw/0niIfQRtjwJaqPXnsYzzO6z21nMpEoACdwImzAuFcq/AuiTn3apvcaGytQ4jw==", "requires": { "@babel/runtime": "^7.16.0", - "@wordpress/a11y": "^3.11.0", - "@wordpress/data": "^6.11.0", - "lodash": "^4.17.21" + "@wordpress/a11y": "^3.12.0", + "@wordpress/data": "^6.12.0" } }, "@wordpress/prettier-config": { @@ -60231,17 +60282,17 @@ } }, "@wordpress/priority-queue": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/priority-queue/-/priority-queue-2.11.0.tgz", - "integrity": "sha512-nFacHnMXTpJdW/QFM+KLOXkeERiLBM8+Rl0FPeoES+/yvjQLd4kBYBmQ56JO9tdNdAZNN7tZs1XUkB485VNLfg==", + "version": "2.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/priority-queue/-/priority-queue-2.12.0.tgz", + "integrity": "sha512-W/Foka//VcqY1D8fYXUE196tCm4ExH4qo6HFNyQU0VAwMI0ypKH+b9wgybfC7e+Hj2lTFZQVQOJgsGE/qZiufw==", "requires": { "@babel/runtime": "^7.16.0" } }, "@wordpress/redux-routine": { - "version": "4.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/redux-routine/-/redux-routine-4.11.0.tgz", - "integrity": "sha512-alyl4NsTMWlGUPfbINhguJFn49k84zt7WLzNwP8HdC7ER5aEpMDLvRJyOcBdJq/jzVWfBxrcnEsy27uqqhZlJw==", + "version": "4.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/redux-routine/-/redux-routine-4.12.0.tgz", + "integrity": "sha512-PLheKMgvYcbOiQzwGQfpbdA04DGWTE08LSrkgM5VWJT8hcoS/RIWvxNph3MXSPx1lXLhN6d0CqjOSkuDI/xbfw==", "requires": { "@babel/runtime": "^7.16.0", "is-promise": "^4.0.0", @@ -60268,12 +60319,11 @@ } }, "@wordpress/shortcode": { - "version": "3.11.0", - "resolved": "https://registry.npmjs.org/@wordpress/shortcode/-/shortcode-3.11.0.tgz", - "integrity": "sha512-HzrSbmi9fY7Rc0glr+cp14JwkSopQWMsFA8qFLUg6C0YSDgFbPELAyy2yugbGSf24Y3wE66lKpwEzkCHZ4GGDg==", + "version": "3.12.0", + "resolved": "https://registry.npmjs.org/@wordpress/shortcode/-/shortcode-3.12.0.tgz", + "integrity": "sha512-5Ln7VDLu5TDNRPr3pYrNqy/AnW6y5PkVGdmDW1TtwTcaSadh9uGQsDrHTiVDLiIPl9eV9dhfXXkxDZrF8zepxQ==", "requires": { "@babel/runtime": "^7.16.0", - "lodash": "^4.17.21", "memize": "^1.1.0" } }, @@ -60296,9 +60346,9 @@ } }, "@wordpress/url": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-3.12.0.tgz", - "integrity": "sha512-6zoHPZB5P74DnYo2a3EqOnS8HPF0U1rafsi1vJotaQOOZgff/1DDlQ0Gawdn9ZkLWUGEpv4lFja4OWcA1qOjPg==", + "version": "3.13.0", + "resolved": "https://registry.npmjs.org/@wordpress/url/-/url-3.13.0.tgz", + "integrity": "sha512-KROX6n67thgOuAfDwUa9jim/kWcTClHTVJapG5do//40PpWLw5dW4pVEPqGZzB6AeWuCnFzGThQ8yn6pWg2WJg==", "requires": { "@babel/runtime": "^7.16.0", "remove-accents": "^0.4.2" diff --git a/packages/stories-block/package.json b/packages/stories-block/package.json index efe69899eb18..0ed638ba2b4f 100644 --- a/packages/stories-block/package.json +++ b/packages/stories-block/package.json @@ -37,11 +37,13 @@ "@wordpress/blocks": "^11.10.0", "@wordpress/components": "^19.13.0", "@wordpress/compose": "^5.9.0", + "@wordpress/core-data": "^4.10.0", "@wordpress/data": "^6.11.0", "@wordpress/date": "^4.11.0", "@wordpress/element": "^4.9.0", "@wordpress/i18n": "^4.11.0", "@wordpress/icons": "^9.2.0", + "@wordpress/notices": "^3.12.0", "@wordpress/url": "^3.12.0", "@wordpress/viewport": "^4.9.0", "classnames": "^2.3.1", diff --git a/packages/stories-block/src/block/block-types/single-story/edit.js b/packages/stories-block/src/block/block-types/single-story/edit.js index 0887e98daeab..3f6478e5bf2a 100644 --- a/packages/stories-block/src/block/block-types/single-story/edit.js +++ b/packages/stories-block/src/block/block-types/single-story/edit.js @@ -32,6 +32,7 @@ import * as compose from '@wordpress/compose'; import { withViewportMatch } from '@wordpress/viewport'; import { useDispatch, useSelect } from '@wordpress/data'; import { __ } from '@wordpress/i18n'; +import { store as blockEditorStore } from '@wordpress/block-editor'; /** * Internal dependencies @@ -195,7 +196,7 @@ function StoryEmbedEdit({ }, []); const { isRTL, maxWidth } = useSelect((select) => { - const { getSettings } = select('core/block-editor'); + const { getSettings } = select(blockEditorStore); const settings = getSettings(); return { isRTL: settings.isRTL, @@ -203,7 +204,7 @@ function StoryEmbedEdit({ }; }, []); - const { toggleSelection } = useDispatch('core/block-editor'); + const { toggleSelection } = useDispatch(blockEditorStore); if (showLoadingIndicator) { return ; diff --git a/packages/stories-block/src/block/components/storyPicker/fetchSelectedStories.js b/packages/stories-block/src/block/components/storyPicker/fetchSelectedStories.js index 2ec7f7a0c663..cf7e0ff964e4 100644 --- a/packages/stories-block/src/block/components/storyPicker/fetchSelectedStories.js +++ b/packages/stories-block/src/block/components/storyPicker/fetchSelectedStories.js @@ -28,6 +28,7 @@ import { useEffect } from '@wordpress/element'; import apiFetch from '@wordpress/api-fetch'; import { addQueryArgs } from '@wordpress/url'; import { useDispatch } from '@wordpress/data'; +import { store as noticesStore } from '@wordpress/notices'; /** * Internal dependencies @@ -47,7 +48,7 @@ function FetchSelectedStories({ setSelectedStories, setIsFetching, }) { - const { createErrorNotice } = useDispatch('core/notices'); + const { createErrorNotice } = useDispatch(noticesStore); const fetchStories = async () => { try { diff --git a/packages/stories-block/src/block/components/storyPicker/selectStories.js b/packages/stories-block/src/block/components/storyPicker/selectStories.js index 4ed9c8f6f546..c9ee837d4cc3 100644 --- a/packages/stories-block/src/block/components/storyPicker/selectStories.js +++ b/packages/stories-block/src/block/components/storyPicker/selectStories.js @@ -38,6 +38,7 @@ import { } from '@wordpress/components'; import { useSelect } from '@wordpress/data'; import { useDebounce } from '@wordpress/compose'; +import { store as coreStore } from '@wordpress/core-data'; /** * Internal dependencies @@ -139,7 +140,7 @@ function SelectStories({ search: authorKeyword, }; - const { getAuthors } = select('core'); + const { getAuthors } = select(coreStore); return { // Not using `getUsers()` because it requires `list_users` capability. diff --git a/packages/stories-block/src/block/components/storyPicker/storyPicker.js b/packages/stories-block/src/block/components/storyPicker/storyPicker.js index c8aa33782997..000a8dc4453c 100644 --- a/packages/stories-block/src/block/components/storyPicker/storyPicker.js +++ b/packages/stories-block/src/block/components/storyPicker/storyPicker.js @@ -27,6 +27,7 @@ import { useState, useEffect, useCallback } from '@wordpress/element'; import apiFetch from '@wordpress/api-fetch'; import { useDispatch } from '@wordpress/data'; import { addQueryArgs } from '@wordpress/url'; +import { store as noticesStore } from '@wordpress/notices'; /** * Internal dependencies @@ -49,7 +50,7 @@ function StoryPicker({ setIsSortingStories = () => {}, maxNumOfStories, }) { - const { createErrorNotice } = useDispatch('core/notices'); + const { createErrorNotice } = useDispatch(noticesStore); const [localSelectedStories, setLocalSelectedStories] = useState(selectedStories); From 417843afb2f10bcc9b9f1026eeb0c7f8340bffed Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Mon, 4 Jul 2022 17:47:19 +0200 Subject: [PATCH 3/3] Media Recording: Fix incorrect error message --- packages/story-editor/src/components/mediaRecording/provider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/story-editor/src/components/mediaRecording/provider.js b/packages/story-editor/src/components/mediaRecording/provider.js index aa097856e8bc..20e06b067ba4 100644 --- a/packages/story-editor/src/components/mediaRecording/provider.js +++ b/packages/story-editor/src/components/mediaRecording/provider.js @@ -98,7 +98,7 @@ function MediaRecordingProvider({ children }) { trackError('media_recording_capture', e.message); showSnackbar({ message: __( - ' There was an error taking a photo. Please try again.', + 'There was an error recording a video. Please try again.', 'web-stories' ), dismissable: true,