@myinterview/widget-react 1.0.88 → 1.0.311

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 (205) hide show
  1. package/README.md +4 -4
  2. package/dist/{cjs/types → esm}/App.d.ts +0 -0
  3. package/dist/{cjs/types → esm}/components/CountDown.d.ts +0 -0
  4. package/dist/{cjs/types → esm}/components/Counter.d.ts +0 -0
  5. package/dist/{cjs/types → esm}/components/DeviceSelector.d.ts +0 -0
  6. package/dist/{cjs/types → esm}/components/DeviceSelectorList.d.ts +0 -0
  7. package/dist/{cjs/types → esm}/components/DeviceSelectorListNative.d.ts +0 -0
  8. package/dist/{cjs/types → esm}/components/Error.d.ts +0 -0
  9. package/dist/{cjs/types → esm}/components/ErrorBoundaries.d.ts +0 -0
  10. package/dist/esm/{types/components → components}/Errors.d.ts +4 -1
  11. package/dist/{cjs/types → esm}/components/Explanation.d.ts +0 -0
  12. package/dist/{cjs/types → esm}/components/Footer.d.ts +0 -0
  13. package/dist/{cjs/types → esm}/components/Header.d.ts +0 -0
  14. package/dist/{cjs/types → esm}/components/InnerView.d.ts +2 -0
  15. package/dist/esm/{types/components → components}/Main.d.ts +3 -2
  16. package/dist/{cjs/types → esm}/components/OuterView.d.ts +0 -0
  17. package/dist/{cjs/types → esm}/components/PermissionSteps.d.ts +0 -0
  18. package/dist/{cjs/types → esm}/components/PracticeModeInfo.d.ts +0 -0
  19. package/dist/esm/components/PreviewItem.d.ts +16 -0
  20. package/dist/{cjs/types → esm}/components/PreviewList.d.ts +0 -0
  21. package/dist/{cjs/types → esm}/components/Question.d.ts +0 -0
  22. package/dist/{cjs/types → esm}/components/QuestionItem.d.ts +0 -0
  23. package/dist/{cjs/types → esm}/components/QuestionsList.d.ts +0 -0
  24. package/dist/esm/{types/components → components}/RecorderModal.d.ts +1 -0
  25. package/dist/{cjs/types → esm}/components/Setup.d.ts +0 -0
  26. package/dist/{cjs/types → esm}/components/SetupChecks.d.ts +0 -0
  27. package/dist/{cjs/types → esm}/components/SliderModal.d.ts +0 -0
  28. package/dist/esm/components/TopTips.d.ts +2 -0
  29. package/dist/{cjs/types → esm}/components/Upload.d.ts +0 -0
  30. package/dist/{cjs/types → esm}/components/VideoCamera.d.ts +1 -0
  31. package/dist/{cjs/types → esm}/components/VideoQuestion.d.ts +1 -0
  32. package/dist/{cjs/types → esm}/components/VideoTimeBar.d.ts +0 -0
  33. package/dist/{cjs/types → esm}/components/WelcomePage.d.ts +6 -1
  34. package/dist/esm/components/Widget.d.ts +6 -0
  35. package/dist/{cjs/types → esm}/components/icons/ClockIcon.d.ts +0 -0
  36. package/dist/{cjs/types → esm}/components/icons/Loading.d.ts +0 -0
  37. package/dist/{cjs/types → esm}/components/icons/NoCameraMic.d.ts +0 -0
  38. package/dist/{cjs/types → esm}/components/icons/PlayIcon.d.ts +0 -0
  39. package/dist/{cjs/types → esm}/components/icons/Retake.d.ts +0 -0
  40. package/dist/{cjs/types → esm}/components/icons/RotateScreenIcon.d.ts +0 -0
  41. package/dist/{cjs/types → esm}/components/ui/Loader.d.ts +0 -0
  42. package/dist/{cjs/types → esm}/components/ui/MicrophoneIndicator.d.ts +0 -0
  43. package/dist/esm/{types/components/ui/StartNowButton.d.ts → components/ui/MinimizeButton.d.ts} +1 -1
  44. package/dist/{cjs/types → esm}/components/ui/PracticeMode.d.ts +0 -0
  45. package/dist/{cjs/types → esm}/components/ui/Progress.d.ts +0 -0
  46. package/dist/{cjs/types → esm}/components/ui/QuestionDuration.d.ts +0 -0
  47. package/dist/{cjs/types → esm}/components/ui/QuestionNumber.d.ts +0 -0
  48. package/dist/{cjs/types → esm}/components/ui/RecordingButton.d.ts +0 -0
  49. package/dist/{cjs/types → esm}/components/ui/RotateScreen.d.ts +0 -0
  50. package/dist/{cjs/types → esm}/components/ui/Signal.d.ts +0 -0
  51. package/dist/{cjs/types → esm}/components/ui/StartNowButton.d.ts +0 -0
  52. package/dist/{cjs/types → esm}/components/ui/StartRecordingButton.d.ts +0 -0
  53. package/dist/{cjs/types → esm}/components/ui/StopRecordingButton.d.ts +0 -0
  54. package/dist/{cjs/types → esm}/components/ui/UnsupportedModal.d.ts +0 -0
  55. package/dist/{cjs/types → esm}/config/index.d.ts +2 -1
  56. package/dist/{cjs/types → esm}/config/local.env.d.ts +0 -0
  57. package/dist/{cjs/types → esm}/config/prod.env.d.ts +0 -0
  58. package/dist/{cjs/types → esm}/config/staging.env.d.ts +0 -0
  59. package/dist/esm/{types/i18n → i18n}/config.d.ts +191 -28
  60. package/dist/esm/index.d.ts +4 -0
  61. package/dist/esm/index.js +12280 -2531
  62. package/dist/esm/index.js.map +1 -1
  63. package/dist/{cjs/types → esm}/interfaces/candidateInterface.d.ts +5 -1
  64. package/dist/{cjs/types → esm}/interfaces/candidateSessionInterface.d.ts +10 -5
  65. package/dist/{cjs/types → esm}/interfaces/companyInterface.d.ts +1 -0
  66. package/dist/esm/interfaces/configInterface.d.ts +58 -0
  67. package/dist/esm/{types/interfaces → interfaces}/jobInterface.d.ts +11 -1
  68. package/dist/esm/{types/interfaces → interfaces}/microphoneInterface.d.ts +2 -0
  69. package/dist/{cjs/types → esm}/interfaces/networkInterface.d.ts +0 -0
  70. package/dist/{cjs/types → esm}/interfaces/previewInterface.d.ts +0 -0
  71. package/dist/esm/interfaces/recorderInterface.d.ts +198 -0
  72. package/dist/{cjs/types → esm}/interfaces/storageInterface.d.ts +0 -0
  73. package/dist/{cjs/types → esm}/interfaces/uploaderInterface.d.ts +0 -0
  74. package/dist/{cjs/types → esm}/interfaces/videoInterface.d.ts +2 -1
  75. package/dist/{cjs/types → esm}/interfaces/widgetInterface.d.ts +26 -5
  76. package/dist/{cjs/types → esm}/machines/acceleratorMachines/accUploaderMachine.d.ts +0 -0
  77. package/dist/{cjs/types → esm}/machines/acceleratorMachines/accWidgetMachine.d.ts +0 -0
  78. package/dist/{cjs/types → esm}/machines/acceleratorMachines/microphoneMachine.d.ts +0 -0
  79. package/dist/{cjs/types → esm}/machines/acceleratorMachines/networkMachine.d.ts +0 -0
  80. package/dist/{cjs/types → esm}/machines/acceleratorMachines/previewMachine.d.ts +0 -0
  81. package/dist/{cjs/types → esm}/machines/acceleratorMachines/recorderMachineV2.d.ts +0 -0
  82. package/dist/{cjs/types → esm}/machines/acceleratorMachines/storageMachine.d.ts +0 -0
  83. package/dist/{cjs/types → esm}/reportWebVitals.d.ts +0 -0
  84. package/dist/esm/{types/services → services}/axiosInstances.service.d.ts +1 -0
  85. package/dist/{cjs/types → esm}/services/s3.service.d.ts +0 -0
  86. package/dist/esm/{types/services → services}/session.service.d.ts +12 -1
  87. package/dist/{cjs/types → esm}/services/speedTest.service.d.ts +0 -0
  88. package/dist/esm/services/video.service.d.ts +7 -0
  89. package/dist/{cjs/types → esm}/setupTests.d.ts +0 -0
  90. package/dist/{cjs/types → esm}/utils/authToken.utils.d.ts +0 -0
  91. package/dist/{cjs/types → esm}/utils/constants.utils.d.ts +6 -2
  92. package/dist/{cjs/types → esm}/utils/debug.utils.d.ts +0 -0
  93. package/dist/{cjs/types → esm}/utils/device.utils.d.ts +0 -0
  94. package/dist/{cjs/types → esm}/utils/errors.utils.d.ts +0 -0
  95. package/dist/{cjs/types → esm}/utils/formatters.utils.d.ts +0 -0
  96. package/dist/{cjs/types → esm}/utils/messages.utils.d.ts +0 -0
  97. package/dist/{cjs/types → esm}/utils/practiceQuestions.utils.d.ts +0 -0
  98. package/dist/esm/utils/recorderErrors.utils.d.ts +28 -0
  99. package/dist/{cjs/types → esm}/utils/sentry.utils.d.ts +0 -0
  100. package/dist/{cjs/types → esm}/utils/statusCodes.utils.d.ts +0 -0
  101. package/dist/index.d.ts +57 -15
  102. package/package.json +5 -4
  103. package/dist/cjs/index.js +0 -31900
  104. package/dist/cjs/index.js.map +0 -1
  105. package/dist/cjs/types/components/Errors.d.ts +0 -9
  106. package/dist/cjs/types/components/Main.d.ts +0 -8
  107. package/dist/cjs/types/components/PreviewItem.d.ts +0 -10
  108. package/dist/cjs/types/components/RecorderModal.d.ts +0 -14
  109. package/dist/cjs/types/components/Widget.d.ts +0 -9
  110. package/dist/cjs/types/i18n/config.d.ts +0 -430
  111. package/dist/cjs/types/index.d.ts +0 -2
  112. package/dist/cjs/types/interfaces/configInterface.d.ts +0 -33
  113. package/dist/cjs/types/interfaces/jobInterface.d.ts +0 -22
  114. package/dist/cjs/types/interfaces/microphoneInterface.d.ts +0 -36
  115. package/dist/cjs/types/interfaces/recorderInterface.d.ts +0 -110
  116. package/dist/cjs/types/services/axiosInstances.service.d.ts +0 -3
  117. package/dist/cjs/types/services/session.service.d.ts +0 -46
  118. package/dist/cjs/types/services/video.service.d.ts +0 -7
  119. package/dist/cjs/types/utils/permissionSteps.utils.d.ts +0 -19
  120. package/dist/esm/types/App.d.ts +0 -2
  121. package/dist/esm/types/components/CountDown.d.ts +0 -6
  122. package/dist/esm/types/components/Counter.d.ts +0 -8
  123. package/dist/esm/types/components/DeviceSelector.d.ts +0 -10
  124. package/dist/esm/types/components/DeviceSelectorList.d.ts +0 -9
  125. package/dist/esm/types/components/DeviceSelectorListNative.d.ts +0 -6
  126. package/dist/esm/types/components/Error.d.ts +0 -8
  127. package/dist/esm/types/components/ErrorBoundaries.d.ts +0 -9
  128. package/dist/esm/types/components/Explanation.d.ts +0 -7
  129. package/dist/esm/types/components/Footer.d.ts +0 -2
  130. package/dist/esm/types/components/Header.d.ts +0 -10
  131. package/dist/esm/types/components/InnerView.d.ts +0 -12
  132. package/dist/esm/types/components/OuterView.d.ts +0 -8
  133. package/dist/esm/types/components/PermissionSteps.d.ts +0 -6
  134. package/dist/esm/types/components/PracticeModeInfo.d.ts +0 -8
  135. package/dist/esm/types/components/PreviewItem.d.ts +0 -10
  136. package/dist/esm/types/components/PreviewList.d.ts +0 -17
  137. package/dist/esm/types/components/Question.d.ts +0 -9
  138. package/dist/esm/types/components/QuestionItem.d.ts +0 -12
  139. package/dist/esm/types/components/QuestionsList.d.ts +0 -11
  140. package/dist/esm/types/components/Setup.d.ts +0 -6
  141. package/dist/esm/types/components/SetupChecks.d.ts +0 -14
  142. package/dist/esm/types/components/SliderModal.d.ts +0 -8
  143. package/dist/esm/types/components/Upload.d.ts +0 -13
  144. package/dist/esm/types/components/VideoCamera.d.ts +0 -28
  145. package/dist/esm/types/components/VideoQuestion.d.ts +0 -9
  146. package/dist/esm/types/components/VideoTimeBar.d.ts +0 -9
  147. package/dist/esm/types/components/WelcomePage.d.ts +0 -11
  148. package/dist/esm/types/components/Widget.d.ts +0 -9
  149. package/dist/esm/types/components/icons/ClockIcon.d.ts +0 -2
  150. package/dist/esm/types/components/icons/Loading.d.ts +0 -2
  151. package/dist/esm/types/components/icons/NoCameraMic.d.ts +0 -2
  152. package/dist/esm/types/components/icons/PlayIcon.d.ts +0 -6
  153. package/dist/esm/types/components/icons/Retake.d.ts +0 -2
  154. package/dist/esm/types/components/icons/RotateScreenIcon.d.ts +0 -2
  155. package/dist/esm/types/components/ui/Loader.d.ts +0 -2
  156. package/dist/esm/types/components/ui/MicrophoneIndicator.d.ts +0 -7
  157. package/dist/esm/types/components/ui/PracticeMode.d.ts +0 -2
  158. package/dist/esm/types/components/ui/Progress.d.ts +0 -6
  159. package/dist/esm/types/components/ui/QuestionDuration.d.ts +0 -6
  160. package/dist/esm/types/components/ui/QuestionNumber.d.ts +0 -7
  161. package/dist/esm/types/components/ui/RecordingButton.d.ts +0 -6
  162. package/dist/esm/types/components/ui/RotateScreen.d.ts +0 -2
  163. package/dist/esm/types/components/ui/Signal.d.ts +0 -9
  164. package/dist/esm/types/components/ui/StartRecordingButton.d.ts +0 -10
  165. package/dist/esm/types/components/ui/StopRecordingButton.d.ts +0 -7
  166. package/dist/esm/types/components/ui/UnsupportedModal.d.ts +0 -6
  167. package/dist/esm/types/config/index.d.ts +0 -6
  168. package/dist/esm/types/config/local.env.d.ts +0 -6
  169. package/dist/esm/types/config/prod.env.d.ts +0 -6
  170. package/dist/esm/types/config/staging.env.d.ts +0 -6
  171. package/dist/esm/types/index.d.ts +0 -2
  172. package/dist/esm/types/interfaces/candidateInterface.d.ts +0 -10
  173. package/dist/esm/types/interfaces/candidateSessionInterface.d.ts +0 -78
  174. package/dist/esm/types/interfaces/companyInterface.d.ts +0 -3
  175. package/dist/esm/types/interfaces/configInterface.d.ts +0 -33
  176. package/dist/esm/types/interfaces/networkInterface.d.ts +0 -9
  177. package/dist/esm/types/interfaces/previewInterface.d.ts +0 -14
  178. package/dist/esm/types/interfaces/recorderInterface.d.ts +0 -110
  179. package/dist/esm/types/interfaces/storageInterface.d.ts +0 -29
  180. package/dist/esm/types/interfaces/uploaderInterface.d.ts +0 -39
  181. package/dist/esm/types/interfaces/videoInterface.d.ts +0 -54
  182. package/dist/esm/types/interfaces/widgetInterface.d.ts +0 -192
  183. package/dist/esm/types/machines/acceleratorMachines/accUploaderMachine.d.ts +0 -6
  184. package/dist/esm/types/machines/acceleratorMachines/accWidgetMachine.d.ts +0 -6
  185. package/dist/esm/types/machines/acceleratorMachines/microphoneMachine.d.ts +0 -6
  186. package/dist/esm/types/machines/acceleratorMachines/networkMachine.d.ts +0 -5
  187. package/dist/esm/types/machines/acceleratorMachines/previewMachine.d.ts +0 -6
  188. package/dist/esm/types/machines/acceleratorMachines/recorderMachineV2.d.ts +0 -6
  189. package/dist/esm/types/machines/acceleratorMachines/storageMachine.d.ts +0 -6
  190. package/dist/esm/types/reportWebVitals.d.ts +0 -3
  191. package/dist/esm/types/services/s3.service.d.ts +0 -1
  192. package/dist/esm/types/services/speedTest.service.d.ts +0 -2
  193. package/dist/esm/types/services/video.service.d.ts +0 -7
  194. package/dist/esm/types/setupTests.d.ts +0 -1
  195. package/dist/esm/types/utils/authToken.utils.d.ts +0 -7
  196. package/dist/esm/types/utils/constants.utils.d.ts +0 -9
  197. package/dist/esm/types/utils/debug.utils.d.ts +0 -19
  198. package/dist/esm/types/utils/device.utils.d.ts +0 -12
  199. package/dist/esm/types/utils/errors.utils.d.ts +0 -9
  200. package/dist/esm/types/utils/formatters.utils.d.ts +0 -5
  201. package/dist/esm/types/utils/messages.utils.d.ts +0 -16
  202. package/dist/esm/types/utils/permissionSteps.utils.d.ts +0 -19
  203. package/dist/esm/types/utils/practiceQuestions.utils.d.ts +0 -2
  204. package/dist/esm/types/utils/sentry.utils.d.ts +0 -4
  205. package/dist/esm/types/utils/statusCodes.utils.d.ts +0 -13
