@applicaster/zapp-react-dom-app 14.0.9 → 14.0.10-alpha.5112243140

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.
@@ -164,7 +164,7 @@ class InteractionManagerClass extends React.Component<Props, State> {
164
164
  }
165
165
 
166
166
  componentDidMount() {
167
- window.addEventListener("keydown", this.onKeyDownListener, true);
167
+ window.addEventListener("keydown", this.onKeyDownListener, false); // Let events bubble
168
168
  window.addEventListener("keyup", this.onKeyUp);
169
169
  window.addEventListener("mousemove", this.onMouseMoveListener);
170
170
 
@@ -535,6 +535,21 @@ class InteractionManagerClass extends React.Component<Props, State> {
535
535
  return;
536
536
  }
537
537
 
538
+ // TODO: find alternative, using this logic to allow events to be passed to player controls
539
+ // Still handle other keys (back, play/pause, etc.) through InteractionManager
540
+ const isPlayerActive = (
541
+ window as any
542
+ )?.applicaster?.player?.getVideoElement();
543
+
544
+ const isNavigationKey =
545
+ keyCode(event).matchesAny(...ARROW_KEYS) ||
546
+ keyCode(event).matches(KEYS.Enter) ||
547
+ (__DEV__ && keyCode(event).matches(KEYS.X));
548
+
549
+ if (isPlayerActive && isNavigationKey) {
550
+ return;
551
+ }
552
+
538
553
  if (keyCode(event).matches("Backspace")) {
539
554
  this.onBackspacePress(event);
540
555
 
@@ -259,6 +259,11 @@ export const getDeviceData = async () => {
259
259
  try {
260
260
  let deviceData = {};
261
261
 
262
+ const deviceDimensions = {
263
+ deviceWidth: window?.screen?.width,
264
+ deviceHeight: window?.screen?.height,
265
+ };
266
+
262
267
  if (isLgPlatform()) {
263
268
  const [webOSInfo, webOSConnectionInfo] = await Promise.all([
264
269
  getWebOSInfo(),
@@ -270,6 +275,7 @@ export const getDeviceData = async () => {
270
275
  ...webOSInfo,
271
276
  ...webOSConnectionInfo,
272
277
  device_type: getDeviceType(),
278
+ ...deviceDimensions,
273
279
  };
274
280
  } else if (isSamsungPlatform()) {
275
281
  const [tizenInfo, tizenConnectionInfo] = await Promise.all([
@@ -282,6 +288,7 @@ export const getDeviceData = async () => {
282
288
  ...tizenInfo,
283
289
  ...tizenConnectionInfo,
284
290
  device_type: getDeviceType(),
291
+ ...deviceDimensions,
285
292
  };
286
293
  } else if (isVizioPlatform()) {
287
294
  deviceData = {
@@ -289,8 +296,7 @@ export const getDeviceData = async () => {
289
296
  platform: "vizio",
290
297
  deviceMake: "Vizio",
291
298
  deviceType: "tv",
292
- deviceWidth: window.innerWidth,
293
- deviceHeight: window.innerHeight,
299
+ ...deviceDimensions,
294
300
  };
295
301
 
296
302
  if (hasVizioAPIs()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-dom-app",
3
- "version": "14.0.9",
3
+ "version": "14.0.10-alpha.5112243140",
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": "14.0.9",
26
- "@applicaster/zapp-react-native-bridge": "14.0.9",
27
- "@applicaster/zapp-react-native-redux": "14.0.9",
28
- "@applicaster/zapp-react-native-ui-components": "14.0.9",
29
- "@applicaster/zapp-react-native-utils": "14.0.9",
25
+ "@applicaster/zapp-react-dom-ui-components": "14.0.10-alpha.5112243140",
26
+ "@applicaster/zapp-react-native-bridge": "14.0.10-alpha.5112243140",
27
+ "@applicaster/zapp-react-native-redux": "14.0.10-alpha.5112243140",
28
+ "@applicaster/zapp-react-native-ui-components": "14.0.10-alpha.5112243140",
29
+ "@applicaster/zapp-react-native-utils": "14.0.10-alpha.5112243140",
30
30
  "abortcontroller-polyfill": "^1.7.5",
31
31
  "typeface-montserrat": "^0.0.54",
32
32
  "video.js": "7.14.3",