@applicaster/zapp-react-dom-app 13.0.7-alpha.7163853950 → 13.0.8-rc.0
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.
|
@@ -8,13 +8,14 @@ import {
|
|
|
8
8
|
sendQuickBrickEvent,
|
|
9
9
|
} from "@applicaster/zapp-react-native-bridge/QuickBrick";
|
|
10
10
|
|
|
11
|
+
import { toBooleanWithDefaultFalse } from "@applicaster/zapp-react-native-utils/booleanUtils";
|
|
12
|
+
|
|
11
13
|
import {
|
|
12
14
|
debounce,
|
|
13
15
|
noop,
|
|
14
16
|
} from "@applicaster/zapp-react-native-utils/functionUtils";
|
|
15
17
|
|
|
16
18
|
import {
|
|
17
|
-
AccessibilityManager,
|
|
18
19
|
ARROW_KEYS,
|
|
19
20
|
focusManager,
|
|
20
21
|
keyCode,
|
|
@@ -61,7 +62,8 @@ const { log_debug, log_warning } = createLogger({
|
|
|
61
62
|
});
|
|
62
63
|
|
|
63
64
|
const shouldUseOnScreenKeyboard = () =>
|
|
64
|
-
isVizioPlatform() ||
|
|
65
|
+
isVizioPlatform() ||
|
|
66
|
+
toBooleanWithDefaultFalse(window?.applicaster?.useOnScreenKeyboard);
|
|
65
67
|
|
|
66
68
|
type Props = {
|
|
67
69
|
displayState: string;
|
|
@@ -84,9 +86,6 @@ type KeyCode = { code: string; keyCode: number | string };
|
|
|
84
86
|
export const alertConfirmationMesage =
|
|
85
87
|
"Are you sure you want to exit application?";
|
|
86
88
|
|
|
87
|
-
const VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE =
|
|
88
|
-
"Video player controls - use left/right to navigate";
|
|
89
|
-
|
|
90
89
|
class InteractionManagerClass extends React.Component<Props, State> {
|
|
91
90
|
onKeyDownListener: (keyCode: KeyCode) => void;
|
|
92
91
|
onMouseDownListener: (event: MouseEvent) => void;
|
|
@@ -102,8 +101,6 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
102
101
|
private confirmDialog: ConfirmationDialogState =
|
|
103
102
|
confirmationDialogStore.getState();
|
|
104
103
|
|
|
105
|
-
accessibilityManager: AccessibilityManager;
|
|
106
|
-
|
|
107
104
|
state: State = {
|
|
108
105
|
isKeyboardVisible: false,
|
|
109
106
|
keyboardInput: "",
|
|
@@ -155,7 +152,6 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
155
152
|
this.confirmDialog.setConfirmAction(this.performExit);
|
|
156
153
|
this.confirmDialog.setCancelAction(this.onConfirmDialogClose);
|
|
157
154
|
this.longPressDetector = new KeyboardLongPressManager();
|
|
158
|
-
this.accessibilityManager = AccessibilityManager.getInstance();
|
|
159
155
|
}
|
|
160
156
|
|
|
161
157
|
componentDidMount() {
|
|
@@ -555,13 +551,6 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
555
551
|
) {
|
|
556
552
|
if (displayState === DISPLAY_STATES.PLAYER) {
|
|
557
553
|
setDisplayState(DISPLAY_STATES.HUD);
|
|
558
|
-
|
|
559
|
-
this.accessibilityManager.addHeading(
|
|
560
|
-
VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE
|
|
561
|
-
);
|
|
562
|
-
|
|
563
|
-
focusManager.recoverFocus();
|
|
564
|
-
this.resetHudTimeout();
|
|
565
554
|
} else {
|
|
566
555
|
focusManager.pressIn();
|
|
567
556
|
focusManager.press();
|
|
@@ -606,12 +595,6 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
606
595
|
this.resetHudTimeout();
|
|
607
596
|
}
|
|
608
597
|
|
|
609
|
-
if (displayState === DISPLAY_STATES.PLAYER) {
|
|
610
|
-
this.accessibilityManager.addHeading(
|
|
611
|
-
VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE
|
|
612
|
-
);
|
|
613
|
-
}
|
|
614
|
-
|
|
615
598
|
return true;
|
|
616
599
|
}
|
|
617
600
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-dom-app",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.8-rc.0",
|
|
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": "13.0.
|
|
26
|
-
"@applicaster/zapp-react-native-bridge": "13.0.
|
|
27
|
-
"@applicaster/zapp-react-native-redux": "13.0.
|
|
28
|
-
"@applicaster/zapp-react-native-ui-components": "13.0.
|
|
29
|
-
"@applicaster/zapp-react-native-utils": "13.0.
|
|
25
|
+
"@applicaster/zapp-react-dom-ui-components": "13.0.8-rc.0",
|
|
26
|
+
"@applicaster/zapp-react-native-bridge": "13.0.8-rc.0",
|
|
27
|
+
"@applicaster/zapp-react-native-redux": "13.0.8-rc.0",
|
|
28
|
+
"@applicaster/zapp-react-native-ui-components": "13.0.8-rc.0",
|
|
29
|
+
"@applicaster/zapp-react-native-utils": "13.0.8-rc.0",
|
|
30
30
|
"abortcontroller-polyfill": "^1.7.5",
|
|
31
31
|
"react-router-dom": "^5.1.2",
|
|
32
32
|
"typeface-montserrat": "^0.0.54",
|