@spooky-sync/client-solid 0.0.1-canary.98 → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import { AuthService, BucketHandle, CrdtField, FeatureFlagOptions, RunOptions, Sp00kyClient, Sp00kyConfig, Sp00kyQueryResultPromise, SyncHealth, SyncHealth as SyncHealth$1, SyncHealthConfig, SyncHealthStatus, SyncHealthStatus as SyncHealthStatus$1, UpdateOptions } from "@spooky-sync/core";
1
+ import { AppReleaseOptions, AuthService, BucketHandle, BucketPutOptions, BucketPutResult, ChannelOp, ChannelQuery, ChannelState, ChannelStatus, ChannelStatus as ChannelStatus$1, ChannelsConfig, ConnectionState, ConnectionState as ConnectionState$1, CrdtField, FeatureFlagOptions, ImpersonationInfo, PreloadOptions, PreloadOptions as PreloadOptions$1, PreloadRefresh, PushDeviceKind, PushNotification, PushPayload, ReconnectConfig, RunOptions, Sp00kyChannel, Sp00kyChannel as Sp00kyChannel$1, Sp00kyClient, Sp00kyConfig, Sp00kyQueryResultPromise, StorageHealth, StorageHealth as StorageHealth$1, StorageHealthStatus, StorageHealthStatus as StorageHealthStatus$1, SyncHealth, SyncHealth as SyncHealth$1, SyncHealthConfig, SyncHealthStatus, SyncHealthStatus as SyncHealthStatus$1, UpdateOptions, WebPushClientMessage, WebPushConfig, WebPushDevice, WebPushError, WebPushErrorCode, WebPushInfo, WebPushMessage, WebPushMessageInput, WebPushModule, WebPushModule as WebPushModule$1, WebPushSubscribeOptions, WebPushSupport, WebPushSyncOptions, WebPushSyncStatus, WebPushUnsubscribeOptions, WebPushUnsupportedReason, WebPushUpdateOptions } from "@spooky-sync/core";
2
2
  import { RecordId, RecordId as RecordId$1, Surreal, Uuid } from "surrealdb";
3
3
  import { Accessor, JSX } from "solid-js";
4
4
  import { GenericModel, GenericSchema, SchemaStructure } from "@spooky/query-builder";
5
- import { BackendNames, BackendRoutes, BucketDefinitionSchema, BucketNames, ColumnSchema, FinalQuery, GetCardinality, GetRelationship, GetTable, GetTable as GetTable$1, InferRelatedModelFromMetadata, InnerQuery, QueryBuilder, QueryInfo, QueryModifier, QueryModifierBuilder, QueryResult, QueryResult as QueryResult$1, RelatedFieldMapEntry, RelatedFieldsMap, RelationshipDefinition, RelationshipFieldsFromSchema, RelationshipsMetadata, RoutePayload, SchemaStructure as SchemaStructure$1, TableModel, TableModel as TableModel$1, TableNames, TableNames as TableNames$1 } from "@spooky-sync/query-builder";
5
+ import { BackendNames, BackendRoutes, BucketDefinitionSchema, BucketNames, ChannelPeer, ChannelTableNames, ColumnSchema, FinalQuery, GetCardinality, GetRelationship, GetTable, GetTable as GetTable$1, InferRelatedModelFromMetadata, InnerQuery, QueryBuilder, QueryInfo, QueryModifier, QueryModifierBuilder, QueryResult, QueryResult as QueryResult$1, RelatedFieldMapEntry, RelatedFieldsMap, RelationshipDefinition, RelationshipFieldsFromSchema, RelationshipsMetadata, RoutePayload, SchemaStructure as SchemaStructure$1, TableModel, TableModel as TableModel$1, TableNames, TableNames as TableNames$1 } from "@spooky-sync/query-builder";
6
6
 
7
7
  //#region src/lib/models.d.ts
8
8
  type Model<T> = T;
@@ -61,6 +61,7 @@ declare function useQuery<S extends SchemaStructure$1, TableName extends TableNa
61
61
  error: () => Error | undefined;
62
62
  isLoading: () => boolean;
63
63
  isFetching: () => boolean;
64
+ isSettled: () => boolean;
64
65
  };
65
66
  declare function useQuery<S extends SchemaStructure$1, TableName extends TableNames$1<S>, T extends {
66
67
  columns: Record<string, ColumnSchema>;
@@ -69,8 +70,24 @@ declare function useQuery<S extends SchemaStructure$1, TableName extends TableNa
69
70
  error: () => Error | undefined;
70
71
  isLoading: () => boolean;
71
72
  isFetching: () => boolean;
73
+ isSettled: () => boolean;
72
74
  };
73
75
  //#endregion
