@myinterview/widget-react 1.1.23-that-was-21 → 1.1.23-touch-fix-attempt-01-development-519cb3a

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.
@@ -32,6 +32,7 @@ interface IConfig {
32
32
  disablePractice?: boolean;
33
33
  event_id?: string;
34
34
  accessibility_id?: string;
35
+ recordWithoutVideo?: boolean;
35
36
  }
36
37
  export type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
37
38
  practiceQuestions?: IClientQuestion[];
@@ -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 {};
@@ -2,6 +2,7 @@ export declare const CAMERA_STATES_MESSAGES: {
2
2
  WAITING: string;
3
3
  ERROR: string;
4
4
  READY: string;
5
+ SKIP: string;
5
6
  };
6
7
  export declare const MICROPHONE_STATES_MESSAGES: {
7
8
  WAITING: string;
@@ -7,5 +7,6 @@ export interface IDeviceSelectorProps {
7
7
  selectedAudioDevice?: MediaDeviceInfo;
8
8
  selectedVideoDevice?: MediaDeviceInfo;
9
9
  myinterviewRef: React.RefObject<HTMLDivElement>;
10
+ recordWithoutVideo?: boolean;
10
11
  }
11
- export declare const DeviceSelector: ({ handleDeviceChange, videoDevices, audioDevices, selectedAudioDevice, selectedVideoDevice, myinterviewRef, }: IDeviceSelectorProps) => React.JSX.Element;
12
+ export declare const DeviceSelector: ({ handleDeviceChange, videoDevices, audioDevices, selectedAudioDevice, selectedVideoDevice, myinterviewRef, recordWithoutVideo, }: IDeviceSelectorProps) => React.JSX.Element;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  import { IWidgetMachineProps } from '../interfaces/widgetInterface';
3
3
  interface IProps extends IWidgetMachineProps {
4
4
  isPracticeDisabled: boolean;
5
+ recordWithoutVideo?: boolean;
5
6
  }
6
7
  export declare const Setup: React.FC<IProps>;
7
8
  export {};
@@ -9,6 +9,7 @@ interface IProps {
9
9
  };
10
10
  canRetrySpeedTest: boolean;
11
11
  onRetry: () => void;
12
+ recordWithoutVideo?: boolean;
12
13
  }
13
14
  export declare const SetupChecks: React.FC<IProps>;
14
15
  export {};
@@ -26,6 +26,7 @@ interface IProps extends IDeviceSelectorProps {
26
26
  isQuestionDisplayed: boolean;
27
27
  myinterviewRef: React.RefObject<HTMLDivElement>;
28
28
  isAssessment: boolean;
29
+ recordWithoutVideo?: boolean;
29
30
  }
30
31
  export declare const VideoCamera: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLVideoElement>>;
31
32
  export {};