Commit 6cbbd2d
committed
feat: add jsonToHtmlAsync for async customElementTypes support
Add toRedactorAsync (exported as jsonToHtmlAsync) that supports
customElementTypes handlers returning string | Promise<string>.
Enables dynamic component resolution (e.g. await import()) before
serialization. Children are resolved via Promise.all concurrently.
The existing sync jsonToHtml is unchanged — fully backward compatible.
New types: IJsonToHtmlAsyncElementTags, IJsonToHtmlAsyncOptions.1 parent 945d23c commit 6cbbd2d
4 files changed
Lines changed: 682 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | | - | |
| 7 | + | |
0 commit comments