Register a widget globally. The widget is resolved when a schema
field has .meta({ component: name }) and the rendered element is
an instance of the matching Custom Element tag.
tag must be a valid Custom Element name (containing a hyphen) and
SHOULD be registered via customElements.define before any
<schema-component> in the document instantiates the corresponding
field — otherwise the browser emits an unupgraded element and the
registered handler never runs.
Register a widget globally. The widget is resolved when a schema field has
.meta({ component: name })and the rendered element is an instance of the matching Custom Element tag.tagmust be a valid Custom Element name (containing a hyphen) and SHOULD be registered viacustomElements.definebefore any<schema-component>in the document instantiates the corresponding field — otherwise the browser emits an unupgraded element and the registered handler never runs.