@superinterface/react 3.1.0 → 3.2.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.d.cts CHANGED
@@ -118,15 +118,15 @@ declare const useMessages: () => {
118
118
  isLoading: false;
119
119
  isLoadingError: false;
120
120
  isRefetchError: true;
121
- isFetchNextPageError: false;
122
- isFetchPreviousPageError: false;
123
121
  isSuccess: false;
124
122
  status: "error";
125
123
  fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
126
124
  fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
127
125
  hasNextPage: boolean;
128
126
  hasPreviousPage: boolean;
127
+ isFetchNextPageError: boolean;
129
128
  isFetchingNextPage: boolean;
129
+ isFetchPreviousPageError: boolean;
130
130
  isFetchingPreviousPage: boolean;
131
131
  dataUpdatedAt: number;
132
132
  errorUpdatedAt: number;
@@ -143,6 +143,7 @@ declare const useMessages: () => {
143
143
  isStale: boolean;
144
144
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
145
145
  fetchStatus: _tanstack_react_query.FetchStatus;
146
+ promise: Promise<InfiniteData<TQueryFnData, unknown>>;
146
147
  } | {
147
148
  messages: SerializedMessage[];
148
149
  data: InfiniteData<TQueryFnData, unknown>;
@@ -177,6 +178,7 @@ declare const useMessages: () => {
177
178
  isStale: boolean;
178
179
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
179
180
  fetchStatus: _tanstack_react_query.FetchStatus;
181
+ promise: Promise<InfiniteData<TQueryFnData, unknown>>;
180
182
  };
181
183
 
182
184
  declare const useMessageContext: () => {
@@ -193,15 +195,15 @@ declare const useLatestMessage: () => {
193
195
  isLoading: false;
194
196
  isLoadingError: false;
195
197
  isRefetchError: true;
196
- isFetchNextPageError: false;
197
- isFetchPreviousPageError: false;
198
198
  isSuccess: false;
199
199
  status: "error";
200
200
  fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
201
201
  fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
202
202
  hasNextPage: boolean;
203
203
  hasPreviousPage: boolean;
204
+ isFetchNextPageError: boolean;
204
205
  isFetchingNextPage: boolean;
206
+ isFetchPreviousPageError: boolean;
205
207
  isFetchingPreviousPage: boolean;
206
208
  dataUpdatedAt: number;
207
209
  errorUpdatedAt: number;
@@ -218,6 +220,7 @@ declare const useLatestMessage: () => {
218
220
  isStale: boolean;
219
221
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
220
222
  fetchStatus: _tanstack_query_core.FetchStatus;
223
+ promise: Promise<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>>;
221
224
  } | {
222
225
  latestMessage: SerializedMessage;
223
226
  messages: SerializedMessage[];
@@ -253,6 +256,7 @@ declare const useLatestMessage: () => {
253
256
  isStale: boolean;
254
257
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
255
258
  fetchStatus: _tanstack_query_core.FetchStatus;
259
+ promise: Promise<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>>;
256
260
  };
257
261
 
258
262
  declare const useCreateMessage: ({ onError, }?: {
@@ -371,6 +375,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
371
375
  isStale: boolean;
372
376
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
373
377
  fetchStatus: _tanstack_react_query.FetchStatus;
378
+ promise: Promise<any>;
374
379
  } | {
375
380
  assistant: any;
376
381
  data: any;
@@ -397,6 +402,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
397
402
  isStale: boolean;
398
403
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
399
404
  fetchStatus: _tanstack_react_query.FetchStatus;
405
+ promise: Promise<any>;
400
406
  } | {
401
407
  assistant: any;
402
408
  data: undefined;
@@ -423,6 +429,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
423
429
  isStale: boolean;
424
430
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
425
431
  fetchStatus: _tanstack_react_query.FetchStatus;
432
+ promise: Promise<any>;
426
433
  } | {
427
434
  assistant: any;
428
435
  data: undefined;
@@ -449,6 +456,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
449
456
  isStale: boolean;
450
457
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
451
458
  fetchStatus: _tanstack_react_query.FetchStatus;
459
+ promise: Promise<any>;
452
460
  } | {
453
461
  assistant: any;
454
462
  data: undefined;
@@ -475,6 +483,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
475
483
  isStale: boolean;
476
484
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
477
485
  fetchStatus: _tanstack_react_query.FetchStatus;
486
+ promise: Promise<any>;
478
487
  };
479
488
 
480
489
  declare const ThreadDialog: {
@@ -573,7 +582,7 @@ declare const Suggestions: {
573
582
  declare const MarkdownContext: react.Context<{
574
583
  components: {
575
584
  p: ({ children }: JSX.IntrinsicElements["p"]) => react_jsx_runtime.JSX.Element;
576
- a: ({ children, href, download, target, }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
585
+ a: ({ children, href, download, target, }: JSX.IntrinsicElements) => react_jsx_runtime.JSX.Element;
577
586
  strong: ({ children }: JSX.IntrinsicElements["strong"]) => react_jsx_runtime.JSX.Element;
578
587
  ul: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
579
588
  ol: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
@@ -610,7 +619,7 @@ declare const MarkdownProvider: ({ children, ...rest }: {
610
619
  declare const useMarkdownContext: () => {
611
620
  components: {
612
621
  p: ({ children }: JSX.IntrinsicElements["p"]) => react_jsx_runtime.JSX.Element;
613
- a: ({ children, href, download, target, }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
622
+ a: ({ children, href, download, target, }: JSX.IntrinsicElements) => react_jsx_runtime.JSX.Element;
614
623
  strong: ({ children }: JSX.IntrinsicElements["strong"]) => react_jsx_runtime.JSX.Element;
615
624
  ul: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
616
625
  ol: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -118,15 +118,15 @@ declare const useMessages: () => {
118
118
  isLoading: false;
119
119
  isLoadingError: false;
120
120
  isRefetchError: true;
121
- isFetchNextPageError: false;
122
- isFetchPreviousPageError: false;
123
121
  isSuccess: false;
124
122
  status: "error";
125
123
  fetchNextPage: (options?: _tanstack_react_query.FetchNextPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
126
124
  fetchPreviousPage: (options?: _tanstack_react_query.FetchPreviousPageOptions) => Promise<_tanstack_react_query.InfiniteQueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
127
125
  hasNextPage: boolean;
128
126
  hasPreviousPage: boolean;
127
+ isFetchNextPageError: boolean;
129
128
  isFetchingNextPage: boolean;
129
+ isFetchPreviousPageError: boolean;
130
130
  isFetchingPreviousPage: boolean;
131
131
  dataUpdatedAt: number;
132
132
  errorUpdatedAt: number;
@@ -143,6 +143,7 @@ declare const useMessages: () => {
143
143
  isStale: boolean;
144
144
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
145
145
  fetchStatus: _tanstack_react_query.FetchStatus;
146
+ promise: Promise<InfiniteData<TQueryFnData, unknown>>;
146
147
  } | {
147
148
  messages: SerializedMessage[];
148
149
  data: InfiniteData<TQueryFnData, unknown>;
@@ -177,6 +178,7 @@ declare const useMessages: () => {
177
178
  isStale: boolean;
178
179
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<InfiniteData<TQueryFnData, unknown>, Error>>;
179
180
  fetchStatus: _tanstack_react_query.FetchStatus;
181
+ promise: Promise<InfiniteData<TQueryFnData, unknown>>;
180
182
  };
181
183
 
182
184
  declare const useMessageContext: () => {
@@ -193,15 +195,15 @@ declare const useLatestMessage: () => {
193
195
  isLoading: false;
194
196
  isLoadingError: false;
195
197
  isRefetchError: true;
196
- isFetchNextPageError: false;
197
- isFetchPreviousPageError: false;
198
198
  isSuccess: false;
199
199
  status: "error";
200
200
  fetchNextPage: (options?: _tanstack_query_core.FetchNextPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
201
201
  fetchPreviousPage: (options?: _tanstack_query_core.FetchPreviousPageOptions) => Promise<_tanstack_query_core.InfiniteQueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
202
202
  hasNextPage: boolean;
203
203
  hasPreviousPage: boolean;
204
+ isFetchNextPageError: boolean;
204
205
  isFetchingNextPage: boolean;
206
+ isFetchPreviousPageError: boolean;
205
207
  isFetchingPreviousPage: boolean;
206
208
  dataUpdatedAt: number;
207
209
  errorUpdatedAt: number;
@@ -218,6 +220,7 @@ declare const useLatestMessage: () => {
218
220
  isStale: boolean;
219
221
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
220
222
  fetchStatus: _tanstack_query_core.FetchStatus;
223
+ promise: Promise<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>>;
221
224
  } | {
222
225
  latestMessage: SerializedMessage;
223
226
  messages: SerializedMessage[];
@@ -253,6 +256,7 @@ declare const useLatestMessage: () => {
253
256
  isStale: boolean;
254
257
  refetch: (options?: _tanstack_query_core.RefetchOptions) => Promise<_tanstack_query_core.QueryObserverResult<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>, Error>>;
255
258
  fetchStatus: _tanstack_query_core.FetchStatus;
259
+ promise: Promise<_tanstack_query_core.InfiniteData<TQueryFnData, unknown>>;
256
260
  };
257
261
 
258
262
  declare const useCreateMessage: ({ onError, }?: {
@@ -371,6 +375,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
371
375
  isStale: boolean;
372
376
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
373
377
  fetchStatus: _tanstack_react_query.FetchStatus;
378
+ promise: Promise<any>;
374
379
  } | {
375
380
  assistant: any;
376
381
  data: any;
@@ -397,6 +402,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
397
402
  isStale: boolean;
398
403
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
399
404
  fetchStatus: _tanstack_react_query.FetchStatus;
405
+ promise: Promise<any>;
400
406
  } | {
401
407
  assistant: any;
402
408
  data: undefined;
@@ -423,6 +429,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
423
429
  isStale: boolean;
424
430
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
425
431
  fetchStatus: _tanstack_react_query.FetchStatus;
432
+ promise: Promise<any>;
426
433
  } | {
427
434
  assistant: any;
428
435
  data: undefined;
@@ -449,6 +456,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
449
456
  isStale: boolean;
450
457
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
451
458
  fetchStatus: _tanstack_react_query.FetchStatus;
459
+ promise: Promise<any>;
452
460
  } | {
453
461
  assistant: any;
454
462
  data: undefined;
@@ -475,6 +483,7 @@ declare const useAssistant: ({ assistantId, }: Args$5) => {
475
483
  isStale: boolean;
476
484
  refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<any, Error>>;
477
485
  fetchStatus: _tanstack_react_query.FetchStatus;
486
+ promise: Promise<any>;
478
487
  };
479
488
 
480
489
  declare const ThreadDialog: {
@@ -573,7 +582,7 @@ declare const Suggestions: {
573
582
  declare const MarkdownContext: react.Context<{
574
583
  components: {
575
584
  p: ({ children }: JSX.IntrinsicElements["p"]) => react_jsx_runtime.JSX.Element;
576
- a: ({ children, href, download, target, }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
585
+ a: ({ children, href, download, target, }: JSX.IntrinsicElements) => react_jsx_runtime.JSX.Element;
577
586
  strong: ({ children }: JSX.IntrinsicElements["strong"]) => react_jsx_runtime.JSX.Element;
578
587
  ul: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
579
588
  ol: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
@@ -610,7 +619,7 @@ declare const MarkdownProvider: ({ children, ...rest }: {
610
619
  declare const useMarkdownContext: () => {
611
620
  components: {
612
621
  p: ({ children }: JSX.IntrinsicElements["p"]) => react_jsx_runtime.JSX.Element;
613
- a: ({ children, href, download, target, }: react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>) => react_jsx_runtime.JSX.Element;
622
+ a: ({ children, href, download, target, }: JSX.IntrinsicElements) => react_jsx_runtime.JSX.Element;
614
623
  strong: ({ children }: JSX.IntrinsicElements["strong"]) => react_jsx_runtime.JSX.Element;
615
624
  ul: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;
616
625
  ol: ({ children }: JSX.IntrinsicElements["ul"]) => react_jsx_runtime.JSX.Element;