@spooky-sync/client-solid 0.0.1-canary.38 → 0.0.1-canary.380

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, RunOptions, Sp00kyClient, Sp00kyConfig, Sp00kyQueryResultPromise, 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;
@@ -45,6 +45,14 @@ type QueryArg<S extends SchemaStructure$1, TableName extends TableNames$1<S>, T
45
45
  }, RelatedFields extends Record<string, any>, IsOne extends boolean> = FinalQuery<S, TableName, T, RelatedFields, IsOne, Sp00kyQueryResultPromise> | (() => FinalQuery<S, TableName, T, RelatedFields, IsOne, Sp00kyQueryResultPromise> | null | undefined);
46
46
  type QueryOptions = {
47
47
  enabled?: () => boolean;
48
+ /**
49
+ * Tear down the query (remote `_00_query` view + local WASM view) when this
50
+ * hook is disposed and no other subscriber remains, instead of keeping it
51
+ * resident for cheap re-subscription. Use for viewport-windowed lists that
52
+ * mount/unmount a query per scroll window and want off-screen windows
53
+ * cancelled. Trade-off: scrolling back to a torn-down window re-registers it.
54
+ */
55
+ deregisterOnCleanup?: boolean;
48
56
  };
49
57
  declare function useQuery<S extends SchemaStructure$1, TableName extends TableNames$1<S>, T extends {
50
58
  columns: Record<string, ColumnSchema>;
@@ -52,6 +60,8 @@ declare function useQuery<S extends SchemaStructure$1, TableName extends TableNa
52
60
  data: () => TData | undefined;
53
61
  error: () => Error | undefined;
54
62
  isLoading: () => boolean;
63
+ isFetching: () => boolean;
64
+ isSettled: () => boolean;
55
65
  };
56
66
  declare function useQuery<S extends SchemaStructure$1, TableName extends TableNames$1<S>, T extends {
57
67
  columns: Record<string, ColumnSchema>;
@@ -59,14 +69,243 @@ declare function useQuery<S extends SchemaStructure$1, TableName extends TableNa
59
69
  data: () => TData | undefined;
60
70
  error: () => Error | undefined;
61
71
  isLoading: () => boolean;
72
+ isFetching: () => boolean;
73
+ isSettled: () => boolean;
74
+ };
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;
62
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
91
+ //#region src/lib/use-sync-status.d.ts
92
+ interface UseSyncStatus {
93
+ /** Full health snapshot; updates reactively on every transition. */
94
+ health: Accessor<SyncHealth$1>;
95
+ /** `'healthy'` | `'degraded'`. */
96
+ status: Accessor<SyncHealthStatus$1>;
97
+ isHealthy: Accessor<boolean>;
98
+ /** `true` once sync has failed for a sustained run — drive a banner off this. */
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>;
121
+ }
122
+ /**
123
+ * Observe sync health for a "can't reach the server" banner / indicator.
124
+ *
125
+ * Backed by `db.subscribeToSyncHealth`. Individual sync failures (a transient
126
+ * remote 500 on query registration, a dropped socket) are absorbed by the
127
+ * retry and never flip this; `isDegraded()` only goes true once failures
128
+ * persist for the configured number of consecutive rounds (sp00ky core config
129
+ * `syncHealth.degradeAfterConsecutiveFailures`, default 3), and flips back on
130
+ * the next successful round. Must be used within a `<Sp00kyProvider>`.
131
+ */
132
+ declare function useSyncStatus(): UseSyncStatus;
133
+ //# sourceMappingURL=use-sync-status.d.ts.map
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
188
+ //#region src/lib/use-crdt-field.d.ts
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>;
199
+ //# sourceMappingURL=use-crdt-field.d.ts.map
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
239
+ //#region src/lib/use-feature-flag.d.ts
240
+ interface UseFeatureFlag {
241
+ variant: Accessor<string | undefined>;
242
+ payload: Accessor<unknown | undefined>;
243
+ enabled: Accessor<boolean>;
244
+ }
245
+ /**
246
+ * Subscribe to a feature flag for the currently authenticated user.
247
+ *
248
+ * Returns three Solid accessors that update reactively whenever the
249
+ * server-materialized assignment in `_00_user_feature` changes. Backed by
250
+ * the same SSP + sync pipeline that powers `useQuery`, so toggling a flag
251
+ * via `spky flag enable <key>` propagates to the UI without a refresh.
252
+ *
253
+ * `enabled()` is `true` when the resolved variant exists and is not 'off'.
254
+ * For multi-variant flags, prefer `variant()` directly.
255
+ */
256
+ declare function useFeatureFlag(key: string, options?: FeatureFlagOptions): UseFeatureFlag;
257
+ //# sourceMappingURL=use-feature-flag.d.ts.map
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
63
302
  //#endregion
64
303
  //#region src/lib/use-file-upload.d.ts
