@myinterview/widget-react 1.0.2 → 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.
Files changed (98) hide show
  1. package/dist/esm/App.d.ts +2 -0
  2. package/dist/esm/components/CountDown.d.ts +6 -0
  3. package/dist/esm/components/Counter.d.ts +8 -0
  4. package/dist/esm/components/DeviceSelector.d.ts +10 -0
  5. package/dist/esm/components/DeviceSelectorList.d.ts +9 -0
  6. package/dist/esm/components/DeviceSelectorListNative.d.ts +6 -0
  7. package/dist/esm/components/Error.d.ts +8 -0
  8. package/dist/esm/components/ErrorBoundaries.d.ts +9 -0
  9. package/dist/esm/components/Errors.d.ts +12 -0
  10. package/dist/esm/components/Explanation.d.ts +7 -0
  11. package/dist/esm/components/Footer.d.ts +2 -0
  12. package/dist/esm/components/Header.d.ts +10 -0
  13. package/dist/esm/components/InnerView.d.ts +12 -0
  14. package/dist/esm/components/Main.d.ts +8 -0
  15. package/dist/esm/components/OuterView.d.ts +8 -0
  16. package/dist/esm/components/PermissionSteps.d.ts +6 -0
  17. package/dist/esm/components/PracticeModeInfo.d.ts +8 -0
  18. package/dist/esm/components/PreviewItem.d.ts +16 -0
  19. package/dist/esm/components/PreviewList.d.ts +17 -0
  20. package/dist/esm/components/Question.d.ts +9 -0
  21. package/dist/esm/components/QuestionItem.d.ts +12 -0
  22. package/dist/esm/components/QuestionsList.d.ts +11 -0
  23. package/dist/esm/components/RecorderModal.d.ts +15 -0
  24. package/dist/esm/components/Setup.d.ts +6 -0
  25. package/dist/esm/components/SetupChecks.d.ts +14 -0
  26. package/dist/esm/components/SliderModal.d.ts +8 -0
  27. package/dist/esm/components/Upload.d.ts +13 -0
  28. package/dist/esm/components/VideoCamera.d.ts +29 -0
  29. package/dist/esm/components/VideoQuestion.d.ts +9 -0
  30. package/dist/esm/components/VideoTimeBar.d.ts +9 -0
  31. package/dist/esm/components/WelcomePage.d.ts +11 -0
  32. package/dist/esm/components/Widget.d.ts +6 -0
  33. package/dist/esm/components/icons/ClockIcon.d.ts +2 -0
  34. package/dist/esm/components/icons/Loading.d.ts +2 -0
  35. package/dist/esm/components/icons/NoCameraMic.d.ts +2 -0
  36. package/dist/esm/components/icons/PlayIcon.d.ts +6 -0
  37. package/dist/esm/components/icons/Retake.d.ts +2 -0
  38. package/dist/esm/components/icons/RotateScreenIcon.d.ts +2 -0
  39. package/dist/esm/components/ui/Loader.d.ts +2 -0
  40. package/dist/esm/components/ui/MicrophoneIndicator.d.ts +7 -0
  41. package/dist/esm/components/ui/PracticeMode.d.ts +2 -0
  42. package/dist/esm/components/ui/Progress.d.ts +6 -0
  43. package/dist/esm/components/ui/QuestionDuration.d.ts +6 -0
  44. package/dist/esm/components/ui/QuestionNumber.d.ts +7 -0
  45. package/dist/esm/components/ui/RecordingButton.d.ts +6 -0
  46. package/dist/esm/components/ui/RotateScreen.d.ts +2 -0
  47. package/dist/esm/components/ui/Signal.d.ts +9 -0
  48. package/dist/esm/components/ui/StartNowButton.d.ts +6 -0
  49. package/dist/esm/components/ui/StartRecordingButton.d.ts +10 -0
  50. package/dist/esm/components/ui/StopRecordingButton.d.ts +7 -0
  51. package/dist/esm/components/ui/UnsupportedModal.d.ts +6 -0
  52. package/dist/esm/config/index.d.ts +6 -0
  53. package/dist/esm/config/local.env.d.ts +6 -0
  54. package/dist/esm/config/prod.env.d.ts +6 -0
  55. package/dist/esm/config/staging.env.d.ts +6 -0
  56. package/dist/esm/i18n/config.d.ts +1261 -0
  57. package/dist/esm/index.d.ts +4 -0
  58. package/dist/esm/index.js +40566 -0
  59. package/dist/esm/index.js.map +1 -0
  60. package/dist/esm/interfaces/candidateInterface.d.ts +10 -0
  61. package/dist/esm/interfaces/candidateSessionInterface.d.ts +83 -0
  62. package/dist/esm/interfaces/companyInterface.d.ts +3 -0
  63. package/dist/esm/interfaces/configInterface.d.ts +46 -0
  64. package/dist/esm/interfaces/jobInterface.d.ts +21 -0
  65. package/dist/esm/interfaces/microphoneInterface.d.ts +36 -0
  66. package/dist/esm/interfaces/networkInterface.d.ts +9 -0
  67. package/dist/esm/interfaces/previewInterface.d.ts +14 -0
  68. package/dist/esm/interfaces/recorderInterface.d.ts +110 -0
  69. package/dist/esm/interfaces/storageInterface.d.ts +29 -0
  70. package/dist/esm/interfaces/uploaderInterface.d.ts +39 -0
  71. package/dist/esm/interfaces/videoInterface.d.ts +55 -0
  72. package/dist/esm/interfaces/widgetInterface.d.ts +211 -0
  73. package/dist/esm/machines/acceleratorMachines/accUploaderMachine.d.ts +6 -0
  74. package/dist/esm/machines/acceleratorMachines/accWidgetMachine.d.ts +6 -0
  75. package/dist/esm/machines/acceleratorMachines/microphoneMachine.d.ts +6 -0
  76. package/dist/esm/machines/acceleratorMachines/networkMachine.d.ts +5 -0
  77. package/dist/esm/machines/acceleratorMachines/previewMachine.d.ts +6 -0
  78. package/dist/esm/machines/acceleratorMachines/recorderMachineV2.d.ts +6 -0
  79. package/dist/esm/machines/acceleratorMachines/storageMachine.d.ts +6 -0
  80. package/dist/esm/reportWebVitals.d.ts +3 -0
  81. package/dist/esm/services/axiosInstances.service.d.ts +3 -0
  82. package/dist/esm/services/s3.service.d.ts +1 -0
  83. package/dist/esm/services/session.service.d.ts +57 -0
  84. package/dist/esm/services/speedTest.service.d.ts +2 -0
  85. package/dist/esm/services/video.service.d.ts +7 -0
  86. package/dist/esm/setupTests.d.ts +1 -0
  87. package/dist/esm/utils/authToken.utils.d.ts +7 -0
  88. package/dist/esm/utils/constants.utils.d.ts +10 -0
  89. package/dist/esm/utils/debug.utils.d.ts +19 -0
  90. package/dist/esm/utils/device.utils.d.ts +12 -0
  91. package/dist/esm/utils/errors.utils.d.ts +9 -0
  92. package/dist/esm/utils/formatters.utils.d.ts +5 -0
  93. package/dist/esm/utils/messages.utils.d.ts +16 -0
  94. package/dist/esm/utils/practiceQuestions.utils.d.ts +2 -0
  95. package/dist/esm/utils/sentry.utils.d.ts +4 -0
  96. package/dist/esm/utils/statusCodes.utils.d.ts +13 -0
  97. package/dist/index.d.ts +131 -0
  98. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import { DoneInvokeEvent } from 'xstate';
