@applicaster/zapp-react-native-ui-components 13.0.6-alpha.5144834334 → 13.0.6-alpha.9772124144

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.
@@ -15,7 +15,6 @@ import { AccessibilityManager } from "@applicaster/zapp-react-native-utils/appUt
15
15
  import { styles } from "./styles";
16
16
 
17
17
  type Props = {
18
- dataLength: number;
19
18
  item: ZappEntry;
20
19
  index: number;
21
20
  shouldScrollHorizontally: (arg1: [any]) => boolean | null | undefined;
@@ -71,8 +70,6 @@ type State = {
71
70
  };
72
71
 
73
72
  export class CellComponent extends React.Component<Props, State> {
74
- accessibilityManager: AccessibilityManager;
75
-
76
73
  constructor(props) {
77
74
  super(props);
78
75
  this.onPress = this.onPress.bind(this);
@@ -86,8 +83,6 @@ export class CellComponent extends React.Component<Props, State> {
86
83
  this.state = {
87
84
  hasFocusableInside: props.CellRenderer.hasFocusableInside?.(props.item),
88
85
  };
89
-
90
- this.accessibilityManager = AccessibilityManager.getInstance();
91
86
  }
92
87
 
93
88
  setScreenLayout(componentAnchorPointY, screenLayout) {
@@ -202,7 +197,6 @@ export class CellComponent extends React.Component<Props, State> {
202
197
  const {
203
198
  item,
204
199
  index,
205
- dataLength,
206
200
  component,
207
201
  offsetUpdater,
208
202
  preferredFocus,
@@ -263,22 +257,21 @@ export class CellComponent extends React.Component<Props, State> {
263
257
  style={styles.baseCell}
264
258
  isFocusable={isFocusable}
265
259
  skipFocusManagerRegistration={skipFocusManagerRegistration}
266
- {...this.accessibilityManager.getButtonAccessibilityProps(
267
- item?.extensions?.accessibility?.label || item?.title
268
- )}
269
260
  >
270
261
  {(focused, event) => {
271
262
  const isFocused = this.isCellFocused(focused);
272
263
 
273
264
  if (isFocused) {
265
+ const accessibilityManager = AccessibilityManager.getInstance();
266
+
274
267
  const accessibilityTitle =
275
268
  item?.extensions?.accessibility?.label || item?.title || "";
276
269
 
277
270
  const accessibilityHint =
278
271
  item?.extensions?.accessibility?.hint || "";
279
272
 
280
- this.accessibilityManager.readText({
281
- text: `item ${index + 1} of ${dataLength} ${accessibilityTitle} ${accessibilityHint}`,
273
+ accessibilityManager.readText({
274
+ text: `${accessibilityTitle} ${accessibilityHint}`,
282
275
  });
283
276
  }
284
277
 
@@ -5,7 +5,6 @@ import { BaseFocusable } from "../BaseFocusable";
5
5
  import { focusManager } from "@applicaster/zapp-react-native-utils/appUtils/focusManager";
6
6
  import { LONG_KEY_PRESS_TIMEOUT } from "@applicaster/quick-brick-core/const";
7
7
  import { withFocusableContext } from "../../Contexts/FocusableGroupContext/withFocusableContext";
8
- import { AccessibilityManager } from "@applicaster/zapp-react-native-utils/appUtils/accessibilityManager";
9
8
 
10
9
  type Props = {
11
10
  initialFocus?: boolean;
@@ -29,7 +28,6 @@ class Focusable extends BaseFocusable<Props> {
29
28
  isGroup: boolean;
30
29
  mouse: boolean;
31
30
  longPressTimeout = null;
32
- accessibilityManager: AccessibilityManager;
33
31
 
34
32
  constructor(props) {
35
33
  super(props);
@@ -44,8 +42,6 @@ class Focusable extends BaseFocusable<Props> {
44
42
  this.resetLongPressTimeout = this.resetLongPressTimeout.bind(this);
45
43
  this.longPress = this.longPress.bind(this);
46
44
  this.press = this.press.bind(this);
47
-
48
- this.accessibilityManager = AccessibilityManager.getInstance();
49
45
  }
50
46
 
51
47
  /**
@@ -132,9 +128,6 @@ class Focusable extends BaseFocusable<Props> {
132
128
  const id = this.getId();
133
129
  const focusableId = `focusable-${id}`;
134
130
 
135
- const accessibilityProps =
136
- this.accessibilityManager.getWebAccessibilityProps(this.props);
137
-
138
131
  return (
139
132
  <div
140
133
  id={focusableId}
@@ -147,7 +140,6 @@ class Focusable extends BaseFocusable<Props> {
147
140
  data-testid={focusableId}
148
141
  focused-teststate={focused ? "focused" : "default"}
149
142
  style={style}
150
- {...accessibilityProps}
151
143
  >
152
144
  {children(focused, { mouse: this.mouse })}
153
145
  </div>
@@ -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": "text",
10
- "accessible": true,
11
- "aria-description": "Enter text into Search",
12
- "aria-label": "Search",
13
- "aria-role": "text",
14
- "role": "text",
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.6-alpha.5144834334",
3
+ "version": "13.0.6-alpha.9772124144",
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.6-alpha.5144834334",
35
- "@applicaster/zapp-react-native-bridge": "13.0.6-alpha.5144834334",
36
- "@applicaster/zapp-react-native-redux": "13.0.6-alpha.5144834334",
37
- "@applicaster/zapp-react-native-utils": "13.0.6-alpha.5144834334",
34
+ "@applicaster/applicaster-types": "13.0.6-alpha.9772124144",
35
+ "@applicaster/zapp-react-native-bridge": "13.0.6-alpha.9772124144",
36
+ "@applicaster/zapp-react-native-redux": "13.0.6-alpha.9772124144",
37
+ "@applicaster/zapp-react-native-utils": "13.0.6-alpha.9772124144",
38
38
  "promise": "^8.3.0",
39
39
  "react-router-native": "^5.1.2",
40
40
  "url": "^0.11.0",