@myinterview/widget-react 1.0.52 → 1.0.53-experimental-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.
@@ -29,6 +29,7 @@ interface IConfig {
29
29
  minimizable?: boolean;
30
30
  hideHeader?: boolean;
31
31
  hideIntercom?: boolean;
32
+ disablePractice?: boolean;
32
33
  }
33
34
  export type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
34
35
  practiceQuestions?: IClientQuestion[];
@@ -2,6 +2,7 @@ export interface InitialState {
2
2
  mediaStream: MediaStream | null;
3
3
  micData: number;
4
4
  retakes: number;
5
+ webWorker: Worker | null;
5
6
  }
6
7
  export declare const enum STATES {
7
8
  INACTIVE = "inactive",
@@ -11,6 +12,7 @@ export declare const enum STATES {
11
12
  DATA_CHECK = "dataCheck"
12
13
  }
13
14
  export declare const enum ACTIONS {
15
+ INIT_WEB_WORKER = "initWebWorker",
14
16
  CONSOLE_LOG = "consoleLog",
15
17
  SET_MEDIA_STREAM = "setMediaStream",
16
18
  UPDATE_MIC = "updateMic",
@@ -0,0 +1,2 @@
1
+ declare const _default: () => void;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export default class Builder extends Worker {
2
+ constructor(worker: Worker);
3
+ }
package/dist/index.d.ts CHANGED
@@ -130,6 +130,7 @@ interface IConfig {
130
130
  minimizable?: boolean;
131
131
  hideHeader?: boolean;
132
132
  hideIntercom?: boolean;
133
+ disablePractice?: boolean;
133
134
  }
134
135
  type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
135
136
  practiceQuestions?: IClientQuestion[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myinterview/widget-react",
3
- "version": "1.0.52",
3
+ "version": "1.0.53-experimental-8",
4
4
  "description": "myInterview widget v3",
5
5
  "module": "dist/esm/index.js",
6
6
  "main": "dist/cjs/index.js",
@@ -19,7 +19,6 @@
19
19
  "@xstate/react": "^3.0.1",
20
20
  "axios": "^0.27.2",
21
21
  "babel-jest": "^27.4.2",
22
- "babel-loader": "^8.2.3",
23
22
  "babel-plugin-named-asset-import": "^0.3.8",
24
23
  "babel-preset-react-app": "^10.0.1",
25
24
  "bfj": "^7.0.2",
@@ -57,7 +56,7 @@
57
56
  "react-i18next": "^11.18.5",
58
57
  "react-player": "^2.10.1",
59
58
  "react-refresh": "^0.11.0",
60
- "react-shadow": "^19.0.3",
59
+ "react-shadow": "^20.0.0",
61
60
  "react-use-intercom": "^2.0.0",
62
61
  "resolve": "^1.20.0",
63
62
  "resolve-url-loader": "^4.0.0",
@@ -145,7 +144,8 @@
145
144
  },
146
145
  "peerDependencies": {
147
146
  "react": ">= 16.8.0",
148
- "react-dom": ">= 16.8.0"
147
+ "react-dom": ">= 16.8.0",
148
+ "babel-loader": "> =8.0.0"
149
149
  },
150
150
  "jest": {
151
151
  "roots": [