Expose portable scene bindings and an explicit React Flow peer adapter
This commit is contained in:
+33
-4
@@ -12,6 +12,8 @@ Public exports:
|
||||
| `/runtime` | Project/Workspace/Host, storage and service port types, recovery, scoped loader and compute/display pools |
|
||||
| `/service` | Foundry protocol codecs and transport adapters; credentials remain in the host |
|
||||
| `/browser` | Explicit IndexedDB/Web Locks and module Worker adapters |
|
||||
| `/bindings` | Portable projection, renderer descriptors, caches, connectors and hit queries |
|
||||
| `/react-flow` | Explicit client adapter, renderer command context and framework node/edge types |
|
||||
|
||||
The portable entries have no React, Next, React Flow or other runtime package
|
||||
dependency. They use standard platform APIs such as AbortController, Blob, URL,
|
||||
@@ -30,10 +32,9 @@ TypeScript consumers without the DOM library, and exercises compiled browser ada
|
||||
and module Worker URLs in isolated Chromium. The browser checks load the emitted JS
|
||||
directly, without TypeScript stripping or a Next bundler.
|
||||
|
||||
This preview does not yet package the React renderer/bindings. Their legacy
|
||||
projection DTO types still require an explicit adapter boundary. No registry
|
||||
publication, release support promise, server deployment or full-goal completion is
|
||||
implied by this local package.
|
||||
The React adapter has an explicit entry and optional peer dependencies; portable
|
||||
consumers do not load it. No registry publication, release support promise, server
|
||||
deployment or full-goal completion is implied by this local package.
|
||||
|
||||
Experimental partial-model runtime: pass a validated prefix plus `loading` in
|
||||
`EngineOptions`. Version 1 uses recovery format 7; version 2 carries snapshot-bound direct canvas
|
||||
@@ -180,3 +181,31 @@ Undo/redo, source failure, quota retry and late chunks do not re-upload bytes or
|
||||
restore deleted incarnations. Earlier loading/recovery versions retain their old
|
||||
restrictions; future format 13 is rejected. Generation, cross-project durable depot
|
||||
sharing and broader lifecycle/acceptance work remain separate unfinished goals.
|
||||
|
||||
The package now exposes `/bindings` for pure projection, renderer descriptors,
|
||||
geometry/projection caches, hit queries, connectors and resource-view handles.
|
||||
`projectCanvas` consumes the captured Document/Registry/queries and optional gesture
|
||||
geometry. It returns view DTOs; it does not own another document, history or queue.
|
||||
Projection DTOs and compatibility card/edge hints no longer import React Flow types
|
||||
or the legacy element classes. Legacy views re-export the same shared data types.
|
||||
|
||||
`/react-flow` is the explicit client/framework entry. It exports renderer factories,
|
||||
the command context/hook, and `ReactFlowProjectionNode`/`ReactFlowProjectionEdge`
|
||||
structural adapter types. React, React DOM and React Flow are optional peers at the
|
||||
package level, required when a host opts into this entry. Core/runtime/service and
|
||||
pure bindings remain usable without them. The declared floors are React/React DOM
|
||||
19.3.0 and React Flow 12.12.1; tests use the locally installed compatible versions,
|
||||
not a claim to have tested every allowed version.
|
||||
|
||||
A host retains the immutable renderer catalog and creates view-local projection
|
||||
caches; installed components submit commands through its scoped Provider. Attaching
|
||||
or removing UI does not replace the ProjectEngine or terminate durable jobs.
|
||||
Compatibility DTOs are rendering hints, not the model schema or a migration format.
|
||||
The existing application now uses the same explicit framework entry.
|
||||
|
||||
The packed Node consumer projects and hits its custom counter using only public
|
||||
exports, with DOM globals and external runtime dependency resolution blocked. Its
|
||||
NodeNext type check excludes DOM libraries. A separate peer consumer renders a
|
||||
registered component, verifies its command context, and checks typed NodeProps and
|
||||
EdgeProps with the declared peers. Browser tests still execute the compiled ESM
|
||||
storage and Worker artifacts independently of Next.js/TypeScript stripping.
|
||||
|
||||
Reference in New Issue
Block a user