Skip to content

P2: Remove UI component module-level self-registration #317

Description

@SisyphusZheng

What to build

packages/ui/src/open-*.tsx files call customElements.define at module load. This complicates SSR, tests, and tree-shaking. Export classes without registering and provide an explicit registerOpenUi() function.

Acceptance criteria

  • No UI module registers itself at import time.
  • registerOpenUi() is exported from @openelement/ui.
  • www and tests updated to call registration.

Blocked by

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions