one 1.1.546 → 1.1.547-1762235181981
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/Root.cjs +3 -2
- package/dist/cjs/Root.js +2 -2
- package/dist/cjs/Root.js.map +1 -1
- package/dist/cjs/Root.native.js +3 -2
- package/dist/cjs/Root.native.js.map +1 -1
- 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/extractPathFromURL.cjs +1 -1
- package/dist/cjs/fork/extractPathFromURL.js +1 -1
- package/dist/cjs/fork/extractPathFromURL.js.map +1 -1
- package/dist/cjs/fork/extractPathFromURL.native.js +1 -1
- package/dist/cjs/fork/extractPathFromURL.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.js.map +1 -1
- package/dist/cjs/layouts/Tabs.native.js +1 -1
- package/dist/cjs/layouts/Tabs.native.js.map +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 +5 -5
- package/dist/cjs/router/RouteInfoContext.js +3 -3
- package/dist/cjs/router/RouteInfoContext.js.map +1 -1
- package/dist/cjs/router/RouteInfoContext.native.js +4 -4
- 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/getRouteInfo.cjs +50 -0
- package/dist/cjs/router/getRouteInfo.js +41 -0
- package/dist/cjs/router/getRouteInfo.js.map +6 -0
- package/dist/cjs/router/getRouteInfo.native.js +56 -0
- package/dist/cjs/router/getRouteInfo.native.js.map +1 -0
- 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/isIndexPath.cjs +36 -0
- package/dist/cjs/router/isIndexPath.js +31 -0
- package/dist/cjs/router/isIndexPath.js.map +6 -0
- package/dist/cjs/router/isIndexPath.native.js +41 -0
- package/dist/cjs/router/isIndexPath.native.js.map +1 -0
- package/dist/cjs/router/linkingConfig.cjs +43 -0
- package/dist/cjs/router/linkingConfig.js +41 -0
- package/dist/cjs/router/linkingConfig.js.map +6 -0
- package/dist/cjs/router/linkingConfig.native.js +52 -0
- package/dist/cjs/router/linkingConfig.native.js.map +1 -0
- 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/router.cjs +9 -44
- package/dist/cjs/router/router.js +9 -44
- package/dist/cjs/router/router.js.map +2 -2
- package/dist/cjs/router/router.native.js +10 -55
- package/dist/cjs/router/router.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/setup.cjs +0 -1
- package/dist/cjs/setup.js +0 -1
- package/dist/cjs/setup.js.map +2 -2
- package/dist/cjs/setup.native.js.map +1 -6
- 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 +6 -7
- package/dist/cjs/vite/one.js +2 -3
- package/dist/cjs/vite/one.js.map +1 -1
- package/dist/cjs/vite/one.native.js +6 -7
- 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 +3 -2
- package/dist/esm/Root.js.map +1 -1
- package/dist/esm/Root.mjs +3 -2
- package/dist/esm/Root.mjs.map +1 -1
- package/dist/esm/Root.native.js +3 -2
- 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/extractPathFromURL.js +1 -1
- package/dist/esm/fork/extractPathFromURL.js.map +1 -1
- package/dist/esm/fork/extractPathFromURL.mjs +1 -1
- package/dist/esm/fork/extractPathFromURL.mjs.map +1 -1
- package/dist/esm/fork/extractPathFromURL.native.js +1 -1
- package/dist/esm/fork/extractPathFromURL.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 +3 -3
- package/dist/esm/router/RouteInfoContext.js.map +1 -1
- package/dist/esm/router/RouteInfoContext.mjs +3 -3
- package/dist/esm/router/RouteInfoContext.mjs.map +1 -1
- package/dist/esm/router/RouteInfoContext.native.js +3 -3
- 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/getRouteInfo.js +29 -0
- package/dist/esm/router/getRouteInfo.js.map +6 -0
- package/dist/esm/router/getRouteInfo.mjs +27 -0
- package/dist/esm/router/getRouteInfo.mjs.map +1 -0
- package/dist/esm/router/getRouteInfo.native.js +30 -0
- package/dist/esm/router/getRouteInfo.native.js.map +1 -0
- 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/isIndexPath.js +15 -0
- package/dist/esm/router/isIndexPath.js.map +6 -0
- package/dist/esm/router/isIndexPath.mjs +13 -0
- package/dist/esm/router/isIndexPath.mjs.map +1 -0
- package/dist/esm/router/isIndexPath.native.js +15 -0
- package/dist/esm/router/isIndexPath.native.js.map +1 -0
- package/dist/esm/router/linkingConfig.js +25 -0
- package/dist/esm/router/linkingConfig.js.map +6 -0
- package/dist/esm/router/linkingConfig.mjs +17 -0
- package/dist/esm/router/linkingConfig.mjs.map +1 -0
- package/dist/esm/router/linkingConfig.native.js +23 -0
- package/dist/esm/router/linkingConfig.native.js.map +1 -0
- 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 +10 -49
- package/dist/esm/router/router.js.map +2 -2
- package/dist/esm/router/router.mjs +9 -42
- package/dist/esm/router/router.mjs.map +1 -1
- package/dist/esm/router/router.native.js +10 -53
- 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/setup.js +0 -1
- package/dist/esm/setup.js.map +2 -2
- package/dist/esm/setup.mjs +1 -1
- package/dist/esm/setup.mjs.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 +4 -5
- package/dist/esm/vite/one.js.map +1 -1
- package/dist/esm/vite/one.mjs +4 -5
- package/dist/esm/vite/one.mjs.map +1 -1
- package/dist/esm/vite/one.native.js +4 -5
- 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 +36 -34
- package/src/Root.tsx +9 -9
- 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/extractPathFromURL.ts +1 -1
- 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 +5 -5
- 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 +3 -3
- package/src/router/filterRootHTML.ts +21 -7
- package/src/router/getLinkingConfig.ts +1 -1
- package/src/router/getRouteInfo.ts +37 -0
- package/src/router/imperative-api.ts +1 -1
- package/src/router/isIndexPath.ts +33 -0
- package/src/router/linkingConfig.ts +38 -0
- package/src/router/matchers.test.ts +4 -4
- package/src/router/matchers.ts +2 -2
- package/src/router/router.ts +18 -90
- 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 +3 -2
- 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 +9 -12
- 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 +7 -15
- package/types/layouts/Drawer.d.ts.map +1 -1
- package/types/layouts/Stack.d.ts +6 -14
- package/types/layouts/Stack.d.ts.map +1 -1
- package/types/layouts/Tabs.d.ts +6 -14
- 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/getRouteInfo.d.ts +4 -0
- package/types/router/getRouteInfo.d.ts.map +1 -0
- package/types/router/imperative-api.d.ts.map +1 -1
- package/types/router/isIndexPath.d.ts +3 -0
- package/types/router/isIndexPath.d.ts.map +1 -0
- package/types/router/linkingConfig.d.ts +8 -0
- package/types/router/linkingConfig.d.ts.map +1 -0
- package/types/router/router.d.ts +8 -6
- 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/setup.d.ts +0 -1
- package/types/setup.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/vendor/react-dom/package.json +1 -1
- /package/types/vercel/build/generate/{createSsrServerlessFunction.d.ts → createSSRServerlessFunction.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "one",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.547-1762235181981",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"setup.mjs",
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
"check": "yarn depcheck",
|
|
91
91
|
"clean": "tamagui-build clean",
|
|
92
92
|
"clean:build": "tamagui-build clean:build",
|
|
93
|
+
"lint": "../../node_modules/.bin/biome check src",
|
|
93
94
|
"lint:fix": "../../node_modules/.bin/biome check --write --unsafe src",
|
|
94
95
|
"test": "yarn vitest --run",
|
|
95
96
|
"typecheck": "tsc --noEmit",
|
|
@@ -103,28 +104,28 @@
|
|
|
103
104
|
"@babel/traverse": "^7.28.5",
|
|
104
105
|
"@babel/types": "^7.28.5",
|
|
105
106
|
"@radix-ui/react-slot": "^1.0.2",
|
|
106
|
-
"@react-native-masked-view/masked-view": "^0.3.
|
|
107
|
-
"@react-navigation/bottom-tabs": "7.3
|
|
108
|
-
"@react-navigation/drawer": "7.
|
|
109
|
-
"@react-navigation/elements": "2.
|
|
110
|
-
"@react-navigation/native-stack": "7.
|
|
111
|
-
"@react-navigation/routers": "
|
|
112
|
-
"@swc/core": "^1.
|
|
107
|
+
"@react-native-masked-view/masked-view": "^0.3.2",
|
|
108
|
+
"@react-navigation/bottom-tabs": "^7.7.3",
|
|
109
|
+
"@react-navigation/drawer": "^7.7.2",
|
|
110
|
+
"@react-navigation/elements": "^2.8.1",
|
|
111
|
+
"@react-navigation/native-stack": "^7.6.2",
|
|
112
|
+
"@react-navigation/routers": "^7.5.1",
|
|
113
|
+
"@swc/core": "^1.14.0",
|
|
113
114
|
"@ungap/structured-clone": "^1.2.0",
|
|
114
|
-
"@vxrn/compiler": "1.1.
|
|
115
|
-
"@vxrn/resolve": "1.1.
|
|
116
|
-
"@vxrn/tslib-lite": "1.1.
|
|
117
|
-
"@vxrn/universal-color-scheme": "1.1.
|
|
118
|
-
"@vxrn/use-isomorphic-layout-effect": "1.1.
|
|
119
|
-
"@vxrn/vite-plugin-metro": "1.1.
|
|
120
|
-
"babel-dead-code-elimination": "^1.0.
|
|
121
|
-
"babel-plugin-module-resolver": "^5",
|
|
115
|
+
"@vxrn/compiler": "1.1.547-1762235181981",
|
|
116
|
+
"@vxrn/resolve": "1.1.547-1762235181981",
|
|
117
|
+
"@vxrn/tslib-lite": "1.1.547-1762235181981",
|
|
118
|
+
"@vxrn/universal-color-scheme": "1.1.547-1762235181981",
|
|
119
|
+
"@vxrn/use-isomorphic-layout-effect": "1.1.547-1762235181981",
|
|
120
|
+
"@vxrn/vite-plugin-metro": "1.1.547-1762235181981",
|
|
121
|
+
"babel-dead-code-elimination": "^1.0.10",
|
|
122
|
+
"babel-plugin-module-resolver": "^5.0.2",
|
|
122
123
|
"citty": "^0.1.6",
|
|
123
124
|
"core-js": "^3.38.1",
|
|
124
|
-
"create-vxrn": "1.1.
|
|
125
|
+
"create-vxrn": "1.1.547-1762235181981",
|
|
125
126
|
"escape-string-regexp": "^5.0.0",
|
|
126
|
-
"expo-linking": "~
|
|
127
|
-
"expo-modules-core": "~
|
|
127
|
+
"expo-linking": "~8.0.8",
|
|
128
|
+
"expo-modules-core": "~3.0.24",
|
|
128
129
|
"fast-deep-equal": "^3.1.3",
|
|
129
130
|
"fast-glob": "^3.3.3",
|
|
130
131
|
"fs-extra": "^11.2.0",
|
|
@@ -134,27 +135,28 @@
|
|
|
134
135
|
"nanoid": "^3.3.7",
|
|
135
136
|
"perfect-debounce": "^1.0.0",
|
|
136
137
|
"picocolors": "^1.0.0",
|
|
137
|
-
"react": "
|
|
138
|
+
"react": "19.1.0",
|
|
138
139
|
"react-compiler-runtime": "^19.0.0-beta-201e55d-20241215",
|
|
139
|
-
"react-dom": "
|
|
140
|
-
"react-native-css-interop": "^0.1
|
|
141
|
-
"react-native-gesture-handler": "~2.
|
|
142
|
-
"react-native-reanimated": "
|
|
140
|
+
"react-dom": "19.1.0",
|
|
141
|
+
"react-native-css-interop": "^0.2.1",
|
|
142
|
+
"react-native-gesture-handler": "~2.28.0",
|
|
143
|
+
"react-native-reanimated": "~4.1.3",
|
|
144
|
+
"react-native-worklets": "0.5.1",
|
|
143
145
|
"ts-pattern": "^5.6.2",
|
|
144
146
|
"tsconfig-paths": "^4",
|
|
145
147
|
"use-latest-callback": "^0.2.3",
|
|
146
148
|
"vite": "^7.1.12",
|
|
147
149
|
"vite-plugin-barrel": "^0.4.1",
|
|
148
150
|
"vite-tsconfig-paths": "^5.1.4",
|
|
149
|
-
"vxrn": "1.1.
|
|
151
|
+
"vxrn": "1.1.547-1762235181981",
|
|
150
152
|
"ws": "^8.18.0",
|
|
151
153
|
"xxhashjs": "^0.2.2"
|
|
152
154
|
},
|
|
153
155
|
"peerDependencies": {
|
|
154
156
|
"@react-navigation/native": "~7.1.0",
|
|
155
157
|
"react-native": "*",
|
|
156
|
-
"react-native-safe-area-context": "5.
|
|
157
|
-
"react-native-screens": "4.
|
|
158
|
+
"react-native-safe-area-context": "~5.6.1",
|
|
159
|
+
"react-native-screens": "~4.16.0"
|
|
158
160
|
},
|
|
159
161
|
"peerDependenciesMeta": {
|
|
160
162
|
"react-native": {
|
|
@@ -162,18 +164,18 @@
|
|
|
162
164
|
}
|
|
163
165
|
},
|
|
164
166
|
"devDependencies": {
|
|
165
|
-
"@react-navigation/core": "
|
|
166
|
-
"@react-navigation/native": "
|
|
167
|
-
"@tamagui/build": "^1.
|
|
168
|
-
"@types/node": "^
|
|
169
|
-
"@types/react-dom": "^
|
|
167
|
+
"@react-navigation/core": "^7.13.0",
|
|
168
|
+
"@react-navigation/native": "^7.1.19",
|
|
169
|
+
"@tamagui/build": "^1.136.1",
|
|
170
|
+
"@types/node": "^24.10.0",
|
|
171
|
+
"@types/react-dom": "^19.2.2",
|
|
170
172
|
"@types/xxhashjs": "^0.2.4",
|
|
171
173
|
"depcheck": "^1.4.7",
|
|
172
174
|
"immer": "^10.1.1",
|
|
173
|
-
"react-native": "
|
|
175
|
+
"react-native": "0.81.5",
|
|
174
176
|
"rollup": "^4.29.1",
|
|
175
177
|
"typescript": "^5.7.3",
|
|
176
|
-
"vitest": "^4.0.
|
|
178
|
+
"vitest": "^4.0.6"
|
|
177
179
|
},
|
|
178
180
|
"publishConfig": {
|
|
179
181
|
"access": "public"
|
package/src/Root.tsx
CHANGED
|
@@ -7,22 +7,22 @@ import {
|
|
|
7
7
|
import { useColorScheme } from '@vxrn/universal-color-scheme'
|
|
8
8
|
import {
|
|
9
9
|
createContext,
|
|
10
|
+
type FunctionComponent,
|
|
11
|
+
type ReactNode,
|
|
10
12
|
StrictMode,
|
|
11
|
-
Suspense,
|
|
12
13
|
useContext,
|
|
13
14
|
useId,
|
|
14
15
|
useLayoutEffect,
|
|
15
16
|
useState,
|
|
16
|
-
type FunctionComponent,
|
|
17
|
-
type ReactNode,
|
|
18
17
|
} from 'react'
|
|
19
18
|
import { SERVER_CONTEXT_KEY } from './constants'
|
|
20
19
|
import { NavigationContainer as UpstreamNavigationContainer } from './fork/NavigationContainer'
|
|
21
20
|
import { getURL } from './getURL'
|
|
21
|
+
import { FlagsContext } from './router/FlagsContext'
|
|
22
|
+
import { getLinking } from './router/linkingConfig'
|
|
22
23
|
import { ServerLocationContext } from './router/serverLocationContext'
|
|
23
24
|
import { useInitializeOneRouter } from './router/useInitializeOneRouter'
|
|
24
25
|
import { useViteRoutes } from './router/useViteRoutes'
|
|
25
|
-
import { FlagsContext } from './router/FlagsContext'
|
|
26
26
|
import type { GlobbedRouteImports } from './types'
|
|
27
27
|
import { ServerRenderID } from './useServerHeadInsertion'
|
|
28
28
|
import { PreloadLinks } from './views/PreloadLinks'
|
|
@@ -97,7 +97,7 @@ export function Root(props: RootProps) {
|
|
|
97
97
|
<UpstreamNavigationContainer
|
|
98
98
|
ref={store.navigationRef}
|
|
99
99
|
initialState={store.initialState}
|
|
100
|
-
linking={
|
|
100
|
+
linking={getLinking()}
|
|
101
101
|
onUnhandledAction={onUnhandledAction}
|
|
102
102
|
theme={colorScheme === 'dark' ? DarkTheme : DefaultTheme}
|
|
103
103
|
documentTitle={{
|
|
@@ -244,22 +244,22 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
244
244
|
// // its so hard to debug ssr and we get no componentstack trace, this helps:
|
|
245
245
|
// if (typeof window === 'undefined') {
|
|
246
246
|
// const og = React.createElement
|
|
247
|
-
// // @ts-
|
|
247
|
+
// // @ts-expect-error
|
|
248
248
|
// React.createElement = (...args) => {
|
|
249
249
|
// if (!args[0]) {
|
|
250
250
|
// console.trace('Missing export, better stack trace here', !!args[0])
|
|
251
251
|
// }
|
|
252
|
-
// // @ts-
|
|
252
|
+
// // @ts-expect-error
|
|
253
253
|
// return og(...args)
|
|
254
254
|
// }
|
|
255
255
|
|
|
256
256
|
// const og2 = JSX.jsx
|
|
257
|
-
// // @ts-
|
|
257
|
+
// // @ts-expect-error
|
|
258
258
|
// JSX.jsx = (...args) => {
|
|
259
259
|
// if (!args[0]) {
|
|
260
260
|
// console.trace('Missing export, better stack trace here', !!args[0])
|
|
261
261
|
// }
|
|
262
|
-
// // @ts-
|
|
262
|
+
// // @ts-expect-error
|
|
263
263
|
// return og2(...args)
|
|
264
264
|
// }
|
|
265
265
|
// }
|
package/src/cli/build.ts
CHANGED
|
@@ -1,32 +1,31 @@
|
|
|
1
|
-
import FSExtra from 'fs-extra'
|
|
2
|
-
import MicroMatch from 'micromatch'
|
|
3
1
|
import { createRequire } from 'node:module'
|
|
4
2
|
import Path, { join, relative, resolve } from 'node:path'
|
|
3
|
+
import FSExtra from 'fs-extra'
|
|
4
|
+
import MicroMatch from 'micromatch'
|
|
5
5
|
import type { OutputAsset, RollupOutput } from 'rollup'
|
|
6
|
-
import { mergeConfig, build as viteBuild
|
|
6
|
+
import { type InlineConfig, mergeConfig, build as viteBuild } from 'vite'
|
|
7
7
|
import {
|
|
8
|
+
type ClientManifestEntry,
|
|
8
9
|
fillOptions,
|
|
9
10
|
getOptimizeDeps,
|
|
10
11
|
loadEnv,
|
|
11
12
|
rollupRemoveUnusedImportsPlugin,
|
|
12
13
|
build as vxrnBuild,
|
|
13
|
-
type ClientManifestEntry,
|
|
14
14
|
} from 'vxrn'
|
|
15
15
|
|
|
16
16
|
import * as constants from '../constants'
|
|
17
17
|
import { setServerGlobals } from '../server/setServerGlobals'
|
|
18
|
+
import { getPathnameFromFilePath } from '../utils/getPathnameFromFilePath'
|
|
19
|
+
import { getRouterRootFromOneOptions } from '../utils/getRouterRootFromOneOptions'
|
|
18
20
|
import { toAbsolute } from '../utils/toAbsolute'
|
|
21
|
+
import { buildVercelOutputDirectory } from '../vercel/build/buildVercelOutputDirectory'
|
|
19
22
|
import { getManifest } from '../vite/getManifest'
|
|
20
23
|
import { loadUserOneOptions } from '../vite/loadConfig'
|
|
21
24
|
import { runWithAsyncLocalContext } from '../vite/one-server-only'
|
|
22
25
|
import type { One, RouteInfo } from '../vite/types'
|
|
23
|
-
import { buildVercelOutputDirectory } from '../vercel/build/buildVercelOutputDirectory'
|
|
24
|
-
import { getRouterRootFromOneOptions } from '../utils/getRouterRootFromOneOptions'
|
|
25
|
-
|
|
26
26
|
import { buildPage } from './buildPage'
|
|
27
27
|
import { checkNodeVersion } from './checkNodeVersion'
|
|
28
28
|
import { labelProcess } from './label-process'
|
|
29
|
-
import { getPathnameFromFilePath } from '../utils/getPathnameFromFilePath'
|
|
30
29
|
|
|
31
30
|
const { ensureDir, writeJSON } = FSExtra
|
|
32
31
|
|
package/src/cli/buildPage.ts
CHANGED
package/src/cli.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineCommand, runMain, showUsage } from 'citty'
|
|
2
|
-
import colors from 'picocolors'
|
|
3
1
|
import { readFileSync } from 'node:fs'
|
|
4
2
|
import path from 'node:path'
|
|
5
3
|
import { fileURLToPath } from 'node:url'
|
|
4
|
+
import { defineCommand, runMain, showUsage } from 'citty'
|
|
5
|
+
import colors from 'picocolors'
|
|
6
6
|
|
|
7
7
|
function getPackageVersion() {
|
|
8
8
|
let dirname
|
package/src/constants.ts
CHANGED
|
@@ -21,7 +21,9 @@ export const SERVER_CONTEXT_KEY = '__one_server_context__'
|
|
|
21
21
|
|
|
22
22
|
export const getSpaHeaderElements = ({
|
|
23
23
|
serverContext = {},
|
|
24
|
-
}: {
|
|
24
|
+
}: {
|
|
25
|
+
serverContext?: One.ServerContext
|
|
26
|
+
} = {}) => `
|
|
25
27
|
<script>globalThis['global'] = globalThis</script>
|
|
26
28
|
<script>globalThis['__vxrnIsSPA'] = true</script>
|
|
27
29
|
<script>globalThis["${SERVER_CONTEXT_KEY}"] = ${JSON.stringify(serverContext)}</script>
|
package/src/createApp.tsx
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import './setup'
|
|
2
2
|
|
|
3
|
+
import { cloneElement } from 'react'
|
|
4
|
+
import ReactDOMServer from 'react-dom/server.browser'
|
|
3
5
|
import { AppRegistry } from 'react-native'
|
|
4
|
-
import { Root } from './Root'
|
|
5
6
|
import { resolveClientLoader } from './clientLoaderResolver'
|
|
7
|
+
import { Root } from './Root'
|
|
6
8
|
import { render } from './render'
|
|
7
9
|
import { renderToString } from './server-render'
|
|
8
10
|
import type { RenderAppProps } from './types'
|
|
9
|
-
// @ts-ignore
|
|
10
|
-
import ReactDOMServer from 'react-dom/server.browser'
|
|
11
11
|
import { getServerHeadInsertions } from './useServerHeadInsertion'
|
|
12
12
|
import { ensureExists } from './utils/ensureExists'
|
|
13
|
-
import type { One } from './vite/types'
|
|
14
13
|
import { SERVER_CONTEXT_POST_RENDER_STRING } from './vite/constants'
|
|
15
14
|
import { getServerContext, setServerContext } from './vite/one-server-only'
|
|
16
|
-
import {
|
|
15
|
+
import type { One } from './vite/types'
|
|
17
16
|
|
|
18
17
|
export type CreateAppProps = {
|
|
19
18
|
routes: Record<string, () => Promise<unknown>>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { NativeStackNavigationOptions } from '@react-navigation/native-stack'
|
|
2
2
|
import { Image, Pressable, StyleSheet, Text, View } from 'react-native'
|
|
3
|
+
|
|
3
4
|
// import React from 'react'
|
|
4
5
|
// import { Platform, ScrollView, StatusBar, useWindowDimensions } from 'react-native'
|
|
5
6
|
// import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
@@ -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'
|
|
@@ -37,7 +37,7 @@ function extractExactPathFromURL(url: string): string {
|
|
|
37
37
|
return href.replace(origin, '')
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
const isExpoGo = typeof expo !== 'undefined' && globalThis.expo?.modules?.ExpoGo
|
|
40
|
+
const isExpoGo = typeof globalThis.expo !== 'undefined' && globalThis.expo?.modules?.ExpoGo
|
|
41
41
|
|
|
42
42
|
// Handle special URLs used in Expo Go: `/--/pathname` -> `pathname`
|
|
43
43
|
if (
|
|
@@ -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