one 1.1.547-1762219526973 → 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/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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type NavigationProp, type NavigationState, useNavigation } from '@react-navigation/native'
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from 'react'
|
|
3
3
|
|
|
4
4
|
import { useOneRouter } from '../router/router'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { metroPlugin } from '@vxrn/vite-plugin-metro'
|
|
2
1
|
import module from 'node:module'
|
|
3
2
|
import path from 'node:path'
|
|
4
|
-
import
|
|
3
|
+
import type { metroPlugin } from '@vxrn/vite-plugin-metro'
|
|
5
4
|
import mm from 'micromatch'
|
|
5
|
+
import tsconfigPaths from 'tsconfig-paths'
|
|
6
6
|
import {
|
|
7
7
|
API_ROUTE_GLOB_PATTERN,
|
|
8
8
|
ROUTE_NATIVE_EXCLUSION_GLOB_PATTERNS,
|
|
@@ -44,6 +44,7 @@ export function getViteMetroPluginOptions({
|
|
|
44
44
|
]
|
|
45
45
|
|
|
46
46
|
const supportedRegexMustStartWith = String.raw`^(?:(?:^|\/|(?:(?:(?!(?:^|\/)\.).)*?)\/)(?!\.)(?=.)[^/]*?`
|
|
47
|
+
// biome-ignore lint/complexity/noUselessStringRaw: keep original code
|
|
47
48
|
const supportedRegexMustEndWith = String.raw`)$`
|
|
48
49
|
|
|
49
50
|
const negativeLookaheadGroups = excludeRes.map((re, i) => {
|
|
@@ -77,6 +78,7 @@ export function getViteMetroPluginOptions({
|
|
|
77
78
|
reSource.length - supportedRegexMustEndWith.length
|
|
78
79
|
)
|
|
79
80
|
|
|
81
|
+
// biome-ignore lint/complexity/noUselessStringRaw: keep original code
|
|
80
82
|
return String.raw`(?:.*${rePart})`
|
|
81
83
|
})
|
|
82
84
|
|
package/src/polyfills-mobile.ts
CHANGED
|
@@ -6,6 +6,7 @@ globalThis['global'] = globalThis
|
|
|
6
6
|
// --------------- structuredClone -------------------
|
|
7
7
|
|
|
8
8
|
import structuredClone from '@ungap/structured-clone'
|
|
9
|
+
|
|
9
10
|
globalThis['structuredClone'] ||= structuredClone
|
|
10
11
|
|
|
11
12
|
// --------------- structuredClone -------------------
|
|
@@ -31,6 +32,5 @@ import 'core-js/actual/url-search-params'
|
|
|
31
32
|
// --------------- Promise.withResolver -------------------
|
|
32
33
|
|
|
33
34
|
import { promiseWithResolvers } from './utils/promiseWithResolvers'
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
(Promise.withResolvers = promiseWithResolvers)
|
|
35
|
+
|
|
36
|
+
Promise.withResolvers || (Promise.withResolvers = promiseWithResolvers)
|
package/src/render.tsx
CHANGED
|
@@ -31,7 +31,6 @@ export function render(element: React.ReactNode) {
|
|
|
31
31
|
console.error(...args)
|
|
32
32
|
console.groupEnd()
|
|
33
33
|
},
|
|
34
|
-
// @ts-expect-error
|
|
35
34
|
onUncaughtError(...args) {
|
|
36
35
|
console.error(`[one] onUncaughtError`, ...args)
|
|
37
36
|
},
|
|
@@ -43,7 +42,9 @@ export function render(element: React.ReactNode) {
|
|
|
43
42
|
})
|
|
44
43
|
}
|
|
45
44
|
|
|
46
|
-
listeners.forEach((cb) =>
|
|
45
|
+
listeners.forEach((cb) => {
|
|
46
|
+
cb()
|
|
47
|
+
})
|
|
47
48
|
didRender = true
|
|
48
49
|
}
|
|
49
50
|
|
package/src/router/Route.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { createContext,
|
|
1
|
+
import React, { createContext, type ReactNode, useContext } from 'react'
|
|
2
2
|
import type { ErrorBoundaryProps } from '../views/Try'
|
|
3
3
|
import type { One } from '../vite/types'
|
|
4
4
|
import { getContextKey } from './matchers'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { useStateForPath } from '@react-navigation/core'
|
|
1
2
|
import type React from 'react'
|
|
2
3
|
import { createContext, useRef } from 'react'
|
|
3
4
|
import type { UrlObject } from './getNormalizedStatePath'
|
|
4
|
-
import { useStateForPath } from '@react-navigation/core'
|
|
5
5
|
import { getRouteInfo } from './getRouteInfo'
|
|
6
6
|
|
|
7
7
|
export const RouteInfoContext = createContext<UrlObject | undefined>(undefined)
|
|
@@ -44,7 +44,7 @@ export function RouteInfoContextProvider({ children }: { children: React.ReactNo
|
|
|
44
44
|
const lastStateRef = useRef<typeof currentState>(undefined)
|
|
45
45
|
const cachedRouteInfoValueRef = useRef<UrlObject | undefined>(undefined)
|
|
46
46
|
|
|
47
|
-
const lazilyCalculatedRouteInfo = useRef<UrlObject | undefined>()
|
|
47
|
+
const lazilyCalculatedRouteInfo = useRef<UrlObject | undefined>(undefined)
|
|
48
48
|
|
|
49
49
|
if (currentState && currentStateRef.current !== currentState) {
|
|
50
50
|
lazilyCalculatedRouteInfo.current = makeLazilyCalculatedRouteInfo({
|
|
@@ -21,7 +21,7 @@ export type FoundRootHTML = {
|
|
|
21
21
|
|
|
22
22
|
export function filterRootHTML(el: React.ReactNode): FoundRootHTML {
|
|
23
23
|
let htmlProps: Props | undefined
|
|
24
|
-
let bodyProps:
|
|
24
|
+
let bodyProps: Props | undefined
|
|
25
25
|
let head: React.ReactElement | undefined
|
|
26
26
|
|
|
27
27
|
function traverse(element: React.ReactNode) {
|
|
@@ -36,9 +36,16 @@ export function filterRootHTML(el: React.ReactNode): FoundRootHTML {
|
|
|
36
36
|
const { type, props } = reactElement
|
|
37
37
|
|
|
38
38
|
if (type === 'html') {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
if (
|
|
40
|
+
reactElement.props &&
|
|
41
|
+
typeof reactElement.props === 'object' &&
|
|
42
|
+
'children' in reactElement.props
|
|
43
|
+
) {
|
|
44
|
+
const { children, ...restProps } = reactElement.props
|
|
45
|
+
htmlProps = restProps
|
|
46
|
+
return traverse(children as React.ReactNode)
|
|
47
|
+
}
|
|
48
|
+
return null
|
|
42
49
|
}
|
|
43
50
|
|
|
44
51
|
if (type === 'head') {
|
|
@@ -47,9 +54,16 @@ export function filterRootHTML(el: React.ReactNode): FoundRootHTML {
|
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
if (type === 'body') {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
if (
|
|
58
|
+
reactElement.props &&
|
|
59
|
+
typeof reactElement.props === 'object' &&
|
|
60
|
+
'children' in reactElement.props
|
|
61
|
+
) {
|
|
62
|
+
const { children, ...restProps } = reactElement.props
|
|
63
|
+
bodyProps = restProps
|
|
64
|
+
return children as React.ReactNode
|
|
65
|
+
}
|
|
66
|
+
return null
|
|
53
67
|
}
|
|
54
68
|
|
|
55
69
|
if (process.env.TAMAGUI_TARGET === 'native') {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { getActionFromState, type LinkingOptions } from '@react-navigation/native'
|
|
2
|
-
import type { RouteNode } from './Route'
|
|
3
2
|
import type { State } from '../fork/getPathFromState'
|
|
4
3
|
import { getReactNavigationConfig, type Screen } from '../getReactNavigationConfig'
|
|
5
4
|
import {
|
|
@@ -8,6 +7,7 @@ import {
|
|
|
8
7
|
getPathFromState,
|
|
9
8
|
getStateFromPath,
|
|
10
9
|
} from '../link/linking'
|
|
10
|
+
import type { RouteNode } from './Route'
|
|
11
11
|
|
|
12
12
|
export function getNavigationConfig(
|
|
13
13
|
routes: RouteNode,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { describe,
|
|
1
|
+
import { describe, expect, it } from 'vitest'
|
|
2
2
|
import {
|
|
3
|
-
matchDynamicName,
|
|
4
|
-
matchDeepDynamicRouteName,
|
|
5
3
|
getNameFromFilePath,
|
|
4
|
+
matchArrayGroupName,
|
|
5
|
+
matchDeepDynamicRouteName,
|
|
6
|
+
matchDynamicName,
|
|
6
7
|
matchGroupName,
|
|
7
8
|
stripGroupSegmentsFromPath,
|
|
8
|
-
matchArrayGroupName,
|
|
9
9
|
} from './matchers'
|
|
10
10
|
|
|
11
11
|
describe(stripGroupSegmentsFromPath, () => {
|
package/src/router/matchers.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export function matchDynamicName(name: string): string | undefined {
|
|
3
3
|
// Don't match `...` or `[` or `]` inside the brackets
|
|
4
4
|
// eslint-disable-next-line no-useless-escape
|
|
5
|
-
return name.match(/^\[([^[\](
|
|
5
|
+
return name.match(/^\[([^[\](?:...)]+?)\]$/)?.[1]
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
/** Match `[...page]` -> `page` */
|
|
@@ -22,7 +22,7 @@ export function matchGroupName(name: string): string | undefined {
|
|
|
22
22
|
|
|
23
23
|
/** Match the first array group name `(a,b,c)/(d,c)` -> `'a,b,c'` */
|
|
24
24
|
export function matchArrayGroupName(name: string) {
|
|
25
|
-
return name.match(/(?:[^\\(\\)])*?\(?([
|
|
25
|
+
return name.match(/(?:[^\\(\\)])*?\(?([^\\/()]+,[^\\/()]+)\)?.*?$/)?.[1]
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export function getNameFromFilePath(name: string): string {
|
package/src/router/router.ts
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* the best decision.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { type NavigationContainerRefWithCurrent, StackActions } from '@react-navigation/native'
|
|
8
8
|
import * as Linking from 'expo-linking'
|
|
9
|
-
import { Fragment, startTransition, useSyncExternalStore
|
|
9
|
+
import { type ComponentType, Fragment, startTransition, useSyncExternalStore } from 'react'
|
|
10
10
|
import { Platform } from 'react-native'
|
|
11
11
|
import type { OneRouter } from '../interfaces/router'
|
|
12
12
|
import { resolveHref } from '../link/href'
|
package/src/router/sortRoutes.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DynamicConvention, RouteNode } from './Route'
|
|
2
1
|
import { matchGroupName } from './matchers'
|
|
2
|
+
import type { DynamicConvention, RouteNode } from './Route'
|
|
3
3
|
|
|
4
4
|
function sortDynamicConvention(a: DynamicConvention, b: DynamicConvention) {
|
|
5
5
|
if (a.deep && !b.deep) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useNavigationContainerRef } from '@react-navigation/native'
|
|
2
|
-
import { initialize } from './router'
|
|
3
|
-
import * as routerStore from './router'
|
|
4
2
|
import type { One } from '../vite/types'
|
|
3
|
+
import * as routerStore from './router'
|
|
4
|
+
import { initialize } from './router'
|
|
5
5
|
|
|
6
6
|
let initialized = false
|
|
7
7
|
|
|
@@ -8,7 +8,7 @@ import type {
|
|
|
8
8
|
ScreenListeners,
|
|
9
9
|
} from '@react-navigation/native'
|
|
10
10
|
import React, { memo, Suspense, useId } from 'react'
|
|
11
|
-
import { SafeAreaView, ScrollView,
|
|
11
|
+
import { SafeAreaView, ScrollView, Text, TouchableOpacity, View } from 'react-native'
|
|
12
12
|
import { ServerContextScript } from '../server/ServerContextScript'
|
|
13
13
|
import { getPageExport } from '../utils/getPageExport'
|
|
14
14
|
import { EmptyRoute } from '../views/EmptyRoute'
|
|
@@ -17,11 +17,11 @@ import { DevHead } from '../vite/DevHead'
|
|
|
17
17
|
import { useServerContext } from '../vite/one-server-only'
|
|
18
18
|
import { filterRootHTML } from './filterRootHTML'
|
|
19
19
|
import {
|
|
20
|
-
Route,
|
|
21
|
-
useRouteNode,
|
|
22
20
|
type DynamicConvention,
|
|
23
21
|
type LoadedRoute,
|
|
22
|
+
Route,
|
|
24
23
|
type RouteNode,
|
|
24
|
+
useRouteNode,
|
|
25
25
|
} from './Route'
|
|
26
26
|
import { sortRoutesWithInitial } from './sortRoutes'
|
|
27
27
|
|
|
@@ -185,7 +185,7 @@ export function getQualifiedRouteComponent(value: RouteNode) {
|
|
|
185
185
|
const out = Component(props, ref)
|
|
186
186
|
|
|
187
187
|
const { children, bodyProps, head, htmlProps } = filterRootHTML(out)
|
|
188
|
-
const { children: headChildren, ...headProps } = head?.props || {}
|
|
188
|
+
const { children: headChildren, ...headProps } = (head?.props || {}) as Record<string, any>
|
|
189
189
|
const serverContext = useServerContext()
|
|
190
190
|
|
|
191
191
|
// let finalChildren = <Suspense fallback={null}>{children}</Suspense>
|
|
@@ -48,7 +48,7 @@ export function globbedRoutesToRouteContext(
|
|
|
48
48
|
const loadedRoutes = {}
|
|
49
49
|
const clears = {}
|
|
50
50
|
|
|
51
|
-
Object.keys(paths).
|
|
51
|
+
Object.keys(paths).forEach((path) => {
|
|
52
52
|
if (!paths[path]) {
|
|
53
53
|
console.error(`Error: Missing route at path ${path}`)
|
|
54
54
|
return
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { nanoid } from 'nanoid/non-secure'
|
|
2
1
|
import type { NavigationState, PartialRoute } from '@react-navigation/core'
|
|
2
|
+
import { nanoid } from 'nanoid/non-secure'
|
|
3
3
|
import type { OneRouter } from '../../interfaces/router'
|
|
4
|
-
import { matchDynamicName } from '../matchers'
|
|
5
4
|
import { setLastAction } from '../lastAction'
|
|
5
|
+
import { matchDynamicName } from '../matchers'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Generates a navigation action to transition from the current state to the desired state.
|
|
@@ -7,7 +7,7 @@ export function ServerContextScript() {
|
|
|
7
7
|
return (
|
|
8
8
|
<script
|
|
9
9
|
async
|
|
10
|
-
// @ts-
|
|
10
|
+
// @ts-expect-error
|
|
11
11
|
href={SERVER_CONTEXT_KEY}
|
|
12
12
|
suppressHydrationWarning
|
|
13
13
|
dangerouslySetInnerHTML={{
|
|
@@ -23,7 +23,7 @@ export function ServerContextScript() {
|
|
|
23
23
|
return (
|
|
24
24
|
<script
|
|
25
25
|
async
|
|
26
|
-
// @ts-
|
|
26
|
+
// @ts-expect-error
|
|
27
27
|
href={SERVER_CONTEXT_KEY}
|
|
28
28
|
suppressHydrationWarning
|
|
29
29
|
dangerouslySetInnerHTML={{
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { type Options
|
|
2
|
-
import { getServerManifest } from './getServerManifest'
|
|
3
|
-
|
|
1
|
+
import { getRoutes, type Options } from '../router/getRoutes'
|
|
4
2
|
import type { One, RouteInfo } from '../vite/types'
|
|
3
|
+
import { getServerManifest } from './getServerManifest'
|
|
5
4
|
|
|
6
5
|
export type { Options } from '../router/getRoutes'
|
|
7
6
|
|
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Based on https://github.com/vercel/next.js/blob/1df2686bc9964f1a86c444701fa5cbf178669833/packages/next/src/shared/lib/router/utils/route-regex.ts
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
|
|
12
12
|
import { getContextKey, matchGroupName } from '../router/matchers'
|
|
13
|
+
import type { RouteNode } from '../router/Route'
|
|
13
14
|
import { sortRoutes } from '../router/sortRoutes'
|
|
14
15
|
import type { One, RouteInfo } from '../vite/types'
|
|
15
16
|
|
package/src/server/oneServe.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
+
import { extname, join } from 'node:path'
|
|
1
2
|
import { default as FSExtra } from 'fs-extra'
|
|
2
3
|
import type { Hono, MiddlewareHandler } from 'hono'
|
|
3
4
|
import type { BlankEnv } from 'hono/types'
|
|
4
|
-
import {
|
|
5
|
+
import { serveStaticAssets } from 'vxrn'
|
|
5
6
|
import { getServerEntry, serveStatic } from 'vxrn/serve'
|
|
6
7
|
import { LOADER_JS_POSTFIX_UNCACHED, PRELOAD_JS_POSTFIX } from '../constants'
|
|
7
8
|
import {
|
|
8
9
|
compileManifest,
|
|
9
10
|
getURLfromRequestURL,
|
|
10
|
-
runMiddlewares,
|
|
11
11
|
type RequestHandlers,
|
|
12
|
+
runMiddlewares,
|
|
12
13
|
} from '../createHandleRequest'
|
|
13
14
|
import type { RenderAppProps } from '../types'
|
|
14
15
|
import { getPathFromLoaderPath } from '../utils/cleanUrl'
|
|
16
|
+
import { isRolldown } from '../utils/isRolldown'
|
|
15
17
|
import { toAbsolute } from '../utils/toAbsolute'
|
|
16
18
|
import type { One } from '../vite/types'
|
|
17
19
|
import type { RouteInfoCompiled } from './createRoutesManifest'
|
|
18
|
-
import { serveStaticAssets } from 'vxrn'
|
|
19
|
-
import { isRolldown } from '../utils/isRolldown'
|
|
20
20
|
|
|
21
21
|
export async function oneServe(oneOptions: One.PluginOptions, buildInfo: One.BuildInfo, app: Hono) {
|
|
22
22
|
const { resolveAPIRoute, resolveLoaderRoute, resolvePageRoute } = await import(
|
package/src/server-render.tsx
CHANGED
package/src/setup.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// import { afterClientRender } from './render'
|
|
3
3
|
|
|
4
4
|
// if (process.env.ONE_ENABLE_REACT_SCAN) {
|
|
5
|
-
// // @ts-
|
|
5
|
+
// // @ts-expect-error (react-scan can be undefined or not depending on if the monorepo uses it)
|
|
6
6
|
// import('react-scan').then(({ scan }) => {
|
|
7
7
|
// afterClientRender(() => {
|
|
8
8
|
// scan(JSON.parse(`${process.env.ONE_ENABLE_REACT_SCAN}`))
|
package/src/testing-utils.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import path from 'node:path'
|
|
2
|
-
|
|
3
|
-
import { getRoutes } from './router/getRoutes'
|
|
4
2
|
import { getReactNavigationConfig } from './getReactNavigationConfig'
|
|
3
|
+
import { getRoutes } from './router/getRoutes'
|
|
5
4
|
|
|
6
5
|
export type ReactComponent = () => React.ReactElement<any, any> | null
|
|
7
6
|
export type FileStub =
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import FSExtra from 'fs-extra'
|
|
2
1
|
import { writeFile } from 'node:fs/promises'
|
|
3
2
|
import { dirname } from 'node:path'
|
|
3
|
+
import FSExtra from 'fs-extra'
|
|
4
4
|
import micromatch from 'micromatch'
|
|
5
5
|
import { globbedRoutesToRouteContext } from '../router/useViteRoutes'
|
|
6
6
|
import { globDir } from '../utils/globDir'
|
|
@@ -89,6 +89,7 @@ function addRouteNode(
|
|
|
89
89
|
for (const path of generateCombinations(routePath)) {
|
|
90
90
|
dynamicRouteContextKeys.add(path)
|
|
91
91
|
dynamicRoutes.add(
|
|
92
|
+
// biome-ignore lint/suspicious/noTemplateCurlyInString: intentionally generating type string
|
|
92
93
|
`${path.replaceAll(CATCH_ALL, '${string}').replaceAll(SLUG, '${OneRouter.SingleRoutePart<T>}')}`
|
|
93
94
|
)
|
|
94
95
|
}
|
|
@@ -7,7 +7,7 @@ export function getPathnameFromFilePath(
|
|
|
7
7
|
options: { preserveExtensions?: boolean; includeIndex?: boolean } = {}
|
|
8
8
|
) {
|
|
9
9
|
const path = inputPath.replace(/\+(spa|ssg|ssr|api)\.tsx?$/, '')
|
|
10
|
-
const dirname = Path.dirname(path).replace(/\([
|
|
10
|
+
const dirname = Path.dirname(path).replace(/\([^/]+\)/gi, '')
|
|
11
11
|
const file = Path.basename(path)
|
|
12
12
|
const fileName = options.preserveExtensions ? file : file.replace(/\.[a-z]+$/, '')
|
|
13
13
|
|
package/src/utils/isRolldown.ts
CHANGED
|
@@ -6,8 +6,8 @@ export async function isRolldown(): Promise<boolean> {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
try {
|
|
9
|
-
// @ts-ignore - withFilter only exists in rolldown-vite
|
|
10
9
|
const vite = await import('vite')
|
|
10
|
+
// withFilter only exists in rolldown-vite
|
|
11
11
|
_isRolldown = 'withFilter' in vite
|
|
12
12
|
} catch {
|
|
13
13
|
_isRolldown = false
|
package/src/utils/redirect.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OneRouter } from '../interfaces/router'
|
|
2
1
|
import { getURL } from '../getURL'
|
|
2
|
+
import type { OneRouter } from '../interfaces/router'
|
|
3
3
|
import { router } from '../router/imperative-api'
|
|
4
4
|
|
|
5
5
|
export const redirect = (path: OneRouter.Href & string, status?: number) => {
|
package/src/utils/useConstant.ts
CHANGED
|
@@ -17,7 +17,7 @@ export const withStaticProperties = <A extends Function, B>(
|
|
|
17
17
|
// attach existing things again
|
|
18
18
|
for (const key in component) {
|
|
19
19
|
const v = component[key]
|
|
20
|
-
// @ts-
|
|
20
|
+
// @ts-expect-error
|
|
21
21
|
_[key] = v && typeof v === 'object' ? { ...v } : v
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -3,14 +3,12 @@ import { join, resolve } from 'node:path'
|
|
|
3
3
|
import FSExtra from 'fs-extra'
|
|
4
4
|
import type { RollupOutput } from 'rollup'
|
|
5
5
|
import { isMatching, P } from 'ts-pattern'
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
import { createSsrServerlessFunction } from './generate/createSsrServerlessFunction'
|
|
6
|
+
import type { One } from '../../vite/types'
|
|
7
|
+
import { vercelBuildOutputConfigBase } from './config/vc-build-output-config-base'
|
|
9
8
|
import { serverlessVercelNodeJsConfig } from './config/vc-config-base'
|
|
10
9
|
import { serverlessVercelPackageJson } from './config/vc-package-base'
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
import type { One } from '../../vite/types'
|
|
10
|
+
import { createApiServerlessFunction } from './generate/createApiServerlessFunction'
|
|
11
|
+
import { createSsrServerlessFunction } from './generate/createSsrServerlessFunction'
|
|
14
12
|
import { getPathFromRoute } from './getPathFromRoute'
|
|
15
13
|
|
|
16
14
|
const { copy, ensureDir, existsSync, writeJSON } = FSExtra
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { dirname, join, resolve } from 'node:path'
|
|
2
|
-
import
|
|
3
|
-
import { resolvePath } from '@vxrn/resolve'
|
|
4
|
-
|
|
2
|
+
import generator from '@babel/generator'
|
|
5
3
|
import parser from '@babel/parser'
|
|
6
4
|
import traverse from '@babel/traverse'
|
|
7
5
|
import t from '@babel/types'
|
|
8
|
-
import
|
|
6
|
+
import { resolvePath } from '@vxrn/resolve'
|
|
7
|
+
import FSExtra from 'fs-extra'
|
|
9
8
|
|
|
10
9
|
import fs from 'fs-extra'
|
|
11
10
|
import type { RouteInfo } from '../../../vite/types'
|
|
12
|
-
|
|
13
|
-
import { serverlessVercelPackageJson } from '../config/vc-package-base'
|
|
14
11
|
import { serverlessVercelNodeJsConfig } from '../config/vc-config-base'
|
|
12
|
+
import { serverlessVercelPackageJson } from '../config/vc-package-base'
|
|
15
13
|
import { getPathFromRoute } from '../getPathFromRoute'
|
|
16
14
|
|
|
17
15
|
// Documentation - Vercel Build Output v3
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import fs from 'fs-extra'
|
|
2
1
|
import { join, resolve } from 'node:path'
|
|
2
|
+
import fs from 'fs-extra'
|
|
3
|
+
import type { One, RouteInfo } from '../../../vite/types'
|
|
3
4
|
import { serverlessVercelNodeJsConfig } from '../config/vc-config-base'
|
|
4
5
|
import { serverlessVercelPackageJson } from '../config/vc-package-base'
|
|
5
|
-
import type { One, RouteInfo } from '../../../vite/types'
|
|
6
6
|
import { getPathFromRoute } from '../getPathFromRoute'
|
|
7
7
|
|
|
8
8
|
// Documentation - Vercel Build Output v3
|
package/src/views/Navigator.tsx
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// Copyright © 2024 650 Industries.
|
|
2
|
-
import { StackRouter, useNavigationBuilder
|
|
2
|
+
import { type RouterFactory, StackRouter, useNavigationBuilder } from '@react-navigation/native'
|
|
3
3
|
import * as React from 'react'
|
|
4
4
|
import { SafeAreaView } from 'react-native-safe-area-context'
|
|
5
5
|
import { useFilterScreenChildren } from '../layouts/withLayoutContext'
|
|
6
|
+
import { FlagsContext } from '../router/FlagsContext'
|
|
6
7
|
import { useContextKey } from '../router/Route'
|
|
7
8
|
import { useSortedScreens } from '../router/useScreens'
|
|
8
9
|
import { Screen } from './Screen'
|
|
9
|
-
import { FlagsContext } from '../router/FlagsContext'
|
|
10
10
|
|
|
11
11
|
type NavigatorTypes = ReturnType<typeof useNavigationBuilder>
|
|
12
12
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { useEffect } from 'react'
|
|
2
|
-
import { preloadRoute } from '../router/router'
|
|
3
2
|
import { getURL } from '../getURL'
|
|
3
|
+
import { preloadRoute } from '../router/router'
|
|
4
4
|
|
|
5
5
|
export function PreloadLinks() {
|
|
6
6
|
// only in prod because we don't generate them until build
|
|
7
|
-
// @ts-ignore
|
|
8
7
|
if (typeof window !== 'undefined' && import.meta.env.PROD) {
|
|
9
8
|
useEffect(() => {
|
|
10
9
|
const url = getURL()
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// thanks vitefu!
|
|
2
2
|
|
|
3
|
-
import FSExtra from 'fs-extra'
|
|
4
3
|
import fs from 'node:fs/promises'
|
|
5
|
-
import path, { dirname } from 'node:path'
|
|
6
4
|
import { createRequire } from 'node:module'
|
|
5
|
+
import path, { dirname } from 'node:path'
|
|
6
|
+
import FSExtra from 'fs-extra'
|
|
7
7
|
|
|
8
8
|
// given a package finds its dependencies and sub-dependencies
|
|
9
9
|
export async function getAllDependencies(root: string, depth = 20) {
|
|
@@ -33,8 +33,6 @@ async function crawl(pkgJsonPath: string, depth = Number.POSITIVE_INFINITY) {
|
|
|
33
33
|
dependencies = [...dependencies, ...subDeps]
|
|
34
34
|
}
|
|
35
35
|
} catch (err) {
|
|
36
|
-
// biome-ignore lint/suspicious/noConsoleLog: <explanation>
|
|
37
|
-
console.log(`Couldn't resolve`, depName)
|
|
38
36
|
// ok skip
|
|
39
37
|
}
|
|
40
38
|
})
|
package/src/vite/one.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
+
import events from 'node:events'
|
|
2
|
+
import path from 'node:path'
|
|
1
3
|
import { configureVXRNCompilerPlugin } from '@vxrn/compiler'
|
|
2
4
|
import { resolvePath } from '@vxrn/resolve'
|
|
3
5
|
import type {
|
|
4
6
|
ExpoManifestRequestHandlerPluginPluginOptions,
|
|
5
7
|
MetroPluginOptions,
|
|
6
8
|
} from '@vxrn/vite-plugin-metro'
|
|
7
|
-
import events from 'node:events'
|
|
8
|
-
import path from 'node:path'
|
|
9
9
|
import type { Plugin, PluginOption } from 'vite'
|
|
10
10
|
import { barrel } from 'vite-plugin-barrel'
|
|
11
11
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
@@ -149,9 +149,8 @@ export function one(options: One.PluginOptions = {}): PluginOption {
|
|
|
149
149
|
const devAndProdPlugins: Plugin[] = [
|
|
150
150
|
{
|
|
151
151
|
name: 'one:config',
|
|
152
|
-
// @ts-ignore
|
|
153
152
|
__get: options,
|
|
154
|
-
},
|
|
153
|
+
} as any,
|
|
155
154
|
|
|
156
155
|
!barrelOption
|
|
157
156
|
? null
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { extname, relative } from 'node:path'
|
|
1
2
|
import BabelGenerate from '@babel/generator'
|
|
2
3
|
import { parse } from '@babel/parser'
|
|
3
4
|
import BabelTraverse from '@babel/traverse'
|
|
4
5
|
import { deadCodeElimination, findReferencedIdentifiers } from 'babel-dead-code-elimination'
|
|
5
|
-
import { extname, relative } from 'node:path'
|
|
6
6
|
import type { Plugin } from 'vite'
|
|
7
7
|
import { EMPTY_LOADER_STRING } from '../constants'
|
|
8
8
|
|
|
@@ -7,6 +7,7 @@ import type { ModuleRunner } from 'vite/module-runner'
|
|
|
7
7
|
import { getSpaHeaderElements } from '../../constants'
|
|
8
8
|
import { createHandleRequest } from '../../createHandleRequest'
|
|
9
9
|
import type { RenderAppProps } from '../../types'
|
|
10
|
+
import { getRouterRootFromOneOptions } from '../../utils/getRouterRootFromOneOptions'
|
|
10
11
|
import { isResponse } from '../../utils/isResponse'
|
|
11
12
|
import { isStatusRedirect } from '../../utils/isStatus'
|
|
12
13
|
import { promiseWithResolvers } from '../../utils/promiseWithResolvers'
|
|
@@ -15,7 +16,6 @@ import { replaceLoader } from '../../vite/replaceLoader'
|
|
|
15
16
|
import type { One } from '../../vite/types'
|
|
16
17
|
import { setServerContext } from '../one-server-only'
|
|
17
18
|
import { virtalEntryIdClient, virtualEntryId } from './virtualEntryConstants'
|
|
18
|
-
import { getRouterRootFromOneOptions } from '../../utils/getRouterRootFromOneOptions'
|
|
19
19
|
|
|
20
20
|
// server needs better dep optimization
|
|
21
21
|
const USE_SERVER_ENV = false //!!process.env.USE_SERVER_ENV
|
|
@@ -72,7 +72,7 @@ export function createFileSystemRouterPlugin(options: One.PluginOptions): Plugin
|
|
|
72
72
|
const exported = routeFile === '' ? {} : await runner.import(routeFile)
|
|
73
73
|
const loaderData = await exported.loader?.(loaderProps)
|
|
74
74
|
|
|
75
|
-
// biome-ignore lint/security/noGlobalEval:
|
|
75
|
+
// biome-ignore lint/security/noGlobalEval: needed to set server env at runtime
|
|
76
76
|
eval(`process.env.TAMAGUI_IS_SERVER = '1'`)
|
|
77
77
|
|
|
78
78
|
const entry = await runner.import(virtualEntryId)
|