@100mslive/hms-video-store 0.15.3 → 0.15.4-alpha.0

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.
@@ -0,0 +1,29 @@
1
+ import { type IResult } from 'ua-parser-js';
2
+ /** The User-Agent Client Hints values the SDK reads, see https://wicg.github.io/ua-client-hints. */
3
+ export interface UAClientHints {
4
+ platform?: string;
5
+ platformVersion?: string;
6
+ mobile?: boolean;
7
+ model?: string;
8
+ architecture?: string;
9
+ bitness?: string;
10
+ formFactors?: string[];
11
+ fullVersionList?: {
12
+ brand: string;
13
+ version: string;
14
+ }[];
15
+ }
16
+ export declare const HIGH_ENTROPY_HINTS: string[];
17
+ /** Resolves the high entropy hints, or null where the browser does not expose them (Safari, Firefox). */
18
+ export declare const getClientHints: () => Promise<UAClientHints | null>;
19
+ /**
20
+ * Parses a user agent string with stable names: `macOS`, `Chrome OS`, and `Mobile Chrome` / `Mobile Firefox`
21
+ * for the phone builds. These are the names SDK telemetry and Prebuilt checks have been reporting and matching.
22
+ */
23
+ export declare const parseUserAgent: (ua?: string) => IResult;
24
+ /**
25
+ * Overlays client hints on a parsed user agent. Chromium freezes the user agent string at macOS 10.15.7,
26
+ * Windows 10 and Android 10 model "K", so the real OS version, device model and browser version only
27
+ * come from the hints.
28
+ */
29
+ export declare const applyClientHints: (parsed: IResult, hints: UAClientHints) => IResult;
@@ -1,4 +1,4 @@
1
- import { type IResult } from 'ua-parser-js';
1
+ import type { IResult } from 'ua-parser-js';
2
2
  export declare const isBrowser: boolean;
3
3
  export declare const parsedUserAgent: {
4
4
  getBrowser: () => import("ua-parser-js").IBrowser;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.15.3",
2
+ "version": "0.15.4-alpha.0",
3
3
  "license": "MIT",
4
4
  "repository": {
5
5
  "type": "git",
@@ -45,12 +45,13 @@
45
45
  "name": "@100mslive/hms-video-store",
46
46
  "author": "100ms",
47
47
  "dependencies": {
48
+ "@types/ua-parser-js": "^0.7.39",
48
49
  "eventemitter2": "^6.4.9",
49
50
  "immer": "^9.0.6",
50
51
  "lodash.isequal": "^4.5.0",
51
52
  "reselect": "4.0.0",
52
53
  "sdp-transform": "^2.14.1",
53
- "ua-parser-js": "^2.0.6",
54
+ "ua-parser-js": "^1.0.41",
54
55
  "uuid": "^11.1.1",
55
56
  "webrtc-adapter": "^8.0.0",
56
57
  "zustand": "3.5.7"
@@ -59,7 +60,6 @@
59
60
  "@types/dom-screen-wake-lock": "^1.0.1",
60
61
  "@types/lodash.isequal": "^4.5.8",
61
62
  "@types/sdp-transform": "^2.4.4",
62
- "@types/ua-parser-js": "^0.7.39",
63
63
  "@types/uuid": "^8.3.0",
64
64
  "jest-canvas-mock": "^2.3.1",
65
65
  "jsdom-worker": "^0.3.0",
@@ -72,5 +72,5 @@
72
72
  "conferencing",
73
73
  "100ms"
74
74
  ],
75
- "gitHead": "bfc26e13f1cdd7777395c1056615845a8e1f5475"
75
+ "gitHead": "a5df2fc54fa1e4dcab49343206e0d4af78c4ddfa"
76
76
  }