@myinterview/widget-react 1.1.17 → 1.1.18
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/components/Errors.d.ts +2 -3
- package/dist/cjs/components/RecorderModal.d.ts +2 -1
- package/dist/cjs/components/VideoCamera.d.ts +1 -1
- package/dist/cjs/hooks/useAccessibility.d.ts +5 -0
- package/dist/cjs/index.js +4711 -2588
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/configInterface.d.ts +1 -0
- package/dist/cjs/interfaces/widgetInterface.d.ts +2 -0
- package/dist/cjs/utils/device.utils.d.ts +1 -0
- package/dist/esm/components/Errors.d.ts +2 -3
- package/dist/esm/components/RecorderModal.d.ts +2 -1
- package/dist/esm/components/VideoCamera.d.ts +1 -1
- package/dist/esm/hooks/useAccessibility.d.ts +5 -0
- package/dist/esm/index.js +4711 -2588
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/configInterface.d.ts +1 -0
- package/dist/esm/interfaces/widgetInterface.d.ts +2 -0
- package/dist/esm/utils/device.utils.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/package.json +4 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { MODAL_ERROR_KEY } from '../interfaces/widgetInterface';
|
|
3
3
|
import { IDeviceSelectorList } from './DeviceSelectorList';
|
|
4
|
-
export type VIDEO_ERRORS = Exclude<IVideoCorruptedMessagesKey, 'NO_ERROR'>;
|
|
5
|
-
export type MODAL_ERROR_KEY = 'MEDIA_PERMISSION' | 'NO_SOUND' | 'CONNECTION' | VIDEO_ERRORS;
|
|
6
4
|
interface IProps extends Partial<IDeviceSelectorList> {
|
|
7
5
|
errorType: MODAL_ERROR_KEY;
|
|
8
6
|
onDisplayPermissionSteps?: () => void;
|
|
9
7
|
onReInitRecorder?: () => void;
|
|
8
|
+
onRecorderRetry?: () => void;
|
|
10
9
|
}
|
|
11
10
|
export declare const Errors: React.FC<IProps>;
|
|
12
11
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ALL_JOB_QUESTIONS_TYPE } from '../interfaces/jobInterface';
|
|
3
|
+
import { MODAL_ERROR_KEY } from '../interfaces/widgetInterface';
|
|
3
4
|
import { IDeviceSelectorList } from './DeviceSelectorList';
|
|
4
|
-
import { MODAL_ERROR_KEY } from './Errors';
|
|
5
5
|
interface IProps extends IDeviceSelectorList {
|
|
6
6
|
errorType: MODAL_ERROR_KEY | null;
|
|
7
7
|
onDisplayPermissionSteps: () => void;
|
|
8
8
|
onReInitRecorder: () => void;
|
|
9
|
+
onRecorderRetry: () => void;
|
|
9
10
|
currentQuestionObj: ALL_JOB_QUESTIONS_TYPE | undefined;
|
|
10
11
|
isRecording: boolean;
|
|
11
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ActorRef, DoneInvokeEvent } from 'xstate';
|
|
3
3
|
import { ALL_JOB_QUESTIONS_TYPE } from '../interfaces/jobInterface';
|
|
4
|
+
import { MODAL_ERROR_KEY } from '../interfaces/widgetInterface';
|
|
4
5
|
import { IDeviceSelectorProps } from './DeviceSelector';
|
|
5
|
-
import { MODAL_ERROR_KEY } from './Errors';
|
|
6
6
|
interface IProps extends IDeviceSelectorProps {
|
|
7
7
|
isCameraDisplayed: boolean;
|
|
8
8
|
microphoneRef: ActorRef<DoneInvokeEvent<any>, any> | null;
|