@myinterview/widget-react 1.1.23-svg-check → 1.1.23-that-was-21

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.
@@ -32,7 +32,6 @@ interface IConfig {
32
32
  disablePractice?: boolean;
33
33
  event_id?: string;
34
34
  accessibility_id?: string;
35
- recordWithoutVideo?: boolean;
36
35
  }
37
36
  export type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
38
37
  practiceQuestions?: IClientQuestion[];
@@ -21,7 +21,6 @@ interface FacingMode {
21
21
  exact: string;
22
22
  }
23
23
  export interface RecorderInterface {
24
- recordWithoutVideo?: boolean;
25
24
  facingMode: FacingMode;
26
25
  microphoneRef: ActorRef<DoneInvokeEvent<any>> | null;
27
26
  countDownRef: ActorRef<DoneInvokeEvent<any>> | null;
@@ -44,7 +43,6 @@ export interface RecorderInterface {
44
43
  recordingTime: number;
45
44
  durations: number;
46
45
  isMicError: boolean;
47
- isActivelyStopped: boolean;
48
46
  }
49
47
  export declare const enum MIME_TYPES {
50
48
  WEBM = "video/webm",
@@ -96,8 +94,7 @@ export declare const enum ACTIONS {
96
94
  UPDATE_MACHINE_FOR_NEW_QUESTION = "UPDATE_MACHINE_FOR_NEW_QUESTION",
97
95
  SET_MEDIA_RECORDER = "SET_MEDIA_RECORDER",
98
96
  SET_MIC_ERROR = "SET_MIC_ERROR",
99
- SET_PERMISSION_LISTENER = "SET_PERMISSION_LISTENER",
100
- SET_ACTIVELY_STOPPED = "SET_ACTIVELY_STOPPED"
97
+ SET_PERMISSION_LISTENER = "SET_PERMISSION_LISTENER"
101
98
  }
102
99
  export declare const enum EVENTS {
103
100
  SET_MIC_SPEED_DETECTION = "SET_MIC_SPEED_DETECTION",
@@ -97,7 +97,6 @@ export declare const enum STATES {
97
97
  SETUP__TEST__CAMERA__WAITING = "testCameraWaiting",
98
98
  SETUP__TEST__CAMERA__ERROR = "testCameraError",
99
99
  SETUP__TEST__CAMERA__SUCCESS = "testCameraSuccess",
100
- SETUP__TEST__CAMERA__SKIP = "testCameraSkip",
101
100
  SETUP__TEST__MICROPHONE = "testMicrophone",
102
101
  SETUP__TEST__MICROPHONE__WAITING = "testMicrophoneWaiting",
103
102
  SETUP__TEST__MICROPHONE__ERROR = "testMicrophoneError",
@@ -203,7 +202,6 @@ export declare const enum SERVICES {
203
202
  UPDATE_VIDEO_PART_CALL = "updateVideoPartCall"
204
203
  }
205
204
  export declare const enum GUARDS {
206
- IS_VIDEO_RECORDING_SKIP = "isVideoRecordingSkip",
207
205
  NO_STORAGE = "noStorage",
208
206
  NO_RECORDER = "noRecorder",
209
207
  IS_THINKING_TIME = "isThinkingTime",
@@ -5,7 +5,6 @@ export declare const enum DEBUG {
5
5
  WELCOME_PAGE_STAGE = "In welcome page stage",
6
6
  SETUP_STAGE = "In setup stage",
7
7
  MEIDA_DEVICE_SUCCESS = "Media device available",
8
- MEDIA_DEVICE_SWITCH_OFF = "Media device is off",
9
8
  MEDIA_DEVICE_ERROR = "Media device error",
10
9
  NO_SOUND_DETECTED = "No sound detected",
11
10
  DEVICE_CHANGED = "Device changed",
@@ -1,6 +1,5 @@
1
1
  export declare const isMobile: boolean;
2
2
  export declare const isAndroid: boolean;
3
- export declare const isIphone: boolean;
4
3
  export declare const isFireFox: boolean;
5
4
  export declare const isSupportedIosDevice: boolean;
6
5
  export declare const isSupportedDevice: boolean;
@@ -11,5 +10,4 @@ type DEVICE_TYPE = {
11
10
  BROWSER: typeof BROWSERS_OPTIONS[number];
12
11
  };
13
12
  export declare const DEVICE: DEVICE_TYPE;
14
- export declare const getIPhoneModel: () => string;
15
13
  export {};
@@ -2,7 +2,6 @@ export declare const CAMERA_STATES_MESSAGES: {
2
2
  WAITING: string;
3
3
  ERROR: string;
4
4
  READY: string;
5
- SKIP: string;
6
5
  };
7
6
  export declare const MICROPHONE_STATES_MESSAGES: {
8
7
  WAITING: string;
@@ -1,5 +1,6 @@
1
+ import * as Sentry from '@sentry/browser';
1
2
  import { DoneInvokeEvent } from 'xstate';
2
3
  import { Breadcrumb } from '@sentry/types';
3
- export declare const startSentry: () => void;
4
+ export declare const SentryHub: Sentry.Hub;
4
5
  export declare const SentryTrackingFn: (event: DoneInvokeEvent<any>, context: any, name: string, level: 'fatal' | 'error' | 'warning' | 'log' | 'info' | 'debug') => void;
5
6
  export declare const SentryBreadcrumb: ({ type, level, event_id, category, message, data }: Breadcrumb) => void;
package/dist/index.d.ts CHANGED
@@ -198,7 +198,6 @@ interface IConfig {
198
198
  disablePractice?: boolean;
199
199
  event_id?: string;
200
200
  accessibility_id?: string;
201
- recordWithoutVideo?: boolean;
202
201
  }
203
202
  type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
204
203
  practiceQuestions?: IClientQuestion[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myinterview/widget-react",
3
- "version": "1.1.23-svg-check",
3
+ "version": "1.1.23-that-was-21",
4
4
  "description": "myInterview widget v3",
5
5
  "module": "dist/esm/index.js",
6
6
  "main": "dist/cjs/index.js",
@@ -11,8 +11,8 @@
11
11
  "dependencies": {
12
12
  "@cloudflare/stream-react": "^1.8.0",
13
13
  "@myinterview/component-library": "^1.0.43",
14
- "@sentry/react": "^7.48.0",
15
- "@sentry/tracing": "^7.48.0",
14
+ "@sentry/react": "^7.7.0",
15
+ "@sentry/tracing": "^7.7.0",
16
16
  "@xstate/react": "^3.0.1",
17
17
  "axios": "^0.27.2",
18
18
  "babel-plugin-named-asset-import": "^0.3.8",
@@ -48,7 +48,7 @@
48
48
  "semver": "^7.3.5",
49
49
  "web-vitals": "^2.1.4",
50
50
  "workbox-webpack-plugin": "^6.4.1",
51
- "xstate": "4.37.2"
51
+ "xstate": "^4.33.2"
52
52
  },
53
53
  "scripts": {
54
54
  "start": "REACT_APP_RELEASE=$npm_package_version REACT_APP_ENV=local HTTPS=true node scripts/start.js",
@@ -59,7 +59,7 @@
59
59
  "publish-staging": "REACT_APP_RELEASE=$npm_package_version REACT_APP_ENV=staging rollup -c && npm publish --tag beta",
60
60
  "publish-experimental": "REACT_APP_RELEASE=$npm_package_version REACT_APP_ENV=staging rollup -c && npm publish --tag experimental",
61
61
  "build-experimental": "REACT_APP_RELEASE=$npm_package_version REACT_APP_ENV=staging rollup -c ",
62
- "build-staging": "REACT_APP_RELEASE=$npm_package_version REACT_APP_ENV=staging rollup -c ",
62
+ "build-staging": "REACT_APP_RELEASE=$npm_package_version REACT_APP_ENV=staging rollup -c ",
63
63
  "build-master": "REACT_APP_RELEASE=$npm_package_version REACT_APP_ENV=prod rollup -c ",
64
64
  "test": "node scripts/test.js"
65
65
  },
@@ -90,7 +90,7 @@
90
90
  "@rollup/plugin-node-resolve": "^13.3.0",
91
91
  "@rollup/plugin-replace": "^5.0.2",
92
92
  "@rollup/plugin-typescript": "^8.3.3",
93
- "@svgr/webpack": "5.5.0",
93
+ "@svgr/webpack": "^5.5.0",
94
94
  "@testing-library/jest-dom": "^5.16.4",
95
95
  "@testing-library/react": "^12.1.5 || ^13.4.0",
96
96
  "@testing-library/user-event": "^13.5.0",
@@ -125,8 +125,8 @@
125
125
  "jest-watch-typeahead": "^1.0.0",
126
126
  "mini-css-extract-plugin": "^2.4.5",
127
127
  "raw-loader": "^4.0.2",
128
- "react": "18.2.0",
129
- "react-dom": "18.2.0",
128
+ "react": "^18.0.0",
129
+ "react-dom": "^18.0.0",
130
130
  "rollup": "^2.75.7",
131
131
  "rollup-plugin-delete": "^2.0.0",
132
132
  "rollup-plugin-dts": "^4.2.2",