mirror of
https://github.com/nexu-io/open-design.git
synced 2026-10-27 09:51:12 +01:00
* fix(viewer): stabilize retained HTML previews
* fix(viewer): finish motion on direct slide seeks
* Revert "fix(viewer): finish motion on direct slide seeks"
This reverts commit 856eff1849.
* fix(viewer): keep direct slide seeks same-document
* test(viewer): keep remount cache assertion scoped
* fix(viewer): never mask rendered srcdoc previews
* fix(viewer): recover aborted blob previews immediately
* fix(viewer): retry aborted previews after reactivation
* fix(viewer): preserve keyboard-only deck state
110 lines
3.5 KiB
TypeScript
110 lines
3.5 KiB
TypeScript
/**
|
|
* @module host
|
|
*
|
|
* Public barrel for `@open-design/host` — the OpenDesign renderer host-bridge
|
|
* protocol. Re-exports the exact prior flat surface from the cohesive sibling
|
|
* modules: the wire protocol (constants + types), bridge detection/validation,
|
|
* adapter-result normalizers, and the renderer-facing action wrappers. This
|
|
* file contains no logic.
|
|
*/
|
|
|
|
// --- protocol: constant registries + wire types ---
|
|
export {
|
|
OPEN_DESIGN_HOST_GLOBAL,
|
|
OPEN_DESIGN_HOST_VERSION,
|
|
OPEN_DESIGN_HOST_APPEARANCE_THEMES,
|
|
OPEN_DESIGN_HOST_CLIENT_TYPES,
|
|
OPEN_DESIGN_HOST_UPDATER_ACTIONS,
|
|
OPEN_DESIGN_HOST_UPDATER_STATES,
|
|
} from "./protocol.js";
|
|
export type {
|
|
OpenDesignHostClientType,
|
|
OpenDesignHostClient,
|
|
OpenDesignHostFailure,
|
|
OpenDesignHostActionResult,
|
|
OpenDesignHostWorkspaceContext,
|
|
OpenDesignHostProjectImportInit,
|
|
OpenDesignHostProjectImportSuccess,
|
|
OpenDesignHostProjectImportResult,
|
|
OpenDesignHostProjectReplaceWorkingDirSuccess,
|
|
OpenDesignHostProjectReplaceWorkingDirResult,
|
|
OpenDesignHostPickWorkingDirSuccess,
|
|
OpenDesignHostPickWorkingDirResult,
|
|
OpenDesignHostPdfPrintOptions,
|
|
OpenDesignHostCaptureClip,
|
|
OpenDesignHostCaptureOptions,
|
|
OpenDesignHostCaptureSuccess,
|
|
OpenDesignHostCaptureResult,
|
|
OpenDesignHostPreviewNavigationFailure,
|
|
OpenDesignHostPreviewNavigationFailureListener,
|
|
OpenDesignHostAppearanceTheme,
|
|
OpenDesignHostBrowserClearDataOptions,
|
|
OpenDesignHostUpdaterAction,
|
|
OpenDesignHostUpdaterState,
|
|
OpenDesignHostUpdaterMode,
|
|
OpenDesignHostUpdaterChannel,
|
|
OpenDesignHostUpdaterActionOptions,
|
|
OpenDesignHostUpdaterCapabilitySet,
|
|
OpenDesignHostUpdaterPathSnapshot,
|
|
OpenDesignHostUpdaterChecksumSnapshot,
|
|
OpenDesignHostUpdaterArtifactSnapshot,
|
|
OpenDesignHostUpdaterProgressSnapshot,
|
|
OpenDesignHostUpdaterErrorSnapshot,
|
|
OpenDesignHostUpdaterInstallResult,
|
|
OpenDesignHostUpdaterReleaseSnapshot,
|
|
OpenDesignHostUpdaterIncomingSnapshot,
|
|
OpenDesignHostUpdaterCacheLifecycleTrigger,
|
|
OpenDesignHostUpdaterReleaseLifecycleState,
|
|
OpenDesignHostUpdaterCacheLifecycleSummary,
|
|
OpenDesignHostUpdaterCacheSnapshot,
|
|
OpenDesignHostUpdaterReinstallReason,
|
|
OpenDesignHostUpdaterReinstallSnapshot,
|
|
OpenDesignHostUpdaterStatusSnapshot,
|
|
OpenDesignHostUpdaterResult,
|
|
OpenDesignHostUpdaterStatusListener,
|
|
OpenDesignHostUpdaterMenuLabels,
|
|
OpenDesignHostUpdaterOpenDialogRequest,
|
|
OpenDesignHostUpdaterOpenDialogListener,
|
|
OpenDesignHostBridge,
|
|
OpenDesignHostGlobalScope,
|
|
} from "./protocol.js";
|
|
|
|
// --- detection: locate + validate the injected bridge ---
|
|
export {
|
|
isOpenDesignHostBridge,
|
|
getOpenDesignHost,
|
|
isOpenDesignHostAvailable,
|
|
detectOpenDesignHostClientType,
|
|
} from "./detection.js";
|
|
|
|
// --- normalize: adapter result -> renderer contract ---
|
|
export {
|
|
normalizeOpenDesignHostProjectImportResult,
|
|
normalizeOpenDesignHostProjectReplaceWorkingDirResult,
|
|
normalizeOpenDesignHostPickWorkingDirResult,
|
|
} from "./normalize.js";
|
|
|
|
// --- actions: renderer-facing host action wrappers ---
|
|
export {
|
|
openHostExternalUrl,
|
|
openHostProjectPath,
|
|
clearHostBrowserData,
|
|
captureHostPage,
|
|
pickAndImportHostProject,
|
|
pickAndReplaceHostProjectWorkingDir,
|
|
pickHostWorkingDir,
|
|
printHostPdf,
|
|
setHostPetVisible,
|
|
getHostUpdaterStatus,
|
|
checkHostUpdater,
|
|
clearHostUpdaterCache,
|
|
downloadHostUpdater,
|
|
installHostUpdater,
|
|
quitHostAfterUpdaterInstallerOpen,
|
|
getLatestHostPreviewNavigationFailure,
|
|
subscribeHostUpdater,
|
|
subscribeHostUpdaterOpenDialog,
|
|
subscribeHostPreviewNavigationFailure,
|
|
setHostUpdaterMenuLabels,
|
|
} from "./actions.js";
|