Skip to content

Commit

Permalink
renamings
Browse files Browse the repository at this point in the history
  • Loading branch information
ntsekouras committed Apr 29, 2024
1 parent 6cc674b commit 283d870
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions packages/edit-post/src/components/layout/index.js
Expand Up @@ -60,7 +60,7 @@ const {
ListViewSidebar,
ComplementaryArea,
FullscreenMode,
PostLayoutActionsPanel,
SavePublishPanels,
InterfaceSkeleton,
interfaceStore,
} = unlock( editorPrivateApis );
Expand Down Expand Up @@ -345,15 +345,15 @@ function Layout( { initialPost } ) {
)
}
actions={
<PostLayoutActionsPanel
<SavePublishPanels
closeEntitiesSavedStates={ closeEntitiesSavedStates }
isEntitiesSavedStatesOpen={
entitiesSavedStatesCallback
}
setEntitiesSavedStatesCallback={
setEntitiesSavedStatesCallback
}
hasActiveMetaboxes={ hasActiveMetaboxes }
forceIsDirtyPublishPanel={ hasActiveMetaboxes }
/>
}
shortcuts={ {
Expand Down
4 changes: 2 additions & 2 deletions packages/edit-site/src/components/editor/index.js
Expand Up @@ -67,7 +67,7 @@ const {
InterfaceSkeleton,
ComplementaryArea,
interfaceStore,
PostLayoutActionsPanel,
SavePublishPanels,
} = unlock( editorPrivateApis );

const { BlockKeyboardShortcuts } = unlock( blockLibraryPrivateApis );
Expand Down Expand Up @@ -279,7 +279,7 @@ export default function Editor( { isLoading, onClick } ) {
</AnimatePresence>
}
actions={
<PostLayoutActionsPanel
<SavePublishPanels
closeEntitiesSavedStates={
closeEntitiesSavedStates
}
Expand Down
Expand Up @@ -19,11 +19,11 @@ const { Fill, Slot } = createSlotFill( 'ActionsPanel' );

export const ActionsPanelFill = Fill;

export default function PostLayoutActionsPanel( {
export default function SavePublishPanels( {
setEntitiesSavedStatesCallback,
closeEntitiesSavedStates,
isEntitiesSavedStatesOpen,
hasActiveMetaboxes,
forceIsDirtyPublishPanel,
} ) {
const { closePublishSidebar, togglePublishSidebar } =
useDispatch( editorStore );
Expand All @@ -49,7 +49,7 @@ export default function PostLayoutActionsPanel( {
unmountableContent = (
<PostPublishPanel
onClose={ closePublishSidebar }
forceIsDirty={ hasActiveMetaboxes }
forceIsDirty={ forceIsDirtyPublishPanel }
PrePublishExtension={ PluginPrePublishPanel.Slot }
PostPublishExtension={ PluginPostPublishPanel.Slot }
/>
Expand Down
4 changes: 2 additions & 2 deletions packages/editor/src/private-apis.js
Expand Up @@ -31,7 +31,7 @@ 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 PostPublishButtonOrToggle from './components/post-publish-button/post-publish-button-or-toggle';
import PostLayoutActionsPanel from './components/post-layout-actions-panel';
import SavePublishPanels from './components/save-publish-panels';

const { store: interfaceStore, ...remainingInterfaceApis } = interfaceApis;

Expand Down Expand Up @@ -59,7 +59,7 @@ lock( privateApis, {
ViewMoreMenuGroup,
PrivatePostExcerptPanel,
PostPublishButtonOrToggle,
PostLayoutActionsPanel,
SavePublishPanels,

// This is a temporary private API while we're updating the site editor to use EditorProvider.
useAutoSwitchEditorSidebars,
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/style.scss
Expand Up @@ -19,7 +19,6 @@
@import "./components/post-featured-image/style.scss";
@import "./components/post-format/style.scss";
@import "./components/post-last-revision/style.scss";
@import "./components/post-layout-actions-panel/style.scss";
@import "./components/post-locked-modal/style.scss";
@import "./components/post-panel-row/style.scss";
@import "./components/post-publish-panel/style.scss";
Expand All @@ -35,6 +34,7 @@
@import "./components/post-visibility/style.scss";
@import "./components/post-trash/style.scss";
@import "./components/preview-dropdown/style.scss";
@import "./components/save-publish-panels/style.scss";
@import "./components/start-page-options/style.scss";
@import "./components/table-of-contents/style.scss";
@import "./components/template-areas/style.scss";

0 comments on commit 283d870

Please sign in to comment.