-
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.
Patterns: edit source pattern in focus mode in post editor (#57036)
* Move synced patterns global editing to focus mode in editor * Add back padding to focus mode and notice to indicate global nature of changes * Update experiment wording * Move the edit mode function to the editor package * Change label on edit button * Remove `pattern-only` mode * Revert more pattern-only mode code * Another revert * Add basic routing to post editor * Add document bar and padding * Fix initialisation of post id and post type * Only show header bar and padding if edit mode is set to focused * refine check for edit mode * Remove routing * Switch to a simple postHistory array for switching back from pattern editing * move postHistory to a ref * Move history settings into hook * refine history stack slightly * Refactor `usePostHistory` to keep all history in a single array. Use useReducer. * fix edit post specific classname * Fix iframe classes * Editing in focus mode - pass onSelectPost as editor setting * Minor tidy ups * Move from onSelectPost to getPostLinkProps and add new hook in site editor instead of trying to reuse useLink * Fixes from code review * Another fix from review * Add optional state param to call to history.push * Remove code duplication in usePostLinkProps hook * make sure block editing mode set to default when going to edit original * Tidy up edit mode assignment * Don't adjust the url if moving to focused mode of entity from post * Change how updating of url is bypassed when switching to focused mode editing --------- Co-authored-by: Daniel Richards <[email protected]>
- Loading branch information
1 parent
f08b307
commit 55a170b
Showing
19 changed files
with
298 additions
and
85 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
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
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
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
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
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
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
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
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
Oops, something went wrong.