@myinterview/widget-react 1.1.65-development-e68c11b → 1.1.66-development-c2b240e

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.
@@ -17,6 +17,7 @@ export type IViews = 'desktop' | 'mobile';
17
17
  interface IConfig {
18
18
  auth: string;
19
19
  onWidgetClicked?: () => void;
20
+ onVideoDataReceived?: (data: IWidgetConfigResponse) => void;
20
21
  onFinish?: (data: IOnFinish) => void;
21
22
  onError?: (data: IOnError) => void;
22
23
  onWidgetClose?: () => void;
@@ -131,6 +131,7 @@ export declare const enum STATES {
131
131
  ERROR = "error"
132
132
  }
133
133
  export declare const enum ACTIONS {
134
+ VIDEO_DATA_RECEIVED_CB = "videoDataReceivedCb",
134
135
  CONSOLE_LOG = "consoleLog",
135
136
  CONSOLE_DEBUG = "consoleDebug",
136
137
  SET_CONNECTION = "setConnection",
package/dist/index.d.ts CHANGED
@@ -188,6 +188,7 @@ type IViews = 'desktop' | 'mobile';
188
188
  interface IConfig {
189
189
  auth: string;
190
190
  onWidgetClicked?: () => void;
191
+ onVideoDataReceived?: (data: IWidgetConfigResponse) => void;
191
192
  onFinish?: (data: IOnFinish) => void;
192
193
  onError?: (data: IOnError) => void;
193
194
  onWidgetClose?: () => void;
@@ -231,6 +232,12 @@ type IClientWidgetConfig = Omit<IWidgetConfig, 'job' | 'config' | 'event_id'> &
231
232
  job: IClientJob;
232
233
  config: IClientConfig;
233
234
  };
235
+ interface IWidgetConfigResponse {
236
+ video: IVideo;
237
+ candidate: ICandidate;
238
+ job: IJob;
239
+ event_id?: string;
240
+ }
234
241
  interface IWidgetRef {
235
242
  open: () => void;
236
243
  close: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myinterview/widget-react",
3
- "version": "1.1.65-development-e68c11b",
3
+ "version": "1.1.66-development-c2b240e",
4
4
  "description": "myInterview widget v3",
5
5
  "module": "dist/esm/index.js",
6
6
  "main": "dist/cjs/index.js",