one 1.1.547-1762219526973 → 1.1.547-1762236328455
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/dist/cjs/cli/build.cjs +7 -7
- package/dist/cjs/cli/build.js +1 -1
- package/dist/cjs/cli/build.js.map +1 -1
- package/dist/cjs/cli/build.native.js +7 -7
- package/dist/cjs/cli/build.native.js.map +1 -1
- package/dist/cjs/cli/buildPage.cjs +2 -2
- package/dist/cjs/cli/buildPage.js +1 -1
- package/dist/cjs/cli/buildPage.js.map +1 -1
- package/dist/cjs/cli/buildPage.native.js +2 -2
- package/dist/cjs/cli/buildPage.native.js.map +1 -1
- package/dist/cjs/cli.cjs +4 -4
- package/dist/cjs/cli.js +1 -1
- package/dist/cjs/cli.js.map +1 -1
- package/dist/cjs/cli.native.js +4 -4
- package/dist/cjs/cli.native.js.map +1 -1
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/constants.native.js.map +1 -1
- package/dist/cjs/createApp.cjs +3 -3
- package/dist/cjs/createApp.js +1 -1
- package/dist/cjs/createApp.js.map +1 -1
- package/dist/cjs/fallbackViews/Sitemap.js.map +1 -1
- package/dist/cjs/fallbackViews/Sitemap.native.js.map +1 -1
- package/dist/cjs/fork/NavigationContainer.cjs +1 -1
- package/dist/cjs/fork/NavigationContainer.js +1 -1
- package/dist/cjs/fork/NavigationContainer.js.map +1 -1
- package/dist/cjs/fork/NavigationContainer.native.js +1 -1
- package/dist/cjs/fork/NavigationContainer.native.js.map +1 -1
- package/dist/cjs/fork/__tests__/getStateFromPath.test.cjs +2 -2
- package/dist/cjs/fork/__tests__/getStateFromPath.test.js +1 -1
- package/dist/cjs/fork/__tests__/getStateFromPath.test.js.map +1 -1
- package/dist/cjs/fork/__tests__/getStateFromPath.test.native.js +2 -2
- package/dist/cjs/fork/__tests__/getStateFromPath.test.native.js.map +1 -1
- package/dist/cjs/fork/getPathFromState.cjs +2 -2
- package/dist/cjs/fork/getPathFromState.js +1 -1
- package/dist/cjs/fork/getPathFromState.js.map +1 -1
- package/dist/cjs/fork/getPathFromState.native.js +2 -2
- package/dist/cjs/fork/getPathFromState.native.js.map +1 -1
- package/dist/cjs/fork/getPathFromState.test.js.map +1 -1
- package/dist/cjs/fork/getPathFromState.test.native.js.map +1 -1
- package/dist/cjs/fork/getStateFromPath.cjs +2 -2
- package/dist/cjs/fork/getStateFromPath.js +1 -1
- package/dist/cjs/fork/getStateFromPath.js.map +1 -1
- package/dist/cjs/fork/getStateFromPath.native.js +2 -2
- package/dist/cjs/fork/getStateFromPath.native.js.map +1 -1
- package/dist/cjs/fork/useBackButton.js.map +1 -1
- package/dist/cjs/fork/useDocumentTitle.js.map +1 -1
- package/dist/cjs/fork/useLinking.cjs +1 -1
- package/dist/cjs/fork/useLinking.js +1 -1
- package/dist/cjs/fork/useLinking.js.map +1 -1
- package/dist/cjs/fork/useLinking.native.js.map +1 -1
- package/dist/cjs/fork/validatePathConfig.js.map +1 -1
- package/dist/cjs/fork/validatePathConfig.native.js.map +1 -1
- package/dist/cjs/head/Head.ios.js +5 -5
- package/dist/cjs/head/Head.ios.js.map +1 -1
- package/dist/cjs/hooks.cjs +4 -2
- package/dist/cjs/hooks.js +2 -9
- package/dist/cjs/hooks.js.map +1 -1
- package/dist/cjs/hooks.native.js +5 -4
- package/dist/cjs/hooks.native.js.map +1 -1
- package/dist/cjs/index.cjs +23 -24
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/index.native.js +22 -23
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/layouts/Tabs.native.js +1 -1
- package/dist/cjs/layouts/withLayoutContext.cjs +4 -4
- package/dist/cjs/layouts/withLayoutContext.js +7 -5
- package/dist/cjs/layouts/withLayoutContext.js.map +1 -1
- package/dist/cjs/layouts/withLayoutContext.native.js +10 -5
- package/dist/cjs/layouts/withLayoutContext.native.js.map +1 -1
- package/dist/cjs/link/useLinkTo.cjs +2 -2
- package/dist/cjs/link/useLinkTo.js +1 -1
- package/dist/cjs/link/useLinkTo.js.map +1 -1
- package/dist/cjs/link/useLinkTo.native.js +2 -2
- package/dist/cjs/link/useLinkTo.native.js.map +1 -1
- package/dist/cjs/metro-config/getViteMetroPluginOptions.cjs +1 -1
- package/dist/cjs/metro-config/getViteMetroPluginOptions.js +1 -1
- package/dist/cjs/metro-config/getViteMetroPluginOptions.js.map +1 -1
- package/dist/cjs/metro-config/getViteMetroPluginOptions.native.js +1 -1
- package/dist/cjs/metro-config/getViteMetroPluginOptions.native.js.map +1 -1
- package/dist/cjs/polyfills-mobile.cjs +1 -3
- package/dist/cjs/polyfills-mobile.js +1 -2
- package/dist/cjs/polyfills-mobile.js.map +1 -1
- package/dist/cjs/polyfills-mobile.native.js +1 -3
- package/dist/cjs/polyfills-mobile.native.js.map +1 -1
- package/dist/cjs/render.cjs +3 -2
- package/dist/cjs/render.js +3 -2
- package/dist/cjs/render.js.map +1 -1
- package/dist/cjs/router/RouteInfoContext.cjs +3 -3
- package/dist/cjs/router/RouteInfoContext.js +2 -2
- package/dist/cjs/router/RouteInfoContext.js.map +1 -1
- package/dist/cjs/router/RouteInfoContext.native.js +2 -2
- package/dist/cjs/router/RouteInfoContext.native.js.map +1 -1
- package/dist/cjs/router/filterRootHTML.cjs +16 -10
- package/dist/cjs/router/filterRootHTML.js +10 -4
- package/dist/cjs/router/filterRootHTML.js.map +1 -1
- package/dist/cjs/router/filterRootHTML.native.js +16 -10
- package/dist/cjs/router/filterRootHTML.native.js.map +1 -1
- package/dist/cjs/router/getLinkingConfig.js.map +1 -1
- package/dist/cjs/router/imperative-api.js.map +1 -1
- package/dist/cjs/router/imperative-api.native.js.map +1 -1
- package/dist/cjs/router/matchers.cjs +2 -2
- package/dist/cjs/router/matchers.js +2 -2
- package/dist/cjs/router/matchers.js.map +1 -1
- package/dist/cjs/router/matchers.native.js +2 -2
- package/dist/cjs/router/matchers.native.js.map +1 -1
- package/dist/cjs/router/sortRoutes.js.map +1 -1
- package/dist/cjs/router/sortRoutes.native.js.map +1 -1
- package/dist/cjs/router/useInitializeOneRouter.cjs +2 -2
- package/dist/cjs/router/useInitializeOneRouter.js +1 -1
- package/dist/cjs/router/useInitializeOneRouter.js.map +1 -1
- package/dist/cjs/router/useInitializeOneRouter.native.js +1 -1
- package/dist/cjs/router/useInitializeOneRouter.native.js.map +1 -1
- package/dist/cjs/router/useScreens.js.map +1 -1
- package/dist/cjs/router/useViteRoutes.cjs +1 -1
- package/dist/cjs/router/useViteRoutes.js +1 -1
- package/dist/cjs/router/useViteRoutes.js.map +1 -1
- package/dist/cjs/router/useViteRoutes.native.js +1 -1
- package/dist/cjs/router/useViteRoutes.native.js.map +1 -1
- package/dist/cjs/router/utils/getNavigateAction.cjs +2 -2
- package/dist/cjs/router/utils/getNavigateAction.js +1 -1
- package/dist/cjs/router/utils/getNavigateAction.js.map +1 -1
- package/dist/cjs/router/utils/getNavigateAction.native.js +2 -2
- package/dist/cjs/router/utils/getNavigateAction.native.js.map +1 -1
- package/dist/cjs/server/ServerContextScript.native.js +2 -2
- package/dist/cjs/server/createRoutesManifest.js.map +1 -1
- package/dist/cjs/server/createRoutesManifest.native.js.map +1 -1
- package/dist/cjs/server/getServerManifest.js.map +1 -1
- package/dist/cjs/server/getServerManifest.native.js.map +1 -1
- package/dist/cjs/server/oneServe.cjs +5 -5
- package/dist/cjs/server/oneServe.js +1 -1
- package/dist/cjs/server/oneServe.js.map +1 -1
- package/dist/cjs/server/oneServe.native.js +5 -5
- package/dist/cjs/server/oneServe.native.js.map +1 -1
- package/dist/cjs/server-render.js.map +1 -1
- package/dist/cjs/server-render.native.js.map +1 -1
- package/dist/cjs/testing-utils.cjs +2 -2
- package/dist/cjs/testing-utils.js +1 -1
- package/dist/cjs/testing-utils.js.map +1 -1
- package/dist/cjs/testing-utils.native.js +1 -1
- package/dist/cjs/testing-utils.native.js.map +1 -1
- package/dist/cjs/typed-routes/generateRouteTypes.cjs +2 -2
- package/dist/cjs/typed-routes/generateRouteTypes.js +1 -1
- package/dist/cjs/typed-routes/generateRouteTypes.js.map +1 -1
- package/dist/cjs/typed-routes/generateRouteTypes.native.js +2 -2
- package/dist/cjs/typed-routes/generateRouteTypes.native.js.map +1 -1
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.cjs +3 -1
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.js +1 -0
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.js.map +1 -1
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.native.js +3 -1
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.native.js.map +1 -1
- package/dist/cjs/utils/getPathnameFromFilePath.cjs +1 -1
- package/dist/cjs/utils/getPathnameFromFilePath.js +1 -1
- package/dist/cjs/utils/getPathnameFromFilePath.js.map +1 -1
- package/dist/cjs/utils/getPathnameFromFilePath.native.js +1 -1
- package/dist/cjs/utils/isRolldown.js.map +1 -1
- package/dist/cjs/utils/redirect.js.map +1 -1
- package/dist/cjs/utils/redirect.native.js.map +1 -1
- package/dist/cjs/utils/removeSearch.cjs +1 -1
- package/dist/cjs/utils/removeSearch.js +1 -1
- package/dist/cjs/utils/removeSearch.js.map +1 -1
- package/dist/cjs/utils/removeSearch.native.js +1 -1
- package/dist/cjs/utils/removeSearch.native.js.map +1 -1
- package/dist/cjs/utils/useConstant.cjs +1 -1
- package/dist/cjs/utils/useConstant.js +1 -1
- package/dist/cjs/utils/useConstant.js.map +1 -1
- package/dist/cjs/utils/useConstant.native.js +1 -1
- package/dist/cjs/utils/useConstant.native.js.map +1 -1
- package/dist/cjs/vercel/build/buildVercelOutputDirectory.cjs +2 -2
- package/dist/cjs/vercel/build/buildVercelOutputDirectory.js +1 -1
- package/dist/cjs/vercel/build/buildVercelOutputDirectory.js.map +1 -1
- package/dist/cjs/vercel/build/buildVercelOutputDirectory.native.js +2 -2
- package/dist/cjs/vercel/build/buildVercelOutputDirectory.native.js.map +1 -1
- package/dist/cjs/vercel/build/generate/createApiServerlessFunction.cjs +4 -4
- package/dist/cjs/vercel/build/generate/createApiServerlessFunction.js +1 -1
- package/dist/cjs/vercel/build/generate/createApiServerlessFunction.js.map +1 -1
- package/dist/cjs/vercel/build/generate/createApiServerlessFunction.native.js +4 -4
- package/dist/cjs/vercel/build/generate/createApiServerlessFunction.native.js.map +1 -1
- package/dist/cjs/vercel/build/generate/createSsrServerlessFunction.cjs +2 -2
- package/dist/cjs/vercel/build/generate/createSsrServerlessFunction.js +1 -1
- package/dist/cjs/vercel/build/generate/createSsrServerlessFunction.js.map +1 -1
- package/dist/cjs/vercel/build/generate/createSsrServerlessFunction.native.js +2 -2
- package/dist/cjs/vercel/build/generate/createSsrServerlessFunction.native.js.map +1 -1
- package/dist/cjs/views/Navigator.cjs +1 -1
- package/dist/cjs/views/Navigator.js +1 -1
- package/dist/cjs/views/Navigator.js.map +1 -1
- package/dist/cjs/views/Navigator.native.js +1 -1
- package/dist/cjs/views/Navigator.native.js.map +1 -1
- package/dist/cjs/views/PreloadLinks.cjs +2 -2
- package/dist/cjs/views/PreloadLinks.js +1 -1
- package/dist/cjs/views/PreloadLinks.js.map +1 -1
- package/dist/cjs/vite/findDepsToOptimize.cjs +4 -6
- package/dist/cjs/vite/findDepsToOptimize.js +1 -2
- package/dist/cjs/vite/findDepsToOptimize.js.map +1 -1
- package/dist/cjs/vite/findDepsToOptimize.native.js +4 -6
- package/dist/cjs/vite/findDepsToOptimize.native.js.map +1 -1
- package/dist/cjs/vite/one.cjs +3 -4
- package/dist/cjs/vite/one.js +1 -2
- package/dist/cjs/vite/one.js.map +1 -1
- package/dist/cjs/vite/one.native.js +3 -4
- package/dist/cjs/vite/one.native.js.map +1 -1
- package/dist/cjs/vite/plugins/clientTreeShakePlugin.cjs +2 -2
- package/dist/cjs/vite/plugins/clientTreeShakePlugin.js +1 -1
- package/dist/cjs/vite/plugins/clientTreeShakePlugin.js.map +1 -1
- package/dist/cjs/vite/plugins/clientTreeShakePlugin.native.js +2 -2
- package/dist/cjs/vite/plugins/clientTreeShakePlugin.native.js.map +1 -1
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.cjs +2 -2
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.js +1 -1
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.js.map +1 -1
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.native.js +2 -2
- package/dist/cjs/vite/plugins/fileSystemRouterPlugin.native.js.map +1 -1
- package/dist/cjs/vite/plugins/generateFileSystemRouteTypesPlugin.js.map +1 -1
- package/dist/cjs/vite/plugins/removeReactNativeWebAnimatedPlugin.js.map +1 -1
- package/dist/cjs/vite/plugins/removeReactNativeWebAnimatedPlugin.native.js.map +1 -1
- package/dist/cjs/vite/plugins/useDomPlugin.cjs +2 -2
- package/dist/cjs/vite/plugins/useDomPlugin.js +1 -1
- package/dist/cjs/vite/plugins/useDomPlugin.js.map +1 -1
- package/dist/cjs/vite/plugins/useDomPlugin.native.js +2 -2
- package/dist/cjs/vite/plugins/useDomPlugin.native.js.map +1 -1
- package/dist/cjs/vite/plugins/virtualEntryPlugin.cjs +2 -2
- package/dist/cjs/vite/plugins/virtualEntryPlugin.js +1 -1
- package/dist/cjs/vite/plugins/virtualEntryPlugin.js.map +1 -1
- package/dist/cjs/vite/plugins/virtualEntryPlugin.native.js +1 -1
- package/dist/cjs/vite/plugins/virtualEntryPlugin.native.js.map +1 -1
- package/dist/cjs/vite/replaceLoader.js +1 -4
- package/dist/cjs/vite/replaceLoader.js.map +1 -1
- package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
- package/dist/cjs/vite.cjs +4 -4
- package/dist/cjs/vite.js +1 -1
- package/dist/cjs/vite.js.map +1 -1
- package/dist/cjs/vite.native.js +4 -4
- package/dist/cjs/zero/useQuery.cjs +3 -3
- package/dist/cjs/zero/useQuery.js +2 -2
- package/dist/cjs/zero/useQuery.js.map +1 -1
- package/dist/cjs/zero/useQuery.native.js +2 -2
- package/dist/cjs/zero/useQuery.native.js.map +1 -1
- package/dist/cjs/zero/useQueryZero.js.map +1 -1
- package/dist/cjs/zero/useQueryZero.native.js.map +1 -1
- package/dist/cjs/zero.cjs +2 -2
- package/dist/cjs/zero.js +1 -1
- package/dist/cjs/zero.js.map +1 -1
- package/dist/cjs/zero.native.js +2 -2
- package/dist/cjs/zero.native.js.map +1 -1
- package/dist/esm/Root.js.map +1 -1
- package/dist/esm/Root.mjs.map +1 -1
- package/dist/esm/Root.native.js.map +1 -1
- package/dist/esm/cli/build.js +5 -5
- package/dist/esm/cli/build.js.map +1 -1
- package/dist/esm/cli/build.mjs +5 -5
- package/dist/esm/cli/build.mjs.map +1 -1
- package/dist/esm/cli/build.native.js +5 -5
- package/dist/esm/cli/build.native.js.map +1 -1
- package/dist/esm/cli/buildPage.js +1 -1
- package/dist/esm/cli/buildPage.js.map +1 -1
- package/dist/esm/cli/buildPage.mjs +1 -1
- package/dist/esm/cli/buildPage.mjs.map +1 -1
- package/dist/esm/cli/buildPage.native.js +1 -1
- package/dist/esm/cli/buildPage.native.js.map +1 -1
- package/dist/esm/cli.js +2 -2
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/cli.mjs +2 -2
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +2 -2
- package/dist/esm/cli.native.js.map +1 -1
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/constants.mjs.map +1 -1
- package/dist/esm/constants.native.js.map +1 -1
- package/dist/esm/createApp.js +3 -3
- package/dist/esm/createApp.js.map +1 -1
- package/dist/esm/createApp.mjs +3 -3
- package/dist/esm/createApp.mjs.map +1 -1
- package/dist/esm/fallbackViews/Sitemap.js.map +1 -1
- package/dist/esm/fallbackViews/Sitemap.mjs.map +1 -1
- package/dist/esm/fallbackViews/Sitemap.native.js.map +1 -1
- package/dist/esm/fork/NavigationContainer.js +4 -4
- package/dist/esm/fork/NavigationContainer.js.map +1 -1
- package/dist/esm/fork/NavigationContainer.mjs +1 -1
- package/dist/esm/fork/NavigationContainer.mjs.map +1 -1
- package/dist/esm/fork/NavigationContainer.native.js +1 -1
- package/dist/esm/fork/NavigationContainer.native.js.map +1 -1
- package/dist/esm/fork/__tests__/getStateFromPath.test.js +1 -1
- package/dist/esm/fork/__tests__/getStateFromPath.test.js.map +1 -1
- package/dist/esm/fork/__tests__/getStateFromPath.test.mjs +1 -1
- package/dist/esm/fork/__tests__/getStateFromPath.test.mjs.map +1 -1
- package/dist/esm/fork/__tests__/getStateFromPath.test.native.js +1 -1
- package/dist/esm/fork/__tests__/getStateFromPath.test.native.js.map +1 -1
- package/dist/esm/fork/getPathFromState.js +3 -3
- package/dist/esm/fork/getPathFromState.js.map +1 -1
- package/dist/esm/fork/getPathFromState.mjs +1 -1
- package/dist/esm/fork/getPathFromState.mjs.map +1 -1
- package/dist/esm/fork/getPathFromState.native.js +1 -1
- package/dist/esm/fork/getPathFromState.native.js.map +1 -1
- package/dist/esm/fork/getPathFromState.test.js.map +1 -1
- package/dist/esm/fork/getPathFromState.test.mjs.map +1 -1
- package/dist/esm/fork/getPathFromState.test.native.js.map +1 -1
- package/dist/esm/fork/getStateFromPath.js +2 -2
- package/dist/esm/fork/getStateFromPath.js.map +1 -1
- package/dist/esm/fork/getStateFromPath.mjs +2 -2
- package/dist/esm/fork/getStateFromPath.mjs.map +1 -1
- package/dist/esm/fork/getStateFromPath.native.js +2 -2
- package/dist/esm/fork/getStateFromPath.native.js.map +1 -1
- package/dist/esm/fork/useBackButton.js.map +1 -1
- package/dist/esm/fork/useBackButton.mjs.map +1 -1
- package/dist/esm/fork/useDocumentTitle.js.map +1 -1
- package/dist/esm/fork/useDocumentTitle.mjs.map +1 -1
- package/dist/esm/fork/useLinking.js +1 -1
- package/dist/esm/fork/useLinking.js.map +1 -1
- package/dist/esm/fork/useLinking.mjs +1 -1
- package/dist/esm/fork/useLinking.mjs.map +1 -1
- package/dist/esm/fork/useLinking.native.js.map +1 -1
- package/dist/esm/fork/validatePathConfig.js.map +1 -1
- package/dist/esm/fork/validatePathConfig.mjs.map +1 -1
- package/dist/esm/fork/validatePathConfig.native.js.map +1 -1
- package/dist/esm/head/Head.ios.js +4 -4
- package/dist/esm/head/Head.ios.js.map +1 -1
- package/dist/esm/hooks.js +2 -9
- package/dist/esm/hooks.js.map +1 -1
- package/dist/esm/hooks.mjs +4 -2
- package/dist/esm/hooks.mjs.map +1 -1
- package/dist/esm/hooks.native.js +4 -3
- package/dist/esm/hooks.native.js.map +1 -1
- package/dist/esm/index.js +31 -33
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +21 -22
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +21 -22
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/layouts/Stack.js.map +1 -1
- package/dist/esm/layouts/Stack.mjs.map +1 -1
- package/dist/esm/layouts/Stack.native.js.map +1 -1
- package/dist/esm/layouts/Tabs.js +2 -2
- package/dist/esm/layouts/Tabs.js.map +1 -1
- package/dist/esm/layouts/Tabs.mjs +1 -1
- package/dist/esm/layouts/Tabs.mjs.map +1 -1
- package/dist/esm/layouts/Tabs.native.js +2 -2
- package/dist/esm/layouts/Tabs.native.js.map +1 -1
- package/dist/esm/layouts/withLayoutContext.js +7 -5
- package/dist/esm/layouts/withLayoutContext.js.map +1 -1
- package/dist/esm/layouts/withLayoutContext.mjs +4 -4
- package/dist/esm/layouts/withLayoutContext.mjs.map +1 -1
- package/dist/esm/layouts/withLayoutContext.native.js +9 -4
- package/dist/esm/layouts/withLayoutContext.native.js.map +1 -1
- package/dist/esm/link/Link.js.map +1 -1
- package/dist/esm/link/Link.mjs.map +1 -1
- package/dist/esm/link/Link.native.js.map +1 -1
- package/dist/esm/link/useLinkTo.js +1 -1
- package/dist/esm/link/useLinkTo.js.map +1 -1
- package/dist/esm/link/useLinkTo.mjs +1 -1
- package/dist/esm/link/useLinkTo.mjs.map +1 -1
- package/dist/esm/link/useLinkTo.native.js +1 -1
- package/dist/esm/link/useLinkTo.native.js.map +1 -1
- package/dist/esm/link/useLoadedNavigation.js.map +1 -1
- package/dist/esm/link/useLoadedNavigation.mjs.map +1 -1
- package/dist/esm/link/useLoadedNavigation.native.js.map +1 -1
- package/dist/esm/metro-config/getViteMetroPluginOptions.js +1 -1
- package/dist/esm/metro-config/getViteMetroPluginOptions.js.map +1 -1
- package/dist/esm/metro-config/getViteMetroPluginOptions.mjs +1 -1
- package/dist/esm/metro-config/getViteMetroPluginOptions.mjs.map +1 -1
- package/dist/esm/metro-config/getViteMetroPluginOptions.native.js +1 -1
- package/dist/esm/metro-config/getViteMetroPluginOptions.native.js.map +1 -1
- package/dist/esm/polyfills-mobile.js +1 -2
- package/dist/esm/polyfills-mobile.js.map +1 -1
- package/dist/esm/polyfills-mobile.mjs +1 -3
- package/dist/esm/polyfills-mobile.mjs.map +1 -1
- package/dist/esm/polyfills-mobile.native.js +1 -3
- package/dist/esm/polyfills-mobile.native.js.map +1 -1
- package/dist/esm/render.js +3 -2
- package/dist/esm/render.js.map +1 -1
- package/dist/esm/render.mjs +3 -2
- package/dist/esm/render.mjs.map +1 -1
- package/dist/esm/router/Route.js.map +1 -1
- package/dist/esm/router/Route.mjs.map +1 -1
- package/dist/esm/router/Route.native.js.map +1 -1
- package/dist/esm/router/RouteInfoContext.js +2 -2
- package/dist/esm/router/RouteInfoContext.js.map +1 -1
- package/dist/esm/router/RouteInfoContext.mjs +2 -2
- package/dist/esm/router/RouteInfoContext.mjs.map +1 -1
- package/dist/esm/router/RouteInfoContext.native.js +2 -2
- package/dist/esm/router/RouteInfoContext.native.js.map +1 -1
- package/dist/esm/router/filterRootHTML.js +10 -4
- package/dist/esm/router/filterRootHTML.js.map +1 -1
- package/dist/esm/router/filterRootHTML.mjs +16 -10
- package/dist/esm/router/filterRootHTML.mjs.map +1 -1
- package/dist/esm/router/filterRootHTML.native.js +16 -10
- package/dist/esm/router/filterRootHTML.native.js.map +1 -1
- package/dist/esm/router/getLinkingConfig.js.map +1 -1
- package/dist/esm/router/getLinkingConfig.mjs.map +1 -1
- package/dist/esm/router/getLinkingConfig.native.js.map +1 -1
- package/dist/esm/router/imperative-api.js.map +1 -1
- package/dist/esm/router/imperative-api.mjs.map +1 -1
- package/dist/esm/router/imperative-api.native.js.map +1 -1
- package/dist/esm/router/matchers.js +2 -2
- package/dist/esm/router/matchers.js.map +1 -1
- package/dist/esm/router/matchers.mjs +2 -2
- package/dist/esm/router/matchers.mjs.map +1 -1
- package/dist/esm/router/matchers.native.js +2 -2
- package/dist/esm/router/matchers.native.js.map +1 -1
- package/dist/esm/router/matchers.test.js +5 -5
- package/dist/esm/router/matchers.test.js.map +1 -1
- package/dist/esm/router/matchers.test.mjs +2 -2
- package/dist/esm/router/matchers.test.mjs.map +1 -1
- package/dist/esm/router/matchers.test.native.js +2 -2
- package/dist/esm/router/matchers.test.native.js.map +1 -1
- package/dist/esm/router/router.js.map +1 -1
- package/dist/esm/router/router.mjs.map +1 -1
- package/dist/esm/router/router.native.js.map +1 -1
- package/dist/esm/router/sortRoutes.js.map +1 -1
- package/dist/esm/router/sortRoutes.mjs.map +1 -1
- package/dist/esm/router/sortRoutes.native.js.map +1 -1
- package/dist/esm/router/useInitializeOneRouter.js +1 -1
- package/dist/esm/router/useInitializeOneRouter.js.map +1 -1
- package/dist/esm/router/useInitializeOneRouter.mjs +1 -1
- package/dist/esm/router/useInitializeOneRouter.mjs.map +1 -1
- package/dist/esm/router/useInitializeOneRouter.native.js +1 -1
- package/dist/esm/router/useInitializeOneRouter.native.js.map +1 -1
- package/dist/esm/router/useScreens.js +1 -1
- package/dist/esm/router/useScreens.js.map +1 -1
- package/dist/esm/router/useScreens.mjs +1 -1
- package/dist/esm/router/useScreens.mjs.map +1 -1
- package/dist/esm/router/useScreens.native.js +1 -1
- package/dist/esm/router/useScreens.native.js.map +1 -1
- package/dist/esm/router/useViteRoutes.js +1 -1
- package/dist/esm/router/useViteRoutes.js.map +1 -1
- package/dist/esm/router/useViteRoutes.mjs +1 -1
- package/dist/esm/router/useViteRoutes.mjs.map +1 -1
- package/dist/esm/router/useViteRoutes.native.js +1 -1
- package/dist/esm/router/useViteRoutes.native.js.map +1 -1
- package/dist/esm/router/utils/getNavigateAction.js +1 -1
- package/dist/esm/router/utils/getNavigateAction.js.map +1 -1
- package/dist/esm/router/utils/getNavigateAction.mjs +1 -1
- package/dist/esm/router/utils/getNavigateAction.mjs.map +1 -1
- package/dist/esm/router/utils/getNavigateAction.native.js +1 -1
- package/dist/esm/router/utils/getNavigateAction.native.js.map +1 -1
- package/dist/esm/router/utils/getNavigateAction.test.js +1 -1
- package/dist/esm/router/utils/getNavigateAction.test.js.map +1 -1
- package/dist/esm/router/utils/getNavigateAction.test.mjs +1 -1
- package/dist/esm/router/utils/getNavigateAction.test.mjs.map +1 -1
- package/dist/esm/router/utils/getNavigateAction.test.native.js +1 -1
- package/dist/esm/router/utils/getNavigateAction.test.native.js.map +1 -1
- package/dist/esm/server/ServerContextScript.native.js +2 -2
- package/dist/esm/server/createRoutesManifest.js.map +1 -1
- package/dist/esm/server/createRoutesManifest.mjs.map +1 -1
- package/dist/esm/server/createRoutesManifest.native.js.map +1 -1
- package/dist/esm/server/getServerManifest.js.map +1 -1
- package/dist/esm/server/getServerManifest.mjs.map +1 -1
- package/dist/esm/server/getServerManifest.native.js.map +1 -1
- package/dist/esm/server/oneServe.js +3 -3
- package/dist/esm/server/oneServe.js.map +1 -1
- package/dist/esm/server/oneServe.mjs +3 -3
- package/dist/esm/server/oneServe.mjs.map +1 -1
- package/dist/esm/server/oneServe.native.js +3 -3
- package/dist/esm/server/oneServe.native.js.map +1 -1
- package/dist/esm/server-render.js.map +1 -1
- package/dist/esm/server-render.mjs.map +1 -1
- package/dist/esm/server-render.native.js.map +1 -1
- package/dist/esm/testing-utils.js +1 -1
- package/dist/esm/testing-utils.js.map +1 -1
- package/dist/esm/testing-utils.mjs +1 -1
- package/dist/esm/testing-utils.mjs.map +1 -1
- package/dist/esm/testing-utils.native.js +1 -1
- package/dist/esm/testing-utils.native.js.map +1 -1
- package/dist/esm/typed-routes/generateRouteTypes.js +1 -1
- package/dist/esm/typed-routes/generateRouteTypes.js.map +1 -1
- package/dist/esm/typed-routes/generateRouteTypes.mjs +1 -1
- package/dist/esm/typed-routes/generateRouteTypes.mjs.map +1 -1
- package/dist/esm/typed-routes/generateRouteTypes.native.js +1 -1
- package/dist/esm/typed-routes/generateRouteTypes.native.js.map +1 -1
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.js +1 -0
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.js.map +1 -1
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.mjs +3 -1
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.mjs.map +1 -1
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js +3 -1
- package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js.map +1 -1
- package/dist/esm/utils/getPathnameFromFilePath.js +1 -1
- package/dist/esm/utils/getPathnameFromFilePath.js.map +1 -1
- package/dist/esm/utils/getPathnameFromFilePath.mjs +1 -1
- package/dist/esm/utils/getPathnameFromFilePath.mjs.map +1 -1
- package/dist/esm/utils/getPathnameFromFilePath.native.js +1 -1
- package/dist/esm/utils/getPathnameFromFilePath.native.js.map +1 -1
- package/dist/esm/utils/isRolldown.js.map +1 -1
- package/dist/esm/utils/isRolldown.mjs.map +1 -1
- package/dist/esm/utils/isRolldown.native.js.map +1 -1
- package/dist/esm/utils/redirect.js.map +1 -1
- package/dist/esm/utils/redirect.mjs.map +1 -1
- package/dist/esm/utils/redirect.native.js.map +1 -1
- package/dist/esm/utils/removeSearch.js +1 -1
- package/dist/esm/utils/removeSearch.js.map +1 -1
- package/dist/esm/utils/removeSearch.mjs +1 -1
- package/dist/esm/utils/removeSearch.mjs.map +1 -1
- package/dist/esm/utils/removeSearch.native.js +1 -1
- package/dist/esm/utils/removeSearch.native.js.map +1 -1
- package/dist/esm/utils/useConstant.js +1 -1
- package/dist/esm/utils/useConstant.js.map +1 -1
- package/dist/esm/utils/useConstant.mjs +1 -1
- package/dist/esm/utils/useConstant.mjs.map +1 -1
- package/dist/esm/utils/useConstant.native.js +1 -1
- package/dist/esm/vercel/build/buildVercelOutputDirectory.js +2 -2
- package/dist/esm/vercel/build/buildVercelOutputDirectory.js.map +1 -1
- package/dist/esm/vercel/build/buildVercelOutputDirectory.mjs +2 -2
- package/dist/esm/vercel/build/buildVercelOutputDirectory.mjs.map +1 -1
- package/dist/esm/vercel/build/buildVercelOutputDirectory.native.js +2 -2
- package/dist/esm/vercel/build/buildVercelOutputDirectory.native.js.map +1 -1
- package/dist/esm/vercel/build/generate/createApiServerlessFunction.js +4 -4
- package/dist/esm/vercel/build/generate/createApiServerlessFunction.js.map +1 -1
- package/dist/esm/vercel/build/generate/createApiServerlessFunction.mjs +4 -4
- package/dist/esm/vercel/build/generate/createApiServerlessFunction.mjs.map +1 -1
- package/dist/esm/vercel/build/generate/createApiServerlessFunction.native.js +4 -4
- package/dist/esm/vercel/build/generate/createApiServerlessFunction.native.js.map +1 -1
- package/dist/esm/vercel/build/generate/createSsrServerlessFunction.js +1 -1
- package/dist/esm/vercel/build/generate/createSsrServerlessFunction.js.map +1 -1
- package/dist/esm/vercel/build/generate/createSsrServerlessFunction.mjs +1 -1
- package/dist/esm/vercel/build/generate/createSsrServerlessFunction.mjs.map +1 -1
- package/dist/esm/vercel/build/generate/createSsrServerlessFunction.native.js +1 -1
- package/dist/esm/vercel/build/generate/createSsrServerlessFunction.native.js.map +1 -1
- package/dist/esm/views/Navigator.js +1 -1
- package/dist/esm/views/Navigator.js.map +1 -1
- package/dist/esm/views/Navigator.mjs +1 -1
- package/dist/esm/views/Navigator.mjs.map +1 -1
- package/dist/esm/views/Navigator.native.js +1 -1
- package/dist/esm/views/Navigator.native.js.map +1 -1
- package/dist/esm/views/PreloadLinks.js +1 -1
- package/dist/esm/views/PreloadLinks.js.map +1 -1
- package/dist/esm/views/PreloadLinks.mjs +1 -1
- package/dist/esm/views/PreloadLinks.mjs.map +1 -1
- package/dist/esm/vite/findDepsToOptimize.js +2 -3
- package/dist/esm/vite/findDepsToOptimize.js.map +1 -1
- package/dist/esm/vite/findDepsToOptimize.mjs +3 -5
- package/dist/esm/vite/findDepsToOptimize.mjs.map +1 -1
- package/dist/esm/vite/findDepsToOptimize.native.js +3 -5
- package/dist/esm/vite/findDepsToOptimize.native.js.map +1 -1
- package/dist/esm/vite/one.js +2 -3
- package/dist/esm/vite/one.js.map +1 -1
- package/dist/esm/vite/one.mjs +2 -3
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js +2 -3
- package/dist/esm/vite/one.native.js.map +1 -1
- package/dist/esm/vite/plugins/clientTreeShakePlugin.js +1 -1
- package/dist/esm/vite/plugins/clientTreeShakePlugin.js.map +1 -1
- package/dist/esm/vite/plugins/clientTreeShakePlugin.mjs +1 -1
- package/dist/esm/vite/plugins/clientTreeShakePlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/clientTreeShakePlugin.native.js +1 -1
- package/dist/esm/vite/plugins/clientTreeShakePlugin.native.js.map +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.js +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.js.map +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.mjs +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.native.js +1 -1
- package/dist/esm/vite/plugins/fileSystemRouterPlugin.native.js.map +1 -1
- package/dist/esm/vite/plugins/generateFileSystemRouteTypesPlugin.js.map +1 -1
- package/dist/esm/vite/plugins/generateFileSystemRouteTypesPlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/generateFileSystemRouteTypesPlugin.native.js.map +1 -1
- package/dist/esm/vite/plugins/removeReactNativeWebAnimatedPlugin.js.map +1 -1
- package/dist/esm/vite/plugins/removeReactNativeWebAnimatedPlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/removeReactNativeWebAnimatedPlugin.native.js.map +1 -1
- package/dist/esm/vite/plugins/useDomPlugin.js +1 -1
- package/dist/esm/vite/plugins/useDomPlugin.js.map +1 -1
- package/dist/esm/vite/plugins/useDomPlugin.mjs +1 -1
- package/dist/esm/vite/plugins/useDomPlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/useDomPlugin.native.js +1 -1
- package/dist/esm/vite/plugins/useDomPlugin.native.js.map +1 -1
- package/dist/esm/vite/plugins/virtualEntryPlugin.js +6 -6
- package/dist/esm/vite/plugins/virtualEntryPlugin.js.map +1 -1
- package/dist/esm/vite/plugins/virtualEntryPlugin.mjs +1 -1
- package/dist/esm/vite/plugins/virtualEntryPlugin.mjs.map +1 -1
- package/dist/esm/vite/plugins/virtualEntryPlugin.native.js +1 -1
- package/dist/esm/vite/plugins/virtualEntryPlugin.native.js.map +1 -1
- package/dist/esm/vite/replaceLoader.js +1 -4
- package/dist/esm/vite/replaceLoader.js.map +1 -1
- package/dist/esm/vite/replaceLoader.mjs.map +1 -1
- package/dist/esm/vite/replaceLoader.native.js.map +1 -1
- package/dist/esm/vite.js +3 -3
- package/dist/esm/vite.js.map +1 -1
- package/dist/esm/vite.mjs +3 -3
- package/dist/esm/vite.mjs.map +1 -1
- package/dist/esm/vite.native.js +3 -3
- package/dist/esm/vite.native.js.map +1 -1
- package/dist/esm/zero/useQuery.js +2 -2
- package/dist/esm/zero/useQuery.js.map +1 -1
- package/dist/esm/zero/useQuery.mjs +2 -2
- package/dist/esm/zero/useQuery.mjs.map +1 -1
- package/dist/esm/zero/useQuery.native.js +2 -2
- package/dist/esm/zero/useQuery.native.js.map +1 -1
- package/dist/esm/zero/useQueryZero.js.map +1 -1
- package/dist/esm/zero/useQueryZero.mjs.map +1 -1
- package/dist/esm/zero/useQueryZero.native.js.map +1 -1
- package/dist/esm/zero.js +2 -2
- package/dist/esm/zero.js.map +1 -1
- package/dist/esm/zero.mjs +2 -2
- package/dist/esm/zero.mjs.map +1 -1
- package/dist/esm/zero.native.js +2 -2
- package/dist/esm/zero.native.js.map +1 -1
- package/package.json +18 -17
- package/src/Root.tsx +6 -6
- package/src/cli/build.ts +7 -8
- package/src/cli/buildPage.ts +1 -1
- package/src/cli.ts +2 -2
- package/src/constants.ts +3 -1
- package/src/createApp.tsx +4 -5
- package/src/fallbackViews/Sitemap.tsx +1 -0
- package/src/fork/NavigationContainer.tsx +7 -8
- package/src/fork/__tests__/getStateFromPath.test.tsx +3 -3
- package/src/fork/getPathFromState-mods.ts +1 -1
- package/src/fork/getPathFromState.test.ts +1 -1
- package/src/fork/getPathFromState.ts +3 -3
- package/src/fork/getStateFromPath-mods.ts +2 -2
- package/src/fork/getStateFromPath.ts +4 -6
- package/src/fork/useBackButton.tsx +1 -1
- package/src/fork/useDocumentTitle.tsx +2 -3
- package/src/fork/useLinking.native.ts +1 -3
- package/src/fork/useLinking.ts +4 -5
- package/src/fork/validatePathConfig.ts +0 -1
- package/src/head/Head.android.tsx +1 -1
- package/src/head/Head.ios.tsx +25 -7
- package/src/head/Head.tsx +1 -1
- package/src/head/HeadModule.ts +1 -1
- package/src/head/url.tsx +1 -1
- package/src/hooks.tsx +3 -7
- package/src/index.ts +44 -53
- package/src/interfaces/router.ts +2 -2
- package/src/layouts/Drawer.tsx +1 -1
- package/src/layouts/Stack.tsx +1 -1
- package/src/layouts/Tabs.tsx +4 -4
- package/src/layouts/withLayoutContext.tsx +18 -7
- package/src/link/Link.tsx +1 -1
- package/src/link/linking.ts +1 -1
- package/src/link/useLinkTo.tsx +2 -2
- package/src/link/useLoadedNavigation.ts +1 -1
- package/src/metro-config/getViteMetroPluginOptions.ts +4 -2
- package/src/polyfills-mobile.ts +3 -3
- package/src/render.tsx +3 -2
- package/src/router/Route.tsx +1 -1
- package/src/router/RouteInfoContext.tsx +2 -2
- package/src/router/filterRootHTML.ts +21 -7
- package/src/router/getLinkingConfig.ts +1 -1
- package/src/router/imperative-api.ts +1 -1
- package/src/router/matchers.test.ts +4 -4
- package/src/router/matchers.ts +2 -2
- package/src/router/router.ts +2 -2
- package/src/router/sortRoutes.ts +1 -1
- package/src/router/useInitializeOneRouter.ts +2 -2
- package/src/router/useScreens.tsx +4 -4
- package/src/router/useViteRoutes.tsx +1 -1
- package/src/router/utils/getNavigateAction.test.ts +1 -1
- package/src/router/utils/getNavigateAction.ts +2 -2
- package/src/server/ServerContextScript.tsx +2 -2
- package/src/server/createRoutesManifest.ts +2 -3
- package/src/server/getServerManifest.ts +2 -1
- package/src/server/oneServe.ts +4 -4
- package/src/server-render.tsx +0 -1
- package/src/setup.ts +1 -1
- package/src/testing-utils.ts +1 -2
- package/src/typed-routes/generateRouteTypes.ts +1 -1
- package/src/typed-routes/getTypedRoutesDeclarationFile.ts +1 -0
- package/src/utils/getPathnameFromFilePath.ts +1 -1
- package/src/utils/isRolldown.ts +1 -1
- package/src/utils/redirect.ts +1 -1
- package/src/utils/removeSearch.ts +1 -1
- package/src/utils/useConstant.ts +1 -1
- package/src/utils/withStaticProperties.ts +1 -1
- package/src/vercel/build/buildVercelOutputDirectory.ts +4 -6
- package/src/vercel/build/generate/createApiServerlessFunction.ts +4 -6
- package/src/vercel/build/generate/createSsrServerlessFunction.ts +2 -2
- package/src/views/Navigator.tsx +2 -2
- package/src/views/PreloadLinks.tsx +1 -2
- package/src/vite/findDepsToOptimize.ts +2 -4
- package/src/vite/one.ts +3 -4
- package/src/vite/plugins/clientTreeShakePlugin.ts +1 -1
- package/src/vite/plugins/fileSystemRouterPlugin.tsx +2 -2
- package/src/vite/plugins/generateFileSystemRouteTypesPlugin.tsx +1 -1
- package/src/vite/plugins/removeReactNativeWebAnimatedPlugin.ts +1 -3
- package/src/vite/plugins/useDomPlugin.ts +2 -2
- package/src/vite/plugins/virtualEntryPlugin.ts +6 -6
- package/src/vite/replaceLoader.ts +1 -7
- package/src/vite.ts +3 -5
- package/src/zero/useQuery.ts +2 -2
- package/src/zero/useQueryZero.ts +5 -5
- package/src/zero.ts +2 -2
- package/types/Root.d.ts.map +1 -1
- package/types/cli/build.d.ts.map +1 -1
- package/types/constants.d.ts.map +1 -1
- package/types/createApp.d.ts.map +1 -1
- package/types/fallbackViews/Sitemap.d.ts.map +1 -1
- package/types/fork/NavigationContainer.d.ts +1 -1
- package/types/fork/NavigationContainer.d.ts.map +1 -1
- package/types/fork/getPathFromState.d.ts.map +1 -1
- package/types/fork/getStateFromPath-mods.d.ts +1 -1
- package/types/fork/getStateFromPath-mods.d.ts.map +1 -1
- package/types/fork/getStateFromPath.d.ts.map +1 -1
- package/types/fork/useBackButton.d.ts +1 -1
- package/types/fork/useBackButton.d.ts.map +1 -1
- package/types/fork/useDocumentTitle.d.ts +2 -2
- package/types/fork/useDocumentTitle.d.ts.map +1 -1
- package/types/fork/useLinking.d.ts +2 -2
- package/types/fork/useLinking.d.ts.map +1 -1
- package/types/fork/useLinking.native.d.ts +1 -1
- package/types/fork/useLinking.native.d.ts.map +1 -1
- package/types/fork/validatePathConfig.d.ts.map +1 -1
- package/types/head/Head.ios.d.ts.map +1 -1
- package/types/hooks.d.ts +1 -1
- package/types/hooks.d.ts.map +1 -1
- package/types/index.d.ts +24 -25
- package/types/index.d.ts.map +1 -1
- package/types/interfaces/router.d.ts +2 -2
- package/types/interfaces/router.d.ts.map +1 -1
- package/types/layouts/Drawer.d.ts +1 -1
- package/types/layouts/Drawer.d.ts.map +1 -1
- package/types/layouts/Stack.d.ts.map +1 -1
- package/types/layouts/Tabs.d.ts.map +1 -1
- package/types/layouts/withLayoutContext.d.ts +2 -2
- package/types/layouts/withLayoutContext.d.ts.map +1 -1
- package/types/link/useLinkTo.d.ts.map +1 -1
- package/types/link/useLoadedNavigation.d.ts.map +1 -1
- package/types/metro-config/getViteMetroPluginOptions.d.ts.map +1 -1
- package/types/polyfills-mobile.d.ts.map +1 -1
- package/types/render.d.ts.map +1 -1
- package/types/router/Route.d.ts.map +1 -1
- package/types/router/RouteInfoContext.d.ts.map +1 -1
- package/types/router/filterRootHTML.d.ts.map +1 -1
- package/types/router/getLinkingConfig.d.ts +1 -1
- package/types/router/getLinkingConfig.d.ts.map +1 -1
- package/types/router/imperative-api.d.ts.map +1 -1
- package/types/router/router.d.ts.map +1 -1
- package/types/router/sortRoutes.d.ts.map +1 -1
- package/types/router/useInitializeOneRouter.d.ts +1 -1
- package/types/router/useInitializeOneRouter.d.ts.map +1 -1
- package/types/router/useScreens.d.ts +1 -1
- package/types/router/useScreens.d.ts.map +1 -1
- package/types/router/utils/getNavigateAction.d.ts.map +1 -1
- package/types/server/createRoutesManifest.d.ts.map +1 -1
- package/types/server/getServerManifest.d.ts.map +1 -1
- package/types/server/oneServe.d.ts.map +1 -1
- package/types/server-render.d.ts.map +1 -1
- package/types/testing-utils.d.ts.map +1 -1
- package/types/utils/redirect.d.ts.map +1 -1
- package/types/vercel/build/buildVercelOutputDirectory.d.ts.map +1 -1
- package/types/vercel/build/generate/createApiServerlessFunction.d.ts.map +1 -1
- package/types/vercel/build/generate/createSsrServerlessFunction.d.ts.map +1 -1
- package/types/views/Navigator.d.ts +1 -1
- package/types/views/Navigator.d.ts.map +1 -1
- package/types/views/PreloadLinks.d.ts.map +1 -1
- package/types/views/Try.d.ts +1 -1
- package/types/vite/one.d.ts.map +1 -1
- package/types/vite/plugins/fileSystemRouterPlugin.d.ts.map +1 -1
- package/types/vite/plugins/generateFileSystemRouteTypesPlugin.d.ts.map +1 -1
- package/types/vite/plugins/removeReactNativeWebAnimatedPlugin.d.ts.map +1 -1
- package/types/vite/plugins/useDomPlugin.d.ts.map +1 -1
- package/types/vite/plugins/virtualEntryPlugin.d.ts.map +1 -1
- package/types/vite/replaceLoader.d.ts +1 -1
- package/types/vite/replaceLoader.d.ts.map +1 -1
- package/types/vite.d.ts +3 -3
- package/types/vite.d.ts.map +1 -1
- package/types/zero/useQuery.d.ts.map +1 -1
- package/types/zero/useQueryZero.d.ts.map +1 -1
- package/types/zero.d.ts +2 -2
- package/types/zero.d.ts.map +1 -1
- /package/types/vercel/build/generate/{createSsrServerlessFunction.d.ts → createSSRServerlessFunction.d.ts} +0 -0
|
@@ -18,10 +18,6 @@ import {
|
|
|
18
18
|
ThemeProvider,
|
|
19
19
|
validatePathConfig,
|
|
20
20
|
} from '@react-navigation/core'
|
|
21
|
-
import * as React from 'react'
|
|
22
|
-
import { I18nManager } from 'react-native'
|
|
23
|
-
import useLatestCallback from 'use-latest-callback'
|
|
24
|
-
|
|
25
21
|
// @modified - start
|
|
26
22
|
// import { LinkingContext } from './LinkingContext'
|
|
27
23
|
// import { LocaleDirContext } from './LocaleDirContext'
|
|
@@ -29,14 +25,17 @@ import useLatestCallback from 'use-latest-callback'
|
|
|
29
25
|
// import type { DocumentTitleOptions, LinkingOptions, LocaleDirection } from './types'
|
|
30
26
|
// import { UnhandledLinkingContext } from './UnhandledLinkingContext'
|
|
31
27
|
import {
|
|
32
|
-
LinkingContext,
|
|
33
|
-
LocaleDirContext,
|
|
34
28
|
DefaultTheme,
|
|
35
29
|
type DocumentTitleOptions,
|
|
30
|
+
LinkingContext,
|
|
36
31
|
type LinkingOptions,
|
|
32
|
+
LocaleDirContext,
|
|
37
33
|
type LocaleDirection,
|
|
38
34
|
UNSTABLE_UnhandledLinkingContext as UnhandledLinkingContext,
|
|
39
35
|
} from '@react-navigation/native'
|
|
36
|
+
import * as React from 'react'
|
|
37
|
+
import { I18nManager } from 'react-native'
|
|
38
|
+
import useLatestCallback from 'use-latest-callback'
|
|
40
39
|
// @modified - end
|
|
41
40
|
import { useBackButton } from './useBackButton'
|
|
42
41
|
import { useDocumentTitle } from './useDocumentTitle'
|
|
@@ -95,7 +94,7 @@ function NavigationContainerInner(
|
|
|
95
94
|
validatePathConfig(linking.config)
|
|
96
95
|
}
|
|
97
96
|
|
|
98
|
-
const refContainer = React.useRef<NavigationContainerRef<ParamListBase
|
|
97
|
+
const refContainer = React.useRef<NavigationContainerRef<ParamListBase> | null>(null)
|
|
99
98
|
|
|
100
99
|
useBackButton(refContainer)
|
|
101
100
|
useDocumentTitle(refContainer, documentTitle)
|
|
@@ -165,7 +164,7 @@ function NavigationContainerInner(
|
|
|
165
164
|
|
|
166
165
|
const [isResolved, initialState] = useThenable(getInitialState)
|
|
167
166
|
|
|
168
|
-
React.useImperativeHandle(ref, () => refContainer.current)
|
|
167
|
+
React.useImperativeHandle(ref, () => refContainer.current!)
|
|
169
168
|
|
|
170
169
|
const isLinkingReady = rest.initialState != null || !isLinkingEnabled || isResolved
|
|
171
170
|
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* All modifications except formatting should be marked with `// @modified` comment.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
// @modified - start: use vitest instead of jest
|
|
9
|
-
// import { expect, test } from '@jest/globals';
|
|
10
|
-
import { expect, test } from 'vitest'
|
|
11
8
|
// @modified - end: use vitest instead of jest
|
|
12
9
|
import type { InitialState } from '@react-navigation/routers'
|
|
13
10
|
import { produce } from 'immer'
|
|
11
|
+
// @modified - start: use vitest instead of jest
|
|
12
|
+
// import { expect, test } from '@jest/globals';
|
|
13
|
+
import { expect, test } from 'vitest'
|
|
14
14
|
|
|
15
15
|
import { findFocusedRoute } from '../findFocusedRoute'
|
|
16
16
|
import { getPathFromState } from '../getPathFromState'
|
|
@@ -87,7 +87,7 @@ export function getPathWithConventionsCollapsed({
|
|
|
87
87
|
// Optional params without value assigned in route.params should be ignored
|
|
88
88
|
const value = params[name]
|
|
89
89
|
if (value === undefined && p.endsWith('?')) {
|
|
90
|
-
return
|
|
90
|
+
return undefined
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
// return params[name]
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* All modifications except formatting should be marked with `// @modified` comment.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
import * as sharedModUtils from './_shared'
|
|
9
10
|
// @modified - start
|
|
10
11
|
import {
|
|
12
|
+
type AdditionalOptions,
|
|
13
|
+
appendBaseUrl,
|
|
11
14
|
type ConfigItemMods,
|
|
12
15
|
getPathWithConventionsCollapsed,
|
|
13
|
-
appendBaseUrl,
|
|
14
|
-
type AdditionalOptions,
|
|
15
16
|
} from './getPathFromState-mods'
|
|
16
|
-
import * as sharedModUtils from './_shared'
|
|
17
17
|
// @modified - end
|
|
18
18
|
|
|
19
19
|
import type { NavigationState, PartialState, Route } from '@react-navigation/routers'
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import escape_ from 'escape-string-regexp'
|
|
8
8
|
import { matchGroupName, stripGroupSegmentsFromPath } from '../router/matchers'
|
|
9
|
-
import type {
|
|
9
|
+
import type { InitialRouteConfig, ParsedRoute, RouteConfig } from './getStateFromPath'
|
|
10
10
|
|
|
11
11
|
export type AdditionalRouteConfig = {
|
|
12
12
|
type: 'static' | 'dynamic' | 'layout'
|
|
@@ -365,7 +365,7 @@ export function parseQueryParamsExtended(
|
|
|
365
365
|
)
|
|
366
366
|
}
|
|
367
367
|
} else {
|
|
368
|
-
// biome-ignore lint/suspicious/noPrototypeBuiltins:
|
|
368
|
+
// biome-ignore lint/suspicious/noPrototypeBuiltins: forked code from react-navigation
|
|
369
369
|
const values = parseConfig?.hasOwnProperty(name)
|
|
370
370
|
? searchParams.getAll(name).map((value) => parseConfig[name](value))
|
|
371
371
|
: searchParams.getAll(name)
|
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
import type { InitialState, NavigationState, PartialState } from '@react-navigation/routers'
|
|
10
10
|
// biome-ignore lint/suspicious/noShadowRestrictedNames: ignore from forked code // @modified
|
|
11
11
|
import escape from 'escape-string-regexp'
|
|
12
|
+
|
|
12
13
|
// import * as queryString from 'query-string'
|
|
13
14
|
|
|
14
|
-
import { findFocusedRoute } from './findFocusedRoute'
|
|
15
15
|
import type { PathConfigMap } from '@react-navigation/core' // @modified
|
|
16
|
-
import {
|
|
16
|
+
import { getParamValue, isDynamicPart, replacePart } from './_shared'
|
|
17
|
+
import { findFocusedRoute } from './findFocusedRoute'
|
|
17
18
|
import {
|
|
18
19
|
type AdditionalRouteConfig,
|
|
19
20
|
appendIsInitial,
|
|
@@ -26,7 +27,7 @@ import {
|
|
|
26
27
|
parseQueryParamsExtended,
|
|
27
28
|
populateParams,
|
|
28
29
|
} from './getStateFromPath-mods'
|
|
29
|
-
import {
|
|
30
|
+
import { validatePathConfig } from './validatePathConfig'
|
|
30
31
|
|
|
31
32
|
type Options<ParamList extends {}> = {
|
|
32
33
|
path?: string
|
|
@@ -648,20 +649,17 @@ const createStateObject = (
|
|
|
648
649
|
index: 1,
|
|
649
650
|
routes: [{ name: initialRoute }, route],
|
|
650
651
|
}
|
|
651
|
-
// biome-ignore lint/style/noUselessElse: not changing forked code
|
|
652
652
|
} else {
|
|
653
653
|
return {
|
|
654
654
|
routes: [route],
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
|
-
// biome-ignore lint/style/noUselessElse: not changing forked code
|
|
658
657
|
} else {
|
|
659
658
|
if (initialRoute) {
|
|
660
659
|
return {
|
|
661
660
|
index: 1,
|
|
662
661
|
routes: [{ name: initialRoute }, { ...route, state: { routes: [] } }],
|
|
663
662
|
}
|
|
664
|
-
// biome-ignore lint/style/noUselessElse: not changing forked code
|
|
665
663
|
} else {
|
|
666
664
|
return {
|
|
667
665
|
routes: [{ ...route, state: { routes: [] } }],
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import type { NavigationContainerRef, ParamListBase } from '@react-navigation/core'
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line @eslint-react/hooks-extra/ensure-custom-hooks-using-other-hooks
|
|
11
|
-
export function useBackButton(_: React.RefObject<NavigationContainerRef<ParamListBase
|
|
11
|
+
export function useBackButton(_: React.RefObject<NavigationContainerRef<ParamListBase> | null>) {
|
|
12
12
|
// No-op
|
|
13
13
|
// BackHandler is not available on web
|
|
14
14
|
}
|
|
@@ -6,15 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import type { NavigationContainerRef, ParamListBase } from '@react-navigation/core'
|
|
9
|
-
import * as React from 'react'
|
|
10
|
-
|
|
11
9
|
import type { DocumentTitleOptions } from '@react-navigation/native'
|
|
10
|
+
import * as React from 'react'
|
|
12
11
|
|
|
13
12
|
/**
|
|
14
13
|
* Set the document title for the active screen
|
|
15
14
|
*/
|
|
16
15
|
export function useDocumentTitle(
|
|
17
|
-
ref: React.RefObject<NavigationContainerRef<ParamListBase
|
|
16
|
+
ref: React.RefObject<NavigationContainerRef<ParamListBase> | null>,
|
|
18
17
|
{
|
|
19
18
|
enabled = true,
|
|
20
19
|
formatter = (options, route) => options?.title ?? route?.name,
|
|
@@ -13,11 +13,10 @@ import {
|
|
|
13
13
|
type ParamListBase,
|
|
14
14
|
useNavigationIndependentTree,
|
|
15
15
|
} from '@react-navigation/core'
|
|
16
|
+
import type { LinkingOptions } from '@react-navigation/native' // @modified: import from @react-navigation/native
|
|
16
17
|
import * as React from 'react'
|
|
17
18
|
import { Linking, Platform } from 'react-native'
|
|
18
|
-
|
|
19
19
|
import { extractPathFromURL } from './extractPathFromURL'
|
|
20
|
-
import type { LinkingOptions } from '@react-navigation/native' // @modified: import from @react-navigation/native
|
|
21
20
|
|
|
22
21
|
type ResultState = ReturnType<typeof getStateFromPathDefault>
|
|
23
22
|
|
|
@@ -156,7 +155,6 @@ export function useLinking(
|
|
|
156
155
|
|
|
157
156
|
return state
|
|
158
157
|
})
|
|
159
|
-
// biome-ignore lint/style/noUselessElse: don't check copied code
|
|
160
158
|
} else {
|
|
161
159
|
onUnhandledLinking(extractPathFromURL(prefixes, url))
|
|
162
160
|
}
|
package/src/fork/useLinking.ts
CHANGED
|
@@ -16,15 +16,14 @@ import {
|
|
|
16
16
|
type ParamListBase,
|
|
17
17
|
useNavigationIndependentTree,
|
|
18
18
|
} from '@react-navigation/core'
|
|
19
|
+
// @modified - end
|
|
20
|
+
import type { LinkingOptions } from '@react-navigation/native' // @modified: change import path
|
|
19
21
|
import isEqual from 'fast-deep-equal'
|
|
20
22
|
import * as React from 'react'
|
|
21
|
-
|
|
22
|
-
import { createMemoryHistory } from './createMemoryHistory'
|
|
23
23
|
// @modified - start
|
|
24
24
|
// import { ServerContext } from '@react-navigation/web';
|
|
25
25
|
import { ServerLocationContext } from '../router/serverLocationContext'
|
|
26
|
-
|
|
27
|
-
import type { LinkingOptions } from '@react-navigation/native' // @modified: change import path
|
|
26
|
+
import { createMemoryHistory } from './createMemoryHistory'
|
|
28
27
|
import { appendBaseUrl } from './getPathFromState-mods'
|
|
29
28
|
|
|
30
29
|
type ResultState = ReturnType<typeof getStateFromPathDefault>
|
|
@@ -86,7 +85,7 @@ const linkingHandlers: symbol[] = []
|
|
|
86
85
|
type Options = LinkingOptions<ParamListBase>
|
|
87
86
|
|
|
88
87
|
export function useLinking(
|
|
89
|
-
ref: React.RefObject<NavigationContainerRef<ParamListBase
|
|
88
|
+
ref: React.RefObject<NavigationContainerRef<ParamListBase> | null>,
|
|
90
89
|
{
|
|
91
90
|
enabled = true,
|
|
92
91
|
config,
|
|
@@ -42,7 +42,6 @@ export function validatePathConfig(config: unknown, root = true) {
|
|
|
42
42
|
const type = validation[key as keyof typeof validation] as string
|
|
43
43
|
const value: string = config[key]
|
|
44
44
|
|
|
45
|
-
// biome-ignore lint/suspicious/useValidTypeof: do not check copied code
|
|
46
45
|
if (value !== undefined && typeof value !== type) {
|
|
47
46
|
return [key, `expected '${type}', got '${typeof value}'`]
|
|
48
47
|
}
|
|
@@ -2,7 +2,7 @@ import type { PropsWithChildren } from 'react'
|
|
|
2
2
|
import { HeadModule } from './HeadModule'
|
|
3
3
|
import type { HeadType } from './types'
|
|
4
4
|
|
|
5
|
-
// @ts-
|
|
5
|
+
// @ts-expect-error
|
|
6
6
|
export const Head: HeadType = (props: PropsWithChildren) => null
|
|
7
7
|
|
|
8
8
|
Object.assign(Head, HeadModule)
|
package/src/head/Head.ios.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useIsFocused } from '@react-navigation/core'
|
|
2
|
-
import React from 'react'
|
|
2
|
+
import React, { type JSX } from 'react'
|
|
3
|
+
import { useParams, usePathname, useSegments, useUnstableGlobalHref } from '../hooks'
|
|
3
4
|
import { HeadModule, type UserActivity } from './HeadModule'
|
|
4
|
-
import { getStaticUrlFromOneRouter } from './url'
|
|
5
|
-
import { useParams, useUnstableGlobalHref, usePathname, useSegments } from '../hooks'
|
|
6
5
|
import type { HeadType } from './types'
|
|
6
|
+
import { getStaticUrlFromOneRouter } from './url'
|
|
7
7
|
|
|
8
8
|
function urlToId(url: string) {
|
|
9
9
|
return url.replace(/[^a-zA-Z0-9]/g, '-')
|
|
@@ -61,15 +61,33 @@ function serializedMetaChildren(meta: MetaNode[]): SerializedMeta[] {
|
|
|
61
61
|
return {
|
|
62
62
|
type: 'title',
|
|
63
63
|
props: {
|
|
64
|
-
children:
|
|
64
|
+
children:
|
|
65
|
+
child.props &&
|
|
66
|
+
typeof child.props === 'object' &&
|
|
67
|
+
'children' in child.props &&
|
|
68
|
+
typeof child.props.children === 'string'
|
|
69
|
+
? child.props.children
|
|
70
|
+
: undefined,
|
|
65
71
|
},
|
|
66
72
|
}
|
|
67
73
|
}
|
|
68
74
|
return {
|
|
69
75
|
type: 'meta',
|
|
70
76
|
props: {
|
|
71
|
-
property:
|
|
72
|
-
|
|
77
|
+
property:
|
|
78
|
+
child.props &&
|
|
79
|
+
typeof child.props === 'object' &&
|
|
80
|
+
'property' in child.props &&
|
|
81
|
+
typeof child.props.property === 'string'
|
|
82
|
+
? child.props.property
|
|
83
|
+
: undefined,
|
|
84
|
+
content:
|
|
85
|
+
child.props &&
|
|
86
|
+
typeof child.props === 'object' &&
|
|
87
|
+
'content' in child.props &&
|
|
88
|
+
typeof child.props.content === 'string'
|
|
89
|
+
? child.props.content
|
|
90
|
+
: undefined,
|
|
73
91
|
},
|
|
74
92
|
}
|
|
75
93
|
})
|
|
@@ -296,7 +314,7 @@ function HeadShim(props: React.PropsWithChildren) {
|
|
|
296
314
|
HeadShim.Provider = React.Fragment
|
|
297
315
|
|
|
298
316
|
// Native Head is only enabled in bare iOS apps.
|
|
299
|
-
// @ts-
|
|
317
|
+
// @ts-expect-error
|
|
300
318
|
export const Head: HeadType = HeadModule ? HeadNative : HeadShim
|
|
301
319
|
|
|
302
320
|
Object.assign(Head, HeadModule)
|
package/src/head/Head.tsx
CHANGED
package/src/head/HeadModule.ts
CHANGED
package/src/head/url.tsx
CHANGED
|
@@ -63,7 +63,7 @@ function throwOrAlert(msg: string) {
|
|
|
63
63
|
console.warn(`TODO FIX: ${msg}`)
|
|
64
64
|
// // Production apps fatally crash which is often not helpful.
|
|
65
65
|
// if (
|
|
66
|
-
// // @ts-
|
|
66
|
+
// // @ts-expect-error: process is defined
|
|
67
67
|
// process.env.NODE_ENV === 'production'
|
|
68
68
|
// ) {
|
|
69
69
|
// console.error(msg)
|
package/src/hooks.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, { createContext,
|
|
1
|
+
import React, { createContext, type ReactNode, useContext } from 'react'
|
|
2
2
|
import type { OneRouter } from './interfaces/router'
|
|
3
3
|
import { router } from './router/imperative-api'
|
|
4
4
|
import { RouteParamsContext, useRouteNode } from './router/Route'
|
|
5
|
-
import { navigationRef, useStoreRootState, useStoreRouteInfo } from './router/router'
|
|
6
5
|
import { RouteInfoContext } from './router/RouteInfoContext'
|
|
6
|
+
import { navigationRef, useStoreRootState, useStoreRouteInfo } from './router/router'
|
|
7
7
|
|
|
8
8
|
type SearchParams = OneRouter.SearchParams
|
|
9
9
|
|
|
@@ -55,11 +55,7 @@ export function Frozen({ on = false, children }: { on?: boolean; children: React
|
|
|
55
55
|
return (
|
|
56
56
|
<FrozeContext.Provider value={on}>
|
|
57
57
|
{/* <Freeze freeze={on}> */}
|
|
58
|
-
<div
|
|
59
|
-
// @ts-ignore
|
|
60
|
-
inert
|
|
61
|
-
style={{ display: 'contents' }}
|
|
62
|
-
>
|
|
58
|
+
<div {...(on && { inert: true })} style={{ display: 'contents' }}>
|
|
63
59
|
{children}
|
|
64
60
|
</div>
|
|
65
61
|
{/* </Freeze> */}
|
package/src/index.ts
CHANGED
|
@@ -1,75 +1,66 @@
|
|
|
1
1
|
export { createApp } from './createApp'
|
|
2
2
|
|
|
3
|
-
export type {
|
|
3
|
+
export type { One, OneRouter } from './interfaces/router'
|
|
4
|
+
|
|
4
5
|
import type { OneRouter } from './interfaces/router'
|
|
5
6
|
|
|
6
7
|
export type Href = OneRouter.Href
|
|
7
8
|
export type LinkProps<T extends string | object = string> = OneRouter.LinkProps<T>
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
//
|
|
12
|
-
export
|
|
13
|
-
export { createRoute, route } from './router/createRoute'
|
|
14
|
-
export { onClientLoaderResolve } from './clientLoaderResolver'
|
|
15
|
-
|
|
16
|
-
// middleware
|
|
17
|
-
export { createMiddleware, type Middleware } from './createMiddleware'
|
|
18
|
-
|
|
19
|
-
// internals
|
|
20
|
-
export { render } from './render'
|
|
21
|
-
export { Root } from './Root'
|
|
22
|
-
export * as routerStore from './router/router'
|
|
23
|
-
|
|
24
|
-
// components
|
|
25
|
-
export { Stack } from './layouts/Stack'
|
|
26
|
-
export { Tabs } from './layouts/Tabs'
|
|
10
|
+
// hooks
|
|
11
|
+
export { useIsFocused } from '@react-navigation/core'
|
|
12
|
+
// re-export
|
|
13
|
+
export * from '@vxrn/universal-color-scheme'
|
|
27
14
|
// TODO breaking due to react-native-gesture-handler
|
|
28
15
|
// export { Drawer } from './layouts/Drawer'
|
|
29
16
|
// export { Unmatched } from './fallbackViews/Unmatched'
|
|
30
17
|
export { SafeAreaView } from 'react-native-safe-area-context'
|
|
31
|
-
export {
|
|
32
|
-
export { ErrorBoundary } from './views/ErrorBoundary'
|
|
33
|
-
export { ScrollBehavior } from './views/ScrollBehavior'
|
|
34
|
-
export { LoadProgressBar } from './views/LoadProgressBar'
|
|
35
|
-
export { Link } from './link/Link'
|
|
36
|
-
export { Redirect } from './link/Redirect'
|
|
37
|
-
export { Head } from './head'
|
|
18
|
+
export { onClientLoaderResolve } from './clientLoaderResolver'
|
|
38
19
|
|
|
39
|
-
//
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
20
|
+
// middleware
|
|
21
|
+
export { createMiddleware, type Middleware } from './createMiddleware'
|
|
22
|
+
export { getURL } from './getURL'
|
|
23
|
+
export { Head } from './head'
|
|
24
|
+
// for easier expo-router migration
|
|
43
25
|
export {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
26
|
+
useActiveParams,
|
|
27
|
+
useGlobalSearchParams,
|
|
28
|
+
useLocalSearchParams,
|
|
47
29
|
useNavigationContainerRef,
|
|
48
30
|
useParams,
|
|
49
|
-
|
|
50
|
-
useSegments,
|
|
31
|
+
usePathname,
|
|
51
32
|
useRootNavigationState,
|
|
33
|
+
useRouter,
|
|
34
|
+
useSegments,
|
|
35
|
+
useUnstableGlobalHref,
|
|
52
36
|
} from './hooks'
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
} from './hooks'
|
|
58
|
-
|
|
37
|
+
export { href } from './href'
|
|
38
|
+
// components
|
|
39
|
+
export { Stack } from './layouts/Stack'
|
|
40
|
+
export { Tabs } from './layouts/Tabs'
|
|
59
41
|
// utilities
|
|
60
42
|
export { withLayoutContext } from './layouts/withLayoutContext'
|
|
61
|
-
export {
|
|
62
|
-
export {
|
|
63
|
-
export {
|
|
64
|
-
export {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
export {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
export * from '
|
|
71
|
-
|
|
43
|
+
export { Link } from './link/Link'
|
|
44
|
+
export { Redirect } from './link/Redirect'
|
|
45
|
+
export { useLinkTo } from './link/useLinkTo'
|
|
46
|
+
export { Root } from './Root'
|
|
47
|
+
// internals
|
|
48
|
+
export { render } from './render'
|
|
49
|
+
export { createRoute, route } from './router/createRoute'
|
|
50
|
+
// base
|
|
51
|
+
export { router } from './router/imperative-api'
|
|
52
|
+
export * as routerStore from './router/router'
|
|
53
|
+
export { useNavigation } from './router/useNavigation'
|
|
54
|
+
export type { Endpoint, LoaderProps } from './types'
|
|
72
55
|
// React Navigation
|
|
73
56
|
export { useFocusEffect } from './useFocusEffect'
|
|
74
|
-
export { useNavigation } from './router/useNavigation'
|
|
75
57
|
export { useLoader } from './useLoader'
|
|
58
|
+
export { type ServerHeadInsertionCallback, useServerHeadInsertion } from './useServerHeadInsertion'
|
|
59
|
+
export { isResponse } from './utils/isResponse'
|
|
60
|
+
export { redirect } from './utils/redirect'
|
|
61
|
+
export { ErrorBoundary } from './views/ErrorBoundary'
|
|
62
|
+
export { LoadProgressBar } from './views/LoadProgressBar'
|
|
63
|
+
export { Navigator, Slot } from './views/Navigator'
|
|
64
|
+
export { ScrollBehavior } from './views/ScrollBehavior'
|
|
65
|
+
// server
|
|
66
|
+
export { getServerData, setResponseHeaders, setServerData } from './vite/one-server-only'
|
package/src/interfaces/router.ts
CHANGED
|
@@ -3,8 +3,8 @@ import type {
|
|
|
3
3
|
NavigationState,
|
|
4
4
|
PartialState,
|
|
5
5
|
} from '@react-navigation/core'
|
|
6
|
-
import type { ReactNode } from 'react'
|
|
7
|
-
import type {
|
|
6
|
+
import type { JSX, ReactNode } from 'react'
|
|
7
|
+
import type { GestureResponderEvent, PressableProps, TextProps } from 'react-native'
|
|
8
8
|
|
|
9
9
|
export namespace OneRouter {
|
|
10
10
|
export interface __routes<T extends string = string> extends Record<string, unknown> {}
|
package/src/layouts/Drawer.tsx
CHANGED
package/src/layouts/Stack.tsx
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ParamListBase, StackNavigationState } from '@react-navigation/native'
|
|
2
2
|
import {
|
|
3
|
+
createNativeStackNavigator,
|
|
3
4
|
type NativeStackNavigationEventMap,
|
|
4
5
|
type NativeStackNavigationOptions,
|
|
5
|
-
createNativeStackNavigator,
|
|
6
6
|
} from '@react-navigation/native-stack'
|
|
7
7
|
|
|
8
8
|
import { withLayoutContext } from './withLayoutContext'
|
package/src/layouts/Tabs.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
createBottomTabNavigator,
|
|
3
|
-
type BottomTabNavigationEventMap,
|
|
4
|
-
type BottomTabNavigationOptions,
|
|
5
2
|
BottomTabBar,
|
|
6
3
|
type BottomTabBarProps,
|
|
4
|
+
type BottomTabNavigationEventMap,
|
|
5
|
+
type BottomTabNavigationOptions,
|
|
6
|
+
createBottomTabNavigator,
|
|
7
7
|
} from '@react-navigation/bottom-tabs'
|
|
8
8
|
import type { ParamListBase, TabNavigationState } from '@react-navigation/native'
|
|
9
9
|
import { Platform, Pressable } from 'react-native'
|
|
@@ -72,7 +72,7 @@ export const Tabs = withLayoutContext<
|
|
|
72
72
|
style={[{ display: 'flex' }, props.style]}
|
|
73
73
|
href={href}
|
|
74
74
|
asChild={Platform.OS !== 'web'}
|
|
75
|
-
// biome-ignore lint/correctness/noChildrenProp:
|
|
75
|
+
// biome-ignore lint/correctness/noChildrenProp: children prop needed for asChild pattern
|
|
76
76
|
children={children}
|
|
77
77
|
/>
|
|
78
78
|
)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { EventMapBase, NavigationState } from '@react-navigation/native'
|
|
2
2
|
import React from 'react'
|
|
3
3
|
import { useContextKey } from '../router/Route'
|
|
4
|
+
import { type ScreenProps, useSortedScreens } from '../router/useScreens'
|
|
4
5
|
import type { PickPartial } from '../types'
|
|
5
|
-
import { useSortedScreens, type ScreenProps } from '../router/useScreens'
|
|
6
|
-
import { Screen } from '../views/Screen'
|
|
7
6
|
import { withStaticProperties } from '../utils/withStaticProperties'
|
|
7
|
+
import { Screen } from '../views/Screen'
|
|
8
8
|
|
|
9
9
|
export function useFilterScreenChildren(
|
|
10
10
|
children: React.ReactNode,
|
|
@@ -22,19 +22,28 @@ export function useFilterScreenChildren(
|
|
|
22
22
|
|
|
23
23
|
const screens = React.Children.map(children, (child) => {
|
|
24
24
|
if (React.isValidElement(child) && child && child.type === Screen) {
|
|
25
|
-
if (
|
|
25
|
+
if (
|
|
26
|
+
typeof child.props === 'object' &&
|
|
27
|
+
child.props &&
|
|
28
|
+
'name' in child.props &&
|
|
29
|
+
!child.props.name
|
|
30
|
+
) {
|
|
26
31
|
throw new Error(
|
|
27
32
|
`<Screen /> component in \`default export\` at \`app${contextKey}/_layout\` must have a \`name\` prop when used as a child of a Layout Route.`
|
|
28
33
|
)
|
|
29
34
|
}
|
|
30
35
|
if (process.env.NODE_ENV !== 'production') {
|
|
31
|
-
if (
|
|
36
|
+
if (
|
|
37
|
+
['children', 'component', 'getComponent'].some(
|
|
38
|
+
(key) => child.props && typeof child.props === 'object' && key in child.props
|
|
39
|
+
)
|
|
40
|
+
) {
|
|
32
41
|
throw new Error(
|
|
33
42
|
`<Screen /> component in \`default export\` at \`app${contextKey}/_layout\` must not have a \`children\`, \`component\`, or \`getComponent\` prop when used as a child of a Layout Route`
|
|
34
43
|
)
|
|
35
44
|
}
|
|
36
45
|
}
|
|
37
|
-
return child.props
|
|
46
|
+
return child.props as ScreenProps
|
|
38
47
|
}
|
|
39
48
|
|
|
40
49
|
if (isCustomNavigator) {
|
|
@@ -44,6 +53,8 @@ export function useFilterScreenChildren(
|
|
|
44
53
|
`Layout children must be of type Screen, all other children are ignored. To use custom children, create a custom <Layout />. Update Layout Route at: "app${contextKey}/_layout"`
|
|
45
54
|
)
|
|
46
55
|
}
|
|
56
|
+
|
|
57
|
+
return null
|
|
47
58
|
})?.filter(Boolean)
|
|
48
59
|
|
|
49
60
|
// Add an assertion for development
|
|
@@ -83,8 +94,8 @@ export function withLayoutContext<
|
|
|
83
94
|
contextKey,
|
|
84
95
|
})
|
|
85
96
|
|
|
86
|
-
const processed = processor ? processor(screens ?? []) : screens
|
|
87
|
-
const sorted = useSortedScreens(processed ?? [], {
|
|
97
|
+
const processed = processor ? processor(screens ?? ([] as any)) : screens
|
|
98
|
+
const sorted = useSortedScreens((processed ?? []) as any, {
|
|
88
99
|
onlyMatching: true,
|
|
89
100
|
})
|
|
90
101
|
|
package/src/link/Link.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// `to` / `action` support removed.
|
|
3
3
|
import { Slot } from '@radix-ui/react-slot'
|
|
4
4
|
import * as React from 'react'
|
|
5
|
-
import { Platform, Text, type
|
|
5
|
+
import { type GestureResponderEvent, Platform, Text, type TextProps } from 'react-native'
|
|
6
6
|
|
|
7
7
|
import type { OneRouter } from '../interfaces/router'
|
|
8
8
|
import { resolveHref } from './href'
|
package/src/link/linking.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { adjustPathname } from '../fork/extractPathFromURL'
|
|
|
5
5
|
import { getPathFromState } from '../fork/getPathFromState'
|
|
6
6
|
import { getStateFromPath } from '../fork/getStateFromPath'
|
|
7
7
|
|
|
8
|
-
// @ts-
|
|
8
|
+
// @ts-expect-error
|
|
9
9
|
const isExpoGo = typeof expo !== 'undefined' && globalThis.expo?.modules?.ExpoGo
|
|
10
10
|
|
|
11
11
|
// A custom getInitialURL is used on native to ensure the app always starts at
|
package/src/link/useLinkTo.tsx
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as React from 'react'
|
|
2
|
-
import {
|
|
2
|
+
import { type GestureResponderEvent, Platform } from 'react-native'
|
|
3
3
|
|
|
4
4
|
import { appendBaseUrl } from '../fork/getPathFromState-mods'
|
|
5
|
-
import { useOneRouter } from '../router/router'
|
|
6
5
|
import { stripGroupSegmentsFromPath } from '../router/matchers'
|
|
6
|
+
import { useOneRouter } from '../router/router'
|
|
7
7
|
|
|
8
8
|
function eventShouldPreventDefault(
|
|
9
9
|
e: React.MouseEvent<HTMLAnchorElement, MouseEvent> | GestureResponderEvent
|