@superinterface/react 3.6.3 → 3.7.1
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 +328 -363
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +155 -190
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.cts +10 -1
- package/dist/types/index.d.ts +10 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { MessagesPage, ThreadStorageOptions, StyleProps, SerializedMessage, Avatar as Avatar$1, SerializedRunStep, ToolCall } from './types/index.cjs';
|
|
2
|
+
import { MessagesPage, ThreadStorageOptions, StyleProps, SerializedMessage, UseCreateMessageVariables, Avatar as Avatar$1, SerializedRunStep, ToolCall } from './types/index.cjs';
|
|
3
3
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
4
|
import { UseInfiniteQueryOptions, InfiniteData, UseMutationOptions } from '@tanstack/react-query';
|
|
5
5
|
import * as react_hook_form from 'react-hook-form';
|
|
@@ -252,7 +252,7 @@ declare const useLatestMessage: () => {
|
|
|
252
252
|
declare const useCreateMessage: ({ onError, }?: {
|
|
253
253
|
onError?: (error: unknown) => void;
|
|
254
254
|
}) => {
|
|
255
|
-
createMessage: (
|
|
255
|
+
createMessage: (variables: UseCreateMessageVariables) => Promise<any>;
|
|
256
256
|
data: undefined;
|
|
257
257
|
variables: undefined;
|
|
258
258
|
error: null;
|
|
@@ -270,7 +270,7 @@ declare const useCreateMessage: ({ onError, }?: {
|
|
|
270
270
|
submittedAt: number;
|
|
271
271
|
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, any, any>;
|
|
272
272
|
} | {
|
|
273
|
-
createMessage: (
|
|
273
|
+
createMessage: (variables: UseCreateMessageVariables) => Promise<any>;
|
|
274
274
|
data: undefined;
|
|
275
275
|
variables: any;
|
|
276
276
|
error: null;
|
|
@@ -288,7 +288,7 @@ declare const useCreateMessage: ({ onError, }?: {
|
|
|
288
288
|
submittedAt: number;
|
|
289
289
|
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, any, any>;
|
|
290
290
|
} | {
|
|
291
|
-
createMessage: (
|
|
291
|
+
createMessage: (variables: UseCreateMessageVariables) => Promise<any>;
|
|
292
292
|
data: undefined;
|
|
293
293
|
error: any;
|
|
294
294
|
variables: any;
|
|
@@ -306,7 +306,7 @@ declare const useCreateMessage: ({ onError, }?: {
|
|
|
306
306
|
submittedAt: number;
|
|
307
307
|
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, any, any>;
|
|
308
308
|
} | {
|
|
309
|
-
createMessage: (
|
|
309
|
+
createMessage: (variables: UseCreateMessageVariables) => Promise<any>;
|
|
310
310
|
data: any;
|
|
311
311
|
error: null;
|
|
312
312
|
variables: any;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { MessagesPage, ThreadStorageOptions, StyleProps, SerializedMessage, Avatar as Avatar$1, SerializedRunStep, ToolCall } from './types/index.js';
|
|
2
|
+
import { MessagesPage, ThreadStorageOptions, StyleProps, SerializedMessage, UseCreateMessageVariables, Avatar as Avatar$1, SerializedRunStep, ToolCall } from './types/index.js';
|
|
3
3
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
4
|
import { UseInfiniteQueryOptions, InfiniteData, UseMutationOptions } from '@tanstack/react-query';
|
|
5
5
|
import * as react_hook_form from 'react-hook-form';
|
|
@@ -252,7 +252,7 @@ declare const useLatestMessage: () => {
|
|
|
252
252
|
declare const useCreateMessage: ({ onError, }?: {
|
|
253
253
|
onError?: (error: unknown) => void;
|
|
254
254
|
}) => {
|
|
255
|
-
createMessage: (
|
|
255
|
+
createMessage: (variables: UseCreateMessageVariables) => Promise<any>;
|
|
256
256
|
data: undefined;
|
|
257
257
|
variables: undefined;
|
|
258
258
|
error: null;
|
|
@@ -270,7 +270,7 @@ declare const useCreateMessage: ({ onError, }?: {
|
|
|
270
270
|
submittedAt: number;
|
|
271
271
|
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, any, any>;
|
|
272
272
|
} | {
|
|
273
|
-
createMessage: (
|
|
273
|
+
createMessage: (variables: UseCreateMessageVariables) => Promise<any>;
|
|
274
274
|
data: undefined;
|
|
275
275
|
variables: any;
|
|
276
276
|
error: null;
|
|
@@ -288,7 +288,7 @@ declare const useCreateMessage: ({ onError, }?: {
|
|
|
288
288
|
submittedAt: number;
|
|
289
289
|
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, any, any>;
|
|
290
290
|
} | {
|
|
291
|
-
createMessage: (
|
|
291
|
+
createMessage: (variables: UseCreateMessageVariables) => Promise<any>;
|
|
292
292
|
data: undefined;
|
|
293
293
|
error: any;
|
|
294
294
|
variables: any;
|
|
@@ -306,7 +306,7 @@ declare const useCreateMessage: ({ onError, }?: {
|
|
|
306
306
|
submittedAt: number;
|
|
307
307
|
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, any, any>;
|
|
308
308
|
} | {
|
|
309
|
-
createMessage: (
|
|
309
|
+
createMessage: (variables: UseCreateMessageVariables) => Promise<any>;
|
|
310
310
|
data: any;
|
|
311
311
|
error: null;
|
|
312
312
|
variables: any;
|