@@ -1,46 +0,0 @@
1
- /**
2
- * @author tht7 ( tht7 )
3
- * @date 10/07/12022 6:36 pm
4
- */
5
- import { ICandidateSession } from '../interfaces/candidateSessionInterface';
6
- /**
7
- * This function will update the session in the database and cache it in the window object
8
- * it will fill in the current session over the provided object
9
- * @param session
10
- * @param baseURL
11
- */
12
- export declare function updateSession(session: Partial<ICandidateSession>, baseURL?: string): Promise<ICandidateSession | undefined>;
13
- /**
14
- * This function will fetch the session from the sessionStorage and server
15
- * it will then cache the session in the window object
16
- * @param _session - in case you want to override the session, or save a new one to the cache
17
- * @param _session_id - in case you want to override the session_id and fetch from the server
18
- */
19
- export declare function getCandidateSession(_session?: ICandidateSession, _session_id?: string): Promise<ICandidateSession | undefined>;
20
- export declare function getSessionIdFromCache(): string | undefined | null;
21
- /**
22
- * this will remove the session from the sessionStorage, but not the window cache
23
- * this should signal the end of this session
24
- * however the end of a session is when the window gets closed
25
- * so in order to prevent a new window from (maybe) getting the stale session
26
- * we remove it from the sessionStorage
27
- */
28
- export declare function deleteSession(): void;
29
- /** ehehehe this is a type that takes 2 types and matches all the keys of type V from type K */
30
- declare type KeysMatching<T, V> = {
31
- [K in keyof T]-?: T[K] extends (V | undefined) ? K : never;
32
- }[keyof T];
33
- /**
34
- * A cute shortcut for updating a date event in the session
35
- * just give it the key of the date event, and it will update it
36
- * @param eventType
37
- */
38
- export declare function registerDateEvent(eventType: KeysMatching<ICandidateSession, Date>): Promise<ICandidateSession | undefined>;
39
- /**
40
- * Another cute shortcut for updating a number state of a session
41
- * if no data is provided, it will just increment the number
42
- * @param eventType
43
- * @param data
44
- */
45
- export declare function registerCountEvent(eventType: KeysMatching<ICandidateSession, number>, data?: number): Promise<ICandidateSession | undefined>;
46
- export {};
@@ -1,7 +0,0 @@
1
- import { IConfigRequest, IConfigResponse } from '../interfaces/configInterface';
2
- import { IVideo, IVideoFile } from '../interfaces/videoInterface';
3
- export declare const createVideo: (config: IConfigRequest) => Promise<IConfigResponse>;
4
- export declare const getVideo: (videoId: string) => Promise<IConfigResponse>;
5
- export declare const updateVideo: ({ video_id, completed, uploaded, bandwidth }: IVideo) => Promise<IConfigResponse>;
6
- export declare const updateVideoFile: (videoId: string, videoFile: IVideoFile) => Promise<IConfigResponse>;
7
- export declare const getUploadUrl: (videoId: string, fileName: string, typeExtension: string) => Promise<IConfigResponse>;
@@ -1,19 +0,0 @@
1
- export declare const PERMISSION_STEPS: {
2
- IOS: {
3
- CHROME: string[];
4
- SAFARI: string[];
5
- };
6
- ANDROID: {
7
- CHROME: string[];
8
- SAMSUNG: string[];
9
- };
10
- MACBOOK: {
11
- CHROME: string[];
12
- SAFARI: string[];
13
- FIREFOX: string[];
14
- };
15
- WINDOWS: {
16
- CHROME: string[];
17
- FIREFOX: string[];
18
- };
19
- };
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const App: React.FC;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- interface CountDownProps {
3
- countDown: number;
4
- }
5
- export declare const CountDown: ({ countDown }: CountDownProps) => JSX.Element;
6
- export {};
@@ -1,8 +0,0 @@
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 {};
@@ -1,10 +0,0 @@
1
- /// <reference types="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
- }
10
- export declare const DeviceSelector: ({ handleDeviceChange, videoDevices, audioDevices, selectedAudioDevice, selectedVideoDevice, }: IDeviceSelectorProps) => JSX.Element;
@@ -1,9 +0,0 @@
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>;
@@ -1,6 +0,0 @@
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 {};
@@ -1,8 +0,0 @@
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 {};
@@ -1,9 +0,0 @@
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
- }
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- isVideoQuestion: boolean;
4
- thinkingTime: number;
5
- }
6
- export declare const Explanation: React.FC<IProps>;
7
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Footer: React.FC;
@@ -1,10 +0,0 @@
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 {};
@@ -1,12 +0,0 @@
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
- onOpenSliderModal: () => void;
8
- onCloseSliderModal: () => void;
9
- onRecorderRetry: () => void;
10
- }
11
- export declare const InnerView: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLVideoElement>>;
12
- export {};
@@ -1,8 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- onRetry: () => void;
4
- }
5
- export declare const PermissionSteps: React.FC<IProps>;
6
- export {};
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- isCountDown: boolean;
4
- isQuestionDisplayed: boolean;
5
- isUploadingState: boolean;
6
- }
7
- export declare const PracticeModeInfo: React.FC<IProps>;
8
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- blob: string;
4
- onSelectVideo: () => void;
5
- isSelected: boolean;
6
- position: string;
7
- isConnected: boolean;
8
- }
9
- export declare const PreviewItem: React.FC<IProps>;
10
- export {};
@@ -1,17 +0,0 @@
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
- }
16
- export declare const PreviewList: React.FC<IProps>;
17
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { IQuestion } from '../interfaces/jobInterface';
3
- interface IProps {
4
- questionObj: IQuestion;
5
- currentQuestion: number;
6
- isInner?: boolean;
7
- }
8
- export declare const Question: React.FC<IProps>;
9
- export {};
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { IQuestion } from '../interfaces/jobInterface';
3
- import { VIDEO_STATUS } from '../interfaces/videoInterface';
4
- interface IProps {
5
- questionObj: IQuestion;
6
- questionNumber: number;
7
- currentQuestion: number;
8
- isPracticeMode: boolean;
9
- questionStatus: VIDEO_STATUS;
10
- }
11
- export declare const QuestionItem: React.FC<IProps>;
12
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { IQuestion } from '../interfaces/jobInterface';
3
- import { VIDEO_STATUS } from '../interfaces/videoInterface';
4
- interface IProps {
5
- questions: IQuestion[];
6
- currentQuestion: number;
7
- isPracticeMode: boolean;
8
- questionsStatus: VIDEO_STATUS[];
9
- }
10
- export declare const QuestionsList: React.FC<IProps>;
11
- export {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { IWidgetMachineProps } from '../interfaces/widgetInterface';
3
- interface IProps extends IWidgetMachineProps {
4
- }
5
- export declare const Setup: React.FC<IProps>;
6
- export {};
@@ -1,14 +0,0 @@
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 {};
@@ -1,8 +0,0 @@
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 {};
@@ -1,13 +0,0 @@
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 {};
@@ -1,28 +0,0 @@
1
- import React from 'react';
2
- import { ActorRef, DoneInvokeEvent } from 'xstate';
3
- import { IQuestion } 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
- onRecorderRetry: () => void;
15
- isRecorderCanChangeSettings: boolean;
16
- canStartRecording: boolean;
17
- currentQuestion: number;
18
- numberOfQuestions: number;
19
- currentQuestionObj: IQuestion | undefined;
20
- isRecording: boolean;
21
- durations: number;
22
- recordingTime: number;
23
- isCountDown: boolean;
24
- countdown: number;
25
- isQuestionDisplayed: boolean;
26
- }
27
- export declare const VideoCamera: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLVideoElement>>;
28
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- src: string;
4
- isThinkingTime: boolean;
5
- onVideoEnds: () => void;
6
- hidden?: boolean;
7
- }
8
- export declare const VideoQuestion: React.FC<IProps>;
9
- export {};
@@ -1,9 +0,0 @@
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 {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- introVideo: string;
4
- introVideoTitle: string;
5
- onContinue: () => void;
6
- logo: string;
7
- company: string;
8
- title: string;
9
- }
10
- export declare const WelcomePage: React.FC<IProps>;
11
- export {};
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { IConfig } from '../interfaces/configInterface';
3
- import '../assets/styles/global.scss';
4
- interface IProps extends IConfig {
5
- disabled?: boolean;
6
- buttonText?: string;
7
- }
8
- export declare const Widget: React.FC<IProps>;
9
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ClockIcon: React.FC;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Loading: React.FC;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const NoCameraMic: React.FC;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- playing: boolean;
4
- }
5
- export declare const PlayIcon: React.FC<IProps>;
6
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Retake: React.FC;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const RotateScreenIcon: React.FC;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const Loader: React.FC;
@@ -1,7 +0,0 @@
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 {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const PracticeMode: React.FC;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- progress: number;
4
- }
5
- export declare const Progress: React.FC<IProps>;
6
- export {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- duration: number;
4
- }
5
- export declare const QuestionDuration: React.FC<IProps>;
6
- export {};
@@ -1,7 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- isRecording?: boolean;
4
- }
5
- export declare const RecordingButton: React.FC<IProps>;
6
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const RotateScreen: React.FC;
@@ -1,9 +0,0 @@
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 {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- onClick: () => void;
4
- disabled: boolean;
5
- isExplanationState: boolean;
6
- isVideoQuestionState: boolean;
7
- isVideoQuestion: boolean;
8
- }
9
- export declare const StartRecordingButton: React.FC<IProps>;
10
- export {};
@@ -1,7 +0,0 @@
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 {};
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- interface IProps {
3
- messageType: 'IOS' | 'BROWSER' | 'INCOGNITO';
4
- }
5
- export declare const UnsupportedModal: React.FC<IProps>;
6
- export {};
@@ -1,6 +0,0 @@
1
- declare let config: {
2
- serverUrl: string;
3
- INTERCOM_APP_ID: string;
4
- SENTRY_DSN: string;
5
- };
6
- export default config;
@@ -1,6 +0,0 @@
1
- declare const local_config: {
2
- serverUrl: string;
3
- INTERCOM_APP_ID: string;
4
- SENTRY_DSN: string;
5
- };
6
- export default local_config;
@@ -1,6 +0,0 @@
1
- declare const prod_config: {
2
- serverUrl: string;
3
- INTERCOM_APP_ID: string;
4
- SENTRY_DSN: string;
5
- };
6
- export default prod_config;
@@ -1,6 +0,0 @@
1
- declare const staging_config: {
2
- serverUrl: string;
3
- INTERCOM_APP_ID: string;
4
- SENTRY_DSN: string;
5
- };
6
- export default staging_config;
@@ -1,2 +0,0 @@
1
- import { Widget } from './components/Widget';
2
- export { Widget };
@@ -1,10 +0,0 @@
1
- export interface ICandidate {
2
- candidate_id?: string;
3
- email: string;
4
- username: string;
5
- phone?: string;
6
- video_id?: string;
7
- redirectUrl?: string;
8
- apiKey?: string;
9
- company_id?: string;
10
- }