76
+ //#region src/lib/create-preload.d.ts
77
+ type PreloadArg<S extends SchemaStructure$1, TableName extends TableNames$1<S>, T extends {
78
+ columns: Record<string, ColumnSchema>;
79
+ }, RelatedFields extends Record<string, any>, IsOne extends boolean> = FinalQuery<S, TableName, T, RelatedFields, IsOne, Sp00kyQueryResultPromise> | (() => FinalQuery<S, TableName, T, RelatedFields, IsOne, Sp00kyQueryResultPromise> | null | undefined);
80
+ type PreloadOptions$2 = PreloadOptions$1 & {
81
+ /** Only preload while this returns true (defaults to always). */
82
+ enabled?: () => boolean;
83
+ };
84
+ declare function createPreload<S extends SchemaStructure$1, TableName extends TableNames$1<S>, T extends {
85
+ columns: Record<string, ColumnSchema>;
86
+ }, RelatedFields extends Record<string, any>, IsOne extends boolean>(finalQuery: PreloadArg<S, TableName, T, RelatedFields, IsOne>, options?: PreloadOptions$2): void;
87
+ declare function createPreload<S extends SchemaStructure$1, TableName extends TableNames$1<S>, T extends {
88
+ columns: Record<string, ColumnSchema>;
89
+ }, RelatedFields extends Record<string, any>, IsOne extends boolean>(db: SyncedDb<S>, finalQuery: PreloadArg<S, TableName, T, RelatedFields, IsOne>, options?: PreloadOptions$2): void;
90
+ //#endregion
74
91
  //#region src/lib/use-sync-status.d.ts
75
92
  interface UseSyncStatus {
76
93
  /** Full health snapshot; updates reactively on every transition. */
@@ -80,6 +97,27 @@ interface UseSyncStatus {
80
97
  isHealthy: Accessor<boolean>;
81
98
  /** `true` once sync has failed for a sustained run — drive a banner off this. */
82
99
  isDegraded: Accessor<boolean>;
100
+ /** `true` once at least one sync round has succeeded this session. */
101
+ everConnected: Accessor<boolean>;
102
+ /**
103
+ * `true` only for a real lost connection: degraded AFTER a first successful
104
+ * sync. Stays `false` during the initial "connecting" phase (degraded but
105
+ * never reached the server yet), so an indicator can show nothing until the
106
+ * app has actually connected once.
107
+ */
108
+ isOffline: Accessor<boolean>;
109
+ /**
110
+ * Transport state of the remote WebSocket. Flips the instant the socket
111
+ * drops, unlike `status`, which only degrades after a sustained run of failed
112
+ * sync rounds — so this is what to drive a "reconnecting…" affordance off.
113
+ */
114
+ connection: Accessor<ConnectionState$1>;
115
+ /**
116
+ * `true` while the connection is being re-established. Usually still
117
+ * `isHealthy()`: a short reconnect is invisible to sync, and writes made
118
+ * during it are queued locally and pushed once the socket is back.
119
+ */
120
+ isReconnecting: Accessor<boolean>;
83
121
  }
84
122
  /**
85
123
  * Observe sync health for a "can't reach the server" banner / indicator.
@@ -94,10 +132,110 @@ interface UseSyncStatus {
94
132
  declare function useSyncStatus(): UseSyncStatus;
95
133
  //# sourceMappingURL=use-sync-status.d.ts.map
96
134
  //#endregion
135
+ //#region src/lib/use-impersonation.d.ts
136
+ interface UseImpersonationOptions {
137
+ /**
138
+ * This component renders the app's own impersonation banner. Required with
139
+ * `impersonationBanner: { mode: 'custom' }`: it acknowledges the banner, so
140
+ * the client does not fall back to its built-in one.
141
+ */
142
+ rendersBanner?: boolean;
143
+ }
144
+ interface UseImpersonation {
145
+ /** The active impersonation, or `null`. */
146
+ impersonation: Accessor<ImpersonationInfo | null>;
147
+ isImpersonating: Accessor<boolean>;
148
+ /** Return to the admin session. */
149
+ stop: () => Promise<void>;
150
+ }
151
+ /**
152
+ * Observe admin impersonation (started from the DevTools). The client already
153
+ * shows its own warning bar with a Stop button; use this for anything extra,
154
+ * such as hiding actions an admin should not take on someone's behalf.
155
+ * Must be used within a `<Sp00kyProvider>`.
156
+ */
157
+ declare function useImpersonation(options?: UseImpersonationOptions): UseImpersonation;
158
+ //# sourceMappingURL=use-impersonation.d.ts.map
159
+ //#endregion
160
+ //#region src/lib/use-storage-status.d.ts
161
+ interface UseStorageStatus {
162
+ /** Full durability snapshot; updates reactively. */
163
+ health: Accessor<StorageHealth$1>;
164
+ /** `'unknown'` | `'persistent'` | `'memory'`. */
165
+ status: Accessor<StorageHealthStatus$1>;
166
+ /** `true` when the local store survives a reload. */
167
+ isPersistent: Accessor<boolean>;
168
+ /**
169
+ * `true` only when durable storage was requested and could NOT be opened, so
170
+ * the dataset is sitting in RAM and local writes die on reload. Drive a
171
+ * warning off this, not off `status`: a store configured as in-memory reports
172
+ * `'memory'` too, and that is a choice rather than a problem.
173
+ */
174
+ isMemoryFallback: Accessor<boolean>;
175
+ }
176
+ /**
177
+ * Observe how durable the LOCAL cache is, for a "no local storage" warning.
178
+ *
179
+ * Under `localEngine: 'sqlite'` with `store: 'indexeddb'` the durable store is
180
+ * the OPFS SAHPool VFS, and only ONE client per bucket can hold it open: a
181
+ * second tab of the same app cannot get it and runs in memory instead (the
182
+ * engine retries first, so a closing tab's lock is usually waited out). Must be
183
+ * used within a `<Sp00kyProvider>`.
184
+ */
185
+ declare function useStorageStatus(): UseStorageStatus;
186
+ //# sourceMappingURL=use-storage-status.d.ts.map
187
+ //#endregion
97
188
  //#region src/lib/use-crdt-field.d.ts
