@myinterview/widget-react 1.0.37-beta-13881bb → 1.0.38-beta
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/esm/index.js +1147 -1492
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{App.d.ts → types/App.d.ts} +0 -0
- package/dist/esm/{components → types/components}/CountDown.d.ts +0 -0
- package/dist/esm/{components → types/components}/Counter.d.ts +0 -0
- package/dist/esm/{components → types/components}/DeviceSelector.d.ts +0 -0
- package/dist/esm/{components → types/components}/DeviceSelectorList.d.ts +0 -0
- package/dist/esm/{components → types/components}/DeviceSelectorListNative.d.ts +0 -0
- package/dist/esm/{components → types/components}/Error.d.ts +0 -0
- package/dist/esm/{components → types/components}/ErrorBoundaries.d.ts +0 -0
- package/dist/esm/{components → types/components}/Errors.d.ts +2 -2
- package/dist/esm/{components → types/components}/Explanation.d.ts +0 -0
- package/dist/esm/{components → types/components}/Footer.d.ts +0 -0
- package/dist/esm/{components → types/components}/Header.d.ts +0 -0
- package/dist/esm/{components → types/components}/InnerView.d.ts +0 -0
- package/dist/esm/{components → types/components}/Main.d.ts +0 -0
- package/dist/esm/{components → types/components}/OuterView.d.ts +0 -0
- package/dist/esm/{components → types/components}/PermissionSteps.d.ts +0 -0
- package/dist/esm/{components → types/components}/PracticeModeInfo.d.ts +0 -0
- package/dist/esm/{components → types/components}/PreviewItem.d.ts +0 -0
- package/dist/esm/{components → types/components}/PreviewList.d.ts +0 -0
- package/dist/esm/{components → types/components}/Question.d.ts +0 -0
- package/dist/esm/{components → types/components}/QuestionItem.d.ts +0 -0
- package/dist/esm/{components → types/components}/QuestionsList.d.ts +0 -0
- package/dist/esm/{components → types/components}/RecorderModal.d.ts +0 -0
- package/dist/esm/{components → types/components}/Setup.d.ts +0 -0
- package/dist/esm/{components → types/components}/SetupChecks.d.ts +0 -0
- package/dist/esm/{components → types/components}/SliderModal.d.ts +0 -0
- package/dist/esm/{components → types/components}/TopTips.d.ts +0 -0
- package/dist/esm/{components → types/components}/Upload.d.ts +0 -0
- package/dist/esm/{components → types/components}/VideoCamera.d.ts +0 -0
- package/dist/esm/{components → types/components}/VideoQuestion.d.ts +0 -0
- package/dist/esm/{components → types/components}/VideoTimeBar.d.ts +0 -0
- package/dist/esm/{components → types/components}/WelcomePage.d.ts +0 -0
- package/dist/esm/{components → types/components}/Widget.d.ts +0 -0
- package/dist/esm/{components → types/components}/icons/ClockIcon.d.ts +0 -0
- package/dist/esm/{components → types/components}/icons/Loading.d.ts +0 -0
- package/dist/esm/{components → types/components}/icons/NoCameraMic.d.ts +0 -0
- package/dist/esm/{components → types/components}/icons/PlayIcon.d.ts +0 -0
- package/dist/esm/{components → types/components}/icons/Retake.d.ts +0 -0
- package/dist/esm/{components → types/components}/icons/RotateScreenIcon.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/Loader.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/MicrophoneIndicator.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/MinimizeButton.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/PracticeMode.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/Progress.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/QuestionDuration.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/QuestionNumber.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/RecordingButton.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/RotateScreen.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/Signal.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/StartNowButton.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/StartRecordingButton.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/StopRecordingButton.d.ts +0 -0
- package/dist/esm/{components → types/components}/ui/UnsupportedModal.d.ts +0 -0
- package/dist/esm/{config → types/config}/index.d.ts +0 -0
- package/dist/esm/{config → types/config}/local.env.d.ts +0 -0
- package/dist/esm/{config → types/config}/prod.env.d.ts +0 -0
- package/dist/esm/{config → types/config}/staging.env.d.ts +0 -0
- package/dist/esm/{i18n → types/i18n}/config.d.ts +0 -0
- package/dist/esm/{index.d.ts → types/index.d.ts} +0 -0
- package/dist/esm/{interfaces → types/interfaces}/candidateInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/candidateSessionInterface.d.ts +1 -1
- package/dist/esm/{interfaces → types/interfaces}/companyInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/configInterface.d.ts +5 -4
- package/dist/esm/{interfaces → types/interfaces}/jobInterface.d.ts +2 -2
- package/dist/esm/{interfaces → types/interfaces}/microphoneInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/networkInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/previewInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/recorderInterface.d.ts +2 -2
- package/dist/esm/{interfaces → types/interfaces}/storageInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/uploaderInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/videoInterface.d.ts +0 -0
- package/dist/esm/{interfaces → types/interfaces}/widgetInterface.d.ts +5 -5
- package/dist/esm/{machines → types/machines}/acceleratorMachines/accUploaderMachine.d.ts +0 -0
- package/dist/esm/{machines → types/machines}/acceleratorMachines/accWidgetMachine.d.ts +0 -0
- package/dist/esm/{machines → types/machines}/acceleratorMachines/microphoneMachine.d.ts +0 -6
- package/dist/esm/{machines → types/machines}/acceleratorMachines/networkMachine.d.ts +0 -0
- package/dist/esm/{machines → types/machines}/acceleratorMachines/previewMachine.d.ts +0 -0
- package/dist/esm/{machines → types/machines}/acceleratorMachines/recorderMachineV2.d.ts +0 -0
- package/dist/esm/{machines → types/machines}/acceleratorMachines/storageMachine.d.ts +0 -0
- package/dist/esm/{reportWebVitals.d.ts → types/reportWebVitals.d.ts} +0 -0
- package/dist/esm/{services → types/services}/axiosInstances.service.d.ts +0 -0
- package/dist/esm/{services → types/services}/s3.service.d.ts +0 -0
- package/dist/esm/{services → types/services}/session.service.d.ts +1 -1
- package/dist/esm/{services → types/services}/speedTest.service.d.ts +0 -0
- package/dist/esm/{services → types/services}/video.service.d.ts +0 -0
- package/dist/esm/{setupTests.d.ts → types/setupTests.d.ts} +0 -0
- package/dist/esm/{utils → types/utils}/authToken.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/constants.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/debug.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/device.utils.d.ts +1 -1
- package/dist/esm/{utils → types/utils}/errors.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/formatters.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/messages.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/practiceQuestions.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/recorderErrors.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/sentry.utils.d.ts +0 -0
- package/dist/esm/{utils → types/utils}/statusCodes.utils.d.ts +0 -0
- package/dist/index.d.ts +7 -6
- package/package.json +1 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IVideoCorruptedMessagesKey } 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;
|
|
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
6
|
interface IProps extends Partial<IDeviceSelectorList> {
|
|
7
7
|
errorType: MODAL_ERROR_KEY;
|
|
8
8
|
onDisplayPermissionSteps?: () => void;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -31,7 +31,7 @@ export declare const enum CandidateSessionWarnings {
|
|
|
31
31
|
OverconstrainedError = "OverconstrainedError",
|
|
32
32
|
SecurityError = "SecurityError"
|
|
33
33
|
}
|
|
34
|
-
export type CandidateSessionSourceType = 'direct' | 'email' | 'sms' | 'email_reminder' | 'sms_reminder';
|
|
34
|
+
export declare type CandidateSessionSourceType = 'direct' | 'email' | 'sms' | 'email_reminder' | 'sms_reminder';
|
|
35
35
|
export declare const enum CandidateSessionSourceMap {
|
|
36
36
|
direct_start_inter = "direct",
|
|
37
37
|
reminder_start_inter = "email_reminder",
|
|
File without changes
|
|
@@ -3,7 +3,7 @@ import { ICandidate } from './candidateInterface';
|
|
|
3
3
|
import { ICompany } from './companyInterface';
|
|
4
4
|
import { IClientJob, IClientQuestion, IJob, IQuestion } from './jobInterface';
|
|
5
5
|
import { IVideo } from './videoInterface';
|
|
6
|
-
export type IMessageType = 'completed' | 'deadline' | 'applied' | 'inactiveJob';
|
|
6
|
+
export declare type IMessageType = 'completed' | 'deadline' | 'applied' | 'inactiveJob';
|
|
7
7
|
export interface IOnFinish {
|
|
8
8
|
redirectUrl?: string;
|
|
9
9
|
video_id: string;
|
|
@@ -11,7 +11,7 @@ export interface IOnFinish {
|
|
|
11
11
|
export interface IOnError {
|
|
12
12
|
messageType: IMessageType;
|
|
13
13
|
}
|
|
14
|
-
export type IEnv = 'dev' | 'staging' | 'production' | 'development' | 'local';
|
|
14
|
+
export declare type IEnv = 'dev' | 'staging' | 'production' | 'development' | 'local';
|
|
15
15
|
interface IConfig {
|
|
16
16
|
auth: string;
|
|
17
17
|
onWidgetClicked?: () => void;
|
|
@@ -28,8 +28,9 @@ interface IConfig {
|
|
|
28
28
|
env?: IEnv;
|
|
29
29
|
minimizable?: boolean;
|
|
30
30
|
hideHeader?: boolean;
|
|
31
|
+
hideIntercom?: boolean;
|
|
31
32
|
}
|
|
32
|
-
export type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
|
|
33
|
+
export declare type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
|
|
33
34
|
practiceQuestions?: IClientQuestion[];
|
|
34
35
|
};
|
|
35
36
|
export interface IWidgetConfig {
|
|
@@ -42,7 +43,7 @@ export interface IWidgetConfig {
|
|
|
42
43
|
buttonText?: string;
|
|
43
44
|
buttonStyle?: CSSProperties;
|
|
44
45
|
}
|
|
45
|
-
export type IClientWidgetConfig = Omit<IWidgetConfig, 'job' | 'config'> & {
|
|
46
|
+
export declare type IClientWidgetConfig = Omit<IWidgetConfig, 'job' | 'config'> & {
|
|
46
47
|
job: IClientJob;
|
|
47
48
|
config: IClientConfig;
|
|
48
49
|
};
|
|
@@ -7,7 +7,7 @@ export interface IQuestion {
|
|
|
7
7
|
videoQuestion?: string;
|
|
8
8
|
description?: string;
|
|
9
9
|
}
|
|
10
|
-
export type IClientQuestion = Omit<IQuestion, 'numOfRetakes' | 'partDuration' | 'thinkingTime'> & {
|
|
10
|
+
export declare type IClientQuestion = Omit<IQuestion, 'numOfRetakes' | 'partDuration' | 'thinkingTime'> & {
|
|
11
11
|
attempts?: number;
|
|
12
12
|
duration?: number;
|
|
13
13
|
thinkingTime?: number;
|
|
@@ -27,6 +27,6 @@ export interface IJob {
|
|
|
27
27
|
company_id?: string;
|
|
28
28
|
jobID?: string;
|
|
29
29
|
}
|
|
30
|
-
export type IClientJob = Omit<IJob, 'questions'> & {
|
|
30
|
+
export declare type IClientJob = Omit<IJob, 'questions'> & {
|
|
31
31
|
questions?: IClientQuestion[];
|
|
32
32
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -5,8 +5,8 @@ export declare const enum SPEED_TEST_LEVEL {
|
|
|
5
5
|
MEDIUM = 1,
|
|
6
6
|
HIGH = 2
|
|
7
7
|
}
|
|
8
|
-
export type mediaDeviceType = 'video' | 'audio';
|
|
9
|
-
type ConstrainProps = {
|
|
8
|
+
export declare type mediaDeviceType = 'video' | 'audio';
|
|
9
|
+
declare type ConstrainProps = {
|
|
10
10
|
video: {
|
|
11
11
|
width: {
|
|
12
12
|
min?: number;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -5,7 +5,7 @@ import { CAMERA_STATES_MESSAGES, INTERNET_STATES_MESSAGES, MICROPHONE_STATES_MES
|
|
|
5
5
|
import { TAKE_TYPES } from './storageInterface';
|
|
6
6
|
import { IQuestion } from './jobInterface';
|
|
7
7
|
import { IVideoError } from '../utils/errors.utils';
|
|
8
|
-
type IUploaderRef = {
|
|
8
|
+
declare type IUploaderRef = {
|
|
9
9
|
[uploaderRef: string]: ActorRef<DoneInvokeEvent<any>>;
|
|
10
10
|
};
|
|
11
11
|
export declare const VIDEO_ERROR_MESSAGES: {
|
|
@@ -13,10 +13,10 @@ export declare const VIDEO_ERROR_MESSAGES: {
|
|
|
13
13
|
REDIRECT: "REDIRECT";
|
|
14
14
|
NO_ERROR: "";
|
|
15
15
|
};
|
|
16
|
-
export type ICameraStateKey = keyof typeof CAMERA_STATES_MESSAGES;
|
|
17
|
-
export type IMicrophoneStateKey = keyof typeof MICROPHONE_STATES_MESSAGES;
|
|
18
|
-
export type IInternetStateKey = keyof typeof INTERNET_STATES_MESSAGES;
|
|
19
|
-
export type IVideoCorruptedMessagesKey = keyof typeof VIDEO_ERROR_MESSAGES;
|
|
16
|
+
export declare type ICameraStateKey = keyof typeof CAMERA_STATES_MESSAGES;
|
|
17
|
+
export declare type IMicrophoneStateKey = keyof typeof MICROPHONE_STATES_MESSAGES;
|
|
18
|
+
export declare type IInternetStateKey = keyof typeof INTERNET_STATES_MESSAGES;
|
|
19
|
+
export declare type IVideoCorruptedMessagesKey = keyof typeof VIDEO_ERROR_MESSAGES;
|
|
20
20
|
export declare const CAMERA_STATES: {
|
|
21
21
|
[K in ICameraStateKey]: K;
|
|
22
22
|
};
|
|
File without changes
|
|
File without changes
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { DoneInvokeEvent } from 'xstate';
|
|
2
2
|
import { InitialState } from '../../interfaces/microphoneInterface';
|
|
3
|
-
declare global {
|
|
4
|
-
interface Window {
|
|
5
|
-
context: InitialState;
|
|
6
|
-
audioContext: AudioContext;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
3
|
export declare const microphoneMachine: import("xstate").StateMachine<InitialState, any, DoneInvokeEvent<any>, {
|
|
10
4
|
value: any;
|
|
11
5
|
context: InitialState;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -27,7 +27,7 @@ export declare function getSessionIdFromCache(): string | undefined | null;
|
|
|
27
27
|
*/
|
|
28
28
|
export declare function deleteSession(): void;
|
|
29
29
|
/** ehehehe this is a type that takes 2 types and matches all the keys of type V from type K */
|
|
30
|
-
type KeysMatching<T, V> = {
|
|
30
|
+
declare type KeysMatching<T, V> = {
|
|
31
31
|
[K in keyof T]-?: T[K] extends (V | undefined) ? K : never;
|
|
32
32
|
}[keyof T];
|
|
33
33
|
/**
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,7 +4,7 @@ export declare const isSupportedIosDevice: boolean;
|
|
|
4
4
|
export declare const isSupportedDevice: boolean;
|
|
5
5
|
declare const PLATFORMS_OPTIONS: readonly ["ANDROID", "IOS", "MACBOOK", "WINDOWS"];
|
|
6
6
|
declare const BROWSERS_OPTIONS: readonly ["CHROME", "SAFARI", "FIREFOX", "SAMSUNG"];
|
|
7
|
-
type DEVICE_TYPE = {
|
|
7
|
+
declare type DEVICE_TYPE = {
|
|
8
8
|
PLATFORM: typeof PLATFORMS_OPTIONS[number];
|
|
9
9
|
BROWSER: typeof BROWSERS_OPTIONS[number];
|
|
10
10
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ interface IQuestion {
|
|
|
29
29
|
videoQuestion?: string;
|
|
30
30
|
description?: string;
|
|
31
31
|
}
|
|
32
|
-
type IClientQuestion = Omit<IQuestion, 'numOfRetakes' | 'partDuration' | 'thinkingTime'> & {
|
|
32
|
+
declare type IClientQuestion = Omit<IQuestion, 'numOfRetakes' | 'partDuration' | 'thinkingTime'> & {
|
|
33
33
|
attempts?: number;
|
|
34
34
|
duration?: number;
|
|
35
35
|
thinkingTime?: number;
|
|
@@ -49,7 +49,7 @@ interface IJob {
|
|
|
49
49
|
company_id?: string;
|
|
50
50
|
jobID?: string;
|
|
51
51
|
}
|
|
52
|
-
type IClientJob = Omit<IJob, 'questions'> & {
|
|
52
|
+
declare type IClientJob = Omit<IJob, 'questions'> & {
|
|
53
53
|
questions?: IClientQuestion[];
|
|
54
54
|
};
|
|
55
55
|
|
|
@@ -104,7 +104,7 @@ interface IVideo {
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
type IMessageType = 'completed' | 'deadline' | 'applied' | 'inactiveJob';
|
|
107
|
+
declare type IMessageType = 'completed' | 'deadline' | 'applied' | 'inactiveJob';
|
|
108
108
|
interface IOnFinish {
|
|
109
109
|
redirectUrl?: string;
|
|
110
110
|
video_id: string;
|
|
@@ -112,7 +112,7 @@ interface IOnFinish {
|
|
|
112
112
|
interface IOnError {
|
|
113
113
|
messageType: IMessageType;
|
|
114
114
|
}
|
|
115
|
-
type IEnv = 'dev' | 'staging' | 'production' | 'development' | 'local';
|
|
115
|
+
declare type IEnv = 'dev' | 'staging' | 'production' | 'development' | 'local';
|
|
116
116
|
interface IConfig {
|
|
117
117
|
auth: string;
|
|
118
118
|
onWidgetClicked?: () => void;
|
|
@@ -129,8 +129,9 @@ interface IConfig {
|
|
|
129
129
|
env?: IEnv;
|
|
130
130
|
minimizable?: boolean;
|
|
131
131
|
hideHeader?: boolean;
|
|
132
|
+
hideIntercom?: boolean;
|
|
132
133
|
}
|
|
133
|
-
type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
|
|
134
|
+
declare type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
|
|
134
135
|
practiceQuestions?: IClientQuestion[];
|
|
135
136
|
};
|
|
136
137
|
interface IWidgetConfig {
|
|
@@ -143,7 +144,7 @@ interface IWidgetConfig {
|
|
|
143
144
|
buttonText?: string;
|
|
144
145
|
buttonStyle?: CSSProperties;
|
|
145
146
|
}
|
|
146
|
-
type IClientWidgetConfig = Omit<IWidgetConfig, 'job' | 'config'> & {
|
|
147
|
+
declare type IClientWidgetConfig = Omit<IWidgetConfig, 'job' | 'config'> & {
|
|
147
148
|
job: IClientJob;
|
|
148
149
|
config: IClientConfig;
|
|
149
150
|
};
|