Front-end macros render UniAst content

Last modified by Marius Dumitru Florea on 2026/11/23 19:31

The render function of a front-end macro now returns UniAst nodes (Block[] or InlineContent[] from @xwiki/platform-uniast-api), and the rendering AST types of @xwiki/platform-macros-api (MacroBlock, MacroInlineContent, MacroText, ...) are removed. The UniAst gains rawHtml, macroBlockEditableArea and inlineMacroEditableArea nodes. The @xwiki/platform-macros-ast-react-jsx package is renamed @xwiki/platform-uniast-react-jsx, and its MacrosAstToReactJsxConverter class is now UniAstToReactJsxConverter, whose constructor no longer takes a RemoteURLParser. See the front-end macros API for how to migrate a macro.

Get Connected