@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
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # React-Widget
2
2
 
3
- The myInterview widget for [React](https://reactjs.com).
3
+ The myInterview widget for [React](https://reactjs.com).
4
4
 
5
5
  See [myinterview.com](https://www.myinterview.com) for an examples and comprehensive docs.
6
6
 
@@ -27,7 +27,7 @@ import React from 'react';
27
27
  import { Widget } from '@myinterview/widget-react';
28
28
 
29
29
  const App = () => {
30
- const onCompleteCallback = () => {
30
+ const onFinish = () => {
31
31
  //...
32
32
  }
33
33
  const onError = () => {
@@ -38,7 +38,7 @@ const App = () => {
38
38
  <Widget
39
39
  job={{ job_id: "xxxxxxxxxxxxxxxxxx" }}
40
40
  candidate={{ email: "test@mail.com", username: "Max" }}
41
- config={{ onCompleteCallback, onError,
41
+ config={{ onFinish, onError,
42
42
  auth: "apikey xxxxxxxxxxxxxxxxx sig=xxxxxxxxxxxxxxxxxxxxxxxxxx" }}
43
43
  />
44
44
  )
@@ -51,7 +51,7 @@ const App = () => {
51
51
 
52
52
  # Thanks
53
53
 
54
- Just want to say thank you to everyone who has made it happen.
54
+ Just want to say thank you to everyone who has made it happen.
55
55
 
56
56
  ## License
57
57
 
File without changes
File without changes
File without changes
@@ -1,9 +1,12 @@
1
1
  import React from 'react';
2
+ import { IVideoCorruptedMessagesKey } from '../interfaces/widgetInterface';
2
3
  import { IDeviceSelectorList } from './DeviceSelectorList';
3
- export declare type MODAL_ERROR_KEY = 'MEDIA_PERMISSION' | 'NO_SOUND' | 'CONNECTION';
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
6
  interface IProps extends Partial<IDeviceSelectorList> {
5
7
  errorType: MODAL_ERROR_KEY;
6
8
  onDisplayPermissionSteps?: () => void;
9
+ onReInitRecorder?: () => void;
7
10
  }
8
11
  export declare const Errors: React.FC<IProps>;
9
12
  export {};
File without changes
File without changes
@@ -4,9 +4,11 @@ import { IWidgetMachineProps } from '../interfaces/widgetInterface';
4
4
  interface IProps extends IWidgetMachineProps {
5
5
  recorderRef: ActorRef<DoneInvokeEvent<any>, any>;
6
6
  isSliderModalOpen: boolean;
7
+ isWidgetMinimized: boolean;
7
8
  onOpenSliderModal: () => void;
8
9
  onCloseSliderModal: () => void;
9
10
  onRecorderRetry: () => void;
11
+ onReInitRecorder: () => void;
10
12
  }
11
13
  export declare const InnerView: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLVideoElement>>;
12
14
  export {};
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- import { IConfig } from '../interfaces/configInterface';
2
+ import { IWidgetConfig } from '../interfaces/configInterface';
3
3
  interface IProps {
4
- config: IConfig;
4
+ widgetConfig: IWidgetConfig;
5
5
  setShouldShowWaterMark: React.Dispatch<React.SetStateAction<boolean>>;
6
+ isWidgetMinimized: boolean;
6
7
  }
7
8
  export declare const Main: React.FC<IProps>;
8
9
  export {};
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ export interface IDimensions {
3
+ x: number;
4
+ y: number;
5
+ width: number;
6
+ }
7
+ interface IProps {
8
+ blob: string;
9
+ onSelectVideo: () => void;
10
+ isSelected: boolean;
11
+ position: number;
12
+ isPreviewMode: boolean;
13
+ onPreviewMode: (dimensions: IDimensions) => void;
14
+ }
15
+ export declare const PreviewItem: React.FC<IProps>;
16
+ export {};
File without changes
@@ -5,6 +5,7 @@ import { MODAL_ERROR_KEY } from './Errors';
5
5
  interface IProps extends IDeviceSelectorList {
6
6
  errorType: MODAL_ERROR_KEY | null;
7
7
  onDisplayPermissionSteps: () => void;
8
+ onReInitRecorder: () => void;
8
9
  currentQuestion: number;
9
10
  numberOfQuestions: number;
10
11
  currentQuestionObj: IQuestion | undefined;
File without changes
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare const TopTips: React.FC;
File without changes
@@ -11,6 +11,7 @@ interface IProps extends IDeviceSelectorProps {
11
11
  isPermissionStepsOpen: boolean;
12
12
  onDisplayPermissionSteps: () => void;
13
13
  onClosePermissionSteps: () => void;
14
+ onReInitRecorder: () => void;
14
15
  onRecorderRetry: () => void;
15
16
  isRecorderCanChangeSettings: boolean;
16
17
  canStartRecording: boolean;
@@ -4,6 +4,7 @@ interface IProps {
4
4
  isThinkingTime: boolean;
5
5
  onVideoEnds: () => void;
6
6
  hidden?: boolean;
7
+ isWidgetMinimized: boolean;
7
8
  }
8
9
  export declare const VideoQuestion: React.FC<IProps>;
9
10
  export {};
@@ -1,11 +1,16 @@
1
1
  import React from 'react';
2
2
  interface IProps {
3
3
  introVideo: string;
4
- introVideoTitle: string;
4
+ welcomeTitle?: string;
5
+ welcomeText?: string;
5
6
  onContinue: () => void;
6
7
  logo: string;
7
8
  company: string;
8
9
  title: string;
10
+ termsUrl?: string;
11
+ privacyUrl?: string;
12
+ isResumed: boolean;
13
+ isWidgetMinimized: boolean;
9
14
  }
10
15
  export declare const WelcomePage: React.FC<IProps>;
11
16
  export {};
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { IClientWidgetConfig } from '../interfaces/configInterface';
3
+ import '../assets/styles/global.scss';
4
+ import { getToken } from '../utils/authToken.utils';
5
+ export declare const Widget: React.FC<IClientWidgetConfig>;
6
+ export { getToken };
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  interface IProps {
3
3
  onClick: () => void;
4
4
  }
5
- export declare const StartNowButton: React.FC<IProps>;
5
+ export declare const MinimizeButton: React.FC<IProps>;
6
6
  export {};
@@ -1,4 +1,5 @@
1
- declare let config: {
1
+ import { IEnv } from '../interfaces/configInterface';
2
+ declare const config: (configEnv?: IEnv) => {
2
3
  serverUrl: string;
3
4
  INTERCOM_APP_ID: string;
4
5
  SENTRY_DSN: string;
File without changes
File without changes
File without changes
@@ -1,7 +1,29 @@
1
1
  import i18n from 'i18next';
2
2
  export declare const resources: {
3
- readonly en: {
3
+ readonly cn: {
4
4
  readonly translation: {
5
+ welcome: {
6
+ welcome: string;
7
+ startInterview: string;
8
+ resumeInterview: string;
9
+ see_more: string;
10
+ see_less: string;
11
+ click: string;
12
+ terms: string;
13
+ and: string;
14
+ privacy: string;
15
+ };
16
+ top_tips: {
17
+ top_tips: string;
18
+ title: string;
19
+ tip_1: string;
20
+ tip_2: string;
21
+ tip_3: string;
22
+ tip_4: string;
23
+ tip_5: string;
24
+ tip_6: string;
25
+ tip_7: string;
26
+ };
5
27
  setup: {
6
28
  title: string;
7
29
  rotate: string;
@@ -32,8 +54,8 @@ export declare const resources: {
32
54
  };
33
55
  };
34
56
  time: {
35
- less_than_one_left: string;
36
- minuteLeft: string;
57
+ minuteLeft_one: string;
58
+ minuteLeft_other: string;
37
59
  minute_one: string;
38
60
  minute_other: string;
39
61
  second_one: string;
@@ -43,13 +65,6 @@ export declare const resources: {
43
65
  title: string;
44
66
  subtitle: string;
45
67
  label: string;
46
- questions: {
47
- numOfRetakes: number;
48
- thinkingTime: number;
49
- partDuration: number;
50
- question: string;
51
- description: string;
52
- }[];
53
68
  };
54
69
  preview: {
55
70
  title: string;
@@ -144,8 +159,30 @@ export declare const resources: {
144
159
  };
145
160
  };
146
161
  };
147
- readonly fr: {
162
+ readonly de: {
148
163
  readonly translation: {
164
+ welcome: {
165
+ welcome: string;
166
+ startInterview: string;
167
+ resumeInterview: string;
168
+ see_more: string;
169
+ see_less: string;
170
+ click: string;
171
+ terms: string;
172
+ and: string;
173
+ privacy: string;
174
+ };
175
+ top_tips: {
176
+ top_tips: string;
177
+ title: string;
178
+ tip_1: string;
179
+ tip_2: string;
180
+ tip_3: string;
181
+ tip_4: string;
182
+ tip_5: string;
183
+ tip_6: string;
184
+ tip_7: string;
185
+ };
149
186
  setup: {
150
187
  title: string;
151
188
  rotate: string;
@@ -158,7 +195,6 @@ export declare const resources: {
158
195
  };
159
196
  microphone: {
160
197
  name: string;
161
- NO_SOUND: string;
162
198
  WAITING: string;
163
199
  ERROR: string;
164
200
  READY: string;
@@ -177,8 +213,8 @@ export declare const resources: {
177
213
  };
178
214
  };
179
215
  time: {
180
- less_than_one_left: string;
181
- minuteLeft: string;
216
+ minuteLeft_one: string;
217
+ minuteLeft_other: string;
182
218
  minute_one: string;
183
219
  minute_other: string;
184
220
  second_one: string;
@@ -188,13 +224,6 @@ export declare const resources: {
188
224
  title: string;
189
225
  subtitle: string;
190
226
  label: string;
191
- questions: {
192
- numOfRetakes: number;
193
- thinkingTime: number;
194
- partDuration: number;
195
- question: string;
196
- description: string;
197
- }[];
198
227
  };
199
228
  preview: {
200
229
  title: string;
@@ -289,8 +318,30 @@ export declare const resources: {
289
318
  };
290
319
  };
291
320
  };
292
- readonly es: {
321
+ readonly en: {
293
322
  readonly translation: {
323
+ welcome: {
324
+ title: string;
325
+ startInterview: string;
326
+ resumeInterview: string;
327
+ see_more: string;
328
+ see_less: string;
329
+ click: string;
330
+ terms: string;
331
+ and: string;
332
+ privacy: string;
333
+ };
334
+ top_tips: {
335
+ top_tips: string;
336
+ title: string;
337
+ tip_1: string;
338
+ tip_2: string;
339
+ tip_3: string;
340
+ tip_4: string;
341
+ tip_5: string;
342
+ tip_6: string;
343
+ tip_7: string;
344
+ };
294
345
  setup: {
295
346
  title: string;
296
347
  rotate: string;
@@ -332,6 +383,13 @@ export declare const resources: {
332
383
  title: string;
333
384
  subtitle: string;
334
385
  label: string;
386
+ questions: {
387
+ numOfRetakes: number;
388
+ thinkingTime: number;
389
+ partDuration: number;
390
+ question: string;
391
+ description: string;
392
+ }[];
335
393
  };
336
394
  preview: {
337
395
  title: string;
@@ -378,6 +436,15 @@ export declare const resources: {
378
436
  TITLE: string;
379
437
  DETAILS: string;
380
438
  };
439
+ RETRY: {
440
+ TITLE: string;
441
+ DETAILS: string;
442
+ CTA: string;
443
+ };
444
+ REDIRECT: {
445
+ TITLE: string;
446
+ DETAILS: string;
447
+ };
381
448
  };
382
449
  permissions: {
383
450
  title: string;
@@ -426,8 +493,30 @@ export declare const resources: {
426
493
  };
427
494
  };
428
495
  };
429
- readonly cn: {
496
+ readonly es: {
430
497
  readonly translation: {
498
+ welcome: {
499
+ welcome: string;
500
+ startInterview: string;
501
+ resumeInterview: string;
502
+ see_more: string;
503
+ see_less: string;
504
+ click: string;
505
+ terms: string;
506
+ and: string;
507
+ privacy: string;
508
+ };
509
+ top_tips: {
510
+ top_tips: string;
511
+ title: string;
512
+ tip_1: string;
513
+ tip_2: string;
514
+ tip_3: string;
515
+ tip_4: string;
516
+ tip_5: string;
517
+ tip_6: string;
518
+ tip_7: string;
519
+ };
431
520
  setup: {
432
521
  title: string;
433
522
  rotate: string;
@@ -458,8 +547,8 @@ export declare const resources: {
458
547
  };
459
548
  };
460
549
  time: {
461
- minuteLeft_one: string;
462
- minuteLeft_other: string;
550
+ less_than_one_left: string;
551
+ minuteLeft: string;
463
552
  minute_one: string;
464
553
  minute_other: string;
465
554
  second_one: string;
@@ -563,8 +652,30 @@ export declare const resources: {
563
652
  };
564
653
  };
565
654
  };
566
- readonly de: {
655
+ readonly fr: {
567
656
  readonly translation: {
657
+ welcome: {
658
+ welcome: string;
659
+ startInterview: string;
660
+ resumeInterview: string;
661
+ see_more: string;
662
+ see_less: string;
663
+ click: string;
664
+ terms: string;
665
+ and: string;
666
+ privacy: string;
667
+ };
668
+ top_tips: {
669
+ top_tips: string;
670
+ title: string;
671
+ tip_1: string;
672
+ tip_2: string;
673
+ tip_3: string;
674
+ tip_4: string;
675
+ tip_5: string;
676
+ tip_6: string;
677
+ tip_7: string;
678
+ };
568
679
  setup: {
569
680
  title: string;
570
681
  rotate: string;
@@ -577,6 +688,7 @@ export declare const resources: {
577
688
  };
578
689
  microphone: {
579
690
  name: string;
691
+ NO_SOUND: string;
580
692
  WAITING: string;
581
693
  ERROR: string;
582
694
  READY: string;
@@ -595,8 +707,8 @@ export declare const resources: {
595
707
  };
596
708
  };
597
709
  time: {
598
- minuteLeft_one: string;
599
- minuteLeft_other: string;
710
+ less_than_one_left: string;
711
+ minuteLeft: string;
600
712
  minute_one: string;
601
713
  minute_other: string;
602
714
  second_one: string;
@@ -606,6 +718,13 @@ export declare const resources: {
606
718
  title: string;
607
719
  subtitle: string;
608
720
  label: string;
721
+ questions: {
722
+ numOfRetakes: number;
723
+ thinkingTime: number;
724
+ partDuration: number;
725
+ question: string;
726
+ description: string;
727
+ }[];
609
728
  };
610
729
  preview: {
611
730
  title: string;
@@ -702,6 +821,28 @@ export declare const resources: {
702
821
  };
703
822
  readonly ko: {
704
823
  readonly translation: {
824
+ welcome: {
825
+ welcome: string;
826
+ startInterview: string;
827
+ resumeInterview: string;
828
+ see_more: string;
829
+ see_less: string;
830
+ click: string;
831
+ terms: string;
832
+ and: string;
833
+ privacy: string;
834
+ };
835
+ top_tips: {
836
+ top_tips: string;
837
+ title: string;
838
+ tip_1: string;
839
+ tip_2: string;
840
+ tip_3: string;
841
+ tip_4: string;
842
+ tip_5: string;
843
+ tip_6: string;
844
+ tip_7: string;
845
+ };
705
846
  setup: {
706
847
  title: string;
707
848
  rotate: string;
@@ -839,6 +980,28 @@ export declare const resources: {
839
980
  };
840
981
  readonly pt: {
841
982
  readonly translation: {
983
+ welcome: {
984
+ welcome: string;
985
+ startInterview: string;
986
+ resumeInterview: string;
987
+ see_more: string;
988
+ see_less: string;
989
+ click: string;
990
+ terms: string;
991
+ and: string;
992
+ privacy: string;
993
+ };
994
+ top_tips: {
995
+ top_tips: string;
996
+ title: string;
997
+ tip_1: string;
998
+ tip_2: string;
999
+ tip_3: string;
1000
+ tip_4: string;
1001
+ tip_5: string;
1002
+ tip_6: string;
1003
+ tip_7: string;
1004
+ };
842
1005
  setup: {
843
1006
  title: string;
844
1007
  rotate: string;
@@ -0,0 +1,4 @@
1
+ import { Widget, getToken } from './components/Widget';
2
+ import { IWidgetConfig, IClientWidgetConfig } from './interfaces/configInterface';
3
+ export { Widget, getToken };
4
+ export type { IWidgetConfig, IClientWidgetConfig };