diff --git a/packages/block-editor/src/components/block-tools/selected-block-popover.js b/packages/block-editor/src/components/block-tools/selected-block-popover.js index 294813b1f34a15..6572831f24c01f 100644 --- a/packages/block-editor/src/components/block-tools/selected-block-popover.js +++ b/packages/block-editor/src/components/block-tools/selected-block-popover.js @@ -21,6 +21,7 @@ import { store as blockEditorStore } from '../../store'; import BlockPopover from '../block-popover'; import useBlockToolbarPopoverProps from './use-block-toolbar-popover-props'; import Inserter from '../inserter'; +import { unlock } from '../../experiments'; function selector( select ) { const { @@ -31,7 +32,7 @@ function selector( select ) { __experimentalIsBlockInterfaceHidden: isBlockInterfaceHidden, getSettings, getLastMultiSelectedBlockClientId, - } = select( blockEditorStore ); + } = unlock( select( blockEditorStore ) ); return { editorMode: __unstableGetEditorMode(), diff --git a/packages/block-editor/src/hooks/dimensions.js b/packages/block-editor/src/hooks/dimensions.js index c3ff2a25a38c45..39567c953eefa2 100644 --- a/packages/block-editor/src/hooks/dimensions.js +++ b/packages/block-editor/src/hooks/dimensions.js @@ -59,6 +59,7 @@ import { } from './child-layout'; import useSetting from '../components/use-setting'; import { store as blockEditorStore } from '../store'; +import { unlock } from '../experiments'; export const DIMENSIONS_SUPPORT_KEY = 'dimensions'; export const SPACING_SUPPORT_KEY = 'spacing'; @@ -70,7 +71,7 @@ function useVisualizerMouseOver() { const { __experimentalHideBlockInterface: hideBlockInterface, __experimentalShowBlockInterface: showBlockInterface, - } = useDispatch( blockEditorStore ); + } = unlock( useDispatch( blockEditorStore ) ); const onMouseOver = ( e ) => { e.stopPropagation(); hideBlockInterface();