@applicaster/zapp-react-native-ui-components 12.0.0-alpha.4739493702 → 12.0.0-alpha.4796013211

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.
@@ -5,6 +5,7 @@ import { useActions } from "@applicaster/zapp-react-native-utils/reactHooks/acti
5
5
  import * as R from "ramda";
6
6
  import { getXray } from "@applicaster/zapp-react-native-utils/logger";
7
7
  import { toBooleanWithDefaultFalse } from "@applicaster/zapp-react-native-utils/booleanUtils";
8
+ import { useAccessibilityManager } from "@applicaster/zapp-react-native-utils/appUtils/accessibilityManager/hooks";
8
9
 
9
10
  const { Logger } = getXray();
10
11
 
@@ -44,6 +45,11 @@ export function FocusableView({ style, children, item, ...otherProps }: Props) {
44
45
 
45
46
  const actionContext = useActions(pluginIdentifier);
46
47
 
48
+ const accessibilityManager = useAccessibilityManager({});
49
+
50
+ const accessibilityLabel =
51
+ actionContext?.initialEntryState(item)?.accessibilityLabel;
52
+
47
53
  const onPress = (event) => {
48
54
  event?.preventDefault?.();
49
55
 
@@ -88,6 +94,12 @@ export function FocusableView({ style, children, item, ...otherProps }: Props) {
88
94
  mouse: focusable.mouse,
89
95
  });
90
96
  });
97
+
98
+ if (accessibilityLabel) {
99
+ accessibilityManager.readText({
100
+ text: accessibilityLabel,
101
+ });
102
+ }
91
103
  };
92
104
 
93
105
  const handleBlur = (_focusable, _direction) => {
package/const.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { ViewStyle } from "react-native";
2
+
1
3
  export const tvPluginsWithCellRenderer = [
2
4
  "group-qb",
3
5
  "gallery-qb",
@@ -5,3 +7,7 @@ export const tvPluginsWithCellRenderer = [
5
7
  "hero-qb",
6
8
  "list-qb",
7
9
  ];
10
+
11
+ // Can't be used in StyleSheet.create, need to be inline/defined as a constant
12
+ // https://github.com/necolas/react-native-web/issues/1427
13
+ export const flatListOverflowStyle: ViewStyle = { overflow: "visible" };
package/index.js CHANGED
@@ -1,3 +1,6 @@
1
1
  import * as QuickBrickComponents from "./Components";
2
+ import { flatListOverflowStyle } from "./const";
3
+
4
+ export { flatListOverflowStyle };
2
5
 
3
6
  export default QuickBrickComponents;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "12.0.0-alpha.4739493702",
3
+ "version": "12.0.0-alpha.4796013211",
4
4
  "description": "Applicaster Zapp React Native ui components for the Quick Brick App",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -34,10 +34,10 @@
34
34
  "redux-mock-store": "^1.5.3"
35
35
  },
36
36
  "dependencies": {
37
- "@applicaster/applicaster-types": "12.0.0-alpha.4739493702",
38
- "@applicaster/zapp-react-native-bridge": "12.0.0-alpha.4739493702",
39
- "@applicaster/zapp-react-native-redux": "12.0.0-alpha.4739493702",
40
- "@applicaster/zapp-react-native-utils": "12.0.0-alpha.4739493702",
37
+ "@applicaster/applicaster-types": "12.0.0-alpha.4796013211",
38
+ "@applicaster/zapp-react-native-bridge": "12.0.0-alpha.4796013211",
39
+ "@applicaster/zapp-react-native-redux": "12.0.0-alpha.4796013211",
40
+ "@applicaster/zapp-react-native-utils": "12.0.0-alpha.4796013211",
41
41
  "promise": "^8.3.0",
42
42
  "react-router-native": "^5.1.2",
43
43
  "url": "^0.11.0",