@superinterface/react 5.3.0-beta.2 → 5.3.0-beta.20
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 +1110 -556
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -8
- package/dist/index.d.ts +6 -8
- package/dist/index.js +1107 -553
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.cts +8 -3
- package/dist/types/index.d.ts +8 -3
- package/package.json +8 -4
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, UseCreateMessageVariables, PlayArgs, AudioRuntime, Avatar as Avatar$1, SerializedRunStep, ToolCall, MessageGroup as MessageGroup$1 } from './types/index.cjs';
|
|
2
|
+
import { MessagesPage, ThreadStorageOptions, StyleProps, SerializedMessage, UseCreateMessageVariables, PlayArgs, AudioRuntime, MessageAudioOverrides, Avatar as Avatar$1, SerializedRunStep, ToolCall, MessageGroup as MessageGroup$1 } 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';
|
|
@@ -581,7 +581,7 @@ declare const AudioThreadDialog: {
|
|
|
581
581
|
|
|
582
582
|
type Args$6 = {
|
|
583
583
|
children: React.ReactNode;
|
|
584
|
-
play?: (args: PlayArgs) => void;
|
|
584
|
+
play?: (args: PlayArgs) => Promise<void> | void;
|
|
585
585
|
onEnd?: () => void;
|
|
586
586
|
audioRuntime?: AudioRuntime;
|
|
587
587
|
} & StyleProps;
|
|
@@ -623,18 +623,16 @@ declare const useAudioThreadContext: () => {
|
|
|
623
623
|
audioRuntime: AudioRuntime | null;
|
|
624
624
|
};
|
|
625
625
|
|
|
626
|
-
declare const useTtsAudioRuntime: ({
|
|
627
|
-
play?: (args: PlayArgs) => void;
|
|
626
|
+
declare const useTtsAudioRuntime: ({ onEnd: passedOnEnd, ...overrides }: {
|
|
628
627
|
onEnd?: () => void;
|
|
629
|
-
}) => {
|
|
628
|
+
} & MessageAudioOverrides) => {
|
|
630
629
|
ttsAudioRuntime: AudioRuntime;
|
|
631
630
|
};
|
|
632
631
|
|
|
633
|
-
declare const TtsAudioRuntimeProvider: ({ children,
|
|
632
|
+
declare const TtsAudioRuntimeProvider: ({ children, onEnd, ...overrides }: {
|
|
634
633
|
children: React.ReactNode;
|
|
635
|
-
play?: (args: PlayArgs) => void;
|
|
636
634
|
onEnd?: () => void;
|
|
637
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
635
|
+
} & MessageAudioOverrides) => react_jsx_runtime.JSX.Element;
|
|
638
636
|
|
|
639
637
|
declare const useWebrtcAudioRuntime: () => {
|
|
640
638
|
webrtcAudioRuntime: {
|
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, UseCreateMessageVariables, PlayArgs, AudioRuntime, Avatar as Avatar$1, SerializedRunStep, ToolCall, MessageGroup as MessageGroup$1 } from './types/index.js';
|
|
2
|
+
import { MessagesPage, ThreadStorageOptions, StyleProps, SerializedMessage, UseCreateMessageVariables, PlayArgs, AudioRuntime, MessageAudioOverrides, Avatar as Avatar$1, SerializedRunStep, ToolCall, MessageGroup as MessageGroup$1 } 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';
|
|
@@ -581,7 +581,7 @@ declare const AudioThreadDialog: {
|
|
|
581
581
|
|
|
582
582
|
type Args$6 = {
|
|
583
583
|
children: React.ReactNode;
|
|
584
|
-
play?: (args: PlayArgs) => void;
|
|
584
|
+
play?: (args: PlayArgs) => Promise<void> | void;
|
|
585
585
|
onEnd?: () => void;
|
|
586
586
|
audioRuntime?: AudioRuntime;
|
|
587
587
|
} & StyleProps;
|
|
@@ -623,18 +623,16 @@ declare const useAudioThreadContext: () => {
|
|
|
623
623
|
audioRuntime: AudioRuntime | null;
|
|
624
624
|
};
|
|
625
625
|
|
|
626
|
-
declare const useTtsAudioRuntime: ({
|
|
627
|
-
play?: (args: PlayArgs) => void;
|
|
626
|
+
declare const useTtsAudioRuntime: ({ onEnd: passedOnEnd, ...overrides }: {
|
|
628
627
|
onEnd?: () => void;
|
|
629
|
-
}) => {
|
|
628
|
+
} & MessageAudioOverrides) => {
|
|
630
629
|
ttsAudioRuntime: AudioRuntime;
|
|
631
630
|
};
|
|
632
631
|
|
|
633
|
-
declare const TtsAudioRuntimeProvider: ({ children,
|
|
632
|
+
declare const TtsAudioRuntimeProvider: ({ children, onEnd, ...overrides }: {
|
|
634
633
|
children: React.ReactNode;
|
|
635
|
-
play?: (args: PlayArgs) => void;
|
|
636
634
|
onEnd?: () => void;
|
|
637
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
635
|
+
} & MessageAudioOverrides) => react_jsx_runtime.JSX.Element;
|
|
638
636
|
|
|
639
637
|
declare const useWebrtcAudioRuntime: () => {
|
|
640
638
|
webrtcAudioRuntime: {
|