@myinterview/widget-react 1.1.23-that-was-21 → 1.1.23-touch-fix-attempt-01
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 +3 -7
- package/dist/cjs/components/DeviceSelector.d.ts +2 -1
- package/dist/cjs/components/Setup.d.ts +1 -0
- package/dist/cjs/components/SetupChecks.d.ts +1 -0
- package/dist/cjs/components/VideoCamera.d.ts +1 -0
- package/dist/cjs/index.js +385 -326
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/configInterface.d.ts +1 -0
- package/dist/cjs/interfaces/recorderInterface.d.ts +4 -1
- package/dist/cjs/interfaces/widgetInterface.d.ts +9 -2
- package/dist/cjs/services/event.service.d.ts +6 -1
- package/dist/cjs/utils/constants.utils.d.ts +1 -0
- package/dist/cjs/utils/debug.utils.d.ts +1 -0
- package/dist/cjs/utils/device.utils.d.ts +2 -0
- package/dist/cjs/utils/messages.utils.d.ts +1 -0
- package/dist/esm/components/DeviceSelector.d.ts +2 -1
- package/dist/esm/components/Setup.d.ts +1 -0
- package/dist/esm/components/SetupChecks.d.ts +1 -0
- package/dist/esm/components/VideoCamera.d.ts +1 -0
- package/dist/esm/index.js +370 -311
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/configInterface.d.ts +1 -0
- package/dist/esm/interfaces/recorderInterface.d.ts +4 -1
- package/dist/esm/interfaces/widgetInterface.d.ts +9 -2
- package/dist/esm/services/event.service.d.ts +6 -1
- package/dist/esm/utils/constants.utils.d.ts +1 -0
- package/dist/esm/utils/debug.utils.d.ts +1 -0
- package/dist/esm/utils/device.utils.d.ts +2 -0
- package/dist/esm/utils/messages.utils.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +44 -44
|
@@ -21,6 +21,7 @@ interface FacingMode {
|
|
|
21
21
|
exact: string;
|
|
22
22
|
}
|
|
23
23
|
export interface RecorderInterface {
|
|
24
|
+
recordWithoutVideo?: boolean;
|
|
24
25
|
facingMode: FacingMode;
|
|
25
26
|
microphoneRef: ActorRef<DoneInvokeEvent<any>> | null;
|
|
26
27
|
countDownRef: ActorRef<DoneInvokeEvent<any>> | null;
|
|
@@ -43,6 +44,7 @@ export interface RecorderInterface {
|
|
|
43
44
|
recordingTime: number;
|
|
44
45
|
durations: number;
|
|
45
46
|
isMicError: boolean;
|
|
47
|
+
isActivelyStopped: boolean;
|
|
46
48
|
}
|
|
47
49
|
export declare const enum MIME_TYPES {
|
|
48
50
|
WEBM = "video/webm",
|
|
@@ -94,7 +96,8 @@ export declare const enum ACTIONS {
|
|
|
94
96
|
UPDATE_MACHINE_FOR_NEW_QUESTION = "UPDATE_MACHINE_FOR_NEW_QUESTION",
|
|
95
97
|
SET_MEDIA_RECORDER = "SET_MEDIA_RECORDER",
|
|
96
98
|
SET_MIC_ERROR = "SET_MIC_ERROR",
|
|
97
|
-
SET_PERMISSION_LISTENER = "SET_PERMISSION_LISTENER"
|
|
99
|
+
SET_PERMISSION_LISTENER = "SET_PERMISSION_LISTENER",
|
|
100
|
+
SET_ACTIVELY_STOPPED = "SET_ACTIVELY_STOPPED"
|
|
98
101
|
}
|
|
99
102
|
export declare const enum EVENTS {
|
|
100
103
|
SET_MIC_SPEED_DETECTION = "SET_MIC_SPEED_DETECTION",
|
|
@@ -78,6 +78,7 @@ export interface InitialState {
|
|
|
78
78
|
failedRecordingMessage: IVideoCorruptedMessagesKey;
|
|
79
79
|
isResumed: boolean;
|
|
80
80
|
videoDimensions: IVideoDimensions;
|
|
81
|
+
confirmUploadedFalseCount: number;
|
|
81
82
|
}
|
|
82
83
|
export interface IWidgetMachineProps {
|
|
83
84
|
widgetMachine: State<InitialState, DoneInvokeEvent<any>, any, {
|
|
@@ -97,6 +98,7 @@ export declare const enum STATES {
|
|
|
97
98
|
SETUP__TEST__CAMERA__WAITING = "testCameraWaiting",
|
|
98
99
|
SETUP__TEST__CAMERA__ERROR = "testCameraError",
|
|
99
100
|
SETUP__TEST__CAMERA__SUCCESS = "testCameraSuccess",
|
|
101
|
+
SETUP__TEST__CAMERA__SKIP = "testCameraSkip",
|
|
100
102
|
SETUP__TEST__MICROPHONE = "testMicrophone",
|
|
101
103
|
SETUP__TEST__MICROPHONE__WAITING = "testMicrophoneWaiting",
|
|
102
104
|
SETUP__TEST__MICROPHONE__ERROR = "testMicrophoneError",
|
|
@@ -121,6 +123,7 @@ export declare const enum STATES {
|
|
|
121
123
|
RE_INIT_RECORDER__NEXT_QUESTION = "reInitRecorderNextQuestion",
|
|
122
124
|
UPLOADING = "uploading",
|
|
123
125
|
CONFIRM = "confirm",
|
|
126
|
+
CONFIRM_WATING = "confirmWaiting",
|
|
124
127
|
FINISHED = "finished",
|
|
125
128
|
ERROR = "error"
|
|
126
129
|
}
|
|
@@ -172,7 +175,8 @@ export declare const enum ACTIONS {
|
|
|
172
175
|
INCREASE_FAILED_RECORDING_ATTEMPTS = "increaseFailedRecordingAttempts",
|
|
173
176
|
RESET_FAILED_RECORDING_ATTEMPTS = "resetFailedRecordingAttempts",
|
|
174
177
|
CLEAR_VIDEO_ERROR = "clearVideoError",
|
|
175
|
-
UPDATE_VIDEO_DIMENSIONS = "updateVideoDimensions"
|
|
178
|
+
UPDATE_VIDEO_DIMENSIONS = "updateVideoDimensions",
|
|
179
|
+
UPDATE_UPLOADED_FALSE_COUNT = "updateUploadedFalseCount"
|
|
176
180
|
}
|
|
177
181
|
export declare const enum EVENTS {
|
|
178
182
|
SPAWN_UPLOADER = "SPAWN_UPLOADER",
|
|
@@ -202,6 +206,7 @@ export declare const enum SERVICES {
|
|
|
202
206
|
UPDATE_VIDEO_PART_CALL = "updateVideoPartCall"
|
|
203
207
|
}
|
|
204
208
|
export declare const enum GUARDS {
|
|
209
|
+
IS_VIDEO_RECORDING_SKIP = "isVideoRecordingSkip",
|
|
205
210
|
NO_STORAGE = "noStorage",
|
|
206
211
|
NO_RECORDER = "noRecorder",
|
|
207
212
|
IS_THINKING_TIME = "isThinkingTime",
|
|
@@ -223,7 +228,8 @@ export declare const enum GUARDS {
|
|
|
223
228
|
THERE_ARE_NO_VIDEO_QUESTIONS_TYPE = "thereAreNoVideoQuestionType",
|
|
224
229
|
IS_RECORDER_READY = "isRecorderReady",
|
|
225
230
|
IS_ASSESSMENT_QUESTION = "isAssessmentQuestion",
|
|
226
|
-
IS_TIMES_UP = "isTimesUp"
|
|
231
|
+
IS_TIMES_UP = "isTimesUp",
|
|
232
|
+
SHOULD_TRY_TO_CONFIRM = "shouldTryToConfirm"
|
|
227
233
|
}
|
|
228
234
|
export declare const enum TAGS {
|
|
229
235
|
SETUP = "setup",
|
|
@@ -232,6 +238,7 @@ export declare const enum TAGS {
|
|
|
232
238
|
DISPLAY_OUTER_VIEW = "displayOuterView",
|
|
233
239
|
DISPLAY_QUESTION = "displayQuestion",
|
|
234
240
|
DISPLAY_QUESTIONS_LIST = "displayQuestionsList",
|
|
241
|
+
DISPLAY_UPLOAD = "displayUpload",
|
|
235
242
|
LOADING = "loading"
|
|
236
243
|
}
|
|
237
244
|
export {};
|
|
@@ -43,7 +43,12 @@ export declare const enum EVENT_TYPES {
|
|
|
43
43
|
MICROPHONE_CHANGED = "microphoneChanged",
|
|
44
44
|
SOUND_RESTORED = "soundRestored",
|
|
45
45
|
TIMES_UP = "timesUp",
|
|
46
|
-
COMPLETED_INTERVIEW = "completedInterview"
|
|
46
|
+
COMPLETED_INTERVIEW = "completedInterview",
|
|
47
|
+
RECONNECTED = "reconnected",
|
|
48
|
+
CONFIRM_UPLOADED_FAILED = "confirmUploadedFailed",
|
|
49
|
+
FINISHED = "finished",
|
|
50
|
+
ON_FINISH_SUCCEED = "onFinishSucceed",
|
|
51
|
+
ON_FINISH_FAILED = "onFinishFailed"
|
|
47
52
|
}
|
|
48
53
|
export type IEventType = `${EVENT_TYPES}`;
|
|
49
54
|
export interface ITrackEvent {
|
|
@@ -17,6 +17,7 @@ export declare const DEFAULT_VIDEO_DIMENSIONS: {
|
|
|
17
17
|
width: number;
|
|
18
18
|
height: number;
|
|
19
19
|
};
|
|
20
|
+
export declare const MAX_CONFIRM_ATTEMPTS = 5;
|
|
20
21
|
export declare const FONT_URL = "https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap";
|
|
21
22
|
export declare enum RETAKE_SPEED {
|
|
22
23
|
FAST = 300,
|
|
@@ -5,6 +5,7 @@ export declare const enum DEBUG {
|
|
|
5
5
|
WELCOME_PAGE_STAGE = "In welcome page stage",
|
|
6
6
|
SETUP_STAGE = "In setup stage",
|
|
7
7
|
MEIDA_DEVICE_SUCCESS = "Media device available",
|
|
8
|
+
MEDIA_DEVICE_SWITCH_OFF = "Media device is off",
|
|
8
9
|
MEDIA_DEVICE_ERROR = "Media device error",
|
|
9
10
|
NO_SOUND_DETECTED = "No sound detected",
|
|
10
11
|
DEVICE_CHANGED = "Device changed",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const isMobile: boolean;
|
|
2
2
|
export declare const isAndroid: boolean;
|
|
3
|
+
export declare const isIphone: boolean;
|
|
3
4
|
export declare const isFireFox: boolean;
|
|
4
5
|
export declare const isSupportedIosDevice: boolean;
|
|
5
6
|
export declare const isSupportedDevice: boolean;
|
|
@@ -10,4 +11,5 @@ type DEVICE_TYPE = {
|
|
|
10
11
|
BROWSER: typeof BROWSERS_OPTIONS[number];
|
|
11
12
|
};
|
|
12
13
|
export declare const DEVICE: DEVICE_TYPE;
|
|
14
|
+
export declare const getIPhoneModel: () => string;
|
|
13
15
|
export {};
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myinterview/widget-react",
|
|
3
|
-
"version": "1.1.23-
|
|
3
|
+
"version": "1.1.23-touch-fix-attempt-01",
|
|
4
4
|
"description": "myInterview widget v3",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
@@ -10,45 +10,45 @@
|
|
|
10
10
|
"types": "dist/index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@cloudflare/stream-react": "^1.8.0",
|
|
13
|
-
"@myinterview/component-library": "
|
|
14
|
-
"@sentry/react": "
|
|
15
|
-
"@sentry/tracing": "
|
|
16
|
-
"@xstate/react": "
|
|
17
|
-
"axios": "
|
|
18
|
-
"babel-plugin-named-asset-import": "
|
|
19
|
-
"bfj": "
|
|
20
|
-
"browserslist": "
|
|
21
|
-
"camelcase": "
|
|
22
|
-
"crypto-js": "
|
|
23
|
-
"css-minimizer-webpack-plugin": "
|
|
24
|
-
"detect-incognito": "
|
|
25
|
-
"dotenv": "
|
|
26
|
-
"dotenv-expand": "
|
|
27
|
-
"fix-webm-duration": "
|
|
28
|
-
"fs-extra": "
|
|
29
|
-
"i18next": "
|
|
30
|
-
"identity-obj-proxy": "
|
|
31
|
-
"platform": "
|
|
32
|
-
"postcss": "
|
|
33
|
-
"postcss-flexbugs-fixes": "
|
|
34
|
-
"postcss-loader": "
|
|
35
|
-
"postcss-normalize": "
|
|
36
|
-
"postcss-preset-env": "
|
|
37
|
-
"prompts": "
|
|
38
|
-
"react-app-polyfill": "
|
|
39
|
-
"react-dev-utils": "
|
|
40
|
-
"react-i18next": "
|
|
41
|
-
"react-player": "
|
|
42
|
-
"react-refresh": "
|
|
43
|
-
"react-shadow": "
|
|
44
|
-
"react-use-intercom": "
|
|
45
|
-
"resolve": "
|
|
46
|
-
"resolve-url-loader": "
|
|
47
|
-
"rxjs": "
|
|
48
|
-
"semver": "
|
|
49
|
-
"web-vitals": "
|
|
50
|
-
"workbox-webpack-plugin": "
|
|
51
|
-
"xstate": "
|
|
13
|
+
"@myinterview/component-library": "1.0.45",
|
|
14
|
+
"@sentry/react": "7.52.1",
|
|
15
|
+
"@sentry/tracing": "7.52.1",
|
|
16
|
+
"@xstate/react": "3.2.2",
|
|
17
|
+
"axios": "0.27.2",
|
|
18
|
+
"babel-plugin-named-asset-import": "0.3.8",
|
|
19
|
+
"bfj": "7.0.2",
|
|
20
|
+
"browserslist": "4.21.5",
|
|
21
|
+
"camelcase": "6.3.0",
|
|
22
|
+
"crypto-js": "4.1.1",
|
|
23
|
+
"css-minimizer-webpack-plugin": "3.4.1",
|
|
24
|
+
"detect-incognito": "1.0.0",
|
|
25
|
+
"dotenv": "10.0.0",
|
|
26
|
+
"dotenv-expand": "5.1.0",
|
|
27
|
+
"fix-webm-duration": "1.0.5",
|
|
28
|
+
"fs-extra": "10.1.0",
|
|
29
|
+
"i18next": "21.10.0",
|
|
30
|
+
"identity-obj-proxy": "3.0.0",
|
|
31
|
+
"platform": "1.3.6",
|
|
32
|
+
"postcss": "8.4.23",
|
|
33
|
+
"postcss-flexbugs-fixes": "5.0.2",
|
|
34
|
+
"postcss-loader": "6.2.1",
|
|
35
|
+
"postcss-normalize": "10.0.1",
|
|
36
|
+
"postcss-preset-env": "7.8.3",
|
|
37
|
+
"prompts": "2.4.2",
|
|
38
|
+
"react-app-polyfill": "3.0.0",
|
|
39
|
+
"react-dev-utils": "12.0.1",
|
|
40
|
+
"react-i18next": "11.18.6",
|
|
41
|
+
"react-player": "2.12.0",
|
|
42
|
+
"react-refresh": "0.11.0",
|
|
43
|
+
"react-shadow": "20.0.0",
|
|
44
|
+
"react-use-intercom": "2.1.0",
|
|
45
|
+
"resolve": "1.22.0",
|
|
46
|
+
"resolve-url-loader": "4.0.0",
|
|
47
|
+
"rxjs": "7.8.1",
|
|
48
|
+
"semver": "7.5.1",
|
|
49
|
+
"web-vitals": "2.1.4",
|
|
50
|
+
"workbox-webpack-plugin": "6.5.4",
|
|
51
|
+
"xstate": "4.37.2"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|
|
54
54
|
"start": "REACT_APP_RELEASE=$npm_package_version REACT_APP_ENV=local HTTPS=true node scripts/start.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"publish-staging": "REACT_APP_RELEASE=$npm_package_version REACT_APP_ENV=staging rollup -c && npm publish --tag beta",
|
|
60
60
|
"publish-experimental": "REACT_APP_RELEASE=$npm_package_version REACT_APP_ENV=staging rollup -c && npm publish --tag experimental",
|
|
61
61
|
"build-experimental": "REACT_APP_RELEASE=$npm_package_version REACT_APP_ENV=staging rollup -c ",
|
|
62
|
-
"build-staging":
|
|
62
|
+
"build-staging": "REACT_APP_RELEASE=$npm_package_version REACT_APP_ENV=staging rollup -c ",
|
|
63
63
|
"build-master": "REACT_APP_RELEASE=$npm_package_version REACT_APP_ENV=prod rollup -c ",
|
|
64
64
|
"test": "node scripts/test.js"
|
|
65
65
|
},
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
91
91
|
"@rollup/plugin-replace": "^5.0.2",
|
|
92
92
|
"@rollup/plugin-typescript": "^8.3.3",
|
|
93
|
-
"@svgr/webpack": "^
|
|
93
|
+
"@svgr/webpack": "^8.0.1",
|
|
94
94
|
"@testing-library/jest-dom": "^5.16.4",
|
|
95
95
|
"@testing-library/react": "^12.1.5 || ^13.4.0",
|
|
96
96
|
"@testing-library/user-event": "^13.5.0",
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
"jest-watch-typeahead": "^1.0.0",
|
|
126
126
|
"mini-css-extract-plugin": "^2.4.5",
|
|
127
127
|
"raw-loader": "^4.0.2",
|
|
128
|
-
"react": "
|
|
129
|
-
"react-dom": "
|
|
128
|
+
"react": "18.2.0",
|
|
129
|
+
"react-dom": "18.2.0",
|
|
130
130
|
"rollup": "^2.75.7",
|
|
131
131
|
"rollup-plugin-delete": "^2.0.0",
|
|
132
132
|
"rollup-plugin-dts": "^4.2.2",
|