Migrating from v1

v2 is a rewrite and does not run side by side with v1 wiring.

v1 patternv2 replacement
UI.callback string registrydirect event listeners and ui-* events
data-modal-* triggersui-modal, UI.dialog, invoker commands
delegated click setupelement methods and properties
DOM surgery and parent chainsUI.create.* or element APIs
manual toast regionUI.toast()
select data attributesui-select.options or ui-option children
details data-openreflected open property

CSS class names, tokens and visual design are unchanged by intent.