@applicaster/zapp-react-native-ui-components 13.0.5-alpha.1350540914 → 13.0.5-alpha.8095597213

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.
@@ -70,8 +70,6 @@ type State = {
70
70
  };
71
71
 
72
72
  export class CellComponent extends React.Component<Props, State> {
73
- accessibilityManager: AccessibilityManager;
74
-
75
73
  constructor(props) {
76
74
  super(props);
77
75
  this.onPress = this.onPress.bind(this);
@@ -85,8 +83,6 @@ export class CellComponent extends React.Component<Props, State> {
85
83
  this.state = {
86
84
  hasFocusableInside: props.CellRenderer.hasFocusableInside?.(props.item),
87
85
  };
88
-
89
- this.accessibilityManager = AccessibilityManager.getInstance();
90
86
  }
91
87
 
92
88
  setScreenLayout(componentAnchorPointY, screenLayout) {
@@ -261,21 +257,20 @@ export class CellComponent extends React.Component<Props, State> {
261
257
  style={styles.baseCell}
262
258
  isFocusable={isFocusable}
263
259
  skipFocusManagerRegistration={skipFocusManagerRegistration}
264
- {...this.accessibilityManager.getButtonAccessibilityProps(
265
- item?.extensions?.accessibility?.label || item?.title
266
- )}
267
260
  >
268
261
  {(focused, event) => {
269
262
  const isFocused = this.isCellFocused(focused);
270
263
 
271
264
  if (isFocused) {
265
+ const accessibilityManager = AccessibilityManager.getInstance();
266
+
272
267
  const accessibilityTitle =
273
268
  item?.extensions?.accessibility?.label || item?.title || "";
274
269
 
275
270
  const accessibilityHint =
276
271
  item?.extensions?.accessibility?.hint || "";
277
272
 
278
- this.accessibilityManager.readText({
273
+ accessibilityManager.readText({
279
274
  text: `${accessibilityTitle} ${accessibilityHint}`,
280
275
  });
281
276
  }
@@ -2,19 +2,6 @@
2
2
 
3
3
  exports[`<TextInputTv /> renders 1`] = `
4
4
  <input
5
- accessibilityProps={
6
- {
7
- "accessibilityHint": "Enter text into Search",
8
- "accessibilityLabel": "Search",
9
- "accessibilityRole": "textbox",
10
- "accessible": true,
11
- "aria-description": "Enter text into Search",
12
- "aria-label": "Search",
13
- "aria-role": "textbox",
14
- "role": "textbox",
15
- "tabindex": 0,
16
- }
17
- }
18
5
  testID="TextInput-tv"
19
6
  />
20
7
  `;
@@ -4,7 +4,6 @@ import { Appearance, Platform, StyleSheet, TextInput } from "react-native";
4
4
  import { isFunction } from "@applicaster/zapp-react-native-utils/functionUtils";
5
5
  import { isWeb } from "@applicaster/zapp-react-native-utils/reactUtils";
6
6
  import { useIsRTL } from "@applicaster/zapp-react-native-utils/localizationUtils";
7
- import { useAccessibilityManager } from "@applicaster/zapp-react-native-utils/appUtils/accessibilityManager/hooks";
8
7
 
9
8
  type Props = Partial<{
10
9
  style: any;
@@ -43,8 +42,6 @@ function TextInputTV(props: Props, ref) {
43
42
  const [colorScheme, setColorScheme] = useState(getInitialColorScheme());
44
43
  const isRTL = useIsRTL();
45
44
 
46
- const accessibilityManager = useAccessibilityManager({});
47
-
48
45
  const onColorChange = useCallback(
49
46
  ({ colorScheme: color }) => {
50
47
  if (color !== colorScheme) {
@@ -156,13 +153,6 @@ function TextInputTV(props: Props, ref) {
156
153
  ])
157
154
  )(props);
158
155
 
159
- const getAccessibilityProps = () => {
160
- return {
161
- accessibilityProps:
162
- accessibilityManager.getInputAccessibilityProps("Search"),
163
- };
164
- };
165
-
166
156
  const inputProps = {
167
157
  ...getProps(),
168
158
  ...getStyle(),
@@ -171,7 +161,6 @@ function TextInputTV(props: Props, ref) {
171
161
  ...getSecureTextEntry(),
172
162
  ...getOnEndEditing(),
173
163
  ...getOnPress(),
174
- ...getAccessibilityProps(),
175
164
  };
176
165
 
177
166
  if (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "13.0.5-alpha.1350540914",
3
+ "version": "13.0.5-alpha.8095597213",
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",
@@ -31,10 +31,10 @@
31
31
  "redux-mock-store": "^1.5.3"
32
32
  },
33
33
  "dependencies": {
34
- "@applicaster/applicaster-types": "13.0.5-alpha.1350540914",
35
- "@applicaster/zapp-react-native-bridge": "13.0.5-alpha.1350540914",
36
- "@applicaster/zapp-react-native-redux": "13.0.5-alpha.1350540914",
37
- "@applicaster/zapp-react-native-utils": "13.0.5-alpha.1350540914",
34
+ "@applicaster/applicaster-types": "13.0.5-alpha.8095597213",
35
+ "@applicaster/zapp-react-native-bridge": "13.0.5-alpha.8095597213",
36
+ "@applicaster/zapp-react-native-redux": "13.0.5-alpha.8095597213",
37
+ "@applicaster/zapp-react-native-utils": "13.0.5-alpha.8095597213",
38
38
  "promise": "^8.3.0",
39
39
  "react-router-native": "^5.1.2",
40
40
  "url": "^0.11.0",