@applicaster/zapp-react-native-ui-components 13.0.22 → 13.0.23-rc.1

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.
@@ -31,6 +31,7 @@ type Feeds = Record<string, ZappPipesData>;
31
31
 
32
32
  type LayoutPresets = PresetsMapping["presets_mappings"];
33
33
 
34
+ const TABS_SCREEN_TYPE = "tabs_screen";
34
35
  const SMART_COMPONENT_TYPE = "quick-brick-smart-component";
35
36
  const SOURCE_PATH = ["data", "source"];
36
37
  const MAPPING_PATH = ["data", "mapping"];
@@ -127,10 +128,16 @@ export const useCurationAPI = (
127
128
  );
128
129
 
129
130
  const { pathname } = useRoute();
130
- const [entryContext] = ZappPipesEntryContext.useZappPipesContext(pathname);
131
131
  const [searchContext] = ZappPipesSearchContext.useZappPipesContext();
132
132
  const [screenContext] = ZappPipesScreenContext.useZappPipesContext();
133
133
 
134
+ const isNestedScreen = screenContext?.type === TABS_SCREEN_TYPE;
135
+
136
+ const [entryContext] = ZappPipesEntryContext.useZappPipesContext(
137
+ pathname,
138
+ isNestedScreen
139
+ );
140
+
134
141
  const urlsMap = useMemo<{ [key: string]: string }>(() => {
135
142
  const map = {};
136
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "13.0.22",
3
+ "version": "13.0.23-rc.1",
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.22",
35
- "@applicaster/zapp-react-native-bridge": "13.0.22",
36
- "@applicaster/zapp-react-native-redux": "13.0.22",
37
- "@applicaster/zapp-react-native-utils": "13.0.22",
34
+ "@applicaster/applicaster-types": "13.0.23-rc.1",
35
+ "@applicaster/zapp-react-native-bridge": "13.0.23-rc.1",
36
+ "@applicaster/zapp-react-native-redux": "13.0.23-rc.1",
37
+ "@applicaster/zapp-react-native-utils": "13.0.23-rc.1",
38
38
  "promise": "^8.3.0",
39
39
  "react-router-native": "^5.1.2",
40
40
  "url": "^0.11.0",