@myinterview/widget-react 1.0.40 → 1.0.41-beta-aa991ae
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +42608 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/types/App.d.ts +3 -0
- package/dist/cjs/types/components/CountDown.d.ts +6 -0
- package/dist/cjs/types/components/Counter.d.ts +8 -0
- package/dist/cjs/types/components/DeviceSelector.d.ts +11 -0
- package/dist/cjs/types/components/DeviceSelectorList.d.ts +9 -0
- package/dist/cjs/types/components/DeviceSelectorListNative.d.ts +6 -0
- package/dist/cjs/types/components/Error.d.ts +8 -0
- package/dist/cjs/types/components/ErrorBoundaries.d.ts +9 -0
- package/dist/cjs/types/components/Errors.d.ts +12 -0
- package/dist/cjs/types/components/Explanation.d.ts +7 -0
- package/dist/cjs/types/components/Footer.d.ts +2 -0
- package/dist/cjs/types/components/Header.d.ts +10 -0
- package/dist/cjs/types/components/InnerView.d.ts +15 -0
- package/dist/cjs/types/components/Main.d.ts +11 -0
- package/dist/cjs/types/components/OuterView.d.ts +8 -0
- package/dist/cjs/types/components/PermissionSteps.d.ts +6 -0
- package/dist/cjs/types/components/PracticeModeInfo.d.ts +2 -0
- package/dist/cjs/types/components/PreviewItem.d.ts +17 -0
- package/dist/cjs/types/components/PreviewList.d.ts +18 -0
- package/dist/cjs/types/components/Question.d.ts +9 -0
- package/dist/cjs/types/components/QuestionItem.d.ts +12 -0
- package/dist/cjs/types/components/QuestionsList.d.ts +11 -0
- package/dist/cjs/types/components/RecorderModal.d.ts +15 -0
- package/dist/cjs/types/components/Setup.d.ts +6 -0
- package/dist/cjs/types/components/SetupChecks.d.ts +14 -0
- package/dist/cjs/types/components/SliderModal.d.ts +8 -0
- package/dist/cjs/types/components/TopTips.d.ts +2 -0
- package/dist/cjs/types/components/Upload.d.ts +13 -0
- package/dist/cjs/types/components/VideoCamera.d.ts +30 -0
- package/dist/cjs/types/components/VideoQuestion.d.ts +10 -0
- package/dist/cjs/types/components/VideoTimeBar.d.ts +9 -0
- package/dist/cjs/types/components/WelcomePage.d.ts +16 -0
- package/dist/cjs/types/components/Widget.d.ts +6 -0
- package/dist/cjs/types/components/icons/ClockIcon.d.ts +2 -0
- package/dist/cjs/types/components/icons/Loading.d.ts +2 -0
- package/dist/cjs/types/components/icons/NoCameraMic.d.ts +2 -0
- package/dist/cjs/types/components/icons/PlayIcon.d.ts +6 -0
- package/dist/cjs/types/components/icons/Retake.d.ts +2 -0
- package/dist/cjs/types/components/icons/RotateScreenIcon.d.ts +2 -0
- package/dist/cjs/types/components/ui/Loader.d.ts +2 -0
- package/dist/cjs/types/components/ui/MicrophoneIndicator.d.ts +7 -0
- package/dist/cjs/types/components/ui/MinimizeButton.d.ts +6 -0
- package/dist/cjs/types/components/ui/PracticeMode.d.ts +2 -0
- package/dist/cjs/types/components/ui/Progress.d.ts +6 -0
- package/dist/cjs/types/components/ui/QuestionDuration.d.ts +6 -0
- package/dist/cjs/types/components/ui/QuestionNumber.d.ts +7 -0
- package/dist/cjs/types/components/ui/RecordingButton.d.ts +6 -0
- package/dist/cjs/types/components/ui/RotateScreen.d.ts +2 -0
- package/dist/cjs/types/components/ui/Signal.d.ts +9 -0
- package/dist/cjs/types/components/ui/StartNowButton.d.ts +6 -0
- package/dist/cjs/types/components/ui/StartRecordingButton.d.ts +10 -0
- package/dist/cjs/types/components/ui/StopRecordingButton.d.ts +7 -0
- package/dist/cjs/types/components/ui/UnsupportedModal.d.ts +6 -0
- package/dist/cjs/types/config/index.d.ts +7 -0
- package/dist/cjs/types/config/local.env.d.ts +6 -0
- package/dist/cjs/types/config/prod.env.d.ts +6 -0
- package/dist/cjs/types/config/staging.env.d.ts +6 -0
- package/dist/cjs/types/i18n/config.d.ts +1459 -0
- package/dist/cjs/types/index.d.ts +4 -0
- package/dist/cjs/types/interfaces/candidateInterface.d.ts +14 -0
- package/dist/cjs/types/interfaces/candidateSessionInterface.d.ts +83 -0
- package/dist/cjs/types/interfaces/companyInterface.d.ts +4 -0
- package/dist/cjs/types/interfaces/configInterface.d.ts +60 -0
- package/dist/cjs/types/interfaces/jobInterface.d.ts +32 -0
- package/dist/cjs/types/interfaces/microphoneInterface.d.ts +38 -0
- package/dist/cjs/types/interfaces/networkInterface.d.ts +9 -0
- package/dist/cjs/types/interfaces/previewInterface.d.ts +14 -0
- package/dist/cjs/types/interfaces/recorderInterface.d.ts +199 -0
- package/dist/cjs/types/interfaces/storageInterface.d.ts +29 -0
- package/dist/cjs/types/interfaces/uploaderInterface.d.ts +39 -0
- package/dist/cjs/types/interfaces/videoInterface.d.ts +55 -0
- package/dist/cjs/types/interfaces/widgetInterface.d.ts +213 -0
- package/dist/cjs/types/machines/acceleratorMachines/accUploaderMachine.d.ts +6 -0
- package/dist/cjs/types/machines/acceleratorMachines/accWidgetMachine.d.ts +6 -0
- package/dist/cjs/types/machines/acceleratorMachines/microphoneMachine.d.ts +6 -0
- package/dist/cjs/types/machines/acceleratorMachines/networkMachine.d.ts +5 -0
- package/dist/cjs/types/machines/acceleratorMachines/previewMachine.d.ts +6 -0
- package/dist/cjs/types/machines/acceleratorMachines/recorderMachineV2.d.ts +6 -0
- package/dist/cjs/types/machines/acceleratorMachines/storageMachine.d.ts +6 -0
- package/dist/cjs/types/reportWebVitals.d.ts +3 -0
- package/dist/cjs/types/services/axiosInstances.service.d.ts +4 -0
- package/dist/cjs/types/services/s3.service.d.ts +1 -0
- package/dist/cjs/types/services/session.service.d.ts +57 -0
- package/dist/cjs/types/services/speedTest.service.d.ts +2 -0
- package/dist/cjs/types/services/video.service.d.ts +7 -0
- package/dist/cjs/types/setupTests.d.ts +1 -0
- package/dist/cjs/types/utils/authToken.utils.d.ts +7 -0
- package/dist/cjs/types/utils/constants.utils.d.ts +13 -0
- package/dist/cjs/types/utils/debug.utils.d.ts +19 -0
- package/dist/cjs/types/utils/device.utils.d.ts +12 -0
- package/dist/cjs/types/utils/errors.utils.d.ts +9 -0
- package/dist/cjs/types/utils/formatters.utils.d.ts +5 -0
- package/dist/cjs/types/utils/languages.utils.d.ts +1 -0
- package/dist/cjs/types/utils/messages.utils.d.ts +16 -0
- package/dist/cjs/types/utils/practiceQuestions.utils.d.ts +2 -0
- package/dist/cjs/types/utils/recorderErrors.utils.d.ts +29 -0
- package/dist/cjs/types/utils/sentry.utils.d.ts +4 -0
- package/dist/cjs/types/utils/statusCodes.utils.d.ts +13 -0
- package/package.json +2 -1
|
@@ -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,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 declare type VIDEO_ERRORS = Exclude<IVideoCorruptedMessagesKey, 'NO_ERROR'>;
|
|
5
|
+
export declare 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,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,17 @@
|
|
|
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
|
+
myinterviewRef: React.RefObject<HTMLDivElement>;
|
|
15
|
+
}
|
|
16
|
+
export declare const PreviewItem: React.FC<IProps>;
|
|
17
|
+
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,12 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,11 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IQuestion } 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
|
+
currentQuestion: number;
|
|
10
|
+
numberOfQuestions: number;
|
|
11
|
+
currentQuestionObj: IQuestion | undefined;
|
|
12
|
+
isRecording: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const RecorderModal: React.FC<IProps>;
|
|
15
|
+
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,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,30 @@
|
|
|
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
|
+
onReInitRecorder: () => void;
|
|
15
|
+
onRecorderRetry: () => void;
|
|
16
|
+
isRecorderCanChangeSettings: boolean;
|
|
17
|
+
canStartRecording: boolean;
|
|
18
|
+
currentQuestion: number;
|
|
19
|
+
numberOfQuestions: number;
|
|
20
|
+
currentQuestionObj: IQuestion | 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
|
+
}
|
|
29
|
+
export declare const VideoCamera: React.ForwardRefExoticComponent<IProps & React.RefAttributes<HTMLVideoElement>>;
|
|
30
|
+
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,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import '../assets/styles/font.scss';
|
|
3
|
+
import { IClientWidgetConfig } from '../interfaces/configInterface';
|
|
4
|
+
import { getToken } from '../utils/authToken.utils';
|
|
5
|
+
export declare const Widget: React.FC<IClientWidgetConfig>;
|
|
6
|
+
export { getToken };
|
|
@@ -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,10 @@
|
|
|
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 {};
|