one 1.1.309 → 1.1.311
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/Root.cjs +213 -0
- package/dist/cjs/Root.cjs.map +6 -0
- package/dist/cjs/Root.native.js +2 -2
- package/dist/cjs/Root.native.js.map +2 -2
- 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} +61 -49
- package/dist/cjs/createHandleRequest.cjs.map +6 -0
- package/dist/cjs/createHandleRequest.native.js +1 -0
- package/dist/cjs/createHandleRequest.native.js.map +2 -2
- 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.cjs +29 -0
- 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/dist/esm/Root.js +2 -1
- package/dist/esm/Root.js.map +1 -1
- package/dist/esm/Root.mjs +2 -1
- package/dist/esm/Root.mjs.map +1 -1
- package/dist/esm/Root.native.js +2 -1
- package/dist/esm/Root.native.js.map +2 -2
- package/dist/esm/createHandleRequest.js +1 -0
- package/dist/esm/createHandleRequest.js.map +1 -1
- package/dist/esm/createHandleRequest.mjs +1 -0
- package/dist/esm/createHandleRequest.mjs.map +1 -1
- package/dist/esm/createHandleRequest.native.js +1 -0
- package/dist/esm/createHandleRequest.native.js.map +2 -2
- package/dist/esm/getURL.js +1 -1
- package/dist/esm/getURL.mjs +1 -1
- package/package.json +10 -10
- package/src/Root.tsx +2 -1
- package/src/createHandleRequest.ts +5 -0
- package/src/getURL.ts +1 -1
- package/types/Root.d.ts.map +1 -1
- package/types/createHandleRequest.d.ts.map +1 -1
- package/dist/cjs/Root.js +0 -182
- package/dist/cjs/Root.js.map +0 -6
- 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/createHandleRequest.js.map +0 -6
- 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/getURL.js +0 -24
- 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/{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/{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
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
|
package/dist/cjs/Root.js.map
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../src/Root.tsx"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAsF,kBAEtF,uBAA8B,4BAC9B,2BAAkC,sCAElC,g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UAAM,IAAI,MAAM,yBAAyB;AAG3C,SACE;AAAA,IAAC,2BAAAA;AAAA,IAAA;AAAA,MACC,KAAK,MAAM;AAAA,MACX,cAAc,MAAM;AAAA,MACpB,SAAS,MAAM;AAAA,MACf;AAAA,MACA,OAAO,gBAAgB,SAAS,0BAAY;AAAA,MAC5C,eAAe;AAAA,QACb,SAAS;AAAA,MACX;AAAA,MACC,GAAG;AAAA,MAEJ,sDAAC,mDAAsB,UAAtB,EAA+B,OAAO,iBACpC,kBAAQ,4CAAC,aAAU,CAAE,GACxB;AAAA;AAAA,EACF;AAEJ;AAEA,IAAI;AAEA,QAAQ,IAAI,aAAa,eAC3B,oBAAoB,CAAC,WAA6B;AAChD,QAAM,UAA2C,OAAO;AAExD,MAAI,UAAU,eAAe,OAAO,IAAI,IACtC,UAAU,iBAAiB,KAAK,UAAU,OAAO,OAAO,CAAC,KAAK,EAChE;AAEA,UAAQ,OAAO,MAAM;AAAA,IACnB,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,MAAI,SAAS,OACX,WAAW;AAAA;AAAA,6BAAkC,QAAQ,IAAI,OAEzD,WAAW;AAAA;AAAA;AAGb;AAAA,IACF,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,iBAAW;AAAA;AAAA;AACX;AAAA,IACF,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,iBAAW;AAAA;AAAA;AACX;AAAA,EACJ;AAIA,MAFA,WAAW;AAAA;AAAA,uEAEP,QAAQ,IAAI,aAAa;AAC3B,UAAM,IAAI,MAAM,OAAO;AAEzB,UAAQ,MAAM,OAAO;AACvB,IAEA,oBAAoB,MAAM;AAAC;",
|
5
|
-
"names": ["UpstreamNavigationContainer"]
|
6
|
-
}
|
@@ -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
|
package/dist/cjs/constants.js
DELETED
@@ -1,23 +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 constants_exports = {};
|
16
|
-
__export(constants_exports, {
|
17
|
-
isNative: () => isNative,
|
18
|
-
isWebClient: () => isWebClient,
|
19
|
-
isWebServer: () => isWebServer
|
20
|
-
});
|
21
|
-
module.exports = __toCommonJS(constants_exports);
|
22
|
-
const isWebClient = typeof window < "u", isWebServer = typeof window > "u", isNative = !1;
|
23
|
-
//# sourceMappingURL=constants.js.map
|
@@ -1,6 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"version": 3,
|
3
|
-
"sources": ["../../src/createHandleRequest.ts"],
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAsC,uBAEtC,oBAA2B,+BAC3B,8BAAqC,yCACrC,qBAA4B;AAYrB,SAAS,oBACd,SACA,UAKA;AACA,QAAM,eAAW,gCAAY;AAC7B,MAAI,CAAC;AACH,UAAM,IAAI,MAAM,oBAAoB;AAGtC,QAAM,eACJ,SAAS,UAAU,OAAO,CAAC,KAAK,SAC9B,IAAI,IAAI,IAAI,IAAI,EAAE,GAAG,KAAK,eAAe,IAAI,OAAO,IAAI,UAAU,EAAE,GAC7D,MACN,CAAC,CAAC,GAED,gBAAgB,OAAO,OAAO,YAAY,GAK1C,iBAAiB,CAAC,GAGlB,aAAa,SAAS,WAAW,IAAI,CAAC,WAAW;AAAA,IACrD,GAAG;AAAA,IACH,cAAc,IAAI,OAAO,MAAM,UAAU;AAAA,EAC3C,EAAE;AAEF,SAAO;AAAA,IACL;AAAA,IACA,SAAS,eAA6B,SAAmD;AACvF,YAAM,YAAY,QAAQ,OAAO,IAC3B,MAAM,IAAI;AAAA,QACd,aAAa;AAAA,QACb,QAAQ,QAAQ,IAAI,MAAM,IAAI,UAAU,QAAQ,QAAQ,IAAI,MAAM,CAAC,KAAK;AAAA,MAC1E,GACM,EAAE,UAAU,OAAO,IAAI;AAE7B,UAAI,QAAQ,IAAI,aAAa,gBACvB,eAAe,QAAQ;AACzB,eAAO,MAAM,eAAe,QAAQ;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,CAAC;AAItB;",
|
5
|
-
"names": []
|
6
|
-
}
|
package/dist/cjs/createRoute.js
DELETED
@@ -1,37 +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 createRoute_exports = {};
|
16
|
-
__export(createRoute_exports, {
|
17
|
-
createRoute: () => createRoute,
|
18
|
-
route: () => route
|
19
|
-
});
|
20
|
-
module.exports = __toCommonJS(createRoute_exports);
|
21
|
-
var import_hooks = require("./hooks");
|
22
|
-
function createRoute() {
|
23
|
-
return {
|
24
|
-
useParams: () => (0, import_hooks.useParams)(),
|
25
|
-
useActiveParams: () => (0, import_hooks.useActiveParams)(),
|
26
|
-
createLoader: (a) => a
|
27
|
-
};
|
28
|
-
}
|
29
|
-
const defaults = createRoute(), getProxy = () => new Proxy(
|
30
|
-
{},
|
31
|
-
{
|
32
|
-
get(target, key) {
|
33
|
-
return Reflect.has(defaults, key) ? Reflect.get(defaults, key) : getProxy();
|
34
|
-
}
|
35
|
-
}
|
36
|
-
), postIdRoute = createRoute(), route = getProxy();
|
37
|
-
//# sourceMappingURL=createRoute.js.map
|