@superinterface/react 5.3.0-beta.1 → 5.3.0-beta.11
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 +1228 -403
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +1227 -402
- package/dist/index.js.map +1 -1
- package/dist/types/index.d.cts +19 -2
- package/dist/types/index.d.ts +19 -2
- 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,
|
|
2
|
+
import { MessagesPage, ThreadStorageOptions, StyleProps, SerializedMessage, UseCreateMessageVariables, DefaultAudioSegment, PlayInputArgs, MessageAudioOverrides, AudioRuntime, 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';
|
|
@@ -579,9 +579,11 @@ declare const AudioThreadDialog: {
|
|
|
579
579
|
};
|
|
580
580
|
};
|
|
581
581
|
|
|
582
|
-
type Args$6 = {
|
|
582
|
+
type Args$6<TSegment = DefaultAudioSegment> = {
|
|
583
583
|
children: React.ReactNode;
|
|
584
|
-
play?: (args:
|
|
584
|
+
play?: (args: PlayInputArgs) => Promise<void> | void;
|
|
585
|
+
playSegments?: MessageAudioOverrides<TSegment>['playSegments'];
|
|
586
|
+
getSegments?: MessageAudioOverrides<TSegment>['getSegments'];
|
|
585
587
|
onEnd?: () => void;
|
|
586
588
|
audioRuntime?: AudioRuntime;
|
|
587
589
|
} & StyleProps;
|
|
@@ -589,7 +591,7 @@ type Args$6 = {
|
|
|
589
591
|
type Args$5 = Omit<Args$6, 'children'>;
|
|
590
592
|
declare const AudioThread: {
|
|
591
593
|
(props: Args$5): react_jsx_runtime.JSX.Element;
|
|
592
|
-
Root: ({ children, play, onEnd, className, style, ...rest }: Args$6) => react_jsx_runtime.JSX.Element;
|
|
594
|
+
Root: <TSegment = DefaultAudioSegment>({ children, play, playSegments, getSegments, onEnd, className, style, ...rest }: Args$6<TSegment>) => react_jsx_runtime.JSX.Element;
|
|
593
595
|
Visualization: {
|
|
594
596
|
(props: StyleProps): react_jsx_runtime.JSX.Element;
|
|
595
597
|
Root: ({ children, ...rest }: {
|
|
@@ -623,18 +625,16 @@ declare const useAudioThreadContext: () => {
|
|
|
623
625
|
audioRuntime: AudioRuntime | null;
|
|
624
626
|
};
|
|
625
627
|
|
|
626
|
-
declare const useTtsAudioRuntime: ({
|
|
627
|
-
play?: (args: PlayArgs) => void;
|
|
628
|
+
declare const useTtsAudioRuntime: <TSegment = DefaultAudioSegment>({ onEnd: passedOnEnd, ...overrides }: {
|
|
628
629
|
onEnd?: () => void;
|
|
629
|
-
}) => {
|
|
630
|
+
} & MessageAudioOverrides<TSegment>) => {
|
|
630
631
|
ttsAudioRuntime: AudioRuntime;
|
|
631
632
|
};
|
|
632
633
|
|
|
633
|
-
declare const TtsAudioRuntimeProvider: ({ children,
|
|
634
|
+
declare const TtsAudioRuntimeProvider: <TSegment = DefaultAudioSegment>({ children, onEnd, ...overrides }: {
|
|
634
635
|
children: React.ReactNode;
|
|
635
|
-
play?: (args: PlayArgs) => void;
|
|
636
636
|
onEnd?: () => void;
|
|
637
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
637
|
+
} & MessageAudioOverrides<TSegment>) => react_jsx_runtime.JSX.Element;
|
|
638
638
|
|
|
639
639
|
declare const useWebrtcAudioRuntime: () => {
|
|
640
640
|
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,
|
|
2
|
+
import { MessagesPage, ThreadStorageOptions, StyleProps, SerializedMessage, UseCreateMessageVariables, DefaultAudioSegment, PlayInputArgs, MessageAudioOverrides, AudioRuntime, 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';
|
|
@@ -579,9 +579,11 @@ declare const AudioThreadDialog: {
|
|
|
579
579
|
};
|
|
580
580
|
};
|
|
581
581
|
|
|
582
|
-
type Args$6 = {
|
|
582
|
+
type Args$6<TSegment = DefaultAudioSegment> = {
|
|
583
583
|
children: React.ReactNode;
|
|
584
|
-
play?: (args:
|
|
584
|
+
play?: (args: PlayInputArgs) => Promise<void> | void;
|
|
585
|
+
playSegments?: MessageAudioOverrides<TSegment>['playSegments'];
|
|
586
|
+
getSegments?: MessageAudioOverrides<TSegment>['getSegments'];
|
|
585
587
|
onEnd?: () => void;
|
|
586
588
|
audioRuntime?: AudioRuntime;
|
|
587
589
|
} & StyleProps;
|
|
@@ -589,7 +591,7 @@ type Args$6 = {
|
|
|
589
591
|
type Args$5 = Omit<Args$6, 'children'>;
|
|
590
592
|
declare const AudioThread: {
|
|
591
593
|
(props: Args$5): react_jsx_runtime.JSX.Element;
|
|
592
|
-
Root: ({ children, play, onEnd, className, style, ...rest }: Args$6) => react_jsx_runtime.JSX.Element;
|
|
594
|
+
Root: <TSegment = DefaultAudioSegment>({ children, play, playSegments, getSegments, onEnd, className, style, ...rest }: Args$6<TSegment>) => react_jsx_runtime.JSX.Element;
|
|
593
595
|
Visualization: {
|
|
594
596
|
(props: StyleProps): react_jsx_runtime.JSX.Element;
|
|
595
597
|
Root: ({ children, ...rest }: {
|
|
@@ -623,18 +625,16 @@ declare const useAudioThreadContext: () => {
|
|
|
623
625
|
audioRuntime: AudioRuntime | null;
|
|
624
626
|
};
|
|
625
627
|
|
|
626
|
-
declare const useTtsAudioRuntime: ({
|
|
627
|
-
play?: (args: PlayArgs) => void;
|
|
628
|
+
declare const useTtsAudioRuntime: <TSegment = DefaultAudioSegment>({ onEnd: passedOnEnd, ...overrides }: {
|
|
628
629
|
onEnd?: () => void;
|
|
629
|
-
}) => {
|
|
630
|
+
} & MessageAudioOverrides<TSegment>) => {
|
|
630
631
|
ttsAudioRuntime: AudioRuntime;
|
|
631
632
|
};
|
|
632
633
|
|
|
633
|
-
declare const TtsAudioRuntimeProvider: ({ children,
|
|
634
|
+
declare const TtsAudioRuntimeProvider: <TSegment = DefaultAudioSegment>({ children, onEnd, ...overrides }: {
|
|
634
635
|
children: React.ReactNode;
|
|
635
|
-
play?: (args: PlayArgs) => void;
|
|
636
636
|
onEnd?: () => void;
|
|
637
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
637
|
+
} & MessageAudioOverrides<TSegment>) => react_jsx_runtime.JSX.Element;
|
|
638
638
|
|
|
639
639
|
declare const useWebrtcAudioRuntime: () => {
|
|
640
640
|
webrtcAudioRuntime: {
|