expo-router 4.0.0-preview.0 → 4.0.0-preview.10
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/build/ExpoRoot.d.ts.map +1 -1
- package/build/ExpoRoot.js +2 -0
- package/build/ExpoRoot.js.map +1 -1
- package/build/exports.d.ts +2 -2
- package/build/exports.d.ts.map +1 -1
- package/build/exports.js.map +1 -1
- package/build/fork/createMemoryHistory.d.ts +1 -1
- package/build/fork/createMemoryHistory.d.ts.map +1 -1
- package/build/fork/createMemoryHistory.js.map +1 -1
- package/build/fork/extractPathFromURL.d.ts.map +1 -1
- package/build/fork/extractPathFromURL.js +10 -1
- package/build/fork/extractPathFromURL.js.map +1 -1
- package/build/fork/useBackButton.d.ts +1 -1
- package/build/fork/useBackButton.d.ts.map +1 -1
- package/build/fork/useBackButton.js.map +1 -1
- package/build/fork/useBackButton.native.d.ts +1 -1
- package/build/fork/useBackButton.native.d.ts.map +1 -1
- package/build/fork/useBackButton.native.js.map +1 -1
- package/build/fork/useDocumentTitle.d.ts +1 -2
- package/build/fork/useDocumentTitle.d.ts.map +1 -1
- package/build/fork/useDocumentTitle.js.map +1 -1
- package/build/fork/useLinking.d.ts +5 -6
- package/build/fork/useLinking.d.ts.map +1 -1
- package/build/fork/useLinking.js +6 -6
- package/build/fork/useLinking.js.map +1 -1
- package/build/fork/useLinking.native.d.ts +5 -5
- package/build/fork/useLinking.native.d.ts.map +1 -1
- package/build/fork/useLinking.native.js +3 -3
- package/build/fork/useLinking.native.js.map +1 -1
- package/build/getRoutesCore.js +22 -4
- package/build/getRoutesCore.js.map +1 -1
- package/build/global-state/router-store.d.ts +1 -0
- package/build/global-state/router-store.d.ts.map +1 -1
- package/build/global-state/router-store.js +2 -0
- package/build/global-state/router-store.js.map +1 -1
- package/build/global-state/routing.d.ts +1 -0
- package/build/global-state/routing.d.ts.map +1 -1
- package/build/global-state/routing.js +33 -1
- package/build/global-state/routing.js.map +1 -1
- package/build/head/ExpoHead.ios.js +2 -2
- package/build/head/ExpoHead.ios.js.map +1 -1
- package/build/hooks.d.ts.map +1 -1
- package/build/hooks.js +2 -1
- package/build/hooks.js.map +1 -1
- package/build/imperative-api.d.ts +5 -0
- package/build/imperative-api.d.ts.map +1 -1
- package/build/imperative-api.js +1 -0
- package/build/imperative-api.js.map +1 -1
- package/build/layouts/Stack.d.ts.map +1 -1
- package/build/layouts/Stack.js +1 -0
- package/build/layouts/Stack.js.map +1 -1
- package/build/layouts/Tabs.d.ts +8 -0
- package/build/layouts/Tabs.d.ts.map +1 -1
- package/build/layouts/Tabs.js +1 -0
- package/build/layouts/Tabs.js.map +1 -1
- package/build/layouts/withLayoutContext.d.ts +2 -2
- package/build/layouts/withLayoutContext.d.ts.map +1 -1
- package/build/layouts/withLayoutContext.js +3 -6
- package/build/layouts/withLayoutContext.js.map +1 -1
- package/build/link/Link.d.ts.map +1 -1
- package/build/link/Link.js +1 -0
- package/build/link/Link.js.map +1 -1
- package/build/link/useDomComponentNavigation.d.ts +9 -0
- package/build/link/useDomComponentNavigation.d.ts.map +1 -0
- package/build/link/useDomComponentNavigation.js +69 -0
- package/build/link/useDomComponentNavigation.js.map +1 -0
- package/build/link/useLinkToPathProps.d.ts.map +1 -1
- package/build/link/useLinkToPathProps.js +4 -0
- package/build/link/useLinkToPathProps.js.map +1 -1
- package/build/primitives.js +3 -3
- package/build/primitives.js.map +1 -1
- package/build/rsc/router/client.d.ts +0 -1
- package/build/rsc/router/client.d.ts.map +1 -1
- package/build/rsc/router/client.js +1 -1
- package/build/rsc/router/client.js.map +1 -1
- package/build/rsc/router/noopRouter.d.ts +7 -0
- package/build/rsc/router/noopRouter.d.ts.map +1 -0
- package/build/rsc/router/noopRouter.js +7 -0
- package/build/rsc/router/noopRouter.js.map +1 -0
- package/build/useFocusEffect.d.ts.map +1 -1
- package/build/useFocusEffect.js +1 -0
- package/build/useFocusEffect.js.map +1 -1
- package/build/useNavigation.d.ts.map +1 -1
- package/build/useNavigation.js +1 -0
- package/build/useNavigation.js.map +1 -1
- package/build/useScreens.d.ts.map +1 -1
- package/build/useScreens.js +1 -0
- package/build/useScreens.js.map +1 -1
- package/build/utils/url.js +2 -2
- package/build/utils/url.js.map +1 -1
- package/build/views/Splash.d.ts.map +1 -1
- package/build/views/Splash.js +1 -0
- package/build/views/Splash.js.map +1 -1
- package/entry-classic.js +6 -0
- package/package.json +10 -8
- package/plugin/build/index.js +3 -1
- package/ui.d.ts +1 -0
- package/ui.js +1 -0
package/build/views/Splash.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Splash.js","sourceRoot":"","sources":["../../src/views/Splash.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Splash.js","sourceRoot":"","sources":["../../src/views/Splash.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;AACb,mEAAmD","sourcesContent":["'use client';\nexport * as SplashScreen from 'expo-splash-screen';\n"]}
|
package/entry-classic.js
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
// on web.
|
|
3
3
|
import '@expo/metro-runtime';
|
|
4
4
|
|
|
5
|
+
// Hook for the virtual client modules.
|
|
6
|
+
// TODO: Remove this in favor of the webpack runtime one.
|
|
7
|
+
import 'expo-router/virtual-client-boundaries';
|
|
8
|
+
// Add server component support.
|
|
9
|
+
import 'expo-router/build/rsc/runtime';
|
|
10
|
+
|
|
5
11
|
import { App } from 'expo-router/build/qualified-entry';
|
|
6
12
|
import { renderRootComponent } from 'expo-router/build/renderRootComponent';
|
|
7
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-router",
|
|
3
|
-
"version": "4.0.0-preview.
|
|
3
|
+
"version": "4.0.0-preview.10",
|
|
4
4
|
"description": "Expo Router is a file-based router for React Native and web applications.",
|
|
5
5
|
"author": "650 Industries, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,6 +44,8 @@
|
|
|
44
44
|
"server.d.ts",
|
|
45
45
|
"tabs.js",
|
|
46
46
|
"tabs.d.ts",
|
|
47
|
+
"ui.js",
|
|
48
|
+
"ui.d.ts",
|
|
47
49
|
"testing-library.js",
|
|
48
50
|
"testing-library.d.ts",
|
|
49
51
|
"_async-server-import.js"
|
|
@@ -72,7 +74,7 @@
|
|
|
72
74
|
"expo"
|
|
73
75
|
],
|
|
74
76
|
"peerDependencies": {
|
|
75
|
-
"@react-navigation/drawer": "7.0.0-rc.
|
|
77
|
+
"@react-navigation/drawer": "7.0.0-rc.33",
|
|
76
78
|
"expo": "*",
|
|
77
79
|
"expo-constants": "*",
|
|
78
80
|
"expo-linking": "*",
|
|
@@ -92,7 +94,7 @@
|
|
|
92
94
|
}
|
|
93
95
|
},
|
|
94
96
|
"devDependencies": {
|
|
95
|
-
"@react-navigation/drawer": "7.0.0-rc.
|
|
97
|
+
"@react-navigation/drawer": "7.0.0-rc.33",
|
|
96
98
|
"@testing-library/jest-native": "^5.4.2",
|
|
97
99
|
"@testing-library/react": "^15.0.7",
|
|
98
100
|
"@testing-library/react-native": "^12.5.1",
|
|
@@ -104,15 +106,15 @@
|
|
|
104
106
|
"@expo/metro-runtime": "4.0.0-preview.0",
|
|
105
107
|
"@expo/server": "^0.5.0-preview.0",
|
|
106
108
|
"@radix-ui/react-slot": "1.0.1",
|
|
107
|
-
"@react-navigation/bottom-tabs": "7.0.0-rc.
|
|
108
|
-
"@react-navigation/native": "7.0.0-rc.
|
|
109
|
-
"@react-navigation/native-stack": "7.0.0-rc.
|
|
109
|
+
"@react-navigation/bottom-tabs": "7.0.0-rc.36",
|
|
110
|
+
"@react-navigation/native": "7.0.0-rc.21",
|
|
111
|
+
"@react-navigation/native-stack": "7.0.0-rc.30",
|
|
110
112
|
"client-only": "^0.0.1",
|
|
111
|
-
"expo-splash-screen": "0.
|
|
113
|
+
"expo-splash-screen": "0.29.0",
|
|
112
114
|
"react-helmet-async": "^1.3.0",
|
|
113
115
|
"react-native-helmet-async": "2.0.4",
|
|
114
116
|
"schema-utils": "^4.0.1",
|
|
115
117
|
"server-only": "^0.0.1"
|
|
116
118
|
},
|
|
117
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "a1e9c35ea13fa802878d5f3132a25174a4a56d35"
|
|
118
120
|
}
|
package/plugin/build/index.js
CHANGED
|
@@ -31,7 +31,9 @@ const withRouter = (config, _props) => {
|
|
|
31
31
|
...config.extra,
|
|
32
32
|
router: {
|
|
33
33
|
// RSC enables location origin by default because it's required for requests.
|
|
34
|
-
origin: config.experiments?.reactServerComponents
|
|
34
|
+
origin: config.experiments?.reactServerComponents || config.experiments?.reactServerActions
|
|
35
|
+
? undefined
|
|
36
|
+
: false,
|
|
35
37
|
...config.extra?.router,
|
|
36
38
|
...props,
|
|
37
39
|
},
|
package/ui.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './build/ui';
|
package/ui.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './build/ui';
|