@myinterview/widget-react 1.1.29 → 1.1.30-development-5468e2f

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.
@@ -12,6 +12,7 @@ export interface IOnError {
12
12
  messageType: IMessageType;
13
13
  }
14
14
  export type IEnv = 'dev' | 'staging' | 'production' | 'development' | 'local';
15
+ export type IViews = 'desktop' | 'mobile';
15
16
  interface IConfig {
16
17
  auth: string;
17
18
  onWidgetClicked?: () => void;
@@ -33,6 +34,7 @@ interface IConfig {
33
34
  event_id?: string;
34
35
  accessibility_id?: string;
35
36
  recordWithoutVideo?: boolean;
37
+ forcedView?: IViews;
36
38
  }
37
39
  export type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
38
40
  practiceQuestions?: IClientQuestion[];
@@ -1,5 +1,6 @@
1
1
  import { ActorRef, DoneInvokeEvent } from 'xstate';
2
2
  import { RefObject } from 'react';
3
+ import { IViews } from './configInterface';
3
4
  export declare const enum SPEED_TEST_LEVEL {
4
5
  LOW = 0,
5
6
  MEDIUM = 1,
@@ -45,6 +46,7 @@ export interface RecorderInterface {
45
46
  durations: number;
46
47
  isMicError: boolean;
47
48
  isActivelyStopped: boolean;
49
+ forcedView?: IViews;
48
50
  }
49
51
  export declare const enum MIME_TYPES {
50
52
  WEBM = "video/webm",
package/dist/index.d.ts CHANGED
@@ -178,6 +178,7 @@ interface IOnError {
178
178
  messageType: IMessageType;
179
179
  }
180
180
  type IEnv = 'dev' | 'staging' | 'production' | 'development' | 'local';
181
+ type IViews = 'desktop' | 'mobile';
181
182
  interface IConfig {
182
183
  auth: string;
183
184
  onWidgetClicked?: () => void;
@@ -199,6 +200,7 @@ interface IConfig {
199
200
  event_id?: string;
200
201
  accessibility_id?: string;
201
202
  recordWithoutVideo?: boolean;
203
+ forcedView?: IViews;
202
204
  }
203
205
  type IClientConfig = Omit<IConfig, 'practiceQuestions'> & {
204
206
  practiceQuestions?: IClientQuestion[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myinterview/widget-react",
3
- "version": "1.1.29",
3
+ "version": "1.1.30-development-5468e2f",
4
4
  "description": "myInterview widget v3",
5
5
  "module": "dist/esm/index.js",
6
6
  "main": "dist/cjs/index.js",