@applicaster/zapp-react-dom-app 16.0.0-rc.25 → 16.0.0-rc.27
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.
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @typedef {"tv" | "web" | "other"} DeviceType
|
|
16
|
-
* @typedef {"samsung_tv" | "lg_tv" | unknown} CustomPlatformTypes
|
|
16
|
+
* @typedef {"samsung_tv" | "lg_tv" | "vidaa" | unknown} CustomPlatformTypes
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
19
|
/**
|
|
@@ -75,6 +75,16 @@ export const isVizioPlatform = () => {
|
|
|
75
75
|
);
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
+
/**
|
|
79
|
+
* Checks if the platform is Vida.
|
|
80
|
+
* @returns {boolean} True if the platform is Vida, false otherwise.
|
|
81
|
+
*/
|
|
82
|
+
export const isVidaaPlatform = () => {
|
|
83
|
+
const userAgent = getUserAgent();
|
|
84
|
+
|
|
85
|
+
return userAgent.includes(PLATFORMS.vidaa);
|
|
86
|
+
};
|
|
87
|
+
|
|
78
88
|
/**
|
|
79
89
|
* Checks if the Vizio APIs are available.
|
|
80
90
|
* @returns {boolean} True if the Vizio APIs are available, false otherwise.
|
|
@@ -99,6 +109,10 @@ export const getDeviceType = () => {
|
|
|
99
109
|
return isSamsungPlatform() ? "tv" : "web";
|
|
100
110
|
case "lg_tv":
|
|
101
111
|
return isLgPlatform() ? "tv" : "web";
|
|
112
|
+
case "vizio":
|
|
113
|
+
return isVizioPlatform() ? "tv" : "web";
|
|
114
|
+
case "vidaa":
|
|
115
|
+
return isVidaaPlatform() ? "tv" : "web";
|
|
102
116
|
default:
|
|
103
117
|
return "other";
|
|
104
118
|
}
|
package/Polyfills/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-dom-app",
|
|
3
|
-
"version": "16.0.0-rc.
|
|
3
|
+
"version": "16.0.0-rc.27",
|
|
4
4
|
"description": "Zapp App Component for Applicaster's Quick Brick React Native App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/applicaster/zapp-react-dom-app#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@applicaster/zapp-react-dom-ui-components": "16.0.0-rc.
|
|
26
|
-
"@applicaster/zapp-react-native-bridge": "16.0.0-rc.
|
|
27
|
-
"@applicaster/zapp-react-native-redux": "16.0.0-rc.
|
|
28
|
-
"@applicaster/zapp-react-native-ui-components": "16.0.0-rc.
|
|
29
|
-
"@applicaster/zapp-react-native-utils": "16.0.0-rc.
|
|
25
|
+
"@applicaster/zapp-react-dom-ui-components": "16.0.0-rc.27",
|
|
26
|
+
"@applicaster/zapp-react-native-bridge": "16.0.0-rc.27",
|
|
27
|
+
"@applicaster/zapp-react-native-redux": "16.0.0-rc.27",
|
|
28
|
+
"@applicaster/zapp-react-native-ui-components": "16.0.0-rc.27",
|
|
29
|
+
"@applicaster/zapp-react-native-utils": "16.0.0-rc.27",
|
|
30
30
|
"abortcontroller-polyfill": "^1.7.5",
|
|
31
31
|
"typeface-montserrat": "^0.0.54",
|
|
32
32
|
"video.js": "7.14.3",
|