interview-widget 3.1.1 → 3.1.3
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/proctoring/gaze-detection/config/gaze-modal-config.d.ts +1 -0
- package/dist/components/interview/proctoring/gaze-detection/hooks/use-face-analysis.d.ts +1 -1
- package/dist/components/interview/proctoring/gaze-detection/hooks/use-reference-manager.d.ts +1 -0
- package/dist/components/interview/proctoring/interview-proctoring.d.ts +1 -0
- package/dist/components/media/video-feed.d.ts +3 -1
- package/dist/utils/helper.d.ts +1 -1
- package/dist/widget.css +1 -1
- package/dist/widget.es.js +1986 -1961
- package/dist/widget.umd.js +6 -6
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -11,6 +11,7 @@ export declare const useProctoring: () => ProctoringContextType;
|
|
|
11
11
|
interface Props {
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
onDisqualify?: (() => void) | undefined;
|
|
14
|
+
isCompleted?: boolean;
|
|
14
15
|
}
|
|
15
16
|
export interface InterviewProctoringHandle {
|
|
16
17
|
exitFullScreenIntentionally: () => Promise<void>;
|
|
@@ -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:
|
|
14
|
+
onProctoringStatusChange?: (status: GazeWarningTypeValue) => void;
|
|
13
15
|
showStatusOverlay?: boolean;
|
|
14
16
|
cheatingWarningVisible?: boolean;
|
|
15
17
|
}
|
package/dist/utils/helper.d.ts
CHANGED
|
@@ -7,4 +7,4 @@ export declare function generateButtonGradient(baseColor: string): string;
|
|
|
7
7
|
export declare const generateUniqueId: () => string;
|
|
8
8
|
export declare function decodeJwt(token: string): Record<string, any> | null;
|
|
9
9
|
export declare const getFirstCapital: (str: string | null | undefined) => string;
|
|
10
|
-
export declare const formatTime: (seconds: number) => string;
|
|
10
|
+
export declare const formatTime: (seconds: number, showSec?: boolean) => string;
|