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.
@@ -49,6 +49,6 @@ export interface GazeWarningConfig {
49
49
  iconBorder: string;
50
50
  title: string;
51
51
  subtitle: string;
52
- description: string;
52
+ description?: string;
53
53
  buttonText: string;
54
54
  }
@@ -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({ isOpen, onClose, warningType, }: GazeWarningModalProps): import("react/jsx-runtime").JSX.Element | null;
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;
@@ -0,0 +1,4 @@
1
+ import { GazeWarningTypeValue } from '../interview/proctoring/gaze-detection/config/gaze-modal-config';
2
+ export declare const StatusOverlay: ({ status }: {
3
+ status: GazeWarningTypeValue;
4
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -52,6 +52,10 @@ export declare class TimerService {
52
52
  * Move to next phase
53
53
  */
54
54
  nextPhase(): void;
55
+ /**
56
+ * Set total time elapsed (e.g. from backend config)
57
+ */
58
+ setTotalTimeElapsed(seconds: number): void;
55
59
  /**
56
60
  * Manually complete the interview
57
61
  */
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
- question_answers: TranscriptMessage[];
124
+ transcript: TranscriptMessage[];
124
125
  };
125
126
  error?: string | null;
126
127
  code?: number;