interview-widget 3.1.2 → 3.1.4

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
@@ -294,7 +294,7 @@ Fetches the configuration and metadata for a specific interview session.
294
294
  "question": "What is your experience with React?",
295
295
  "question_audio_data_base64": null,
296
296
  "audio_length_in_milliseconds": 0,
297
- "estimated_answering_duration": "00:00:30"
297
+ "estimated_answer_duration_in_seconds": 30
298
298
  }
299
299
  }
300
300
  ```
@@ -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>;
package/dist/types.d.ts CHANGED
@@ -4,7 +4,7 @@ export interface InterviewQuestionData {
4
4
  question: string;
5
5
  question_audio_data_base64: string | null;
6
6
  audio_length_in_milliseconds: number;
7
- estimated_answering_duration: string;
7
+ estimated_answer_duration_in_seconds: number;
8
8
  is_interview_done: boolean;
9
9
  interview_duration?: number;
10
10
  }
@@ -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;