@applicaster/zapp-react-dom-app 13.0.6 → 13.0.7-alpha.2583030144

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