interview-widget 3.1.3 → 3.1.5
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 +1 -1
- package/dist/assets/cheverondown-icon.d.ts +3 -0
- package/dist/assets/index.d.ts +2 -0
- package/dist/assets/volumn-icon.d.ts +1 -0
- package/dist/components/media/audio-visualizer.d.ts +8 -0
- package/dist/components/media/video-feed.d.ts +2 -0
- package/dist/components/modals/onboarding-media-controls.d.ts +8 -2
- package/dist/components/ui/device-selector.d.ts +12 -0
- package/dist/hooks/use-media-devices.d.ts +14 -0
- package/dist/types.d.ts +1 -1
- package/dist/widget.css +1 -1
- package/dist/widget.es.js +3406 -3198
- package/dist/widget.umd.js +6 -6
- package/package.json +1 -1
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
|
-
"
|
|
297
|
+
"estimated_answer_duration_in_seconds": 30
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
```
|
package/dist/assets/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './bolt-icon';
|
|
|
3
3
|
export * from './bot-icon';
|
|
4
4
|
export * from './camera-off-icon';
|
|
5
5
|
export * from './check-icon';
|
|
6
|
+
export * from './cheverondown-icon';
|
|
6
7
|
export * from './clock-fading-icon';
|
|
7
8
|
export * from './clock-icon';
|
|
8
9
|
export * from './cross-icon';
|
|
@@ -22,3 +23,4 @@ export * from './target-icon';
|
|
|
22
23
|
export * from './users-icon';
|
|
23
24
|
export * from './video-icon';
|
|
24
25
|
export * from './video-off-icon';
|
|
26
|
+
export * from './volumn-icon';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VolumnIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,6 +14,8 @@ interface VideoFeedProps {
|
|
|
14
14
|
onProctoringStatusChange?: (status: GazeWarningTypeValue) => void;
|
|
15
15
|
showStatusOverlay?: boolean;
|
|
16
16
|
cheatingWarningVisible?: boolean;
|
|
17
|
+
isDeviceLoading?: boolean;
|
|
18
|
+
videoAllowed?: boolean;
|
|
17
19
|
}
|
|
18
20
|
declare const VideoFeed: import('react').ForwardRefExoticComponent<VideoFeedProps & import('react').RefAttributes<VideoFeedHandle>>;
|
|
19
21
|
export default VideoFeed;
|
|
@@ -2,8 +2,6 @@ import { default as React } from 'react';
|
|
|
2
2
|
interface OnboardingMediaControlsProps {
|
|
3
3
|
micEnabled?: boolean;
|
|
4
4
|
videoEnabled?: boolean;
|
|
5
|
-
onMicToggle?: () => void;
|
|
6
|
-
onVideoToggle?: () => void;
|
|
7
5
|
buttonText: string;
|
|
8
6
|
onButtonClick: () => void;
|
|
9
7
|
isAgreed: boolean;
|
|
@@ -11,6 +9,14 @@ interface OnboardingMediaControlsProps {
|
|
|
11
9
|
showCheckbox?: boolean;
|
|
12
10
|
showMediaIcons?: boolean;
|
|
13
11
|
disabled?: boolean;
|
|
12
|
+
audioDevices?: MediaDeviceInfo[];
|
|
13
|
+
videoDevices?: MediaDeviceInfo[];
|
|
14
|
+
selectedAudioId?: string;
|
|
15
|
+
selectedVideoId?: string;
|
|
16
|
+
onAudioChange?: (deviceId: string) => void;
|
|
17
|
+
onVideoChange?: (deviceId: string) => void;
|
|
18
|
+
audioStream?: MediaStream | null;
|
|
19
|
+
isDeviceLoading?: boolean;
|
|
14
20
|
}
|
|
15
21
|
declare const OnboardingMediaControls: React.FC<OnboardingMediaControlsProps>;
|
|
16
22
|
export declare const buttonHoverContent: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface DeviceSelectorProps {
|
|
2
|
+
icon: any;
|
|
3
|
+
devices: MediaDeviceInfo[];
|
|
4
|
+
selectedId?: string;
|
|
5
|
+
onChange?: (val: string) => void;
|
|
6
|
+
label: string;
|
|
7
|
+
showVisualizer?: boolean;
|
|
8
|
+
stream?: MediaStream | null;
|
|
9
|
+
hasPermission?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const DeviceSelector: ({ icon: Icon, devices, selectedId, onChange, label, showVisualizer, stream, hasPermission }: DeviceSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const useMediaDevices: (isOpen: boolean) => {
|
|
2
|
+
videoRef: import('react').RefObject<HTMLVideoElement | null>;
|
|
3
|
+
audioAllowed: boolean;
|
|
4
|
+
videoAllowed: boolean;
|
|
5
|
+
audioDevices: MediaDeviceInfo[];
|
|
6
|
+
videoDevices: MediaDeviceInfo[];
|
|
7
|
+
selectedAudioDeviceId: string;
|
|
8
|
+
selectedVideoDeviceId: string;
|
|
9
|
+
isDeviceLoading: boolean;
|
|
10
|
+
currentStream: MediaStream | null;
|
|
11
|
+
handleAudioChange: (deviceId: string) => Promise<void>;
|
|
12
|
+
handleVideoChange: (deviceId: string) => Promise<void>;
|
|
13
|
+
stopStream: () => void;
|
|
14
|
+
};
|
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
|
-
|
|
7
|
+
estimated_answer_duration_in_seconds: number;
|
|
8
8
|
is_interview_done: boolean;
|
|
9
9
|
interview_duration?: number;
|
|
10
10
|
}
|