@myinterview/widget-react 1.0.54 → 1.0.55

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.
@@ -31,7 +31,7 @@ export declare const enum CandidateSessionWarnings {
31
31
  OverconstrainedError = "OverconstrainedError",
32
32
  SecurityError = "SecurityError"
33
33
  }
34
- export declare type CandidateSessionSourceType = 'direct' | 'email' | 'sms' | 'email_reminder' | 'sms_reminder';
34
+ export 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",
@@ -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 declare type IMessageType = 'completed' | 'deadline' | 'applied' | 'inactiveJob';
6
+ export 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 declare type IEnv = 'dev' | 'staging' | 'production' | 'development' | 'local';
14
+ export type IEnv = 'dev' | 'staging' | 'production' | 'development' | 'local';
15
15
  interface IConfig {
16
16
  auth: string;
17
17
  onWidgetClicked?: () => void;
@@ -31,7 +31,7 @@ interface IConfig {
31
31
  hideIntercom?: boolean;
32
32
  disablePractice?: boolean;
33
33
  }
34
- export declare type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
34
+ export type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
35
35
  practiceQuestions?: IClientQuestion[];
36
36
  };
37
37
  export interface IWidgetConfig {
@@ -47,7 +47,7 @@ export interface IWidgetConfig {
47
47
  styleUrls?: string | string[];
48
48
  fontsUrls?: string | string[];
49
49
  }
50
- export declare type IClientWidgetConfig = Omit<IWidgetConfig, 'job' | 'config'> & {
50
+ export type IClientWidgetConfig = Omit<IWidgetConfig, 'job' | 'config'> & {
51
51
  job: IClientJob;
52
52
  config: IClientConfig;
53
53
  };
@@ -7,7 +7,7 @@ export interface IQuestion {
7
7
  videoQuestion?: string;
8
8
  description?: string;
9
9
  }
10
- export declare type IClientQuestion = Omit<IQuestion, 'numOfRetakes' | 'partDuration' | 'thinkingTime'> & {
10
+ export 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 declare type IClientJob = Omit<IJob, 'questions'> & {
30
+ export type IClientJob = Omit<IJob, 'questions'> & {
31
31
  questions?: IClientQuestion[];
32
32
  };
@@ -5,8 +5,8 @@ export declare const enum SPEED_TEST_LEVEL {
5
5
  MEDIUM = 1,
6
6
  HIGH = 2
7
7
  }
8
- export declare type mediaDeviceType = 'video' | 'audio';
9
- declare type ConstrainProps = {
8
+ export type mediaDeviceType = 'video' | 'audio';
9
+ type ConstrainProps = {
10
10
  video: {
11
11
  width: {
12
12
  min?: number;
@@ -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
- declare type IUploaderRef = {
8
+ 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 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;
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;
20
20
  export declare const CAMERA_STATES: {
21
21
  [K in ICameraStateKey]: K;
22
22
  };
@@ -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
- declare type KeysMatching<T, V> = {
30
+ type KeysMatching<T, V> = {
31
31
  [K in keyof T]-?: T[K] extends (V | undefined) ? K : never;
32
32
  }[keyof T];
33
33
  /**
@@ -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
- declare type DEVICE_TYPE = {
7
+ type DEVICE_TYPE = {
8
8
  PLATFORM: typeof PLATFORMS_OPTIONS[number];
9
9
  BROWSER: typeof BROWSERS_OPTIONS[number];
10
10
  };
package/dist/index.d.ts CHANGED
@@ -29,7 +29,7 @@ interface IQuestion {
29
29
  videoQuestion?: string;
30
30
  description?: string;
31
31
  }
32
- declare type IClientQuestion = Omit<IQuestion, 'numOfRetakes' | 'partDuration' | 'thinkingTime'> & {
32
+ 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
- declare type IClientJob = Omit<IJob, 'questions'> & {
52
+ 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
- declare type IMessageType = 'completed' | 'deadline' | 'applied' | 'inactiveJob';
107
+ 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
- declare type IEnv = 'dev' | 'staging' | 'production' | 'development' | 'local';
115
+ type IEnv = 'dev' | 'staging' | 'production' | 'development' | 'local';
116
116
  interface IConfig {
117
117
  auth: string;
118
118
  onWidgetClicked?: () => void;
@@ -132,7 +132,7 @@ interface IConfig {
132
132
  hideIntercom?: boolean;
133
133
  disablePractice?: boolean;
134
134
  }
135
- declare type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
135
+ type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
136
136
  practiceQuestions?: IClientQuestion[];
137
137
  };
138
138
  interface IWidgetConfig {
@@ -148,7 +148,7 @@ interface IWidgetConfig {
148
148
  styleUrls?: string | string[];
149
149
  fontsUrls?: string | string[];
150
150
  }
151
- declare type IClientWidgetConfig = Omit<IWidgetConfig, 'job' | 'config'> & {
151
+ type IClientWidgetConfig = Omit<IWidgetConfig, 'job' | 'config'> & {
152
152
  job: IClientJob;
153
153
  config: IClientConfig;
154
154
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myinterview/widget-react",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "myInterview widget v3",
5
5
  "module": "dist/esm/index.js",
6
6
  "main": "dist/cjs/index.js",
@@ -9,42 +9,25 @@
9
9
  ],
10
10
  "types": "dist/index.d.ts",
11
11
  "dependencies": {
12
- "@babel/core": "^7.16.0",
13
12
  "@cloudflare/stream-react": "^1.8.0",
14
13
  "@myinterview/component-library": "^1.0.36",
15
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
16
14
  "@sentry/react": "^7.7.0",
17
15
  "@sentry/tracing": "^7.7.0",
18
- "@svgr/webpack": "^5.5.0",
19
16
  "@xstate/react": "^3.0.1",
20
17
  "axios": "^0.27.2",
21
- "babel-jest": "^27.4.2",
22
- "babel-loader": "^8.2.3",
23
18
  "babel-plugin-named-asset-import": "^0.3.8",
24
- "babel-preset-react-app": "^10.0.1",
25
19
  "bfj": "^7.0.2",
26
20
  "browserslist": "^4.18.1",
27
21
  "camelcase": "^6.2.1",
28
- "case-sensitive-paths-webpack-plugin": "^2.4.0",
29
22
  "crypto-js": "^4.1.1",
30
- "css-loader": "^6.5.1",
31
23
  "css-minimizer-webpack-plugin": "^3.2.0",
32
24
  "detect-incognito": "^1.0.0",
33
25
  "dotenv": "^10.0.0",
34
26
  "dotenv-expand": "^5.1.0",
35
- "eslint": "^8.3.0",
36
- "eslint-config-react-app": "^7.0.0",
37
- "eslint-webpack-plugin": "^3.1.1",
38
- "file-loader": "^6.2.0",
39
27
  "fix-webm-duration": "^1.0.5",
40
28
  "fs-extra": "^10.0.0",
41
- "html-webpack-plugin": "^5.5.0",
42
29
  "i18next": "^21.8.16",
43
30
  "identity-obj-proxy": "^3.0.0",
44
- "jest": "^27.4.3",
45
- "jest-resolve": "^27.4.2",
46
- "jest-watch-typeahead": "^1.0.0",
47
- "mini-css-extract-plugin": "^2.4.5",
48
31
  "platform": "^1.3.6",
49
32
  "postcss": "^8.4.4",
50
33
  "postcss-flexbugs-fixes": "^5.0.2",
@@ -62,16 +45,8 @@
62
45
  "resolve": "^1.20.0",
63
46
  "resolve-url-loader": "^4.0.0",
64
47
  "rxjs": "^7.5.7",
65
- "sass-loader": "^12.3.0",
66
48
  "semver": "^7.3.5",
67
- "source-map-loader": "^3.0.0",
68
- "style-loader": "^3.3.1",
69
- "tailwindcss": "^3.0.2",
70
- "terser-webpack-plugin": "^5.2.5",
71
49
  "web-vitals": "^2.1.4",
72
- "webpack": "^5.64.4",
73
- "webpack-dev-server": "^4.6.0",
74
- "webpack-manifest-plugin": "^4.0.2",
75
50
  "workbox-webpack-plugin": "^6.4.1",
76
51
  "xstate": "^4.33.2"
77
52
  },
@@ -104,6 +79,25 @@
104
79
  ]
105
80
  },
106
81
  "devDependencies": {
82
+ "webpack-manifest-plugin": "^4.0.2",
83
+ "webpack-dev-server": "^4.6.0",
84
+ "terser-webpack-plugin": "^5.2.5",
85
+ "style-loader": "^3.3.1",
86
+ "source-map-loader": "^3.0.0",
87
+ "sass-loader": "^12.3.0",
88
+ "mini-css-extract-plugin": "^2.4.5",
89
+ "html-webpack-plugin": "^5.5.0",
90
+ "file-loader": "^6.2.0",
91
+ "css-loader": "^6.5.1",
92
+ "case-sensitive-paths-webpack-plugin": "^2.4.0",
93
+ "babel-preset-react-app": "^10.0.1",
94
+ "@svgr/webpack": "^5.5.0",
95
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
96
+ "@babel/core": "^7.16.0",
97
+ "jest": "^27.4.3",
98
+ "jest-resolve": "^27.4.2",
99
+ "jest-watch-typeahead": "^1.0.0",
100
+ "babel-jest": "^27.4.2",
107
101
  "@rollup/plugin-babel": "^6.0.2",
108
102
  "@rollup/plugin-commonjs": "^22.0.1",
109
103
  "@rollup/plugin-json": "^4.1.0",
@@ -141,11 +135,14 @@
141
135
  "sass-to-string": "^1.6.3",
142
136
  "typescript": "^4.7.4",
143
137
  "webpack": "^5.73.0",
144
- "webpack-cli": "^4.10.0"
138
+ "webpack-cli": "^4.10.0",
139
+ "eslint-config-react-app": "^7.0.0",
140
+ "eslint-webpack-plugin": "^3.1.1"
145
141
  },
146
142
  "peerDependencies": {
147
143
  "react": ">= 16.8.0",
148
- "react-dom": ">= 16.8.0"
144
+ "react-dom": ">= 16.8.0",
145
+ "babel-loader": "> =8.0.0"
149
146
  },
150
147
  "jest": {
151
148
  "roots": [