@applicaster/zapp-react-dom-app 13.0.8 → 13.0.9-alpha.1105120000
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.
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
} from "@applicaster/zapp-react-native-utils/functionUtils";
|
|
17
17
|
|
|
18
18
|
import {
|
|
19
|
+
AccessibilityManager,
|
|
19
20
|
ARROW_KEYS,
|
|
20
21
|
focusManager,
|
|
21
22
|
keyCode,
|
|
@@ -86,6 +87,9 @@ type KeyCode = { code: string; keyCode: number | string };
|
|
|
86
87
|
export const alertConfirmationMesage =
|
|
87
88
|
"Are you sure you want to exit application?";
|
|
88
89
|
|
|
90
|
+
const VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE =
|
|
91
|
+
"Video player controls - use left/right to navigate";
|
|
92
|
+
|
|
89
93
|
class InteractionManagerClass extends React.Component<Props, State> {
|
|
90
94
|
onKeyDownListener: (keyCode: KeyCode) => void;
|
|
91
95
|
onMouseDownListener: (event: MouseEvent) => void;
|
|
@@ -101,6 +105,8 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
101
105
|
private confirmDialog: ConfirmationDialogState =
|
|
102
106
|
confirmationDialogStore.getState();
|
|
103
107
|
|
|
108
|
+
accessibilityManager: AccessibilityManager;
|
|
109
|
+
|
|
104
110
|
state: State = {
|
|
105
111
|
isKeyboardVisible: false,
|
|
106
112
|
keyboardInput: "",
|
|
@@ -152,6 +158,7 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
152
158
|
this.confirmDialog.setConfirmAction(this.performExit);
|
|
153
159
|
this.confirmDialog.setCancelAction(this.onConfirmDialogClose);
|
|
154
160
|
this.longPressDetector = new KeyboardLongPressManager();
|
|
161
|
+
this.accessibilityManager = AccessibilityManager.getInstance();
|
|
155
162
|
}
|
|
156
163
|
|
|
157
164
|
componentDidMount() {
|
|
@@ -551,6 +558,13 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
551
558
|
) {
|
|
552
559
|
if (displayState === DISPLAY_STATES.PLAYER) {
|
|
553
560
|
setDisplayState(DISPLAY_STATES.HUD);
|
|
561
|
+
|
|
562
|
+
this.accessibilityManager.addHeading(
|
|
563
|
+
VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE
|
|
564
|
+
);
|
|
565
|
+
|
|
566
|
+
focusManager.recoverFocus();
|
|
567
|
+
this.resetHudTimeout();
|
|
554
568
|
} else {
|
|
555
569
|
focusManager.pressIn();
|
|
556
570
|
focusManager.press();
|
|
@@ -595,6 +609,12 @@ class InteractionManagerClass extends React.Component<Props, State> {
|
|
|
595
609
|
this.resetHudTimeout();
|
|
596
610
|
}
|
|
597
611
|
|
|
612
|
+
if (displayState === DISPLAY_STATES.PLAYER) {
|
|
613
|
+
this.accessibilityManager.addHeading(
|
|
614
|
+
VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE
|
|
615
|
+
);
|
|
616
|
+
}
|
|
617
|
+
|
|
598
618
|
return true;
|
|
599
619
|
}
|
|
600
620
|
}
|
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.9-alpha.1105120000",
|
|
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.9-alpha.1105120000",
|
|
26
|
+
"@applicaster/zapp-react-native-bridge": "13.0.9-alpha.1105120000",
|
|
27
|
+
"@applicaster/zapp-react-native-redux": "13.0.9-alpha.1105120000",
|
|
28
|
+
"@applicaster/zapp-react-native-ui-components": "13.0.9-alpha.1105120000",
|
|
29
|
+
"@applicaster/zapp-react-native-utils": "13.0.9-alpha.1105120000",
|
|
30
30
|
"abortcontroller-polyfill": "^1.7.5",
|
|
31
31
|
"react-router-dom": "^5.1.2",
|
|
32
32
|
"typeface-montserrat": "^0.0.54",
|