one 1.1.319 → 1.1.321
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/Root.js +182 -0
- package/dist/cjs/Route.js +45 -0
- package/dist/cjs/cleanUrl.js +41 -0
- package/dist/cjs/cli/label-process.js +25 -0
- package/dist/cjs/cli/main.js +46 -0
- package/dist/cjs/{getURL.native.cjs → cli/patch.cjs} +11 -15
- package/dist/cjs/cli/patch.js +34 -0
- package/dist/cjs/cli/patch.js.map +6 -0
- package/dist/cjs/cli/patch.native.js +39 -0
- package/dist/cjs/cli/patch.native.js.map +6 -0
- package/dist/cjs/cli/prebuild.js +34 -0
- package/dist/cjs/cli/run.js +52 -0
- package/dist/cjs/cli/runAndroid.js +34 -0
- package/dist/cjs/cli/runIos.js +34 -0
- package/dist/cjs/cli.cjs +17 -0
- package/dist/cjs/cli.js +220 -0
- package/dist/cjs/{cli.cjs.map → cli.js.map} +1 -1
- package/dist/cjs/cli.native.js +12 -0
- package/dist/cjs/cli.native.js.map +2 -2
- package/dist/cjs/clientLoaderResolver.js +32 -0
- package/dist/cjs/config.js +27 -0
- package/dist/cjs/constants.js +28 -0
- package/dist/cjs/createApp.js +46 -0
- package/dist/cjs/createHandleRequest.js +138 -0
- package/dist/cjs/createRoute.js +37 -0
- package/dist/cjs/fallbackViews/Sitemap.js +82 -0
- package/dist/cjs/fallbackViews/Unmatched.js +58 -0
- package/dist/cjs/fork/NavigationContainer.js +85 -0
- package/dist/cjs/fork/createMemoryHistory.js +100 -0
- package/dist/cjs/fork/extractPathFromURL.js +62 -0
- package/dist/cjs/fork/findFocusedRoute.js +26 -0
- package/dist/cjs/fork/getPathFromState.js +265 -0
- package/dist/cjs/fork/getStateFromPath.js +381 -0
- package/dist/cjs/fork/useLinking.js +182 -0
- package/dist/cjs/fork/validatePathConfig.js +46 -0
- package/dist/cjs/getLinkingConfig.js +59 -0
- package/dist/cjs/getReactNavigationConfig.js +69 -0
- package/dist/cjs/getRoutes.js +294 -0
- package/dist/cjs/getURL.js +24 -0
- package/dist/cjs/head/Head.js +23 -0
- package/dist/cjs/head/HeadModule.js +22 -0
- package/dist/cjs/head/index.js +15 -0
- package/dist/cjs/head/types.js +14 -0
- package/dist/cjs/head/url.js +52 -0
- package/dist/cjs/hooks.js +99 -0
- package/dist/cjs/imperative-api.js +45 -0
- package/dist/cjs/import-mode/index.js +21 -0
- package/dist/cjs/import-mode/index.web.js +21 -0
- package/dist/cjs/index.js +65 -0
- package/dist/cjs/interfaces/router.js +23 -0
- package/dist/cjs/layouts/Drawer.js +24 -0
- package/dist/cjs/layouts/Stack.js +24 -0
- package/dist/cjs/layouts/Tabs.js +52 -0
- package/dist/cjs/layouts/withLayoutContext.js +77 -0
- package/dist/cjs/link/Link.js +98 -0
- package/dist/cjs/link/Redirect.js +31 -0
- package/dist/cjs/link/href.js +50 -0
- package/dist/cjs/link/linking.js +82 -0
- package/dist/cjs/link/path.js +65 -0
- package/dist/cjs/link/useLinkTo.js +42 -0
- package/dist/cjs/link/useLoadedNavigation.js +50 -0
- package/dist/cjs/matchers.js +68 -0
- package/dist/cjs/platform.js +21 -0
- package/dist/cjs/polyfills-mobile.js +26 -0
- package/dist/cjs/polyfills-server.js +23 -0
- package/dist/cjs/render.js +44 -0
- package/dist/cjs/router/RouterStore.js +14 -0
- package/dist/cjs/router/getNormalizedStatePath.js +50 -0
- package/dist/cjs/router/lastAction.js +25 -0
- package/dist/cjs/router/router.js +345 -0
- package/dist/cjs/router/serverLocationContext.js +22 -0
- package/dist/cjs/router/useInitializeOneRouter.js +43 -0
- package/dist/cjs/serve.js +184 -0
- package/dist/cjs/server/createRoutesManifest.js +40 -0
- package/dist/cjs/server/getServerManifest.js +109 -0
- package/dist/cjs/server-render.js +42 -0
- package/dist/cjs/sortRoutes.js +64 -0
- package/dist/cjs/typed-routes/generateRouteTypes.js +33 -0
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.js +83 -0
- package/dist/cjs/types.js +14 -0
- package/dist/cjs/useFocusEffect.js +79 -0
- package/dist/cjs/useLoader.js +97 -0
- package/dist/cjs/useNavigation.js +60 -0
- package/dist/cjs/useScreens.js +176 -0
- package/dist/cjs/useViteRoutes.js +77 -0
- package/dist/cjs/utils/assertIsReady.js +26 -0
- package/dist/cjs/utils/dynamicImport.js +24 -0
- package/dist/cjs/utils/existsAsync.js +28 -0
- package/dist/cjs/utils/getPageExport.js +38 -0
- package/dist/cjs/utils/globDir.js +37 -0
- package/dist/cjs/utils/hashString.js +32 -0
- package/dist/cjs/utils/isResponse.js +23 -0
- package/dist/cjs/utils/isStatus.js +23 -0
- package/dist/cjs/utils/promiseWithResolvers.js +26 -0
- package/dist/cjs/utils/rand.js +21 -0
- package/dist/cjs/utils/redirect.js +28 -0
- package/dist/cjs/utils/removeSearch.js +23 -0
- package/dist/cjs/utils/removeUndefined.js +26 -0
- package/dist/cjs/utils/url.js +31 -0
- package/dist/cjs/utils/weakKey.js +24 -0
- package/dist/cjs/utils/weakMemo.js +30 -0
- package/dist/cjs/views/EmptyRoute.js +25 -0
- package/dist/cjs/views/ErrorBoundary.js +33 -0
- package/dist/cjs/views/LoadProgressBar.js +83 -0
- package/dist/cjs/views/Navigator.js +101 -0
- package/dist/cjs/views/PreloadLinks.js +42 -0
- package/dist/cjs/views/RootErrorBoundary.js +47 -0
- package/dist/cjs/views/Screen.js +29 -0
- package/dist/cjs/views/ScrollRestoration.js +70 -0
- package/dist/cjs/views/Try.js +44 -0
- package/dist/cjs/vite/build.js +377 -0
- package/dist/cjs/vite/clientTreeShakePlugin.js +76 -0
- package/dist/cjs/vite/constants.js +22 -0
- package/dist/cjs/vite/createFileSystemRouter.cjs +2 -1
- package/dist/cjs/vite/createFileSystemRouter.js +244 -0
- package/dist/cjs/vite/createFileSystemRouter.js.map +6 -0
- package/dist/cjs/vite/createFileSystemRouter.native.js +2 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js.map +2 -2
- package/dist/cjs/vite/customNodeExternals.js +52 -0
- package/dist/cjs/vite/ensureTsConfig.js +66 -0
- package/dist/cjs/vite/findDepsToOptimize.js +66 -0
- package/dist/cjs/vite/fixDependenciesPlugin.js +43 -0
- package/dist/cjs/vite/generateTypesForRoutes.js +36 -0
- package/dist/cjs/vite/getManifest.js +27 -0
- package/dist/cjs/vite/headers.js +39 -0
- package/dist/cjs/vite/makePluginWebOnly.js +27 -0
- package/dist/cjs/vite/one.js +290 -0
- package/dist/cjs/vite/removeReactNativeWebAnimatedPlugin.js +50 -0
- package/dist/cjs/vite/replaceLoader.js +34 -0
- package/dist/cjs/vite/resolveAPIRequest.js +71 -0
- package/dist/cjs/vite/server.js +16 -0
- package/dist/cjs/vite/types.js +14 -0
- package/dist/cjs/vite/virtualEntryPlugin.js +67 -0
- package/dist/cjs/vite/vitePluginSsrCss.js +130 -0
- package/dist/cjs/vite.cjs +2 -0
- package/dist/cjs/vite.js +29 -0
- package/dist/cjs/vite.js.map +6 -0
- package/dist/cjs/vite.native.js +3 -1
- package/dist/cjs/vite.native.js.map +1 -1
- package/dist/cjs/zero/getQueryKey.js +24 -0
- package/dist/cjs/zero/isZeroQuery.js +23 -0
- package/dist/cjs/zero/resolveQuery.js +38 -0
- package/dist/cjs/zero/subscribeToQuery.js +28 -0
- package/dist/cjs/zero/types.js +14 -0
- package/dist/cjs/zero/useQuery.js +47 -0
- package/dist/cjs/zero/useQueryZero.js +38 -0
- package/dist/cjs/zero.js +23 -0
- package/dist/esm/cli/patch.js +10 -0
- package/dist/esm/cli/patch.js.map +6 -0
- package/dist/esm/cli/patch.mjs +10 -0
- package/dist/esm/cli/patch.mjs.map +1 -0
- package/dist/esm/cli/patch.native.js +10 -0
- package/dist/esm/cli/patch.native.js.map +6 -0
- package/dist/esm/cli.js +12 -0
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/cli.mjs +17 -0
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +12 -0
- package/dist/esm/cli.native.js.map +2 -2
- package/dist/esm/vite/createFileSystemRouter.js +2 -1
- package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs +2 -1
- package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.native.js +2 -1
- package/dist/esm/vite/createFileSystemRouter.native.js.map +2 -2
- package/dist/esm/vite.js +2 -0
- package/dist/esm/vite.js.map +1 -1
- package/dist/esm/vite.mjs +2 -1
- package/dist/esm/vite.mjs.map +1 -1
- package/dist/esm/vite.native.js +2 -0
- package/dist/esm/vite.native.js.map +2 -2
- package/package.json +8 -8
- package/src/cli/patch.ts +6 -0
- package/src/cli.ts +14 -0
- package/src/vite/createFileSystemRouter.tsx +1 -1
- package/src/vite.ts +1 -0
- package/types/cli/patch.d.ts +2 -0
- package/types/cli/patch.d.ts.map +1 -0
- package/types/vite.d.ts +1 -0
- package/types/vite.d.ts.map +1 -1
- package/dist/cjs/createApp.native.cjs +0 -38
- package/dist/cjs/createApp.native.cjs.map +0 -6
- package/dist/cjs/fork/NavigationContainer.native.cjs +0 -103
- package/dist/cjs/fork/NavigationContainer.native.cjs.map +0 -6
- package/dist/cjs/fork/useLinking.native.cjs +0 -126
- package/dist/cjs/fork/useLinking.native.cjs.map +0 -6
- package/dist/cjs/getURL.native.cjs.map +0 -6
- package/dist/cjs/head/Head.android.cjs +0 -28
- package/dist/cjs/head/Head.android.cjs.map +0 -6
- package/dist/cjs/head/Head.ios.cjs +0 -210
- package/dist/cjs/head/Head.ios.cjs.map +0 -6
- package/dist/cjs/import-mode/index.android.cjs +0 -26
- package/dist/cjs/import-mode/index.android.cjs.map +0 -6
- package/dist/cjs/import-mode/index.ios.cjs +0 -26
- package/dist/cjs/import-mode/index.ios.cjs.map +0 -6
- package/dist/cjs/import-mode/index.native.cjs +0 -26
- package/dist/cjs/import-mode/index.native.cjs.map +0 -6
- package/dist/cjs/render.native.cjs +0 -28
- package/dist/cjs/render.native.cjs.map +0 -6
- package/dist/cjs/views/PreloadLinks.native.cjs +0 -28
- package/dist/cjs/views/PreloadLinks.native.cjs.map +0 -6
- package/dist/cjs/vite/createFileSystemRouter.cjs.map +0 -6
- package/dist/cjs/vite/headers.native.cjs +0 -32
- package/dist/cjs/vite/headers.native.cjs.map +0 -6
- package/dist/cjs/vite.cjs.map +0 -6
- /package/dist/cjs/{Root.cjs.map → Root.js.map} +0 -0
- /package/dist/cjs/{Route.cjs.map → Route.js.map} +0 -0
- /package/dist/cjs/{cleanUrl.cjs.map → cleanUrl.js.map} +0 -0
- /package/dist/cjs/cli/{label-process.cjs.map → label-process.js.map} +0 -0
- /package/dist/cjs/cli/{main.cjs.map → main.js.map} +0 -0
- /package/dist/cjs/cli/{prebuild.cjs.map → prebuild.js.map} +0 -0
- /package/dist/cjs/cli/{run.cjs.map → run.js.map} +0 -0
- /package/dist/cjs/cli/{runAndroid.cjs.map → runAndroid.js.map} +0 -0
- /package/dist/cjs/cli/{runIos.cjs.map → runIos.js.map} +0 -0
- /package/dist/cjs/{clientLoaderResolver.cjs.map → clientLoaderResolver.js.map} +0 -0
- /package/dist/cjs/{config.cjs.map → config.js.map} +0 -0
- /package/dist/cjs/{constants.cjs.map → constants.js.map} +0 -0
- /package/dist/cjs/{createApp.cjs.map → createApp.js.map} +0 -0
- /package/dist/cjs/{createHandleRequest.cjs.map → createHandleRequest.js.map} +0 -0
- /package/dist/cjs/{createRoute.cjs.map → createRoute.js.map} +0 -0
- /package/dist/cjs/fallbackViews/{Sitemap.cjs.map → Sitemap.js.map} +0 -0
- /package/dist/cjs/fallbackViews/{Unmatched.cjs.map → Unmatched.js.map} +0 -0
- /package/dist/cjs/fork/{NavigationContainer.cjs.map → NavigationContainer.js.map} +0 -0
- /package/dist/cjs/fork/{createMemoryHistory.cjs.map → createMemoryHistory.js.map} +0 -0
- /package/dist/cjs/fork/{extractPathFromURL.cjs.map → extractPathFromURL.js.map} +0 -0
- /package/dist/cjs/fork/{findFocusedRoute.cjs.map → findFocusedRoute.js.map} +0 -0
- /package/dist/cjs/fork/{getPathFromState.cjs.map → getPathFromState.js.map} +0 -0
- /package/dist/cjs/fork/{getStateFromPath.cjs.map → getStateFromPath.js.map} +0 -0
- /package/dist/cjs/fork/{useLinking.cjs.map → useLinking.js.map} +0 -0
- /package/dist/cjs/fork/{validatePathConfig.cjs.map → validatePathConfig.js.map} +0 -0
- /package/dist/cjs/{getLinkingConfig.cjs.map → getLinkingConfig.js.map} +0 -0
- /package/dist/cjs/{getReactNavigationConfig.cjs.map → getReactNavigationConfig.js.map} +0 -0
- /package/dist/cjs/{getRoutes.cjs.map → getRoutes.js.map} +0 -0
- /package/dist/cjs/{getURL.cjs.map → getURL.js.map} +0 -0
- /package/dist/cjs/head/{Head.cjs.map → Head.js.map} +0 -0
- /package/dist/cjs/head/{HeadModule.cjs.map → HeadModule.js.map} +0 -0
- /package/dist/cjs/head/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/head/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/head/{url.cjs.map → url.js.map} +0 -0
- /package/dist/cjs/{hooks.cjs.map → hooks.js.map} +0 -0
- /package/dist/cjs/{imperative-api.cjs.map → imperative-api.js.map} +0 -0
- /package/dist/cjs/import-mode/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/import-mode/{index.web.cjs.map → index.web.js.map} +0 -0
- /package/dist/cjs/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/interfaces/{router.cjs.map → router.js.map} +0 -0
- /package/dist/cjs/layouts/{Drawer.cjs.map → Drawer.js.map} +0 -0
- /package/dist/cjs/layouts/{Stack.cjs.map → Stack.js.map} +0 -0
- /package/dist/cjs/layouts/{Tabs.cjs.map → Tabs.js.map} +0 -0
- /package/dist/cjs/layouts/{withLayoutContext.cjs.map → withLayoutContext.js.map} +0 -0
- /package/dist/cjs/link/{Link.cjs.map → Link.js.map} +0 -0
- /package/dist/cjs/link/{Redirect.cjs.map → Redirect.js.map} +0 -0
- /package/dist/cjs/link/{href.cjs.map → href.js.map} +0 -0
- /package/dist/cjs/link/{linking.cjs.map → linking.js.map} +0 -0
- /package/dist/cjs/link/{path.cjs.map → path.js.map} +0 -0
- /package/dist/cjs/link/{useLinkTo.cjs.map → useLinkTo.js.map} +0 -0
- /package/dist/cjs/link/{useLoadedNavigation.cjs.map → useLoadedNavigation.js.map} +0 -0
- /package/dist/cjs/{matchers.cjs.map → matchers.js.map} +0 -0
- /package/dist/cjs/{platform.cjs.map → platform.js.map} +0 -0
- /package/dist/cjs/{polyfills-mobile.cjs.map → polyfills-mobile.js.map} +0 -0
- /package/dist/cjs/{polyfills-server.cjs.map → polyfills-server.js.map} +0 -0
- /package/dist/cjs/{render.cjs.map → render.js.map} +0 -0
- /package/dist/cjs/router/{RouterStore.cjs.map → RouterStore.js.map} +0 -0
- /package/dist/cjs/router/{getNormalizedStatePath.cjs.map → getNormalizedStatePath.js.map} +0 -0
- /package/dist/cjs/router/{lastAction.cjs.map → lastAction.js.map} +0 -0
- /package/dist/cjs/router/{router.cjs.map → router.js.map} +0 -0
- /package/dist/cjs/router/{serverLocationContext.cjs.map → serverLocationContext.js.map} +0 -0
- /package/dist/cjs/router/{useInitializeOneRouter.cjs.map → useInitializeOneRouter.js.map} +0 -0
- /package/dist/cjs/{serve.cjs.map → serve.js.map} +0 -0
- /package/dist/cjs/server/{createRoutesManifest.cjs.map → createRoutesManifest.js.map} +0 -0
- /package/dist/cjs/server/{getServerManifest.cjs.map → getServerManifest.js.map} +0 -0
- /package/dist/cjs/{server-render.cjs.map → server-render.js.map} +0 -0
- /package/dist/cjs/{sortRoutes.cjs.map → sortRoutes.js.map} +0 -0
- /package/dist/cjs/typed-routes/{generateRouteTypes.cjs.map → generateRouteTypes.js.map} +0 -0
- /package/dist/cjs/typed-routes/{getTypedRoutesDeclarationFile.cjs.map → getTypedRoutesDeclarationFile.js.map} +0 -0
- /package/dist/cjs/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/{useFocusEffect.cjs.map → useFocusEffect.js.map} +0 -0
- /package/dist/cjs/{useLoader.cjs.map → useLoader.js.map} +0 -0
- /package/dist/cjs/{useNavigation.cjs.map → useNavigation.js.map} +0 -0
- /package/dist/cjs/{useScreens.cjs.map → useScreens.js.map} +0 -0
- /package/dist/cjs/{useViteRoutes.cjs.map → useViteRoutes.js.map} +0 -0
- /package/dist/cjs/utils/{assertIsReady.cjs.map → assertIsReady.js.map} +0 -0
- /package/dist/cjs/utils/{dynamicImport.cjs.map → dynamicImport.js.map} +0 -0
- /package/dist/cjs/utils/{existsAsync.cjs.map → existsAsync.js.map} +0 -0
- /package/dist/cjs/utils/{getPageExport.cjs.map → getPageExport.js.map} +0 -0
- /package/dist/cjs/utils/{globDir.cjs.map → globDir.js.map} +0 -0
- /package/dist/cjs/utils/{hashString.cjs.map → hashString.js.map} +0 -0
- /package/dist/cjs/utils/{isResponse.cjs.map → isResponse.js.map} +0 -0
- /package/dist/cjs/utils/{isStatus.cjs.map → isStatus.js.map} +0 -0
- /package/dist/cjs/utils/{promiseWithResolvers.cjs.map → promiseWithResolvers.js.map} +0 -0
- /package/dist/cjs/utils/{rand.cjs.map → rand.js.map} +0 -0
- /package/dist/cjs/utils/{redirect.cjs.map → redirect.js.map} +0 -0
- /package/dist/cjs/utils/{removeSearch.cjs.map → removeSearch.js.map} +0 -0
- /package/dist/cjs/utils/{removeUndefined.cjs.map → removeUndefined.js.map} +0 -0
- /package/dist/cjs/utils/{url.cjs.map → url.js.map} +0 -0
- /package/dist/cjs/utils/{weakKey.cjs.map → weakKey.js.map} +0 -0
- /package/dist/cjs/utils/{weakMemo.cjs.map → weakMemo.js.map} +0 -0
- /package/dist/cjs/views/{EmptyRoute.cjs.map → EmptyRoute.js.map} +0 -0
- /package/dist/cjs/views/{ErrorBoundary.cjs.map → ErrorBoundary.js.map} +0 -0
- /package/dist/cjs/views/{LoadProgressBar.cjs.map → LoadProgressBar.js.map} +0 -0
- /package/dist/cjs/views/{Navigator.cjs.map → Navigator.js.map} +0 -0
- /package/dist/cjs/views/{PreloadLinks.cjs.map → PreloadLinks.js.map} +0 -0
- /package/dist/cjs/views/{RootErrorBoundary.cjs.map → RootErrorBoundary.js.map} +0 -0
- /package/dist/cjs/views/{Screen.cjs.map → Screen.js.map} +0 -0
- /package/dist/cjs/views/{ScrollRestoration.cjs.map → ScrollRestoration.js.map} +0 -0
- /package/dist/cjs/views/{Try.cjs.map → Try.js.map} +0 -0
- /package/dist/cjs/vite/{build.cjs.map → build.js.map} +0 -0
- /package/dist/cjs/vite/{clientTreeShakePlugin.cjs.map → clientTreeShakePlugin.js.map} +0 -0
- /package/dist/cjs/vite/{constants.cjs.map → constants.js.map} +0 -0
- /package/dist/cjs/vite/{customNodeExternals.cjs.map → customNodeExternals.js.map} +0 -0
- /package/dist/cjs/vite/{ensureTsConfig.cjs.map → ensureTsConfig.js.map} +0 -0
- /package/dist/cjs/vite/{findDepsToOptimize.cjs.map → findDepsToOptimize.js.map} +0 -0
- /package/dist/cjs/vite/{fixDependenciesPlugin.cjs.map → fixDependenciesPlugin.js.map} +0 -0
- /package/dist/cjs/vite/{generateTypesForRoutes.cjs.map → generateTypesForRoutes.js.map} +0 -0
- /package/dist/cjs/vite/{getManifest.cjs.map → getManifest.js.map} +0 -0
- /package/dist/cjs/vite/{headers.cjs.map → headers.js.map} +0 -0
- /package/dist/cjs/vite/{makePluginWebOnly.cjs.map → makePluginWebOnly.js.map} +0 -0
- /package/dist/cjs/vite/{one.cjs.map → one.js.map} +0 -0
- /package/dist/cjs/vite/{removeReactNativeWebAnimatedPlugin.cjs.map → removeReactNativeWebAnimatedPlugin.js.map} +0 -0
- /package/dist/cjs/vite/{replaceLoader.cjs.map → replaceLoader.js.map} +0 -0
- /package/dist/cjs/vite/{resolveAPIRequest.cjs.map → resolveAPIRequest.js.map} +0 -0
- /package/dist/cjs/vite/{server.cjs.map → server.js.map} +0 -0
- /package/dist/cjs/vite/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/vite/{virtualEntryPlugin.cjs.map → virtualEntryPlugin.js.map} +0 -0
- /package/dist/cjs/vite/{vitePluginSsrCss.cjs.map → vitePluginSsrCss.js.map} +0 -0
- /package/dist/cjs/zero/{getQueryKey.cjs.map → getQueryKey.js.map} +0 -0
- /package/dist/cjs/zero/{isZeroQuery.cjs.map → isZeroQuery.js.map} +0 -0
- /package/dist/cjs/zero/{resolveQuery.cjs.map → resolveQuery.js.map} +0 -0
- /package/dist/cjs/zero/{subscribeToQuery.cjs.map → subscribeToQuery.js.map} +0 -0
- /package/dist/cjs/zero/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/zero/{useQuery.cjs.map → useQuery.js.map} +0 -0
- /package/dist/cjs/zero/{useQueryZero.cjs.map → useQueryZero.js.map} +0 -0
- /package/dist/cjs/{zero.cjs.map → zero.js.map} +0 -0
package/dist/esm/cli.native.js
CHANGED
@@ -147,6 +147,17 @@ var modes = {
|
|
147
147
|
root: process.cwd()
|
148
148
|
});
|
149
149
|
}
|
150
|
+
}), patch = defineCommand({
|
151
|
+
meta: {
|
152
|
+
name: "patch",
|
153
|
+
version: "0.0.0",
|
154
|
+
description: "Apply package patches"
|
155
|
+
},
|
156
|
+
args: {},
|
157
|
+
async run(param) {
|
158
|
+
var { args } = param, { run } = await import("./cli/patch");
|
159
|
+
await run(args);
|
160
|
+
}
|
150
161
|
}), subCommands = {
|
151
162
|
dev,
|
152
163
|
clean,
|
@@ -154,6 +165,7 @@ var modes = {
|
|
154
165
|
prebuild,
|
155
166
|
"run:ios": runIos,
|
156
167
|
"run:android": runAndroid,
|
168
|
+
patch,
|
157
169
|
serve: serveCommand
|
158
170
|
}, subMain = defineCommand({
|
159
171
|
meta: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/cli.ts"],
|
4
|
-
"mappings": "AAAA,SAASA,eAAeC,eAAe;AACvC,OAAOC,YAAY;AACnB,SAASC,oBAAoB;AAC7B,OAAOC,UAAU;AACjB,SAASC,qBAAqB;AAE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;AAC7B,UAAMA,IAAIP,IAAAA;EACZ;AACF,CAAA,GAEMC,QAAQ7B,cAAc;EAC1ByB,MAAM;IACJC,MAAM;IACNX,SAAS;IACTY,aAAa;EACf;EACAC,MAAM,CAAC;EACP,MAAMO,MAAAA;AACJ,QAAM,EAAEN,OAAOuB,UAAS,IAAK,MAAM,OAAO,MAAA;AAC1C,UAAMA,UAAU;MACdC,MAAMZ,QAAQa,IAAG;IACnB,CAAA;EACF;AACF,CAAA,GAEMC,cAAc;
|
5
|
-
"names": ["defineCommand", "runMain", "colors", "readFileSync", "path", "fileURLToPath", "getPackageVersion", "dirname", "__dirname", "url", "packagePath", "join", "packageJson", "JSON", "parse", "version", "sep", "console", "warn", "bgYellow", "yellow", "modes", "development", "production", "dev", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "mode", "run", "buildCommand", "step", "required", "only", "build", "process", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "runIos", "runAndroid", "vxrnClean", "root", "cwd", "subCommands", "subMain", "main", "cliMain"]
|
4
|
+
"mappings": "AAAA,SAASA,eAAeC,eAAe;AACvC,OAAOC,YAAY;AACnB,SAASC,oBAAoB;AAC7B,OAAOC,UAAU;AACjB,SAASC,qBAAqB;AAE9B,SAASC,oBAAAA;AACP,MAAIC;AACJ,EAAI,OAAOC,YAAc,MAEvBD,UAAUC,YAGVD,UAAUH,KAAKG,QAAQF,cAAc,YAAYI,GAAG,CAAA;AAEtD,MAAMC,cAAcN,KAAKO,KAAKJ,SAAS,MAAM,MAAM,cAAA,GAC7CK,cAAcC,KAAKC,MAAMX,aAAaO,aAAa,OAAA,CAAA;AACzD,SAAOE,YAAYG;AACrB;AAEA,IAAMA,UAAUT,kBAAAA;AAEZF,KAAKY,QAAQ,OACfC,QAAQC,KACNhB,OAAOiB,SAAS,yBAAA,IACdjB,OAAOkB,OACL,kHAAA,CAAA;AAKR,IAAMC,QAAQ;EACZC,aAAa;EACbC,YAAY;AACd,GAEMC,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AEO,IAAG,IAAK,MAAM,OAAO,aAAA;AAC7B,UAAMA,IAAIP,IAAAA;EACZ;AACF,CAAA,GAEM4B,cAAc;EAClBhC;EACAK;EACAW,OAAOJ;EACPa;EACA,WAAWC;EACX,eAAeC;EACfI;EACAR,OAAOJ;AACT,GAGMc,UAAUzD,cAAc;EAC5ByB,MAAM;IACJC,MAAM;IACNX;IACAY,aAAa;EACf;EACA6B;AACF,CAAA,GAEME,OAAO1D,cAAc;EACzByB,MAAM;IACJC,MAAM;IACNX;IACAY,aAAa;EACf;EACAC,MAAM;IACJF,MAAM;MACJI,MAAM;MACNH,aAAa;MACbW,UAAU;IACZ;EACF;EACA,MAAMH,IAAI,OAAQ;QAAR,EAAEP,KAAI,IAAN;AACR,QAAI4B,YAAY5B,KAAKF,IAAI,GAAG;AAE1BzB,cAAQwD,OAAAA;AACR;IACF;AAEA,QAAM,EAAEE,QAAO,IAAK,MAAM,OAAO,YAAA;AACjC,UAAMA,QAAQ/B,IAAAA;EAChB;AACF,CAAA;AAEA3B,QAAQyD,IAAAA;",
|
5
|
+
"names": ["defineCommand", "runMain", "colors", "readFileSync", "path", "fileURLToPath", "getPackageVersion", "dirname", "__dirname", "url", "packagePath", "join", "packageJson", "JSON", "parse", "version", "sep", "console", "warn", "bgYellow", "yellow", "modes", "development", "production", "dev", "meta", "name", "description", "args", "clean", "type", "host", "port", "https", "mode", "run", "buildCommand", "step", "required", "only", "build", "process", "exit", "serveCommand", "platform", "compress", "cacheHeaders", "serve", "undefined", "prebuild", "runIos", "runAndroid", "vxrnClean", "root", "cwd", "patch", "subCommands", "subMain", "main", "cliMain"]
|
6
6
|
}
|
@@ -51,7 +51,8 @@ function createFileSystemRouter(options) {
|
|
51
51
|
headers: { "Content-Type": "text/html" }
|
52
52
|
}) : html;
|
53
53
|
} catch (err) {
|
54
|
-
console.error(
|
54
|
+
console.error(`SSR error while loading file ${route.file} from URL ${url.href}
|
55
|
+
`, err);
|
55
56
|
const title = `Error rendering ${url.pathname} on server`, message = err instanceof Error ? err.message : `${err}`, stack = err instanceof Error ? err.stack : "";
|
56
57
|
return console.error(`${title}
|
57
58
|
${message}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../src/vite/createFileSystemRouter.tsx"],
|
4
|
-
"mappings": "AAAA,SAAS,YAAY;AACrB,SAAS,gBAAgB;AAEzB,SAAS,gCAAgC;AAEzC,SAAS,2BAA2B;AAEpC,SAAS,kBAAkB;AAC3B,SAAS,wBAAwB;AACjC,SAAS,4BAA4B;AACrC,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,SAAS,yBAAyB;AAElC,SAAS,qBAAqB,sBAAsB;AAGpD,MAAM,iBAAiB;AAAM;AAEtB,SAAS,uBAAuB,SAAoC;AACzE,QAAM,WAAW,CAAC,iBAAiB,mBAAmB;AAEtD,MAAI,QACA,QAEA,gBAAgB,qBAAqB,GAErC,gBAAsC;AAE1C,WAAS,uBAAuB;AAC9B,WAAO,oBAAoB,SAAS;AAAA,MAClC,MAAM,UAAU,EAAE,OAAO,KAAK,YAAY,GAAG;AAG3C,YAFA,QAAQ,KAAK,aAAQ,MAAM,IAAI,KAAK,GAAG,gBAAgB,MAAM,IAAI,EAAE,GAE/D,MAAM,SAAS;AAEjB,iBAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcT,QAAI,iBACF,MAAM;AAGR,cAAM,EAAE,SAAS,QAAQ,IAAI,qBAA2B;AACxD,wBAAgB;AAEhB,YAAI;AACF,gBAAM,YAAY,KAAK,OAAO,MAAM,IAAI;AACxC,iBAAO,WAAW,GAElB,WAAW,mBAAsB;AAEjC,gBAAM,WAAW,cAAc,KAAK,CAAC,IAAI,MAAM,OAAO,OAAO,SAAS,GAChE,aAAa,MAAM,SAAS,SAAS,WAAW;AAGtD,eAAK,qCAAqC;AAE1C,gBAAM,QAAQ,MAAM,OAAO,OAAO,c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ACrD,OAAO,GAAG,SAAS,MAAM;AAAA,EAC3B,CAAC;AACH;",
|
5
5
|
"names": ["route", "url", "loaderProps", "routeFile", "loaderData", "resolve"]
|
6
6
|
}
|
@@ -65,7 +65,8 @@ function createFileSystemRouter(options) {
|
|
65
65
|
}
|
66
66
|
}) : html;
|
67
67
|
} catch (err) {
|
68
|
-
console.error(
|
68
|
+
console.error(`SSR error while loading file ${route.file} from URL ${url.href}
|
69
|
+
`, err);
|
69
70
|
const title = `Error rendering ${url.pathname} on server`,
|
70
71
|
message = err instanceof Error ? err.message : `${err}`,
|
71
72
|
stack = err instanceof Error ? err.stack : "";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["join","debounce","createServerModuleRunner","createHandleRequest","isResponse","isStatusRedirect","promiseWithResolvers","LoaderDataCache","replaceLoader","resolveAPIRequest","virtalEntryIdClient","virtualEntryId","USE_SERVER_ENV","createFileSystemRouter","options","preloads","runner","server","handleRequest","createRequestHandler","renderPromise","handleSSR","route","url","loaderProps","console","info","type","file","promise","resolve","routeFile","clearCache","globalThis","__vxrnresetState","exported","import","loaderData","loader","eval","entry","render","default","__vxrnLoaderData__","__vxrnLoaderProps__","is404","isNotFound","html","path","Response","status","headers","err","error","title","pathname","message","Error","stack","handleLoader","request","route2","url2","loaderProps2","routeFile2","transformedJS","transformRequest","code","loaderData2","platform","searchParams","get","environments","JSON","stringify","handleAPI","params","name","enforce","apply","config","userConfig","manifest","pageRoutes","optimizeDeps","entries","Set","flatMap","layouts","map","layout","contextKey","configureServer","serverIn","ssr","appDir","process","cwd","fileWatcherChangeListener","startsWith","watcher","addListener","middlewares","use","req","res","next","redirects","web","URL","host","redirect","regexStr","source","replace","match","RegExp","destination","forEach","param","index","warn","writeHead","permanent","Location","end","reply","handler","convertIncomingMessageToRequest","value","key","cookies","split","cookie","appendHeader","setHeader","location","statusCode","statusMessage","statusText","outString","body","locked","streamToString","write","stream","reader","getReader","decoder","TextDecoder","result","done","read","decode","releaseLock","originalUrl","urlBase","urlString","Headers","append","Request","method","includes","readStream","Promise","resolve2","reject","chunks","on","chunk","push","Buffer","concat"],"sources":["../../../src/vite/createFileSystemRouter.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AAEzB,SAASC,wBAAA,QAAgC;AAEzC,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,oBAAA,QAA4B;AACrC,SAASC,eAAA,QAAuB;AAChC,SAASC,aAAA,QAAqB;AAC9B,SAASC,iBAAA,QAAyB;AAElC,SAASC,mBAAA,EAAqBC,cAAA,QAAsB;AAGpD,MAAMC,cAAA,GAAiB;AAAM;AAEtB,SAASC,uBAAuBC,OAAA,EAAoC;EACzE,MAAMC,QAAA,GAAW,CAAC,iBAAiBL,mBAAmB;EAEtD,IAAIM,MAAA;IACAC,MAAA;IAEAC,aAAA,GAAgBC,oBAAA,CAAqB;IAErCC,aAAA,GAAsC;EAE1C,SAASD,qBAAA,EAAuB;IAC9B,OAAOhB,mBAAA,CAAoBW,OAAA,EAAS;MAClC,MAAMO,UAAU;QAAEC,KAAA;QAAOC,GAAA;QAAKC;MAAY,GAAG;QAG3C,IAFAC,OAAA,CAAQC,IAAA,CAAK,aAAQJ,KAAA,CAAMK,IAAI,KAAKJ,GAAG,gBAAgBD,KAAA,CAAMM,IAAI,EAAE,GAE/DN,KAAA,CAAMK,IAAA,KAAS,OAEjB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;QAcLP,aAAA,KACF,MAAMA,aAAA;QAGR,MAAM;UAAES,OAAA;UAASC;QAAQ,IAAIxB,oBAAA,CAA2B;QACxDc,aAAA,GAAgBS,OAAA;QAEhB,IAAI;UACF,MAAME,SAAA,GAAY/B,IAAA,CAAK,OAAOsB,KAAA,CAAMM,IAAI;UACxCZ,MAAA,CAAOgB,UAAA,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SAASF,MAAM;EAC3B,CAAC;AACH","ignoreList":[]}
|
1
|
+
{"version":3,"names":["join","debounce","createServerModuleRunner","createHandleRequest","isResponse","isStatusRedirect","promiseWithResolvers","LoaderDataCache","replaceLoader","resolveAPIRequest","virtalEntryIdClient","virtualEntryId","USE_SERVER_ENV","createFileSystemRouter","options","preloads","runner","server","handleRequest","createRequestHandler","renderPromise","handleSSR","route","url","loaderProps","console","info","type","file","promise","resolve","routeFile","clearCache","globalThis","__vxrnresetState","exported","import","loaderData","loader","eval","entry","render","default","__vxrnLoaderData__","__vxrnLoaderProps__","is404","isNotFound","html","path","Response","status","headers","err","error","href","title","pathname","message","Error","stack","handleLoader","request","route2","url2","loaderProps2","routeFile2","transformedJS","transformRequest","code","loaderData2","platform","searchParams","get","environments","JSON","stringify","handleAPI","params","name","enforce","apply","config","userConfig","manifest","pageRoutes","optimizeDeps","entries","Set","flatMap","layouts","map","layout","contextKey","configureServer","serverIn","ssr","appDir","process","cwd","fileWatcherChangeListener","startsWith","watcher","addListener","middlewares","use","req","res","next","redirects","web","URL","host","redirect","regexStr","source","replace","match","RegExp","destination","forEach","param","index","warn","writeHead","permanent","Location","end","reply","handler","convertIncomingMessageToRequest","value","key","cookies","split","cookie","appendHeader","setHeader","location","statusCode","statusMessage","statusText","outString","body","locked","streamToString","write","stream","reader","getReader","decoder","TextDecoder","result","done","read","decode","releaseLock","originalUrl","urlBase","urlString","Headers","append","Request","method","includes","readStream","Promise","resolve2","reject","chunks","on","chunk","push","Buffer","concat"],"sources":["../../../src/vite/createFileSystemRouter.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,IAAA,QAAY;AACrB,SAASC,QAAA,QAAgB;AAEzB,SAASC,wBAAA,QAAgC;AAEzC,SAASC,mBAAA,QAA2B;AAEpC,SAASC,UAAA,QAAkB;AAC3B,SAASC,gBAAA,QAAwB;AACjC,SAASC,oBAAA,QAA4B;AACrC,SAASC,eAAA,QAAuB;AAChC,SAASC,aAAA,QAAqB;AAC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;IAC/B7F,IAAA,GAAM,IAAI+C,GAAA,CAAIgD,SAAA,EAAWD,OAAO;IAEhC1G,OAAA,GAAU,IAAI4G,OAAA,CAAQ;EAC5B,WAAW5B,GAAA,IAAO1B,GAAA,CAAItD,OAAA,EAChBsD,GAAA,CAAItD,OAAA,CAAQgF,GAAG,KAAGhF,OAAA,CAAQ6G,MAAA,CAAO7B,GAAA,EAAK1B,GAAA,CAAItD,OAAA,CAAQgF,GAAG,CAAW;EAGtE,OAAO,IAAI8B,OAAA,CAAQlG,IAAA,EAAK;IACtBmG,MAAA,EAAQzD,GAAA,CAAIyD,MAAA;IACZpB,IAAA,EAAM,CAAC,QAAQ,OAAO,SAAS,QAAQ,EAAEqB,QAAA,CAAS1D,GAAA,CAAIyD,MAAA,IAAU,EAAE,IAC9D,MAAME,UAAA,CAAW3D,GAAG,IACpB;IACJtD;EACF,CAAC;AACH;AAEA,SAASiH,WAAWlB,MAAA,EAAkD;EACpE,OAAO,IAAImB,OAAA,CAAQ,CAACC,QAAA,EAASC,MAAA,KAAW;IACtC,MAAMC,MAAA,GAAuB,EAAC;IAC9BtB,MAAA,CAAOuB,EAAA,CAAG,QAASC,KAAA,IAAsBF,MAAA,CAAOG,IAAA,CAAKD,KAAK,CAAC,GAC3DxB,MAAA,CAAOuB,EAAA,CAAG,OAAO,MAAMH,QAAA,CAAQM,MAAA,CAAOC,MAAA,CAAOL,MAAM,CAAC,CAAC,GACrDtB,MAAA,CAAOuB,EAAA,CAAG,SAASF,MAAM;EAC3B,CAAC;AACH","ignoreList":[]}
|
@@ -60,7 +60,8 @@ function createFileSystemRouter(options) {
|
|
60
60
|
}
|
61
61
|
}) : html;
|
62
62
|
} catch (err) {
|
63
|
-
console.error(
|
63
|
+
console.error(`SSR error while loading file ${route.file} from URL ${url.href}
|
64
|
+
`, err);
|
64
65
|
var title = `Error rendering ${url.pathname} on server`, message = err instanceof Error ? err.message : `${err}`, stack = err instanceof Error ? err.stack : "";
|
65
66
|
return console.error(`${title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A,SAAAA,iBAAAA,KAAAA,UAAkBR,WAAAA;AAG3Cc,eAAK,qCAAqC;AAE1C,cAAMC,QAAQ,MAAMvB,OAAOmB,OAAOxB,cAAAA,GAE5B6B,SAASD,MAAME,QAAQD;AAE7BT,qBAAW,qBAAwBK,YACnCL,WAAW,sBAAyBP,aAEpCjB,gBAAgBe,MAAMM,IAAI,IAAIQ;AAE9B,cAAMM,QAAQpB,MAAMqB,cAAc,CAACX,SAASS,SAEtCG,OAAO,MAAMJ,OAAO;YACxBJ;YACAZ;YACAqB,MAAMrB,aAAaqB,QAAQ;YAC3B9B;UACF,CAAA;AAEA,iBAAI2B,QACK,IAAII,SAASF,MAAM;YACxBG,QAAQ;YACRC,SAAS;cAAE,gBAAgB;YAAY;UACzC,CAAA,IAGKJ;QACT,SAASK,KAAK;AACZxB,kBAAQyB,MAAM,
|
5
|
-
"names": ["join", "debounce", "createServerModuleRunner", "createHandleRequest", "isResponse", "isStatusRedirect", "promiseWithResolvers", "LoaderDataCache", "replaceLoader", "resolveAPIRequest", "virtalEntryIdClient", "virtualEntryId", "USE_SERVER_ENV", "createFileSystemRouter", "options", "preloads", "runner", "server", "handleRequest", "createRequestHandler", "renderPromise", "handleSSR", "route", "url", "loaderProps", "console", "info", "type", "file", "promise", "resolve", "globalThis", "exported", "routeFile", "clearCache", "import", "loaderData", "loader", "eval", "entry", "render", "default", "is404", "isNotFound", "html", "path", "Response", "status", "headers", "err", "error", "title", "pathname", "message", "Error", "stack", "handleLoader", "param", "request", "transformedJS", "transformRequest", "code", "platform", "searchParams", "get", "environment", "environments", "nativeTransformedJS", "JSON", "stringify", "handleAPI", "result", "params", "name", "enforce", "apply", "config", "userConfig", "manifest", "pageRoutes", "routesAndLayouts", "Set", "flatMap", "layouts", "map", "layout", "contextKey", "optimizeDeps", "entries", "configureServer", "serverIn", "ssr", "appDir", "process", "cwd", "fileWatcherChangeListener", "startsWith", "watcher", "addListener", "middlewares", "use", "req", "res", "next", "redirects", "web", "URL", "host", "redirect", "regexStr", "source", "replace", "match", "RegExp", "destination", "forEach", "index", "warn", "writeHead", "permanent", "Location", "end", "reply", "handler", "convertIncomingMessageToRequest", "value", "key", "cookies", "split", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "_step", "cookie", "appendHeader", "setHeader", "location", "statusCode", "statusMessage", "statusText", "outString", "body", "locked", "streamToString", "write", "stream", "reader", "getReader", "decoder", "TextDecoder", "done", "read", "decode", "releaseLock", "originalUrl", "urlBase", "urlString", "Headers", "append", "Request", "method", "includes", "readStream", "Promise", "reject", "chunks", "on", "chunk", "push", "Buffer", "concat"]
|
4
|
+
"mappings": "AAAA,SAASA,YAAY;AACrB,SAASC,gBAAgB;AAEzB,SAASC,gCAAgC;AAEzC,SAASC,2BAA2B;AAEpC,SAASC,kBAAkB;AAC3B,SAASC,wBAAwB;AACjC,SAASC,4BAA4B;AACrC,SAASC,uBAAuB;AAChC,SAASC,qBAAqB;AAC9B,SAASC,yBAAyB;AAElC,SAASC,qBAAqBC,sBAAsB;;;;;AAGpD,IAAMC,iBAAiB;AAAM;AAEtB,SAASC,uBAAuBC,SAA0B;AAC/D,MAAMC,WAAW;IAAC;IAAiBL;KAE/BM,QACAC,QAEAC,gBAAgBC,qBAAAA,GAEhBC,gBAAsC;AAE1C,WAASD,uBAAAA;AACP,WAAOhB,oBAAoBW,SAAS;MAClC,MAAMO,UAAU,OAA2B;YAA3B,EAAEC,OAAOC,KAAKC,YAAW,IAAzB;AAGd,YAFAC,QAAQC,KAAK,aAAQJ,MAAMK,IAAI,KAAKJ,GAAAA,gBAAmBD,MAAMM,IAAI,EAAE,GAE/DN,MAAMK,SAAS;AAEjB,iBAAO;;;;;;;;;;;;AAcT,QAAIP,iBACF,MAAMA;AAGR,YAAM,EAAES,SAASC,QAAO,IAAKxB,qBAAAA;AAC7Bc,wBAAgBS;AAEhB,YAAI;cAIFE,8BAAAA,aAGyBC,kBANnBC,YAAYjC,KAAK,OAAOsB,MAAMM,IAAI;A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AA;aAAM1I,SAAQ6I,OAAOC,OAAOL,MAAAA,CAAAA;QAC7CpB,OAAOqB,GAAG,SAASF,MAAAA;EACrB,CAAA;AACF;",
|
5
|
+
"names": ["join", "debounce", "createServerModuleRunner", "createHandleRequest", "isResponse", "isStatusRedirect", "promiseWithResolvers", "LoaderDataCache", "replaceLoader", "resolveAPIRequest", "virtalEntryIdClient", "virtualEntryId", "USE_SERVER_ENV", "createFileSystemRouter", "options", "preloads", "runner", "server", "handleRequest", "createRequestHandler", "renderPromise", "handleSSR", "route", "url", "loaderProps", "console", "info", "type", "file", "promise", "resolve", "globalThis", "exported", "routeFile", "clearCache", "import", "loaderData", "loader", "eval", "entry", "render", "default", "is404", "isNotFound", "html", "path", "Response", "status", "headers", "err", "error", "href", "title", "pathname", "message", "Error", "stack", "handleLoader", "param", "request", "transformedJS", "transformRequest", "code", "platform", "searchParams", "get", "environment", "environments", "nativeTransformedJS", "JSON", "stringify", "handleAPI", "result", "params", "name", "enforce", "apply", "config", "userConfig", "manifest", "pageRoutes", "routesAndLayouts", "Set", "flatMap", "layouts", "map", "layout", "contextKey", "optimizeDeps", "entries", "configureServer", "serverIn", "ssr", "appDir", "process", "cwd", "fileWatcherChangeListener", "startsWith", "watcher", "addListener", "middlewares", "use", "req", "res", "next", "redirects", "web", "URL", "host", "redirect", "regexStr", "source", "replace", "match", "RegExp", "destination", "forEach", "index", "warn", "writeHead", "permanent", "Location", "end", "reply", "handler", "convertIncomingMessageToRequest", "value", "key", "cookies", "split", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "_step", "cookie", "appendHeader", "setHeader", "location", "statusCode", "statusMessage", "statusText", "outString", "body", "locked", "streamToString", "write", "stream", "reader", "getReader", "decoder", "TextDecoder", "done", "read", "decode", "releaseLock", "originalUrl", "urlBase", "urlString", "Headers", "append", "Request", "method", "includes", "readStream", "Promise", "reject", "chunks", "on", "chunk", "push", "Buffer", "concat"]
|
6
6
|
}
|
package/dist/esm/vite.js
CHANGED
@@ -3,6 +3,7 @@ import { createFileSystemRouter } from "./vite/createFileSystemRouter";
|
|
3
3
|
import { vitePluginSsrCss } from "./vite/vitePluginSsrCss";
|
4
4
|
import { removeReactNativeWebAnimatedPlugin } from "./vite/removeReactNativeWebAnimatedPlugin";
|
5
5
|
import { makePluginWebOnly } from "./vite/makePluginWebOnly";
|
6
|
+
import { resolvePath } from "@vxrn/resolve";
|
6
7
|
import { setCurrentRequestHeaders } from "./vite/headers";
|
7
8
|
import { build } from "./vite/build";
|
8
9
|
import { one } from "./vite/one";
|
@@ -13,6 +14,7 @@ export {
|
|
13
14
|
makePluginWebOnly,
|
14
15
|
one,
|
15
16
|
removeReactNativeWebAnimatedPlugin,
|
17
|
+
resolvePath,
|
16
18
|
setCurrentRequestHeaders,
|
17
19
|
vitePluginSsrCss
|
18
20
|
};
|
package/dist/esm/vite.js.map
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/vite.ts"],
|
4
|
-
"mappings": "AACA,SAAS,6BAA6B;AACtC,SAAS,8BAA8B;AACvC,SAAS,wBAAwB;AACjC,SAAS,0CAA0C;AACnD,SAAS,yBAAyB;
|
4
|
+
"mappings": "AACA,SAAS,6BAA6B;AACtC,SAAS,8BAA8B;AACvC,SAAS,wBAAwB;AACjC,SAAS,0CAA0C;AACnD,SAAS,yBAAyB;AAClC,SAAS,mBAAmB;AAE5B,SAAS,gCAAgC;AAEzC,SAAS,aAAa;AACtB,SAAS,WAAW;",
|
5
5
|
"names": []
|
6
6
|
}
|
package/dist/esm/vite.mjs
CHANGED
@@ -3,8 +3,9 @@ import { createFileSystemRouter } from "./vite/createFileSystemRouter.mjs";
|
|
3
3
|
import { vitePluginSsrCss } from "./vite/vitePluginSsrCss.mjs";
|
4
4
|
import { removeReactNativeWebAnimatedPlugin } from "./vite/removeReactNativeWebAnimatedPlugin.mjs";
|
5
5
|
import { makePluginWebOnly } from "./vite/makePluginWebOnly.mjs";
|
6
|
+
import { resolvePath } from "@vxrn/resolve";
|
6
7
|
import { setCurrentRequestHeaders } from "./vite/headers.mjs";
|
7
8
|
import { build } from "./vite/build.mjs";
|
8
9
|
import { one } from "./vite/one.mjs";
|
9
|
-
export { build, clientTreeShakePlugin, createFileSystemRouter, makePluginWebOnly, one, removeReactNativeWebAnimatedPlugin, setCurrentRequestHeaders, vitePluginSsrCss };
|
10
|
+
export { build, clientTreeShakePlugin, createFileSystemRouter, makePluginWebOnly, one, removeReactNativeWebAnimatedPlugin, resolvePath, setCurrentRequestHeaders, vitePluginSsrCss };
|
10
11
|
//# sourceMappingURL=vite.mjs.map
|
package/dist/esm/vite.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["clientTreeShakePlugin","createFileSystemRouter","vitePluginSsrCss","removeReactNativeWebAnimatedPlugin","makePluginWebOnly","setCurrentRequestHeaders","build","one"],"sources":["../../src/vite.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,gBAAA,QAAwB;AACjC,SAASC,kCAAA,QAA0C;AACnD,SAASC,iBAAA,QAAyB;
|
1
|
+
{"version":3,"names":["clientTreeShakePlugin","createFileSystemRouter","vitePluginSsrCss","removeReactNativeWebAnimatedPlugin","makePluginWebOnly","resolvePath","setCurrentRequestHeaders","build","one"],"sources":["../../src/vite.ts"],"sourcesContent":[null],"mappings":"AACA,SAASA,qBAAA,QAA6B;AACtC,SAASC,sBAAA,QAA8B;AACvC,SAASC,gBAAA,QAAwB;AACjC,SAASC,kCAAA,QAA0C;AACnD,SAASC,iBAAA,QAAyB;AAClC,SAASC,WAAA,QAAmB;AAE5B,SAASC,wBAAA,QAAgC;AAEzC,SAASC,KAAA,QAAa;AACtB,SAASC,GAAA,QAAW","ignoreList":[]}
|
package/dist/esm/vite.native.js
CHANGED
@@ -3,6 +3,7 @@ import { createFileSystemRouter } from "./vite/createFileSystemRouter";
|
|
3
3
|
import { vitePluginSsrCss } from "./vite/vitePluginSsrCss";
|
4
4
|
import { removeReactNativeWebAnimatedPlugin } from "./vite/removeReactNativeWebAnimatedPlugin";
|
5
5
|
import { makePluginWebOnly } from "./vite/makePluginWebOnly";
|
6
|
+
import { resolvePath } from "@vxrn/resolve";
|
6
7
|
import { setCurrentRequestHeaders } from "./vite/headers";
|
7
8
|
import { build } from "./vite/build";
|
8
9
|
import { one } from "./vite/one";
|
@@ -13,6 +14,7 @@ export {
|
|
13
14
|
makePluginWebOnly,
|
14
15
|
one,
|
15
16
|
removeReactNativeWebAnimatedPlugin,
|
17
|
+
resolvePath,
|
16
18
|
setCurrentRequestHeaders,
|
17
19
|
vitePluginSsrCss
|
18
20
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/Users/n8/one/packages/one/src/vite.ts"],
|
4
|
-
"mappings": "AACA,SAASA,6BAA6B;AACtC,SAASC,8BAA8B;AACvC,SAASC,wBAAwB;AACjC,SAASC,0CAA0C;AACnD,SAASC,yBAAyB;
|
5
|
-
"names": ["clientTreeShakePlugin", "createFileSystemRouter", "vitePluginSsrCss", "removeReactNativeWebAnimatedPlugin", "makePluginWebOnly", "setCurrentRequestHeaders", "build", "one"]
|
4
|
+
"mappings": "AACA,SAASA,6BAA6B;AACtC,SAASC,8BAA8B;AACvC,SAASC,wBAAwB;AACjC,SAASC,0CAA0C;AACnD,SAASC,yBAAyB;AAClC,SAASC,mBAAmB;AAE5B,SAASC,gCAAgC;AAEzC,SAASC,aAAa;AACtB,SAASC,WAAW;",
|
5
|
+
"names": ["clientTreeShakePlugin", "createFileSystemRouter", "vitePluginSsrCss", "removeReactNativeWebAnimatedPlugin", "makePluginWebOnly", "resolvePath", "setCurrentRequestHeaders", "build", "one"]
|
6
6
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "one",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.321",
|
4
4
|
"source": "src/index.ts",
|
5
5
|
"types": "./types/index.d.ts",
|
6
6
|
"sideEffects": false,
|
@@ -91,14 +91,14 @@
|
|
91
91
|
"@react-navigation/native-stack": "~6.9.13",
|
92
92
|
"@react-navigation/routers": "~6.1.9",
|
93
93
|
"@ungap/structured-clone": "^1.2.0",
|
94
|
-
"@vxrn/resolve": "1.1.
|
95
|
-
"@vxrn/tslib-lite": "1.1.
|
96
|
-
"@vxrn/universal-color-scheme": "1.1.
|
97
|
-
"@vxrn/use-isomorphic-layout-effect": "1.1.
|
94
|
+
"@vxrn/resolve": "1.1.321",
|
95
|
+
"@vxrn/tslib-lite": "1.1.321",
|
96
|
+
"@vxrn/universal-color-scheme": "1.1.321",
|
97
|
+
"@vxrn/use-isomorphic-layout-effect": "1.1.321",
|
98
98
|
"babel-dead-code-elimination": "^1.0.6",
|
99
99
|
"citty": "^0.1.6",
|
100
100
|
"core-js": "^3.38.1",
|
101
|
-
"create-vxrn": "1.1.
|
101
|
+
"create-vxrn": "1.1.321",
|
102
102
|
"escape-string-regexp": "^5.0.0",
|
103
103
|
"expo-linking": "~6.3.1",
|
104
104
|
"expo-modules-core": "^1.12.24",
|
@@ -120,7 +120,7 @@
|
|
120
120
|
"url-parse": "^1.5.10",
|
121
121
|
"vite": "6.0.0-beta.1",
|
122
122
|
"vite-tsconfig-paths": "^5.0.1",
|
123
|
-
"vxrn": "1.1.
|
123
|
+
"vxrn": "1.1.321",
|
124
124
|
"ws": "^8.18.0",
|
125
125
|
"xxhashjs": "^0.2.2"
|
126
126
|
},
|
@@ -128,7 +128,7 @@
|
|
128
128
|
"react-native": "*"
|
129
129
|
},
|
130
130
|
"devDependencies": {
|
131
|
-
"@tamagui/build": "^1.
|
131
|
+
"@tamagui/build": "^1.116.4",
|
132
132
|
"@types/node": "^22.1.0",
|
133
133
|
"@types/react-dom": "^18.2.25",
|
134
134
|
"@types/url-parse": "^1.4.11",
|
package/src/cli/patch.ts
ADDED
package/src/cli.ts
CHANGED
@@ -183,6 +183,19 @@ const clean = defineCommand({
|
|
183
183
|
},
|
184
184
|
})
|
185
185
|
|
186
|
+
const patch = defineCommand({
|
187
|
+
meta: {
|
188
|
+
name: 'patch',
|
189
|
+
version: '0.0.0',
|
190
|
+
description: 'Apply package patches',
|
191
|
+
},
|
192
|
+
args: {},
|
193
|
+
async run({ args }) {
|
194
|
+
const { run } = await import('./cli/patch')
|
195
|
+
await run(args)
|
196
|
+
},
|
197
|
+
})
|
198
|
+
|
186
199
|
const subCommands = {
|
187
200
|
dev,
|
188
201
|
clean,
|
@@ -190,6 +203,7 @@ const subCommands = {
|
|
190
203
|
prebuild,
|
191
204
|
'run:ios': runIos,
|
192
205
|
'run:android': runAndroid,
|
206
|
+
patch,
|
193
207
|
serve: serveCommand,
|
194
208
|
}
|
195
209
|
|
@@ -94,7 +94,7 @@ export function createFileSystemRouter(options: One.PluginOptions): Plugin {
|
|
94
94
|
|
95
95
|
return html
|
96
96
|
} catch (err) {
|
97
|
-
console.error(`
|
97
|
+
console.error(`SSR error while loading file ${route.file} from URL ${url.href}\n`, err)
|
98
98
|
const title = `Error rendering ${url.pathname} on server`
|
99
99
|
const message = err instanceof Error ? err.message : `${err}`
|
100
100
|
const stack = err instanceof Error ? err.stack : ''
|
package/src/vite.ts
CHANGED
@@ -4,6 +4,7 @@ export { createFileSystemRouter } from './vite/createFileSystemRouter'
|
|
4
4
|
export { vitePluginSsrCss } from './vite/vitePluginSsrCss'
|
5
5
|
export { removeReactNativeWebAnimatedPlugin } from './vite/removeReactNativeWebAnimatedPlugin'
|
6
6
|
export { makePluginWebOnly } from './vite/makePluginWebOnly'
|
7
|
+
export { resolvePath } from '@vxrn/resolve'
|
7
8
|
|
8
9
|
export { setCurrentRequestHeaders } from './vite/headers'
|
9
10
|
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"patch.d.ts","sourceRoot":"","sources":["../../src/cli/patch.ts"],"names":[],"mappings":"AAAA,wBAAsB,GAAG,CAAC,IAAI,EAAE,EAAE,iBAKjC"}
|
package/types/vite.d.ts
CHANGED
@@ -3,6 +3,7 @@ export { createFileSystemRouter } from './vite/createFileSystemRouter';
|
|
3
3
|
export { vitePluginSsrCss } from './vite/vitePluginSsrCss';
|
4
4
|
export { removeReactNativeWebAnimatedPlugin } from './vite/removeReactNativeWebAnimatedPlugin';
|
5
5
|
export { makePluginWebOnly } from './vite/makePluginWebOnly';
|
6
|
+
export { resolvePath } from '@vxrn/resolve';
|
6
7
|
export { setCurrentRequestHeaders } from './vite/headers';
|
7
8
|
export { build } from './vite/build';
|
8
9
|
export { one } from './vite/one';
|
package/types/vite.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../src/vite.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAA;AAC9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;
|
1
|
+
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../src/vite.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAA;AAC9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AAEzD,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA"}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
var __defProp = Object.defineProperty;
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
-
var __export = (target, all) => {
|
6
|
-
for (var name in all) __defProp(target, name, {
|
7
|
-
get: all[name],
|
8
|
-
enumerable: !0
|
9
|
-
});
|
10
|
-
},
|
11
|
-
__copyProps = (to, from, except, desc) => {
|
12
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
13
|
-
get: () => from[key],
|
14
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
15
|
-
});
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
19
|
-
value: !0
|
20
|
-
}), mod);
|
21
|
-
var createApp_native_exports = {};
|
22
|
-
__export(createApp_native_exports, {
|
23
|
-
createApp: () => createApp
|
24
|
-
});
|
25
|
-
module.exports = __toCommonJS(createApp_native_exports);
|
26
|
-
var import_polyfills_mobile = require("./polyfills-mobile.cjs"),
|
27
|
-
import_Root = require("./Root.cjs"),
|
28
|
-
import_react_native = require("react-native-web"),
|
29
|
-
import_jsx_runtime = require("react/jsx-runtime");
|
30
|
-
import_react_native.LogBox.ignoreLogs([/Sending .* with no listeners registered/]);
|
31
|
-
function createApp(options) {
|
32
|
-
const App = () => /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_Root.Root, {
|
33
|
-
isClient: !0,
|
34
|
-
routes: options.routes,
|
35
|
-
path: "/"
|
36
|
-
});
|
37
|
-
import_react_native.AppRegistry.registerComponent("main", () => App), import_react_native.AppRegistry.registerComponent("tamaguikitchensink", () => App), process.env.ONE_APP_NAME && import_react_native.AppRegistry.registerComponent(process.env.ONE_APP_NAME, () => App);
|
38
|
-
}
|
@@ -1,6 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../src/createApp.native.tsx"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,8BAAO,+BACP,cAAqB,mBACrB,sBAAoC,yBAQhB;AAHpB,2BAAO,WAAW,CAAC,yCAAyC,CAAC;AAEtD,SAAS,UAAU,SAA+B;AACvD,QAAM,MAAM,MAAM,4CAAC,oBAAK,UAAQ,IAAC,QAAQ,QAAQ,QAAQ,MAAK,KAAI;AAElE,kCAAY,kBAAkB,QAAQ,MAAM,GAAG,GAG/C,gCAAY,kBAAkB,sBAAsB,MAAM,GAAG,GAEzD,QAAQ,IAAI,gBACd,gCAAY,kBAAkB,QAAQ,IAAI,cAAc,MAAM,GAAG;AAErE;",
|
5
|
-
"names": []
|
6
|
-
}
|
@@ -1,103 +0,0 @@
|
|
1
|
-
var __create = Object.create;
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __getProtoOf = Object.getPrototypeOf,
|
6
|
-
__hasOwnProp = Object.prototype.hasOwnProperty;
|
7
|
-
var __export = (target, all) => {
|
8
|
-
for (var name in all) __defProp(target, name, {
|
9
|
-
get: all[name],
|
10
|
-
enumerable: !0
|
11
|
-
});
|
12
|
-
},
|
13
|
-
__copyProps = (to, from, except, desc) => {
|
14
|
-
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
15
|
-
get: () => from[key],
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
17
|
-
});
|
18
|
-
return to;
|
19
|
-
};
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
26
|
-
value: mod,
|
27
|
-
enumerable: !0
|
28
|
-
}) : target, mod)),
|
29
|
-
__toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
30
|
-
value: !0
|
31
|
-
}), mod);
|
32
|
-
var NavigationContainer_native_exports = {};
|
33
|
-
__export(NavigationContainer_native_exports, {
|
34
|
-
default: () => NavigationContainer_native_default
|
35
|
-
});
|
36
|
-
module.exports = __toCommonJS(NavigationContainer_native_exports);
|
37
|
-
var import_core = require("@react-navigation/core"),
|
38
|
-
import_native = require("@react-navigation/native"),
|
39
|
-
import_useDocumentTitle_native = __toESM(require("@react-navigation/native/lib/module/useDocumentTitle.native.js"), 1),
|
40
|
-
import_useThenable = __toESM(require("@react-navigation/native/lib/module/useThenable.js"), 1),
|
41
|
-
React = __toESM(require("react"), 1),
|
42
|
-
import_useLinking = __toESM(require("./useLinking.cjs"), 1),
|
43
|
-
import_jsx_runtime = require("react/jsx-runtime");
|
44
|
-
global.REACT_NAVIGATION_DEVTOOLS = /* @__PURE__ */new WeakMap();
|
45
|
-
function NavigationContainerInner({
|
46
|
-
theme = import_native.DefaultTheme,
|
47
|
-
linking,
|
48
|
-
fallback = null,
|
49
|
-
documentTitle,
|
50
|
-
onReady,
|
51
|
-
...rest
|
52
|
-
}, ref) {
|
53
|
-
const isLinkingEnabled = linking ? linking.enabled !== !1 : !1;
|
54
|
-
linking?.config && (0, import_core.validatePathConfig)(linking.config);
|
55
|
-
const refContainer = React.useRef(null);
|
56
|
-
(0, import_useDocumentTitle_native.default)(refContainer, documentTitle);
|
57
|
-
const {
|
58
|
-
getInitialState
|
59
|
-
} = (0, import_useLinking.default)(refContainer, {
|
60
|
-
// independent: rest.independent,
|
61
|
-
enabled: isLinkingEnabled,
|
62
|
-
prefixes: [],
|
63
|
-
...linking
|
64
|
-
});
|
65
|
-
React.useEffect(() => {
|
66
|
-
refContainer.current && global.REACT_NAVIGATION_DEVTOOLS.set(refContainer.current, {
|
67
|
-
get linking() {
|
68
|
-
return {
|
69
|
-
...linking,
|
70
|
-
enabled: isLinkingEnabled,
|
71
|
-
prefixes: linking?.prefixes ?? [],
|
72
|
-
getStateFromPath: linking?.getStateFromPath ?? import_core.getStateFromPath,
|
73
|
-
getPathFromState: linking?.getPathFromState ?? import_core.getPathFromState,
|
74
|
-
getActionFromState: linking?.getActionFromState ?? import_core.getActionFromState
|
75
|
-
};
|
76
|
-
}
|
77
|
-
});
|
78
|
-
});
|
79
|
-
const [isResolved, initialState] = (0, import_useThenable.default)(getInitialState);
|
80
|
-
React.useImperativeHandle(ref, () => refContainer.current);
|
81
|
-
const linkingContext = React.useMemo(() => ({
|
82
|
-
options: linking
|
83
|
-
}), [linking]),
|
84
|
-
isReady = rest.initialState != null || !isLinkingEnabled || isResolved,
|
85
|
-
onReadyRef = React.useRef(onReady);
|
86
|
-
return React.useEffect(() => {
|
87
|
-
onReadyRef.current = onReady;
|
88
|
-
}), React.useEffect(() => {
|
89
|
-
isReady && onReadyRef.current?.();
|
90
|
-
}, [isReady]), isReady ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_native.LinkingContext.Provider, {
|
91
|
-
value: linkingContext,
|
92
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_native.ThemeProvider, {
|
93
|
-
value: theme,
|
94
|
-
children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_core.BaseNavigationContainer, {
|
95
|
-
...rest,
|
96
|
-
initialState: rest.initialState == null ? initialState : rest.initialState,
|
97
|
-
ref: refContainer
|
98
|
-
})
|
99
|
-
})
|
100
|
-
}) : fallback;
|
101
|
-
}
|
102
|
-
const NavigationContainer = React.forwardRef(NavigationContainerInner);
|
103
|
-
var NavigationContainer_native_default = NavigationContainer;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../../src/fork/NavigationContainer.native.tsx"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,kBASO,mCACP,gBAOO,qCAEP,iCAA6B,uFAC7B,qBAAwB,2EACxB,QAAuB,8BAEvB,oBAAuB,qCAuGf;AArGR,OAAO,4BAA4B,oBAAI,QAAQ;AAwB/C,SAAS,yBACP;AAAA,EACE,QAAQ;AAAA,EACR;AAAA,EACA,WAAW;AAAA,EACX;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,QAAM,mBAAmB,UAAU,QAAQ,YAAY,KAAQ;AAE/D,EAAI,SAAS,cACX,gCAAmB,QAAQ,MAAM;AAGnC,QAAM,eAAe,MAAM,OAA8C,IAAI;AAG7E,qCAAAA,SAAiB,cAAc,aAAa;AAE5C,QAAM,EAAE,gBAAgB,QAAI,kBAAAC,SAAW,cAAc;AAAA;AAAA,IAEnD,SAAS;AAAA,IACT,UAAU,CAAC;AAAA,IACX,GAAG;AAAA,EACL,CAAC;AAID,QAAM,UAAU,MAAM;AACpB,IAAI,aAAa,WACf,OAAO,0BAA0B,IAAI,aAAa,SAAS;AAAA,MACzD,IAAI,UAAU;AACZ,eAAO;AAAA,UACL,GAAG;AAAA,UACH,SAAS;AAAA,UACT,UAAU,SAAS,YAAY,CAAC;AAAA,UAChC,kBAAkB,SAAS,oBAAoB;AAAA,UAC/C,kBAAkB,SAAS,oBAAoB;AAAA,UAC/C,oBAAoB,SAAS,sBAAsB;AAAA,QACrD;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EAEL,CAAC;AAED,QAAM,CAAC,YAA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