@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.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: ({ play, onEnd: passedOnEnd, }: {
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, play, onEnd, }: {
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: ({ play, onEnd: passedOnEnd, }: {
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, play, onEnd, }: {
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: {