Problem
Notice rendering logic is currently duplicated across multiple editor interfaces (@wordpress/edit-post, @wordpress/edit-site, @wordpress/edit-widgets, @wordpress/boot), with components tightly coupled to the @wordpress/editor package. This creates several issues:
- Code duplication: Each editor interface reimplements similar notice rendering logic
- Maintenance overhead: Changes to notice rendering require updates in multiple places
- Tight coupling: Notice rendering components are tied to editor-specific code, making them difficult to reuse
- Inconsistency: Different editor interfaces may have slightly different implementations, leading to inconsistent behavior
Proposed Solution
Extract notice rendering components from @wordpress/editor into the @wordpress/notices package, making them reusable across all editor interfaces and other contexts.
Problem
Notice rendering logic is currently duplicated across multiple editor interfaces (
@wordpress/edit-post,@wordpress/edit-site,@wordpress/edit-widgets,@wordpress/boot), with components tightly coupled to the@wordpress/editorpackage. This creates several issues:Proposed Solution
Extract notice rendering components from
@wordpress/editorinto the@wordpress/noticespackage, making them reusable across all editor interfaces and other contexts.