Framework: Extract notices state from editor module #6388
Labels
Backwards Compatibility
Issues or PRs that impact backwards compatability
[Type] Enhancement
A suggestion for improvement.
[Type] Plugin Interoperability
Incompatibilities between a specific plugin and the block editor. Close with workaround notes.
[Type] Task
Issues or PRs that have been broken down into an individual action to take
Milestone
Notices are not an editor-specific feature, yet the current notices state lives within
editor
. Before plugins start integrating more with this functionality, we should consider whether to extract it, either to its own module (like viewport), or tocomponents
, or perhaps even to a new concept of "data-bound components".See also #5316 which highlights some issues with the viewport approach of independent data modules exporting their own components, as it can result in circular dependencies between components and the individual module.
Proposal options:
notices
folder, which creates its owndata
statenotices
component tocomponents
directory, which bundles its owndata
stateOpen questions:
Do we need concepts of scoped notices? If a plugin adds a notice and intends for it to be shown in the editor, how does this scale out to a more general solution? Is this something we need to address now?
The text was updated successfully, but these errors were encountered: