Skip to content

Commit

Permalink
Fix mobile tests
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 8, 2024
1 parent a55a2ae commit aeb2f34
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions packages/editor/src/private-apis.native.js
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,
} );

0 comments on commit aeb2f34

Please sign in to comment.