98
- declare function useCrdtField(table: string, recordId: () => string | undefined, field: string, fallbackText?: () => string | undefined): Accessor<CrdtField | null>;
189
+ /**
190
+ * Open a `@crdt` field of the record `recordId()` names, for an editor to bind
191
+ * to (`field()?.getDoc()`). Re-opens when the id changes; closes on cleanup.
192
+ *
193
+ * The accessor stays `null` until the field is loaded (`CrdtField.isLoaded`):
194
+ * this device had the document, or the server answered. Until then the
195
+ * document may be empty only because nothing has arrived yet, so show the
196
+ * column's text instead of binding an editor to it.
197
+ */
198
+ declare function useCrdtField(table: string, recordId: () => string | undefined, field: string): Accessor<CrdtField | null>;
99
199
  //# sourceMappingURL=use-crdt-field.d.ts.map
100
200
  //#endregion
201
+ //#region src/lib/use-channel.d.ts
202
+ /** Who a channel connects to: a list, or an accessor of one (re-read when it changes). */
203
+ type ChannelPeers = Iterable<ChannelPeer> | (() => Iterable<ChannelPeer> | null | undefined);
204
+ /** What a channel carries: the rows a query (or several) matches. */
205
+ type ChannelQueries<S extends SchemaStructure$1, T extends ChannelTableNames<S>> = ChannelQuery<S, T> | ReadonlyArray<ChannelQuery<S, T>>;
206
+ /** An open channel, for as long as the component lives. */
207
+ interface UseChannel<S extends SchemaStructure$1, T extends string> {
208
+ /** `idle` | `connecting` | `connected` | `failed` | `unsupported`. */
209
+ status: () => ChannelStatus$1;
210
+ /** Users with a tab connected. */
211
+ peers: () => ReadonlyArray<string>;
212
+ /** Writes that go to THIS channel's peers only (when the row matches its query), plus the database as always. */
213
+ update: Sp00kyChannel$1<S, T>['update'];
214
+ create: Sp00kyChannel$1<S, T>['create'];
215
+ delete: Sp00kyChannel$1<S, T>['delete'];
216
+ }
217
+ /**
218
+ * Open a peer to peer channel to `peers` for the rows `query` matches, for
219
+ * the lifetime of the component. The query must be on a `-- @channel` table
220
+ * and only its `where` counts; it is checked against each row, never
221
+ * registered. Writes to matching rows (`db.update` / `db.create` /
222
+ * `db.delete`, or the channel's own) reach the peers over WebRTC in tens of
223
+ * ms; `-- @ephemeral` fields travel only this way. A connection forms when
224
+ * both sides list each other; your own id is skipped.
225
+ *
226
+ * ```ts
227
+ * const ch = useChannel(
228
+ * () => db.query('message').where({ conversation: convoId() }),
229
+ * () => [me(), other()]
230
+ * );
231
+ * ```
232
+ *
233
+ * `query` may be an accessor (re-read when it changes; `null` closes the
234
+ * channel until it returns a query again) or a list of queries.
235
+ */
236
+ declare function useChannel<S extends SchemaStructure$1, T extends ChannelTableNames<S>>(query: ChannelQueries<S, T> | (() => ChannelQueries<S, T> | null | undefined), peers: ChannelPeers): UseChannel<S, T>;
237
+ //# sourceMappingURL=use-channel.d.ts.map
238
+ //#endregion
101
239
  //#region src/lib/use-feature-flag.d.ts
