@myinterview/widget-react 1.0.61-experimental → 1.0.61

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