@applicaster/zapp-react-native-ui-components 15.0.0-rc.83 → 15.0.0-rc.85

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.
@@ -9,10 +9,9 @@ import {
9
9
  import { isEmptyOrNil } from "@applicaster/zapp-react-native-utils/cellUtils";
10
10
  import { Categories } from "./logger";
11
11
  import { createLogger } from "@applicaster/zapp-react-native-utils/logger";
12
- import { useRoute } from "@applicaster/zapp-react-native-utils/reactHooks/navigation/useRoute";
12
+ import { useScreenContext } from "@applicaster/zapp-react-native-utils/reactHooks/screen/useScreenContext";
13
13
 
14
14
  import {
15
- ZappPipesEntryContext,
16
15
  ZappPipesScreenContext,
17
16
  ZappPipesSearchContext,
18
17
  } from "@applicaster/zapp-react-native-ui-components/Contexts";
@@ -136,7 +135,6 @@ export const useCurationAPI = (
136
135
  [components]
137
136
  );
138
137
 
139
- const { pathname } = useRoute();
140
138
  const [searchContext] = ZappPipesSearchContext.useZappPipesContext();
141
139
  const [screenContext] = ZappPipesScreenContext.useZappPipesContext();
142
140
 
@@ -146,10 +144,12 @@ export const useCurationAPI = (
146
144
  screenContextType === TABS_SCREEN_TYPE ||
147
145
  screenContextType === QB_TABS_SCREEN_TYPE;
148
146
 
149
- const [entryContext] = ZappPipesEntryContext.useZappPipesContext(
150
- pathname,
151
- isNestedScreen
152
- );
147
+ const screenContextData = useScreenContext();
148
+
149
+ const entryContext = ((isNestedScreen && screenContextData?.nested?.entry
150
+ ? screenContextData?.nested?.entry
151
+ : (screenContextData?.entry?.payload ?? screenContextData?.entry)) ||
152
+ {}) as ZappEntry;
153
153
 
154
154
  const urlsMap = useMemo<{ [key: string]: string }>(() => {
155
155
  const map = {};
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.83",
3
+ "version": "15.0.0-rc.85",
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.83",
32
- "@applicaster/zapp-react-native-bridge": "15.0.0-rc.83",
33
- "@applicaster/zapp-react-native-redux": "15.0.0-rc.83",
34
- "@applicaster/zapp-react-native-utils": "15.0.0-rc.83",
31
+ "@applicaster/applicaster-types": "15.0.0-rc.85",
32
+ "@applicaster/zapp-react-native-bridge": "15.0.0-rc.85",
33
+ "@applicaster/zapp-react-native-redux": "15.0.0-rc.85",
34
+ "@applicaster/zapp-react-native-utils": "15.0.0-rc.85",
35
35
  "fast-json-stable-stringify": "^2.1.0",
36
36
  "promise": "^8.3.0",
37
37
  "url": "^0.11.0",