@myinterview/widget-react 1.0.311 → 1.1.0

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 (166) hide show
  1. package/dist/cjs/App.d.ts +3 -0
  2. package/dist/cjs/components/AnswerInstructions.d.ts +7 -0
  3. package/dist/cjs/components/AssessmentController.d.ts +12 -0
  4. package/dist/cjs/components/AssessmentFreeText.d.ts +7 -0
  5. package/dist/cjs/components/AssessmentMultiSelect.d.ts +9 -0
  6. package/dist/cjs/components/AssessmentSingleSelect.d.ts +9 -0
  7. package/dist/cjs/components/CharactersLimit.d.ts +7 -0
  8. package/dist/cjs/components/CountDown.d.ts +8 -0
  9. package/dist/cjs/components/Counter.d.ts +8 -0
  10. package/dist/cjs/components/DeviceSelector.d.ts +11 -0
  11. package/dist/cjs/components/DeviceSelectorList.d.ts +9 -0
  12. package/dist/cjs/components/DeviceSelectorListNative.d.ts +6 -0
  13. package/dist/cjs/components/Error.d.ts +8 -0
  14. package/dist/cjs/components/ErrorBoundaries.d.ts +9 -0
  15. package/dist/cjs/components/Errors.d.ts +12 -0
  16. package/dist/cjs/components/Explanation.d.ts +8 -0
  17. package/dist/cjs/components/Footer.d.ts +2 -0
  18. package/dist/cjs/components/Header.d.ts +10 -0
  19. package/dist/cjs/components/InnerView.d.ts +15 -0
  20. package/dist/cjs/components/Main.d.ts +11 -0
  21. package/dist/cjs/components/OuterView.d.ts +8 -0
  22. package/dist/cjs/components/PermissionSteps.d.ts +6 -0
  23. package/dist/cjs/components/PracticeModeInfo.d.ts +2 -0
  24. package/dist/cjs/components/PreviewItem.d.ts +20 -0
  25. package/dist/cjs/components/PreviewList.d.ts +18 -0
  26. package/dist/cjs/components/Question.d.ts +8 -0
  27. package/dist/cjs/components/QuestionItem.d.ts +12 -0
  28. package/dist/cjs/components/QuestionParamaters.d.ts +9 -0
  29. package/dist/cjs/components/QuestionsList.d.ts +11 -0
  30. package/dist/cjs/components/RecorderModal.d.ts +13 -0
  31. package/dist/cjs/components/Setup.d.ts +7 -0
  32. package/dist/cjs/components/SetupChecks.d.ts +14 -0
  33. package/dist/cjs/components/SliderModal.d.ts +8 -0
  34. package/dist/cjs/components/TopTips.d.ts +2 -0
  35. package/dist/cjs/components/Upload.d.ts +13 -0
  36. package/dist/cjs/components/VideoCamera.d.ts +31 -0
  37. package/dist/cjs/components/VideoQuestion.d.ts +10 -0
  38. package/dist/cjs/components/VideoTimeBar.d.ts +9 -0
  39. package/dist/cjs/components/WelcomePage.d.ts +16 -0
  40. package/dist/cjs/components/Widget.d.ts +3 -0
  41. package/dist/cjs/components/icons/ClockIcon.d.ts +2 -0
  42. package/dist/cjs/components/icons/Loading.d.ts +2 -0
  43. package/dist/cjs/components/icons/NoCameraMic.d.ts +2 -0
  44. package/dist/cjs/components/icons/PlayIcon.d.ts +6 -0
  45. package/dist/cjs/components/icons/Retake.d.ts +2 -0
  46. package/dist/cjs/components/icons/RotateScreenIcon.d.ts +2 -0
  47. package/dist/cjs/components/ui/DotSeparator.d.ts +2 -0
  48. package/dist/cjs/components/ui/Loader.d.ts +2 -0
  49. package/dist/cjs/components/ui/MicrophoneIndicator.d.ts +7 -0
  50. package/dist/cjs/components/ui/MinimizeButton.d.ts +6 -0
  51. package/dist/cjs/components/ui/PracticeMode.d.ts +2 -0
  52. package/dist/cjs/components/ui/Progress.d.ts +6 -0
  53. package/dist/cjs/components/ui/QuestionDuration.d.ts +6 -0
  54. package/dist/cjs/components/ui/QuestionNumber.d.ts +7 -0
  55. package/dist/cjs/components/ui/RecordingButton.d.ts +6 -0
  56. package/dist/cjs/components/ui/RotateScreen.d.ts +2 -0
  57. package/dist/cjs/components/ui/Signal.d.ts +9 -0
  58. package/dist/cjs/components/ui/StartNowButton.d.ts +6 -0
  59. package/dist/cjs/components/ui/StartRecordingButton.d.ts +11 -0
  60. package/dist/cjs/components/ui/StopRecordingButton.d.ts +7 -0
  61. package/dist/cjs/components/ui/UnsupportedModal.d.ts +6 -0
  62. package/dist/cjs/config/index.d.ts +7 -0
  63. package/dist/cjs/config/local.env.d.ts +6 -0
  64. package/dist/cjs/config/prod.env.d.ts +6 -0
  65. package/dist/cjs/config/staging.env.d.ts +6 -0
  66. package/dist/cjs/i18n/config.d.ts +1490 -0
  67. package/dist/cjs/index.d.ts +4 -0
  68. package/dist/cjs/index.js +36599 -0
  69. package/dist/cjs/index.js.map +1 -0
  70. package/dist/cjs/interfaces/candidateInterface.d.ts +14 -0
  71. package/dist/cjs/interfaces/candidateSessionInterface.d.ts +83 -0
  72. package/dist/cjs/interfaces/companyInterface.d.ts +4 -0
  73. package/dist/cjs/interfaces/configInterface.d.ts +64 -0
  74. package/dist/cjs/interfaces/countDownInterface.d.ts +23 -0
  75. package/dist/cjs/interfaces/jobInterface.d.ts +72 -0
  76. package/dist/cjs/interfaces/microphoneInterface.d.ts +41 -0
  77. package/dist/cjs/interfaces/networkInterface.d.ts +9 -0
  78. package/dist/cjs/interfaces/previewInterface.d.ts +14 -0
  79. package/dist/cjs/interfaces/recorderInterface.d.ts +203 -0
  80. package/dist/cjs/interfaces/storageInterface.d.ts +29 -0
  81. package/dist/cjs/interfaces/uploaderInterface.d.ts +41 -0
  82. package/dist/cjs/interfaces/videoInterface.d.ts +84 -0
  83. package/dist/cjs/interfaces/widgetInterface.d.ts +231 -0
  84. package/dist/cjs/machines/acceleratorMachines/accUploaderMachine.d.ts +6 -0
  85. package/dist/cjs/machines/acceleratorMachines/accWidgetMachine.d.ts +6 -0
  86. package/dist/cjs/machines/acceleratorMachines/counterMachine.d.ts +5 -0
  87. package/dist/cjs/machines/acceleratorMachines/microphoneMachine.d.ts +6 -0
  88. package/dist/cjs/machines/acceleratorMachines/networkMachine.d.ts +5 -0
  89. package/dist/cjs/machines/acceleratorMachines/previewMachine.d.ts +6 -0
  90. package/dist/cjs/machines/acceleratorMachines/recorderMachineV2.d.ts +6 -0
  91. package/dist/cjs/machines/acceleratorMachines/storageMachine.d.ts +6 -0
  92. package/dist/cjs/reportWebVitals.d.ts +3 -0
  93. package/dist/cjs/services/axiosInstances.service.d.ts +4 -0
  94. package/dist/cjs/services/s3.service.d.ts +1 -0
  95. package/dist/cjs/services/session.service.d.ts +57 -0
  96. package/dist/cjs/services/speedTest.service.d.ts +2 -0
  97. package/dist/cjs/services/video.service.d.ts +7 -0
  98. package/dist/cjs/setupTests.d.ts +1 -0
  99. package/dist/cjs/utils/authToken.utils.d.ts +7 -0
  100. package/dist/cjs/utils/constants.utils.d.ts +21 -0
  101. package/dist/cjs/utils/convertor.utils.d.ts +2 -0
  102. package/dist/cjs/utils/debug.utils.d.ts +19 -0
  103. package/dist/cjs/utils/device.utils.d.ts +12 -0
  104. package/dist/cjs/utils/errors.utils.d.ts +9 -0
  105. package/dist/cjs/utils/formatters.utils.d.ts +5 -0
  106. package/dist/cjs/utils/languages.utils.d.ts +1 -0
  107. package/dist/cjs/utils/messages.utils.d.ts +16 -0
  108. package/dist/cjs/utils/recorderErrors.utils.d.ts +29 -0
  109. package/dist/cjs/utils/sentry.utils.d.ts +6 -0
  110. package/dist/cjs/utils/statusCodes.utils.d.ts +13 -0
  111. package/dist/cjs/workers/microphone.worker.d.ts +2 -0
  112. package/dist/cjs/workers/worker-builder.d.ts +3 -0
  113. package/dist/esm/App.d.ts +1 -0
  114. package/dist/esm/components/AnswerInstructions.d.ts +7 -0
  115. package/dist/esm/components/AssessmentController.d.ts +12 -0
  116. package/dist/esm/components/AssessmentFreeText.d.ts +7 -0
  117. package/dist/esm/components/AssessmentMultiSelect.d.ts +9 -0
  118. package/dist/esm/components/AssessmentSingleSelect.d.ts +9 -0
  119. package/dist/esm/components/CharactersLimit.d.ts +7 -0
  120. package/dist/esm/components/CountDown.d.ts +3 -1
  121. package/dist/esm/components/DeviceSelector.d.ts +3 -2
  122. package/dist/esm/components/Errors.d.ts +2 -2
  123. package/dist/esm/components/Explanation.d.ts +2 -1
  124. package/dist/esm/components/InnerView.d.ts +1 -0
  125. package/dist/esm/components/Main.d.ts +2 -0
  126. package/dist/esm/components/PracticeModeInfo.d.ts +1 -7
  127. package/dist/esm/components/PreviewItem.d.ts +4 -0
  128. package/dist/esm/components/PreviewList.d.ts +1 -0
  129. package/dist/esm/components/Question.d.ts +2 -3
  130. package/dist/esm/components/QuestionItem.d.ts +2 -2
  131. package/dist/esm/components/QuestionParamaters.d.ts +9 -0
  132. package/dist/esm/components/QuestionsList.d.ts +2 -2
  133. package/dist/esm/components/RecorderModal.d.ts +2 -4
  134. package/dist/esm/components/Setup.d.ts +1 -0
  135. package/dist/esm/components/VideoCamera.d.ts +4 -2
  136. package/dist/esm/components/Widget.d.ts +0 -3
  137. package/dist/esm/components/ui/DotSeparator.d.ts +2 -0
  138. package/dist/esm/components/ui/StartRecordingButton.d.ts +1 -0
  139. package/dist/esm/i18n/config.d.ts +349 -0
  140. package/dist/esm/index.d.ts +2 -2
  141. package/dist/esm/index.js +6327 -12129
  142. package/dist/esm/index.js.map +1 -1
  143. package/dist/esm/interfaces/candidateSessionInterface.d.ts +1 -1
  144. package/dist/esm/interfaces/configInterface.d.ts +12 -6
  145. package/dist/esm/interfaces/countDownInterface.d.ts +23 -0
  146. package/dist/esm/interfaces/jobInterface.d.ts +43 -3
  147. package/dist/esm/interfaces/microphoneInterface.d.ts +3 -0
  148. package/dist/esm/interfaces/recorderInterface.d.ts +8 -3
  149. package/dist/esm/interfaces/uploaderInterface.d.ts +5 -3
  150. package/dist/esm/interfaces/videoInterface.d.ts +30 -1
  151. package/dist/esm/interfaces/widgetInterface.d.ts +28 -10
  152. package/dist/esm/machines/acceleratorMachines/counterMachine.d.ts +5 -0
  153. package/dist/esm/services/session.service.d.ts +1 -1
  154. package/dist/esm/services/video.service.d.ts +4 -4
  155. package/dist/esm/utils/constants.utils.d.ts +8 -0
  156. package/dist/esm/utils/convertor.utils.d.ts +2 -0
  157. package/dist/esm/utils/device.utils.d.ts +1 -1
  158. package/dist/esm/utils/formatters.utils.d.ts +1 -1
  159. package/dist/esm/utils/languages.utils.d.ts +1 -0
  160. package/dist/esm/utils/recorderErrors.utils.d.ts +1 -0
  161. package/dist/esm/utils/sentry.utils.d.ts +3 -1
  162. package/dist/esm/workers/microphone.worker.d.ts +2 -0
  163. package/dist/esm/workers/worker-builder.d.ts +3 -0
  164. package/dist/index.d.ts +82 -19
  165. package/package.json +121 -16
  166. package/dist/esm/utils/practiceQuestions.utils.d.ts +0 -2
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import './assets/styles/global.scss';
3
+ export declare const App: React.FC;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ASSESSMENT_QUESTIONS_TYPE } from '../interfaces/jobInterface';
3
+ interface IProps {
4
+ currentQuestionObj: ASSESSMENT_QUESTIONS_TYPE;
5
+ }
6
+ export declare const AnswerInstructions: React.FC<IProps>;
7
+ export {};
@@ -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,7 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ onAnswer: (answer: string) => void;
4
+ maxChars?: number;
5
+ }
6
+ export declare const AssessmentFreeText: React.FC<IProps>;
7
+ 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 {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ currentLength: number;
4
+ maxLength: number;
5
+ }
6
+ export declare const CharactersLimit: React.FC<IProps>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface CountDownProps {
3
+ countDown: number;
4
+ forceMobileCounter?: boolean;
5
+ numberOfSecondsToHighlight?: number;
6
+ }
7
+ export declare const CountDown: ({ countDown, forceMobileCounter, numberOfSecondsToHighlight }: CountDownProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface CounterProps {
3
+ counter: number;
4
+ limit: number;
5
+ isRecording: boolean;
6
+ }
7
+ export declare const Counter: ({ counter, limit, isRecording }: CounterProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { mediaDeviceType } from '../interfaces/recorderInterface';
3
+ export interface IDeviceSelectorProps {
4
+ handleDeviceChange: (type?: mediaDeviceType, id?: string) => void;
5
+ audioDevices?: MediaDeviceInfo[];
6
+ videoDevices?: MediaDeviceInfo[];
7
+ selectedAudioDevice?: MediaDeviceInfo;
8
+ selectedVideoDevice?: MediaDeviceInfo;
9
+ myinterviewRef: React.RefObject<HTMLDivElement>;
10
+ }
11
+ export declare const DeviceSelector: ({ handleDeviceChange, videoDevices, audioDevices, selectedAudioDevice, selectedVideoDevice, myinterviewRef, }: IDeviceSelectorProps) => JSX.Element;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { mediaDeviceType } from '../interfaces/recorderInterface';
3
+ export interface IDeviceSelectorList {
4
+ deviceList: MediaDeviceInfo[];
5
+ selectedDevice?: MediaDeviceInfo;
6
+ onDeviceSelected: (type: mediaDeviceType, deviceId: string) => void;
7
+ deviceType: mediaDeviceType;
8
+ }
9
+ export declare const DeviceSelectorList: React.FC<IDeviceSelectorList>;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { IDeviceSelectorList } from './DeviceSelectorList';
3
+ interface IProps extends IDeviceSelectorList {
4
+ }
5
+ export declare const DeviceSelectorListNative: React.FC<IProps>;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { IVideoError } from '../utils/errors.utils';
3
+ interface IProps {
4
+ error: IVideoError | null;
5
+ onRetry: () => void;
6
+ }
7
+ export declare const Error: React.FC<IProps>;
8
+ export {};
@@ -0,0 +1,9 @@
1
+ import React, { ErrorInfo, ReactChild } from 'react';
2
+ export declare class ErrorBoundary extends React.Component {
3
+ constructor(props: ReactChild);
4
+ static getDerivedStateFromError(): {
5
+ hasError: boolean;
6
+ };
7
+ componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
8
+ render(): React.ReactNode;
9
+ }
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { IVideoCorruptedMessagesKey } from '../interfaces/widgetInterface';
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;
6
+ interface IProps extends Partial<IDeviceSelectorList> {
7
+ errorType: MODAL_ERROR_KEY;
8
+ onDisplayPermissionSteps?: () => void;
9
+ onReInitRecorder?: () => void;
10
+ }
11
+ export declare const Errors: React.FC<IProps>;
12
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ isVideoQuestion: boolean;
4
+ isAssessment: boolean;
5
+ timeLimit: number;
6
+ }
7
+ export declare const Explanation: React.FC<IProps>;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Footer: React.FC;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ logo: string;
4
+ companyName: string;
5
+ jobTitle: string;
6
+ hidden?: boolean;
7
+ forDesktopLayout?: boolean;
8
+ }
9
+ export declare const Header: React.FC<IProps>;
10
+ export {};
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { ActorRef, DoneInvokeEvent } from 'xstate';
3
+ import { IWidgetMachineProps } from '../interfaces/widgetInterface';
4
+ interface IProps extends IWidgetMachineProps {
5
+ recorderRef: ActorRef<DoneInvokeEvent<any>, any>;
6
+ isSliderModalOpen: boolean;
7
+ isWidgetMinimized: boolean;
8
+ onOpenSliderModal: () => void;
9
+ onCloseSliderModal: () => void;
10
+ onRecorderRetry: () => void;
11
+ onReInitRecorder: () => void;
12
+ myinterviewRef: React.RefObject<HTMLDivElement>;
13
+ }
14
+ export declare const InnerView: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLVideoElement>>;
15
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { IWidgetConfig } from '../interfaces/configInterface';
3
+ interface IProps {
4
+ widgetConfig: IWidgetConfig;
5
+ setShouldShowWaterMark: React.Dispatch<React.SetStateAction<boolean>>;
6
+ myinterviewRef: React.RefObject<HTMLDivElement>;
7
+ isWidgetMinimized: boolean;
8
+ onMinimize: () => void;
9
+ }
10
+ export declare const Main: React.FC<IProps>;
11
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ActorRef, DoneInvokeEvent } from 'xstate';
3
+ import { IWidgetMachineProps } from '../interfaces/widgetInterface';
4
+ interface IProps extends IWidgetMachineProps {
5
+ recorderRef: ActorRef<DoneInvokeEvent<any>, any>;
6
+ }
7
+ export declare const OuterView: React.FC<IProps>;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ onRetry: () => void;
4
+ }
5
+ export declare const PermissionSteps: React.FC<IProps>;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const PracticeModeInfo: React.FC;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ export interface IDimensions {
3
+ x: number;
4
+ y: number;
5
+ width: number;
6
+ height: number;
7
+ }
8
+ interface IProps {
9
+ blob: string;
10
+ onSelectVideo: () => void;
11
+ isSelected: boolean;
12
+ position: number;
13
+ currentIndex: number;
14
+ numberOfVideos: number;
15
+ isPreviewMode: boolean;
16
+ onPreviewMode: (dimensions: IDimensions) => void;
17
+ myinterviewRef: React.RefObject<HTMLDivElement>;
18
+ }
19
+ export declare const PreviewItem: React.FC<IProps>;
20
+ export {};
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { DoneInvokeEvent, ActorRef } from 'xstate';
3
+ interface IProps {
4
+ previewRef: ActorRef<DoneInvokeEvent<any>>;
5
+ onNextQuestion: (questionNumber: number) => void;
6
+ onNextRetake: () => void;
7
+ onQuestionMode: () => void;
8
+ isRetakeAvailable: boolean;
9
+ totalRetakes: number;
10
+ isLastQuestion: boolean;
11
+ isQuestionMode: boolean;
12
+ isConnected: boolean;
13
+ currentQuestion: number;
14
+ numberOfQuestions: number;
15
+ myinterviewRef: React.RefObject<HTMLDivElement>;
16
+ }
17
+ export declare const PreviewList: React.FC<IProps>;
18
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ALL_JOB_QUESTIONS_TYPE } from '../interfaces/jobInterface';
3
+ interface IProps {
4
+ questionObj: ALL_JOB_QUESTIONS_TYPE;
5
+ isInner?: boolean;
6
+ }
7
+ export declare const Question: React.FC<IProps>;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { ALL_JOB_QUESTIONS_TYPE } from '../interfaces/jobInterface';
3
+ import { VIDEO_STATUS } from '../interfaces/videoInterface';
4
+ interface IProps {
5
+ questionObj: ALL_JOB_QUESTIONS_TYPE;
6
+ questionNumber: number;
7
+ currentQuestion: number;
8
+ isPracticeMode: boolean;
9
+ questionStatus: VIDEO_STATUS;
10
+ }
11
+ export declare const QuestionItem: React.FC<IProps>;
12
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ANSWER_TYPES } from '../interfaces/jobInterface';
3
+ interface IProps {
4
+ answerType: `${ANSWER_TYPES}`;
5
+ duration: number;
6
+ takes?: number;
7
+ }
8
+ export declare const QuestionParameters: React.FC<IProps>;
9
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { ALL_JOB_QUESTIONS_TYPE } from '../interfaces/jobInterface';
3
+ import { VIDEO_STATUS } from '../interfaces/videoInterface';
4
+ interface IProps {
5
+ questions: ALL_JOB_QUESTIONS_TYPE[];
6
+ currentQuestion: number;
7
+ isPracticeMode: boolean;
8
+ questionsStatus: VIDEO_STATUS[];
9
+ }
10
+ export declare const QuestionsList: React.FC<IProps>;
11
+ export {};
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import { ALL_JOB_QUESTIONS_TYPE } from '../interfaces/jobInterface';
3
+ import { IDeviceSelectorList } from './DeviceSelectorList';
4
+ import { MODAL_ERROR_KEY } from './Errors';
5
+ interface IProps extends IDeviceSelectorList {
6
+ errorType: MODAL_ERROR_KEY | null;
7
+ onDisplayPermissionSteps: () => void;
8
+ onReInitRecorder: () => void;
9
+ currentQuestionObj: ALL_JOB_QUESTIONS_TYPE | undefined;
10
+ isRecording: boolean;
11
+ }
12
+ export declare const RecorderModal: React.FC<IProps>;
13
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { IWidgetMachineProps } from '../interfaces/widgetInterface';
3
+ interface IProps extends IWidgetMachineProps {
4
+ isPracticeDisabled: boolean;
5
+ }
6
+ export declare const Setup: React.FC<IProps>;
7
+ export {};
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { IChecksState } from '../interfaces/widgetInterface';
3
+ interface IProps {
4
+ checksState: IChecksState;
5
+ checksMessages: {
6
+ camera: string;
7
+ microphone: string;
8
+ internet: string;
9
+ };
10
+ canRetrySpeedTest: boolean;
11
+ onRetry: () => void;
12
+ }
13
+ export declare const SetupChecks: React.FC<IProps>;
14
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ isOpen: boolean;
4
+ onClose: () => void;
5
+ onRetry: () => void;
6
+ }
7
+ export declare const SliderModal: React.FC<IProps>;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const TopTips: React.FC;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ isConnected: boolean;
4
+ totalFileSize: number;
5
+ totalUploadedFilesSize: {
6
+ [questionNumber: string]: number;
7
+ };
8
+ totalUploadSpeed: {
9
+ [questionNumber: string]: number;
10
+ };
11
+ }
12
+ export declare const Upload: React.FC<IProps>;
13
+ export {};
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { ActorRef, DoneInvokeEvent } from 'xstate';
3
+ import { ALL_JOB_QUESTIONS_TYPE } from '../interfaces/jobInterface';
4
+ import { IDeviceSelectorProps } from './DeviceSelector';
5
+ import { MODAL_ERROR_KEY } from './Errors';
6
+ interface IProps extends IDeviceSelectorProps {
7
+ isCameraDisplayed: boolean;
8
+ microphoneRef: ActorRef<DoneInvokeEvent<any>, any> | null;
9
+ isPracticeModeDisplayed: boolean;
10
+ errorType: MODAL_ERROR_KEY | null;
11
+ isPermissionStepsOpen: boolean;
12
+ onDisplayPermissionSteps: () => void;
13
+ onClosePermissionSteps: () => void;
14
+ onReInitRecorder: () => void;
15
+ onRecorderRetry: () => void;
16
+ isRecorderCanChangeSettings: boolean;
17
+ canStartRecording: boolean;
18
+ currentQuestion: number;
19
+ numberOfQuestions: number;
20
+ currentQuestionObj: ALL_JOB_QUESTIONS_TYPE | undefined;
21
+ isRecording: boolean;
22
+ durations: number;
23
+ recordingTime: number;
24
+ isCountDown: boolean;
25
+ countdown: number;
26
+ isQuestionDisplayed: boolean;
27
+ myinterviewRef: React.RefObject<HTMLDivElement>;
28
+ isAssessment: boolean;
29
+ }
30
+ export declare const VideoCamera: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLVideoElement>>;
31
+ export {};
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ src: string;
4
+ isThinkingTime: boolean;
5
+ onVideoEnds: () => void;
6
+ hidden?: boolean;
7
+ isWidgetMinimized: boolean;
8
+ }
9
+ export declare const VideoQuestion: React.FC<IProps>;
10
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ duration: number;
4
+ currentTime: number;
5
+ isThinkingTime: boolean;
6
+ onChangeTime: (currentTime: number, playing: boolean) => void;
7
+ }
8
+ export declare const VideoTimeBar: React.FC<IProps>;
9
+ export {};
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ introVideo: string;
4
+ welcomeTitle?: string;
5
+ welcomeText?: string;
6
+ onContinue: () => void;
7
+ logo: string;
8
+ company: string;
9
+ title: string;
10
+ termsUrl?: string;
11
+ privacyUrl?: string;
12
+ isResumed: boolean;
13
+ isWidgetMinimized: boolean;
14
+ }
15
+ export declare const WelcomePage: React.FC<IProps>;
16
+ export {};
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { IClientWidgetConfig } from '../interfaces/configInterface';
3
+ export declare const Widget: React.FC<IClientWidgetConfig>;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const ClockIcon: React.FC;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Loading: React.FC;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const NoCameraMic: React.FC;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ playing: boolean;
4
+ }
5
+ export declare const PlayIcon: React.FC<IProps>;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Retake: React.FC;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const RotateScreenIcon: React.FC;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const DotSeparator: React.FC;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const Loader: React.FC;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ActorRef, DoneInvokeEvent } from 'xstate';
3
+ interface IProps {
4
+ microphoneRef: ActorRef<DoneInvokeEvent<any>, any>;
5
+ }
6
+ export declare const MicrophoneIndicator: React.FC<IProps>;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ onClick: () => void;
4
+ }
5
+ export declare const MinimizeButton: React.FC<IProps>;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const PracticeMode: React.FC;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ progress: number;
4
+ }
5
+ export declare const Progress: React.FC<IProps>;
6
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ duration: number;
4
+ }
5
+ export declare const QuestionDuration: React.FC<IProps>;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ currentQuestion: number;
4
+ numberOfQuestions: number;
5
+ }
6
+ export declare const QuestionNumber: React.FC<IProps>;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ isRecording?: boolean;
4
+ }
5
+ export declare const RecordingButton: React.FC<IProps>;
6
+ export {};
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const RotateScreen: React.FC;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ActorRef, DoneInvokeEvent } from 'xstate';
3
+ interface IProps {
4
+ microphoneRef: ActorRef<DoneInvokeEvent<any>, any>;
5
+ activeColor?: string;
6
+ inactiveColor?: string;
7
+ }
8
+ export declare const Signal: React.FC<IProps>;
9
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ onClick: () => void;
4
+ }
5
+ export declare const StartNowButton: React.FC<IProps>;
6
+ export {};
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ onClick: () => void;
4
+ disabled: boolean;
5
+ isExplanationState: boolean;
6
+ isVideoQuestionState: boolean;
7
+ isVideoQuestion: boolean;
8
+ isAssessment: boolean;
9
+ }
10
+ export declare const StartRecordingButton: React.FC<IProps>;
11
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ onClick: () => void;
4
+ disabled: boolean;
5
+ }
6
+ export declare const StopRecordingButton: React.FC<IProps>;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface IProps {
3
+ messageType: 'IOS' | 'BROWSER' | 'INCOGNITO';
4
+ }
5
+ export declare const UnsupportedModal: React.FC<IProps>;
6
+ export {};
@@ -0,0 +1,7 @@
1
+ import { IEnv } from '../interfaces/configInterface';
2
+ declare const config: (configEnv?: IEnv) => {
3
+ serverUrl: string;
4
+ INTERCOM_APP_ID: string;
5
+ SENTRY_DSN: string;
6
+ };
7
+ export default config;
@@ -0,0 +1,6 @@
1
+ declare const local_config: {
2
+ serverUrl: string;
3
+ INTERCOM_APP_ID: string;
4
+ SENTRY_DSN: string;
5
+ };
6
+ export default local_config;
@@ -0,0 +1,6 @@
1
+ declare const prod_config: {
2
+ serverUrl: string;
3
+ INTERCOM_APP_ID: string;
4
+ SENTRY_DSN: string;
5
+ };
6
+ export default prod_config;
@@ -0,0 +1,6 @@
1
+ declare const staging_config: {
2
+ serverUrl: string;
3
+ INTERCOM_APP_ID: string;
4
+ SENTRY_DSN: string;
5
+ };
6
+ export default staging_config;