@myinterview/widget-react 1.0.1 → 1.0.3
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/dist/esm/components/Errors.d.ts +4 -1
- package/dist/esm/components/Main.d.ts +2 -2
- package/dist/esm/components/PreviewItem.d.ts +8 -2
- package/dist/esm/components/RecorderModal.d.ts +1 -0
- package/dist/esm/components/VideoCamera.d.ts +1 -0
- package/dist/esm/components/WelcomePage.d.ts +11 -0
- package/dist/esm/components/Widget.d.ts +4 -7
- package/dist/esm/i18n/config.d.ts +845 -14
- package/dist/esm/index.d.ts +4 -2
- package/dist/esm/index.js +9446 -1057
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/candidateSessionInterface.d.ts +10 -5
- package/dist/esm/interfaces/configInterface.d.ts +22 -9
- package/dist/esm/interfaces/jobInterface.d.ts +0 -1
- package/dist/esm/interfaces/videoInterface.d.ts +1 -0
- package/dist/esm/interfaces/widgetInterface.d.ts +24 -5
- package/dist/esm/services/session.service.d.ts +12 -1
- package/dist/esm/services/video.service.d.ts +6 -6
- package/dist/esm/utils/authToken.utils.d.ts +7 -0
- package/dist/esm/utils/constants.utils.d.ts +2 -1
- package/dist/esm/utils/debug.utils.d.ts +19 -0
- package/dist/index.d.ts +26 -12
- package/package.json +5 -5
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
|
|
|
@@ -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
|
|
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 {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IWidgetConfig } from '../interfaces/configInterface';
|
|
3
3
|
interface IProps {
|
|
4
|
-
|
|
4
|
+
widgetConfig: IWidgetConfig;
|
|
5
5
|
setShouldShowWaterMark: React.Dispatch<React.SetStateAction<boolean>>;
|
|
6
6
|
}
|
|
7
7
|
export declare const Main: React.FC<IProps>;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
export interface IDimensions {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
width: number;
|
|
6
|
+
}
|
|
2
7
|
interface IProps {
|
|
3
8
|
blob: string;
|
|
4
9
|
onSelectVideo: () => void;
|
|
5
10
|
isSelected: boolean;
|
|
6
|
-
position:
|
|
7
|
-
|
|
11
|
+
position: number;
|
|
12
|
+
isPreviewMode: boolean;
|
|
13
|
+
onPreviewMode: (dimensions: IDimensions) => void;
|
|
8
14
|
}
|
|
9
15
|
export declare const PreviewItem: React.FC<IProps>;
|
|
10
16
|
export {};
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { IWidgetConfig } from '../interfaces/configInterface';
|
|
3
3
|
import '../assets/styles/global.scss';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export declare const Widget: React.FC<IProps>;
|
|
9
|
-
export {};
|
|
4
|
+
import { getToken } from '../utils/authToken.utils';
|
|
5
|
+
export declare const Widget: React.FC<IWidgetConfig>;
|
|
6
|
+
export { getToken };
|