Skip to content

feat: add radi/webcomponent adapter - #70

Merged
Marcisbee merged 4 commits into
masterfrom
kode/e3g9-S6Q-add-radiwebcomponent-import
Nov 12, 2026
Merged

Marcisbee merged 4 commits into
masterfrom
kode/e3g9-S6Q-add-radiwebcomponent-import

Conversation

@Marcisbee

@Marcisbee Marcisbee commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Adds webcomponent from radi/webcomponent to register existing Radi components as native custom elements. Typed attribute converters accept String, Number, Boolean, JSON.parse, and custom functions. Declared attributes and callbacks expose DOM properties, preserving JavaScript values and pre-registration assignments. Explicit callback mappings emit bubbling, composed CustomEvents while retaining JavaScript callbacks and return values.

Includes package exports, declarations, README usage, and the radi.js.org Web Components guide, API reference, navigation, framework examples, and generated agent-readable documentation.

Verified six direct-browser scenarios and real React 19.2.0, Vue 3.5.45, and Angular 22.2.5 integrations in Chromium: typed values, custom events, state-preserving updates, and unmount cleanup. The 315-test runtime suite, npm build, strict TypeScript consumer checks, and documentation build/browser checks passed. Current with origin/master.

Rendering uses light DOM and replaces children; consumers provide an empty host. Disconnect/reconnect resets local state. SSR/hydration, cross-document adoption, Firefox, and WebKit are unverified. This does not claim full HTML conformance; existing Radi host markup is unchanged.

@Marcisbee
Marcisbee marked this pull request as ready for review November 12, 2026 10:54
@Marcisbee
Marcisbee merged commit 3438934 into master Nov 12, 2026
5 checks passed
@Marcisbee
Marcisbee deleted the kode/e3g9-S6Q-add-radiwebcomponent-import branch November 12, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant