@myinterview/widget-react 1.1.23-binary-check-one → 1.1.23-binary-002
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/cjs/components/CountDown.d.ts +2 -2
- package/dist/cjs/components/Counter.d.ts +2 -2
- package/dist/cjs/components/DeviceSelector.d.ts +1 -1
- package/dist/cjs/index.js +886 -2362
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/widgetInterface.d.ts +7 -2
- package/dist/cjs/services/event.service.d.ts +6 -1
- package/dist/cjs/utils/constants.utils.d.ts +1 -0
- package/dist/esm/components/CountDown.d.ts +2 -2
- package/dist/esm/components/Counter.d.ts +2 -2
- package/dist/esm/components/DeviceSelector.d.ts +1 -1
- package/dist/esm/index.js +872 -2348
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/widgetInterface.d.ts +7 -2
- package/dist/esm/services/event.service.d.ts +6 -1
- package/dist/esm/utils/constants.utils.d.ts +1 -0
- package/package.json +64 -64
|
@@ -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, {
|
|
@@ -122,6 +123,7 @@ export declare const enum STATES {
|
|
|
122
123
|
RE_INIT_RECORDER__NEXT_QUESTION = "reInitRecorderNextQuestion",
|
|
123
124
|
UPLOADING = "uploading",
|
|
124
125
|
CONFIRM = "confirm",
|
|
126
|
+
CONFIRM_WATING = "confirmWaiting",
|
|
125
127
|
FINISHED = "finished",
|
|
126
128
|
ERROR = "error"
|
|
127
129
|
}
|
|
@@ -173,7 +175,8 @@ export declare const enum ACTIONS {
|
|
|
173
175
|
INCREASE_FAILED_RECORDING_ATTEMPTS = "increaseFailedRecordingAttempts",
|
|
174
176
|
RESET_FAILED_RECORDING_ATTEMPTS = "resetFailedRecordingAttempts",
|
|
175
177
|
CLEAR_VIDEO_ERROR = "clearVideoError",
|
|
176
|
-
UPDATE_VIDEO_DIMENSIONS = "updateVideoDimensions"
|
|
178
|
+
UPDATE_VIDEO_DIMENSIONS = "updateVideoDimensions",
|
|
179
|
+
UPDATE_UPLOADED_FALSE_COUNT = "updateUploadedFalseCount"
|
|
177
180
|
}
|
|
178
181
|
export declare const enum EVENTS {
|
|
179
182
|
SPAWN_UPLOADER = "SPAWN_UPLOADER",
|
|
@@ -225,7 +228,8 @@ export declare const enum GUARDS {
|
|
|
225
228
|
THERE_ARE_NO_VIDEO_QUESTIONS_TYPE = "thereAreNoVideoQuestionType",
|
|
226
229
|
IS_RECORDER_READY = "isRecorderReady",
|
|
227
230
|
IS_ASSESSMENT_QUESTION = "isAssessmentQuestion",
|
|
228
|
-
IS_TIMES_UP = "isTimesUp"
|
|
231
|
+
IS_TIMES_UP = "isTimesUp",
|
|
232
|
+
SHOULD_TRY_TO_CONFIRM = "shouldTryToConfirm"
|
|
229
233
|
}
|
|
230
234
|
export declare const enum TAGS {
|
|
231
235
|
SETUP = "setup",
|
|
@@ -234,6 +238,7 @@ export declare const enum TAGS {
|
|
|
234
238
|
DISPLAY_OUTER_VIEW = "displayOuterView",
|
|
235
239
|
DISPLAY_QUESTION = "displayQuestion",
|
|
236
240
|
DISPLAY_QUESTIONS_LIST = "displayQuestionsList",
|
|
241
|
+
DISPLAY_UPLOAD = "displayUpload",
|
|
237
242
|
LOADING = "loading"
|
|
238
243
|
}
|
|
239
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,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface CountDownProps {
|
|
3
3
|
countDown: number;
|
|
4
4
|
forceMobileCounter?: boolean;
|
|
5
5
|
numberOfSecondsToHighlight?: number;
|
|
6
6
|
}
|
|
7
|
-
export declare const CountDown: ({ countDown, forceMobileCounter, numberOfSecondsToHighlight }: CountDownProps) =>
|
|
7
|
+
export declare const CountDown: ({ countDown, forceMobileCounter, numberOfSecondsToHighlight }: CountDownProps) => JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
interface CounterProps {
|
|
3
3
|
counter: number;
|
|
4
4
|
limit: number;
|
|
5
5
|
isRecording: boolean;
|
|
6
6
|
}
|
|
7
|
-
export declare const Counter: ({ counter, limit, isRecording }: CounterProps) =>
|
|
7
|
+
export declare const Counter: ({ counter, limit, isRecording }: CounterProps) => JSX.Element;
|
|
8
8
|
export {};
|
|
@@ -9,4 +9,4 @@ export interface IDeviceSelectorProps {
|
|
|
9
9
|
myinterviewRef: React.RefObject<HTMLDivElement>;
|
|
10
10
|
recordWithoutVideo?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare const DeviceSelector: ({ handleDeviceChange, videoDevices, audioDevices, selectedAudioDevice, selectedVideoDevice, myinterviewRef, recordWithoutVideo, }: IDeviceSelectorProps) =>
|
|
12
|
+
export declare const DeviceSelector: ({ handleDeviceChange, videoDevices, audioDevices, selectedAudioDevice, selectedVideoDevice, myinterviewRef, recordWithoutVideo, }: IDeviceSelectorProps) => JSX.Element;
|