interview-widget 3.3.2 → 3.3.3-beta.1

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.
Files changed (63) hide show
  1. package/README.md +15 -7
  2. package/dist/StreamingAudioPlayer-DmOtqI_a-BX7ptCkK.js +430 -0
  3. package/dist/_headers +2 -0
  4. package/dist/assets/avatar_core_wasm-36bf5449.wasm +0 -0
  5. package/dist/assets/avatar_core_wasm.js +2697 -0
  6. package/dist/assets/index.d.ts +0 -11
  7. package/dist/assets/style-8JJ3h3Ol.css +1 -0
  8. package/dist/avatar_core_wasm-BIbE25D3-D94zNSYX.js +1651 -0
  9. package/dist/components/interview/interview-content.d.ts +8 -0
  10. package/dist/components/interview/interview-controller.d.ts +8 -1
  11. package/dist/components/interview/interview-header.d.ts +1 -1
  12. package/dist/components/interview/proctoring/gaze-detection/utils/types.d.ts +1 -10
  13. package/dist/components/interview/proctoring/interview-proctoring.d.ts +1 -0
  14. package/dist/components/interview/question-text.d.ts +4 -0
  15. package/dist/components/interview/transcript/interview-transcript.d.ts +1 -0
  16. package/dist/components/media/spatius-avatar-feed.d.ts +11 -0
  17. package/dist/components/media/video-feed.d.ts +4 -0
  18. package/dist/components/modals/onboarding-modal.d.ts +4 -1
  19. package/dist/components/ui/extended/chat-ui.d.ts +1 -4
  20. package/dist/context/interview-widget-context.d.ts +0 -8
  21. package/dist/context/proctoring-context.d.ts +1 -22
  22. package/dist/hooks/index.d.ts +2 -1
  23. package/dist/hooks/use-network-quality.d.ts +2 -1
  24. package/dist/hooks/use-next-question-stream.d.ts +11 -0
  25. package/dist/hooks/use-question-stream.d.ts +20 -0
  26. package/dist/hooks/use-spatius-question-stream.d.ts +22 -0
  27. package/dist/hooks/use-timer.d.ts +3 -2
  28. package/dist/hooks/use-tts.d.ts +1 -1
  29. package/dist/index-DXUDYyS8.js +17107 -0
  30. package/dist/services/api/endpoints.d.ts +2 -4
  31. package/dist/services/timer/index.d.ts +0 -1
  32. package/dist/services/tts/tts-service.d.ts +3 -2
  33. package/dist/types.d.ts +4 -0
  34. package/dist/utils/constants.d.ts +0 -5
  35. package/dist/utils/crypto.d.ts +0 -7
  36. package/dist/utils/helper.d.ts +0 -4
  37. package/dist/widget.es.3.3.3-beta.1.js +10532 -0
  38. package/dist/widget.umd.3.3.3-beta.1.js +783 -0
  39. package/package.json +10 -11
  40. package/dist/assets/clock-icon.d.ts +0 -1
  41. package/dist/assets/focus-icon.d.ts +0 -1
  42. package/dist/assets/info-icon.d.ts +0 -1
  43. package/dist/assets/keyboard-icon.d.ts +0 -1
  44. package/dist/assets/mic-off-icon.d.ts +0 -1
  45. package/dist/assets/monitor-icon.d.ts +0 -1
  46. package/dist/assets/mouse-pointer-click-icon.d.ts +0 -1
  47. package/dist/assets/scan-face-icon.d.ts +0 -1
  48. package/dist/assets/shield-icon.d.ts +0 -2
  49. package/dist/assets/speak-icon.d.ts +0 -1
  50. package/dist/assets/video-off-icon.d.ts +0 -1
  51. package/dist/assets/volumn-icon.d.ts +0 -1
  52. package/dist/components/interview/answer-area.d.ts +0 -12
  53. package/dist/components/interview/phases/interview-completion-modal.d.ts +0 -7
  54. package/dist/components/interview/proctoring/face-data-permission-modal.d.ts +0 -7
  55. package/dist/components/ui/dialog.d.ts +0 -13
  56. package/dist/components/ui/input.d.ts +0 -8
  57. package/dist/components/ui/media-control-item.d.ts +0 -8
  58. package/dist/hooks/use-dialog.d.ts +0 -6
  59. package/dist/styles.d.ts +0 -0
  60. package/dist/utils/audio-storage.d.ts +0 -24
  61. package/dist/widget.3.3.2.css +0 -1
  62. package/dist/widget.es.3.3.2.js +0 -9795
  63. package/dist/widget.umd.3.3.2.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.2",
4
+ "version": "3.3.3-beta.1",
5
5
  "description": "Advanced React interview widget with STT, TTS, camera access, and ML-powered analysis",
6
- "main": "./dist/widget.umd.3.3.2.js",
7
- "module": "./dist/widget.es.3.3.2.js",
6
+ "main": "./dist/widget.umd.3.3.3-beta.1.js",
7
+ "module": "./dist/widget.es.3.3.3-beta.1.js",
8
8
  "types": "dist/index.d.ts",
9
- "unpkg": "./dist/widget.umd.3.3.2.js",
10
- "jsdelivr": "./dist/widget.umd.3.3.2.js",
11
- "style": "./dist/widget.3.3.2.css",
9
+ "unpkg": "./dist/widget.umd.3.3.3-beta.1.js",
10
+ "jsdelivr": "./dist/widget.umd.3.3.3-beta.1.js",
11
+ "style": "./dist/assets/style-8JJ3h3Ol.css",
12
12
  "exports": {
13
13
  ".": {
14
14
  "types": "./dist/index.d.ts",
15
- "import": "./dist/widget.es.3.3.2.js",
16
- "require": "./dist/widget.umd.3.3.2.js"
15
+ "import": "./dist/widget.es.3.3.3-beta.1.js",
16
+ "require": "./dist/widget.umd.3.3.3-beta.1.js"
17
17
  },
18
- "./style.css": "./dist/widget.3.3.2.css",
18
+ "./style.css": "./dist/assets/style-8JJ3h3Ol.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,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare const ShieldIcon: (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
- import { default as React } from 'react';
2
- interface InterviewCompletionModalProps {
3
- open: boolean;
4
- onClose?: () => void;
5
- }
6
- declare const InterviewCompletionModal: React.FC<InterviewCompletionModalProps>;
7
- export { InterviewCompletionModal };
@@ -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, InputHTMLAttributes } from 'react';
2
- interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
3
- label?: string;
4
- error?: string;
5
- fullWidth?: boolean;
6
- }
7
- declare const Input: React.FC<InputProps>;
8
- export default Input;
@@ -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>;
@@ -1,6 +0,0 @@
1
- export declare const useDialog: (initialState?: boolean) => {
2
- isOpen: boolean;
3
- open: () => void;
4
- close: () => void;
5
- toggle: () => void;
6
- };
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>;