@applicaster/zapp-react-dom-app 13.0.7 → 13.0.8-alpha.1940580104

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,12 +8,15 @@ 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 {
19
+ AccessibilityManager,
17
20
  ARROW_KEYS,
18
21
  focusManager,
19
22
  keyCode,
@@ -60,7 +63,8 @@ const { log_debug, log_warning } = createLogger({
60
63
  });
61
64
 
62
65
  const shouldUseOnScreenKeyboard = () =>
63
- isVizioPlatform() || window.applicaster.useOnScreenKeyboard;
66
+ isVizioPlatform() ||
67
+ toBooleanWithDefaultFalse(window?.applicaster?.useOnScreenKeyboard);
64
68
 
65
69
  type Props = {
66
70
  displayState: string;
@@ -83,6 +87,9 @@ type KeyCode = { code: string; keyCode: number | string };
83
87
  export const alertConfirmationMesage =
84
88
  "Are you sure you want to exit application?";
85
89
 
90
+ const VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE =
91
+ "Video player controls - use left/right to navigate";
92
+
86
93
  class InteractionManagerClass extends React.Component<Props, State> {
87
94
  onKeyDownListener: (keyCode: KeyCode) => void;
88
95
  onMouseDownListener: (event: MouseEvent) => void;
@@ -98,6 +105,8 @@ class InteractionManagerClass extends React.Component<Props, State> {
98
105
  private confirmDialog: ConfirmationDialogState =
99
106
  confirmationDialogStore.getState();
100
107
 
108
+ accessibilityManager: AccessibilityManager;
109
+
101
110
  state: State = {
102
111
  isKeyboardVisible: false,
103
112
  keyboardInput: "",
@@ -149,6 +158,7 @@ class InteractionManagerClass extends React.Component<Props, State> {
149
158
  this.confirmDialog.setConfirmAction(this.performExit);
150
159
  this.confirmDialog.setCancelAction(this.onConfirmDialogClose);
151
160
  this.longPressDetector = new KeyboardLongPressManager();
161
+ this.accessibilityManager = AccessibilityManager.getInstance();
152
162
  }
153
163
 
154
164
  componentDidMount() {
@@ -548,6 +558,13 @@ class InteractionManagerClass extends React.Component<Props, State> {
548
558
  ) {
549
559
  if (displayState === DISPLAY_STATES.PLAYER) {
550
560
  setDisplayState(DISPLAY_STATES.HUD);
561
+
562
+ this.accessibilityManager.addHeading(
563
+ VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE
564
+ );
565
+
566
+ focusManager.recoverFocus();
567
+ this.resetHudTimeout();
551
568
  } else {
552
569
  focusManager.pressIn();
553
570
  focusManager.press();
@@ -592,6 +609,12 @@ class InteractionManagerClass extends React.Component<Props, State> {
592
609
  this.resetHudTimeout();
593
610
  }
594
611
 
612
+ if (displayState === DISPLAY_STATES.PLAYER) {
613
+ this.accessibilityManager.addHeading(
614
+ VIDEO_PLAYER_CONTROLS_NAVIGATION_MESSAGE
615
+ );
616
+ }
617
+
595
618
  return true;
596
619
  }
597
620
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-dom-app",
3
- "version": "13.0.7",
3
+ "version": "13.0.8-alpha.1940580104",
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.7",
26
- "@applicaster/zapp-react-native-bridge": "13.0.7",
27
- "@applicaster/zapp-react-native-redux": "13.0.7",
28
- "@applicaster/zapp-react-native-ui-components": "13.0.7",
29
- "@applicaster/zapp-react-native-utils": "13.0.7",
25
+ "@applicaster/zapp-react-dom-ui-components": "13.0.8-alpha.1940580104",
26
+ "@applicaster/zapp-react-native-bridge": "13.0.8-alpha.1940580104",
27
+ "@applicaster/zapp-react-native-redux": "13.0.8-alpha.1940580104",
28
+ "@applicaster/zapp-react-native-ui-components": "13.0.8-alpha.1940580104",
29
+ "@applicaster/zapp-react-native-utils": "13.0.8-alpha.1940580104",
30
30
  "abortcontroller-polyfill": "^1.7.5",
31
31
  "react-router-dom": "^5.1.2",
32
32
  "typeface-montserrat": "^0.0.54",