@myinterview/widget-react 1.0.32 → 1.0.33

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.
@@ -1,2 +1,3 @@
1
1
  import React from 'react';
2
+ import './assets/styles/global.scss';
2
3
  export declare const App: React.FC;
@@ -17,6 +17,7 @@ interface IConfig {
17
17
  onWidgetClicked?: () => void;
18
18
  onFinish?: (data: IOnFinish) => void;
19
19
  onError?: (data: IOnError) => void;
20
+ onWidgetClose?: () => void;
20
21
  openAnimation?: boolean;
21
22
  debug?: boolean;
22
23
  practiceQuestions?: IQuestion[];
@@ -37,7 +37,7 @@ export interface IVideo {
37
37
  quality?: string;
38
38
  referrer?: string;
39
39
  cvUrl?: string;
40
- videos: IVideoFile[];
40
+ videos?: IVideoFile[];
41
41
  processTime?: number;
42
42
  files?: string[];
43
43
  personalInfo?: Record<string, string>;
package/dist/index.d.ts CHANGED
@@ -92,7 +92,7 @@ interface IVideo {
92
92
  quality?: string;
93
93
  referrer?: string;
94
94
  cvUrl?: string;
95
- videos: IVideoFile[];
95
+ videos?: IVideoFile[];
96
96
  processTime?: number;
97
97
  files?: string[];
98
98
  personalInfo?: Record<string, string>;
@@ -118,6 +118,7 @@ interface IConfig {
118
118
  onWidgetClicked?: () => void;
119
119
  onFinish?: (data: IOnFinish) => void;
120
120
  onError?: (data: IOnError) => void;
121
+ onWidgetClose?: () => void;
121
122
  openAnimation?: boolean;
122
123
  debug?: boolean;
123
124
  practiceQuestions?: IQuestion[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myinterview/widget-react",
3
- "version": "1.0.32",
3
+ "version": "1.0.33",
4
4
  "description": "myInterview widget v3",
5
5
  "module": "dist/esm/index.js",
6
6
  "files": [