-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
What problem does this address?
The editor more menu is entirely implemented in the edit-post package and not reusable across editors.
The site and widgets editors are duplicating a lot of code to implement more menus, and this seems unnecessary. Much of the options could be implemented in a more generic and reusable way.
What is your proposed solution?
Either migrate the preferences to the interface package or create a new package.
Interface seems a good fit because it already has some similar UI concepts in the sidebar and tabs that it exposes. These are configurable, so migrating the more menu would involve similar work.
The preferences for some editors have now already been migrated to interface, but the plan is to now create a new preferences package, so they'll need to be migrated again.
Update - the new preferences package has now been shipped, and the next step is to migrate the preferences in each of our editors/packages.
Status
- Add new
@wordpress/preferencespackage #38873 - Migrate standalone widgets editor to use new preferences package #39084
- Migrate customize widgets editor to use new preferences package #39112
- Migrate post editor feature preferences to use new preferences package #39115
- Migrate hidden block types (block manager data) to new preferences packages #39132
- Migrate post editor
editorModeto use preferences store and removelocalAutosaveIntervalpreference #39180 - Migrate post editor preferred style variations to preferences store #39337
- Migrate post editor
panelsstate to preferences store #39604
- Deprecate interface package's preference APIs #39418
- Migrate site editor to use new preferences package #39158
- Add reusable preferences modal to interface package. #39153
- Migrate interface
enableItemsdata to preferences package #39449 - Migrate navigation editor selected menu to preferences store #39606
- Migrate block editor insert usage to preferences store #39632
- Migrate editor package
isPublishSidebarEnabledto preferences store #39707 - Migrate NUX persisted data?
- Move the block manager to block editor package #39672
- Add new preferences persistence API, and save editor preferences in user meta #39795