@superinterface/react 3.15.0 → 3.16.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 +4 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +110 -1
- package/dist/index.d.ts +110 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -720,4 +720,113 @@ declare const MessageContent: ({ message, }: {
|
|
|
720
720
|
message: SerializedMessage;
|
|
721
721
|
}) => react_jsx_runtime.JSX.Element;
|
|
722
722
|
|
|
723
|
-
|
|
723
|
+
declare const useCreateFile: ({ onError, }?: {
|
|
724
|
+
onError?: (error: unknown) => void;
|
|
725
|
+
}) => {
|
|
726
|
+
createFile: (...args: any[]) => Promise<any>;
|
|
727
|
+
data: undefined;
|
|
728
|
+
variables: undefined;
|
|
729
|
+
error: null;
|
|
730
|
+
isError: false;
|
|
731
|
+
isIdle: true;
|
|
732
|
+
isPending: false;
|
|
733
|
+
isSuccess: false;
|
|
734
|
+
status: "idle";
|
|
735
|
+
mutate: _tanstack_react_query.UseMutateFunction<any, any, {
|
|
736
|
+
[key: string]: any;
|
|
737
|
+
content: string;
|
|
738
|
+
}, any>;
|
|
739
|
+
reset: () => void;
|
|
740
|
+
context: any;
|
|
741
|
+
failureCount: number;
|
|
742
|
+
failureReason: any;
|
|
743
|
+
isPaused: boolean;
|
|
744
|
+
submittedAt: number;
|
|
745
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, {
|
|
746
|
+
[key: string]: any;
|
|
747
|
+
content: string;
|
|
748
|
+
}, any>;
|
|
749
|
+
} | {
|
|
750
|
+
createFile: (...args: any[]) => Promise<any>;
|
|
751
|
+
data: undefined;
|
|
752
|
+
variables: {
|
|
753
|
+
[key: string]: any;
|
|
754
|
+
content: string;
|
|
755
|
+
};
|
|
756
|
+
error: null;
|
|
757
|
+
isError: false;
|
|
758
|
+
isIdle: false;
|
|
759
|
+
isPending: true;
|
|
760
|
+
isSuccess: false;
|
|
761
|
+
status: "pending";
|
|
762
|
+
mutate: _tanstack_react_query.UseMutateFunction<any, any, {
|
|
763
|
+
[key: string]: any;
|
|
764
|
+
content: string;
|
|
765
|
+
}, any>;
|
|
766
|
+
reset: () => void;
|
|
767
|
+
context: any;
|
|
768
|
+
failureCount: number;
|
|
769
|
+
failureReason: any;
|
|
770
|
+
isPaused: boolean;
|
|
771
|
+
submittedAt: number;
|
|
772
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, {
|
|
773
|
+
[key: string]: any;
|
|
774
|
+
content: string;
|
|
775
|
+
}, any>;
|
|
776
|
+
} | {
|
|
777
|
+
createFile: (...args: any[]) => Promise<any>;
|
|
778
|
+
data: undefined;
|
|
779
|
+
error: any;
|
|
780
|
+
variables: {
|
|
781
|
+
[key: string]: any;
|
|
782
|
+
content: string;
|
|
783
|
+
};
|
|
784
|
+
isError: true;
|
|
785
|
+
isIdle: false;
|
|
786
|
+
isPending: false;
|
|
787
|
+
isSuccess: false;
|
|
788
|
+
status: "error";
|
|
789
|
+
mutate: _tanstack_react_query.UseMutateFunction<any, any, {
|
|
790
|
+
[key: string]: any;
|
|
791
|
+
content: string;
|
|
792
|
+
}, any>;
|
|
793
|
+
reset: () => void;
|
|
794
|
+
context: any;
|
|
795
|
+
failureCount: number;
|
|
796
|
+
failureReason: any;
|
|
797
|
+
isPaused: boolean;
|
|
798
|
+
submittedAt: number;
|
|
799
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, {
|
|
800
|
+
[key: string]: any;
|
|
801
|
+
content: string;
|
|
802
|
+
}, any>;
|
|
803
|
+
} | {
|
|
804
|
+
createFile: (...args: any[]) => Promise<any>;
|
|
805
|
+
data: any;
|
|
806
|
+
error: null;
|
|
807
|
+
variables: {
|
|
808
|
+
[key: string]: any;
|
|
809
|
+
content: string;
|
|
810
|
+
};
|
|
811
|
+
isError: false;
|
|
812
|
+
isIdle: false;
|
|
813
|
+
isPending: false;
|
|
814
|
+
isSuccess: true;
|
|
815
|
+
status: "success";
|
|
816
|
+
mutate: _tanstack_react_query.UseMutateFunction<any, any, {
|
|
817
|
+
[key: string]: any;
|
|
818
|
+
content: string;
|
|
819
|
+
}, any>;
|
|
820
|
+
reset: () => void;
|
|
821
|
+
context: any;
|
|
822
|
+
failureCount: number;
|
|
823
|
+
failureReason: any;
|
|
824
|
+
isPaused: boolean;
|
|
825
|
+
submittedAt: number;
|
|
826
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, {
|
|
827
|
+
[key: string]: any;
|
|
828
|
+
content: string;
|
|
829
|
+
}, any>;
|
|
830
|
+
};
|
|
831
|
+
|
|
832
|
+
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, MessageContent, RunStep, SourceAnnotation, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useComponents, useCreateFile, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
|
package/dist/index.d.ts
CHANGED
|
@@ -720,4 +720,113 @@ declare const MessageContent: ({ message, }: {
|
|
|
720
720
|
message: SerializedMessage;
|
|
721
721
|
}) => react_jsx_runtime.JSX.Element;
|
|
722
722
|
|
|
723
|
-
|
|
723
|
+
declare const useCreateFile: ({ onError, }?: {
|
|
724
|
+
onError?: (error: unknown) => void;
|
|
725
|
+
}) => {
|
|
726
|
+
createFile: (...args: any[]) => Promise<any>;
|
|
727
|
+
data: undefined;
|
|
728
|
+
variables: undefined;
|
|
729
|
+
error: null;
|
|
730
|
+
isError: false;
|
|
731
|
+
isIdle: true;
|
|
732
|
+
isPending: false;
|
|
733
|
+
isSuccess: false;
|
|
734
|
+
status: "idle";
|
|
735
|
+
mutate: _tanstack_react_query.UseMutateFunction<any, any, {
|
|
736
|
+
[key: string]: any;
|
|
737
|
+
content: string;
|
|
738
|
+
}, any>;
|
|
739
|
+
reset: () => void;
|
|
740
|
+
context: any;
|
|
741
|
+
failureCount: number;
|
|
742
|
+
failureReason: any;
|
|
743
|
+
isPaused: boolean;
|
|
744
|
+
submittedAt: number;
|
|
745
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, {
|
|
746
|
+
[key: string]: any;
|
|
747
|
+
content: string;
|
|
748
|
+
}, any>;
|
|
749
|
+
} | {
|
|
750
|
+
createFile: (...args: any[]) => Promise<any>;
|
|
751
|
+
data: undefined;
|
|
752
|
+
variables: {
|
|
753
|
+
[key: string]: any;
|
|
754
|
+
content: string;
|
|
755
|
+
};
|
|
756
|
+
error: null;
|
|
757
|
+
isError: false;
|
|
758
|
+
isIdle: false;
|
|
759
|
+
isPending: true;
|
|
760
|
+
isSuccess: false;
|
|
761
|
+
status: "pending";
|
|
762
|
+
mutate: _tanstack_react_query.UseMutateFunction<any, any, {
|
|
763
|
+
[key: string]: any;
|
|
764
|
+
content: string;
|
|
765
|
+
}, any>;
|
|
766
|
+
reset: () => void;
|
|
767
|
+
context: any;
|
|
768
|
+
failureCount: number;
|
|
769
|
+
failureReason: any;
|
|
770
|
+
isPaused: boolean;
|
|
771
|
+
submittedAt: number;
|
|
772
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, {
|
|
773
|
+
[key: string]: any;
|
|
774
|
+
content: string;
|
|
775
|
+
}, any>;
|
|
776
|
+
} | {
|
|
777
|
+
createFile: (...args: any[]) => Promise<any>;
|
|
778
|
+
data: undefined;
|
|
779
|
+
error: any;
|
|
780
|
+
variables: {
|
|
781
|
+
[key: string]: any;
|
|
782
|
+
content: string;
|
|
783
|
+
};
|
|
784
|
+
isError: true;
|
|
785
|
+
isIdle: false;
|
|
786
|
+
isPending: false;
|
|
787
|
+
isSuccess: false;
|
|
788
|
+
status: "error";
|
|
789
|
+
mutate: _tanstack_react_query.UseMutateFunction<any, any, {
|
|
790
|
+
[key: string]: any;
|
|
791
|
+
content: string;
|
|
792
|
+
}, any>;
|
|
793
|
+
reset: () => void;
|
|
794
|
+
context: any;
|
|
795
|
+
failureCount: number;
|
|
796
|
+
failureReason: any;
|
|
797
|
+
isPaused: boolean;
|
|
798
|
+
submittedAt: number;
|
|
799
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, {
|
|
800
|
+
[key: string]: any;
|
|
801
|
+
content: string;
|
|
802
|
+
}, any>;
|
|
803
|
+
} | {
|
|
804
|
+
createFile: (...args: any[]) => Promise<any>;
|
|
805
|
+
data: any;
|
|
806
|
+
error: null;
|
|
807
|
+
variables: {
|
|
808
|
+
[key: string]: any;
|
|
809
|
+
content: string;
|
|
810
|
+
};
|
|
811
|
+
isError: false;
|
|
812
|
+
isIdle: false;
|
|
813
|
+
isPending: false;
|
|
814
|
+
isSuccess: true;
|
|
815
|
+
status: "success";
|
|
816
|
+
mutate: _tanstack_react_query.UseMutateFunction<any, any, {
|
|
817
|
+
[key: string]: any;
|
|
818
|
+
content: string;
|
|
819
|
+
}, any>;
|
|
820
|
+
reset: () => void;
|
|
821
|
+
context: any;
|
|
822
|
+
failureCount: number;
|
|
823
|
+
failureReason: any;
|
|
824
|
+
isPaused: boolean;
|
|
825
|
+
submittedAt: number;
|
|
826
|
+
mutateAsync: _tanstack_react_query.UseMutateAsyncFunction<any, any, {
|
|
827
|
+
[key: string]: any;
|
|
828
|
+
content: string;
|
|
829
|
+
}, any>;
|
|
830
|
+
};
|
|
831
|
+
|
|
832
|
+
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, MessageContent, RunStep, SourceAnnotation, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useComponents, useCreateFile, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
|
package/dist/index.js
CHANGED
|
@@ -11939,5 +11939,5 @@ var AssistantProvider = function(t0) {
|
|
|
11939
11939
|
}
|
|
11940
11940
|
return t6;
|
|
11941
11941
|
};
|
|
11942
|
-
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, MessageContent, RunStep, SourceAnnotation, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useComponents, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
|
|
11942
|
+
export { AssistantAvatarContext, AssistantNameContext, AssistantProvider, AudioThread, AudioThreadDialog, Avatar6 as Avatar, ComponentsProvider, FunctionBase, FunctionComponentsContext, MarkdownContext, MarkdownProvider, MessageContent, RunStep, SourceAnnotation, Suggestions, SuperinterfaceProvider, Thread, ThreadDialog, ThreadDialogContext, TtsAudioRuntimeProvider, UserAvatarContext, WebrtcAudioRuntimeProvider, useAssistant, useAudioThreadContext, useComponents, useCreateFile, useCreateMessage, useIsMutatingMessage, useLatestMessage, useMarkdownContext, useMessageContext, useMessageFormContext, useMessages, useSuperinterfaceContext, useSuperinterfaceContext as useThreadContext, useThreadDialogContext, useTtsAudioRuntime, useWebrtcAudioRuntime };
|
|
11943
11943
|
//# sourceMappingURL=index.js.map
|