@myinterview/widget-react 1.0.1 → 1.0.2
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/README.md +2 -2
- package/package.json +5 -5
- package/dist/esm/App.d.ts +0 -2
- package/dist/esm/components/CountDown.d.ts +0 -6
- package/dist/esm/components/Counter.d.ts +0 -8
- package/dist/esm/components/DeviceSelector.d.ts +0 -10
- package/dist/esm/components/DeviceSelectorList.d.ts +0 -9
- package/dist/esm/components/DeviceSelectorListNative.d.ts +0 -6
- package/dist/esm/components/Error.d.ts +0 -8
- package/dist/esm/components/ErrorBoundaries.d.ts +0 -9
- package/dist/esm/components/Errors.d.ts +0 -9
- package/dist/esm/components/Explanation.d.ts +0 -7
- package/dist/esm/components/Footer.d.ts +0 -2
- package/dist/esm/components/Header.d.ts +0 -10
- package/dist/esm/components/InnerView.d.ts +0 -12
- package/dist/esm/components/Main.d.ts +0 -8
- package/dist/esm/components/OuterView.d.ts +0 -8
- package/dist/esm/components/PermissionSteps.d.ts +0 -6
- package/dist/esm/components/PracticeModeInfo.d.ts +0 -8
- package/dist/esm/components/PreviewItem.d.ts +0 -10
- package/dist/esm/components/PreviewList.d.ts +0 -17
- package/dist/esm/components/Question.d.ts +0 -9
- package/dist/esm/components/QuestionItem.d.ts +0 -12
- package/dist/esm/components/QuestionsList.d.ts +0 -11
- package/dist/esm/components/RecorderModal.d.ts +0 -14
- package/dist/esm/components/Setup.d.ts +0 -6
- package/dist/esm/components/SetupChecks.d.ts +0 -14
- package/dist/esm/components/SliderModal.d.ts +0 -8
- package/dist/esm/components/Upload.d.ts +0 -13
- package/dist/esm/components/VideoCamera.d.ts +0 -28
- package/dist/esm/components/VideoQuestion.d.ts +0 -9
- package/dist/esm/components/VideoTimeBar.d.ts +0 -9
- package/dist/esm/components/Widget.d.ts +0 -9
- package/dist/esm/components/icons/ClockIcon.d.ts +0 -2
- package/dist/esm/components/icons/Loading.d.ts +0 -2
- package/dist/esm/components/icons/NoCameraMic.d.ts +0 -2
- package/dist/esm/components/icons/PlayIcon.d.ts +0 -6
- package/dist/esm/components/icons/Retake.d.ts +0 -2
- package/dist/esm/components/icons/RotateScreenIcon.d.ts +0 -2
- package/dist/esm/components/ui/Loader.d.ts +0 -2
- package/dist/esm/components/ui/MicrophoneIndicator.d.ts +0 -7
- package/dist/esm/components/ui/PracticeMode.d.ts +0 -2
- package/dist/esm/components/ui/Progress.d.ts +0 -6
- package/dist/esm/components/ui/QuestionDuration.d.ts +0 -6
- package/dist/esm/components/ui/QuestionNumber.d.ts +0 -7
- package/dist/esm/components/ui/RecordingButton.d.ts +0 -6
- package/dist/esm/components/ui/RotateScreen.d.ts +0 -2
- package/dist/esm/components/ui/Signal.d.ts +0 -9
- package/dist/esm/components/ui/StartNowButton.d.ts +0 -6
- package/dist/esm/components/ui/StartRecordingButton.d.ts +0 -10
- package/dist/esm/components/ui/StopRecordingButton.d.ts +0 -7
- package/dist/esm/components/ui/UnsupportedModal.d.ts +0 -6
- package/dist/esm/config/index.d.ts +0 -6
- package/dist/esm/config/local.env.d.ts +0 -6
- package/dist/esm/config/prod.env.d.ts +0 -6
- package/dist/esm/config/staging.env.d.ts +0 -6
- package/dist/esm/i18n/config.d.ts +0 -430
- package/dist/esm/index.d.ts +0 -2
- package/dist/esm/index.js +0 -32177
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/interfaces/candidateInterface.d.ts +0 -10
- package/dist/esm/interfaces/candidateSessionInterface.d.ts +0 -78
- package/dist/esm/interfaces/companyInterface.d.ts +0 -3
- package/dist/esm/interfaces/configInterface.d.ts +0 -33
- package/dist/esm/interfaces/jobInterface.d.ts +0 -22
- package/dist/esm/interfaces/microphoneInterface.d.ts +0 -36
- package/dist/esm/interfaces/networkInterface.d.ts +0 -9
- package/dist/esm/interfaces/previewInterface.d.ts +0 -14
- package/dist/esm/interfaces/recorderInterface.d.ts +0 -110
- package/dist/esm/interfaces/storageInterface.d.ts +0 -29
- package/dist/esm/interfaces/uploaderInterface.d.ts +0 -39
- package/dist/esm/interfaces/videoInterface.d.ts +0 -54
- package/dist/esm/interfaces/widgetInterface.d.ts +0 -192
- package/dist/esm/machines/acceleratorMachines/accUploaderMachine.d.ts +0 -6
- package/dist/esm/machines/acceleratorMachines/accWidgetMachine.d.ts +0 -6
- package/dist/esm/machines/acceleratorMachines/microphoneMachine.d.ts +0 -6
- package/dist/esm/machines/acceleratorMachines/networkMachine.d.ts +0 -5
- package/dist/esm/machines/acceleratorMachines/previewMachine.d.ts +0 -6
- package/dist/esm/machines/acceleratorMachines/recorderMachineV2.d.ts +0 -6
- package/dist/esm/machines/acceleratorMachines/storageMachine.d.ts +0 -6
- package/dist/esm/reportWebVitals.d.ts +0 -3
- package/dist/esm/services/axiosInstances.service.d.ts +0 -3
- package/dist/esm/services/s3.service.d.ts +0 -1
- package/dist/esm/services/session.service.d.ts +0 -46
- package/dist/esm/services/speedTest.service.d.ts +0 -2
- package/dist/esm/services/video.service.d.ts +0 -7
- package/dist/esm/setupTests.d.ts +0 -1
- package/dist/esm/utils/constants.utils.d.ts +0 -9
- package/dist/esm/utils/device.utils.d.ts +0 -12
- package/dist/esm/utils/errors.utils.d.ts +0 -9
- package/dist/esm/utils/formatters.utils.d.ts +0 -5
- package/dist/esm/utils/messages.utils.d.ts +0 -16
- package/dist/esm/utils/practiceQuestions.utils.d.ts +0 -2
- package/dist/esm/utils/sentry.utils.d.ts +0 -4
- package/dist/esm/utils/statusCodes.utils.d.ts +0 -13
- package/dist/index.d.ts +0 -117
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
|
|
|
@@ -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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myinterview/widget-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "myInterview widget v3",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"files": [
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"start-prod": "REACT_APP_ENV=prod HTTPS=true react-scripts start",
|
|
31
31
|
"start-staging": "REACT_APP_ENV=staging HTTPS=true react-scripts start",
|
|
32
32
|
"build": "react-scripts build",
|
|
33
|
-
"
|
|
34
|
-
"
|
|
33
|
+
"publish-prod": "REACT_APP_ENV=prod rollup -c && npm publish",
|
|
34
|
+
"publish-staging": "REACT_APP_ENV=staging rollup -c && npm publish --tag beta",
|
|
35
35
|
"test": "react-scripts test",
|
|
36
36
|
"eject": "react-scripts eject"
|
|
37
37
|
},
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
"webpack-cli": "^4.10.0"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
|
-
"@testing-library/react": "^12.1.5 || ^13.4.0",
|
|
95
94
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
96
|
-
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
95
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
96
|
+
"@testing-library/react": "^12.1.5 || ^13.4.0"
|
|
97
97
|
}
|
|
98
98
|
}
|
package/dist/esm/App.d.ts
DELETED
|
@@ -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,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,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { IDeviceSelectorList } from './DeviceSelectorList';
|
|
3
|
-
export declare type MODAL_ERROR_KEY = 'MEDIA_PERMISSION' | 'NO_SOUND' | 'CONNECTION';
|
|
4
|
-
interface IProps extends Partial<IDeviceSelectorList> {
|
|
5
|
-
errorType: MODAL_ERROR_KEY;
|
|
6
|
-
onDisplayPermissionSteps?: () => void;
|
|
7
|
-
}
|
|
8
|
-
export declare const Errors: React.FC<IProps>;
|
|
9
|
-
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,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,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,14 +0,0 @@
|
|
|
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
|
-
currentQuestion: number;
|
|
9
|
-
numberOfQuestions: number;
|
|
10
|
-
currentQuestionObj: IQuestion | undefined;
|
|
11
|
-
isRecording: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const RecorderModal: React.FC<IProps>;
|
|
14
|
-
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,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
|
-
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,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 {};
|