Hotfix: export a Backoffice version of demandCustomElement - #23624
Conversation
…atibility with UUI v.1
|
Claude finished @nielslyngsoe's task in 4m 23s —— View job PR ReviewTarget: Re-exports
Important
Suggestions
Approved with Suggestions for improvementGood to go for the backwards-compat purpose. Please carefully consider the removal version in the TODO — aligning with
|
There was a problem hiding this comment.
Pull request overview
This PR adds a Backoffice-exported demandCustomElement helper to the @umbraco-cms/backoffice/external/uui entrypoint, enabling consumers (including extensions) to import it via the Backoffice importmap while maintaining compatibility with legacy UUI 1.x custom-element usage.
Changes:
- Exported a new
demandCustomElementfunction from the Backoffice UUI external index. - Implemented a console warning when a required custom element is not registered.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|



export demandCustomElement as part of the Backoffice impartmap: '@umbraco-cms/backoffice/external/uui';
making it posible to do this:
import { demandCustomElement } from '@umbraco-cms/backoffice/external/uui';