@spooky-sync/client-react 0.0.0-stage → 0.0.1-canary.384
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/AGENTS.md +93 -0
- package/QUICK_START.md +173 -0
- package/README.md +54 -2
- package/dist/index.cjs +1351 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +623 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.ts +623 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1312 -0
- package/dist/index.js.map +1 -0
- package/package.json +71 -4
- package/skills/sp00ky-react/SKILL.md +73 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,623 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { RecordId, RecordId as RecordId$1, Surreal, Uuid } from "surrealdb";
|
|
4
|
+
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";
|
|
5
|
+
import { CSSProperties, ReactNode, useLayoutEffect } from "react";
|
|
6
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
7
|
+
import { BackendNames, BackendRoutes, BucketDefinitionSchema, BucketNames, ChannelPeer, ChannelTableNames, ColumnSchema, FinalQuery, GenericModel, GenericSchema, GenericSchema as GenericSchema$1, 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, TableModel, TableModel as TableModel$1, TableNames, TableNames as TableNames$1 } from "@spooky-sync/query-builder";
|
|
8
|
+
|
|
9
|
+
//#region src/types.d.ts
|
|
10
|
+
type Model<T> = T;
|
|
11
|
+
type ModelPayload<T> = T & {
|
|
12
|
+
id: RecordId$1;
|
|
13
|
+
};
|
|
14
|
+
/** Options for database provisioning. */
|
|
15
|
+
interface ProvisionOptions {
|
|
16
|
+
/** Force re-provision even if schema already exists */
|
|
17
|
+
force?: boolean;
|
|
18
|
+
}
|
|
19
|
+
type CacheStrategy = 'memory' | 'indexeddb';
|
|
20
|
+
/** Infer Schema type (Record<TableName, Model>) from the schema const. */
|
|
21
|
+
type InferSchemaFromConst<S extends SchemaStructure> = { [K in TableNames$1<S>]: TableModel$1<GetTable$1<S, K>> };
|
|
22
|
+
/**
|
|
23
|
+
* Infer Relationships type from the schema const's relationships array,
|
|
24
|
+
* converted from array format to nested object format.
|
|
25
|
+
*/
|
|
26
|
+
type InferRelationshipsFromConst<S extends SchemaStructure, Schema extends GenericSchema$1> = { [TableName in TableNames$1<S>]: { [Rel in Extract<S['relationships'][number], {
|
|
27
|
+
from: TableName;
|
|
28
|
+
}> as Rel['field']]: {
|
|
29
|
+
model: Rel['to'] extends keyof Schema ? Schema[Rel['to']] : any;
|
|
30
|
+
table: Rel['to'];
|
|
31
|
+
cardinality: Rel['cardinality'];
|
|
32
|
+
} } };
|
|
33
|
+
type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
34
|
+
type SyncedDbConfig<S extends SchemaStructure> = Prettify<Sp00kyConfig<S>>;
|
|
35
|
+
//# sourceMappingURL=types.d.ts.map
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/db.d.ts
|
|
38
|
+
/**
|
|
39
|
+
* SyncedDb - a thin wrapper around the sp00ky core client for React.
|
|
40
|
+
* Delegates all logic to the underlying `Sp00kyClient` instance.
|
|
41
|
+
*
|
|
42
|
+
* NOTE: keep in sync with packages/client-solid/src/index.ts and
|
|
43
|
+
* packages/client-solid2/src/index.ts (SyncedDb). Copied rather than shared so
|
|
44
|
+
* this package's dependency graph never pulls in solid-js. React rows are plain
|
|
45
|
+
* objects (no store proxies), so unlike the Solid 2 copy nothing is unwrapped
|
|
46
|
+
* before a write.
|
|
47
|
+
*/
|
|
48
|
+
declare class SyncedDb<S extends SchemaStructure> {
|
|
49
|
+
private config;
|
|
50
|
+
private sp00ky;
|
|
51
|
+
private _initialized;
|
|
52
|
+
constructor(config: SyncedDbConfig<S>);
|
|
53
|
+
getSp00ky(): Sp00kyClient<S>;
|
|
54
|
+
/** Initialize the core client. */
|
|
55
|
+
init(): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Tear down the client: leaves the tabs broker, closes the local store and
|
|
58
|
+
* remote socket, and frees the wasm circuit.
|
|
59
|
+
*/
|
|
60
|
+
close(): Promise<void>;
|
|
61
|
+
/** Create a new record in the database. */
|
|
62
|
+
create(id: string, payload: Record<string, unknown>): Promise<void>;
|
|
63
|
+
/** Update an existing record in the database. */
|
|
64
|
+
update<TName extends TableNames$1<S>>(tableName: TName, recordId: string, payload: Partial<TableModel$1<GetTable$1<S, TName>>>, options?: UpdateOptions): Promise<void>;
|
|
65
|
+
/** Delete an existing record in the database. */
|
|
66
|
+
delete<TName extends TableNames$1<S>>(tableName: TName, selector: string | RecordId$1 | InnerQuery<GetTable$1<S, TName>, boolean>): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Preload/prewarm a built query into the local cache without a component
|
|
69
|
+
* subscribing to it, so a later `useQuery` for the same data paints
|
|
70
|
+
* instantly. Best-effort.
|
|
71
|
+
*/
|
|
72
|
+
preload(finalQuery: FinalQuery<S, any, any, any, any, Sp00kyQueryResultPromise>, options?: PreloadOptions$1): Promise<void>;
|
|
73
|
+
/** Start a query on `table`. Finish it with `.build()` and pass it to `useQuery`. */
|
|
74
|
+
query<TName extends TableNames$1<S>>(table: TName): QueryBuilder<S, TName, Sp00kyQueryResultPromise, {}, false>;
|
|
75
|
+
/**
|
|
76
|
+
* Open a peer to peer channel to `peers` for the rows `query` matches (a
|
|
77
|
+
* query on a `-- @channel` table; only its `where` counts). Prefer the
|
|
78
|
+
* `useChannel` hook, which closes it with the component.
|
|
79
|
+
*/
|
|
80
|
+
channel<T extends ChannelTableNames<S>>(query: ChannelQuery<S, T> | ReadonlyArray<ChannelQuery<S, T>>, peers: Iterable<ChannelPeer>): Sp00kyChannel$1<S, T>;
|
|
81
|
+
/** Run a backend operation (writes an outbox job row). */
|
|
82
|
+
run<B extends BackendNames<S>, R extends BackendRoutes<S, B>>(backend: B, path: R, payload: RoutePayload<S, B, R>, options?: RunOptions): Promise<void>;
|
|
83
|
+
/** Authenticate the remote connection with a token. */
|
|
84
|
+
authenticate(token: string): Promise<void>;
|
|
85
|
+
/**
|
|
86
|
+
* Tell the client that this app's own impersonation banner is on screen.
|
|
87
|
+
* Only needed with `impersonationBanner: { mode: 'custom' }`; the
|
|
88
|
+
* `useImpersonation({ rendersBanner: true })` hook calls it for you.
|
|
89
|
+
*/
|
|
90
|
+
acknowledgeImpersonationBanner(): void;
|
|
91
|
+
/** Sign out, clear session and local storage. */
|
|
92
|
+
signOut(): Promise<void>;
|
|
93
|
+
/** Execute a function with direct access to the remote database connection. */
|
|
94
|
+
useRemote<T>(fn: (db: Surreal) => T | Promise<T>): Promise<T>;
|
|
95
|
+
/**
|
|
96
|
+
* Run one SurrealQL statement against the REMOTE database, results shaped
|
|
97
|
+
* like the SDK's own `.query()` (one entry per statement). Nothing is cached
|
|
98
|
+
* locally. Prefer this over `useRemote(s => s.query(...))` for a plain read:
|
|
99
|
+
* the bare SDK client that callback receives skips the connect gate, so a
|
|
100
|
+
* statement issued while the socket is being rebuilt fails with "Specify a
|
|
101
|
+
* namespace to use" instead of waiting for the session.
|
|
102
|
+
*/
|
|
103
|
+
remoteQuery<T extends unknown[] = unknown[]>(sql: string, vars?: Record<string, unknown>): Promise<T>;
|
|
104
|
+
/** Access the remote database service directly. */
|
|
105
|
+
get remote(): Sp00kyClient<S>['remoteClient'];
|
|
106
|
+
/** Access the local database service directly. */
|
|
107
|
+
get local(): Sp00kyClient<S>['localClient'];
|
|
108
|
+
/** Access the auth service. */
|
|
109
|
+
get auth(): AuthService<S>;
|
|
110
|
+
get pendingMutationCount(): number;
|
|
111
|
+
/** Diagnostic, see `Sp00kyClient.liveRetryCount`. */
|
|
112
|
+
get liveRetryCount(): number;
|
|
113
|
+
subscribeToPendingMutations(cb: (count: number) => void): () => void;
|
|
114
|
+
/** Queries mid-fetch right now. See {@link useSyncActivity}. */
|
|
115
|
+
get fetchingQueryCount(): number;
|
|
116
|
+
/**
|
|
117
|
+
* Observe how many queries are fetching from the server. Fires immediately
|
|
118
|
+
* and on every change. Prefer the `useSyncActivity` hook in components.
|
|
119
|
+
*/
|
|
120
|
+
subscribeToFetchActivity(cb: (fetching: number) => void): () => void;
|
|
121
|
+
/** Current sync-health snapshot. See {@link useSyncStatus}. */
|
|
122
|
+
get syncHealth(): SyncHealth$1;
|
|
123
|
+
/**
|
|
124
|
+
* Observe sync health. Fires immediately with the current status and again
|
|
125
|
+
* on every healthy/degraded transition. Prefer the `useSyncStatus` hook in
|
|
126
|
+
* components; this is the imperative escape hatch.
|
|
127
|
+
*/
|
|
128
|
+
subscribeToSyncHealth(cb: (health: SyncHealth$1) => void): () => void;
|
|
129
|
+
/** Current local-store durability snapshot. See {@link useStorageStatus}. */
|
|
130
|
+
get storageHealth(): StorageHealth$1;
|
|
131
|
+
/**
|
|
132
|
+
* Observe local-store durability. Fires immediately with the current
|
|
133
|
+
* snapshot and again on change. Prefer the `useStorageStatus` hook.
|
|
134
|
+
*/
|
|
135
|
+
subscribeToStorageHealth(cb: (health: StorageHealth$1) => void): () => void;
|
|
136
|
+
/**
|
|
137
|
+
* Web Push for this browser: `support()`, `subscribe()` (from a click),
|
|
138
|
+
* `devices()`, `notify()` / `test()` (push to yourself), `bridge()` for the
|
|
139
|
+
* service worker. See the push-notifications docs page.
|
|
140
|
+
*/
|
|
141
|
+
get webPush(): WebPushModule$1;
|
|
142
|
+
bucket<B extends BucketNames<S>>(name: B): BucketHandle;
|
|
143
|
+
getBucketConfig(name: string): BucketDefinitionSchema | undefined;
|
|
144
|
+
}
|
|
145
|
+
//# sourceMappingURL=db.d.ts.map
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region src/provider.d.ts
|
|
148
|
+
/**
|
|
149
|
+
* The `SyncedDb` the nearest `<Sp00kyProvider>` initialized. Throws outside a
|
|
150
|
+
* provider; every hook in this package goes through it.
|
|
151
|
+
*/
|
|
152
|
+
declare function useDb<S extends SchemaStructure>(): SyncedDb<S>;
|
|
153
|
+
interface Sp00kyProviderProps<S extends SchemaStructure> {
|
|
154
|
+
/**
|
|
155
|
+
* Client config. Read ONCE, when the provider mounts: changing it later does
|
|
156
|
+
* not rebuild the client. To switch databases, remount the provider with a
|
|
157
|
+
* new `key`.
|
|
158
|
+
*/
|
|
159
|
+
config: SyncedDbConfig<S>;
|
|
160
|
+
/** Rendered until the client is initialized (and `preload` resolved). */
|
|
161
|
+
fallback?: ReactNode;
|
|
162
|
+
onError?: (error: Error) => void;
|
|
163
|
+
onReady?: (db: SyncedDb<S>) => void;
|
|
164
|
+
/**
|
|
165
|
+
* Prewarm data into the local cache before revealing the UI. Runs after
|
|
166
|
+
* `init()`; the `fallback` stays visible until it resolves. Use awaitable
|
|
167
|
+
* `db.preload(...)` calls here to gate first-load on essential data (e.g.
|
|
168
|
+
* config). On warm loads preload returns instantly. Best-effort: a rejection
|
|
169
|
+
* is caught and the UI is revealed anyway.
|
|
170
|
+
*/
|
|
171
|
+
preload?: (db: SyncedDb<S>) => Promise<void>;
|
|
172
|
+
children?: ReactNode;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Initializes a sp00ky client and provides it to `useDb()` and every hook
|
|
176
|
+
* below. Renders `fallback` until the client is ready.
|
|
177
|
+
*
|
|
178
|
+
* The client is created in an effect, never during render, so a server render
|
|
179
|
+
* only produces the fallback and StrictMode's double render creates nothing.
|
|
180
|
+
*/
|
|
181
|
+
declare function Sp00kyProvider<S extends SchemaStructure>(props: Sp00kyProviderProps<S>): react_jsx_runtime0.JSX.Element;
|
|
182
|
+
//# sourceMappingURL=provider.d.ts.map
|
|
183
|
+
|
|
184
|
+
//#endregion
|
|
185
|
+
//#region src/query.d.ts
|
|
186
|
+
type AnyFinalQuery = FinalQuery<any, any, any, any, any, Sp00kyQueryResultPromise>;
|
|
187
|
+
type QueryArg<S extends SchemaStructure, TableName extends TableNames$1<S>, T extends {
|
|
188
|
+
columns: Record<string, ColumnSchema>;
|
|
189
|
+
}, RelatedFields extends Record<string, any>, IsOne extends boolean> = FinalQuery<S, TableName, T, RelatedFields, IsOne, Sp00kyQueryResultPromise> | null | undefined;
|
|
190
|
+
interface QueryOptions {
|
|
191
|
+
/** Only register while true (default `true`). `false` keeps the last data. */
|
|
192
|
+
enabled?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* Tear down the query (remote `_00_query` view + local WASM view) when this
|
|
195
|
+
* hook unmounts and no other subscriber remains, instead of keeping it
|
|
196
|
+
* resident for cheap re-subscription. Use for viewport-windowed lists that
|
|
197
|
+
* mount and unmount a query per scroll window. Trade-off: scrolling back to
|
|
198
|
+
* a torn-down window re-registers it.
|
|
199
|
+
*/
|
|
200
|
+
deregisterOnCleanup?: boolean;
|
|
201
|
+
}
|
|
202
|
+
interface UseQueryResult<TData> {
|
|
203
|
+
/**
|
|
204
|
+
* The result. `[]` / `null` before the first emission, then each live
|
|
205
|
+
* emission with structural sharing: unchanged rows keep their object
|
|
206
|
+
* identity, so memoized rows only re-render when their own data changed.
|
|
207
|
+
*/
|
|
208
|
+
data: TData;
|
|
209
|
+
/** Registration or sync error (e.g. SSP 503 during bootstrap). Never thrown. */
|
|
210
|
+
error: Error | undefined;
|
|
211
|
+
/**
|
|
212
|
+
* True only on a COLD first load: nothing painted for this identity, the
|
|
213
|
+
* server has not answered, and registration has not failed. A paint from the
|
|
214
|
+
* local cache ends it, and so does the server answering with zero rows.
|
|
215
|
+
*/
|
|
216
|
+
isLoading: boolean;
|
|
217
|
+
/** A fetch cycle is in flight (registration, a sync round). */
|
|
218
|
+
isFetching: boolean;
|
|
219
|
+
/**
|
|
220
|
+
* `data` holds the rendered rows of a known membership for this identity:
|
|
221
|
+
* the server's answer, or the membership an earlier session left on this
|
|
222
|
+
* device. From here `data` is an answer, not a cache guess.
|
|
223
|
+
*/
|
|
224
|
+
isAuthoritative: boolean;
|
|
225
|
+
/** `data` holds something: rows for a list, a row for `.one()`. */
|
|
226
|
+
hasData: boolean;
|
|
227
|
+
/** Authoritative AND no data: the server said "no rows". Render empty states on this. */
|
|
228
|
+
isEmpty: boolean;
|
|
229
|
+
/**
|
|
230
|
+
* Authoritative AND idle. The gate for trusting a short window as the end of
|
|
231
|
+
* a list, and for "create it if it is missing". Not monotonic: a later sync
|
|
232
|
+
* round re-enters `isFetching`.
|
|
233
|
+
*/
|
|
234
|
+
isSettled: boolean;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* What `data` holds: a list is never null (`[]` until the first emission), a
|
|
238
|
+
* `.one()` row is `null` until it exists.
|
|
239
|
+
*/
|
|
240
|
+
type QueryData<S extends SchemaStructure, TableName extends TableNames$1<S>, RelatedFields extends Record<string, any>, IsOne extends boolean> = IsOne extends true ? QueryResult$1<S, TableName, RelatedFields, true> | null : QueryResult$1<S, TableName, RelatedFields, false>;
|
|
241
|
+
/**
|
|
242
|
+
* Live query. Pass a built query (`db.query('post')...build()`), or `null` /
|
|
243
|
+
* `undefined` to skip. The query is re-registered only when its identity hash
|
|
244
|
+
* (surql + vars) changes, so building it inline on every render is fine.
|
|
245
|
+
*
|
|
246
|
+
* ```tsx
|
|
247
|
+
* const posts = useQuery(db.query('post').orderBy('created_at', 'desc').limit(20).build());
|
|
248
|
+
* ```
|
|
249
|
+
*/
|
|
250
|
+
declare function useQuery<S extends SchemaStructure, TableName extends TableNames$1<S>, T extends {
|
|
251
|
+
columns: Record<string, ColumnSchema>;
|
|
252
|
+
}, RelatedFields extends Record<string, any>, IsOne extends boolean, TData = QueryData<S, TableName, RelatedFields, IsOne>>(query: QueryArg<S, TableName, T, RelatedFields, IsOne>, options?: QueryOptions): UseQueryResult<TData>;
|
|
253
|
+
declare function useQuery<S extends SchemaStructure, TableName extends TableNames$1<S>, T extends {
|
|
254
|
+
columns: Record<string, ColumnSchema>;
|
|
255
|
+
}, RelatedFields extends Record<string, any>, IsOne extends boolean, TData = QueryData<S, TableName, RelatedFields, IsOne>>(db: SyncedDb<S>, query: QueryArg<S, TableName, T, RelatedFields, IsOne>, options?: QueryOptions): UseQueryResult<TData>;
|
|
256
|
+
type UsePreloadOptions = PreloadOptions$1 & {
|
|
257
|
+
/** Only preload while true (default `true`). */
|
|
258
|
+
enabled?: boolean;
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Fire-and-forget prewarm: registers `query` via `db.preload` (a live query
|
|
262
|
+
* nobody subscribes to, evicted a ttl after registration unless a view mounts
|
|
263
|
+
* it first) whenever its identity changes. Nothing to clean up.
|
|
264
|
+
*
|
|
265
|
+
* Typical use: inside a list row, preload the detail query the user is likely
|
|
266
|
+
* to open next, so navigation paints from cache instead of the network.
|
|
267
|
+
*/
|
|
268
|
+
declare function usePreload(query: AnyFinalQuery | null | undefined, options?: UsePreloadOptions): void;
|
|
269
|
+
//#endregion
|
|
270
|
+
//#region src/status.d.ts
|
|
271
|
+
/**
|
|
272
|
+
* Count of locally committed mutations the server has not acknowledged yet.
|
|
273
|
+
* Drive an "unsaved changes" indicator off this.
|
|
274
|
+
*/
|
|
275
|
+
declare function usePendingMutations(): number;
|
|
276
|
+
interface UseSyncStatus {
|
|
277
|
+
/** Full health snapshot. */
|
|
278
|
+
health: SyncHealth$1;
|
|
279
|
+
/** `'healthy'` | `'degraded'`. */
|
|
280
|
+
status: SyncHealthStatus$1;
|
|
281
|
+
isHealthy: boolean;
|
|
282
|
+
/** `true` once sync has failed for a sustained run: drive a banner off this. */
|
|
283
|
+
isDegraded: boolean;
|
|
284
|
+
/** `true` once at least one sync round has succeeded this session. */
|
|
285
|
+
everConnected: boolean;
|
|
286
|
+
/**
|
|
287
|
+
* `true` only for a real lost connection: degraded AFTER a first successful
|
|
288
|
+
* sync. Stays `false` during the initial "connecting" phase.
|
|
289
|
+
*/
|
|
290
|
+
isOffline: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* Transport state of the remote WebSocket. Flips the instant the socket
|
|
293
|
+
* drops, unlike `status`, which only degrades after a sustained run of failed
|
|
294
|
+
* sync rounds: drive a "reconnecting..." affordance off this.
|
|
295
|
+
*/
|
|
296
|
+
connection: ConnectionState$1;
|
|
297
|
+
/** `true` while the connection is being re-established. */
|
|
298
|
+
isReconnecting: boolean;
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Sync health for a "can't reach the server" banner. Single sync failures are
|
|
302
|
+
* absorbed by the retry; `isDegraded` only turns on once failures persist for
|
|
303
|
+
* `syncHealth.degradeAfterConsecutiveFailures` rounds (default 3).
|
|
304
|
+
*/
|
|
305
|
+
declare function useSyncStatus(): UseSyncStatus;
|
|
306
|
+
interface UseSyncActivityOptions {
|
|
307
|
+
/** How long queries must be fetching before `isDownloading` turns on. Default 200 ms. */
|
|
308
|
+
downloadDelayMs?: number;
|
|
309
|
+
/** `isUploading` needs MORE than this many queued mutations. Default 0. */
|
|
310
|
+
uploadThreshold?: number;
|
|
311
|
+
/** How long the outbox must stay above `uploadThreshold`. Default 150 ms. */
|
|
312
|
+
uploadDelayMs?: number;
|
|
313
|
+
}
|
|
314
|
+
interface UseSyncActivity {
|
|
315
|
+
/** Queries with traffic the user waits on (core `fetchingQueryCount`). */
|
|
316
|
+
fetchingQueries: number;
|
|
317
|
+
/** Locally committed writes the server has not acknowledged yet. */
|
|
318
|
+
pendingMutations: number;
|
|
319
|
+
/** Fetching for longer than `downloadDelayMs`: a "downloading" mark. */
|
|
320
|
+
isDownloading: boolean;
|
|
321
|
+
/** More than `uploadThreshold` writes queued for longer than `uploadDelayMs`. */
|
|
322
|
+
isUploading: boolean;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* The two directions of sync traffic, for an indicator in the app chrome. Both
|
|
326
|
+
* flags are debounced ON by their delay and drop at once, so a local-first
|
|
327
|
+
* page that answers from cache and confirms within a few ms never flickers.
|
|
328
|
+
*/
|
|
329
|
+
declare function useSyncActivity<S extends SchemaStructure = any>(dbOrOptions?: SyncedDb<S> | UseSyncActivityOptions, maybeOptions?: UseSyncActivityOptions): UseSyncActivity;
|
|
330
|
+
interface UseStorageStatus {
|
|
331
|
+
/** Full durability snapshot. */
|
|
332
|
+
health: StorageHealth$1;
|
|
333
|
+
/** `'unknown'` | `'persistent'` | `'memory'`. */
|
|
334
|
+
status: StorageHealthStatus$1;
|
|
335
|
+
/** `true` when the local store survives a reload. */
|
|
336
|
+
isPersistent: boolean;
|
|
337
|
+
/**
|
|
338
|
+
* `true` only when durable storage was requested and could NOT be opened, so
|
|
339
|
+
* local writes die on reload. Drive a warning off this, not off `status`.
|
|
340
|
+
*/
|
|
341
|
+
isMemoryFallback: boolean;
|
|
342
|
+
}
|
|
343
|
+
/** How durable the LOCAL cache is, for a "no local storage" warning. */
|
|
344
|
+
declare function useStorageStatus(): UseStorageStatus;
|
|
345
|
+
interface UseImpersonationOptions {
|
|
346
|
+
/**
|
|
347
|
+
* This component renders the app's own impersonation banner. Required with
|
|
348
|
+
* `impersonationBanner: { mode: 'custom' }`: it acknowledges the banner, so
|
|
349
|
+
* the client does not fall back to its built-in one.
|
|
350
|
+
*/
|
|
351
|
+
rendersBanner?: boolean;
|
|
352
|
+
}
|
|
353
|
+
interface UseImpersonation {
|
|
354
|
+
/** The active impersonation, or `null`. */
|
|
355
|
+
impersonation: ImpersonationInfo | null;
|
|
356
|
+
isImpersonating: boolean;
|
|
357
|
+
/** Return to the admin session. */
|
|
358
|
+
stop: () => Promise<void>;
|
|
359
|
+
}
|
|
360
|
+
/** Observe admin impersonation (started from the DevTools). */
|
|
361
|
+
declare function useImpersonation(options?: UseImpersonationOptions): UseImpersonation;
|
|
362
|
+
interface UseFeatureFlag {
|
|
363
|
+
variant: string | undefined;
|
|
364
|
+
payload: unknown | undefined;
|
|
365
|
+
/** The resolved variant exists and is not `'off'`. */
|
|
366
|
+
enabled: boolean;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* A feature flag for the signed-in user. Updates live when the assignment in
|
|
370
|
+
* `_00_user_feature` changes (e.g. `spky flag enable <key>`).
|
|
371
|
+
*/
|
|
372
|
+
declare function useFeatureFlag(key: string, options?: FeatureFlagOptions): UseFeatureFlag;
|
|
373
|
+
interface UseAppReleaseOptions extends AppReleaseOptions {
|
|
374
|
+
/** App name from sp00ky.yml, e.g. `web`. */
|
|
375
|
+
app: string;
|
|
376
|
+
/** The running build's version (X.Y.Z), typically baked in at build time. */
|
|
377
|
+
currentVersion: string;
|
|
378
|
+
}
|
|
379
|
+
interface UseAppRelease {
|
|
380
|
+
/** Latest announced version for the app, or undefined when no row exists. */
|
|
381
|
+
latestVersion: string | undefined;
|
|
382
|
+
/** Announced version is semver-newer than the running build. */
|
|
383
|
+
updateAvailable: boolean;
|
|
384
|
+
/** The newer release asks clients to update/reload without prompting. */
|
|
385
|
+
mandatory: boolean;
|
|
386
|
+
/** The newer release asks reloads to clear service-worker caches first. */
|
|
387
|
+
cacheBust: boolean;
|
|
388
|
+
/**
|
|
389
|
+
* Reload onto the announced release: `location.reload()`, or with cache-bust
|
|
390
|
+
* clear CacheStorage, nudge the service worker to update, and navigate with a
|
|
391
|
+
* `?cb=` token. The service worker is deliberately NOT unregistered.
|
|
392
|
+
*/
|
|
393
|
+
reload: () => Promise<void>;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* The app's announced release (`_00_app_release:<app>`, written by
|
|
397
|
+
* `spky deploy` / `spky release`) compared against the running build.
|
|
398
|
+
*/
|
|
399
|
+
declare function useAppRelease(options: UseAppReleaseOptions): UseAppRelease;
|
|
400
|
+
interface Submission<Args extends unknown[], R> {
|
|
401
|
+
/** Run the wrapped async fn. Concurrent submits share the pending flag. Never rejects. */
|
|
402
|
+
submit: (...args: Args) => Promise<R | undefined>;
|
|
403
|
+
/** At least one submit is in flight. */
|
|
404
|
+
pending: boolean;
|
|
405
|
+
/** Error from the most recent settled submit, cleared on the next submit. */
|
|
406
|
+
error: Error | undefined;
|
|
407
|
+
/** Result of the most recent successful submit. */
|
|
408
|
+
result: R | undefined;
|
|
409
|
+
clearError: () => void;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* Pending/error state around a mutation, for a button spinner. The engine is
|
|
413
|
+
* already optimistic local-first (a write commits locally and re-renders
|
|
414
|
+
* through live queries before it syncs), so there is no optimistic layer here.
|
|
415
|
+
* An error means the LOCAL commit failed; sync failures surface through
|
|
416
|
+
* `useSyncStatus` and `usePendingMutations`.
|
|
417
|
+
*
|
|
418
|
+
* `submit` is stable across renders and always calls the latest `fn`.
|
|
419
|
+
*/
|
|
420
|
+
declare function useSubmission<Args extends unknown[], R>(fn: (...args: Args) => Promise<R>): Submission<Args, R>;
|
|
421
|
+
//# sourceMappingURL=status.d.ts.map
|
|
422
|
+
//#endregion
|
|
423
|
+
//#region src/realtime.d.ts
|
|
424
|
+
/**
|
|
425
|
+
* Open a `@crdt` field of the record `recordId` names, for an editor to bind
|
|
426
|
+
* to (`field?.getDoc()`). Re-opens when the id changes, closes on unmount.
|
|
427
|
+
*
|
|
428
|
+
* `null` until the field is loaded (`CrdtField.isLoaded`): this device had the
|
|
429
|
+
* document, or the server answered. Until then show the column's text instead
|
|
430
|
+
* of binding an editor to a document still arriving.
|
|
431
|
+
*/
|
|
432
|
+
declare function useCrdtField(table: string, recordId: string | null | undefined, field: string): CrdtField | null;
|
|
433
|
+
/** Who a channel connects to. */
|
|
434
|
+
type ChannelPeers = Iterable<ChannelPeer>;
|
|
435
|
+
/** What a channel carries: the rows a query (or several) matches. */
|
|
436
|
+
type ChannelQueries<S extends SchemaStructure, T extends ChannelTableNames<S>> = ChannelQuery<S, T> | ReadonlyArray<ChannelQuery<S, T>>;
|
|
437
|
+
/** An open channel, for as long as the component is mounted. */
|
|
438
|
+
interface UseChannel<S extends SchemaStructure, T extends string> {
|
|
439
|
+
/** `idle` | `connecting` | `connected` | `failed` | `unsupported`. */
|
|
440
|
+
status: ChannelStatus$1;
|
|
441
|
+
/** Users with a tab connected. */
|
|
442
|
+
peers: ReadonlyArray<string>;
|
|
443
|
+
/** Writes that go to THIS channel's peers only (when the row matches its query), plus the database as always. */
|
|
444
|
+
update: Sp00kyChannel$1<S, T>['update'];
|
|
445
|
+
create: Sp00kyChannel$1<S, T>['create'];
|
|
446
|
+
delete: Sp00kyChannel$1<S, T>['delete'];
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Open a peer to peer channel to `peers` for the rows `query` matches, while
|
|
450
|
+
* the component is mounted. The query must be on a `-- @channel` table and
|
|
451
|
+
* only its `where` counts; it is checked against each row, never registered.
|
|
452
|
+
* Writes to matching rows (`db.update` / `db.create` / `db.delete`, or the
|
|
453
|
+
* channel's own) reach the peers over WebRTC in tens of ms; `-- @ephemeral`
|
|
454
|
+
* fields travel only this way. A connection forms when both sides list each
|
|
455
|
+
* other; your own id is skipped.
|
|
456
|
+
*
|
|
457
|
+
* ```tsx
|
|
458
|
+
* const ch = useChannel(db.query('message').where({ conversation: convoId }), [me, other]);
|
|
459
|
+
* ```
|
|
460
|
+
*
|
|
461
|
+
* `query` may be `null` (closes the channel until a query is passed again) or
|
|
462
|
+
* a list of queries. Query and peers are compared by value, so building them
|
|
463
|
+
* inline is fine.
|
|
464
|
+
*/
|
|
465
|
+
declare function useChannel<S extends SchemaStructure, T extends ChannelTableNames<S>>(query: ChannelQueries<S, T> | null | undefined, peers: ChannelPeers): UseChannel<S, T>;
|
|
466
|
+
//# sourceMappingURL=realtime.d.ts.map
|
|
467
|
+
//#endregion
|
|
468
|
+
//#region src/files.d.ts
|
|
469
|
+
interface FileUploadResult {
|
|
470
|
+
isUploading: boolean;
|
|
471
|
+
error: Error | null;
|
|
472
|
+
clearError: () => void;
|
|
473
|
+
upload: (path: string, file: File | Blob, options?: BucketPutOptions) => Promise<BucketPutResult | void>;
|
|
474
|
+
/** Object URL of the file, revoked when the component unmounts. */
|
|
475
|
+
download: (path: string) => Promise<string | null>;
|
|
476
|
+
remove: (path: string) => Promise<void>;
|
|
477
|
+
exists: (path: string) => Promise<boolean>;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* Upload to, read from and delete in a bucket, with `isUploading` / `error`
|
|
481
|
+
* state. Validates `maxSize` and `allowedExtensions` from the schema before
|
|
482
|
+
* uploading. The returned functions are stable across renders.
|
|
483
|
+
*/
|
|
484
|
+
declare function useFileUpload<S extends SchemaStructure>(bucketName: BucketNames<S>): FileUploadResult;
|
|
485
|
+
declare function useFileUpload<S extends SchemaStructure>(db: SyncedDb<S>, bucketName: BucketNames<S>): FileUploadResult;
|
|
486
|
+
interface UseDownloadFileOptions {
|
|
487
|
+
/**
|
|
488
|
+
* Master switch, default `true`. `false` gives every hook instance its own
|
|
489
|
+
* private object URL fetched fresh from the bucket and revoked on unmount.
|
|
490
|
+
*/
|
|
491
|
+
cache?: boolean;
|
|
492
|
+
/** Keep the bytes in OPFS so they survive a reload and work offline. Default `true`. */
|
|
493
|
+
persist?: boolean;
|
|
494
|
+
/** Exempt this file from pressure eviction. */
|
|
495
|
+
pin?: boolean;
|
|
496
|
+
/**
|
|
497
|
+
* `'never'` (default) treats a bucket path as immutable. `'head'` spends a
|
|
498
|
+
* remote `head()` to compare sizes first, for paths the app overwrites.
|
|
499
|
+
*/
|
|
500
|
+
revalidate?: 'never' | 'head';
|
|
501
|
+
}
|
|
502
|
+
interface UseDownloadFileResult {
|
|
503
|
+
url: string | null;
|
|
504
|
+
isLoading: boolean;
|
|
505
|
+
error: Error | null;
|
|
506
|
+
/** Bypass every cache layer once and fetch again. */
|
|
507
|
+
refetch: () => void;
|
|
508
|
+
}
|
|
509
|
+
/**
|
|
510
|
+
* Object URL for a bucket file, shared and refcounted across every component
|
|
511
|
+
* showing the same path, persisted to OPFS by default. `null` path is idle.
|
|
512
|
+
*/
|
|
513
|
+
declare function useDownloadFile<S extends SchemaStructure>(bucketName: BucketNames<S>, path: string | null | undefined, options?: UseDownloadFileOptions): UseDownloadFileResult;
|
|
514
|
+
declare function useDownloadFile<S extends SchemaStructure>(db: SyncedDb<S>, bucketName: BucketNames<S>, path: string | null | undefined, options?: UseDownloadFileOptions): UseDownloadFileResult;
|
|
515
|
+
interface UseBlurhashResult {
|
|
516
|
+
/** The stored blurhash for the path, or null while loading / when none exists. */
|
|
517
|
+
hash: string | null;
|
|
518
|
+
isLoading: boolean;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* The blurhash sidecar for a bucket image (written automatically by
|
|
522
|
+
* `bucket.put`, see `Sp00kyConfig.blurhash`). Resolves from OPFS instantly on
|
|
523
|
+
* warm clients. `useBucketImage` / `BucketImage` bundle it with the download.
|
|
524
|
+
*/
|
|
525
|
+
declare function useBlurhash<S extends SchemaStructure>(bucketName: BucketNames<S>, path: string | null | undefined): UseBlurhashResult;
|
|
526
|
+
declare function useBlurhash<S extends SchemaStructure>(db: SyncedDb<S>, bucketName: BucketNames<S>, path: string | null | undefined): UseBlurhashResult;
|
|
527
|
+
interface UseBucketImageOptions extends UseDownloadFileOptions {
|
|
528
|
+
/** Also resolve the image's blurhash sidecar. Default `true`. */
|
|
529
|
+
blurhash?: boolean;
|
|
530
|
+
}
|
|
531
|
+
interface UseBucketImageResult extends UseDownloadFileResult {
|
|
532
|
+
/** Blurhash for the same path, or null (off, missing, still loading). */
|
|
533
|
+
blurhash: string | null;
|
|
534
|
+
/** True once the current `url` has been decoded and is safe to paint. */
|
|
535
|
+
ready: boolean;
|
|
536
|
+
/**
|
|
537
|
+
* Ref callback for the `<img>` rendering `url`: flips `ready` once the
|
|
538
|
+
* bitmap is decoded (on failure too, so a broken blob degrades to
|
|
539
|
+
* paint-on-load instead of hiding the image forever). Its identity follows
|
|
540
|
+
* `url`, so React re-runs it when the url changes.
|
|
541
|
+
*/
|
|
542
|
+
gate: (img: HTMLImageElement | null) => void;
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Everything to render a bucket image without a pop-in: the refcounted object
|
|
546
|
+
* URL, the blurhash placeholder, and a decode gate. `BucketImage` wraps this
|
|
547
|
+
* into a drop-in component; use the hook for custom markup.
|
|
548
|
+
*/
|
|
549
|
+
declare function useBucketImage<S extends SchemaStructure>(bucketName: BucketNames<S>, path: string | null | undefined, options?: UseBucketImageOptions): UseBucketImageResult;
|
|
550
|
+
declare function useBucketImage<S extends SchemaStructure>(db: SyncedDb<S>, bucketName: BucketNames<S>, path: string | null | undefined, options?: UseBucketImageOptions): UseBucketImageResult;
|
|
551
|
+
interface BlurhashProps {
|
|
552
|
+
/** The blurhash string. Nullish paints nothing (transparent canvas). */
|
|
553
|
+
hash: string | null | undefined;
|
|
554
|
+
/** Decode resolution. 32x32 is plenty; size the canvas with CSS. */
|
|
555
|
+
width?: number;
|
|
556
|
+
height?: number;
|
|
557
|
+
/** Contrast punch, see the blurhash reference decoder. Defaults to 1. */
|
|
558
|
+
punch?: number;
|
|
559
|
+
className?: string;
|
|
560
|
+
style?: CSSProperties;
|
|
561
|
+
}
|
|
562
|
+
/** A blurhash painted onto a canvas, once per hash change. */
|
|
563
|
+
declare function Blurhash({
|
|
564
|
+
hash,
|
|
565
|
+
width,
|
|
566
|
+
height,
|
|
567
|
+
punch,
|
|
568
|
+
className,
|
|
569
|
+
style
|
|
570
|
+
}: BlurhashProps): react_jsx_runtime0.JSX.Element;
|
|
571
|
+
interface BucketImageProps {
|
|
572
|
+
/** Bucket name from the schema. */
|
|
573
|
+
bucket: string;
|
|
574
|
+
/** Path within the bucket. Nullish renders only the fallback layers. */
|
|
575
|
+
path: string | null | undefined;
|
|
576
|
+
alt?: string;
|
|
577
|
+
/** Class for the container (sizing/positioning). */
|
|
578
|
+
className?: string;
|
|
579
|
+
style?: CSSProperties;
|
|
580
|
+
/** Class for the inner `<img>` (the layout styles are inline). */
|
|
581
|
+
imgClassName?: string;
|
|
582
|
+
/** `object-fit` for the image. Defaults to `cover`. */
|
|
583
|
+
fit?: CSSProperties['objectFit'];
|
|
584
|
+
/** Bottom placeholder layer, shown until the image settles. */
|
|
585
|
+
fallback?: ReactNode;
|
|
586
|
+
/** Crossfade duration in ms. Defaults to 300. */
|
|
587
|
+
transition?: number;
|
|
588
|
+
/** Crossfade easing. Defaults to an ease-out-expo curve. */
|
|
589
|
+
easing?: string;
|
|
590
|
+
/** Resolve the blurhash sidecar. Defaults to true. */
|
|
591
|
+
blurhash?: boolean;
|
|
592
|
+
/** Download tuning, forwarded to `useDownloadFile`. */
|
|
593
|
+
options?: UseBucketImageOptions;
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* A bucket image that never pops in. Layers, bottom to top: your `fallback`,
|
|
597
|
+
* the stored blurhash, and the real image, which stays transparent until its
|
|
598
|
+
* bitmap is DECODED and then crossfades in. The placeholder layers unmount
|
|
599
|
+
* once the fade settles. Respects prefers-reduced-motion. The container is
|
|
600
|
+
* made `position: relative` unless your class positions it already.
|
|
601
|
+
*/
|
|
602
|
+
declare function BucketImage(props: BucketImageProps): react_jsx_runtime0.JSX.Element;
|
|
603
|
+
//# sourceMappingURL=files.d.ts.map
|
|
604
|
+
//#endregion
|
|
605
|
+
//#region src/index.d.ts
|
|
606
|
+
type RelationshipField<Schema extends SchemaStructure, TableName extends TableNames<Schema>, Field extends RelationshipFieldsFromSchema<Schema, TableName>> = GetRelationship<Schema, TableName, Field>;
|
|
607
|
+
type RelatedFieldsTableScoped<Schema extends SchemaStructure, TableName extends TableNames<Schema>, RelatedFields extends RelationshipFieldsFromSchema<Schema, TableName> = RelationshipFieldsFromSchema<Schema, TableName>> = { [K in RelatedFields]: {
|
|
608
|
+
to: RelationshipField<Schema, TableName, K>['to'];
|
|
609
|
+
relatedFields: RelatedFieldsMap;
|
|
610
|
+
cardinality: RelationshipField<Schema, TableName, K>['cardinality'];
|
|
611
|
+
} };
|
|
612
|
+
type InferModel<Schema extends SchemaStructure, TableName extends TableNames<Schema>, RelatedFields extends RelatedFieldsTableScoped<Schema, TableName>> = QueryResult<Schema, TableName, RelatedFields, true>;
|
|
613
|
+
type WithRelated<Field extends string, RelatedFields extends RelatedFieldsMap = {}> = { [K in Field]: Omit<RelatedFieldMapEntry, 'relatedFields'> & {
|
|
614
|
+
relatedFields: RelatedFields;
|
|
615
|
+
} };
|
|
616
|
+
type WithRelatedMany<Field extends string, RelatedFields extends RelatedFieldsMap = {}> = { [K in Field]: {
|
|
617
|
+
to: Field;
|
|
618
|
+
relatedFields: RelatedFields;
|
|
619
|
+
cardinality: 'many';
|
|
620
|
+
} };
|
|
621
|
+
//#endregion
|
|
622
|
+
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, Model, ModelPayload, type PreloadOptions, type PreloadRefresh, ProvisionOptions, type PushDeviceKind, type PushNotification, type PushPayload, type QueryData, type QueryInfo, type QueryModifier, type QueryModifierBuilder, type QueryOptions, type QueryResult, type ReconnectConfig, RecordId, RelatedFieldsTableScoped, type RelationshipDefinition, RelationshipField, type RelationshipsMetadata, type Sp00kyChannel, Sp00kyProvider, type Sp00kyProviderProps, type StorageHealth, type StorageHealthStatus, type Submission, 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 UsePreloadOptions, type UseQueryResult, type UseStorageStatus, type UseSyncActivity, type UseSyncActivityOptions, 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, useAppRelease, useBlurhash, useBucketImage, useChannel, useCrdtField, useDb, useDownloadFile, useFeatureFlag, useFileUpload, useImpersonation, usePendingMutations, usePreload, useQuery, useStorageStatus, useSubmission, useSyncActivity, useSyncStatus };
|
|
623
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/types.ts","../src/db.ts","../src/provider.tsx","../src/query.ts","../src/status.ts","../src/realtime.ts","../src/files.tsx","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;KAYY,WAAW;KACX,kBAAkB;MAAU;;AADxC;AACY,UAGK,gBA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