interview-widget 3.2.9 → 3.2.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.
@@ -22,6 +22,7 @@ interface InterviewContentProps {
22
22
  onAnswerChange?: ((e: React.ChangeEvent<HTMLTextAreaElement>) => void) | undefined;
23
23
  editingTime?: number | undefined;
24
24
  answeringTime?: number | undefined;
25
+ disableSubmitButton?: boolean;
25
26
  }
26
27
  export declare const InterviewContent: React.FC<InterviewContentProps>;
27
28
  export {};
@@ -5,6 +5,7 @@ interface Props {
5
5
  answeringTime: number;
6
6
  nextPhase: () => void;
7
7
  sttError: STTError | null;
8
+ disableStopButton?: boolean;
8
9
  }
9
- export declare const AnsweringPhase: ({ state, answeringTime, nextPhase, sttError, }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const AnsweringPhase: ({ state, answeringTime, nextPhase, sttError, disableStopButton, }: Props) => import("react/jsx-runtime").JSX.Element;
10
11
  export {};
@@ -2,6 +2,7 @@ import { default as React } from 'react';
2
2
  interface SubmitResponseButtonProps {
3
3
  onClick: () => void;
4
4
  text?: string;
5
+ disabled?: boolean;
5
6
  }
6
7
  export declare const SubmitResponseButton: React.FC<SubmitResponseButtonProps>;
7
8
  export {};
@@ -43,6 +43,7 @@ declare class STTService {
43
43
  private disposed;
44
44
  private pendingStopPromise;
45
45
  private isStarting;
46
+ private recordingStartTime;
46
47
  constructor(config?: STTConfig);
47
48
  /**
48
49
  * Update STT configuration
@@ -66,6 +67,14 @@ declare class STTService {
66
67
  * Stop recording and return the audio blob.
67
68
  */
68
69
  stopRecording(): Promise<Blob>;
70
+ /**
71
+ * Handle auto-stop with minimum duration enforcement
72
+ */
73
+ private handleAutoStop;
74
+ /**
75
+ * Execute the actual auto-stop with error handling
76
+ */
77
+ private executeAutoStop;
69
78
  /**
70
79
  * Transcribe audio blob using the STT API
71
80
  */