@applicaster/zapp-react-native-utils 13.0.0-rc.79 → 13.0.0-rc.80

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.
@@ -117,17 +117,25 @@ export const useIsFocusable = (props: Props): void => {
117
117
  isNilOrEmpty(zappPipesData?.data) ||
118
118
  isNilOrEmpty(zappPipesData?.data?.entry);
119
119
 
120
+ const hasNoUIComponents = isNilOrEmpty(component?.ui_components);
121
+
120
122
  const hasDataError = !!zappPipesData?.error;
121
123
 
122
124
  const hasEmptyGroup = shouldShowEmptyGroup(component);
123
125
 
124
126
  const isGallery = component?.component_type === "gallery-qb";
125
127
 
128
+ const isGroup = component?.component_type === "group-qb";
129
+
126
130
  const isHiddenDueToEmptyData =
127
131
  !isLoadingData && hasNoData && hideIfDataEmpty && !hasEmptyGroup;
128
132
 
133
+ const isEmptyGroup = isGroup && hasNoUIComponents;
134
+
129
135
  const defaultFocusableLogic =
130
- componentCellsFocusable && (!hasNoData || !hideIfDataEmpty);
136
+ componentCellsFocusable &&
137
+ (!hasNoData || !hideIfDataEmpty) &&
138
+ !isEmptyGroup;
131
139
 
132
140
  React.useEffect(() => {
133
141
  if (isAndroidTVPlatform()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-utils",
3
- "version": "13.0.0-rc.79",
3
+ "version": "13.0.0-rc.80",
4
4
  "description": "Applicaster Zapp React Native utilities package",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/applicaster/quickbrick#readme",
29
29
  "dependencies": {
30
- "@applicaster/applicaster-types": "13.0.0-rc.79",
30
+ "@applicaster/applicaster-types": "13.0.0-rc.80",
31
31
  "buffer": "^5.2.1",
32
32
  "camelize": "^1.0.0",
33
33
  "dayjs": "^1.11.10",