interview-widget 3.1.0 → 3.1.2

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/README.md CHANGED
@@ -208,12 +208,14 @@ Pass this object to `InterviewWidgetProvider` via the `config` prop. Tables list
208
208
 
209
209
  ### Interview
210
210
 
211
- | Prop | Type | Default | Description |
212
- | ---------- | -------- | -------------------------------- | ------------------------------------------ |
213
- | timers | `object` | [see below](#timers) | Per-phase and global timing configuration |
214
- | stt | `object` | [see below](#stt-speech-to-text) | Speech-to-Text provider settings |
215
- | tts | `object` | [see below](#tts-text-to-speech) | Text-to-Speech provider settings |
216
- | proctoring | `object` | [see below](#proctoring) | Proctoring settings and cheating detection |
211
+ | Prop | Type | Default | Description |
212
+ | -------------------- | --------- | ------- | ------------------------------------------ |
213
+ | allow_answer_editing | `boolean` | true | Enable/disable answer editing phase |
214
+ | capture_screenshots | `boolean` | false | Enable/disable periodic screenshot captures |
215
+ | timers | `object` | [see below](#timers) | Per-phase and global timing configuration |
216
+ | stt | `object` | [see below](#stt-speech-to-text) | Speech-to-Text provider settings |
217
+ | tts | `object` | [see below](#tts-text-to-speech) | Text-to-Speech provider settings |
218
+ | proctoring | `object` | [see below](#proctoring) | Proctoring settings and cheating detection |
217
219
 
218
220
  #### Timers
219
221
 
@@ -5,6 +5,7 @@ export declare const GazeWarningType: {
5
5
  readonly MULTIPLE_FACES: "multiple_faces";
6
6
  readonly LOOKING_AWAY: "looking_away";
7
7
  readonly CAMERA_ERROR: "camera_error";
8
+ readonly MODEL_LOADING: "model_loading";
8
9
  };
9
10
  export type GazeWarningTypeValue = (typeof GazeWarningType)[keyof typeof GazeWarningType];
10
11
  export declare const warningConfigs: Record<GazeWarningTypeValue, GazeWarningConfig>;
@@ -1,4 +1,4 @@
1
- import { Landmark, FaceDetectionResult } from '../utils/types';
1
+ import { FaceDetectionResult, Landmark } from '../utils/types';
2
2
  export declare const useFaceAnalysis: () => {
3
3
  multipleFacesDetected: boolean;
4
4
  referenceFaceNotDetected: boolean;
@@ -7,5 +7,6 @@ export declare const useReferenceManager: (faceLandmarkerRef: React.RefObject<an
7
7
  noseY: number;
8
8
  }>;
9
9
  setReference: () => void;
10
+ resetReference: () => void;
10
11
  syncReference: () => void;
11
12
  };
@@ -1,5 +1,7 @@
1
+ import { GazeWarningTypeValue } from '../interview/proctoring/gaze-detection/config/gaze-modal-config';
1
2
  export interface VideoFeedHandle {
2
3
  setReference: () => void;
4
+ resetReference: () => void;
3
5
  stopCamera: () => void;
4
6
  }
5
7
  interface VideoFeedProps {
@@ -9,7 +11,7 @@ interface VideoFeedProps {
9
11
  showProctoringUI?: boolean;
10
12
  onSetReference?: () => void;
11
13
  isAnswering?: boolean;
12
- onProctoringStatusChange?: (status: string) => void;
14
+ onProctoringStatusChange?: (status: GazeWarningTypeValue) => void;
13
15
  showStatusOverlay?: boolean;
14
16
  cheatingWarningVisible?: boolean;
15
17
  }
package/dist/types.d.ts CHANGED
@@ -49,6 +49,7 @@ export interface InterviewWidgetConfig {
49
49
  };
50
50
  interview?: {
51
51
  allow_answer_editing?: boolean;
52
+ capture_screenshots?: boolean;
52
53
  timers?: {
53
54
  thinkingDuration?: number;
54
55
  answeringDuration?: number;