-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a55a2ae
commit aeb2f34
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/** | ||
* WordPress dependencies | ||
*/ | ||
import * as interfaceApis from '@wordpress/interface'; | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import EditorCanvas from './components/editor-canvas'; | ||
import { ExperimentalEditorProvider } from './components/provider'; | ||
import { lock } from './lock-unlock'; | ||
import { EntitiesSavedStatesExtensible } from './components/entities-saved-states'; | ||
import useAutoSwitchEditorSidebars from './components/provider/use-auto-switch-editor-sidebars'; | ||
import useBlockEditorSettings from './components/provider/use-block-editor-settings'; | ||
import InserterSidebar from './components/inserter-sidebar'; | ||
import ListViewSidebar from './components/list-view-sidebar'; | ||
import PatternOverridesPanel from './components/pattern-overrides-panel'; | ||
import PluginPostExcerpt from './components/post-excerpt/plugin'; | ||
import PostPanelRow from './components/post-panel-row'; | ||
import PreferencesModal from './components/preferences-modal'; | ||
import PostActions from './components/post-actions'; | ||
import { usePostActions } from './components/post-actions/actions'; | ||
import PostCardPanel from './components/post-card-panel'; | ||
import PostStatus from './components/post-status'; | ||
import ToolsMoreMenuGroup from './components/more-menu/tools-more-menu-group'; | ||
import ViewMoreMenuGroup from './components/more-menu/view-more-menu-group'; | ||
import { PrivatePostExcerptPanel } from './components/post-excerpt/panel'; | ||
import SavePublishPanels from './components/save-publish-panels'; | ||
import PostContentInformation from './components/post-content-information'; | ||
import PostLastEditedPanel from './components/post-last-edited-panel'; | ||
|
||
const { store: interfaceStore, ...remainingInterfaceApis } = interfaceApis; | ||
|
||
export const privateApis = {}; | ||
lock( privateApis, { | ||
EditorCanvas, | ||
ExperimentalEditorProvider, | ||
EntitiesSavedStatesExtensible, | ||
InserterSidebar, | ||
ListViewSidebar, | ||
PatternOverridesPanel, | ||
PluginPostExcerpt, | ||
PostActions, | ||
PostPanelRow, | ||
PreferencesModal, | ||
usePostActions, | ||
PostCardPanel, | ||
PostStatus, | ||
ToolsMoreMenuGroup, | ||
ViewMoreMenuGroup, | ||
PrivatePostExcerptPanel, | ||
SavePublishPanels, | ||
PostContentInformation, | ||
PostLastEditedPanel, | ||
|
||
// This is a temporary private API while we're updating the site editor to use EditorProvider. | ||
useAutoSwitchEditorSidebars, | ||
useBlockEditorSettings, | ||
interfaceStore, | ||
...remainingInterfaceApis, | ||
} ); |