@myinterview/widget-react 1.0.6 → 1.0.8

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.
@@ -26,7 +26,7 @@ interface IConfig {
26
26
  env?: IEnv;
27
27
  }
28
28
  export declare type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
29
- practiceQuestions: IClientQuestion[];
29
+ practiceQuestions?: IClientQuestion[];
30
30
  };
31
31
  export interface IWidgetConfig {
32
32
  video?: IVideo;
@@ -26,5 +26,5 @@ export interface IJob {
26
26
  jobID?: string;
27
27
  }
28
28
  export declare type IClientJob = Omit<IJob, 'questions'> & {
29
- questions: IClientQuestion[];
29
+ questions?: IClientQuestion[];
30
30
  };
package/dist/index.d.ts CHANGED
@@ -43,7 +43,7 @@ interface IJob {
43
43
  jobID?: string;
44
44
  }
45
45
  declare type IClientJob = Omit<IJob, 'questions'> & {
46
- questions: IClientQuestion[];
46
+ questions?: IClientQuestion[];
47
47
  };
48
48
 
49
49
  interface IVideoPlatformOS {
@@ -120,7 +120,7 @@ interface IConfig {
120
120
  env?: IEnv;
121
121
  }
122
122
  declare type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
123
- practiceQuestions: IClientQuestion[];
123
+ practiceQuestions?: IClientQuestion[];
124
124
  };
125
125
  interface IWidgetConfig {
126
126
  video?: IVideo;
@@ -146,4 +146,4 @@ declare const getToken: ({ type, value, secretKey }: IGetToken) => string;
146
146
 
147
147
  declare const Widget: React.FC<IClientWidgetConfig>;
148
148
 
149
- export { IWidgetConfig, Widget, getToken };
149
+ export { IClientWidgetConfig, IWidgetConfig, Widget, getToken };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myinterview/widget-react",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "myInterview widget v3",
5
5
  "module": "dist/esm/index.js",
6
6
  "files": [
@@ -9,7 +9,7 @@
9
9
  "types": "dist/index.d.ts",
10
10
  "dependencies": {
11
11
  "@cloudflare/stream-react": "^1.8.0",
12
- "@myinterview/component-library": "^1.0.9",
12
+ "@myinterview/component-library": "^1.0.10",
13
13
  "@sentry/react": "^7.7.0",
14
14
  "@sentry/tracing": "^7.7.0",
15
15
  "@xstate/react": "^3.0.1",