@proto.ui/module-anatomy
v0.3.0
Published
Proto UI module that provides anatomy capability for adapters.
Readme
@proto.ui/module-anatomy
Proto UI module that provides anatomy capability for adapters.
Purpose
Owns family role claims, nearest-root domains, Expose-backed part views, diagnostics and host order. It consumes static Core family declarations and depends on Expose.
The bounded catalog is M-ANATOMY-0001, with logical structure facts, private host order observation, and T-ANATOMY-0004. These entities remain draft.
claim and subscribeParts registration are setup-only. The unsubscribe function returned to an author is also setup-only. Queries are runtime reads; public PartView never exposes host targets.
An exposed method read through a PartView runs in the target part's callback scope. Its synchronous return or thrown value reaches the caller unchanged, including undefined, null, and other falsy values.
Claims and subscription declarations survive repeatable view detach/remount; host observers stop while detached. Terminal disposal removes owner claims and releases listeners. Internal domain and target ports serve downstream modules without becoming author APIs.
After updating logical ancestry, the Web Component Adapter calls the internal AnatomyPort.syncStructure() ingress. Retained membership subscriptions reconcile independently of view mounting; this does not restart detached host-order observers or add an author API or Host Capability.
On reconnect, the Web Component Adapter recomputes its inferred logical parent, including moves outside all Proto ancestors. If syncStructure() rejects a reused owner's structural admission, the Adapter restores the previously accepted logical binding and reconciles membership before propagating the original error. A failure of that restoration is reported together with the admission error. This is not a transaction for author-owned DOM moves; other Adapters' explicit logical ancestry remains unchanged.
Family derivation, non-hook requirements and ordinary author missing-query policy remain outside this slice. Anatomy does not own A11y relationship semantics, collection interaction policy or host materialization.
Package Role
Adapter-facing module package used by the Proto UI runtime and adapter layer.
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/types.tssrc/web/
Related Internal Packages
@proto.ui/core@proto.ui/module-base@proto.ui/module-expose
License
MIT
