@superinterface/react 2.10.0 → 2.11.0
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.cjs +204 -151
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -196
- package/dist/index.d.ts +2 -196
- package/dist/index.js +110 -57
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -47,6 +47,7 @@ declare const useSuperinterfaceContext: () => {
|
|
|
47
47
|
threadId: string;
|
|
48
48
|
}) => string | undefined;
|
|
49
49
|
} | null;
|
|
50
|
+
createMessageAbortControllerRef: react.MutableRefObject<AbortController | null>;
|
|
50
51
|
};
|
|
51
52
|
|
|
52
53
|
type Args$5 = Args$6;
|
|
@@ -67,7 +68,7 @@ declare const Thread: {
|
|
|
67
68
|
style?: react.CSSProperties | undefined;
|
|
68
69
|
}) => react_jsx_runtime.JSX.Element;
|
|
69
70
|
Message: ({ message, }: {
|
|
70
|
-
message:
|
|
71
|
+
message: SerializedMessage;
|
|
71
72
|
}) => react_jsx_runtime.JSX.Element;
|
|
72
73
|
NextPageSkeleton: () => react_jsx_runtime.JSX.Element | null;
|
|
73
74
|
};
|
|
@@ -150,102 +151,6 @@ declare const useMessages: () => {
|
|
|
150
151
|
isStale: boolean;
|
|
151
152
|
refetch: (options?: _tanstack_react_query.RefetchOptions | undefined) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
152
153
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
153
|
-
} | {
|
|
154
|
-
messages: SerializedMessage[];
|
|
155
|
-
data: undefined;
|
|
156
|
-
error: Error;
|
|
157
|
-
isError: true;
|
|
158
|
-
isPending: false;
|
|
159
|
-
isLoading: false;
|
|
160
|
-
isLoadingError: true;
|
|
161
|
-
isRefetchError: false;
|
|
162
|
-
isSuccess: false;
|
|
163
|
-
status: "error";
|
|
164
|
-
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions | undefined) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
165
|
-
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions | undefined) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
166
|
-
hasNextPage: boolean;
|
|
167
|
-
hasPreviousPage: boolean;
|
|
168
|
-
isFetchingNextPage: boolean;
|
|
169
|
-
isFetchingPreviousPage: boolean;
|
|
170
|
-
dataUpdatedAt: number;
|
|
171
|
-
errorUpdatedAt: number;
|
|
172
|
-
failureCount: number;
|
|
173
|
-
failureReason: Error | null;
|
|
174
|
-
errorUpdateCount: number;
|
|
175
|
-
isFetched: boolean;
|
|
176
|
-
isFetchedAfterMount: boolean;
|
|
177
|
-
isFetching: boolean;
|
|
178
|
-
isInitialLoading: boolean;
|
|
179
|
-
isPaused: boolean;
|
|
180
|
-
isPlaceholderData: boolean;
|
|
181
|
-
isRefetching: boolean;
|
|
182
|
-
isStale: boolean;
|
|
183
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions | undefined) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
184
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
185
|
-
} | {
|
|
186
|
-
messages: SerializedMessage[];
|
|
187
|
-
data: undefined;
|
|
188
|
-
error: null;
|
|
189
|
-
isError: false;
|
|
190
|
-
isPending: true;
|
|
191
|
-
isLoading: true;
|
|
192
|
-
isLoadingError: false;
|
|
193
|
-
isRefetchError: false;
|
|
194
|
-
isSuccess: false;
|
|
195
|
-
status: "pending";
|
|
196
|
-
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions | undefined) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
197
|
-
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions | undefined) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
198
|
-
hasNextPage: boolean;
|
|
199
|
-
hasPreviousPage: boolean;
|
|
200
|
-
isFetchingNextPage: boolean;
|
|
201
|
-
isFetchingPreviousPage: boolean;
|
|
202
|
-
dataUpdatedAt: number;
|
|
203
|
-
errorUpdatedAt: number;
|
|
204
|
-
failureCount: number;
|
|
205
|
-
failureReason: Error | null;
|
|
206
|
-
errorUpdateCount: number;
|
|
207
|
-
isFetched: boolean;
|
|
208
|
-
isFetchedAfterMount: boolean;
|
|
209
|
-
isFetching: boolean;
|
|
210
|
-
isInitialLoading: boolean;
|
|
211
|
-
isPaused: boolean;
|
|
212
|
-
isPlaceholderData: boolean;
|
|
213
|
-
isRefetching: boolean;
|
|
214
|
-
isStale: boolean;
|
|
215
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions | undefined) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
216
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
217
|
-
} | {
|
|
218
|
-
messages: SerializedMessage[];
|
|
219
|
-
data: undefined;
|
|
220
|
-
error: null;
|
|
221
|
-
isError: false;
|
|
222
|
-
isPending: true;
|
|
223
|
-
isLoadingError: false;
|
|
224
|
-
isRefetchError: false;
|
|
225
|
-
isSuccess: false;
|
|
226
|
-
status: "pending";
|
|
227
|
-
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions | undefined) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
228
|
-
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions | undefined) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
229
|
-
hasNextPage: boolean;
|
|
230
|
-
hasPreviousPage: boolean;
|
|
231
|
-
isFetchingNextPage: boolean;
|
|
232
|
-
isFetchingPreviousPage: boolean;
|
|
233
|
-
dataUpdatedAt: number;
|
|
234
|
-
errorUpdatedAt: number;
|
|
235
|
-
failureCount: number;
|
|
236
|
-
failureReason: Error | null;
|
|
237
|
-
errorUpdateCount: number;
|
|
238
|
-
isFetched: boolean;
|
|
239
|
-
isFetchedAfterMount: boolean;
|
|
240
|
-
isFetching: boolean;
|
|
241
|
-
isLoading: boolean;
|
|
242
|
-
isInitialLoading: boolean;
|
|
243
|
-
isPaused: boolean;
|
|
244
|
-
isPlaceholderData: boolean;
|
|
245
|
-
isRefetching: boolean;
|
|
246
|
-
isStale: boolean;
|
|
247
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions | undefined) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
248
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
249
154
|
};
|
|
250
155
|
|
|
251
156
|
declare const useMessageContext: () => {
|
|
@@ -318,105 +223,6 @@ declare const useLatestMessage: () => {
|
|
|
318
223
|
isStale: boolean;
|
|
319
224
|
refetch: (options?: _tanstack_query_core.RefetchOptions | undefined) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
320
225
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
321
|
-
} | {
|
|
322
|
-
latestMessage: SerializedMessage;
|
|
323
|
-
messages: SerializedMessage[];
|
|
324
|
-
data: undefined;
|
|
325
|
-
error: Error;
|
|
326
|
-
isError: true;
|
|
327
|
-
isPending: false;
|
|
328
|
-
isLoading: false;
|
|
329
|
-
isLoadingError: true;
|
|
330
|
-
isRefetchError: false;
|
|
331
|
-
isSuccess: false;
|
|
332
|
-
status: "error";
|
|
333
|
-
fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
334
|
-
fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
335
|
-
hasNextPage: boolean;
|
|
336
|
-
hasPreviousPage: boolean;
|
|
337
|
-
isFetchingNextPage: boolean;
|
|
338
|
-
isFetchingPreviousPage: boolean;
|
|
339
|
-
dataUpdatedAt: number;
|
|
340
|
-
errorUpdatedAt: number;
|
|
341
|
-
failureCount: number;
|
|
342
|
-
failureReason: Error | null;
|
|
343
|
-
errorUpdateCount: number;
|
|
344
|
-
isFetched: boolean;
|
|
345
|
-
isFetchedAfterMount: boolean;
|
|
346
|
-
isFetching: boolean;
|
|
347
|
-
isInitialLoading: boolean;
|
|
348
|
-
isPaused: boolean;
|
|
349
|
-
isPlaceholderData: boolean;
|
|
350
|
-
isRefetching: boolean;
|
|
351
|
-
isStale: boolean;
|
|
352
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions | undefined) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
353
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
354
|
-
} | {
|
|
355
|
-
latestMessage: SerializedMessage;
|
|
356
|
-
messages: SerializedMessage[];
|
|
357
|
-
data: undefined;
|
|
358
|
-
error: null;
|
|
359
|
-
isError: false;
|
|
360
|
-
isPending: true;
|
|
361
|
-
isLoading: true;
|
|
362
|
-
isLoadingError: false;
|
|
363
|
-
isRefetchError: false;
|
|
364
|
-
isSuccess: false;
|
|
365
|
-
status: "pending";
|
|
366
|
-
fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
367
|
-
fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
368
|
-
hasNextPage: boolean;
|
|
369
|
-
hasPreviousPage: boolean;
|
|
370
|
-
isFetchingNextPage: boolean;
|
|
371
|
-
isFetchingPreviousPage: boolean;
|
|
372
|
-
dataUpdatedAt: number;
|
|
373
|
-
errorUpdatedAt: number;
|
|
374
|
-
failureCount: number;
|
|
375
|
-
failureReason: Error | null;
|
|
376
|
-
errorUpdateCount: number;
|
|
377
|
-
isFetched: boolean;
|
|
378
|
-
isFetchedAfterMount: boolean;
|
|
379
|
-
isFetching: boolean;
|
|
380
|
-
isInitialLoading: boolean;
|
|
381
|
-
isPaused: boolean;
|
|
382
|
-
isPlaceholderData: boolean;
|
|
383
|
-
isRefetching: boolean;
|
|
384
|
-
isStale: boolean;
|
|
385
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions | undefined) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
386
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
387
|
-
} | {
|
|
388
|
-
latestMessage: SerializedMessage;
|
|
389
|
-
messages: SerializedMessage[];
|
|
390
|
-
data: undefined;
|
|
391
|
-
error: null;
|
|
392
|
-
isError: false;
|
|
393
|
-
isPending: true;
|
|
394
|
-
isLoadingError: false;
|
|
395
|
-
isRefetchError: false;
|
|
396
|
-
isSuccess: false;
|
|
397
|
-
status: "pending";
|
|
398
|
-
fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
399
|
-
fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
400
|
-
hasNextPage: boolean;
|
|
401
|
-
hasPreviousPage: boolean;
|
|
402
|
-
isFetchingNextPage: boolean;
|
|
403
|
-
isFetchingPreviousPage: boolean;
|
|
404
|
-
dataUpdatedAt: number;
|
|
405
|
-
errorUpdatedAt: number;
|
|
406
|
-
failureCount: number;
|
|
407
|
-
failureReason: Error | null;
|
|
408
|
-
errorUpdateCount: number;
|
|
409
|
-
isFetched: boolean;
|
|
410
|
-
isFetchedAfterMount: boolean;
|
|
411
|
-
isFetching: boolean;
|
|
412
|
-
isLoading: boolean;
|
|
413
|
-
isInitialLoading: boolean;
|
|
414
|
-
isPaused: boolean;
|
|
415
|
-
isPlaceholderData: boolean;
|
|
416
|
-
isRefetching: boolean;
|
|
417
|
-
isStale: boolean;
|
|
418
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions | undefined) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
419
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
420
226
|
};
|
|
421
227
|
|
|
422
228
|
declare const useCreateMessage: ({ onError, }?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ declare const useSuperinterfaceContext: () => {
|
|
|
47
47
|
threadId: string;
|
|
48
48
|
}) => string | undefined;
|
|
49
49
|
} | null;
|
|
50
|
+
createMessageAbortControllerRef: react.MutableRefObject<AbortController | null>;
|
|
50
51
|
};
|
|
51
52
|
|
|
52
53
|
type Args$5 = Args$6;
|
|
@@ -67,7 +68,7 @@ declare const Thread: {
|
|
|
67
68
|
style?: react.CSSProperties | undefined;
|
|
68
69
|
}) => react_jsx_runtime.JSX.Element;
|
|
69
70
|
Message: ({ message, }: {
|
|
70
|
-
message:
|
|
71
|
+
message: SerializedMessage;
|
|
71
72
|
}) => react_jsx_runtime.JSX.Element;
|
|
72
73
|
NextPageSkeleton: () => react_jsx_runtime.JSX.Element | null;
|
|
73
74
|
};
|
|
@@ -150,102 +151,6 @@ declare const useMessages: () => {
|
|
|
150
151
|
isStale: boolean;
|
|
151
152
|
refetch: (options?: _tanstack_react_query.RefetchOptions | undefined) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
152
153
|
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
153
|
-
} | {
|
|
154
|
-
messages: SerializedMessage[];
|
|
155
|
-
data: undefined;
|
|
156
|
-
error: Error;
|
|
157
|
-
isError: true;
|
|
158
|
-
isPending: false;
|
|
159
|
-
isLoading: false;
|
|
160
|
-
isLoadingError: true;
|
|
161
|
-
isRefetchError: false;
|
|
162
|
-
isSuccess: false;
|
|
163
|
-
status: "error";
|
|
164
|
-
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions | undefined) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
165
|
-
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions | undefined) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
166
|
-
hasNextPage: boolean;
|
|
167
|
-
hasPreviousPage: boolean;
|
|
168
|
-
isFetchingNextPage: boolean;
|
|
169
|
-
isFetchingPreviousPage: boolean;
|
|
170
|
-
dataUpdatedAt: number;
|
|
171
|
-
errorUpdatedAt: number;
|
|
172
|
-
failureCount: number;
|
|
173
|
-
failureReason: Error | null;
|
|
174
|
-
errorUpdateCount: number;
|
|
175
|
-
isFetched: boolean;
|
|
176
|
-
isFetchedAfterMount: boolean;
|
|
177
|
-
isFetching: boolean;
|
|
178
|
-
isInitialLoading: boolean;
|
|
179
|
-
isPaused: boolean;
|
|
180
|
-
isPlaceholderData: boolean;
|
|
181
|
-
isRefetching: boolean;
|
|
182
|
-
isStale: boolean;
|
|
183
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions | undefined) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
184
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
185
|
-
} | {
|
|
186
|
-
messages: SerializedMessage[];
|
|
187
|
-
data: undefined;
|
|
188
|
-
error: null;
|
|
189
|
-
isError: false;
|
|
190
|
-
isPending: true;
|
|
191
|
-
isLoading: true;
|
|
192
|
-
isLoadingError: false;
|
|
193
|
-
isRefetchError: false;
|
|
194
|
-
isSuccess: false;
|
|
195
|
-
status: "pending";
|
|
196
|
-
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions | undefined) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
197
|
-
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions | undefined) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
198
|
-
hasNextPage: boolean;
|
|
199
|
-
hasPreviousPage: boolean;
|
|
200
|
-
isFetchingNextPage: boolean;
|
|
201
|
-
isFetchingPreviousPage: boolean;
|
|
202
|
-
dataUpdatedAt: number;
|
|
203
|
-
errorUpdatedAt: number;
|
|
204
|
-
failureCount: number;
|
|
205
|
-
failureReason: Error | null;
|
|
206
|
-
errorUpdateCount: number;
|
|
207
|
-
isFetched: boolean;
|
|
208
|
-
isFetchedAfterMount: boolean;
|
|
209
|
-
isFetching: boolean;
|
|
210
|
-
isInitialLoading: boolean;
|
|
211
|
-
isPaused: boolean;
|
|
212
|
-
isPlaceholderData: boolean;
|
|
213
|
-
isRefetching: boolean;
|
|
214
|
-
isStale: boolean;
|
|
215
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions | undefined) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
216
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
217
|
-
} | {
|
|
218
|
-
messages: SerializedMessage[];
|
|
219
|
-
data: undefined;
|
|
220
|
-
error: null;
|
|
221
|
-
isError: false;
|
|
222
|
-
isPending: true;
|
|
223
|
-
isLoadingError: false;
|
|
224
|
-
isRefetchError: false;
|
|
225
|
-
isSuccess: false;
|
|
226
|
-
status: "pending";
|
|
227
|
-
fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions | undefined) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
228
|
-
fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions | undefined) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
229
|
-
hasNextPage: boolean;
|
|
230
|
-
hasPreviousPage: boolean;
|
|
231
|
-
isFetchingNextPage: boolean;
|
|
232
|
-
isFetchingPreviousPage: boolean;
|
|
233
|
-
dataUpdatedAt: number;
|
|
234
|
-
errorUpdatedAt: number;
|
|
235
|
-
failureCount: number;
|
|
236
|
-
failureReason: Error | null;
|
|
237
|
-
errorUpdateCount: number;
|
|
238
|
-
isFetched: boolean;
|
|
239
|
-
isFetchedAfterMount: boolean;
|
|
240
|
-
isFetching: boolean;
|
|
241
|
-
isLoading: boolean;
|
|
242
|
-
isInitialLoading: boolean;
|
|
243
|
-
isPaused: boolean;
|
|
244
|
-
isPlaceholderData: boolean;
|
|
245
|
-
isRefetching: boolean;
|
|
246
|
-
isStale: boolean;
|
|
247
|
-
refetch: (options?: _tanstack_react_query.RefetchOptions | undefined) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
248
|
-
fetchStatus: _tanstack_react_query.FetchStatus;
|
|
249
154
|
};
|
|
250
155
|
|
|
251
156
|
declare const useMessageContext: () => {
|
|
@@ -318,105 +223,6 @@ declare const useLatestMessage: () => {
|
|
|
318
223
|
isStale: boolean;
|
|
319
224
|
refetch: (options?: _tanstack_query_core.RefetchOptions | undefined) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
320
225
|
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
321
|
-
} | {
|
|
322
|
-
latestMessage: SerializedMessage;
|
|
323
|
-
messages: SerializedMessage[];
|
|
324
|
-
data: undefined;
|
|
325
|
-
error: Error;
|
|
326
|
-
isError: true;
|
|
327
|
-
isPending: false;
|
|
328
|
-
isLoading: false;
|
|
329
|
-
isLoadingError: true;
|
|
330
|
-
isRefetchError: false;
|
|
331
|
-
isSuccess: false;
|
|
332
|
-
status: "error";
|
|
333
|
-
fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
334
|
-
fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
335
|
-
hasNextPage: boolean;
|
|
336
|
-
hasPreviousPage: boolean;
|
|
337
|
-
isFetchingNextPage: boolean;
|
|
338
|
-
isFetchingPreviousPage: boolean;
|
|
339
|
-
dataUpdatedAt: number;
|
|
340
|
-
errorUpdatedAt: number;
|
|
341
|
-
failureCount: number;
|
|
342
|
-
failureReason: Error | null;
|
|
343
|
-
errorUpdateCount: number;
|
|
344
|
-
isFetched: boolean;
|
|
345
|
-
isFetchedAfterMount: boolean;
|
|
346
|
-
isFetching: boolean;
|
|
347
|
-
isInitialLoading: boolean;
|
|
348
|
-
isPaused: boolean;
|
|
349
|
-
isPlaceholderData: boolean;
|
|
350
|
-
isRefetching: boolean;
|
|
351
|
-
isStale: boolean;
|
|
352
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions | undefined) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
353
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
354
|
-
} | {
|
|
355
|
-
latestMessage: SerializedMessage;
|
|
356
|
-
messages: SerializedMessage[];
|
|
357
|
-
data: undefined;
|
|
358
|
-
error: null;
|
|
359
|
-
isError: false;
|
|
360
|
-
isPending: true;
|
|
361
|
-
isLoading: true;
|
|
362
|
-
isLoadingError: false;
|
|
363
|
-
isRefetchError: false;
|
|
364
|
-
isSuccess: false;
|
|
365
|
-
status: "pending";
|
|
366
|
-
fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
367
|
-
fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
368
|
-
hasNextPage: boolean;
|
|
369
|
-
hasPreviousPage: boolean;
|
|
370
|
-
isFetchingNextPage: boolean;
|
|
371
|
-
isFetchingPreviousPage: boolean;
|
|
372
|
-
dataUpdatedAt: number;
|
|
373
|
-
errorUpdatedAt: number;
|
|
374
|
-
failureCount: number;
|
|
375
|
-
failureReason: Error | null;
|
|
376
|
-
errorUpdateCount: number;
|
|
377
|
-
isFetched: boolean;
|
|
378
|
-
isFetchedAfterMount: boolean;
|
|
379
|
-
isFetching: boolean;
|
|
380
|
-
isInitialLoading: boolean;
|
|
381
|
-
isPaused: boolean;
|
|
382
|
-
isPlaceholderData: boolean;
|
|
383
|
-
isRefetching: boolean;
|
|
384
|
-
isStale: boolean;
|
|
385
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions | undefined) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
386
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
387
|
-
} | {
|
|
388
|
-
latestMessage: SerializedMessage;
|
|
389
|
-
messages: SerializedMessage[];
|
|
390
|
-
data: undefined;
|
|
391
|
-
error: null;
|
|
392
|
-
isError: false;
|
|
393
|
-
isPending: true;
|
|
394
|
-
isLoadingError: false;
|
|
395
|
-
isRefetchError: false;
|
|
396
|
-
isSuccess: false;
|
|
397
|
-
status: "pending";
|
|
398
|
-
fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
399
|
-
fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions | undefined) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
400
|
-
hasNextPage: boolean;
|
|
401
|
-
hasPreviousPage: boolean;
|
|
402
|
-
isFetchingNextPage: boolean;
|
|
403
|
-
isFetchingPreviousPage: boolean;
|
|
404
|
-
dataUpdatedAt: number;
|
|
405
|
-
errorUpdatedAt: number;
|
|
406
|
-
failureCount: number;
|
|
407
|
-
failureReason: Error | null;
|
|
408
|
-
errorUpdateCount: number;
|
|
409
|
-
isFetched: boolean;
|
|
410
|
-
isFetchedAfterMount: boolean;
|
|
411
|
-
isFetching: boolean;
|
|
412
|
-
isLoading: boolean;
|
|
413
|
-
isInitialLoading: boolean;
|
|
414
|
-
isPaused: boolean;
|
|
415
|
-
isPlaceholderData: boolean;
|
|
416
|
-
isRefetching: boolean;
|
|
417
|
-
isStale: boolean;
|
|
418
|
-
refetch: (options?: _tanstack_query_core.RefetchOptions | undefined) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
|
|
419
|
-
fetchStatus: _tanstack_query_core.FetchStatus;
|
|
420
226
|
};
|
|
421
227
|
|
|
422
228
|
declare const useCreateMessage: ({ onError, }?: {
|