Skip to content

Commit

Permalink
Fix mistake around unlocking PrivateBlockToolbar within same package
Browse files Browse the repository at this point in the history
  • Loading branch information
jeryj committed Dec 7, 2023
1 parent 2653fb5 commit cb1eae3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ import { useShortcut } from '@wordpress/keyboard-shortcuts';
/**
* Internal dependencies
*/
import { unlock } from '../../lock-unlock';
import BlockPopover from '../block-popover';
import useBlockToolbarPopoverProps from './use-block-toolbar-popover-props';
import useSelectedBlockToolProps from './use-selected-block-tool-props';
import { store as blockEditorStore } from '../../store';
import { privateApis as blockEditorPrivateApis } from '../../private-apis';

const { PrivateBlockToolbar } = unlock( blockEditorPrivateApis );
import { PrivateBlockToolbar } from '../block-toolbar';

export default function BlockToolbarPopover( {
clientId,
Expand Down
2 changes: 0 additions & 2 deletions packages/block-editor/src/private-apis.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { getRichTextValues } from './components/rich-text/get-rich-text-values';
import { kebabCase } from './utils/object';
import ResizableBoxPopover from './components/resizable-box-popover';
import { ComposedPrivateInserter as PrivateInserter } from './components/inserter';
import { PrivateBlockToolbar } from './components/block-toolbar';
import { PrivateListView } from './components/list-view';
import BlockInfo from './components/block-info-slot-fill';
import { useShouldContextualToolbarShow } from './utils/use-should-contextual-toolbar-show';
Expand Down Expand Up @@ -38,7 +37,6 @@ lock( privateApis, {
getDuotoneFilter,
getRichTextValues,
kebabCase,
PrivateBlockToolbar,
PrivateInserter,
PrivateListView,
ResizableBoxPopover,
Expand Down

0 comments on commit cb1eae3

Please sign in to comment.