65
304
  interface FileUploadResult {
66
305
  isUploading: () => boolean;
67
306
  error: () => Error | null;
68
307
  clearError: () => void;
69
- upload: (path: string, file: File | Blob) => Promise<void>;
308
+ upload: (path: string, file: File | Blob, options?: BucketPutOptions) => Promise<BucketPutResult | void>;
70
309
  download: (path: string) => Promise<string | null>;
71
310
  remove: (path: string) => Promise<void>;
72
311
  exists: (path: string) => Promise<boolean>;
@@ -77,7 +316,27 @@ declare function useFileUpload<S extends SchemaStructure$1>(db: SyncedDb<S>, buc
77
316
  //#endregion
78
317
  //#region src/lib/use-download-file.d.ts
79
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
+ */
80
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';
81
340
  }
82
341
  interface UseDownloadFileResult {
83
342
  url: Accessor<string | null>;
@@ -89,12 +348,134 @@ declare function useDownloadFile<S extends SchemaStructure$1>(bucketName: Bucket
89
348
  declare function useDownloadFile<S extends SchemaStructure$1>(db: SyncedDb<S>, bucketName: BucketNames<S>, path: Accessor<string | null | undefined>, options?: UseDownloadFileOptions): UseDownloadFileResult;
90
349
  //# sourceMappingURL=use-download-file.d.ts.map
91
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
92
464
  //#region src/lib/Sp00kyProvider.d.ts
93
465
  interface Sp00kyProviderProps<S extends SchemaStructure> {
94
466
  config: SyncedDbConfig<S>;
95
467
  fallback?: JSX.Element;
96
468
  onError?: (error: Error) => void;
97
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>;
98
479
  children: JSX.Element;
99
480
  }
100
481
  declare function Sp00kyProvider<S extends SchemaStructure>(props: Sp00kyProviderProps<S>): JSX.Element;
@@ -135,6 +516,13 @@ declare class SyncedDb<S extends SchemaStructure$1> {
135
516
  * Initialize the sp00ky-ts instance
136
517
  */
137
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>;
138
526
  /**
139
527
  * Create a new record in the database
140
528
  */
@@ -146,11 +534,23 @@ declare class SyncedDb<S extends SchemaStructure$1> {
146
534
  /**
147
535
  * Delete an existing record in the database
148
536
  */
149
- delete<TName extends TableNames<S>>(tableName: TName, selector: string | InnerQuery<GetTable<S, TName>, boolean>): Promise<void>;
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>;
150
544
  /**
151
545
  * Query data from the database
152
546
  */
153
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>;
154
554
  /**
155
555
  * Run a backend operation
156
556
  */
@@ -164,6 +564,12 @@ declare class SyncedDb<S extends SchemaStructure$1> {
164
564
  * @deprecated Use signOut() instead
165
565
  */
166
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;
167
573
  /**
168
574
  * Sign out, clear session and local storage
169
575
  */
@@ -172,6 +578,16 @@ declare class SyncedDb<S extends SchemaStructure$1> {
172
578
  * Execute a function with direct access to the remote database connection
173
579
  */
174
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>;
175
591
  /**
176
592
  * Access the remote database service directly
177
593
  */
@@ -185,10 +601,34 @@ declare class SyncedDb<S extends SchemaStructure$1> {
185
601
  */
186
602
  get auth(): AuthService<S>;
187
603
  get pendingMutationCount(): number;
604
+ /** Diagnostic — see `Sp00kyClient.liveRetryCount`. */
605
+ get liveRetryCount(): number;
188
606
  subscribeToPendingMutations(cb: (count: number) => void): () => void;
607
+ /** Current sync-health snapshot. See {@link useSyncStatus}. */
608
+ get syncHealth(): SyncHealth$1;
609
+ /**
610
+ * Observe sync health. Fires immediately with the current status and again
611
+ * on every healthy↔degraded transition. Prefer the `useSyncStatus` hook in
612
+ * components; this is the imperative escape hatch.
613
+ */
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;
189
629
  bucket<B extends BucketNames<S>>(name: B): BucketHandle;
190
630
  getBucketConfig(name: string): BucketDefinitionSchema | undefined;
191
631
  }
192
632
  //#endregion
193
- 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, SyncedDb, SyncedDbConfig, type TableModel, type TableNames, type UseDownloadFileOptions, type UseDownloadFileResult, Uuid, WithRelated, WithRelatedMany, useDb, useDownloadFile, useFileUpload, useQuery };
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 };
194
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-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;;;KCvBzC,mBACO,qCACQ,aAAW;WACR,eAAe;yBACd,8CAG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,CAAA,CAAA,EAAA,MAAA;6BAAe,CAAA,EAAA,EAAA,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,IAAA,CAAA,EAAA,GAAA,GAAA,IAAA;QAAzC,CAAA,UKsOS,WLtOT,CKsOqB,CLtOrB,CAAA,CAAA,CAAA,IAAA,EKsO+B,CLtO/B,CAAA,EKsOmC,YLtOnC;iBAEa,CAAA,IAAA,EAAA,MAAA,CAAA,EKyOU,sBLzOV,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,C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