diff --git a/docs/reference-guides/slotfills/main-dashboard-button.md b/docs/reference-guides/slotfills/main-dashboard-button.md
index b55ed50648db1..593c5c57ca297 100644
--- a/docs/reference-guides/slotfills/main-dashboard-button.md
+++ b/docs/reference-guides/slotfills/main-dashboard-button.md
@@ -33,7 +33,7 @@ registerPlugin( 'main-dashboard-button-test', {
### Change the icon and link
-This example will change the icon in the header to indicate an external link that will take the user to http://wordpress.org when clicked.
+This example will change the icon in the header to indicate an external link that will take the user to https://wordpress.org when clicked.
```js
import { registerPlugin } from '@wordpress/plugins';
@@ -45,7 +45,7 @@ import { external } from '@wordpress/icons';
const MainDashboardButtonIconTest = () => (
-
+
);
@@ -54,4 +54,4 @@ registerPlugin( 'main-dashboard-button-icon-test', {
} );
```
-
+
diff --git a/lib/class-wp-theme-json-resolver-gutenberg.php b/lib/class-wp-theme-json-resolver-gutenberg.php
index 1f45d897a77cc..ddba48f88483d 100644
--- a/lib/class-wp-theme-json-resolver-gutenberg.php
+++ b/lib/class-wp-theme-json-resolver-gutenberg.php
@@ -359,7 +359,7 @@ public static function get_theme_data( $deprecated = array(), $options = array()
}
if ( current_theme_supports( 'experimental-link-color' ) ) {
_doing_it_wrong(
- current_theme_supports( 'experimental-link-color' ),
+ "add_theme_support( 'experimental-link-color' )",
__( '`experimental-link-color` is no longer supported. Use `link-color` instead.', 'gutenberg' ),
'6.3.0'
);
diff --git a/lib/client-assets.php b/lib/client-assets.php
index f95ac27f81d01..4a94ca212c342 100644
--- a/lib/client-assets.php
+++ b/lib/client-assets.php
@@ -539,7 +539,7 @@ function gutenberg_enqueue_stored_styles( $options = array() ) {
// Combines Core styles.
if ( ! empty( $compiled_core_stylesheet ) ) {
- wp_register_style( $style_tag_id, false, array(), true, true );
+ wp_register_style( $style_tag_id, false, array(), true );
wp_add_inline_style( $style_tag_id, $compiled_core_stylesheet );
wp_enqueue_style( $style_tag_id );
}
@@ -562,7 +562,7 @@ function gutenberg_enqueue_stored_styles( $options = array() ) {
$styles = gutenberg_style_engine_get_stylesheet_from_context( $store_name, $options );
if ( ! empty( $styles ) ) {
$key = "wp-style-engine-$store_name";
- wp_register_style( $key, false, array(), true, true );
+ wp_register_style( $key, false, array(), true );
wp_add_inline_style( $key, $styles );
wp_enqueue_style( $key );
}
diff --git a/lib/experimental/sync/class-gutenberg-http-signaling-server.php b/lib/experimental/sync/class-gutenberg-http-signaling-server.php
index a41e26fdac163..3448e82a4c31d 100644
--- a/lib/experimental/sync/class-gutenberg-http-signaling-server.php
+++ b/lib/experimental/sync/class-gutenberg-http-signaling-server.php
@@ -172,7 +172,7 @@ private static function handle_read_pending_messages( $subscriber_to_messages_pa
if ( ! $fd ) {
$retries = isset( $_COOKIE['signaling_server_retries'] ) ? intval( $_COOKIE['signaling_server_retries'] ) : 0;
$secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) );
- setcookie( 'signaling_server_retries', $retries + 1, time() + DAY_IN_SECONDS, SITECOOKIEPATH, '', $secure );
+ setcookie( 'signaling_server_retries', (string) ( $retries + 1 ), time() + DAY_IN_SECONDS, SITECOOKIEPATH, '', $secure );
echo 'id: ' . time() . PHP_EOL;
echo 'event: error' . PHP_EOL;
echo 'data: ' . 'Could not open required file.' . PHP_EOL . PHP_EOL;
@@ -183,7 +183,7 @@ private static function handle_read_pending_messages( $subscriber_to_messages_pa
if ( isset( $_COOKIE['signaling_server_retries'] ) ) {
$secure = ( 'https' === parse_url( home_url(), PHP_URL_SCHEME ) );
// unset the cookie using a past expiration date.
- setcookie( 'signaling_server_retries', 0, time() - DAY_IN_SECONDS, SITECOOKIEPATH, '', $secure );
+ setcookie( 'signaling_server_retries', '0', time() - DAY_IN_SECONDS, SITECOOKIEPATH, '', $secure );
}
echo 'retry: 3000' . PHP_EOL;
diff --git a/packages/block-editor/src/components/spacing-sizes-control/linked-button.js b/packages/block-editor/src/components/spacing-sizes-control/linked-button.js
index f6d56be66072a..413dc88a52e9b 100644
--- a/packages/block-editor/src/components/spacing-sizes-control/linked-button.js
+++ b/packages/block-editor/src/components/spacing-sizes-control/linked-button.js
@@ -1,7 +1,7 @@
/**
* WordPress dependencies
*/
-import { Button, Tooltip } from '@wordpress/components';
+import { Button } from '@wordpress/components';
import { link, linkOff } from '@wordpress/icons';
import { __ } from '@wordpress/i18n';
@@ -9,14 +9,12 @@ export default function LinkedButton( { isLinked, ...props } ) {
const label = isLinked ? __( 'Unlink sides' ) : __( 'Link sides' );
return (
-
-
-
+
);
}
diff --git a/packages/block-library/src/navigation-submenu/index.js b/packages/block-library/src/navigation-submenu/index.js
index 69e97fb85325a..f5eb1e2346d76 100644
--- a/packages/block-library/src/navigation-submenu/index.js
+++ b/packages/block-library/src/navigation-submenu/index.js
@@ -2,6 +2,7 @@
* WordPress dependencies
*/
import { page, addSubmenu } from '@wordpress/icons';
+import { _x } from '@wordpress/i18n';
/**
* Internal dependencies
@@ -37,6 +38,12 @@ export const settings = {
return label;
},
edit,
+ example: {
+ attributes: {
+ label: _x( 'About', 'Example link text for Navigation Submenu' ),
+ type: 'page',
+ },
+ },
save,
transforms,
};
diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md
index 803ba8226b191..6482cacbf9327 100644
--- a/packages/components/CHANGELOG.md
+++ b/packages/components/CHANGELOG.md
@@ -2,6 +2,10 @@
## Unreleased
+### Enhancements
+
+- `BorderBoxControl`, `BoxControl`: Remove `Tooltip` component from linked button ([#68498](https://github.com/WordPress/gutenberg/pull/68498)).
+
### Internal
- `BoxControl`: Add runtime check for presets and presetKey ([#68385](https://github.com/WordPress/gutenberg/pull/68385)).
diff --git a/packages/components/src/border-box-control/border-box-control-linked-button/component.tsx b/packages/components/src/border-box-control/border-box-control-linked-button/component.tsx
index 5388a381deb39..561653009a448 100644
--- a/packages/components/src/border-box-control/border-box-control-linked-button/component.tsx
+++ b/packages/components/src/border-box-control/border-box-control-linked-button/component.tsx
@@ -8,8 +8,6 @@ import { __ } from '@wordpress/i18n';
* Internal dependencies
*/
import Button from '../../button';
-import Tooltip from '../../tooltip';
-import { View } from '../../view';
import type { WordPressComponentProps } from '../../context';
import { contextConnect } from '../../context';
import { useBorderBoxControlLinkedButton } from './hook';
@@ -25,18 +23,15 @@ const BorderBoxControlLinkedButton = (
const label = isLinked ? __( 'Unlink sides' ) : __( 'Link sides' );
return (
-
-
-
-
-
+
);
};
diff --git a/packages/components/src/box-control/linked-button.tsx b/packages/components/src/box-control/linked-button.tsx
index 595a3c0343675..985a7745d5c15 100644
--- a/packages/components/src/box-control/linked-button.tsx
+++ b/packages/components/src/box-control/linked-button.tsx
@@ -8,7 +8,6 @@ import { __ } from '@wordpress/i18n';
* Internal dependencies
*/
import Button from '../button';
-import Tooltip from '../tooltip';
export default function LinkedButton( {
isLinked,
@@ -17,15 +16,13 @@ export default function LinkedButton( {
const label = isLinked ? __( 'Unlink sides' ) : __( 'Link sides' );
return (
-
-
-
+
);
}
diff --git a/packages/edit-site/src/components/page-patterns/style.scss b/packages/edit-site/src/components/page-patterns/style.scss
index 2cacc8fab607c..8a2d71d87633d 100644
--- a/packages/edit-site/src/components/page-patterns/style.scss
+++ b/packages/edit-site/src/components/page-patterns/style.scss
@@ -4,10 +4,18 @@
.page-patterns-preview-field {
display: flex;
+ justify-content: center;
+ align-items: center;
flex-direction: column;
height: 100%;
border-radius: $radius-medium;
+ .dataviews-view-grid & {
+ .block-editor-block-preview__container {
+ height: 100%;
+ }
+ }
+
.dataviews-view-table & {
width: 96px;
flex-grow: 0;
diff --git a/packages/edit-site/src/components/page-templates/style.scss b/packages/edit-site/src/components/page-templates/style.scss
index bb9069e2c5038..89aa9dd312fb4 100644
--- a/packages/edit-site/src/components/page-templates/style.scss
+++ b/packages/edit-site/src/components/page-templates/style.scss
@@ -1,5 +1,7 @@
.page-templates-preview-field {
display: flex;
+ justify-content: center;
+ align-items: center;
flex-direction: column;
height: 100%;
width: 100%;
diff --git a/packages/editor/README.md b/packages/editor/README.md
index 3119f3f289637..923345ab5a78c 100644
--- a/packages/editor/README.md
+++ b/packages/editor/README.md
@@ -293,11 +293,11 @@ Component check if there are any headings (core/heading blocks) present in the d
_Parameters_
- _props_ `Object`: Props.
-- _props.children_ `React.ReactElement`: Children to be rendered.
+- _props.children_ `React.ReactNode`: Children to be rendered.
_Returns_
-- `React.ReactElement`: The component to be rendered or null if there are headings.
+- `React.ReactNode`: The component to be rendered or null if there are headings.
### EditorHistoryRedo
@@ -524,11 +524,11 @@ Wrapper component that renders its children only if the post type supports page
_Parameters_
- _props_ `Object`: - The component props.
-- _props.children_ `React.ReactElement`: - The child components to render.
+- _props.children_ `React.ReactNode`: - The child components to render.
_Returns_
-- `React.ReactElement`: The rendered child components or null if page attributes are not supported.
+- `React.ReactNode`: The rendered child components or null if page attributes are not supported.
### PageAttributesOrder
@@ -1211,11 +1211,11 @@ This component checks the publishing status of the current post. If the post is
_Parameters_
- _props_ `Object`: Component properties.
-- _props.children_ `React.ReactElement`: Children to be rendered.
+- _props.children_ `React.ReactNode`: Children to be rendered.
_Returns_
-- `React.ReactElement`: The rendered child elements or null if the post is already published or the user doesn't have the capability to publish.
+- `React.ReactNode`: The rendered child elements or null if the post is already published or the user doesn't have the capability to publish.
### PostPingbacks
@@ -1287,11 +1287,11 @@ Wrapper component that renders its children only if post has a publish action.
_Parameters_
- _props_ `Object`: Props.
-- _props.children_ `React.ReactElement`: Children to be rendered.
+- _props.children_ `React.ReactNode`: Children to be rendered.
_Returns_
-- `React.ReactElement`: - The component to be rendered or null if there is no publish action.
+- `React.ReactNode`: - The component to be rendered or null if there is no publish action.
### PostScheduleLabel
@@ -1328,11 +1328,11 @@ Wrapper component that renders its children only if post has a sticky action.
_Parameters_
- _props_ `Object`: Props.
-- _props.children_ `React.ReactElement`: Children to be rendered.
+- _props.children_ `React.ReactNode`: Children to be rendered.
_Returns_
-- `React.ReactElement`: The component to be rendered or null if post type is not 'post' or hasStickyAction is false.
+- `React.ReactNode`: The component to be rendered or null if post type is not 'post' or hasStickyAction is false.
### PostSwitchToDraftButton
@@ -1374,7 +1374,7 @@ _Parameters_
_Returns_
-- `React.ReactElement`: The rendered children components or null if the current post type has no taxonomies.
+- `React.ReactNode`: The rendered children components or null if the current post type has no taxonomies.
### PostTaxonomiesFlatTermSelector
@@ -1463,11 +1463,11 @@ Wrapper component that renders its children only if the post can be trashed.
_Parameters_
- _props_ `Object`: The component props.
-- _props.children_ `React.ReactElement`: The child components.
+- _props.children_ `React.ReactNode`: The child components.
_Returns_
-- `React.ReactElement | null`: The rendered child components or null if the post can't be trashed.
+- `React.ReactNode`: The rendered child components or null if the post can't be trashed.
### PostTypeSupportCheck
@@ -1476,12 +1476,12 @@ A component which renders its own children only if the current editor post type
_Parameters_
- _props_ `Object`: Props.
-- _props.children_ `React.ReactElement`: Children to be rendered if post type supports.
+- _props.children_ `React.ReactNode`: Children to be rendered if post type supports.
- _props.supportKeys_ `(string|string[])`: String or string array of keys to test.
_Returns_
-- `React.ReactElement`: The component to be rendered.
+- `React.ReactNode`: The component to be rendered.
### PostURL
@@ -1509,11 +1509,11 @@ Check if the post URL is valid and visible.
_Parameters_
- _props_ `Object`: The component props.
-- _props.children_ `React.ReactElement`: The child components.
+- _props.children_ `React.ReactNode`: The child components.
_Returns_
-- `React.ReactElement`: The child components if the post URL is valid and visible, otherwise null.
+- `React.ReactNode`: The child components if the post URL is valid and visible, otherwise null.
### PostURLLabel
@@ -1657,12 +1657,12 @@ Checks if the current theme supports specific features and renders the children
_Parameters_
- _props_ `Object`: The component props.
-- _props.children_ `React.ReactElement`: The children to render if the theme supports the specified features.
+- _props.children_ `React.ReactNode`: The children to render if the theme supports the specified features.
- _props.supportKeys_ `string|string[]`: The key(s) of the theme support(s) to check.
_Returns_
-- `React.ReactElement`: The rendered children if the theme supports the specified features, otherwise null.
+- `React.ReactNode`: The rendered children if the theme supports the specified features, otherwise null.
### TimeToRead
diff --git a/packages/editor/src/components/document-outline/check.js b/packages/editor/src/components/document-outline/check.js
index 87864cbb34a36..a2af41d6dda52 100644
--- a/packages/editor/src/components/document-outline/check.js
+++ b/packages/editor/src/components/document-outline/check.js
@@ -7,10 +7,10 @@ import { store as blockEditorStore } from '@wordpress/block-editor';
/**
* Component check if there are any headings (core/heading blocks) present in the document.
*
- * @param {Object} props Props.
- * @param {React.ReactElement} props.children Children to be rendered.
+ * @param {Object} props Props.
+ * @param {React.ReactNode} props.children Children to be rendered.
*
- * @return {React.ReactElement} The component to be rendered or null if there are headings.
+ * @return {React.ReactNode} The component to be rendered or null if there are headings.
*/
export default function DocumentOutlineCheck( { children } ) {
const hasHeadings = useSelect( ( select ) => {
diff --git a/packages/editor/src/components/page-attributes/check.js b/packages/editor/src/components/page-attributes/check.js
index 3c08a3d8e5351..7d613165d30e3 100644
--- a/packages/editor/src/components/page-attributes/check.js
+++ b/packages/editor/src/components/page-attributes/check.js
@@ -12,10 +12,10 @@ import { store as editorStore } from '../../store';
/**
* Wrapper component that renders its children only if the post type supports page attributes.
*
- * @param {Object} props - The component props.
- * @param {React.ReactElement} props.children - The child components to render.
+ * @param {Object} props - The component props.
+ * @param {React.ReactNode} props.children - The child components to render.
*
- * @return {React.ReactElement} The rendered child components or null if page attributes are not supported.
+ * @return {React.ReactNode} The rendered child components or null if page attributes are not supported.
*/
export function PageAttributesCheck( { children } ) {
const supportsPageAttributes = useSelect( ( select ) => {
diff --git a/packages/editor/src/components/post-pending-status/check.js b/packages/editor/src/components/post-pending-status/check.js
index 9f407d8c8cd82..f4152cc824681 100644
--- a/packages/editor/src/components/post-pending-status/check.js
+++ b/packages/editor/src/components/post-pending-status/check.js
@@ -13,10 +13,10 @@ import { store as editorStore } from '../../store';
* If the post is already published or the user doesn't have the
* capability to publish, it returns null.
*
- * @param {Object} props Component properties.
- * @param {React.ReactElement} props.children Children to be rendered.
+ * @param {Object} props Component properties.
+ * @param {React.ReactNode} props.children Children to be rendered.
*
- * @return {React.ReactElement} The rendered child elements or null if the post is already published or the user doesn't have the capability to publish.
+ * @return {React.ReactNode} The rendered child elements or null if the post is already published or the user doesn't have the capability to publish.
*/
export function PostPendingStatusCheck( { children } ) {
const { hasPublishAction, isPublished } = useSelect( ( select ) => {
diff --git a/packages/editor/src/components/post-schedule/check.js b/packages/editor/src/components/post-schedule/check.js
index 32526a977f94f..a5cfb2287cae3 100644
--- a/packages/editor/src/components/post-schedule/check.js
+++ b/packages/editor/src/components/post-schedule/check.js
@@ -11,10 +11,10 @@ import { store as editorStore } from '../../store';
/**
* Wrapper component that renders its children only if post has a publish action.
*
- * @param {Object} props Props.
- * @param {React.ReactElement} props.children Children to be rendered.
+ * @param {Object} props Props.
+ * @param {React.ReactNode} props.children Children to be rendered.
*
- * @return {React.ReactElement} - The component to be rendered or null if there is no publish action.
+ * @return {React.ReactNode} - The component to be rendered or null if there is no publish action.
*/
export default function PostScheduleCheck( { children } ) {
const hasPublishAction = useSelect( ( select ) => {
diff --git a/packages/editor/src/components/post-sticky/check.js b/packages/editor/src/components/post-sticky/check.js
index ede5c22f3c3e3..0a4878ceab77b 100644
--- a/packages/editor/src/components/post-sticky/check.js
+++ b/packages/editor/src/components/post-sticky/check.js
@@ -11,10 +11,10 @@ import { store as editorStore } from '../../store';
/**
* Wrapper component that renders its children only if post has a sticky action.
*
- * @param {Object} props Props.
- * @param {React.ReactElement} props.children Children to be rendered.
+ * @param {Object} props Props.
+ * @param {React.ReactNode} props.children Children to be rendered.
*
- * @return {React.ReactElement} The component to be rendered or null if post type is not 'post' or hasStickyAction is false.
+ * @return {React.ReactNode} The component to be rendered or null if post type is not 'post' or hasStickyAction is false.
*/
export default function PostStickyCheck( { children } ) {
const { hasStickyAction, postType } = useSelect( ( select ) => {
diff --git a/packages/editor/src/components/post-taxonomies/check.js b/packages/editor/src/components/post-taxonomies/check.js
index ce3db319ae2e8..b6b4d4f58e4e6 100644
--- a/packages/editor/src/components/post-taxonomies/check.js
+++ b/packages/editor/src/components/post-taxonomies/check.js
@@ -15,7 +15,7 @@ import { store as editorStore } from '../../store';
* @param {Object} props The component props.
* @param {React.ReactNode} props.children The children components to render.
*
- * @return {React.ReactElement} The rendered children components or null if the current post type has no taxonomies.
+ * @return {React.ReactNode} The rendered children components or null if the current post type has no taxonomies.
*/
export default function PostTaxonomiesCheck( { children } ) {
const hasTaxonomies = useSelect( ( select ) => {
diff --git a/packages/editor/src/components/post-trash/check.js b/packages/editor/src/components/post-trash/check.js
index 590aa7cd4c390..60774bbf3c73f 100644
--- a/packages/editor/src/components/post-trash/check.js
+++ b/packages/editor/src/components/post-trash/check.js
@@ -13,10 +13,10 @@ import { GLOBAL_POST_TYPES } from '../../store/constants';
/**
* Wrapper component that renders its children only if the post can be trashed.
*
- * @param {Object} props The component props.
- * @param {React.ReactElement} props.children The child components.
+ * @param {Object} props The component props.
+ * @param {React.ReactNode} props.children The child components.
*
- * @return {React.ReactElement | null} The rendered child components or null if the post can't be trashed.
+ * @return {React.ReactNode} The rendered child components or null if the post can't be trashed.
*/
export default function PostTrashCheck( { children } ) {
const { canTrashPost } = useSelect( ( select ) => {
diff --git a/packages/editor/src/components/post-type-support-check/index.js b/packages/editor/src/components/post-type-support-check/index.js
index f04aea84b0e41..7b1587cf6ae33 100644
--- a/packages/editor/src/components/post-type-support-check/index.js
+++ b/packages/editor/src/components/post-type-support-check/index.js
@@ -13,13 +13,13 @@ import { store as editorStore } from '../../store';
* A component which renders its own children only if the current editor post
* type supports one of the given `supportKeys` prop.
*
- * @param {Object} props Props.
- * @param {React.ReactElement} props.children Children to be rendered if post
- * type supports.
- * @param {(string|string[])} props.supportKeys String or string array of keys
- * to test.
+ * @param {Object} props Props.
+ * @param {React.ReactNode} props.children Children to be rendered if post
+ * type supports.
+ * @param {(string|string[])} props.supportKeys String or string array of keys
+ * to test.
*
- * @return {React.ReactElement} The component to be rendered.
+ * @return {React.ReactNode} The component to be rendered.
*/
function PostTypeSupportCheck( { children, supportKeys } ) {
const postType = useSelect( ( select ) => {
diff --git a/packages/editor/src/components/post-url/check.js b/packages/editor/src/components/post-url/check.js
index a80d829de2322..cd414522e5221 100644
--- a/packages/editor/src/components/post-url/check.js
+++ b/packages/editor/src/components/post-url/check.js
@@ -12,10 +12,10 @@ import { store as editorStore } from '../../store';
/**
* Check if the post URL is valid and visible.
*
- * @param {Object} props The component props.
- * @param {React.ReactElement} props.children The child components.
+ * @param {Object} props The component props.
+ * @param {React.ReactNode} props.children The child components.
*
- * @return {React.ReactElement} The child components if the post URL is valid and visible, otherwise null.
+ * @return {React.ReactNode} The child components if the post URL is valid and visible, otherwise null.
*/
export default function PostURLCheck( { children } ) {
const isVisible = useSelect( ( select ) => {
diff --git a/packages/editor/src/components/theme-support-check/index.js b/packages/editor/src/components/theme-support-check/index.js
index 1f29370d32199..ed6b9c86d7f07 100644
--- a/packages/editor/src/components/theme-support-check/index.js
+++ b/packages/editor/src/components/theme-support-check/index.js
@@ -12,11 +12,11 @@ import { store as editorStore } from '../../store';
/**
* Checks if the current theme supports specific features and renders the children if supported.
*
- * @param {Object} props The component props.
- * @param {React.ReactElement} props.children The children to render if the theme supports the specified features.
- * @param {string|string[]} props.supportKeys The key(s) of the theme support(s) to check.
+ * @param {Object} props The component props.
+ * @param {React.ReactNode} props.children The children to render if the theme supports the specified features.
+ * @param {string|string[]} props.supportKeys The key(s) of the theme support(s) to check.
*
- * @return {React.ReactElement} The rendered children if the theme supports the specified features, otherwise null.
+ * @return {React.ReactNode} The rendered children if the theme supports the specified features, otherwise null.
*/
export default function ThemeSupportCheck( { children, supportKeys } ) {
const { postType, themeSupports } = useSelect( ( select ) => {
diff --git a/packages/editor/src/store/selectors.js b/packages/editor/src/store/selectors.js
index 4ab0a47210353..a19f173982d9f 100644
--- a/packages/editor/src/store/selectors.js
+++ b/packages/editor/src/store/selectors.js
@@ -1220,10 +1220,10 @@ export const isEditorPanelOpened = createRegistrySelector(
/**
* Returns the current selection start.
*
+ * @deprecated since Gutenberg 10.0.0.
+ *
* @param {Object} state
* @return {WPBlockSelection} The selection start.
- *
- * @deprecated since Gutenberg 10.0.0.
*/
export function getEditorSelectionStart( state ) {
deprecated( "select('core/editor').getEditorSelectionStart", {
@@ -1236,10 +1236,10 @@ export function getEditorSelectionStart( state ) {
/**
* Returns the current selection end.
*
+ * @deprecated since Gutenberg 10.0.0.
+ *
* @param {Object} state
* @return {WPBlockSelection} The selection end.
- *
- * @deprecated since Gutenberg 10.0.0.
*/
export function getEditorSelectionEnd( state ) {
deprecated( "select('core/editor').getEditorSelectionStart", {