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.
- package/dist/components/interview/interview-content.d.ts +1 -0
- package/dist/components/interview/phases/answering-phase.d.ts +2 -1
- package/dist/components/interview/submit-response-button.d.ts +1 -0
- package/dist/services/stt/stt-service.d.ts +9 -0
- package/dist/widget.css +1 -1
- package/dist/widget.es.js +2474 -2387
- package/dist/widget.umd.js +6 -6
- package/package.json +1 -1
|
@@ -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 {};
|
|
@@ -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
|
*/
|