@myinterview/widget-react 1.0.60-experimental → 1.0.61-experimental
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/AnswerInstructions.d.ts +7 -0
- package/dist/cjs/components/AssessmentController.d.ts +12 -0
- package/dist/cjs/components/AssessmentFreeText.d.ts +8 -0
- package/dist/cjs/components/AssessmentMultiSelect.d.ts +9 -0
- package/dist/cjs/components/AssessmentSingleSelect.d.ts +9 -0
- package/dist/cjs/components/CharactersLimit.d.ts +7 -0
- package/dist/cjs/components/CountDown.d.ts +3 -1
- package/dist/cjs/components/Errors.d.ts +2 -2
- package/dist/cjs/components/Explanation.d.ts +2 -1
- package/dist/cjs/components/Question.d.ts +2 -3
- package/dist/cjs/components/QuestionItem.d.ts +2 -2
- package/dist/cjs/components/QuestionParamaters.d.ts +9 -0
- package/dist/cjs/components/QuestionsList.d.ts +2 -2
- package/dist/cjs/components/RecorderModal.d.ts +2 -4
- package/dist/cjs/components/VideoCamera.d.ts +3 -2
- package/dist/cjs/components/ui/DotSeparator.d.ts +2 -0
- package/dist/cjs/components/ui/StartRecordingButton.d.ts +1 -0
- package/dist/cjs/i18n/config.d.ts +28 -0
- package/dist/cjs/index.js +2223 -11602
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/candidateSessionInterface.d.ts +1 -1
- package/dist/cjs/interfaces/configInterface.d.ts +6 -6
- package/dist/cjs/interfaces/countDownInterface.d.ts +23 -0
- package/dist/cjs/interfaces/jobInterface.d.ts +43 -3
- package/dist/cjs/interfaces/recorderInterface.d.ts +6 -2
- package/dist/cjs/interfaces/uploaderInterface.d.ts +5 -3
- package/dist/cjs/interfaces/videoInterface.d.ts +25 -1
- package/dist/cjs/interfaces/widgetInterface.d.ts +22 -9
- package/dist/cjs/machines/acceleratorMachines/counterMachine.d.ts +5 -0
- package/dist/cjs/services/session.service.d.ts +1 -1
- package/dist/cjs/services/video.service.d.ts +3 -3
- package/dist/cjs/utils/constants.utils.d.ts +1 -0
- package/dist/cjs/utils/device.utils.d.ts +1 -1
- package/dist/cjs/utils/formatters.utils.d.ts +1 -1
- package/dist/esm/components/AnswerInstructions.d.ts +7 -0
- package/dist/esm/components/AssessmentController.d.ts +12 -0
- package/dist/esm/components/AssessmentFreeText.d.ts +8 -0
- package/dist/esm/components/AssessmentMultiSelect.d.ts +9 -0
- package/dist/esm/components/AssessmentSingleSelect.d.ts +9 -0
- package/dist/esm/components/CharactersLimit.d.ts +7 -0
- package/dist/esm/components/CountDown.d.ts +3 -1
- package/dist/esm/components/Errors.d.ts +2 -2
- package/dist/esm/components/Explanation.d.ts +2 -1
- package/dist/esm/components/Question.d.ts +2 -3
- package/dist/esm/components/QuestionItem.d.ts +2 -2
- package/dist/esm/components/QuestionParamaters.d.ts +9 -0
- package/dist/esm/components/QuestionsList.d.ts +2 -2
- package/dist/esm/components/RecorderModal.d.ts +2 -4
- package/dist/esm/components/VideoCamera.d.ts +3 -2
- package/dist/esm/components/ui/DotSeparator.d.ts +2 -0
- package/dist/esm/components/ui/StartRecordingButton.d.ts +1 -0
- package/dist/esm/i18n/config.d.ts +28 -0
- package/dist/esm/index.js +2223 -11602
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/candidateSessionInterface.d.ts +1 -1
- package/dist/esm/interfaces/configInterface.d.ts +6 -6
- package/dist/esm/interfaces/countDownInterface.d.ts +23 -0
- package/dist/esm/interfaces/jobInterface.d.ts +43 -3
- package/dist/esm/interfaces/recorderInterface.d.ts +6 -2
- package/dist/esm/interfaces/uploaderInterface.d.ts +5 -3
- package/dist/esm/interfaces/videoInterface.d.ts +25 -1
- package/dist/esm/interfaces/widgetInterface.d.ts +22 -9
- package/dist/esm/machines/acceleratorMachines/counterMachine.d.ts +5 -0
- package/dist/esm/services/session.service.d.ts +1 -1
- package/dist/esm/services/video.service.d.ts +3 -3
- package/dist/esm/utils/constants.utils.d.ts +1 -0
- package/dist/esm/utils/device.utils.d.ts +1 -1
- package/dist/esm/utils/formatters.utils.d.ts +1 -1
- package/dist/index.d.ts +68 -9
- package/package.json +3 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ASSESSMENT_QUESTIONS_TYPE } from '../interfaces/jobInterface';
|
|
3
|
+
import { IMultipleAnswer } from '../interfaces/videoInterface';
|
|
4
|
+
interface IProps {
|
|
5
|
+
currentQuestionObj: ASSESSMENT_QUESTIONS_TYPE;
|
|
6
|
+
currentQuestion: number;
|
|
7
|
+
numberOfQuestions: number;
|
|
8
|
+
timer: number;
|
|
9
|
+
onSubmitAssessment: (answer: IMultipleAnswer[] | string) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const AssessmentController: React.FC<IProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IMultipleChoiceOptionDefinition } from '../interfaces/jobInterface';
|
|
3
|
+
import { IMultipleAnswer } from '../interfaces/videoInterface';
|
|
4
|
+
interface IProps {
|
|
5
|
+
answerOptions: IMultipleChoiceOptionDefinition[];
|
|
6
|
+
onAnswer: (answers: IMultipleAnswer[]) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const AssessmentMultiSelect: React.FC<IProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IMultipleChoiceOptionDefinition } from '../interfaces/jobInterface';
|
|
3
|
+
import { IMultipleAnswer } from '../interfaces/videoInterface';
|
|
4
|
+
interface IProps {
|
|
5
|
+
answerOptions: IMultipleChoiceOptionDefinition[];
|
|
6
|
+
onAnswer: (answer: IMultipleAnswer[]) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const AssessmentSingleSelect: React.FC<IProps>;
|
|
9
|
+
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface CountDownProps {
|
|
3
3
|
countDown: number;
|
|
4
|
+
forceMobileCounter?: boolean;
|
|
5
|
+
numberOfSecondsToHighlight?: number;
|
|
4
6
|
}
|
|
5
|
-
export declare const CountDown: ({ countDown }: CountDownProps) => JSX.Element;
|
|
7
|
+
export declare const CountDown: ({ countDown, forceMobileCounter, numberOfSecondsToHighlight }: CountDownProps) => JSX.Element;
|
|
6
8
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IVideoCorruptedMessagesKey } from '../interfaces/widgetInterface';
|
|
3
3
|
import { IDeviceSelectorList } from './DeviceSelectorList';
|
|
4
|
-
export type VIDEO_ERRORS = Exclude<IVideoCorruptedMessagesKey, 'NO_ERROR'>;
|
|
5
|
-
export type MODAL_ERROR_KEY = 'MEDIA_PERMISSION' | 'NO_SOUND' | 'CONNECTION' | VIDEO_ERRORS;
|
|
4
|
+
export declare type VIDEO_ERRORS = Exclude<IVideoCorruptedMessagesKey, 'NO_ERROR'>;
|
|
5
|
+
export declare type MODAL_ERROR_KEY = 'MEDIA_PERMISSION' | 'NO_SOUND' | 'CONNECTION' | VIDEO_ERRORS;
|
|
6
6
|
interface IProps extends Partial<IDeviceSelectorList> {
|
|
7
7
|
errorType: MODAL_ERROR_KEY;
|
|
8
8
|
onDisplayPermissionSteps?: () => void;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ALL_JOB_QUESTIONS_TYPE } from '../interfaces/jobInterface';
|
|
3
3
|
interface IProps {
|
|
4
|
-
questionObj:
|
|
5
|
-
currentQuestion: number;
|
|
4
|
+
questionObj: ALL_JOB_QUESTIONS_TYPE;
|
|
6
5
|
isInner?: boolean;
|
|
7
6
|
}
|
|
8
7
|
export declare const Question: React.FC<IProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ALL_JOB_QUESTIONS_TYPE } from '../interfaces/jobInterface';
|
|
3
3
|
import { VIDEO_STATUS } from '../interfaces/videoInterface';
|
|
4
4
|
interface IProps {
|
|
5
|
-
questionObj:
|
|
5
|
+
questionObj: ALL_JOB_QUESTIONS_TYPE;
|
|
6
6
|
questionNumber: number;
|
|
7
7
|
currentQuestion: number;
|
|
8
8
|
isPracticeMode: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ALL_JOB_QUESTIONS_TYPE } from '../interfaces/jobInterface';
|
|
3
3
|
import { VIDEO_STATUS } from '../interfaces/videoInterface';
|
|
4
4
|
interface IProps {
|
|
5
|
-
questions:
|
|
5
|
+
questions: ALL_JOB_QUESTIONS_TYPE[];
|
|
6
6
|
currentQuestion: number;
|
|
7
7
|
isPracticeMode: boolean;
|
|
8
8
|
questionsStatus: VIDEO_STATUS[];
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ALL_JOB_QUESTIONS_TYPE } from '../interfaces/jobInterface';
|
|
3
3
|
import { IDeviceSelectorList } from './DeviceSelectorList';
|
|
4
4
|
import { MODAL_ERROR_KEY } from './Errors';
|
|
5
5
|
interface IProps extends IDeviceSelectorList {
|
|
6
6
|
errorType: MODAL_ERROR_KEY | null;
|
|
7
7
|
onDisplayPermissionSteps: () => void;
|
|
8
8
|
onReInitRecorder: () => void;
|
|
9
|
-
|
|
10
|
-
numberOfQuestions: number;
|
|
11
|
-
currentQuestionObj: IQuestion | undefined;
|
|
9
|
+
currentQuestionObj: ALL_JOB_QUESTIONS_TYPE | undefined;
|
|
12
10
|
isRecording: boolean;
|
|
13
11
|
}
|
|
14
12
|
export declare const RecorderModal: React.FC<IProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ActorRef, DoneInvokeEvent } from 'xstate';
|
|
3
|
-
import {
|
|
3
|
+
import { ALL_JOB_QUESTIONS_TYPE } from '../interfaces/jobInterface';
|
|
4
4
|
import { IDeviceSelectorProps } from './DeviceSelector';
|
|
5
5
|
import { MODAL_ERROR_KEY } from './Errors';
|
|
6
6
|
interface IProps extends IDeviceSelectorProps {
|
|
@@ -17,7 +17,7 @@ interface IProps extends IDeviceSelectorProps {
|
|
|
17
17
|
canStartRecording: boolean;
|
|
18
18
|
currentQuestion: number;
|
|
19
19
|
numberOfQuestions: number;
|
|
20
|
-
currentQuestionObj:
|
|
20
|
+
currentQuestionObj: ALL_JOB_QUESTIONS_TYPE | undefined;
|
|
21
21
|
isRecording: boolean;
|
|
22
22
|
durations: number;
|
|
23
23
|
recordingTime: number;
|
|
@@ -25,6 +25,7 @@ interface IProps extends IDeviceSelectorProps {
|
|
|
25
25
|
countdown: number;
|
|
26
26
|
isQuestionDisplayed: boolean;
|
|
27
27
|
myinterviewRef: React.RefObject<HTMLDivElement>;
|
|
28
|
+
isAssessment: boolean;
|
|
28
29
|
}
|
|
29
30
|
export declare const VideoCamera: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLVideoElement>>;
|
|
30
31
|
export {};
|
|
@@ -54,6 +54,7 @@ export declare const resources: {
|
|
|
54
54
|
};
|
|
55
55
|
};
|
|
56
56
|
time: {
|
|
57
|
+
unlimited: string;
|
|
57
58
|
minuteLeft_one: string;
|
|
58
59
|
minuteLeft_other: string;
|
|
59
60
|
minute_one: string;
|
|
@@ -91,6 +92,8 @@ export declare const resources: {
|
|
|
91
92
|
questionThinkingTime: string;
|
|
92
93
|
videoQuestionThinkingTime: string;
|
|
93
94
|
videoQuestionNoThinkingTime: string;
|
|
95
|
+
questionDuration: string;
|
|
96
|
+
videoQuestionDuration: string;
|
|
94
97
|
showQuestion_btn: string;
|
|
95
98
|
watchQuestion_btn: string;
|
|
96
99
|
};
|
|
@@ -213,6 +216,7 @@ export declare const resources: {
|
|
|
213
216
|
};
|
|
214
217
|
};
|
|
215
218
|
time: {
|
|
219
|
+
unlimited: string;
|
|
216
220
|
minuteLeft_one: string;
|
|
217
221
|
minuteLeft_other: string;
|
|
218
222
|
minute_one: string;
|
|
@@ -250,6 +254,8 @@ export declare const resources: {
|
|
|
250
254
|
questionThinkingTime: string;
|
|
251
255
|
videoQuestionThinkingTime: string;
|
|
252
256
|
videoQuestionNoThinkingTime: string;
|
|
257
|
+
questionDuration: string;
|
|
258
|
+
videoQuestionDuration: string;
|
|
253
259
|
showQuestion_btn: string;
|
|
254
260
|
watchQuestion_btn: string;
|
|
255
261
|
};
|
|
@@ -372,6 +378,7 @@ export declare const resources: {
|
|
|
372
378
|
};
|
|
373
379
|
};
|
|
374
380
|
time: {
|
|
381
|
+
unlimited: string;
|
|
375
382
|
minuteLeft_one: string;
|
|
376
383
|
minuteLeft_other: string;
|
|
377
384
|
minute_one: string;
|
|
@@ -409,6 +416,8 @@ export declare const resources: {
|
|
|
409
416
|
questionThinkingTime: string;
|
|
410
417
|
videoQuestionThinkingTime: string;
|
|
411
418
|
videoQuestionNoThinkingTime: string;
|
|
419
|
+
questionDuration: string;
|
|
420
|
+
videoQuestionDuration: string;
|
|
412
421
|
showQuestion_btn: string;
|
|
413
422
|
watchQuestion_btn: string;
|
|
414
423
|
};
|
|
@@ -531,6 +540,7 @@ export declare const resources: {
|
|
|
531
540
|
};
|
|
532
541
|
};
|
|
533
542
|
time: {
|
|
543
|
+
unlimited: string;
|
|
534
544
|
less_than_one_left: string;
|
|
535
545
|
minuteLeft: string;
|
|
536
546
|
minute_one: string;
|
|
@@ -575,6 +585,8 @@ export declare const resources: {
|
|
|
575
585
|
questionThinkingTime: string;
|
|
576
586
|
videoQuestionThinkingTime: string;
|
|
577
587
|
videoQuestionNoThinkingTime: string;
|
|
588
|
+
questionDuration: string;
|
|
589
|
+
videoQuestionDuration: string;
|
|
578
590
|
showQuestion_btn: string;
|
|
579
591
|
watchQuestion_btn: string;
|
|
580
592
|
};
|
|
@@ -634,6 +646,7 @@ export declare const resources: {
|
|
|
634
646
|
btn_watch_question: string;
|
|
635
647
|
btn_show_question: string;
|
|
636
648
|
btn_start_recording: string;
|
|
649
|
+
btn_start_assessment: string;
|
|
637
650
|
btn_stop_recording: string;
|
|
638
651
|
btn_try_again: string;
|
|
639
652
|
btn_internet_test_again: string;
|
|
@@ -706,6 +719,7 @@ export declare const resources: {
|
|
|
706
719
|
};
|
|
707
720
|
};
|
|
708
721
|
time: {
|
|
722
|
+
unlimited: string;
|
|
709
723
|
less_than_one_left: string;
|
|
710
724
|
minuteLeft: string;
|
|
711
725
|
minute_one: string;
|
|
@@ -743,6 +757,8 @@ export declare const resources: {
|
|
|
743
757
|
questionThinkingTime: string;
|
|
744
758
|
videoQuestionThinkingTime: string;
|
|
745
759
|
videoQuestionNoThinkingTime: string;
|
|
760
|
+
questionDuration: string;
|
|
761
|
+
videoQuestionDuration: string;
|
|
746
762
|
showQuestion_btn: string;
|
|
747
763
|
watchQuestion_btn: string;
|
|
748
764
|
};
|
|
@@ -866,6 +882,7 @@ export declare const resources: {
|
|
|
866
882
|
};
|
|
867
883
|
};
|
|
868
884
|
time: {
|
|
885
|
+
unlimited: string;
|
|
869
886
|
less_than_one_left: string;
|
|
870
887
|
minuteLeft: string;
|
|
871
888
|
minute_one: string;
|
|
@@ -910,6 +927,8 @@ export declare const resources: {
|
|
|
910
927
|
questionThinkingTime: string;
|
|
911
928
|
videoQuestionThinkingTime: string;
|
|
912
929
|
videoQuestionNoThinkingTime: string;
|
|
930
|
+
questionDuration: string;
|
|
931
|
+
videoQuestionDuration: string;
|
|
913
932
|
showQuestion_btn: string;
|
|
914
933
|
watchQuestion_btn: string;
|
|
915
934
|
};
|
|
@@ -1032,6 +1051,7 @@ export declare const resources: {
|
|
|
1032
1051
|
};
|
|
1033
1052
|
};
|
|
1034
1053
|
time: {
|
|
1054
|
+
unlimited: string;
|
|
1035
1055
|
minuteLeft_one: string;
|
|
1036
1056
|
minuteLeft_other: string;
|
|
1037
1057
|
minute_one: string;
|
|
@@ -1072,6 +1092,8 @@ export declare const resources: {
|
|
|
1072
1092
|
questionThinkingTime: string;
|
|
1073
1093
|
videoQuestionThinkingTime: string;
|
|
1074
1094
|
videoQuestionNoThinkingTime: string;
|
|
1095
|
+
questionDuration: string;
|
|
1096
|
+
videoQuestionDuration: string;
|
|
1075
1097
|
showQuestion_btn: string;
|
|
1076
1098
|
watchQuestion_btn: string;
|
|
1077
1099
|
};
|
|
@@ -1194,6 +1216,7 @@ export declare const resources: {
|
|
|
1194
1216
|
};
|
|
1195
1217
|
};
|
|
1196
1218
|
time: {
|
|
1219
|
+
unlimited: string;
|
|
1197
1220
|
minuteLeft_one: string;
|
|
1198
1221
|
minuteLeft_other: string;
|
|
1199
1222
|
minute_one: string;
|
|
@@ -1231,6 +1254,8 @@ export declare const resources: {
|
|
|
1231
1254
|
questionThinkingTime: string;
|
|
1232
1255
|
videoQuestionThinkingTime: string;
|
|
1233
1256
|
videoQuestionNoThinkingTime: string;
|
|
1257
|
+
questionDuration: string;
|
|
1258
|
+
videoQuestionDuration: string;
|
|
1234
1259
|
showQuestion_btn: string;
|
|
1235
1260
|
watchQuestion_btn: string;
|
|
1236
1261
|
};
|
|
@@ -1353,6 +1378,7 @@ export declare const resources: {
|
|
|
1353
1378
|
};
|
|
1354
1379
|
};
|
|
1355
1380
|
time: {
|
|
1381
|
+
unlimited: string;
|
|
1356
1382
|
minuteLeft_one: string;
|
|
1357
1383
|
minuteLeft_other: string;
|
|
1358
1384
|
minute_one: string;
|
|
@@ -1390,6 +1416,8 @@ export declare const resources: {
|
|
|
1390
1416
|
questionThinkingTime: string;
|
|
1391
1417
|
videoQuestionThinkingTime: string;
|
|
1392
1418
|
videoQuestionNoThinkingTime: string;
|
|
1419
|
+
questionDuration: string;
|
|
1420
|
+
videoQuestionDuration: string;
|
|
1393
1421
|
showQuestion_btn: string;
|
|
1394
1422
|
watchQuestion_btn: string;
|
|
1395
1423
|
};
|