@applicaster/zapp-react-dom-app 16.0.0-alpha.6580258138 → 16.0.0-alpha.6861239588
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.
|
@@ -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.
|
|
@@ -98,8 +108,11 @@ export const getDeviceType = () => {
|
|
|
98
108
|
case "samsung_tv":
|
|
99
109
|
return isSamsungPlatform() ? "tv" : "web";
|
|
100
110
|
case "lg_tv":
|
|
101
|
-
case "vidaa":
|
|
102
111
|
return isLgPlatform() ? "tv" : "web";
|
|
112
|
+
case "vizio":
|
|
113
|
+
return isVizioPlatform() ? "tv" : "web";
|
|
114
|
+
case "vidaa":
|
|
115
|
+
return isVidaaPlatform() ? "tv" : "web";
|
|
103
116
|
default:
|
|
104
117
|
return "other";
|
|
105
118
|
}
|
|
@@ -155,7 +155,11 @@ export function getStorageModule(type) {
|
|
|
155
155
|
function removeItem(key, namespace = DEFAULT_NAMESPACE) {
|
|
156
156
|
const keyName = applyNamespaceToKeyName(key, namespace);
|
|
157
157
|
|
|
158
|
-
return tryAndResolve(() =>
|
|
158
|
+
return tryAndResolve(() => {
|
|
159
|
+
Storage.callMethod("removeItem", keyName);
|
|
160
|
+
|
|
161
|
+
return true;
|
|
162
|
+
});
|
|
159
163
|
}
|
|
160
164
|
|
|
161
165
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-dom-app",
|
|
3
|
-
"version": "16.0.0-alpha.
|
|
3
|
+
"version": "16.0.0-alpha.6861239588",
|
|
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-alpha.
|
|
26
|
-
"@applicaster/zapp-react-native-bridge": "16.0.0-alpha.
|
|
27
|
-
"@applicaster/zapp-react-native-redux": "16.0.0-alpha.
|
|
28
|
-
"@applicaster/zapp-react-native-ui-components": "16.0.0-alpha.
|
|
29
|
-
"@applicaster/zapp-react-native-utils": "16.0.0-alpha.
|
|
25
|
+
"@applicaster/zapp-react-dom-ui-components": "16.0.0-alpha.6861239588",
|
|
26
|
+
"@applicaster/zapp-react-native-bridge": "16.0.0-alpha.6861239588",
|
|
27
|
+
"@applicaster/zapp-react-native-redux": "16.0.0-alpha.6861239588",
|
|
28
|
+
"@applicaster/zapp-react-native-ui-components": "16.0.0-alpha.6861239588",
|
|
29
|
+
"@applicaster/zapp-react-native-utils": "16.0.0-alpha.6861239588",
|
|
30
30
|
"abortcontroller-polyfill": "^1.7.5",
|
|
31
31
|
"typeface-montserrat": "^0.0.54",
|
|
32
32
|
"video.js": "7.14.3",
|