@robotical/webapp-types 3.16.20 → 3.16.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.
@@ -1,7 +1,7 @@
1
1
  import { UserDeviceInfo } from "../types/userDeviceInfo";
2
2
  export type AnalyticsAppRuntimeValue = "web-app" | "phone-app" | "unknown";
3
3
  export type AnalyticsDeviceFormFactorValue = "desktop" | "tablet" | "phone" | "unknown";
4
- export type AnalyticsDevicePlatformValue = "web-desktop" | "web-tablet" | "web-phone" | "ipad" | "ios-phone" | "android-tablet" | "android-phone" | "unknown";
4
+ export type AnalyticsDevicePlatformValue = "web-desktop" | "web-tablet" | "web-phone" | "chromebook" | "ipad" | "ios-phone" | "android-tablet" | "android-phone" | "unknown";
5
5
  export type AnalyticsDeviceInfoPayload = {
6
6
  runtime: AnalyticsAppRuntimeValue;
7
7
  platform: AnalyticsDevicePlatformValue;
@@ -38,14 +38,16 @@ function getDevicePlatform(runtime, osName, isTablet) {
38
38
  return "web-tablet";
39
39
  if (isIOS || isAndroid)
40
40
  return "web-phone";
41
- if (osName === "Windows" || osName === "MacOS" || osName === "Linux" || osName === "ChromeOS")
41
+ if (osName === "ChromeOS")
42
+ return "chromebook";
43
+ if (osName === "Windows" || osName === "MacOS" || osName === "Linux")
42
44
  return "web-desktop";
43
45
  return "unknown";
44
46
  }
45
47
  return "unknown";
46
48
  }
47
49
  function getFormFactor(platform, isTablet) {
48
- if (platform === "web-desktop")
50
+ if (platform === "web-desktop" || platform === "chromebook")
49
51
  return "desktop";
50
52
  if (platform === "web-tablet" || platform === "ipad" || platform === "android-tablet")
51
53
  return "tablet";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robotical/webapp-types",
3
- "version": "3.16.20",
3
+ "version": "3.16.21",
4
4
  "description": "Type definitions for the Application Manager",
5
5
  "main": "dist/application-manager.d.ts",
6
6
  "types": "dist/application-manager.d.ts",