102
240
  interface UseFeatureFlag {
103
241
  variant: Accessor<string | undefined>;
@@ -118,12 +256,56 @@ interface UseFeatureFlag {
118
256
  declare function useFeatureFlag(key: string, options?: FeatureFlagOptions): UseFeatureFlag;
119
257
  //# sourceMappingURL=use-feature-flag.d.ts.map
120
258
  //#endregion
259
+ //#region src/lib/use-app-release.d.ts
260
+ interface UseAppReleaseOptions extends AppReleaseOptions {
261
+ /** App name from sp00ky.yml, e.g. `web`. */
262
+ app: string;
263
+ /**
264
+ * The running build's version (X.Y.Z), typically baked in at build time
265
+ * (e.g. a vite `define` from package.json). `updateAvailable()` is true when
266
+ * the announced release is semver-newer than this.
267
+ */
268
+ currentVersion: string;
269
+ }
270
+ interface UseAppRelease {
271
+ /** Latest announced version for the app, or undefined when no row exists. */
272
+ latestVersion: Accessor<string | undefined>;
273
+ /** Announced version is semver-newer than the running build. */
274
+ updateAvailable: Accessor<boolean>;
275
+ /** The newer release asks clients to update/reload without prompting. */
276
+ mandatory: Accessor<boolean>;
277
+ /** The newer release asks reloads to clear service-worker caches first. */
278
+ cacheBust: Accessor<boolean>;
279
+ /**
280
+ * Reload onto the announced release. Plain `location.reload()` normally;
281
+ * when the release is flagged cache-bust, CacheStorage is cleared, the
282
+ * service-worker registration is nudged to update, and navigation carries a
283
+ * `?cb=` token to punch through intermediary caches. The service worker is
284
+ * deliberately NOT unregistered: navigating while still controlled by a
285
+ * just-unregistered worker strands subresource fetches on the dead worker
286
+ * and the page hangs until a manual reload.
287
+ */
288
+ reload: () => Promise<void>;
289
+ }
290
+ /**
291
+ * Observe the app's announced release (`_00_app_release:<app>`, written by
292
+ * `spky deploy` / `spky release`) and compare it against the running build.
293
+ *
294
+ * Typical use: mount a small "new version available — Reload" notification
295
+ * gated on `updateAvailable()`, auto-invoking `reload()` when `mandatory()`
296
+ * (guard the auto path against reload loops with a per-version marker, since
297
+ * a client can reload while the deploy is still rolling out and land on the
298
+ * old bundle again).
299
+ */
300
+ declare function useAppRelease(options: UseAppReleaseOptions): UseAppRelease;
301
+ //# sourceMappingURL=use-app-release.d.ts.map
302
+ //#endregion
121
303
  //#region src/lib/use-file-upload.d.ts
122
304
  interface FileUploadResult {
123
305
  isUploading: () => boolean;
124
306
  error: () => Error | null;
125
307
  clearError: () => void;
126
- upload: (path: string, file: File | Blob) => Promise<void>;
308
+ upload: (path: string, file: File | Blob, options?: BucketPutOptions) => Promise<BucketPutResult | void>;
127
309
  download: (path: string) => Promise<string | null>;
128
310
  remove: (path: string) => Promise<void>;
129
311
  exists: (path: string) => Promise<boolean>;
@@ -134,7 +316,27 @@ declare function useFileUpload<S extends SchemaStructure$1>(db: SyncedDb<S>, buc
134
316
  //#endregion
135
317
  //#region src/lib/use-download-file.d.ts
136
318
  interface UseDownloadFileOptions {
319
+ /**
320
+ * Master switch, default `true`. `false` gives every hook instance its own
321
+ * private object URL fetched fresh from the bucket and revoked on unmount —
322
+ * no sharing, no persistence, no reuse.
323
+ */
137
324
  cache?: boolean;
325
+ /**
326
+ * Keep the bytes in OPFS so they survive a reload and are available offline.
327
+ * Default `true`. Turn off for one-shot or sensitive files; the in-tab object
328
+ * URL is still shared between components rendering the same path.
329
+ */
330
+ persist?: boolean;
331
+ /** Exempt this file from pressure eviction. Pinned bytes never expire. */
332
+ pin?: boolean;
333
+ /**
334
+ * `'never'` (default) treats a bucket path as immutable, which is how paths
335
+ * are written (`crypto.randomUUID() + ext`). `'head'` spends a remote `head()`
336
+ * to compare sizes before trusting the cached copy — for paths the app
337
+ * overwrites in place.
338
+ */
339
+ revalidate?: 'never' | 'head';
138
340
  }
139
341
  interface UseDownloadFileResult {
140
342
  url: Accessor<string | null>;
@@ -146,12 +348,134 @@ declare function useDownloadFile<S extends SchemaStructure$1>(bucketName: Bucket
146
348
  declare function useDownloadFile<S extends SchemaStructure$1>(db: SyncedDb<S>, bucketName: BucketNames<S>, path: Accessor<string | null | undefined>, options?: UseDownloadFileOptions): UseDownloadFileResult;
147
349
  //# sourceMappingURL=use-download-file.d.ts.map
148
350
  //#endregion
351
+ //#region src/lib/use-blurhash.d.ts
352
+ interface UseBlurhashResult {
353
+ /** The stored blurhash for the path, or null while loading / when none exists. */
354
+ hash: Accessor<string | null>;
355
+ isLoading: Accessor<boolean>;
356
+ }
357
+ /**
358
+ * The blurhash sidecar for a bucket image (written automatically by
359
+ * `bucket.put`, see `Sp00kyConfig.blurhash`). Resolves from OPFS instantly on
360
+ * warm clients; a miss is remembered per tab. Use this directly when the hash
361
+ * belongs to a different rendition than the displayed image; otherwise
362
+ * `useBucketImage` / `BucketImage` bundle it with the download.
363
+ */
364
+ declare function useBlurhash<S extends SchemaStructure$1>(bucketName: BucketNames<S>, path: Accessor<string | null | undefined>): UseBlurhashResult;
365
+ declare function useBlurhash<S extends SchemaStructure$1>(db: SyncedDb<S>, bucketName: BucketNames<S>, path: Accessor<string | null | undefined>): UseBlurhashResult;
366
+ //# sourceMappingURL=use-blurhash.d.ts.map
367
+ //#endregion
368
+ //#region src/lib/use-bucket-image.d.ts
369
+ interface UseBucketImageOptions extends UseDownloadFileOptions {
370
+ /**
371
+ * Also resolve the image's blurhash sidecar (see `Sp00kyConfig.blurhash`).
372
+ * Default `true`; the read is registered before the image bytes so the tiny
373
+ * sidecar tends to land first on the serialized remote chain.
374
+ */
375
+ blurhash?: boolean;
376
+ }
377
+ interface UseBucketImageResult extends UseDownloadFileResult {
378
+ /** Blurhash for the same path, or null (off, missing, still loading). */
379
+ blurhash: Accessor<string | null>;
380
+ /** True once the current `url()` has been decoded and is safe to paint. */
381
+ ready: Accessor<boolean>;
382
+ /**
383
+ * Ref callback for the `<img>` rendering `url()`: flips `ready` when the
384
+ * bitmap is decoded (resolves on failure too, so a broken blob degrades to
385
+ * paint-on-load instead of hiding the image forever). Re-arms itself when
386
+ * the url changes.
387
+ */
388
+ gate: (img: HTMLImageElement) => void;
389
+ }
390
+ /**
391
+ * Everything needed to render a bucket image without a pop-in: the refcounted
392
+ * object URL, the blurhash placeholder, and a decode gate so the real bitmap
393
+ * is only revealed once it can paint in full. `BucketImage` wraps this into a
394
+ * drop-in component; use the hook for custom markup.
395
+ */
396
+ declare function useBucketImage<S extends SchemaStructure$1>(bucketName: BucketNames<S>, path: Accessor<string | null | undefined>, options?: UseBucketImageOptions): UseBucketImageResult;
397
+ declare function useBucketImage<S extends SchemaStructure$1>(db: SyncedDb<S>, bucketName: BucketNames<S>, path: Accessor<string | null | undefined>, options?: UseBucketImageOptions): UseBucketImageResult;
398
+ //# sourceMappingURL=use-bucket-image.d.ts.map
399
+ //#endregion
400
+ //#region src/lib/Blurhash.d.ts
401
+ interface BlurhashProps {
402
+ /** The blurhash string. Nullish paints nothing (transparent canvas). */
403
+ hash: string | null | undefined;
404
+ /** Decode resolution. 32x32 is plenty: blurhash carries at most 9x9 DCT
405
+ * components, the canvas is meant to be CSS-scaled to fill. */
406
+ width?: number;
407
+ height?: number;
408
+ /** Contrast punch, see the blurhash reference decoder. Defaults to 1. */
409
+ punch?: number;
410
+ class?: string;
411
+ style?: string;
412
+ }
413
+ /**
414
+ * A blurhash painted onto a canvas, once per hash change. Size the canvas via
415
+ * `class`/`style` (e.g. `absolute inset-0 w-full h-full`); the internal decode
416
+ * resolution stays tiny regardless of the displayed size.
417
+ */
418
+ declare function Blurhash(props: BlurhashProps): JSX.Element;
419
+ //# sourceMappingURL=Blurhash.d.ts.map
420
+ //#endregion
421
+ //#region src/lib/BucketImage.d.ts
422
+ interface BucketImageProps {
423
+ /** Bucket name from the schema. */
424
+ bucket: string;
425
+ /** Path within the bucket. Nullish renders only the fallback layers. */
426
+ path: string | null | undefined;
427
+ alt?: string;
428
+ /** Classes for the container element (sizing/positioning). */
429
+ class?: string;
430
+ /** Classes for the inner `<img>` (the layout styles are inline). */
431
+ imgClass?: string;
432
+ /** `object-fit` for the image. Defaults to `cover`. */
433
+ fit?: 'cover' | 'contain' | 'fill' | 'none' | 'scale-down';
434
+ /**
435
+ * Bottom placeholder layer (your own plate/skeleton), shown until the image
436
+ * settles. The blurhash layer paints on top of it once the sidecar resolves.
437
+ */
438
+ fallback?: JSX.Element;
439
+ /** Crossfade duration in ms. Defaults to 300. */
440
+ transition?: number;
441
+ /** Crossfade easing. Defaults to an ease-out-expo curve. */
442
+ easing?: string;
443
+ /** Resolve the blurhash sidecar. Defaults to true. */
444
+ blurhash?: boolean;
445
+ /** Download tuning, forwarded to the underlying `useDownloadFile`. */
446
+ options?: UseBucketImageOptions;
447
+ }
448
+ /**
449
+ * A bucket image that never pops in: it layers (bottom to top) your `fallback`
450
+ * plate, the automatically stored blurhash, and the real image, which stays
451
+ * transparent until the bitmap is DECODED and then crossfades over the
452
+ * placeholders. Placeholder layers unmount once the fade settles. Respects
453
+ * prefers-reduced-motion (instant swap). The container is made
454
+ * `position: relative` unless your `class` positions it already.
455
+ *
456
+ * ```tsx
457
+ * <BucketImage bucket="covers" path={row.cover_key} class="absolute inset-0"
458
+ * fallback={<MyPlate />} alt="" />
459
+ * ```
460
+ */
461
+ declare function BucketImage(props: BucketImageProps): JSX.Element;
462
+ //# sourceMappingURL=BucketImage.d.ts.map
463
+ //#endregion
149
464
  //#region src/lib/Sp00kyProvider.d.ts
150
465
  interface Sp00kyProviderProps<S extends SchemaStructure> {
151
466
  config: SyncedDbConfig<S>;
152
467
  fallback?: JSX.Element;
153
468
  onError?: (error: Error) => void;
154
469
  onReady?: (db: SyncedDb<S>) => void;
470
+ /**
471
+ * Prewarm data into the local cache before revealing the UI. Runs after
472
+ * `init()`; the `fallback` stays visible until it resolves. Use awaitable
473
+ * `db.preload(...)` calls here to gate first-load on essential data (e.g.
474
+ * config). On warm loads preload returns instantly, so there's no perceptible
475
+ * gate after the first run. Best-effort: a rejection is caught and the UI is
476
+ * revealed anyway.
477
+ */
478
+ preload?: (db: SyncedDb<S>) => Promise<void>;
155
479
  children: JSX.Element;
156
480
  }
157
481
  declare function Sp00kyProvider<S extends SchemaStructure>(props: Sp00kyProviderProps<S>): JSX.Element;
@@ -192,6 +516,13 @@ declare class SyncedDb<S extends SchemaStructure$1> {
192
516
  * Initialize the sp00ky-ts instance
193
517
  */
194
518
  init(): Promise<void>;
519
+ /**
520
+ * Tear down the client: leaves the tabs broker, closes the local store and
521
+ * remote socket, and frees the wasm circuit. Without this a remounted provider
522
+ * (or an HMR reload) strands a whole client, and the abandoned wasm heaps stay
523
+ * resident because V8 cannot see how much wasm memory a dropped wrapper holds.
524
+ */
525
+ close(): Promise<void>;
195
526
  /**
196
527
  * Create a new record in the database
197
528
  */
@@ -204,10 +535,22 @@ declare class SyncedDb<S extends SchemaStructure$1> {
204
535
  * Delete an existing record in the database
205
536
  */
206
537
  delete<TName extends TableNames<S>>(tableName: TName, selector: string | RecordId | InnerQuery<GetTable<S, TName>, boolean>): Promise<void>;
538
+ /**
539
+ * Preload/prewarm a built query into the local cache without registering a
540
+ * live view. Fetches once and stores the rows (+ embedded related children)
541
+ * locally so a later `useQuery` for the same data paints instantly. Best-effort.
542
+ */
543
+ preload(finalQuery: FinalQuery<S, any, any, any, any, Sp00kyQueryResultPromise>, options?: PreloadOptions$1): Promise<void>;
207
544
  /**
208
545
  * Query data from the database
209
546
  */
210
547
  query<TName extends TableNames<S>>(table: TName): QueryBuilder<S, TName, Sp00kyQueryResultPromise, {}, false>;
548
+ /**
549
+ * Open a peer to peer channel to `peers` for the rows `query` matches (a
550
+ * query on a `-- @channel` table; only its `where` counts). Prefer the
551
+ * `useChannel` hook, which closes it with the component.
552
+ */
553
+ channel<T extends ChannelTableNames<S>>(query: ChannelQuery<S, T> | ReadonlyArray<ChannelQuery<S, T>>, peers: Iterable<ChannelPeer>): Sp00kyChannel$1<S, T>;
211
554
  /**
212
555
  * Run a backend operation
213
556
  */
@@ -221,6 +564,12 @@ declare class SyncedDb<S extends SchemaStructure$1> {
221
564
  * @deprecated Use signOut() instead
222
565
  */
223
566
  deauthenticate(): Promise<void>;
567
+ /**
568
+ * Tell the client that this app's own impersonation banner is on screen.
569
+ * Only needed with `impersonationBanner: { mode: 'custom' }`; the
570
+ * `useImpersonation({ rendersBanner: true })` hook calls it for you.
571
+ */
572
+ acknowledgeImpersonationBanner(): void;
224
573
  /**
225
574
  * Sign out, clear session and local storage
226
575
  */
@@ -229,6 +578,16 @@ declare class SyncedDb<S extends SchemaStructure$1> {
229
578
  * Execute a function with direct access to the remote database connection
230
579
  */
231
580
  useRemote<T>(fn: (db: Surreal) => T | Promise<T>): Promise<T>;
581
+ /**
582
+ * Run one SurrealQL statement on the server and return its result array.
583
+ * Nothing is cached locally. Prefer this over `useRemote(s => s.query(...))`
584
+ * for a plain read or write: the bare SDK client that callback receives
585
+ * skips the connect gate, so a statement issued while the socket is being
586
+ * rebuilt fails with "Specify a namespace to use" instead of waiting for
587
+ * the session. This one is also bounded by the remote service's
588
+ * concurrency limit and query timeout.
589
+ */
590
+ remoteQuery<T extends unknown[] = unknown[]>(sql: string, vars?: Record<string, unknown>): Promise<T>;
232
591
  /**
233
592
  * Access the remote database service directly
234
593
  */
@@ -253,9 +612,23 @@ declare class SyncedDb<S extends SchemaStructure$1> {
253
612
  * components; this is the imperative escape hatch.
254
613
  */
255
614
  subscribeToSyncHealth(cb: (health: SyncHealth$1) => void): () => void;
615
+ /** Current local-store durability snapshot. See {@link useStorageStatus}. */
616
+ get storageHealth(): StorageHealth$1;
617
+ /**
618
+ * Observe local-store durability. Fires immediately with the current snapshot
619
+ * and again on change. Prefer the `useStorageStatus` hook in components; this
620
+ * is the imperative escape hatch.
621
+ */
622
+ subscribeToStorageHealth(cb: (health: StorageHealth$1) => void): () => void;
623
+ /**
624
+ * Web Push for this browser: `support()`, `subscribe()` (from a click),
625
+ * `devices()`, `notify()` / `test()` (push to yourself), `bridge()` for the
626
+ * service worker. See the push-notifications docs page.
627
+ */
628
+ get webPush(): WebPushModule$1;
256
629
  bucket<B extends BucketNames<S>>(name: B): BucketHandle;
257
630
  getBucketConfig(name: string): BucketDefinitionSchema | undefined;
258
631
  }
259
632
  //#endregion
260
- export { CacheStrategy, type FileUploadResult, type GenericModel, type GenericSchema, type GetCardinality, type GetTable, InferModel, type InferRelatedModelFromMetadata, InferRelationshipsFromConst, InferSchemaFromConst, type Model, type ModelPayload, ProvisionOptions, type QueryInfo, type QueryModifier, type QueryModifierBuilder, type QueryResult, RecordId, RelatedFieldsTableScoped, type RelationshipDefinition, RelationshipField, type RelationshipsMetadata, Sp00kyProvider, type Sp00kyProviderProps, type SyncHealth, type SyncHealthConfig, type SyncHealthStatus, SyncedDb, SyncedDbConfig, type TableModel, type TableNames, type UseDownloadFileOptions, type UseDownloadFileResult, type UseFeatureFlag, type UseSyncStatus, Uuid, WithRelated, WithRelatedMany, useCrdtField, useDb, useDownloadFile, useFeatureFlag, useFileUpload, useQuery, useSyncStatus };
633
+ export { Blurhash, type BlurhashProps, BucketImage, type BucketImageProps, CacheStrategy, type ChannelOp, type ChannelPeers, type ChannelQueries, type ChannelState, type ChannelStatus, type ChannelsConfig, type ConnectionState, type FileUploadResult, type GenericModel, type GenericSchema, type GetCardinality, type GetTable, InferModel, type InferRelatedModelFromMetadata, InferRelationshipsFromConst, InferSchemaFromConst, type Model, type ModelPayload, type PreloadOptions, type PreloadRefresh, ProvisionOptions, type PushDeviceKind, type PushNotification, type PushPayload, type QueryInfo, type QueryModifier, type QueryModifierBuilder, type QueryResult, type ReconnectConfig, RecordId, RelatedFieldsTableScoped, type RelationshipDefinition, RelationshipField, type RelationshipsMetadata, type Sp00kyChannel, Sp00kyProvider, type Sp00kyProviderProps, type StorageHealth, type StorageHealthStatus, type SyncHealth, type SyncHealthConfig, type SyncHealthStatus, SyncedDb, SyncedDbConfig, type TableModel, type TableNames, type UseAppRelease, type UseAppReleaseOptions, type UseBlurhashResult, type UseBucketImageOptions, type UseBucketImageResult, type UseChannel, type UseDownloadFileOptions, type UseDownloadFileResult, type UseFeatureFlag, type UseImpersonation, type UseImpersonationOptions, type UseStorageStatus, type UseSyncStatus, Uuid, type WebPushClientMessage, type WebPushConfig, type WebPushDevice, WebPushError, type WebPushErrorCode, type WebPushInfo, type WebPushMessage, type WebPushMessageInput, type WebPushModule, type WebPushSubscribeOptions, type WebPushSupport, type WebPushSyncOptions, type WebPushSyncStatus, type WebPushUnsubscribeOptions, type WebPushUnsupportedReason, type WebPushUpdateOptions, WithRelated, WithRelatedMany, createPreload, useAppRelease, useBlurhash, useBucketImage, useChannel, useCrdtField, useDb, useDownloadFile, useFeatureFlag, useFileUpload, useImpersonation, useQuery, useStorageStatus, useSyncStatus };
261
634
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/lib/models.ts","../../../src/types/index.ts","../../../src/lib/use-query.ts","../../../src/lib/use-sync-status.ts","../../../src/lib/use-crdt-field.ts","../../../src/lib/use-feature-flag.ts","../../../src/lib/use-file-upload.ts","../../../src/lib/use-download-file.ts","../../../src/lib/Sp00kyProvider.ts","../../../src/lib/context.ts","../../../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;KAMY,WAAW;KACX,kBAAkB;MAAU;;;;;;;;AAD5B,UCEK,gBAAA,CDFO;EACZ;EAAY,KAAA,CAAA,EAAA,OAAA;;ACQP,UAAA,CAAA,CAAA;AAPA,KAWL,aAAA,GAXqB,QAAA,GAAA,WAAA;AAOhB;AAIjB;AAKA;AAAgC,KAApB,oBAAoB,CAAA,UAAW,iBAAX,CAAA,GAAA,QACxB,YADmC,CACxB,CADwB,CAAA,GACnB,YADmB,CACR,UADQ,CACC,CADD,EACI,CADJ,CAAA,CAAA;;;;;AACnB,KAOZ,2BAPY,CAAA,UAO0B,iBAP1B,EAAA,eAO0D,aAP1D,CAAA,GAAA,gBAQR,YARkB,CAQP,CARO,CAAA,GAAA,UAStB,OAFA,CAEQ,CAFR,CAAA,eAA2B,CAAA,CAAA,MAAA,CAAA,EAAA;EAAA,IAAA,EAEiB,SAFjB;AAAW,CAAA,CAAA,IAEsB,GAFtB,CAAA,OAAA,CAAA,GAAA;EAAgC,KAAA,EAGrE,GAHqE,CAAA,IAAA,CAAA,SAAA,MAG7C,MAH6C,GAGpC,MAHoC,CAG7B,GAH6B,CAAA,IAAA,CAAA,CAAA,GAAA,GAAA;EACvD,KAAA,EAGd,GAHc,CAAA,IAAA,CAAA;EAAX,WAAA,EAIG,GAJH,CAAA,aAAA,CAAA;AACI,CAAA;KASf,QATmE,CAAA,CAAA,CAAA,GAAA,QAC3D,MAQoB,CARpB,GAQwB,CARxB,CAQ0B,CAR1B,CAAA;AAAiC,KAUlC,cAVkC,CAAA,UAUT,iBAVS,CAAA,GAUU,QAVV,CAUmB,YAVnB,CAUgC,CAVhC,CAAA,CAAA;;;KCtBzC,mBACO,qCACQ,aAAW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QsPc,YRtPd;iBAAX,CAAA,IAAA,EAAA,MAAA,CAAA,EQ2Pa,sBR3Pb,GAAA,SAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/lib/models.ts","../../../src/types/index.ts","../../../src/lib/use-query.ts","../../../src/lib/create-preload.ts","../../../src/lib/use-sync-status.ts","../../../src/lib/use-impersonation.ts","../../../src/lib/use-storage-status.ts","../../../src/lib/use-crdt-field.ts","../../../src/lib/use-channel.ts","../../../src/lib/use-feature-flag.ts","../../../src/lib/use-app-release.ts","../../../src/lib/use-file-upload.ts","../../../src/lib/use-download-file.ts","../../../src/lib/use-blurhash.ts","../../../src/lib/use-bucket-image.ts","../../../src/lib/Blurhash.ts","../../../src/lib/BucketImage.ts","../../../src/lib/Sp00kyProvider.ts","../../../src/lib/context.ts","../../../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;KAMY,WAAW;KACX,kBAAkB;MAAU;;;;;;;;AAD5B,UCEK,gBAAA,CDFO;EACZ;EAAY,KAAA,CAAA,EAAA,OAAA;;ACQP,UAAA,CAAA,CAAA;AAPA,KAWL,aAAA,GAXqB,QAAA,GAAA,WAAA;AAOhB;AAIjB;AAKA;AAAgC,KAApB,oBAAoB,CAAA,UAAW,iBAAX,CAAA,GAAA,QACxB,YADmC,CACxB,CADwB,CAAA,GACnB,YADmB,CACR,UADQ,CACC,CADD,EACI,CADJ,CAAA,CAAA;;;;;AACnB,KAOZ,2BAPY,CAAA,UAO0B,iBAP1B,EAAA,eAO0D,aAP1D,CAAA,GAAA,gBAQR,YARkB,CAQP,CARO,CAAA,GAAA,UAStB,OAFA,CAEQ,CAFR,CAAA,eAA2B,CAAA,CAAA,MAAA,CAAA,EAAA;EAAA,IAAA,EAEiB,SAFjB;AAAW,CAAA,CAAA,IAEsB,GAFtB,CAAA,OAAA,CAAA,GAAA;EAAgC,KAAA,EAGrE,GAHqE,CAAA,IAAA,CAAA,SAAA,MAG7C,MAH6C,GAGpC,MAHoC,CAG7B,G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