interview-widget 0.0.3 → 0.0.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
@@ -1,6 +1,6 @@
1
1
  # Interview Widget
2
2
 
3
- A customizable React interview widget that can be easily embedded into any website or React application via CDN.
3
+ A customizable React interview widget that can be easily embedded into any website or React application.
4
4
 
5
5
  ## Features
6
6
 
@@ -88,8 +88,9 @@ import {
88
88
  InterviewQuestion,
89
89
  InterviewAnswer,
90
90
  } from "interview-widget";
91
+ import "interview-widget/style.css";
91
92
 
92
- function App() {
93
+ export function InterviewWidgetDemo() {
93
94
  const questions: InterviewQuestion[] = [
94
95
  {
95
96
  id: "1",
@@ -131,7 +132,7 @@ function App() {
131
132
  ### InterviewWidget Props
132
133
 
133
134
  | Prop | Type | Default | Description |
134
- | ---------------- | -------------------------------------- | ------------- | --------------------------------------- | --- |
135
+ | ---------------- | -------------------------------------- | ------------- | --------------------------------------- |
135
136
  | `title` | `string` | `"Interview"` | Title displayed in the interview header |
136
137
  | `candidateName` | `string` | `""` | Optional name of the candidate |
137
138
  | `questions` | `InterviewQuestion[]` | Required | Array of interview questions |
@@ -139,26 +140,23 @@ function App() {
139
140
  | `onComplete` | `(answers: InterviewAnswer[]) => void` | `undefined` | Callback when interview is completed |
140
141
  | `className` | `string` | `""` | Additional CSS classes |
141
142
  | `height` | `string` | `"600px"` | Height of the interview widget |
142
- | `width` | `string` | `"100%"` | Width of the interview widget | |
143
+ | `width` | `string` | `"100%"` | Width of the interview widget |
143
144
 
144
- ### InterviewQuestion Interface
145
+ ## Browser Support
145
146
 
146
- ```typescript
147
- interface InterviewQuestion {
148
- id: string;
149
- text: string;
150
- type?: "text" | "code" | "multiple-choice";
151
- options?: string[]; // For multiple choice questions
152
- timestamp: Date;
153
- }
154
- ```
147
+ - Chrome (latest)
148
+ - Firefox (latest)
149
+ - Safari (latest)
150
+ - Edge (latest)
155
151
 
156
- ### InterviewAnswer Interface
152
+ ## License
157
153
 
158
- ```typescript
159
- interface InterviewAnswer {
160
- questionId: string;
161
- answerText: string;
162
- timestamp: Date;
163
- }
164
- ```
154
+ MIT License - see LICENSE file for details.
155
+
156
+ ## Contributing
157
+
158
+ 1. Fork the repository
159
+ 2. Create a feature branch
160
+ 3. Make your changes
161
+ 4. Add tests if applicable
162
+ 5. Submit a pull request
File without changes
package/package.json CHANGED
@@ -1,13 +1,22 @@
1
1
  {
2
2
  "name": "interview-widget",
3
3
  "type": "module",
4
- "version": "0.0.3",
4
+ "version": "0.0.4",
5
5
  "description": "Advanced React interview widget with STT, TTS, camera access, and ML-powered analysis",
6
6
  "main": "dist/widget.umd.js",
7
7
  "module": "dist/widget.es.js",
8
8
  "types": "dist/index.d.ts",
9
9
  "unpkg": "dist/widget.umd.js",
10
10
  "jsdelivr": "dist/widget.umd.js",
11
+ "style": "dist/widget.css",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/widget.es.js",
16
+ "require": "./dist/widget.umd.js"
17
+ },
18
+ "./style.css": "./dist/widget.css"
19
+ },
11
20
  "files": [
12
21
  "dist"
13
22
  ],