@idealyst/navigation 1.0.88 → 1.0.89

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": "1.0.88",
3
+ "version": "1.0.89",
4
4
  "description": "Cross-platform navigation library for React and React Native",
5
5
  "readme": "README.md",
6
6
  "main": "src/index.ts",
@@ -43,8 +43,8 @@
43
43
  "publish:npm": "npm publish"
44
44
  },
45
45
  "peerDependencies": {
46
- "@idealyst/components": "^1.0.88",
47
- "@idealyst/theme": "^1.0.88",
46
+ "@idealyst/components": "^1.0.89",
47
+ "@idealyst/theme": "^1.0.89",
48
48
  "@react-navigation/bottom-tabs": ">=7.0.0",
49
49
  "@react-navigation/drawer": ">=7.0.0",
50
50
  "@react-navigation/native": ">=7.0.0",
@@ -60,16 +60,17 @@
60
60
  "react-router-dom": ">=6.0.0"
61
61
  },
62
62
  "devDependencies": {
63
- "@idealyst/components": "^1.0.88",
64
- "@idealyst/datagrid": "^1.0.88",
65
- "@idealyst/datepicker": "^1.0.88",
66
- "@idealyst/theme": "^1.0.88",
63
+ "@idealyst/components": "^1.0.89",
64
+ "@idealyst/datagrid": "^1.0.89",
65
+ "@idealyst/datepicker": "^1.0.89",
66
+ "@idealyst/theme": "^1.0.89",
67
67
  "@types/react": "^19.1.8",
68
68
  "@types/react-dom": "^19.1.6",
69
69
  "react": "^19.1.0",
70
70
  "react-native": "^0.80.1",
71
71
  "react-native-unistyles": "^3.0.10",
72
72
  "react-router": "7.9.1",
73
+ "react-router-dom": "7.9.1",
73
74
  "typescript": "^5.0.0"
74
75
  },
75
76
  "files": [
@@ -1,8 +1,8 @@
1
1
  import React from 'react'
2
2
  import { View, Text, Button, Icon } from '@idealyst/components'
3
3
  import { TabLayoutProps } from '../routing/types'
4
+ import { Outlet } from '../router'
4
5
  import { useNavigator } from '../context'
5
- import { Outlet } from 'react-router'
6
6
 
7
7
  export interface DefaultTabLayoutProps extends TabLayoutProps {}
8
8
 
@@ -1,3 +1,39 @@
1
- // Platform-specific exports will be used
2
- // This file exists for TypeScript resolution
3
- // The actual exports come from platform-specific files
1
+ // Export all React Router modules from a centralized location
2
+ // This prevents duplication issues when multiple packages need React Router
3
+
4
+ // Re-export everything from react-router-dom
5
+ // This includes all react-router exports plus the DOM-specific ones
6
+ import {
7
+ BrowserRouter,
8
+ HashRouter,
9
+ MemoryRouter,
10
+ Router,
11
+ useNavigate,
12
+ useLocation,
13
+ useParams,
14
+ useSearchParams,
15
+ Navigate,
16
+ Outlet,
17
+ Route,
18
+ Routes,
19
+ Link,
20
+ NavLink
21
+ } from 'react-router-dom'
22
+
23
+
24
+ export {
25
+ BrowserRouter,
26
+ HashRouter,
27
+ MemoryRouter,
28
+ Router,
29
+ useNavigate,
30
+ useLocation,
31
+ useParams,
32
+ useSearchParams,
33
+ Navigate,
34
+ Outlet,
35
+ Route,
36
+ Routes,
37
+ Link,
38
+ NavLink
39
+ };
@@ -3,4 +3,37 @@
3
3
 
4
4
  // Re-export everything from react-router-dom
5
5
  // This includes all react-router exports plus the DOM-specific ones
6
- export * from 'react-router-dom';
6
+ import {
7
+ BrowserRouter,
8
+ HashRouter,
9
+ MemoryRouter,
10
+ Router,
11
+ useNavigate,
12
+ useLocation,
13
+ useParams,
14
+ useSearchParams,
15
+ Navigate,
16
+ Outlet,
17
+ Route,
18
+ Routes,
19
+ Link,
20
+ NavLink
21
+ } from 'react-router-dom'
22
+
23
+
24
+ export {
25
+ BrowserRouter,
26
+ HashRouter,
27
+ MemoryRouter,
28
+ Router,
29
+ useNavigate,
30
+ useLocation,
31
+ useParams,
32
+ useSearchParams,
33
+ Navigate,
34
+ Outlet,
35
+ Route,
36
+ Routes,
37
+ Link,
38
+ NavLink
39
+ };