@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 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 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 {};
@@ -1,7 +1,7 @@
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
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: string;
7
- isConnected: boolean;
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;
@@ -0,0 +1,11 @@
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 +1,6 @@
1
1
  import React from 'react';
2
- import { IConfig } from '../interfaces/configInterface';
2
+ import { IWidgetConfig } from '../interfaces/configInterface';
3
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 {};
4
+ import { getToken } from '../utils/authToken.utils';
5
+ export declare const Widget: React.FC<IWidgetConfig>;
6
+ export { getToken };