Skip to content

Commit

Permalink
Unlock experimental block interface API before usage
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Jan 24, 2023
1 parent 404f5b3 commit 7ccb8f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -31,7 +32,7 @@ function selector( select ) {
__experimentalIsBlockInterfaceHidden: isBlockInterfaceHidden,
getSettings,
getLastMultiSelectedBlockClientId,
} = select( blockEditorStore );
} = unlock( select( blockEditorStore ) );

return {
editorMode: __unstableGetEditorMode(),
Expand Down
3 changes: 2 additions & 1 deletion packages/block-editor/src/hooks/dimensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -70,7 +71,7 @@ function useVisualizerMouseOver() {
const {
__experimentalHideBlockInterface: hideBlockInterface,
__experimentalShowBlockInterface: showBlockInterface,
} = useDispatch( blockEditorStore );
} = unlock( useDispatch( blockEditorStore ) );
const onMouseOver = ( e ) => {
e.stopPropagation();
hideBlockInterface();
Expand Down

0 comments on commit 7ccb8f1

Please sign in to comment.