@myinterview/widget-react 1.1.32 → 1.1.33-beta-e083411

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.
@@ -5,18 +5,18 @@ export interface IVideoDimensions {
5
5
  }
6
6
  export interface IVideoPlatformOS {
7
7
  architecture: number;
8
- family: string;
9
- version: string;
8
+ family?: string;
9
+ version?: string;
10
10
  }
11
11
  export interface IVideoPlatform {
12
12
  description: string;
13
- layout: string;
14
- manufacturer: string;
15
- name: string;
16
- prerelease: string;
17
- product: string;
13
+ layout?: string;
14
+ manufacturer: null;
15
+ name?: string;
16
+ prerelease: null;
17
+ product?: string;
18
18
  ua: string;
19
- version: string;
19
+ version?: string;
20
20
  os: IVideoPlatformOS;
21
21
  }
22
22
  export interface IVideoFile {
@@ -1,3 +1,5 @@
1
+ import { IVideoPlatform } from '../interfaces/videoInterface';
2
+ export declare const getUAParserData: (userAgent: string) => IVideoPlatform | undefined;
1
3
  export declare const isMobile: boolean;
2
4
  export declare const isAndroid: boolean;
3
5
  export declare const isIphone: boolean;
package/dist/index.d.ts CHANGED
@@ -97,18 +97,18 @@ interface IVideoDimensions {
97
97
  }
98
98
  interface IVideoPlatformOS {
99
99
  architecture: number;
100
- family: string;
101
- version: string;
100
+ family?: string;
101
+ version?: string;
102
102
  }
103
103
  interface IVideoPlatform {
104
104
  description: string;
105
- layout: string;
106
- manufacturer: string;
107
- name: string;
108
- prerelease: string;
109
- product: string;
105
+ layout?: string;
106
+ manufacturer: null;
107
+ name?: string;
108
+ prerelease: null;
109
+ product?: string;
110
110
  ua: string;
111
- version: string;
111
+ version?: string;
112
112
  os: IVideoPlatformOS;
113
113
  }
114
114
  interface IVideoFile {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myinterview/widget-react",
3
- "version": "1.1.32",
3
+ "version": "1.1.33-beta-e083411",
4
4
  "description": "myInterview widget v3",
5
5
  "module": "dist/esm/index.js",
6
6
  "main": "dist/cjs/index.js",
@@ -13,6 +13,7 @@
13
13
  "@myinterview/component-library": "1.0.45",
14
14
  "@sentry/react": "7.52.1",
15
15
  "@sentry/tracing": "7.52.1",
16
+ "@types/ua-parser-js": "^0.7.37",
16
17
  "@xstate/react": "3.2.2",
17
18
  "axios": "0.27.2",
18
19
  "babel-plugin-named-asset-import": "0.3.8",
@@ -46,6 +47,7 @@
46
47
  "resolve-url-loader": "4.0.0",
47
48
  "rxjs": "7.8.1",
48
49
  "semver": "7.5.1",
50
+ "ua-parser-js": "^1.0.36",
49
51
  "web-vitals": "2.1.4",
50
52
  "workbox-webpack-plugin": "6.5.4",
51
53
  "xstate": "4.37.2"