feat: add display kiosk host
This commit is contained in:
@@ -11,7 +11,8 @@ export type Awaitable<Value> = Value | PromiseLike<Value>;
|
||||
export type ModuleUiUnmount = () => Awaitable<void>;
|
||||
|
||||
/**
|
||||
* What a module's compiled `entrypoints.ui` artifact default-exports (ADR 0021, ADR 0022).
|
||||
* What either compiled browser artifact (`entrypoints.ui` or `entrypoints.display.artifact`)
|
||||
* default-exports (ADR 0021, ADR 0022, ADR 0033).
|
||||
*
|
||||
* `id` and `version` are build-artifact identity markers, mirroring `ModuleRuntimeDefinition`
|
||||
* exactly (ADR 0006): they let a host prove the UI bundle it imported was built from the module it
|
||||
@@ -115,8 +116,9 @@ export interface ModuleUiIdentity {
|
||||
* Deliberately does **not** import anything itself. Each host performs its own dynamic import — a
|
||||
* browser host from a served URL, a test host from a file URL — and passes the resulting module
|
||||
* namespace here. That keeps this package free of any loader, bundler, or URL assumption, and keeps
|
||||
* Core out of the business of evaluating browser code entirely: module discovery still only
|
||||
* resolves and validates the `entrypoints.ui` path and never executes it (ADR 0021).
|
||||
* Core out of the business of evaluating browser code entirely: module discovery only resolves
|
||||
* and validates each declared browser artifact path and never executes either role (ADR 0021,
|
||||
* ADR 0033).
|
||||
*/
|
||||
export function parseModuleUiExport(
|
||||
namespace: unknown,
|
||||
|
||||
Reference in New Issue
Block a user