@myinterview/widget-react 1.0.14-beta → 1.0.14-beta-testing-styles
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/dist/esm/components/Widget.d.ts +0 -1
- package/dist/esm/index.js +7736 -7645
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/candidateInterface.d.ts +4 -1
- package/dist/esm/interfaces/videoInterface.d.ts +1 -1
- package/dist/esm/utils/constants.utils.d.ts +1 -0
- package/dist/index.d.ts +5 -2
- package/package.json +113 -9
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export interface ICandidate {
|
|
2
2
|
candidate_id?: string;
|
|
3
3
|
email: string;
|
|
4
|
-
username
|
|
4
|
+
username?: string;
|
|
5
5
|
phone?: string;
|
|
6
6
|
video_id?: string;
|
|
7
7
|
redirectUrl?: string;
|
|
8
|
+
additionalData?: object;
|
|
9
|
+
disableResume?: boolean;
|
|
10
|
+
reapply?: boolean;
|
|
8
11
|
apiKey?: string;
|
|
9
12
|
company_id?: string;
|
|
10
13
|
}
|
|
@@ -10,3 +10,4 @@ export declare const SPEED_TEST_TIMEOUT = 5000;
|
|
|
10
10
|
export declare const VIDEO_INACTIVE_TIMEOUT = 2000;
|
|
11
11
|
export declare const MICROPHONE_NO_SOUND_ERROR_CODE = 777;
|
|
12
12
|
export declare const MAX_FAILED_RECORDING_ATTEMPTS = 2;
|
|
13
|
+
export declare const MICROPHONE_RETAKE_COUNT = 100;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,10 +3,13 @@ import React, { CSSProperties } from 'react';
|
|
|
3
3
|
interface ICandidate {
|
|
4
4
|
candidate_id?: string;
|
|
5
5
|
email: string;
|
|
6
|
-
username
|
|
6
|
+
username?: string;
|
|
7
7
|
phone?: string;
|
|
8
8
|
video_id?: string;
|
|
9
9
|
redirectUrl?: string;
|
|
10
|
+
additionalData?: object;
|
|
11
|
+
disableResume?: boolean;
|
|
12
|
+
reapply?: boolean;
|
|
10
13
|
apiKey?: string;
|
|
11
14
|
company_id?: string;
|
|
12
15
|
}
|
|
@@ -74,7 +77,7 @@ interface IVideoFile {
|
|
|
74
77
|
selectedTake?: number;
|
|
75
78
|
}
|
|
76
79
|
interface IVideo {
|
|
77
|
-
video_id
|
|
80
|
+
video_id?: string;
|
|
78
81
|
bandwidth?: string;
|
|
79
82
|
clicked?: boolean;
|
|
80
83
|
started?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myinterview/widget-react",
|
|
3
|
-
"version": "1.0.14-beta",
|
|
3
|
+
"version": "1.0.14-beta-testing-styles",
|
|
4
4
|
"description": "myInterview widget v3",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"files": [
|
|
@@ -8,33 +8,80 @@
|
|
|
8
8
|
],
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
10
|
"dependencies": {
|
|
11
|
+
"@babel/core": "^7.16.0",
|
|
11
12
|
"@cloudflare/stream-react": "^1.8.0",
|
|
12
|
-
"@myinterview/component-library": "^1.0.
|
|
13
|
+
"@myinterview/component-library": "^1.0.24-beta-widget-test",
|
|
14
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
13
15
|
"@sentry/react": "^7.7.0",
|
|
14
16
|
"@sentry/tracing": "^7.7.0",
|
|
17
|
+
"@svgr/webpack": "^5.5.0",
|
|
15
18
|
"@xstate/react": "^3.0.1",
|
|
16
19
|
"axios": "^0.27.2",
|
|
20
|
+
"babel-jest": "^27.4.2",
|
|
21
|
+
"babel-loader": "^8.2.3",
|
|
22
|
+
"babel-plugin-named-asset-import": "^0.3.8",
|
|
23
|
+
"babel-preset-react-app": "^10.0.1",
|
|
24
|
+
"bfj": "^7.0.2",
|
|
25
|
+
"browserslist": "^4.18.1",
|
|
26
|
+
"camelcase": "^6.2.1",
|
|
27
|
+
"case-sensitive-paths-webpack-plugin": "^2.4.0",
|
|
17
28
|
"crypto-js": "^4.1.1",
|
|
29
|
+
"css-loader": "^6.5.1",
|
|
30
|
+
"css-minimizer-webpack-plugin": "^3.2.0",
|
|
18
31
|
"detect-incognito": "^1.0.0",
|
|
32
|
+
"dotenv": "^10.0.0",
|
|
33
|
+
"dotenv-expand": "^5.1.0",
|
|
34
|
+
"eslint": "^8.3.0",
|
|
35
|
+
"eslint-config-react-app": "^7.0.0",
|
|
36
|
+
"eslint-webpack-plugin": "^3.1.1",
|
|
37
|
+
"file-loader": "^6.2.0",
|
|
19
38
|
"fix-webm-duration": "^1.0.5",
|
|
39
|
+
"fs-extra": "^10.0.0",
|
|
40
|
+
"html-webpack-plugin": "^5.5.0",
|
|
20
41
|
"i18next": "^21.8.16",
|
|
42
|
+
"identity-obj-proxy": "^3.0.0",
|
|
43
|
+
"jest": "^27.4.3",
|
|
44
|
+
"jest-resolve": "^27.4.2",
|
|
45
|
+
"jest-watch-typeahead": "^1.0.0",
|
|
46
|
+
"mini-css-extract-plugin": "^2.4.5",
|
|
21
47
|
"platform": "^1.3.6",
|
|
48
|
+
"postcss": "^8.4.4",
|
|
49
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
50
|
+
"postcss-loader": "^6.2.1",
|
|
51
|
+
"postcss-normalize": "^10.0.1",
|
|
52
|
+
"postcss-preset-env": "^7.0.1",
|
|
53
|
+
"prompts": "^2.4.2",
|
|
54
|
+
"react-app-polyfill": "^3.0.0",
|
|
55
|
+
"react-dev-utils": "^12.0.0",
|
|
22
56
|
"react-i18next": "^11.18.5",
|
|
23
57
|
"react-player": "^2.10.1",
|
|
58
|
+
"react-refresh": "^0.11.0",
|
|
59
|
+
"react-shadow": "^19.0.3",
|
|
24
60
|
"react-use-intercom": "^2.0.0",
|
|
61
|
+
"resolve": "^1.20.0",
|
|
62
|
+
"resolve-url-loader": "^4.0.0",
|
|
25
63
|
"rxjs": "^7.5.7",
|
|
64
|
+
"sass-loader": "^12.3.0",
|
|
65
|
+
"semver": "^7.3.5",
|
|
66
|
+
"source-map-loader": "^3.0.0",
|
|
67
|
+
"style-loader": "^3.3.1",
|
|
68
|
+
"tailwindcss": "^3.0.2",
|
|
69
|
+
"terser-webpack-plugin": "^5.2.5",
|
|
26
70
|
"web-vitals": "^2.1.4",
|
|
71
|
+
"webpack": "^5.64.4",
|
|
72
|
+
"webpack-dev-server": "^4.6.0",
|
|
73
|
+
"webpack-manifest-plugin": "^4.0.2",
|
|
74
|
+
"workbox-webpack-plugin": "^6.4.1",
|
|
27
75
|
"xstate": "^4.33.2"
|
|
28
76
|
},
|
|
29
77
|
"scripts": {
|
|
30
|
-
"start": "REACT_APP_ENV=local HTTPS=true
|
|
31
|
-
"start-prod": "REACT_APP_ENV=prod HTTPS=true
|
|
32
|
-
"start-staging": "REACT_APP_ENV=staging HTTPS=true
|
|
33
|
-
"build": "
|
|
78
|
+
"start": "REACT_APP_ENV=local HTTPS=true node scripts/start.js",
|
|
79
|
+
"start-prod": "REACT_APP_ENV=prod HTTPS=true node scripts/start.js",
|
|
80
|
+
"start-staging": "REACT_APP_ENV=staging HTTPS=true node scripts/start.js",
|
|
81
|
+
"build": "node scripts/build.js",
|
|
34
82
|
"publish-prod": "REACT_APP_ENV=prod rollup -c && npm publish",
|
|
35
83
|
"publish-staging": "REACT_APP_ENV=staging rollup -c && npm publish --tag beta",
|
|
36
|
-
"test": "
|
|
37
|
-
"eject": "react-scripts eject"
|
|
84
|
+
"test": "node scripts/test.js"
|
|
38
85
|
},
|
|
39
86
|
"eslintConfig": {
|
|
40
87
|
"extends": [
|
|
@@ -79,14 +126,15 @@
|
|
|
79
126
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
80
127
|
"eslint-plugin-react": "^7.29.4",
|
|
81
128
|
"eslint-plugin-react-hooks": "^4.4.0",
|
|
129
|
+
"raw-loader": "^4.0.2",
|
|
82
130
|
"react": "^18.0.0",
|
|
83
131
|
"react-dom": "^18.0.0",
|
|
84
|
-
"react-scripts": "5.0.0",
|
|
85
132
|
"rollup": "^2.75.7",
|
|
86
133
|
"rollup-plugin-dts": "^4.2.2",
|
|
87
134
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
88
135
|
"rollup-plugin-postcss": "^4.0.2",
|
|
89
136
|
"sass": "^1.50.0",
|
|
137
|
+
"sass-to-string": "^1.6.3",
|
|
90
138
|
"typescript": "^4.7.4",
|
|
91
139
|
"webpack": "^5.73.0",
|
|
92
140
|
"webpack-cli": "^4.10.0"
|
|
@@ -95,5 +143,61 @@
|
|
|
95
143
|
"@testing-library/react": "^12.1.5 || ^13.4.0",
|
|
96
144
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
97
145
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
146
|
+
},
|
|
147
|
+
"jest": {
|
|
148
|
+
"roots": [
|
|
149
|
+
"<rootDir>/src"
|
|
150
|
+
],
|
|
151
|
+
"collectCoverageFrom": [
|
|
152
|
+
"src/**/*.{js,jsx,ts,tsx}",
|
|
153
|
+
"!src/**/*.d.ts"
|
|
154
|
+
],
|
|
155
|
+
"setupFiles": [
|
|
156
|
+
"react-app-polyfill/jsdom"
|
|
157
|
+
],
|
|
158
|
+
"setupFilesAfterEnv": [
|
|
159
|
+
"<rootDir>/src/setupTests.ts"
|
|
160
|
+
],
|
|
161
|
+
"testMatch": [
|
|
162
|
+
"<rootDir>/src/**/__tests__/**/*.{js,jsx,ts,tsx}",
|
|
163
|
+
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
|
|
164
|
+
],
|
|
165
|
+
"testEnvironment": "jsdom",
|
|
166
|
+
"transform": {
|
|
167
|
+
"^.+\\.(js|jsx|mjs|cjs|ts|tsx)$": "<rootDir>/config/jest/babelTransform.js",
|
|
168
|
+
"^.+\\.css$": "<rootDir>/config/jest/cssTransform.js",
|
|
169
|
+
"^(?!.*\\.(js|jsx|mjs|cjs|ts|tsx|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
|
|
170
|
+
},
|
|
171
|
+
"transformIgnorePatterns": [
|
|
172
|
+
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx|mjs|cjs|ts|tsx)$",
|
|
173
|
+
"^.+\\.module\\.(css|sass|scss)$"
|
|
174
|
+
],
|
|
175
|
+
"modulePaths": [],
|
|
176
|
+
"moduleNameMapper": {
|
|
177
|
+
"^react-native$": "react-native-web",
|
|
178
|
+
"^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy"
|
|
179
|
+
},
|
|
180
|
+
"moduleFileExtensions": [
|
|
181
|
+
"web.js",
|
|
182
|
+
"js",
|
|
183
|
+
"web.ts",
|
|
184
|
+
"ts",
|
|
185
|
+
"web.tsx",
|
|
186
|
+
"tsx",
|
|
187
|
+
"json",
|
|
188
|
+
"web.jsx",
|
|
189
|
+
"jsx",
|
|
190
|
+
"node"
|
|
191
|
+
],
|
|
192
|
+
"watchPlugins": [
|
|
193
|
+
"jest-watch-typeahead/filename",
|
|
194
|
+
"jest-watch-typeahead/testname"
|
|
195
|
+
],
|
|
196
|
+
"resetMocks": true
|
|
197
|
+
},
|
|
198
|
+
"babel": {
|
|
199
|
+
"presets": [
|
|
200
|
+
"react-app"
|
|
201
|
+
]
|
|
98
202
|
}
|
|
99
203
|
}
|