[lexical] Chore: Add export of DOMExportOutputMap from lexical #6805
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In the current setup, the
DOMExportOutputMap
type is not exported from the Lexical core, making it challenging for developers to define custom export configurations in thehtml
property ofCreateEditorArgs
without re-creating this type from scratch. This process can lead to redundant code and a higher risk of type errors, particularly for configurations that customize DOM export logic.This PR exports
DOMExportOutputMap
directly from the Lexical core, allowing developers to use this type immediately in any html.export configurations, which:Closes #6802
Test plan
Before
Developers needed to manually define
DOMExportOutputMap
, increasing the risk of type errors and inconsistencies in custom export configurations.After
With
DOMExportOutputMap
now directly accessible from the Lexical core, developers can import and use the type immediately, resulting in cleaner and more robust custom export setups.