[FRONT COMPONENTS] Serialize events through the worker boundary (#17767)

- Introduces a SerializedEventData type that captures only serializable
properties from DOM/React events
- Updates `wrapEventHandler` in the host component registry to serialize
native events via serializeEvent() before passing them across the worker
boundary via postMessage, avoiding circular references and non-cloneable
DOM nodes
- Updates generated remote element event signatures to use
RemoteEvent<SerializedEventData> instead of bare RemoteEvent, giving
front-component authors typed access to event details
This commit is contained in:
Raphaël Bosi
2026-02-09 16:22:54 +01:00
committed by GitHub
parent c18726d712
commit c6d04ccced
7 changed files with 189 additions and 31 deletions
@@ -20,6 +20,7 @@ var TestComponent = () => {
}
);
};
var test_component_front_component_default = globalThis.jsx(TestComponent, {});
export {
test_component_front_component_default as default