@applicaster/zapp-react-native-utils 12.0.26-alpha.1924541134 → 12.0.26-alpha.2304358952

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.
@@ -140,12 +140,15 @@ export class AccessibilityManager {
140
140
 
141
141
  if (!buttonConfig) {
142
142
  return {
143
+ accessible: true,
143
144
  accessibilityLabel: buttonName,
144
145
  accessibilityHint: `Press button to perform action on ${buttonName}`,
145
146
  "aria-label": buttonName,
146
147
  "aria-description": `Press button to perform action on ${buttonName}`,
147
148
  accessibilityRole: "button" as AccessibilityRole,
148
149
  "aria-role": "button",
150
+ role: "button",
151
+ tabindex: 0,
149
152
  };
150
153
  }
151
154
 
@@ -159,23 +162,29 @@ export class AccessibilityManager {
159
162
  `Press button to perform action on ${buttonName}`;
160
163
 
161
164
  return {
165
+ accessible: true,
162
166
  accessibilityLabel: label,
163
167
  accessibilityHint: hint,
164
168
  "aria-label": label,
165
169
  "aria-description": hint,
166
170
  accessibilityRole: "button" as AccessibilityRole,
167
171
  "aria-role": "button",
172
+ role: "button",
173
+ tabindex: 0,
168
174
  };
169
175
  }
170
176
 
171
177
  public getInputAccessibilityProps(inputName: string): AccessibilityProps {
172
178
  return {
179
+ accessible: true,
173
180
  accessibilityLabel: inputName,
174
181
  accessibilityHint: `Enter text into ${inputName}`,
175
182
  "aria-label": inputName,
176
183
  "aria-description": `Enter text into ${inputName}`,
177
184
  accessibilityRole: "textbox" as AccessibilityRole,
178
185
  "aria-role": "textbox",
186
+ role: "textbox",
187
+ tabindex: 0,
179
188
  };
180
189
  }
181
190
 
package/index.d.ts CHANGED
@@ -139,10 +139,13 @@ declare type AccessibilityState = {
139
139
  };
140
140
 
141
141
  declare type AccessibilityProps = {
142
+ accessible?: boolean;
142
143
  accessibilityLabel?: string;
143
144
  accessibilityHint?: string;
144
145
  "aria-label"?: string;
145
146
  "aria-description"?: string;
146
147
  accessibilityRole?: string;
147
148
  "aria-role"?: string;
149
+ role?: string;
150
+ tabindex?: number;
148
151
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "12.0.26-alpha.1924541134",
3
+ "version": "12.0.26-alpha.2304358952",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "homepage": "https://github.com/applicaster/quickbrick#readme",
30
30
  "dependencies": {
31
- "@applicaster/applicaster-types": "12.0.26-alpha.1924541134",
31
+ "@applicaster/applicaster-types": "12.0.26-alpha.2304358952",
32
32
  "buffer": "^5.2.1",
33
33
  "camelize": "^1.0.0",
34
34
  "create-react-context": "^0.2.3",
@@ -31,6 +31,7 @@ import { useConnectionInfo } from "../connection";
31
31
  import { getTargetScreenData } from "../screen/useTargetScreenData";
32
32
 
33
33
  import { isTV, isWeb } from "@applicaster/zapp-react-native-utils/reactUtils";
34
+ import { ROUTE_TYPES } from "@applicaster/zapp-react-native-utils/navigationUtils/routeTypes";
34
35
  import { useNavbarState } from "../screen";
35
36
  import { useNavigation } from "./useNavigation";
36
37
  import { useModalStore } from "../../modalState";
@@ -447,11 +448,14 @@ export const useIsScreenActive = () => {
447
448
  const pathname = usePathname();
448
449
  const { currentRoute, videoModalState } = useNavigation();
449
450
 
450
- if (
451
- videoModalState.visible &&
452
- ["FULLSCREEN", "MAXIMIZED", "PIP"].includes(videoModalState.mode)
453
- ) {
454
- return false;
451
+ if (videoModalState.visible) {
452
+ if (pathname.includes(ROUTE_TYPES.VIDEO_MODAL)) {
453
+ return true;
454
+ }
455
+
456
+ if (["FULLSCREEN", "MAXIMIZED", "PIP"].includes(videoModalState.mode)) {
457
+ return false;
458
+ }
455
459
  }
456
460
 
457
461
  return pathname === currentRoute;