@idealyst/navigation 1.2.118 → 11.2.120
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@idealyst/navigation",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.2.120",
|
|
4
4
|
"description": "Cross-platform navigation library for React and React Native",
|
|
5
5
|
"readme": "README.md",
|
|
6
6
|
"main": "src/index.ts",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@idealyst/camera": "^1.2.30",
|
|
48
|
-
"@idealyst/components": "^
|
|
48
|
+
"@idealyst/components": "^11.2.120",
|
|
49
49
|
"@idealyst/microphone": "^1.2.30",
|
|
50
|
-
"@idealyst/theme": "^
|
|
50
|
+
"@idealyst/theme": "^11.2.120",
|
|
51
51
|
"@react-navigation/bottom-tabs": ">=7.0.0",
|
|
52
52
|
"@react-navigation/drawer": ">=7.0.0",
|
|
53
53
|
"@react-navigation/native": ">=7.0.0",
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
"@idealyst/animate": "^1.2.38",
|
|
75
75
|
"@idealyst/blur": "^1.2.40",
|
|
76
76
|
"@idealyst/camera": "^1.2.30",
|
|
77
|
-
"@idealyst/components": "^
|
|
77
|
+
"@idealyst/components": "^11.2.120",
|
|
78
78
|
"@idealyst/datagrid": "^1.2.30",
|
|
79
79
|
"@idealyst/datepicker": "^1.2.30",
|
|
80
80
|
"@idealyst/lottie": "^1.2.38",
|
|
81
|
-
"@idealyst/markdown": "^
|
|
81
|
+
"@idealyst/markdown": "^11.2.120",
|
|
82
82
|
"@idealyst/microphone": "^1.2.30",
|
|
83
|
-
"@idealyst/theme": "^
|
|
83
|
+
"@idealyst/theme": "^11.2.120",
|
|
84
84
|
"@types/react": "^19.1.8",
|
|
85
85
|
"@types/react-dom": "^19.1.6",
|
|
86
86
|
"react": "^19.1.0",
|
|
@@ -145,7 +145,9 @@ const parseParameterizedPath = (path: string, rootRoute: any): { routeName: stri
|
|
|
145
145
|
const routeSegments = route.path.split('/').filter(Boolean);
|
|
146
146
|
// Clean up path joining to avoid double slashes
|
|
147
147
|
const cleanPath = route.path.startsWith('/') ? route.path.slice(1) : route.path;
|
|
148
|
-
const
|
|
148
|
+
const joinedPath = pathPrefix ? `${pathPrefix}/${cleanPath}` : route.path;
|
|
149
|
+
// Normalize any double slashes (e.g. when pathPrefix is "/")
|
|
150
|
+
const fullRoutePath = joinedPath.replace(/\/\/+/g, '/');
|
|
149
151
|
|
|
150
152
|
// Check if route segments match the path segments at current position
|
|
151
153
|
const remainingSegments = segments.length - startIndex;
|
package/src/routing/types.ts
CHANGED
|
@@ -73,6 +73,10 @@ export type ScreenOptions = {
|
|
|
73
73
|
*/
|
|
74
74
|
title?: string;
|
|
75
75
|
headerShown?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Icon name for this screen (used by custom layout components like sidebars, drawers, etc.)
|
|
78
|
+
*/
|
|
79
|
+
icon?: string;
|
|
76
80
|
/**
|
|
77
81
|
* When true, renders the screen outside of parent layout wrappers.
|
|
78
82
|
* Useful for fullscreen modals, onboarding flows, or any screen that
|