clone

a deno framework for local-first web apps that open instantly, work offline and sync when users choose

feat/141-demo-review-fixes
lofi / package / preact / mod.ts
mod.ts 2.6K
1/**2 * Optional Preact bindings for the lofi runtime: live typed queries3 * ({@link useLiveQuery}), table mutations ({@link useTableMutations}), the4 * per-write sync lifecycle ({@link useWrite}, {@link usePendingWrites},5 * {@link useSyncStatus}), first-load progress ({@link useBootProgress}),6 * PWA install/update state ({@link usePwaState}), device capabilities7 * ({@link useDeviceCapabilities}), the schema-compatibility gate8 * ({@link useSchemaCompat}), and the storage-container fork guard9 * ({@link useStorageFork}), plus package-owned example components10 * ({@link DeviceStatus}, {@link PwaActions}, {@link RuntimeRecovery},11 * {@link TicketEnrollForm}) that application layouts may compose or replace12 * with UI built on the same public runtime APIs.13 *14 * @module15 */16export { DeviceStatus } from "./DeviceStatus.tsx";17export { Notices, type NoticesProps } from "./Notices.tsx";18export {19 type NoticeEntry,20 type NoticesSurface,21 type NoticeTone,22 useNotices,23} from "./use-notices.ts";24export { RuntimeRecovery, type RuntimeRecoveryProps } from "./RuntimeRecovery.tsx";25export {26 type LiveQuerySnapshot,27 type TableMutations,28 type TableMutationSnapshot,29 useLiveQuery,30 useTableMutations,31} from "./live-data.ts";32export type { TableRow } from "../runtime/table-store.ts";33export {34 PwaActions,35 type PwaActionsProps,36 type PwaController,37 type PwaFailureCode,38 pwaFailureMessage,39 type PwaInstallState,40 type PwaState,41 type PwaUpdateState,42 type PwaWorkerState,43 usePwaState,44} from "./PwaActions.tsx";45export { TicketEnrollForm, type TicketEnrollFormProps } from "./TicketEnrollForm.tsx";46export type { SealOutcome } from "../runtime/provision.ts";47export { usePendingWrites, useSyncStatus, useWrite, type WriteState } from "./write-hooks.ts";48export type { WriteHandle, WriteRejection, WriteStage } from "../runtime/write-handle.ts";49export type {50 PendingWritesSnapshot,51 PendingWriteSummary,52 RowSyncStatus,53} from "../runtime/write-ledger.ts";54export {55 type SchemaCompatReason,56 type SchemaCompatState,57 useSchemaCompat,58} from "./use-schema-compat.ts";59export {60 type StorageForkState,61 type StorageForkSurface,62 useStorageFork,63} from "./use-storage-fork.ts";64export type { StorageForkGuard } from "../runtime/storage-fork.ts";65export { type BootProgress, type BootProgressPhase, useBootProgress } from "./use-boot-progress.ts";66export {67 type DeviceCapabilitiesState,68 type DeviceCapabilityReport,69 useDeviceCapabilities,70} from "./use-device-capabilities.ts";71export type { Session, SessionSink } from "../runtime/session.ts";72export type {73 RuntimeStartupFailure,74 RuntimeStartupFailureCode,75} from "../runtime/startup-recovery.ts";