@superinterface/react 2.0.7 → 2.0.8

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
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { MessagesPage, Message } from './types/index.cjs';
3
3
  import { UseInfiniteQueryOptions, InfiniteData, UseMutationOptions } from '@tanstack/react-query';
4
- export { u as useSuperinterfaceContext, u as useThreadContext } from './index-Dp6WTBGJ.cjs';
4
+ export { u as useSuperinterfaceContext, u as useThreadContext } from './index-u67QcaWg.cjs';
5
5
  import * as react from 'react';
6
6
  import { Dispatch, SetStateAction } from 'react';
7
7
  import * as _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw from '@tanstack/query-core/build/legacy/queryClient-Ho-z40Sw';
@@ -395,7 +395,9 @@ declare const useLatestMessage: () => {
395
395
  fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
396
396
  };
397
397
 
398
- declare const useCreateMessage: () => {
398
+ declare const useCreateMessage: ({ onError, }?: {
399
+ onError?: ((error: unknown) => void) | undefined;
400
+ }) => {
399
401
  createMessage: (restobj: Omit<{
400
402
  [key: string]: any;
401
403
  content: string;
@@ -567,7 +569,9 @@ declare const AudioThread: {
567
569
  Form: () => react_jsx_runtime.JSX.Element;
568
570
  };
569
571
 
570
- declare const useCreateRun: () => {
572
+ declare const useCreateRun: ({ onError, }?: {
573
+ onError?: ((error: unknown) => void) | undefined;
574
+ }) => {
571
575
  createRun: (restobj: Omit<{
572
576
  [key: string]: any;
573
577
  content: string;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { MessagesPage, Message } from './types/index.js';
3
3
  import { UseInfiniteQueryOptions, InfiniteData, UseMutationOptions } from '@tanstack/react-query';
4
- export { u as useSuperinterfaceContext, u as useThreadContext } from './index-Dp6WTBGJ.js';
4
+ export { u as useSuperinterfaceContext, u as useThreadContext } from './index-u67QcaWg.js';
5
5
  import * as react from 'react';
6
6
  import { Dispatch, SetStateAction } from 'react';
7
7
  import * as _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw from '@tanstack/query-core/build/legacy/queryClient-Ho-z40Sw';
@@ -395,7 +395,9 @@ declare const useLatestMessage: () => {
395
395
  fetchStatus: _tanstack_query_core_build_legacy_queryClient_Ho_z40Sw.a8;
396
396
  };
397
397
 
398
- declare const useCreateMessage: () => {
398
+ declare const useCreateMessage: ({ onError, }?: {
399
+ onError?: ((error: unknown) => void) | undefined;
400
+ }) => {
399
401
  createMessage: (restobj: Omit<{
400
402
  [key: string]: any;
401
403
  content: string;
@@ -567,7 +569,9 @@ declare const AudioThread: {
567
569
  Form: () => react_jsx_runtime.JSX.Element;
568
570
  };
569
571
 
570
- declare const useCreateRun: () => {
572
+ declare const useCreateRun: ({ onError, }?: {
573
+ onError?: ((error: unknown) => void) | undefined;
574
+ }) => {
571
575
  createRun: (restobj: Omit<{
572
576
  [key: string]: any;
573
577
  content: string;