one 1.1.308 → 1.1.310
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/Root.cjs +212 -0
- package/dist/cjs/{Route.js → Route.cjs} +34 -19
- package/dist/cjs/{cleanUrl.js → cleanUrl.cjs} +27 -18
- package/dist/cjs/cli/label-process.cjs +31 -0
- package/dist/cjs/cli/{main.js → main.cjs} +28 -16
- package/dist/cjs/cli/{prebuild.js → prebuild.cjs} +25 -15
- package/dist/cjs/cli/run.cjs +70 -0
- package/dist/cjs/cli/{runAndroid.js → runAndroid.cjs} +25 -15
- package/dist/cjs/cli/{runIos.js → runIos.cjs} +25 -15
- package/dist/cjs/cli.cjs +258 -0
- package/dist/cjs/clientLoaderResolver.cjs +35 -0
- package/dist/cjs/config.cjs +32 -0
- package/dist/cjs/constants.cjs +30 -0
- package/dist/cjs/{createApp.js → createApp.cjs} +33 -17
- package/dist/cjs/createApp.native.cjs +38 -0
- package/dist/cjs/createApp.native.cjs.map +6 -0
- package/dist/cjs/{createHandleRequest.js → createHandleRequest.cjs} +60 -49
- package/dist/cjs/createRoute.cjs +42 -0
- package/dist/cjs/fallbackViews/{Sitemap.js → Sitemap.cjs} +35 -16
- package/dist/cjs/fallbackViews/{Unmatched.js → Unmatched.cjs} +32 -17
- package/dist/cjs/fork/NavigationContainer.cjs +105 -0
- package/dist/cjs/fork/NavigationContainer.native.cjs +103 -0
- package/dist/cjs/fork/NavigationContainer.native.cjs.map +6 -0
- package/dist/cjs/fork/createMemoryHistory.cjs +136 -0
- package/dist/cjs/fork/{extractPathFromURL.js → extractPathFromURL.cjs} +30 -21
- package/dist/cjs/fork/findFocusedRoute.cjs +30 -0
- package/dist/cjs/fork/{getPathFromState.js → getPathFromState.cjs} +120 -113
- package/dist/cjs/fork/getStateFromPath.cjs +366 -0
- package/dist/cjs/fork/useLinking.cjs +215 -0
- package/dist/cjs/fork/useLinking.native.cjs +126 -0
- package/dist/cjs/fork/useLinking.native.cjs.map +6 -0
- package/dist/cjs/fork/validatePathConfig.cjs +44 -0
- package/dist/cjs/{getLinkingConfig.js → getLinkingConfig.cjs} +21 -15
- package/dist/cjs/{getReactNavigationConfig.js → getReactNavigationConfig.cjs} +33 -32
- package/dist/cjs/getRoutes.cjs +276 -0
- package/dist/cjs/{getURL.js → getURL.cjs} +16 -11
- package/dist/cjs/getURL.native.cjs +48 -0
- package/dist/cjs/getURL.native.cjs.map +6 -0
- package/dist/cjs/head/Head.android.cjs +28 -0
- package/dist/cjs/head/Head.android.cjs.map +6 -0
- package/dist/cjs/head/Head.cjs +30 -0
- package/dist/cjs/head/Head.ios.cjs +210 -0
- package/dist/cjs/head/Head.ios.cjs.map +6 -0
- package/dist/cjs/head/HeadModule.cjs +27 -0
- package/dist/cjs/head/index.cjs +18 -0
- package/dist/cjs/head/types.cjs +16 -0
- package/dist/cjs/head/url.cjs +50 -0
- package/dist/cjs/{hooks.js → hooks.cjs} +52 -40
- package/dist/cjs/{imperative-api.js → imperative-api.cjs} +26 -19
- package/dist/cjs/import-mode/index.android.cjs +26 -0
- package/dist/cjs/import-mode/index.android.cjs.map +6 -0
- package/dist/cjs/import-mode/index.cjs +26 -0
- package/dist/cjs/import-mode/index.ios.cjs +26 -0
- package/dist/cjs/import-mode/index.ios.cjs.map +6 -0
- package/dist/cjs/import-mode/index.native.cjs +26 -0
- package/dist/cjs/import-mode/index.native.cjs.map +6 -0
- package/dist/cjs/import-mode/index.web.cjs +26 -0
- package/dist/cjs/{index.js → index.cjs} +50 -14
- package/dist/cjs/interfaces/router.cjs +27 -0
- package/dist/cjs/layouts/Drawer.cjs +31 -0
- package/dist/cjs/layouts/Stack.cjs +31 -0
- package/dist/cjs/layouts/Tabs.cjs +64 -0
- package/dist/cjs/layouts/withLayoutContext.cjs +91 -0
- package/dist/cjs/link/Link.cjs +120 -0
- package/dist/cjs/link/Redirect.cjs +39 -0
- package/dist/cjs/link/href.cjs +58 -0
- package/dist/cjs/link/linking.cjs +89 -0
- package/dist/cjs/link/path.cjs +69 -0
- package/dist/cjs/link/useLinkTo.cjs +54 -0
- package/dist/cjs/link/useLoadedNavigation.cjs +60 -0
- package/dist/cjs/{matchers.js → matchers.cjs} +16 -11
- package/dist/cjs/platform.cjs +26 -0
- package/dist/cjs/polyfills-mobile.cjs +33 -0
- package/dist/cjs/polyfills-server.cjs +25 -0
- package/dist/cjs/render.cjs +47 -0
- package/dist/cjs/render.native.cjs +28 -0
- package/dist/cjs/render.native.cjs.map +6 -0
- package/dist/cjs/router/RouterStore.cjs +16 -0
- package/dist/cjs/router/constants.cjs +26 -0
- package/dist/cjs/router/{getNormalizedStatePath.js → getNormalizedStatePath.cjs} +25 -23
- package/dist/cjs/router/lastAction.cjs +31 -0
- package/dist/cjs/router/{router.js → router.cjs} +104 -78
- package/dist/cjs/router/serverLocationContext.cjs +27 -0
- package/dist/cjs/router/{useInitializeOneRouter.js → useInitializeOneRouter.cjs} +26 -16
- package/dist/cjs/serve.cjs +185 -0
- package/dist/cjs/server/{createRoutesManifest.js → createRoutesManifest.cjs} +22 -16
- package/dist/cjs/server/{getServerManifest.js → getServerManifest.cjs} +58 -31
- package/dist/cjs/{server-render.js → server-render.cjs} +28 -17
- package/dist/cjs/sortRoutes.cjs +62 -0
- package/dist/cjs/typed-routes/generateRouteTypes.cjs +48 -0
- package/dist/cjs/typed-routes/{getTypedRoutesDeclarationFile.js → getTypedRoutesDeclarationFile.cjs} +37 -40
- package/dist/cjs/types.cjs +16 -0
- package/dist/cjs/{useFocusEffect.js → useFocusEffect.cjs} +33 -24
- package/dist/cjs/useLoader.cjs +114 -0
- package/dist/cjs/useNavigation.cjs +68 -0
- package/dist/cjs/useScreens.cjs +233 -0
- package/dist/cjs/{useViteRoutes.js → useViteRoutes.cjs} +36 -24
- package/dist/cjs/utils/assertIsReady.cjs +28 -0
- package/dist/cjs/utils/dynamicImport.cjs +27 -0
- package/dist/cjs/utils/existsAsync.cjs +33 -0
- package/dist/cjs/utils/getPageExport.cjs +32 -0
- package/dist/cjs/utils/{globDir.js → globDir.cjs} +23 -15
- package/dist/cjs/utils/{hashString.js → hashString.cjs} +22 -14
- package/dist/cjs/utils/isResponse.cjs +28 -0
- package/dist/cjs/utils/isStatus.cjs +28 -0
- package/dist/cjs/utils/promiseWithResolvers.cjs +37 -0
- package/dist/cjs/utils/rand.cjs +26 -0
- package/dist/cjs/utils/redirect.cjs +34 -0
- package/dist/cjs/utils/removeSearch.cjs +28 -0
- package/dist/cjs/utils/removeUndefined.cjs +30 -0
- package/dist/cjs/utils/{url.js → url.cjs} +16 -11
- package/dist/cjs/utils/weakKey.cjs +30 -0
- package/dist/cjs/utils/weakMemo.cjs +34 -0
- package/dist/cjs/views/EmptyRoute.cjs +30 -0
- package/dist/cjs/views/{ErrorBoundary.js → ErrorBoundary.cjs} +30 -16
- package/dist/cjs/views/LoadProgressBar.cjs +90 -0
- package/dist/cjs/views/Navigator.cjs +149 -0
- package/dist/cjs/views/{PreloadLinks.js → PreloadLinks.cjs} +20 -13
- package/dist/cjs/views/PreloadLinks.native.cjs +28 -0
- package/dist/cjs/views/PreloadLinks.native.cjs.map +6 -0
- package/dist/cjs/views/{RootErrorBoundary.js → RootErrorBoundary.cjs} +28 -16
- package/dist/cjs/views/Screen.cjs +39 -0
- package/dist/cjs/views/ScrollRestoration.cjs +74 -0
- package/dist/cjs/views/Try.cjs +68 -0
- package/dist/cjs/vite/build.cjs +425 -0
- package/dist/cjs/vite/{clientTreeShakePlugin.js → clientTreeShakePlugin.cjs} +53 -35
- package/dist/cjs/vite/constants.cjs +28 -0
- package/dist/cjs/vite/{createFileSystemRouter.js → createFileSystemRouter.cjs} +117 -84
- package/dist/cjs/vite/{customNodeExternals.js → customNodeExternals.cjs} +32 -20
- package/dist/cjs/vite/ensureTsConfig.cjs +68 -0
- package/dist/cjs/vite/findDepsToOptimize.cjs +74 -0
- package/dist/cjs/vite/{fixDependenciesPlugin.js → fixDependenciesPlugin.cjs} +17 -12
- package/dist/cjs/vite/generateTypesForRoutes.cjs +45 -0
- package/dist/cjs/vite/{getManifest.js → getManifest.cjs} +18 -12
- package/dist/cjs/vite/{headers.js → headers.cjs} +19 -14
- package/dist/cjs/vite/headers.native.cjs +32 -0
- package/dist/cjs/vite/headers.native.cjs.map +6 -0
- package/dist/cjs/vite/{loadEnv.js → loadEnv.cjs} +27 -16
- package/dist/cjs/vite/makePluginWebOnly.cjs +31 -0
- package/dist/cjs/vite/one.cjs +256 -0
- package/dist/cjs/vite/{removeReactNativeWebAnimatedPlugin.js → removeReactNativeWebAnimatedPlugin.cjs} +32 -25
- package/dist/cjs/vite/replaceLoader.cjs +37 -0
- package/dist/cjs/vite/resolveAPIRequest.cjs +90 -0
- package/dist/cjs/vite/server.cjs +13 -0
- package/dist/cjs/vite/types.cjs +16 -0
- package/dist/cjs/vite/{virtualEntryPlugin.js → virtualEntryPlugin.cjs} +28 -20
- package/dist/cjs/vite/{vitePluginSsrCss.js → vitePluginSsrCss.cjs} +56 -50
- package/dist/cjs/vite.cjs +40 -0
- package/dist/cjs/zero/getQueryKey.cjs +29 -0
- package/dist/cjs/zero/isZeroQuery.cjs +28 -0
- package/dist/cjs/zero/resolveQuery.cjs +41 -0
- package/dist/cjs/zero/{subscribeToQuery.js → subscribeToQuery.cjs} +16 -11
- package/dist/cjs/zero/types.cjs +16 -0
- package/dist/cjs/zero/useQuery.cjs +58 -0
- package/dist/cjs/zero/{useQueryZero.js → useQueryZero.cjs} +21 -15
- package/dist/cjs/zero.cjs +30 -0
- package/package.json +10 -10
- package/dist/cjs/Root.js +0 -182
- package/dist/cjs/cli/label-process.js +0 -25
- package/dist/cjs/cli/run.js +0 -52
- package/dist/cjs/cli.js +0 -209
- package/dist/cjs/clientLoaderResolver.js +0 -32
- package/dist/cjs/config.js +0 -27
- package/dist/cjs/constants.js +0 -23
- package/dist/cjs/createRoute.js +0 -37
- package/dist/cjs/fork/NavigationContainer.js +0 -85
- package/dist/cjs/fork/createMemoryHistory.js +0 -100
- package/dist/cjs/fork/findFocusedRoute.js +0 -26
- package/dist/cjs/fork/getStateFromPath.js +0 -381
- package/dist/cjs/fork/useLinking.js +0 -182
- package/dist/cjs/fork/validatePathConfig.js +0 -46
- package/dist/cjs/getRoutes.js +0 -294
- package/dist/cjs/head/Head.js +0 -23
- package/dist/cjs/head/HeadModule.js +0 -22
- package/dist/cjs/head/index.js +0 -15
- package/dist/cjs/head/types.js +0 -14
- package/dist/cjs/head/url.js +0 -52
- package/dist/cjs/import-mode/index.js +0 -21
- package/dist/cjs/import-mode/index.web.js +0 -21
- package/dist/cjs/interfaces/router.js +0 -23
- package/dist/cjs/layouts/Drawer.js +0 -24
- package/dist/cjs/layouts/Stack.js +0 -24
- package/dist/cjs/layouts/Tabs.js +0 -52
- package/dist/cjs/layouts/withLayoutContext.js +0 -77
- package/dist/cjs/link/Link.js +0 -98
- package/dist/cjs/link/Redirect.js +0 -31
- package/dist/cjs/link/href.js +0 -50
- package/dist/cjs/link/linking.js +0 -82
- package/dist/cjs/link/path.js +0 -65
- package/dist/cjs/link/useLinkTo.js +0 -42
- package/dist/cjs/link/useLoadedNavigation.js +0 -50
- package/dist/cjs/platform.js +0 -21
- package/dist/cjs/polyfills-mobile.js +0 -26
- package/dist/cjs/polyfills-server.js +0 -23
- package/dist/cjs/render.js +0 -44
- package/dist/cjs/router/RouterStore.js +0 -14
- package/dist/cjs/router/constants.js +0 -21
- package/dist/cjs/router/lastAction.js +0 -25
- package/dist/cjs/router/serverLocationContext.js +0 -22
- package/dist/cjs/serve.js +0 -175
- package/dist/cjs/sortRoutes.js +0 -64
- package/dist/cjs/typed-routes/generateRouteTypes.js +0 -33
- package/dist/cjs/types.js +0 -14
- package/dist/cjs/useLoader.js +0 -97
- package/dist/cjs/useNavigation.js +0 -60
- package/dist/cjs/useScreens.js +0 -176
- package/dist/cjs/utils/assertIsReady.js +0 -26
- package/dist/cjs/utils/dynamicImport.js +0 -24
- package/dist/cjs/utils/existsAsync.js +0 -28
- package/dist/cjs/utils/getPageExport.js +0 -27
- package/dist/cjs/utils/isResponse.js +0 -23
- package/dist/cjs/utils/isStatus.js +0 -23
- package/dist/cjs/utils/promiseWithResolvers.js +0 -26
- package/dist/cjs/utils/rand.js +0 -21
- package/dist/cjs/utils/redirect.js +0 -28
- package/dist/cjs/utils/removeSearch.js +0 -23
- package/dist/cjs/utils/removeUndefined.js +0 -26
- package/dist/cjs/utils/weakKey.js +0 -24
- package/dist/cjs/utils/weakMemo.js +0 -30
- package/dist/cjs/views/EmptyRoute.js +0 -25
- package/dist/cjs/views/LoadProgressBar.js +0 -83
- package/dist/cjs/views/Navigator.js +0 -101
- package/dist/cjs/views/Screen.js +0 -29
- package/dist/cjs/views/ScrollRestoration.js +0 -70
- package/dist/cjs/views/Try.js +0 -44
- package/dist/cjs/vite/build.js +0 -376
- package/dist/cjs/vite/constants.js +0 -22
- package/dist/cjs/vite/ensureTsConfig.js +0 -66
- package/dist/cjs/vite/findDepsToOptimize.js +0 -66
- package/dist/cjs/vite/generateTypesForRoutes.js +0 -36
- package/dist/cjs/vite/makePluginWebOnly.js +0 -27
- package/dist/cjs/vite/one.js +0 -255
- package/dist/cjs/vite/replaceLoader.js +0 -34
- package/dist/cjs/vite/resolveAPIRequest.js +0 -71
- package/dist/cjs/vite/server.js +0 -16
- package/dist/cjs/vite/types.js +0 -14
- package/dist/cjs/vite.js +0 -28
- package/dist/cjs/zero/getQueryKey.js +0 -24
- package/dist/cjs/zero/isZeroQuery.js +0 -23
- package/dist/cjs/zero/resolveQuery.js +0 -38
- package/dist/cjs/zero/types.js +0 -14
- package/dist/cjs/zero/useQuery.js +0 -47
- package/dist/cjs/zero.js +0 -23
- /package/dist/cjs/{Root.js.map → Root.cjs.map} +0 -0
- /package/dist/cjs/{Route.js.map → Route.cjs.map} +0 -0
- /package/dist/cjs/{cleanUrl.js.map → cleanUrl.cjs.map} +0 -0
- /package/dist/cjs/cli/{label-process.js.map → label-process.cjs.map} +0 -0
- /package/dist/cjs/cli/{main.js.map → main.cjs.map} +0 -0
- /package/dist/cjs/cli/{prebuild.js.map → prebuild.cjs.map} +0 -0
- /package/dist/cjs/cli/{run.js.map → run.cjs.map} +0 -0
- /package/dist/cjs/cli/{runAndroid.js.map → runAndroid.cjs.map} +0 -0
- /package/dist/cjs/cli/{runIos.js.map → runIos.cjs.map} +0 -0
- /package/dist/cjs/{cli.js.map → cli.cjs.map} +0 -0
- /package/dist/cjs/{clientLoaderResolver.js.map → clientLoaderResolver.cjs.map} +0 -0
- /package/dist/cjs/{config.js.map → config.cjs.map} +0 -0
- /package/dist/cjs/{constants.js.map → constants.cjs.map} +0 -0
- /package/dist/cjs/{createApp.js.map → createApp.cjs.map} +0 -0
- /package/dist/cjs/{createHandleRequest.js.map → createHandleRequest.cjs.map} +0 -0
- /package/dist/cjs/{createRoute.js.map → createRoute.cjs.map} +0 -0
- /package/dist/cjs/fallbackViews/{Sitemap.js.map → Sitemap.cjs.map} +0 -0
- /package/dist/cjs/fallbackViews/{Unmatched.js.map → Unmatched.cjs.map} +0 -0
- /package/dist/cjs/fork/{NavigationContainer.js.map → NavigationContainer.cjs.map} +0 -0
- /package/dist/cjs/fork/{createMemoryHistory.js.map → createMemoryHistory.cjs.map} +0 -0
- /package/dist/cjs/fork/{extractPathFromURL.js.map → extractPathFromURL.cjs.map} +0 -0
- /package/dist/cjs/fork/{findFocusedRoute.js.map → findFocusedRoute.cjs.map} +0 -0
- /package/dist/cjs/fork/{getPathFromState.js.map → getPathFromState.cjs.map} +0 -0
- /package/dist/cjs/fork/{getStateFromPath.js.map → getStateFromPath.cjs.map} +0 -0
- /package/dist/cjs/fork/{useLinking.js.map → useLinking.cjs.map} +0 -0
- /package/dist/cjs/fork/{validatePathConfig.js.map → validatePathConfig.cjs.map} +0 -0
- /package/dist/cjs/{getLinkingConfig.js.map → getLinkingConfig.cjs.map} +0 -0
- /package/dist/cjs/{getReactNavigationConfig.js.map → getReactNavigationConfig.cjs.map} +0 -0
- /package/dist/cjs/{getRoutes.js.map → getRoutes.cjs.map} +0 -0
- /package/dist/cjs/{getURL.js.map → getURL.cjs.map} +0 -0
- /package/dist/cjs/head/{Head.js.map → Head.cjs.map} +0 -0
- /package/dist/cjs/head/{HeadModule.js.map → HeadModule.cjs.map} +0 -0
- /package/dist/cjs/head/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/head/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/head/{url.js.map → url.cjs.map} +0 -0
- /package/dist/cjs/{hooks.js.map → hooks.cjs.map} +0 -0
- /package/dist/cjs/{imperative-api.js.map → imperative-api.cjs.map} +0 -0
- /package/dist/cjs/import-mode/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/import-mode/{index.web.js.map → index.web.cjs.map} +0 -0
- /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/interfaces/{router.js.map → router.cjs.map} +0 -0
- /package/dist/cjs/layouts/{Drawer.js.map → Drawer.cjs.map} +0 -0
- /package/dist/cjs/layouts/{Stack.js.map → Stack.cjs.map} +0 -0
- /package/dist/cjs/layouts/{Tabs.js.map → Tabs.cjs.map} +0 -0
- /package/dist/cjs/layouts/{withLayoutContext.js.map → withLayoutContext.cjs.map} +0 -0
- /package/dist/cjs/link/{Link.js.map → Link.cjs.map} +0 -0
- /package/dist/cjs/link/{Redirect.js.map → Redirect.cjs.map} +0 -0
- /package/dist/cjs/link/{href.js.map → href.cjs.map} +0 -0
- /package/dist/cjs/link/{linking.js.map → linking.cjs.map} +0 -0
- /package/dist/cjs/link/{path.js.map → path.cjs.map} +0 -0
- /package/dist/cjs/link/{useLinkTo.js.map → useLinkTo.cjs.map} +0 -0
- /package/dist/cjs/link/{useLoadedNavigation.js.map → useLoadedNavigation.cjs.map} +0 -0
- /package/dist/cjs/{matchers.js.map → matchers.cjs.map} +0 -0
- /package/dist/cjs/{platform.js.map → platform.cjs.map} +0 -0
- /package/dist/cjs/{polyfills-mobile.js.map → polyfills-mobile.cjs.map} +0 -0
- /package/dist/cjs/{polyfills-server.js.map → polyfills-server.cjs.map} +0 -0
- /package/dist/cjs/{render.js.map → render.cjs.map} +0 -0
- /package/dist/cjs/router/{RouterStore.js.map → RouterStore.cjs.map} +0 -0
- /package/dist/cjs/router/{constants.js.map → constants.cjs.map} +0 -0
- /package/dist/cjs/router/{getNormalizedStatePath.js.map → getNormalizedStatePath.cjs.map} +0 -0
- /package/dist/cjs/router/{lastAction.js.map → lastAction.cjs.map} +0 -0
- /package/dist/cjs/router/{router.js.map → router.cjs.map} +0 -0
- /package/dist/cjs/router/{serverLocationContext.js.map → serverLocationContext.cjs.map} +0 -0
- /package/dist/cjs/router/{useInitializeOneRouter.js.map → useInitializeOneRouter.cjs.map} +0 -0
- /package/dist/cjs/{serve.js.map → serve.cjs.map} +0 -0
- /package/dist/cjs/server/{createRoutesManifest.js.map → createRoutesManifest.cjs.map} +0 -0
- /package/dist/cjs/server/{getServerManifest.js.map → getServerManifest.cjs.map} +0 -0
- /package/dist/cjs/{server-render.js.map → server-render.cjs.map} +0 -0
- /package/dist/cjs/{sortRoutes.js.map → sortRoutes.cjs.map} +0 -0
- /package/dist/cjs/typed-routes/{generateRouteTypes.js.map → generateRouteTypes.cjs.map} +0 -0
- /package/dist/cjs/typed-routes/{getTypedRoutesDeclarationFile.js.map → getTypedRoutesDeclarationFile.cjs.map} +0 -0
- /package/dist/cjs/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/{useFocusEffect.js.map → useFocusEffect.cjs.map} +0 -0
- /package/dist/cjs/{useLoader.js.map → useLoader.cjs.map} +0 -0
- /package/dist/cjs/{useNavigation.js.map → useNavigation.cjs.map} +0 -0
- /package/dist/cjs/{useScreens.js.map → useScreens.cjs.map} +0 -0
- /package/dist/cjs/{useViteRoutes.js.map → useViteRoutes.cjs.map} +0 -0
- /package/dist/cjs/utils/{assertIsReady.js.map → assertIsReady.cjs.map} +0 -0
- /package/dist/cjs/utils/{dynamicImport.js.map → dynamicImport.cjs.map} +0 -0
- /package/dist/cjs/utils/{existsAsync.js.map → existsAsync.cjs.map} +0 -0
- /package/dist/cjs/utils/{getPageExport.js.map → getPageExport.cjs.map} +0 -0
- /package/dist/cjs/utils/{globDir.js.map → globDir.cjs.map} +0 -0
- /package/dist/cjs/utils/{hashString.js.map → hashString.cjs.map} +0 -0
- /package/dist/cjs/utils/{isResponse.js.map → isResponse.cjs.map} +0 -0
- /package/dist/cjs/utils/{isStatus.js.map → isStatus.cjs.map} +0 -0
- /package/dist/cjs/utils/{promiseWithResolvers.js.map → promiseWithResolvers.cjs.map} +0 -0
- /package/dist/cjs/utils/{rand.js.map → rand.cjs.map} +0 -0
- /package/dist/cjs/utils/{redirect.js.map → redirect.cjs.map} +0 -0
- /package/dist/cjs/utils/{removeSearch.js.map → removeSearch.cjs.map} +0 -0
- /package/dist/cjs/utils/{removeUndefined.js.map → removeUndefined.cjs.map} +0 -0
- /package/dist/cjs/utils/{url.js.map → url.cjs.map} +0 -0
- /package/dist/cjs/utils/{weakKey.js.map → weakKey.cjs.map} +0 -0
- /package/dist/cjs/utils/{weakMemo.js.map → weakMemo.cjs.map} +0 -0
- /package/dist/cjs/views/{EmptyRoute.js.map → EmptyRoute.cjs.map} +0 -0
- /package/dist/cjs/views/{ErrorBoundary.js.map → ErrorBoundary.cjs.map} +0 -0
- /package/dist/cjs/views/{LoadProgressBar.js.map → LoadProgressBar.cjs.map} +0 -0
- /package/dist/cjs/views/{Navigator.js.map → Navigator.cjs.map} +0 -0
- /package/dist/cjs/views/{PreloadLinks.js.map → PreloadLinks.cjs.map} +0 -0
- /package/dist/cjs/views/{RootErrorBoundary.js.map → RootErrorBoundary.cjs.map} +0 -0
- /package/dist/cjs/views/{Screen.js.map → Screen.cjs.map} +0 -0
- /package/dist/cjs/views/{ScrollRestoration.js.map → ScrollRestoration.cjs.map} +0 -0
- /package/dist/cjs/views/{Try.js.map → Try.cjs.map} +0 -0
- /package/dist/cjs/vite/{build.js.map → build.cjs.map} +0 -0
- /package/dist/cjs/vite/{clientTreeShakePlugin.js.map → clientTreeShakePlugin.cjs.map} +0 -0
- /package/dist/cjs/vite/{constants.js.map → constants.cjs.map} +0 -0
- /package/dist/cjs/vite/{createFileSystemRouter.js.map → createFileSystemRouter.cjs.map} +0 -0
- /package/dist/cjs/vite/{customNodeExternals.js.map → customNodeExternals.cjs.map} +0 -0
- /package/dist/cjs/vite/{ensureTsConfig.js.map → ensureTsConfig.cjs.map} +0 -0
- /package/dist/cjs/vite/{findDepsToOptimize.js.map → findDepsToOptimize.cjs.map} +0 -0
- /package/dist/cjs/vite/{fixDependenciesPlugin.js.map → fixDependenciesPlugin.cjs.map} +0 -0
- /package/dist/cjs/vite/{generateTypesForRoutes.js.map → generateTypesForRoutes.cjs.map} +0 -0
- /package/dist/cjs/vite/{getManifest.js.map → getManifest.cjs.map} +0 -0
- /package/dist/cjs/vite/{headers.js.map → headers.cjs.map} +0 -0
- /package/dist/cjs/vite/{loadEnv.js.map → loadEnv.cjs.map} +0 -0
- /package/dist/cjs/vite/{makePluginWebOnly.js.map → makePluginWebOnly.cjs.map} +0 -0
- /package/dist/cjs/vite/{one.js.map → one.cjs.map} +0 -0
- /package/dist/cjs/vite/{removeReactNativeWebAnimatedPlugin.js.map → removeReactNativeWebAnimatedPlugin.cjs.map} +0 -0
- /package/dist/cjs/vite/{replaceLoader.js.map → replaceLoader.cjs.map} +0 -0
- /package/dist/cjs/vite/{resolveAPIRequest.js.map → resolveAPIRequest.cjs.map} +0 -0
- /package/dist/cjs/vite/{server.js.map → server.cjs.map} +0 -0
- /package/dist/cjs/vite/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/vite/{virtualEntryPlugin.js.map → virtualEntryPlugin.cjs.map} +0 -0
- /package/dist/cjs/vite/{vitePluginSsrCss.js.map → vitePluginSsrCss.cjs.map} +0 -0
- /package/dist/cjs/{vite.js.map → vite.cjs.map} +0 -0
- /package/dist/cjs/zero/{getQueryKey.js.map → getQueryKey.cjs.map} +0 -0
- /package/dist/cjs/zero/{isZeroQuery.js.map → isZeroQuery.cjs.map} +0 -0
- /package/dist/cjs/zero/{resolveQuery.js.map → resolveQuery.cjs.map} +0 -0
- /package/dist/cjs/zero/{subscribeToQuery.js.map → subscribeToQuery.cjs.map} +0 -0
- /package/dist/cjs/zero/{types.js.map → types.cjs.map} +0 -0
- /package/dist/cjs/zero/{useQuery.js.map → useQuery.cjs.map} +0 -0
- /package/dist/cjs/zero/{useQueryZero.js.map → useQueryZero.cjs.map} +0 -0
- /package/dist/cjs/{zero.js.map → zero.cjs.map} +0 -0
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
5
|
var __export = (target, all) => {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
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);
|
15
21
|
var useQueryZero_exports = {};
|
16
22
|
__export(useQueryZero_exports, {
|
17
23
|
useQuery: () => useQuery
|
@@ -19,20 +25,20 @@ __export(useQueryZero_exports, {
|
|
19
25
|
module.exports = __toCommonJS(useQueryZero_exports);
|
20
26
|
var import_react = require("react");
|
21
27
|
function useQuery(q, enable = !0) {
|
22
|
-
const queryImpl = q,
|
28
|
+
const queryImpl = q,
|
29
|
+
[snapshot, setSnapshot] = (0, import_react.useState)(void 0),
|
30
|
+
[, setView] = (0, import_react.useState)(void 0);
|
23
31
|
return (0, import_react.useLayoutEffect)(() => {
|
24
32
|
if (enable) {
|
25
33
|
const view = q.materialize();
|
26
34
|
setView(view);
|
27
|
-
const unsubscribe = view.addListener(
|
35
|
+
const unsubscribe = view.addListener(snapshot2 => {
|
28
36
|
setSnapshot(structuredClone(snapshot2));
|
29
37
|
});
|
30
38
|
return view.hydrate(), () => {
|
31
39
|
unsubscribe(), view.destroy();
|
32
40
|
};
|
33
41
|
}
|
34
|
-
return setSnapshot(queryImpl.singular ? void 0 : []), setView(void 0), () => {
|
35
|
-
};
|
42
|
+
return setSnapshot(queryImpl.singular ? void 0 : []), setView(void 0), () => {};
|
36
43
|
}, [JSON.stringify(enable ? q.ast : null)]), snapshot;
|
37
|
-
}
|
38
|
-
//# sourceMappingURL=useQueryZero.js.map
|
44
|
+
}
|
@@ -0,0 +1,30 @@
|
|
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 zero_exports = {};
|
22
|
+
__export(zero_exports, {
|
23
|
+
isZeroQuery: () => import_isZeroQuery.isZeroQuery,
|
24
|
+
resolveZeroQuery: () => import_resolveQuery.resolveZeroQuery,
|
25
|
+
useQuery: () => import_useQuery.useQuery
|
26
|
+
});
|
27
|
+
module.exports = __toCommonJS(zero_exports);
|
28
|
+
var import_useQuery = require("./zero/useQuery.cjs"),
|
29
|
+
import_resolveQuery = require("./zero/resolveQuery.cjs"),
|
30
|
+
import_isZeroQuery = require("./zero/isZeroQuery.cjs");
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "one",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.310",
|
4
4
|
"source": "src/index.ts",
|
5
5
|
"types": "./types/index.d.ts",
|
6
6
|
"sideEffects": false,
|
@@ -29,11 +29,11 @@
|
|
29
29
|
"exports": {
|
30
30
|
"./package.json": "./package.json",
|
31
31
|
".": {
|
32
|
-
"types": "./types/index.d.ts",
|
33
32
|
"react-native-import": "./dist/esm/index.native.js",
|
34
33
|
"react-native": "./dist/cjs/index.native.js",
|
34
|
+
"types": "./types/index.d.ts",
|
35
35
|
"import": "./dist/esm/index.mjs",
|
36
|
-
"require": "./dist/cjs/index.
|
36
|
+
"require": "./dist/cjs/index.cjs"
|
37
37
|
},
|
38
38
|
"./vite": {
|
39
39
|
"types": "./types/vite.d.ts",
|
@@ -90,14 +90,14 @@
|
|
90
90
|
"@react-navigation/native-stack": "~6.9.13",
|
91
91
|
"@react-navigation/routers": "~6.1.9",
|
92
92
|
"@ungap/structured-clone": "^1.2.0",
|
93
|
-
"@vxrn/resolve": "1.1.
|
94
|
-
"@vxrn/tslib-lite": "1.1.
|
95
|
-
"@vxrn/universal-color-scheme": "1.1.
|
96
|
-
"@vxrn/use-isomorphic-layout-effect": "1.1.
|
93
|
+
"@vxrn/resolve": "1.1.310",
|
94
|
+
"@vxrn/tslib-lite": "1.1.310",
|
95
|
+
"@vxrn/universal-color-scheme": "1.1.310",
|
96
|
+
"@vxrn/use-isomorphic-layout-effect": "1.1.310",
|
97
97
|
"babel-dead-code-elimination": "^1.0.6",
|
98
98
|
"citty": "^0.1.6",
|
99
99
|
"core-js": "^3.38.1",
|
100
|
-
"create-vxrn": "1.1.
|
100
|
+
"create-vxrn": "1.1.310",
|
101
101
|
"dotenv": "^16.4.5",
|
102
102
|
"escape-string-regexp": "^5.0.0",
|
103
103
|
"expo-linking": "~6.3.1",
|
@@ -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.310",
|
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.115.0",
|
132
132
|
"@types/node": "^22.1.0",
|
133
133
|
"@types/react-dom": "^18.2.25",
|
134
134
|
"@types/url-parse": "^1.4.11",
|
package/dist/cjs/Root.js
DELETED
@@ -1,182 +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, __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
11
|
-
for (let key of __getOwnPropNames(from))
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
13
|
-
return to;
|
14
|
-
};
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
21
|
-
mod
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
23
|
-
var Root_exports = {};
|
24
|
-
__export(Root_exports, {
|
25
|
-
Root: () => Root
|
26
|
-
});
|
27
|
-
module.exports = __toCommonJS(Root_exports);
|
28
|
-
var import_react = require("react"), import_useViteRoutes = require("./useViteRoutes"), import_RootErrorBoundary = require("./views/RootErrorBoundary"), import_native = require("@react-navigation/native"), import_elements = require("@react-navigation/elements"), import_universal_color_scheme = require("@vxrn/universal-color-scheme"), import_NavigationContainer = __toESM(require("./fork/NavigationContainer"), 1), import_serverLocationContext = require("./router/serverLocationContext"), import_useInitializeOneRouter = require("./router/useInitializeOneRouter"), import_PreloadLinks = require("./views/PreloadLinks"), import_ScrollRestoration = require("./views/ScrollRestoration"), import_rand = require("./utils/rand"), import_jsx_runtime = (
|
29
|
-
// <StrictMode>
|
30
|
-
require("react/jsx-runtime")
|
31
|
-
);
|
32
|
-
typeof window < "u" && (window.__getReactRefreshIgnoredExports = () => ["feedCardQuery", "feedCardReplyQuery", "loader"]);
|
33
|
-
function Root(props) {
|
34
|
-
const contents = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_RootErrorBoundary.RootErrorBoundary, { children: [
|
35
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Contents, { ...props }, "contents"),
|
36
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_PreloadLinks.PreloadLinks, {}, "preload-links")
|
37
|
-
] });
|
38
|
-
if (props.isClient) {
|
39
|
-
if (globalThis.__vxrnHydrateMode__ === "spa") {
|
40
|
-
const [show, setShow] = (0, import_react.useState)(!1);
|
41
|
-
return (0, import_react.useEffect)(() => {
|
42
|
-
setShow(!0);
|
43
|
-
}, []), show ? contents : null;
|
44
|
-
}
|
45
|
-
return contents;
|
46
|
-
}
|
47
|
-
let { loaderData } = props;
|
48
|
-
return loaderData?.constructor?.name === "QueryImpl" && (loaderData = void 0), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("html", { lang: "en-US", children: [
|
49
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("head", { children: [
|
50
|
-
process.env.NODE_ENV === "development" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DevHead, {}) : null,
|
51
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
52
|
-
"script",
|
53
|
-
{
|
54
|
-
dangerouslySetInnerHTML: {
|
55
|
-
__html: "globalThis['global'] = globalThis"
|
56
|
-
}
|
57
|
-
}
|
58
|
-
),
|
59
|
-
props.css?.map((file) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("link", { rel: "stylesheet", href: file }, file))
|
60
|
-
] }),
|
61
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("body", { children: contents }),
|
62
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
63
|
-
"script",
|
64
|
-
{
|
65
|
-
async: !0,
|
66
|
-
href: "one-loader-data",
|
67
|
-
dangerouslySetInnerHTML: {
|
68
|
-
__html: `
|
69
|
-
globalThis['__vxrnPostRenderData__'] = { __vxrn__: 'post-render' };
|
70
|
-
globalThis['__vxrnLoaderData__'] = ${JSON.stringify(loaderData)};
|
71
|
-
globalThis['__vxrnLoaderProps__'] = ${JSON.stringify(props.loaderProps)};
|
72
|
-
globalThis['__vxrnHydrateMode__'] = ${JSON.stringify(props.mode)};
|
73
|
-
`
|
74
|
-
}
|
75
|
-
}
|
76
|
-
)
|
77
|
-
] });
|
78
|
-
}
|
79
|
-
const ssrCSSID = `/@id/__x00__virtual:ssr-css.css?t=${(0, import_rand.rand)()}`;
|
80
|
-
function DevHead() {
|
81
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
82
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("link", { rel: "preload", href: ssrCSSID, as: "style" }),
|
83
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("link", { rel: "stylesheet", href: ssrCSSID, "data-ssr-css": !0 }),
|
84
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
85
|
-
"script",
|
86
|
-
{
|
87
|
-
type: "module",
|
88
|
-
dangerouslySetInnerHTML: {
|
89
|
-
__html: `import { createHotContext } from "/@vite/client";
|
90
|
-
const hot = createHotContext("/__clear_ssr_css");
|
91
|
-
hot.on("vite:afterUpdate", () => {
|
92
|
-
document
|
93
|
-
.querySelectorAll("[data-ssr-css]")
|
94
|
-
.forEach(node => node.remove());
|
95
|
-
});`
|
96
|
-
}
|
97
|
-
}
|
98
|
-
),
|
99
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
100
|
-
"script",
|
101
|
-
{
|
102
|
-
type: "module",
|
103
|
-
dangerouslySetInnerHTML: {
|
104
|
-
__html: `import { injectIntoGlobalHook } from "/@react-refresh";
|
105
|
-
injectIntoGlobalHook(window);
|
106
|
-
window.$RefreshReg$ = () => {};
|
107
|
-
window.$RefreshSig$ = () => (type) => type;`
|
108
|
-
}
|
109
|
-
}
|
110
|
-
)
|
111
|
-
] });
|
112
|
-
}
|
113
|
-
function Contents({ routes, path, wrapper = import_react.Fragment, routeOptions, ...props }) {
|
114
|
-
const context = (0, import_useViteRoutes.useViteRoutes)(routes, routeOptions, globalThis.__vxrnVersion), location = typeof window < "u" && window.location ? new URL(path || window.location.href || "/", window.location.href) : new URL(path || "/", "http://localhost");
|
115
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContextNavigator, { ...props, location, context, wrapper });
|
116
|
-
}
|
117
|
-
function ContextNavigator({
|
118
|
-
wrapper: ParentWrapper = import_react.Fragment,
|
119
|
-
context,
|
120
|
-
location: initialLocation,
|
121
|
-
navigationContainerProps
|
122
|
-
}) {
|
123
|
-
const store = (0, import_useInitializeOneRouter.useInitializeOneRouter)(context, initialLocation), [colorScheme] = (0, import_universal_color_scheme.useColorScheme)(), wrapper = (children) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(ParentWrapper, { children: [
|
124
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ScrollRestoration.ScrollRestoration, {}),
|
125
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_elements.SafeAreaProviderCompat, { children })
|
126
|
-
] }), Component = store.rootComponent;
|
127
|
-
if (!Component)
|
128
|
-
throw new Error("No root component found");
|
129
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
130
|
-
import_NavigationContainer.default,
|
131
|
-
{
|
132
|
-
ref: store.navigationRef,
|
133
|
-
initialState: store.initialState,
|
134
|
-
linking: store.linking,
|
135
|
-
onUnhandledAction,
|
136
|
-
theme: colorScheme === "dark" ? import_native.DarkTheme : import_native.DefaultTheme,
|
137
|
-
documentTitle: {
|
138
|
-
enabled: !1
|
139
|
-
},
|
140
|
-
...navigationContainerProps,
|
141
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_serverLocationContext.ServerLocationContext.Provider, { value: initialLocation, children: wrapper(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Component, {})) })
|
142
|
-
}
|
143
|
-
);
|
144
|
-
}
|
145
|
-
let onUnhandledAction;
|
146
|
-
process.env.NODE_ENV !== "production" ? onUnhandledAction = (action) => {
|
147
|
-
const payload = action.payload;
|
148
|
-
let message = `The action '${action.type}'${payload ? ` with payload ${JSON.stringify(action.payload)}` : ""} was not handled by any navigator.`;
|
149
|
-
switch (action.type) {
|
150
|
-
case "NAVIGATE":
|
151
|
-
case "PUSH":
|
152
|
-
case "REPLACE":
|
153
|
-
case "JUMP_TO":
|
154
|
-
payload?.name ? message += `
|
155
|
-
|
156
|
-
Do you have a route named '${payload.name}'?` : message += `
|
157
|
-
|
158
|
-
You need to pass the name of the screen to navigate to. This may be a bug.`;
|
159
|
-
break;
|
160
|
-
case "GO_BACK":
|
161
|
-
case "POP":
|
162
|
-
case "POP_TO_TOP":
|
163
|
-
message += `
|
164
|
-
|
165
|
-
Is there any screen to go back to?`;
|
166
|
-
break;
|
167
|
-
case "OPEN_DRAWER":
|
168
|
-
case "CLOSE_DRAWER":
|
169
|
-
case "TOGGLE_DRAWER":
|
170
|
-
message += `
|
171
|
-
|
172
|
-
Is your screen inside a Drawer navigator?`;
|
173
|
-
break;
|
174
|
-
}
|
175
|
-
if (message += `
|
176
|
-
|
177
|
-
This is a development-only warning and won't be shown in production.`, process.env.NODE_ENV === "test")
|
178
|
-
throw new Error(message);
|
179
|
-
console.error(message);
|
180
|
-
} : onUnhandledAction = () => {
|
181
|
-
};
|
182
|
-
//# sourceMappingURL=Root.js.map
|
@@ -1,25 +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)
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
10
|
-
for (let key of __getOwnPropNames(from))
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
12
|
-
return to;
|
13
|
-
};
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
15
|
-
var label_process_exports = {};
|
16
|
-
__export(label_process_exports, {
|
17
|
-
labelProcess: () => labelProcess
|
18
|
-
});
|
19
|
-
module.exports = __toCommonJS(label_process_exports);
|
20
|
-
var import_node_os = require("node:os");
|
21
|
-
function labelProcess(title) {
|
22
|
-
const home = (0, import_node_os.homedir)(), cwd = process.cwd();
|
23
|
-
process.title = `Onejs:${title} > ${cwd.replace(home, "~")}`;
|
24
|
-
}
|
25
|
-
//# sourceMappingURL=label-process.js.map
|
package/dist/cjs/cli/run.js
DELETED
@@ -1,52 +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, __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
11
|
-
for (let key of __getOwnPropNames(from))
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
13
|
-
return to;
|
14
|
-
};
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
21
|
-
mod
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
23
|
-
var run_exports = {};
|
24
|
-
__export(run_exports, {
|
25
|
-
run: () => run
|
26
|
-
});
|
27
|
-
module.exports = __toCommonJS(run_exports);
|
28
|
-
var import_virtualEntryPlugin = require("../vite/virtualEntryPlugin"), import_label_process = require("./label-process");
|
29
|
-
async function run(args) {
|
30
|
-
(0, import_label_process.labelProcess)("dev");
|
31
|
-
const { dev } = await import("vxrn"), { start, stop } = await dev({
|
32
|
-
mode: args.mode,
|
33
|
-
clean: args.clean,
|
34
|
-
root: process.cwd(),
|
35
|
-
server: {
|
36
|
-
https: args.https,
|
37
|
-
host: args.host,
|
38
|
-
port: args.port ? +args.port : void 0
|
39
|
-
},
|
40
|
-
entries: {
|
41
|
-
native: import_virtualEntryPlugin.virtualEntryIdNative
|
42
|
-
}
|
43
|
-
}), { closePromise } = await start();
|
44
|
-
process.on("beforeExit", () => {
|
45
|
-
stop();
|
46
|
-
}), process.on("SIGINT", () => {
|
47
|
-
stop();
|
48
|
-
}), process.on("uncaughtException", (err) => {
|
49
|
-
console.error(err?.message || err);
|
50
|
-
}), await closePromise;
|
51
|
-
}
|
52
|
-
//# sourceMappingURL=run.js.map
|
package/dist/cjs/cli.js
DELETED
@@ -1,209 +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, __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
7
|
-
if (from && typeof from == "object" || typeof from == "function")
|
8
|
-
for (let key of __getOwnPropNames(from))
|
9
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
10
|
-
return to;
|
11
|
-
};
|
12
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
13
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
14
|
-
// file that has been converted to a CommonJS file using a Babel-
|
15
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
16
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
17
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
18
|
-
mod
|
19
|
-
));
|
20
|
-
var import_citty = require("citty"), import_picocolors = __toESM(require("picocolors"), 1), import_loadEnv = require("./vite/loadEnv"), import_node_fs = require("node:fs"), import_node_path = __toESM(require("node:path"), 1), import_node_url = require("node:url");
|
21
|
-
const import_meta = {};
|
22
|
-
function getPackageVersion() {
|
23
|
-
let dirname;
|
24
|
-
typeof __dirname < "u" ? dirname = __dirname : dirname = import_node_path.default.dirname((0, import_node_url.fileURLToPath)(import_meta.url));
|
25
|
-
const packagePath = import_node_path.default.join(dirname, "..", "..", "package.json");
|
26
|
-
return JSON.parse((0, import_node_fs.readFileSync)(packagePath, "utf-8")).version;
|
27
|
-
}
|
28
|
-
const version = getPackageVersion();
|
29
|
-
(0, import_loadEnv.loadEnv)(process.cwd());
|
30
|
-
import_node_path.default.sep !== "/" && console.warn(
|
31
|
-
import_picocolors.default.bgYellow("WARNING: UNSUPPORTED OS") + import_picocolors.default.yellow(
|
32
|
-
" - It appears you\u2019re using Windows, which is currently not supported. You may experience unexpected issues."
|
33
|
-
)
|
34
|
-
);
|
35
|
-
const modes = {
|
36
|
-
development: "development",
|
37
|
-
production: "production"
|
38
|
-
}, dev = (0, import_citty.defineCommand)({
|
39
|
-
meta: {
|
40
|
-
name: "dev",
|
41
|
-
version,
|
42
|
-
description: "Start the dev server"
|
43
|
-
},
|
44
|
-
args: {
|
45
|
-
clean: {
|
46
|
-
type: "boolean"
|
47
|
-
},
|
48
|
-
host: {
|
49
|
-
type: "string"
|
50
|
-
},
|
51
|
-
port: {
|
52
|
-
type: "string"
|
53
|
-
},
|
54
|
-
https: {
|
55
|
-
type: "boolean"
|
56
|
-
},
|
57
|
-
mode: {
|
58
|
-
type: "string",
|
59
|
-
description: 'If set to "production" you can run the development server but serve the production bundle'
|
60
|
-
}
|
61
|
-
},
|
62
|
-
async run({ args: { clean: clean2, host, https, mode, port } }) {
|
63
|
-
const { run } = await import("./cli/run");
|
64
|
-
await run({
|
65
|
-
clean: clean2,
|
66
|
-
host,
|
67
|
-
https,
|
68
|
-
mode: modes[mode],
|
69
|
-
port
|
70
|
-
});
|
71
|
-
}
|
72
|
-
}), buildCommand = (0, import_citty.defineCommand)({
|
73
|
-
meta: {
|
74
|
-
name: "build",
|
75
|
-
version,
|
76
|
-
description: "Build your app"
|
77
|
-
},
|
78
|
-
args: {
|
79
|
-
step: {
|
80
|
-
type: "string",
|
81
|
-
required: !1
|
82
|
-
},
|
83
|
-
// limit the pages built
|
84
|
-
only: {
|
85
|
-
type: "string",
|
86
|
-
required: !1
|
87
|
-
}
|
88
|
-
},
|
89
|
-
async run({ args }) {
|
90
|
-
const { build } = await import("./vite/build");
|
91
|
-
await build(args), process.exit(0);
|
92
|
-
}
|
93
|
-
}), serveCommand = (0, import_citty.defineCommand)({
|
94
|
-
meta: {
|
95
|
-
name: "serve",
|
96
|
-
version,
|
97
|
-
description: "Serve a built app for production"
|
98
|
-
},
|
99
|
-
args: {
|
100
|
-
host: {
|
101
|
-
type: "string"
|
102
|
-
},
|
103
|
-
port: {
|
104
|
-
type: "string"
|
105
|
-
},
|
106
|
-
platform: {
|
107
|
-
type: "string"
|
108
|
-
},
|
109
|
-
compress: {
|
110
|
-
type: "boolean"
|
111
|
-
},
|
112
|
-
cacheHeaders: {
|
113
|
-
type: "boolean"
|
114
|
-
}
|
115
|
-
},
|
116
|
-
async run({ args }) {
|
117
|
-
const { serve } = await import("./serve");
|
118
|
-
await serve({
|
119
|
-
port: args.port ? +args.port : void 0,
|
120
|
-
host: args.host,
|
121
|
-
cacheHeaders: args.cacheHeaders === !1 ? "off" : void 0,
|
122
|
-
compress: args.compress,
|
123
|
-
platform: args.platform === "vercel" ? "vercel" : "node"
|
124
|
-
});
|
125
|
-
}
|
126
|
-
}), prebuild = (0, import_citty.defineCommand)({
|
127
|
-
meta: {
|
128
|
-
name: "prebuild",
|
129
|
-
version,
|
130
|
-
description: "Prebuild native iOS project"
|
131
|
-
// TODO: Android
|
132
|
-
},
|
133
|
-
args: {},
|
134
|
-
async run({ args }) {
|
135
|
-
const { run } = await import("./cli/prebuild");
|
136
|
-
await run(args);
|
137
|
-
}
|
138
|
-
}), runIos = (0, import_citty.defineCommand)({
|
139
|
-
meta: {
|
140
|
-
name: "run:ios",
|
141
|
-
version
|
142
|
-
},
|
143
|
-
args: {},
|
144
|
-
async run({ args }) {
|
145
|
-
const { run } = await import("./cli/runIos");
|
146
|
-
await run(args);
|
147
|
-
}
|
148
|
-
}), runAndroid = (0, import_citty.defineCommand)({
|
149
|
-
meta: {
|
150
|
-
name: "run:android",
|
151
|
-
version
|
152
|
-
},
|
153
|
-
args: {},
|
154
|
-
async run({ args }) {
|
155
|
-
const { run } = await import("./cli/runAndroid");
|
156
|
-
await run(args);
|
157
|
-
}
|
158
|
-
}), clean = (0, import_citty.defineCommand)({
|
159
|
-
meta: {
|
160
|
-
name: "clean",
|
161
|
-
version: "0.0.0",
|
162
|
-
description: "Clean build folders"
|
163
|
-
},
|
164
|
-
args: {},
|
165
|
-
async run() {
|
166
|
-
const { clean: vxrnClean } = await import("vxrn");
|
167
|
-
await vxrnClean({
|
168
|
-
root: process.cwd()
|
169
|
-
});
|
170
|
-
}
|
171
|
-
}), subCommands = {
|
172
|
-
dev,
|
173
|
-
clean,
|
174
|
-
build: buildCommand,
|
175
|
-
prebuild,
|
176
|
-
"run:ios": runIos,
|
177
|
-
"run:android": runAndroid,
|
178
|
-
serve: serveCommand
|
179
|
-
}, subMain = (0, import_citty.defineCommand)({
|
180
|
-
meta: {
|
181
|
-
name: "main",
|
182
|
-
version,
|
183
|
-
description: "Welcome to One"
|
184
|
-
},
|
185
|
-
subCommands
|
186
|
-
}), main = (0, import_citty.defineCommand)({
|
187
|
-
meta: {
|
188
|
-
name: "main",
|
189
|
-
version,
|
190
|
-
description: "Welcome to One"
|
191
|
-
},
|
192
|
-
args: {
|
193
|
-
name: {
|
194
|
-
type: "positional",
|
195
|
-
description: "Folder name to place the app into",
|
196
|
-
required: !1
|
197
|
-
}
|
198
|
-
},
|
199
|
-
async run({ args }) {
|
200
|
-
if (subCommands[args.name]) {
|
201
|
-
(0, import_citty.runMain)(subMain);
|
202
|
-
return;
|
203
|
-
}
|
204
|
-
const { cliMain } = await import("./cli/main");
|
205
|
-
await cliMain(args);
|
206
|
-
}
|
207
|
-
});
|
208
|
-
(0, import_citty.runMain)(main);
|
209
|
-
//# sourceMappingURL=cli.js.map
|
@@ -1,32 +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)
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
10
|
-
for (let key of __getOwnPropNames(from))
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
12
|
-
return to;
|
13
|
-
};
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
15
|
-
var clientLoaderResolver_exports = {};
|
16
|
-
__export(clientLoaderResolver_exports, {
|
17
|
-
onClientLoaderResolve: () => onClientLoaderResolve,
|
18
|
-
resolveClientLoader: () => resolveClientLoader
|
19
|
-
});
|
20
|
-
module.exports = __toCommonJS(clientLoaderResolver_exports);
|
21
|
-
let clientLoaderResolver = null, didRun = !1;
|
22
|
-
function onClientLoaderResolve(resolver) {
|
23
|
-
if (didRun)
|
24
|
-
throw new Error(
|
25
|
-
process.env.NODE_ENV === "production" ? "Error 002" : "Error: You called onClientLoaderResolve after it was run, register it in your root _layout.tsx"
|
26
|
-
);
|
27
|
-
clientLoaderResolver = resolver;
|
28
|
-
}
|
29
|
-
async function resolveClientLoader(props) {
|
30
|
-
didRun = !0, clientLoaderResolver && await clientLoaderResolver(props);
|
31
|
-
}
|
32
|
-
//# sourceMappingURL=clientLoaderResolver.js.map
|
package/dist/cjs/config.js
DELETED
@@ -1,27 +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)
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
8
|
-
}, __copyProps = (to, from, except, desc) => {
|
9
|
-
if (from && typeof from == "object" || typeof from == "function")
|
10
|
-
for (let key of __getOwnPropNames(from))
|
11
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
12
|
-
return to;
|
13
|
-
};
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
15
|
-
var config_exports = {};
|
16
|
-
__export(config_exports, {
|
17
|
-
getDefaultRenderMode: () => getDefaultRenderMode
|
18
|
-
});
|
19
|
-
module.exports = __toCommonJS(config_exports);
|
20
|
-
var import_constants = require("./constants");
|
21
|
-
const CLIENT_RENDER_MODE = process.env.One_DEFAULT_RENDER_MODE, getDefaultRenderMode = () => {
|
22
|
-
const serverConfig = globalThis.__vxrnPluginConfig__;
|
23
|
-
if (import_constants.isWebServer && !serverConfig)
|
24
|
-
throw new Error("Internal one error: should call setServerConfig before createManifest");
|
25
|
-
return CLIENT_RENDER_MODE ?? serverConfig?.web?.defaultRenderMode ?? "ssg";
|
26
|
-
};
|
27
|
-
//# sourceMappingURL=config.js.map
|