@elftia/canvas-react
v0.2.0
Published
React synchronization and presentation primitives for @elftia/canvas-core.
Readme
@elftia/canvas-react
React resources and presentation for the host-neutral canvas model in
@elftia/canvas-core.
Consume the package through its root only. createCanvasReactRuntime binds a
CanvasRegistrationReader, CanvasArtifactSummaryReader, the registration
kind set, a narrow artifact presentation capability, and an asset URL
resolver. A narrow render-time useTranslate adapter keeps installed surface
chrome on the host's current locale without importing host locale state. The
factory returns a bound CanvasArtifactCard plus a host-installable
registered-media surface definition. The package never owns a host registry,
surface owner identity, IPC transport, database model, or React Context.
useCanvasRegistration and useCanvasArtifactSummary share resource entries
by reader identity and canonical artifact ref. This lets a card and its body
surface share one upstream subscription and in-flight read while keeping
missing registrations distinct from transport failures.
