@applicaster/zapp-react-dom-app 13.0.10-rc.0 → 13.0.10-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.
@@ -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,
@@ -83,8 +84,8 @@ interface State {
83
84
 
84
85
  type KeyCode = { code: string; keyCode: number | string };
85
86
 
86
- export const alertConfirmationMesage =
87
- "Are you sure you want to exit application?";
87
+ const VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE =
88
+ "Video player controls - use left/right to navigate";
88
89
 
89
90
  class InteractionManagerClass extends React.Component<Props, State> {
90
91
  onKeyDownListener: (keyCode: KeyCode) => void;
@@ -101,6 +102,8 @@ class InteractionManagerClass extends React.Component<Props, State> {
101
102
  private confirmDialog: ConfirmationDialogState =
102
103
  confirmationDialogStore.getState();
103
104
 
105
+ accessibilityManager: AccessibilityManager;
106
+
104
107
  state: State = {
105
108
  isKeyboardVisible: false,
106
109
  keyboardInput: "",
@@ -152,6 +155,7 @@ class InteractionManagerClass extends React.Component<Props, State> {
152
155
  this.confirmDialog.setConfirmAction(this.performExit);
153
156
  this.confirmDialog.setCancelAction(this.onConfirmDialogClose);
154
157
  this.longPressDetector = new KeyboardLongPressManager();
158
+ this.accessibilityManager = AccessibilityManager.getInstance();
155
159
  }
156
160
 
157
161
  componentDidMount() {
@@ -257,7 +261,6 @@ class InteractionManagerClass extends React.Component<Props, State> {
257
261
  */
258
262
  showConfirmationDialog({
259
263
  title: "",
260
- message: alertConfirmationMesage,
261
264
  confirmCompletion: this.performExit,
262
265
  });
263
266
  }
@@ -280,7 +283,6 @@ class InteractionManagerClass extends React.Component<Props, State> {
280
283
  } else {
281
284
  showConfirmationDialog({
282
285
  title: "",
283
- message: alertConfirmationMesage,
284
286
  confirmCompletion: this.performExit,
285
287
  cancelCompletion: this.onConfirmDialogClose,
286
288
  });
@@ -551,6 +553,13 @@ class InteractionManagerClass extends React.Component<Props, State> {
551
553
  ) {
552
554
  if (displayState === DISPLAY_STATES.PLAYER) {
553
555
  setDisplayState(DISPLAY_STATES.HUD);
556
+
557
+ this.accessibilityManager.addHeading(
558
+ VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE
559
+ );
560
+
561
+ focusManager.recoverFocus();
562
+ this.resetHudTimeout();
554
563
  } else {
555
564
  focusManager.pressIn();
556
565
  focusManager.press();
@@ -595,6 +604,12 @@ class InteractionManagerClass extends React.Component<Props, State> {
595
604
  this.resetHudTimeout();
596
605
  }
597
606
 
607
+ if (displayState === DISPLAY_STATES.PLAYER) {
608
+ this.accessibilityManager.addHeading(
609
+ VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE
610
+ );
611
+ }
612
+
598
613
  return true;
599
614
  }
600
615
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-dom-app",
3
- "version": "13.0.10-rc.0",
3
+ "version": "13.0.10-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": "13.0.10-rc.0",
26
- "@applicaster/zapp-react-native-bridge": "13.0.10-rc.0",
27
- "@applicaster/zapp-react-native-redux": "13.0.10-rc.0",
28
- "@applicaster/zapp-react-native-ui-components": "13.0.10-rc.0",
29
- "@applicaster/zapp-react-native-utils": "13.0.10-rc.0",
25
+ "@applicaster/zapp-react-dom-ui-components": "13.0.10-rc.1",
26
+ "@applicaster/zapp-react-native-bridge": "13.0.10-rc.1",
27
+ "@applicaster/zapp-react-native-redux": "13.0.10-rc.1",
28
+ "@applicaster/zapp-react-native-ui-components": "13.0.10-rc.1",
29
+ "@applicaster/zapp-react-native-utils": "13.0.10-rc.1",
30
30
  "abortcontroller-polyfill": "^1.7.5",
31
31
  "react-router-dom": "^5.1.2",
32
32
  "typeface-montserrat": "^0.0.54",