@applicaster/quick-brick-core 16.0.0-rc.111 → 16.0.0-rc.113
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.
|
@@ -183,6 +183,27 @@ export function getNavigationTarget(
|
|
|
183
183
|
data.entry = targetEntry;
|
|
184
184
|
}
|
|
185
185
|
|
|
186
|
+
if (data.entry && !data.screen) {
|
|
187
|
+
const entryType = (data.entry.type as ZappEntryType)?.value;
|
|
188
|
+
const mappedScreenId = contentTypes?.[entryType]?.screen_id;
|
|
189
|
+
|
|
190
|
+
const mappedRiver = mappedScreenId ? rivers?.[mappedScreenId] : undefined;
|
|
191
|
+
|
|
192
|
+
if (!mappedScreenId) {
|
|
193
|
+
logger.error({
|
|
194
|
+
message: `getNavigationTarget: mapped screen ID missing for content type "${entryType}". Check your types mapping or screen configuration.`,
|
|
195
|
+
data: { entry: data.entry },
|
|
196
|
+
});
|
|
197
|
+
} else if (!mappedRiver) {
|
|
198
|
+
logger.error({
|
|
199
|
+
message: `getNavigationTarget: cannot map screen ID "${mappedScreenId}" to a river. Check your types mapping or screen configuration.`,
|
|
200
|
+
data: { entry: data.entry, mappedScreenId },
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
data.screen = mappedRiver;
|
|
205
|
+
}
|
|
206
|
+
|
|
186
207
|
return data;
|
|
187
208
|
}
|
|
188
209
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/quick-brick-core",
|
|
3
|
-
"version": "16.0.0-rc.
|
|
3
|
+
"version": "16.0.0-rc.113",
|
|
4
4
|
"description": "Core package for Applicaster's Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://github.com/applicaster/quickbrick#readme",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@applicaster/applicaster-types": "16.0.0-rc.
|
|
32
|
-
"@applicaster/quick-brick-core-plugins": "16.0.0-rc.
|
|
33
|
-
"@applicaster/zapp-pipes-v2-client": "16.0.0-rc.
|
|
34
|
-
"@applicaster/zapp-react-native-bridge": "16.0.0-rc.
|
|
35
|
-
"@applicaster/zapp-react-native-redux": "16.0.0-rc.
|
|
36
|
-
"@applicaster/zapp-react-native-ui-components": "16.0.0-rc.
|
|
37
|
-
"@applicaster/zapp-react-native-utils": "16.0.0-rc.
|
|
31
|
+
"@applicaster/applicaster-types": "16.0.0-rc.113",
|
|
32
|
+
"@applicaster/quick-brick-core-plugins": "16.0.0-rc.113",
|
|
33
|
+
"@applicaster/zapp-pipes-v2-client": "16.0.0-rc.113",
|
|
34
|
+
"@applicaster/zapp-react-native-bridge": "16.0.0-rc.113",
|
|
35
|
+
"@applicaster/zapp-react-native-redux": "16.0.0-rc.113",
|
|
36
|
+
"@applicaster/zapp-react-native-ui-components": "16.0.0-rc.113",
|
|
37
|
+
"@applicaster/zapp-react-native-utils": "16.0.0-rc.113",
|
|
38
38
|
"atob": "^2.1.2",
|
|
39
39
|
"axios": "^0.28.0",
|
|
40
40
|
"btoa": "^1.2.1",
|