interview-widget 1.0.15 → 1.0.16
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 +10 -8
- package/dist/components/interview/interview-controller.d.ts +1 -0
- package/dist/components/interview/interview-header.d.ts +1 -0
- package/dist/components/media/video-feed.d.ts +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/utils/helper.d.ts +1 -0
- package/dist/widget.es.js +2145 -2110
- package/dist/widget.umd.js +7 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -83,6 +83,7 @@ export default function App() {
|
|
|
83
83
|
<InterviewWidget
|
|
84
84
|
interviewId="your_interview_id"
|
|
85
85
|
title="Interview for JS developer"
|
|
86
|
+
brandName="your_brand_name"
|
|
86
87
|
className="iw-rounded-none iw-shadow-none"
|
|
87
88
|
onInterviewEnd={() => {
|
|
88
89
|
console.log("🎉🎉 Interview ended 🎉🎉");
|
|
@@ -136,7 +137,7 @@ export default function App() {
|
|
|
136
137
|
},
|
|
137
138
|
},
|
|
138
139
|
},
|
|
139
|
-
React.createElement(InterviewWidget, { interviewId="your_interview_id", title: "Developer Interview", onInterviewEnd={() => {}} }
|
|
140
|
+
React.createElement(InterviewWidget, { interviewId="your_interview_id",brandName="your_brand_name", title: "Developer Interview", onInterviewEnd={() => {}} }
|
|
140
141
|
);
|
|
141
142
|
|
|
142
143
|
ReactDOM.render(app, document.getElementById("interview-widget-container"));
|
|
@@ -154,6 +155,7 @@ export default function App() {
|
|
|
154
155
|
| ----------------------- | ------------ | ------------- | --------------------------------------------------------------------------- |
|
|
155
156
|
| `interviewId` | `string` | Required | Unique interview identifier used for backend API calls |
|
|
156
157
|
| `title` | `string` | `"Interview"` | Title displayed in the interview header |
|
|
158
|
+
| `brandName` | `string` | `"Novara"` | Brand name displayed in the widget header |
|
|
157
159
|
| `onInterviewEnd` | `() => void` | `undefined` | Called when the interview completes or the user exits |
|
|
158
160
|
| `onInterviewDisqualify` | `() => void` | `undefined` | Called when the interview is disqualified (e.g., due to cheating detection) |
|
|
159
161
|
| `className` | `string` | `""` | Additional CSS classes applied to the outer widget container |
|
|
@@ -238,13 +240,13 @@ Pass this object to `InterviewWidgetProvider` via the `config` prop. Tables list
|
|
|
238
240
|
|
|
239
241
|
#### Proctoring
|
|
240
242
|
|
|
241
|
-
| Prop
|
|
242
|
-
|
|
|
243
|
-
| enabled
|
|
244
|
-
| gazeAnalysisEnabled
|
|
245
|
-
| showControls
|
|
246
|
-
| showEngagementBar
|
|
247
|
-
| showLandmarks
|
|
243
|
+
| Prop | Type | Default | Description |
|
|
244
|
+
| ------------------- | --------- | ------- | --------------------------------------------------------- |
|
|
245
|
+
| enabled | `boolean` | true | Enable/disable proctoring and cheating detection features |
|
|
246
|
+
| gazeAnalysisEnabled | `boolean` | true | Enable/disable gaze tracking and analysis |
|
|
247
|
+
| showControls | `boolean` | false | Show/hide proctoring control panel |
|
|
248
|
+
| showEngagementBar | `boolean` | true | Show/hide engagement metrics bar |
|
|
249
|
+
| showLandmarks | `boolean` | false | Show/hide facial landmark visualization |
|
|
248
250
|
|
|
249
251
|
## How it works
|
|
250
252
|
|
|
@@ -2,6 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { VideoFeedHandle } from '../media/video-feed';
|
|
3
3
|
interface InterviewControllerProps {
|
|
4
4
|
interviewTitle: string;
|
|
5
|
+
brandName?: string;
|
|
5
6
|
interviewId: string;
|
|
6
7
|
onComplete?: (() => void) | undefined;
|
|
7
8
|
onDisqualify?: (() => void) | undefined;
|
|
@@ -6,6 +6,7 @@ interface VideoFeedProps {
|
|
|
6
6
|
interviewId?: string;
|
|
7
7
|
interview_duration?: number | undefined;
|
|
8
8
|
showProctoringUI?: boolean;
|
|
9
|
+
onSetReference?: () => void;
|
|
9
10
|
}
|
|
10
11
|
declare const VideoFeed: import('react').ForwardRefExoticComponent<VideoFeedProps & import('react').RefAttributes<VideoFeedHandle>>;
|
|
11
12
|
export default VideoFeed;
|
package/dist/types.d.ts
CHANGED
package/dist/utils/helper.d.ts
CHANGED
|
@@ -6,3 +6,4 @@ export declare function sleep(ms: number): Promise<void>;
|
|
|
6
6
|
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
|
+
export declare const getFirstCapital: (str: string | null | undefined) => string;
|