@applicaster/zapp-react-native-ui-components 15.0.0-rc.57 → 15.0.0-rc.59
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.
|
@@ -35,6 +35,7 @@ type Feeds = Record<string, ZappPipesData>;
|
|
|
35
35
|
|
|
36
36
|
type LayoutPresets = PresetsMapping["presets_mappings"];
|
|
37
37
|
|
|
38
|
+
const TABS_SCREEN_TYPE = "tabs_screen";
|
|
38
39
|
const SMART_COMPONENT_TYPE = "quick-brick-smart-component";
|
|
39
40
|
const SOURCE_PATH = ["data", "source"];
|
|
40
41
|
const MAPPING_PATH = ["data", "mapping"];
|
|
@@ -131,10 +132,16 @@ export const useCurationAPI = (
|
|
|
131
132
|
);
|
|
132
133
|
|
|
133
134
|
const { pathname } = useRoute();
|
|
134
|
-
const [entryContext] = ZappPipesEntryContext.useZappPipesContext(pathname);
|
|
135
135
|
const [searchContext] = ZappPipesSearchContext.useZappPipesContext();
|
|
136
136
|
const [screenContext] = ZappPipesScreenContext.useZappPipesContext();
|
|
137
137
|
|
|
138
|
+
const isNestedScreen = screenContext?.type === TABS_SCREEN_TYPE;
|
|
139
|
+
|
|
140
|
+
const [entryContext] = ZappPipesEntryContext.useZappPipesContext(
|
|
141
|
+
pathname,
|
|
142
|
+
isNestedScreen
|
|
143
|
+
);
|
|
144
|
+
|
|
138
145
|
const urlsMap = useMemo<{ [key: string]: string }>(() => {
|
|
139
146
|
const map = {};
|
|
140
147
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "15.0.0-rc.
|
|
3
|
+
"version": "15.0.0-rc.59",
|
|
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",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "15.0.0-rc.
|
|
32
|
-
"@applicaster/zapp-react-native-bridge": "15.0.0-rc.
|
|
33
|
-
"@applicaster/zapp-react-native-redux": "15.0.0-rc.
|
|
34
|
-
"@applicaster/zapp-react-native-utils": "15.0.0-rc.
|
|
31
|
+
"@applicaster/applicaster-types": "15.0.0-rc.59",
|
|
32
|
+
"@applicaster/zapp-react-native-bridge": "15.0.0-rc.59",
|
|
33
|
+
"@applicaster/zapp-react-native-redux": "15.0.0-rc.59",
|
|
34
|
+
"@applicaster/zapp-react-native-utils": "15.0.0-rc.59",
|
|
35
35
|
"fast-json-stable-stringify": "^2.1.0",
|
|
36
36
|
"promise": "^8.3.0",
|
|
37
37
|
"url": "^0.11.0",
|