interview-widget 3.0.9 → 3.1.0
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/utils/types.d.ts +1 -1
- package/dist/components/interview/proctoring/interview-proctoring.d.ts +10 -0
- package/dist/components/media/video-feed.d.ts +1 -0
- package/dist/components/modals/gaze-warning-modal.d.ts +2 -1
- package/dist/components/modals/onboarding-media-controls.d.ts +1 -0
- package/dist/components/ui/media-control-item.d.ts +8 -0
- package/dist/components/ui/standalone-dialog.d.ts +13 -0
- package/dist/components/warnings/status-overlay.d.ts +4 -0
- package/dist/services/timer/timer-service.d.ts +4 -0
- package/dist/types.d.ts +2 -1
- package/dist/widget.css +1 -1
- package/dist/widget.es.js +3331 -3330
- package/dist/widget.umd.js +6 -6
- package/package.json +3 -2
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
import { ViolationType } from '../../../types';
|
|
2
|
+
interface ProctoringContextType {
|
|
3
|
+
violationCount: number;
|
|
4
|
+
violationType: ViolationType;
|
|
5
|
+
showWarningModal: boolean;
|
|
6
|
+
setShowWarningModal: (show: boolean) => void;
|
|
7
|
+
handleClose: () => void;
|
|
8
|
+
handleDisqualify: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const useProctoring: () => ProctoringContextType;
|
|
1
11
|
interface Props {
|
|
2
12
|
children: React.ReactNode;
|
|
3
13
|
onDisqualify?: (() => void) | undefined;
|
|
@@ -11,6 +11,7 @@ interface VideoFeedProps {
|
|
|
11
11
|
isAnswering?: boolean;
|
|
12
12
|
onProctoringStatusChange?: (status: string) => void;
|
|
13
13
|
showStatusOverlay?: boolean;
|
|
14
|
+
cheatingWarningVisible?: boolean;
|
|
14
15
|
}
|
|
15
16
|
declare const VideoFeed: import('react').ForwardRefExoticComponent<VideoFeedProps & import('react').RefAttributes<VideoFeedHandle>>;
|
|
16
17
|
export default VideoFeed;
|
|
@@ -3,6 +3,7 @@ interface GazeWarningModalProps {
|
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
warningType: GazeWarningTypeValue;
|
|
6
|
+
isCheatingModalOpen?: boolean;
|
|
6
7
|
}
|
|
7
|
-
export declare function GazeWarningModal({
|
|
8
|
+
export declare function GazeWarningModal({ onClose, warningType, isCheatingModalOpen, }: GazeWarningModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
8
9
|
export {};
|
|
@@ -13,4 +13,5 @@ interface OnboardingMediaControlsProps {
|
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
}
|
|
15
15
|
declare const OnboardingMediaControls: React.FC<OnboardingMediaControlsProps>;
|
|
16
|
+
export declare const buttonHoverContent: () => import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export default OnboardingMediaControls;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface MediaControlItemProps {
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
OnIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
5
|
+
OffIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const MediaControlItem: React.FC<MediaControlItemProps>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
|
+
interface StandaloneDialogProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
title?: string;
|
|
7
|
+
showCloseButton?: boolean;
|
|
8
|
+
closeOnOverlayClick?: boolean;
|
|
9
|
+
closeOnEscape?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const StandaloneDialog: React.FC<StandaloneDialogProps>;
|
|
13
|
+
export default StandaloneDialog;
|
package/dist/types.d.ts
CHANGED
|
@@ -76,6 +76,7 @@ export interface InterviewConfigResponse {
|
|
|
76
76
|
data: {
|
|
77
77
|
duration_in_minutes: number;
|
|
78
78
|
allow_answer_editing: boolean;
|
|
79
|
+
elapsed_time_in_minutes?: number;
|
|
79
80
|
};
|
|
80
81
|
}
|
|
81
82
|
export type APIErrorType = "network" | "timeout" | "server" | "client" | "auth" | "rate-limit" | "unknown";
|
|
@@ -120,7 +121,7 @@ export interface InterviewTranscriptResponse {
|
|
|
120
121
|
success: boolean;
|
|
121
122
|
message: string;
|
|
122
123
|
data: {
|
|
123
|
-
|
|
124
|
+
transcript: TranscriptMessage[];
|
|
124
125
|
};
|
|
125
126
|
error?: string | null;
|
|
126
127
|
code?: number;
|