2
+ import { InitialState } from '../../interfaces/widgetInterface';
3
+ export declare const accWidgetMachine: import("xstate").StateMachine<InitialState, any, DoneInvokeEvent<any>, {
4
+ value: any;
5
+ context: InitialState;
6
+ }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
@@ -0,0 +1,6 @@
1
+ import { DoneInvokeEvent } from 'xstate';
2
+ import { InitialState } from '../../interfaces/microphoneInterface';
3
+ export declare const microphoneMachine: import("xstate").StateMachine<InitialState, any, DoneInvokeEvent<any>, {
4
+ value: any;
5
+ context: InitialState;
6
+ }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
@@ -0,0 +1,5 @@
1
+ import { DoneInvokeEvent } from 'xstate';
2
+ export declare const networkMachine: import("xstate").StateMachine<{}, any, DoneInvokeEvent<any>, {
3
+ value: any;
4
+ context: {};
5
+ }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
@@ -0,0 +1,6 @@
1
+ import { DoneInvokeEvent } from 'xstate';
2
+ import { PreviewInterface } from '../../interfaces/previewInterface';
3
+ export declare const previewMachine: import("xstate").StateMachine<PreviewInterface, any, DoneInvokeEvent<any>, {
4
+ value: any;
5
+ context: PreviewInterface;
6
+ }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
@@ -0,0 +1,6 @@
1
+ import { DoneInvokeEvent } from 'xstate';
2
+ import { RecorderInterface } from '../../interfaces/recorderInterface';
3
+ export declare const recorderMachineV2: import("xstate").StateMachine<RecorderInterface, any, DoneInvokeEvent<any>, {
4
+ value: any;
5
+ context: RecorderInterface;
6
+ }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
@@ -0,0 +1,6 @@
1
+ import { DoneInvokeEvent } from 'xstate';
2
+ import { InitialState } from '../../interfaces/storageInterface';
3
+ export declare const storageMachine: import("xstate").StateMachine<InitialState, any, DoneInvokeEvent<any>, {
4
+ value: any;
5
+ context: InitialState;
6
+ }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, DoneInvokeEvent<any>, import("xstate").BaseActionObject, import("xstate").ServiceMap>>;
@@ -0,0 +1,3 @@
1
+ import { ReportHandler } from 'web-vitals';
2
+ declare const reportWebVitals: (onPerfEntry?: ReportHandler) => void;
3
+ export default reportWebVitals;
@@ -0,0 +1,3 @@
1
+ export declare const videoAxiosInstance: import("axios").AxiosInstance;
2
+ export declare const s3AxiosInstance: import("axios").AxiosInstance;
3
+ export declare const updateVideoAxiosAuth: (auth: string) => void;
@@ -0,0 +1 @@
1
+ export declare const uploadToS3: (url: string, data: File, onProgress?: ((e: any) => void) | undefined, timeout?: number) => Promise<void>;
@@ -0,0 +1,57 @@
1
+ /**
2
+ * @author tht7 ( tht7 )
3
+ * @date 10/07/12022 6:36 pm
4
+ */
5
+ import { ICandidateSession } from '../interfaces/candidateSessionInterface';
6
+ /**
7
+ * This function will update the session in the database and cache it in the window object
8
+ * it will fill in the current session over the provided object
9
+ * @param session
10
+ * @param baseURL
11
+ */
12
+ export declare function updateSession(session: Partial<ICandidateSession>, baseURL?: string): Promise<ICandidateSession | undefined>;
13
+ /**
14
+ * This function will fetch the session from the sessionStorage and server
15
+ * it will then cache the session in the window object
16
+ * @param _session - in case you want to override the session, or save a new one to the cache
17
+ * @param _session_id - in case you want to override the session_id and fetch from the server
18
+ */
19
+ export declare function getCandidateSession(_session?: ICandidateSession, _session_id?: string): Promise<ICandidateSession | undefined>;
20
+ export declare function getSessionIdFromCache(): string | undefined | null;
21
+ /**
22
+ * this will remove the session from the sessionStorage, but not the window cache
23
+ * this should signal the end of this session
24
+ * however the end of a session is when the window gets closed
25
+ * so in order to prevent a new window from (maybe) getting the stale session
26
+ * we remove it from the sessionStorage
27
+ */
28
+ export declare function deleteSession(): void;
29
+ /** ehehehe this is a type that takes 2 types and matches all the keys of type V from type K */
30
+ declare type KeysMatching<T, V> = {
31
+ [K in keyof T]-?: T[K] extends (V | undefined) ? K : never;
32
+ }[keyof T];
33
+ /**
34
+ * A cute shortcut for updating a date event in the session
35
+ * just give it the key of the date event, and it will update it
36
+ * @param eventType
37
+ */
38
+ export declare function registerDateEvent(eventType: KeysMatching<ICandidateSession, Date>): Promise<ICandidateSession | undefined>;
39
+ /**
40
+ * Another cute shortcut for updating a number state of a session
41
+ * if no data is provided, it will just increment the number
42
+ * @param eventType
43
+ * @param data
44
+ */
45
+ export declare function registerCountEvent(eventType: KeysMatching<ICandidateSession, number>, data?: number): Promise<ICandidateSession | undefined>;
46
+ /**
47
+ * Another cute shortcut for updating a number state of a session
48
+ * if no data is provided, it will just increment the number
49
+ * @param warning
50
+ */
51
+ export declare function registerWarning(warning: string): Promise<ICandidateSession | undefined>;
52
+ export declare const triggerEvent: {
53
+ warning: typeof registerWarning;
54
+ date: typeof registerDateEvent;
55
+ number: typeof registerCountEvent;
56
+ };
57
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const ONE_MB_IN_BYTES = 1048576;
2
+ export declare const accSpeedTest: () => Promise<number>;
@@ -0,0 +1,7 @@
1
+ import { IWidgetConfigRequest, IWidgetConfigResponse } from '../interfaces/configInterface';
2
+ import { IVideo, IVideoFile } from '../interfaces/videoInterface';
3
+ export declare const createVideo: (widgetConfig: IWidgetConfigRequest) => Promise<IWidgetConfigResponse>;
4
+ export declare const getVideo: (videoId: string) => Promise<IWidgetConfigResponse>;
5
+ export declare const updateVideo: ({ video_id, completed, uploaded, bandwidth }: IVideo) => Promise<IWidgetConfigResponse>;
6
+ export declare const updateVideoFile: (videoId: string, videoFile: IVideoFile) => Promise<IWidgetConfigResponse>;
7
+ export declare const getUploadUrl: (videoId: string, fileName: string, typeExtension: string) => Promise<IWidgetConfigResponse>;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
@@ -0,0 +1,7 @@
1
+ interface IGetToken {
2
+ type: string;
3
+ value: string;
4
+ secretKey: string;
5
+ }
6
+ export declare const getToken: ({ type, value, secretKey }: IGetToken) => string;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ export declare const DEFAULT_COUNT_DOWN = 3;
2
+ export declare const DEFAULT_DURATION = 60;
3
+ export declare const ENOUGH_RECODING_TIME = 3;
4
+ export declare const SPEED_TEST_FILE_SIZE = 5;
5
+ export declare const FAST_UPLOAD_SPEED = 0.35;
6
+ export declare const SLOW_UPLOAD_SPEED = 0.1;
7
+ export declare const SPEED_TEST_TIMEOUT = 5000;
8
+ export declare const VIDEO_INACTIVE_TIMEOUT = 2000;
9
+ export declare const MICROPHONE_NO_SOUND_ERROR_CODE = 777;
10
+ export declare const MAX_FAILED_RECORDING_ATTEMPTS = 2;
@@ -0,0 +1,19 @@
1
+ export declare const enum DEBUG {
2
+ FETCHING_INTERVIEW = "Fetching interview data",
3
+ INTERVIEW_DATA_RECEIVED = "Interview data received",
4
+ FETCHING_INTERVIEW_ERROR = "Failed to fetch interview",
5
+ WELCOME_PAGE_STAGE = "In welcome page stage",
6
+ SETUP_STAGE = "In setup stage",
7
+ MEIDA_DEVICE_SUCCESS = "Media device available",
8
+ MEDIA_DEVICE_ERROR = "Media device error",
9
+ NO_SOUND_DETECTED = "No sound detected",
10
+ DEVICE_CHANGED = "Device changed",
11
+ SPEED_TEST_DONE = "Speed test result received",
12
+ PRACTICE_STARTED = "Practice started",
13
+ INTERVIEW_STARTED = "Interview started",
14
+ RETAKE_CLICKED = "Retake clicked",
15
+ QUESTION_SUBMITTED = "Qeustion submitted",
16
+ UPLOADING_STATE = "In uploading state",
17
+ UPLOAD_COMPLETED = "Upload completed",
18
+ INTERVIEW_SUBMITTED = "Interview submitted successfully"
19
+ }
@@ -0,0 +1,12 @@
1
+ export declare const isMobile: boolean;
2
+ export declare const isAndroid: boolean;
3
+ export declare const isSupportedIosDevice: boolean;
4
+ export declare const isSupportedDevice: boolean;
5
+ declare const PLATFORMS_OPTIONS: readonly ["ANDROID", "IOS", "MACBOOK", "WINDOWS"];
6
+ declare const BROWSERS_OPTIONS: readonly ["CHROME", "SAFARI", "FIREFOX", "SAMSUNG"];
7
+ declare type DEVICE_TYPE = {
8
+ PLATFORM: typeof PLATFORMS_OPTIONS[number];
9
+ BROWSER: typeof BROWSERS_OPTIONS[number];
10
+ };
11
+ export declare const DEVICE: DEVICE_TYPE;
12
+ export {};
@@ -0,0 +1,9 @@
1
+ import { STATUS_CODES } from './statusCodes.utils';
2
+ export interface IVideoError {
3
+ callId: string;
4
+ errorCode: number;
5
+ errorMessage: string;
6
+ statusCode: STATUS_CODES;
7
+ statusReason: string;
8
+ time: number;
9
+ }
@@ -0,0 +1,5 @@
1
+ export declare const twoDigitsNumber: (num: number) => string;
2
+ export declare const timeFormatter: (number: number) => string;
3
+ export declare const timeLeftInMinutesFormatter: (number: number) => string;
4
+ export declare const timerCountDown: (number: number) => string;
5
+ export declare const formattedDuration: (number: number) => string;
@@ -0,0 +1,16 @@
1
+ export declare const CAMERA_STATES_MESSAGES: {
2
+ WAITING: string;
3
+ ERROR: string;
4
+ READY: string;
5
+ };
6
+ export declare const MICROPHONE_STATES_MESSAGES: {
7
+ WAITING: string;
8
+ ERROR: string;
9
+ READY: string;
10
+ };
11
+ export declare const INTERNET_STATES_MESSAGES: {
12
+ DISCONNECTED: string;
13
+ TESTING: string;
14
+ SLOW_CONNECTION: string;
15
+ CONNECTED: string;
16
+ };
@@ -0,0 +1,2 @@
1
+ import { IQuestion } from '../interfaces/jobInterface';
2
+ export declare const PRACTICE_QUESTIONS: IQuestion[];
@@ -0,0 +1,4 @@
1
+ import * as Sentry from '@sentry/browser';
2
+ import { DoneInvokeEvent } from 'xstate';
3
+ export declare const SentryHub: Sentry.Hub;
4
+ export declare const SentryTrackingFn: (event: DoneInvokeEvent<any>, context: any, name: string) => void;
@@ -0,0 +1,13 @@
1
+ export declare const enum STATUS_CODES {
2
+ OK = 200,
3
+ CREATED = 201,
4
+ DELETED = 202,
5
+ BAD_REQUEST = 400,
6
+ UNAUTHORIZED = 401,
7
+ PAYMENT_REQUIRED = 402,
8
+ FORBIDDEN = 403,
9
+ NOT_FOUND = 404,
10
+ TOO_MANY_REQUESTS = 429,
11
+ SERVER_ERROR = 500,
12
+ SERVICE_UNAVAILABLE = 503
13
+ }
@@ -0,0 +1,131 @@
1
+ import React, { CSSProperties } from 'react';
2
+
3
+ interface ICandidate {
4
+ candidate_id?: string;
5
+ email: string;
6
+ username: string;
7
+ phone?: string;
8
+ video_id?: string;
9
+ redirectUrl?: string;
10
+ apiKey?: string;
11
+ company_id?: string;
12
+ }
13
+
14
+ interface ICompany {
15
+ shouldShowWaterMark: boolean;
16
+ }
17
+
18
+ interface IQuestion {
19
+ question: string;
20
+ numOfRetakes: number;
21
+ partDuration: number;
22
+ thinkingTime: number;
23
+ timeLimit?: number;
24
+ videoQuestion?: string;
25
+ description?: string;
26
+ }
27
+ interface IJob {
28
+ language?: string;
29
+ transcriptLanguage?: string;
30
+ title?: string;
31
+ company?: string;
32
+ job_id?: string;
33
+ logo?: string;
34
+ questions?: IQuestion[];
35
+ old_jobID?: string;
36
+ apiKey?: string;
37
+ company_id?: string;
38
+ }
39
+
40
+ interface IVideoPlatformOS {
41
+ architecture: number;
42
+ family: string;
43
+ version: string;
44
+ }
45
+ interface IVideoPlatform {
46
+ description: string;
47
+ layout: string;
48
+ manufacturer: string;
49
+ name: string;
50
+ prerelease: string;
51
+ product: string;
52
+ ua: string;
53
+ version: string;
54
+ os: IVideoPlatformOS;
55
+ }
56
+ interface IVideoFile {
57
+ completed: boolean;
58
+ uploaded: boolean;
59
+ filename: string;
60
+ retakes: number;
61
+ started: boolean;
62
+ videoLength?: number;
63
+ uploadUrl?: string;
64
+ question?: string;
65
+ selectedTake?: number;
66
+ }
67
+ interface IVideo {
68
+ video_id: string;
69
+ bandwidth?: string;
70
+ clicked?: boolean;
71
+ started?: boolean;
72
+ completed?: boolean;
73
+ uploaded?: boolean;
74
+ jobID?: string;
75
+ platform?: IVideoPlatform;
76
+ quality?: string;
77
+ referrer?: string;
78
+ cvUrl?: string;
79
+ videos: IVideoFile[];
80
+ processTime?: number;
81
+ files?: string[];
82
+ personalInfo?: Record<string, string>;
83
+ language?: string;
84
+ gdprTimestamp?: string;
85
+ tracking?: {
86
+ reminder: number;
87
+ source: number;
88
+ };
89
+ }
90
+
91
+ declare type IMessageType = 'completed' | 'deadline' | 'applied' | 'inactiveJob';
92
+ interface IOnCompleteCallback {
93
+ redirectUrl?: string;
94
+ video_id: string;
95
+ }
96
+ interface IOnError {
97
+ messageType: IMessageType;
98
+ }
99
+ interface IConfig {
100
+ auth: string;
101
+ onWidgetClicked?: () => void;
102
+ onCompleteCallback?: (data: IOnCompleteCallback) => void;
103
+ onError?: (data: IOnError) => void;
104
+ openAnimation?: boolean;
105
+ debug?: boolean;
106
+ practiceQuestions?: IQuestion[];
107
+ overlay?: string;
108
+ introVideo?: string;
109
+ introVideoTitle?: string;
110
+ }
111
+ interface IWidgetConfig {
112
+ video?: IVideo;
113
+ candidate: ICandidate;
114
+ job?: IJob;
115
+ company?: ICompany;
116
+ config: IConfig;
117
+ disabled?: boolean;
118
+ buttonText?: string;
119
+ buttonStyle?: CSSProperties;
120
+ }
121
+
122
+ interface IGetToken {
123
+ type: string;
124
+ value: string;
125
+ secretKey: string;
126
+ }
127
+ declare const getToken: ({ type, value, secretKey }: IGetToken) => string;
128
+
129
+ declare const Widget: React.FC<IWidgetConfig>;
130
+
131
+ export { IWidgetConfig, Widget, getToken };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myinterview/widget-react",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "myInterview widget v3",
5
5
  "module": "dist/esm/index.js",
6
6
  "files": [