@applicaster/zapp-react-dom-app 11.0.0-rc.99 → 12.0.0-rc.1

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.
@@ -557,7 +557,11 @@ export function withInteractionManager(Component: React.FC) {
557
557
  }
558
558
 
559
559
  if (keyCode(event).matches(KEYS.Enter)) {
560
- focusManager.press();
560
+ if (displayState === DISPLAY_STATES.PLAYER) {
561
+ setDisplayState(DISPLAY_STATES.HUD);
562
+ } else {
563
+ focusManager.press();
564
+ }
561
565
 
562
566
  return true;
563
567
  }
@@ -4,7 +4,13 @@
4
4
  /* eslint-disable no-console */
5
5
 
6
6
  import { Platform } from "react-native";
7
- import { DEFAULT, desiredKeysMap, hasTizen, hasWebOS, PLATFORMS } from "./const";
7
+ import {
8
+ DEFAULT,
9
+ desiredKeysMap,
10
+ hasTizen,
11
+ hasWebOS,
12
+ PLATFORMS,
13
+ } from "./const";
8
14
 
9
15
  export const getUserAgent = () =>
10
16
  window?.navigator?.userAgent || global?.navigator?.userAgent;
@@ -25,6 +31,10 @@ export const isLgPlatform = () => {
25
31
  export const isSamsungPlatform = () => {
26
32
  const userAgent = getUserAgent();
27
33
 
34
+ if (!userAgent) {
35
+ return false;
36
+ }
37
+
28
38
  return (
29
39
  hasTizen ||
30
40
  userAgent.includes(PLATFORMS.samsung) ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-dom-app",
3
- "version": "11.0.0-rc.99",
3
+ "version": "12.0.0-rc.1",
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": "11.0.0-rc.99",
26
- "@applicaster/zapp-react-native-bridge": "11.0.0-rc.99",
27
- "@applicaster/zapp-react-native-redux": "11.0.0-rc.99",
28
- "@applicaster/zapp-react-native-ui-components": "11.0.0-rc.99",
29
- "@applicaster/zapp-react-native-utils": "11.0.0-rc.99",
25
+ "@applicaster/zapp-react-dom-ui-components": "12.0.0-rc.1",
26
+ "@applicaster/zapp-react-native-bridge": "12.0.0-rc.1",
27
+ "@applicaster/zapp-react-native-redux": "12.0.0-rc.1",
28
+ "@applicaster/zapp-react-native-ui-components": "12.0.0-rc.1",
29
+ "@applicaster/zapp-react-native-utils": "12.0.0-rc.1",
30
30
  "abortcontroller-polyfill": "^1.7.5",
31
31
  "history": "^4.7.2",
32
32
  "react-router-dom": "^5.1.2",