@proto.ui/module-event
v0.3.0
Published
Proto UI module that provides event capability for adapters.
Readme
@proto.ui/module-event
Proto UI module for setup-time Event registration, runtime dispatch planning, scoped binding lifetime, and precise listener removal.
Purpose
The standard runtime projects the author facade as def.event.on, def.event.onGlobal, and token-based def.event.off. Runtime, modules, and privileged hooks consume a separate port for internal listeners, binding, root redirection, default-action requests, and diagnostics.
Adapters provide the host interaction capabilities needed by the registrations a prototype actually declares. With no registrations, Event binding is a no-op and no root or global target is required.
Package Role
Runtime module package with distinct author-facade, privileged-port, and host-capability boundaries. Concrete native event routing remains adapter-owned; the portable contract does not require prototype authors to access DOM EventTarget, window, or native event objects.
Expose Event is implemented by the standalone @proto.ui/module-expose-event package. This package retains deprecated source re-exports of ExposeEventFacade, EXPOSE_EVENT_SINK_CAP, and EVENT_EMIT_CAP for migration, but EventFacade contains only the Event channel surface. Adapter sinks must be wired to expose-event; attaching the sink to event fails with a migration diagnostic.
The machine-governed semantic entity realized by this package is spec/modules/M-EVENT-0001.yaml.
Install
Unpublished release preparation:
0.3.0has not been published. The command below is an example for use after publication; it is not currently an installable version.
npm install @proto.ui/[email protected]Internal Structure
src/caps.tssrc/create.tssrc/error.tssrc/impl.tssrc/index.tssrc/kernel.tssrc/types.ts
Related Internal Packages
@proto.ui/core@proto.ui/module-base@proto.ui/module-expose-event@proto.ui/types
License
MIT
