interview-widget 3.3.1 → 3.3.3-beta.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/README.md +15 -4
- package/dist/StreamingAudioPlayer-DmOtqI_a-BX7ptCkK.js +430 -0
- package/dist/_headers +2 -0
- package/dist/assets/avatar_core_wasm-36bf5449.wasm +0 -0
- package/dist/assets/avatar_core_wasm.js +2697 -0
- package/dist/assets/index.d.ts +5 -12
- package/dist/assets/net-cross-icon.d.ts +1 -0
- package/dist/assets/style-8JJ3h3Ol.css +1 -0
- package/dist/assets/wifi-icon.d.ts +1 -0
- package/dist/assets/wifi-low-icon.d.ts +1 -0
- package/dist/assets/wifi-off-icon.d.ts +1 -0
- package/dist/avatar_core_wasm-BIbE25D3-D94zNSYX.js +1651 -0
- package/dist/components/interview/interview-content.d.ts +13 -0
- package/dist/components/interview/interview-controller.d.ts +8 -1
- package/dist/components/interview/interview-header.d.ts +1 -1
- package/dist/components/interview/proctoring/gaze-detection/utils/types.d.ts +1 -10
- package/dist/components/interview/proctoring/interview-proctoring.d.ts +1 -0
- package/dist/components/interview/question-text.d.ts +4 -0
- package/dist/components/interview/transcript/interview-transcript.d.ts +1 -0
- package/dist/components/media/spatius-avatar-feed.d.ts +11 -0
- package/dist/components/media/video-feed.d.ts +5 -0
- package/dist/components/modals/onboarding-modal.d.ts +4 -1
- package/dist/components/modals/retry-confirmation-modal.d.ts +9 -0
- package/dist/components/network/network-quality-bar.d.ts +6 -0
- package/dist/components/network/network-quality-config.d.ts +21 -0
- package/dist/components/network/network-warning-modal.d.ts +12 -0
- package/dist/components/ui/extended/chat-ui.d.ts +1 -4
- package/dist/context/interview-widget-context.d.ts +3 -8
- package/dist/context/proctoring-context.d.ts +1 -22
- package/dist/hooks/index.d.ts +3 -1
- package/dist/hooks/use-network-quality.d.ts +11 -0
- package/dist/hooks/use-next-question-stream.d.ts +11 -0
- package/dist/hooks/use-question-stream.d.ts +20 -0
- package/dist/hooks/use-spatius-question-stream.d.ts +22 -0
- package/dist/hooks/use-timer.d.ts +3 -2
- package/dist/hooks/use-tts.d.ts +1 -1
- package/dist/hooks/use-video-recording.d.ts +1 -1
- package/dist/index-DXUDYyS8.js +17107 -0
- package/dist/services/api/endpoints.d.ts +2 -4
- package/dist/services/stt/stt-service.d.ts +1 -0
- package/dist/services/timer/index.d.ts +0 -1
- package/dist/services/tts/tts-service.d.ts +3 -2
- package/dist/types.d.ts +7 -0
- package/dist/utils/constants.d.ts +0 -5
- package/dist/utils/crypto.d.ts +0 -7
- package/dist/utils/helper.d.ts +0 -4
- package/dist/utils/safari-audio-utils.d.ts +49 -0
- package/dist/widget.es.3.3.3-beta.0.js +10532 -0
- package/dist/widget.umd.3.3.3-beta.0.js +783 -0
- package/package.json +10 -11
- package/dist/assets/clock-icon.d.ts +0 -1
- package/dist/assets/focus-icon.d.ts +0 -1
- package/dist/assets/info-icon.d.ts +0 -1
- package/dist/assets/keyboard-icon.d.ts +0 -1
- package/dist/assets/mic-off-icon.d.ts +0 -1
- package/dist/assets/monitor-icon.d.ts +0 -1
- package/dist/assets/mouse-pointer-click-icon.d.ts +0 -1
- package/dist/assets/scan-face-icon.d.ts +0 -1
- package/dist/assets/shield-icon.d.ts +0 -2
- package/dist/assets/speak-icon.d.ts +0 -1
- package/dist/assets/video-off-icon.d.ts +0 -1
- package/dist/assets/volumn-icon.d.ts +0 -1
- package/dist/components/interview/answer-area.d.ts +0 -12
- package/dist/components/interview/phases/interview-completion-modal.d.ts +0 -7
- package/dist/components/interview/proctoring/face-data-permission-modal.d.ts +0 -7
- package/dist/components/ui/dialog.d.ts +0 -13
- package/dist/components/ui/input.d.ts +0 -8
- package/dist/components/ui/media-control-item.d.ts +0 -8
- package/dist/hooks/use-dialog.d.ts +0 -6
- package/dist/styles.d.ts +0 -0
- package/dist/utils/audio-storage.d.ts +0 -24
- package/dist/widget.3.3.1.css +0 -1
- package/dist/widget.es.3.3.1.js +0 -9366
- package/dist/widget.umd.3.3.1.js +0 -179
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "interview-widget",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.3.
|
|
4
|
+
"version": "3.3.3-beta.0",
|
|
5
5
|
"description": "Advanced React interview widget with STT, TTS, camera access, and ML-powered analysis",
|
|
6
|
-
"main": "./dist/widget.umd.3.3.
|
|
7
|
-
"module": "./dist/widget.es.3.3.
|
|
6
|
+
"main": "./dist/widget.umd.3.3.3-beta.0.js",
|
|
7
|
+
"module": "./dist/widget.es.3.3.3-beta.0.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
|
-
"unpkg": "./dist/widget.umd.3.3.
|
|
10
|
-
"jsdelivr": "./dist/widget.umd.3.3.
|
|
11
|
-
"style": "./dist/widget.3.3.
|
|
9
|
+
"unpkg": "./dist/widget.umd.3.3.3-beta.0.js",
|
|
10
|
+
"jsdelivr": "./dist/widget.umd.3.3.3-beta.0.js",
|
|
11
|
+
"style": "./dist/widget.3.3.3-beta.0.css",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
|
-
"import": "./dist/widget.es.3.3.
|
|
16
|
-
"require": "./dist/widget.umd.3.3.
|
|
15
|
+
"import": "./dist/widget.es.3.3.3-beta.0.js",
|
|
16
|
+
"require": "./dist/widget.umd.3.3.3-beta.0.js"
|
|
17
17
|
},
|
|
18
|
-
"./style.css": "./dist/widget.3.3.
|
|
18
|
+
"./style.css": "./dist/widget.3.3.3-beta.0.css",
|
|
19
19
|
"./package.json": "./package.json"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
@@ -42,11 +42,10 @@
|
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@mediapipe/tasks-vision": "0.10.32",
|
|
45
|
+
"@spatius/avatarkit": "^1.3.0",
|
|
45
46
|
"@types/node": "^22.0.0",
|
|
46
47
|
"@types/react": "19.2.0",
|
|
47
48
|
"@types/react-dom": "19.2.0",
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
49
|
-
"@typescript-eslint/parser": "^8.0.0",
|
|
50
49
|
"@vitejs/plugin-react": "^4.3.0",
|
|
51
50
|
"autoprefixer": "^10.4.20",
|
|
52
51
|
"postcss": "^8.4.47",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ClockIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const FocusIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const InfoIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const KeyboardIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MicOffIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MonitorIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const MousePointerClickIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ScanFaceIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SpeakIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const VideoOffIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const VolumnIcon: (props: React.SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { TimerState } from '../../services/timer';
|
|
3
|
-
interface AnswerAreaProps {
|
|
4
|
-
value: string;
|
|
5
|
-
onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
6
|
-
onSubmit: () => void;
|
|
7
|
-
isSubmitDisabled: boolean;
|
|
8
|
-
state: TimerState;
|
|
9
|
-
editingTime: number;
|
|
10
|
-
}
|
|
11
|
-
declare const AnswerArea: React.FC<AnswerAreaProps>;
|
|
12
|
-
export default AnswerArea;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
interface FaceDataPermissionModalProps {
|
|
2
|
-
isOpen: boolean;
|
|
3
|
-
onDecline: () => void;
|
|
4
|
-
onContinue: () => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function FaceDataPermissionModal({ isOpen, onDecline, onContinue, }: FaceDataPermissionModalProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React, ReactNode } from 'react';
|
|
2
|
-
interface DialogProps {
|
|
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 Dialog: React.FC<DialogProps>;
|
|
13
|
-
export default Dialog;
|
|
@@ -1,8 +0,0 @@
|
|
|
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>;
|
package/dist/styles.d.ts
DELETED
|
File without changes
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export interface AudioRecord {
|
|
2
|
-
id: string;
|
|
3
|
-
interviewId: string;
|
|
4
|
-
qnaId: string;
|
|
5
|
-
audioBlob: Blob;
|
|
6
|
-
mimeType: string;
|
|
7
|
-
savedAt: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Save an audio record to IndexedDB
|
|
11
|
-
*/
|
|
12
|
-
export declare function saveAudio(record: AudioRecord): Promise<void>;
|
|
13
|
-
/**
|
|
14
|
-
* Retrieve a specific audio record by its ID
|
|
15
|
-
*/
|
|
16
|
-
export declare function getAudio(id: string): Promise<AudioRecord | undefined>;
|
|
17
|
-
/**
|
|
18
|
-
* Get all audio records for a specific interview
|
|
19
|
-
*/
|
|
20
|
-
export declare function getAllAudio(interviewId: string): Promise<AudioRecord[]>;
|
|
21
|
-
/**
|
|
22
|
-
* Delete a specific audio record by its ID
|
|
23
|
-
*/
|
|
24
|
-
export declare function deleteAudio(id: string): Promise<void>;
|