@opentiny/tiny-robot 0.3.0-alpha.34 → 0.3.0-alpha.35

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.ts CHANGED
@@ -1221,6 +1221,7 @@ declare function __VLS_template_7(): {
1221
1221
  slots: {
1222
1222
  header?(_: {}): any;
1223
1223
  prefix?(_: {}): any;
1224
+ content?(_: {}): any;
1224
1225
  decorativeContent?(_: {}): any;
1225
1226
  actions?(_: {}): any;
1226
1227
  'footer-left'?(_: {}): any;
@@ -2056,6 +2057,7 @@ export declare interface BubbleSlots {
2056
2057
  export declare interface ButtonGroupConfig {
2057
2058
  file?: ControlState & fileUploadConfig;
2058
2059
  submit?: ControlState;
2060
+ voice?: VoiceButtonConfig;
2059
2061
  }
2060
2062
 
2061
2063
  export declare type ColorMode = 'light' | 'dark' | 'auto';
@@ -2928,14 +2930,30 @@ export declare interface SenderProps {
2928
2930
  stopText?: string;
2929
2931
  }
2930
2932
 
2933
+ export declare interface SpeechCallbacks {
2934
+ onStart: () => void;
2935
+ onInterim: (transcript: string) => void;
2936
+ onFinal: (transcript: string) => void;
2937
+ onEnd: (transcript?: string) => void;
2938
+ onError: (error: Error) => void;
2939
+ }
2940
+
2931
2941
  export declare interface SpeechConfig {
2942
+ customHandler?: SpeechHandler;
2932
2943
  lang?: string;
2933
2944
  continuous?: boolean;
2934
2945
  interimResults?: boolean;
2935
2946
  autoReplace?: boolean;
2947
+ onVoiceButtonClick?: (isRecording: boolean, preventDefault: () => void) => void | Promise<void>;
2936
2948
  }
2937
2949
 
2938
2950
  export declare interface SpeechHandler {
2951
+ start: (callbacks: SpeechCallbacks) => Promise<void> | void;
2952
+ stop: () => Promise<void> | void;
2953
+ isSupported: () => boolean;
2954
+ }
2955
+
2956
+ export declare interface SpeechHandlerResult {
2939
2957
  speechState: SpeechState;
2940
2958
  start: () => void;
2941
2959
  stop: () => void;
@@ -3189,6 +3207,10 @@ export declare function useTouchDevice(): {
3189
3207
  */
3190
3208
  export declare const vDropzone: Directive<DragAwareElement, DropzoneBinding>;
3191
3209
 
3210
+ declare interface VoiceButtonConfig {
3211
+ icon?: VNode | Component;
3212
+ }
3213
+
3192
3214
  export declare interface WelcomeProps {
3193
3215
  title: string;
3194
3216
  description: string;