one 1.1.319 → 1.1.321
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/Root.js +182 -0
- package/dist/cjs/Route.js +45 -0
- package/dist/cjs/cleanUrl.js +41 -0
- package/dist/cjs/cli/label-process.js +25 -0
- package/dist/cjs/cli/main.js +46 -0
- package/dist/cjs/{getURL.native.cjs → cli/patch.cjs} +11 -15
- package/dist/cjs/cli/patch.js +34 -0
- package/dist/cjs/cli/patch.js.map +6 -0
- package/dist/cjs/cli/patch.native.js +39 -0
- package/dist/cjs/cli/patch.native.js.map +6 -0
- package/dist/cjs/cli/prebuild.js +34 -0
- package/dist/cjs/cli/run.js +52 -0
- package/dist/cjs/cli/runAndroid.js +34 -0
- package/dist/cjs/cli/runIos.js +34 -0
- package/dist/cjs/cli.cjs +17 -0
- package/dist/cjs/cli.js +220 -0
- package/dist/cjs/{cli.cjs.map → cli.js.map} +1 -1
- package/dist/cjs/cli.native.js +12 -0
- package/dist/cjs/cli.native.js.map +2 -2
- package/dist/cjs/clientLoaderResolver.js +32 -0
- package/dist/cjs/config.js +27 -0
- package/dist/cjs/constants.js +28 -0
- package/dist/cjs/createApp.js +46 -0
- package/dist/cjs/createHandleRequest.js +138 -0
- package/dist/cjs/createRoute.js +37 -0
- package/dist/cjs/fallbackViews/Sitemap.js +82 -0
- package/dist/cjs/fallbackViews/Unmatched.js +58 -0
- package/dist/cjs/fork/NavigationContainer.js +85 -0
- package/dist/cjs/fork/createMemoryHistory.js +100 -0
- package/dist/cjs/fork/extractPathFromURL.js +62 -0
- package/dist/cjs/fork/findFocusedRoute.js +26 -0
- package/dist/cjs/fork/getPathFromState.js +265 -0
- package/dist/cjs/fork/getStateFromPath.js +381 -0
- package/dist/cjs/fork/useLinking.js +182 -0
- package/dist/cjs/fork/validatePathConfig.js +46 -0
- package/dist/cjs/getLinkingConfig.js +59 -0
- package/dist/cjs/getReactNavigationConfig.js +69 -0
- package/dist/cjs/getRoutes.js +294 -0
- package/dist/cjs/getURL.js +24 -0
- package/dist/cjs/head/Head.js +23 -0
- package/dist/cjs/head/HeadModule.js +22 -0
- package/dist/cjs/head/index.js +15 -0
- package/dist/cjs/head/types.js +14 -0
- package/dist/cjs/head/url.js +52 -0
- package/dist/cjs/hooks.js +99 -0
- package/dist/cjs/imperative-api.js +45 -0
- package/dist/cjs/import-mode/index.js +21 -0
- package/dist/cjs/import-mode/index.web.js +21 -0
- package/dist/cjs/index.js +65 -0
- package/dist/cjs/interfaces/router.js +23 -0
- package/dist/cjs/layouts/Drawer.js +24 -0
- package/dist/cjs/layouts/Stack.js +24 -0
- package/dist/cjs/layouts/Tabs.js +52 -0
- package/dist/cjs/layouts/withLayoutContext.js +77 -0
- package/dist/cjs/link/Link.js +98 -0
- package/dist/cjs/link/Redirect.js +31 -0
- package/dist/cjs/link/href.js +50 -0
- package/dist/cjs/link/linking.js +82 -0
- package/dist/cjs/link/path.js +65 -0
- package/dist/cjs/link/useLinkTo.js +42 -0
- package/dist/cjs/link/useLoadedNavigation.js +50 -0
- package/dist/cjs/matchers.js +68 -0
- package/dist/cjs/platform.js +21 -0
- package/dist/cjs/polyfills-mobile.js +26 -0
- package/dist/cjs/polyfills-server.js +23 -0
- package/dist/cjs/render.js +44 -0
- package/dist/cjs/router/RouterStore.js +14 -0
- package/dist/cjs/router/getNormalizedStatePath.js +50 -0
- package/dist/cjs/router/lastAction.js +25 -0
- package/dist/cjs/router/router.js +345 -0
- package/dist/cjs/router/serverLocationContext.js +22 -0
- package/dist/cjs/router/useInitializeOneRouter.js +43 -0
- package/dist/cjs/serve.js +184 -0
- package/dist/cjs/server/createRoutesManifest.js +40 -0
- package/dist/cjs/server/getServerManifest.js +109 -0
- package/dist/cjs/server-render.js +42 -0
- package/dist/cjs/sortRoutes.js +64 -0
- package/dist/cjs/typed-routes/generateRouteTypes.js +33 -0
- package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.js +83 -0
- package/dist/cjs/types.js +14 -0
- package/dist/cjs/useFocusEffect.js +79 -0
- package/dist/cjs/useLoader.js +97 -0
- package/dist/cjs/useNavigation.js +60 -0
- package/dist/cjs/useScreens.js +176 -0
- package/dist/cjs/useViteRoutes.js +77 -0
- package/dist/cjs/utils/assertIsReady.js +26 -0
- package/dist/cjs/utils/dynamicImport.js +24 -0
- package/dist/cjs/utils/existsAsync.js +28 -0
- package/dist/cjs/utils/getPageExport.js +38 -0
- package/dist/cjs/utils/globDir.js +37 -0
- package/dist/cjs/utils/hashString.js +32 -0
- package/dist/cjs/utils/isResponse.js +23 -0
- package/dist/cjs/utils/isStatus.js +23 -0
- package/dist/cjs/utils/promiseWithResolvers.js +26 -0
- package/dist/cjs/utils/rand.js +21 -0
- package/dist/cjs/utils/redirect.js +28 -0
- package/dist/cjs/utils/removeSearch.js +23 -0
- package/dist/cjs/utils/removeUndefined.js +26 -0
- package/dist/cjs/utils/url.js +31 -0
- package/dist/cjs/utils/weakKey.js +24 -0
- package/dist/cjs/utils/weakMemo.js +30 -0
- package/dist/cjs/views/EmptyRoute.js +25 -0
- package/dist/cjs/views/ErrorBoundary.js +33 -0
- package/dist/cjs/views/LoadProgressBar.js +83 -0
- package/dist/cjs/views/Navigator.js +101 -0
- package/dist/cjs/views/PreloadLinks.js +42 -0
- package/dist/cjs/views/RootErrorBoundary.js +47 -0
- package/dist/cjs/views/Screen.js +29 -0
- package/dist/cjs/views/ScrollRestoration.js +70 -0
- package/dist/cjs/views/Try.js +44 -0
- package/dist/cjs/vite/build.js +377 -0
- package/dist/cjs/vite/clientTreeShakePlugin.js +76 -0
- package/dist/cjs/vite/constants.js +22 -0
- package/dist/cjs/vite/createFileSystemRouter.cjs +2 -1
- package/dist/cjs/vite/createFileSystemRouter.js +244 -0
- package/dist/cjs/vite/createFileSystemRouter.js.map +6 -0
- package/dist/cjs/vite/createFileSystemRouter.native.js +2 -1
- package/dist/cjs/vite/createFileSystemRouter.native.js.map +2 -2
- package/dist/cjs/vite/customNodeExternals.js +52 -0
- package/dist/cjs/vite/ensureTsConfig.js +66 -0
- package/dist/cjs/vite/findDepsToOptimize.js +66 -0
- package/dist/cjs/vite/fixDependenciesPlugin.js +43 -0
- package/dist/cjs/vite/generateTypesForRoutes.js +36 -0
- package/dist/cjs/vite/getManifest.js +27 -0
- package/dist/cjs/vite/headers.js +39 -0
- package/dist/cjs/vite/makePluginWebOnly.js +27 -0
- package/dist/cjs/vite/one.js +290 -0
- package/dist/cjs/vite/removeReactNativeWebAnimatedPlugin.js +50 -0
- package/dist/cjs/vite/replaceLoader.js +34 -0
- package/dist/cjs/vite/resolveAPIRequest.js +71 -0
- package/dist/cjs/vite/server.js +16 -0
- package/dist/cjs/vite/types.js +14 -0
- package/dist/cjs/vite/virtualEntryPlugin.js +67 -0
- package/dist/cjs/vite/vitePluginSsrCss.js +130 -0
- package/dist/cjs/vite.cjs +2 -0
- package/dist/cjs/vite.js +29 -0
- package/dist/cjs/vite.js.map +6 -0
- package/dist/cjs/vite.native.js +3 -1
- package/dist/cjs/vite.native.js.map +1 -1
- package/dist/cjs/zero/getQueryKey.js +24 -0
- package/dist/cjs/zero/isZeroQuery.js +23 -0
- package/dist/cjs/zero/resolveQuery.js +38 -0
- package/dist/cjs/zero/subscribeToQuery.js +28 -0
- package/dist/cjs/zero/types.js +14 -0
- package/dist/cjs/zero/useQuery.js +47 -0
- package/dist/cjs/zero/useQueryZero.js +38 -0
- package/dist/cjs/zero.js +23 -0
- package/dist/esm/cli/patch.js +10 -0
- package/dist/esm/cli/patch.js.map +6 -0
- package/dist/esm/cli/patch.mjs +10 -0
- package/dist/esm/cli/patch.mjs.map +1 -0
- package/dist/esm/cli/patch.native.js +10 -0
- package/dist/esm/cli/patch.native.js.map +6 -0
- package/dist/esm/cli.js +12 -0
- package/dist/esm/cli.js.map +1 -1
- package/dist/esm/cli.mjs +17 -0
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +12 -0
- package/dist/esm/cli.native.js.map +2 -2
- package/dist/esm/vite/createFileSystemRouter.js +2 -1
- package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.mjs +2 -1
- package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
- package/dist/esm/vite/createFileSystemRouter.native.js +2 -1
- package/dist/esm/vite/createFileSystemRouter.native.js.map +2 -2
- package/dist/esm/vite.js +2 -0
- package/dist/esm/vite.js.map +1 -1
- package/dist/esm/vite.mjs +2 -1
- package/dist/esm/vite.mjs.map +1 -1
- package/dist/esm/vite.native.js +2 -0
- package/dist/esm/vite.native.js.map +2 -2
- package/package.json +8 -8
- package/src/cli/patch.ts +6 -0
- package/src/cli.ts +14 -0
- package/src/vite/createFileSystemRouter.tsx +1 -1
- package/src/vite.ts +1 -0
- package/types/cli/patch.d.ts +2 -0
- package/types/cli/patch.d.ts.map +1 -0
- package/types/vite.d.ts +1 -0
- package/types/vite.d.ts.map +1 -1
- package/dist/cjs/createApp.native.cjs +0 -38
- package/dist/cjs/createApp.native.cjs.map +0 -6
- package/dist/cjs/fork/NavigationContainer.native.cjs +0 -103
- package/dist/cjs/fork/NavigationContainer.native.cjs.map +0 -6
- package/dist/cjs/fork/useLinking.native.cjs +0 -126
- package/dist/cjs/fork/useLinking.native.cjs.map +0 -6
- package/dist/cjs/getURL.native.cjs.map +0 -6
- package/dist/cjs/head/Head.android.cjs +0 -28
- package/dist/cjs/head/Head.android.cjs.map +0 -6
- package/dist/cjs/head/Head.ios.cjs +0 -210
- package/dist/cjs/head/Head.ios.cjs.map +0 -6
- package/dist/cjs/import-mode/index.android.cjs +0 -26
- package/dist/cjs/import-mode/index.android.cjs.map +0 -6
- package/dist/cjs/import-mode/index.ios.cjs +0 -26
- package/dist/cjs/import-mode/index.ios.cjs.map +0 -6
- package/dist/cjs/import-mode/index.native.cjs +0 -26
- package/dist/cjs/import-mode/index.native.cjs.map +0 -6
- package/dist/cjs/render.native.cjs +0 -28
- package/dist/cjs/render.native.cjs.map +0 -6
- package/dist/cjs/views/PreloadLinks.native.cjs +0 -28
- package/dist/cjs/views/PreloadLinks.native.cjs.map +0 -6
- package/dist/cjs/vite/createFileSystemRouter.cjs.map +0 -6
- package/dist/cjs/vite/headers.native.cjs +0 -32
- package/dist/cjs/vite/headers.native.cjs.map +0 -6
- package/dist/cjs/vite.cjs.map +0 -6
- /package/dist/cjs/{Root.cjs.map → Root.js.map} +0 -0
- /package/dist/cjs/{Route.cjs.map → Route.js.map} +0 -0
- /package/dist/cjs/{cleanUrl.cjs.map → cleanUrl.js.map} +0 -0
- /package/dist/cjs/cli/{label-process.cjs.map → label-process.js.map} +0 -0
- /package/dist/cjs/cli/{main.cjs.map → main.js.map} +0 -0
- /package/dist/cjs/cli/{prebuild.cjs.map → prebuild.js.map} +0 -0
- /package/dist/cjs/cli/{run.cjs.map → run.js.map} +0 -0
- /package/dist/cjs/cli/{runAndroid.cjs.map → runAndroid.js.map} +0 -0
- /package/dist/cjs/cli/{runIos.cjs.map → runIos.js.map} +0 -0
- /package/dist/cjs/{clientLoaderResolver.cjs.map → clientLoaderResolver.js.map} +0 -0
- /package/dist/cjs/{config.cjs.map → config.js.map} +0 -0
- /package/dist/cjs/{constants.cjs.map → constants.js.map} +0 -0
- /package/dist/cjs/{createApp.cjs.map → createApp.js.map} +0 -0
- /package/dist/cjs/{createHandleRequest.cjs.map → createHandleRequest.js.map} +0 -0
- /package/dist/cjs/{createRoute.cjs.map → createRoute.js.map} +0 -0
- /package/dist/cjs/fallbackViews/{Sitemap.cjs.map → Sitemap.js.map} +0 -0
- /package/dist/cjs/fallbackViews/{Unmatched.cjs.map → Unmatched.js.map} +0 -0
- /package/dist/cjs/fork/{NavigationContainer.cjs.map → NavigationContainer.js.map} +0 -0
- /package/dist/cjs/fork/{createMemoryHistory.cjs.map → createMemoryHistory.js.map} +0 -0
- /package/dist/cjs/fork/{extractPathFromURL.cjs.map → extractPathFromURL.js.map} +0 -0
- /package/dist/cjs/fork/{findFocusedRoute.cjs.map → findFocusedRoute.js.map} +0 -0
- /package/dist/cjs/fork/{getPathFromState.cjs.map → getPathFromState.js.map} +0 -0
- /package/dist/cjs/fork/{getStateFromPath.cjs.map → getStateFromPath.js.map} +0 -0
- /package/dist/cjs/fork/{useLinking.cjs.map → useLinking.js.map} +0 -0
- /package/dist/cjs/fork/{validatePathConfig.cjs.map → validatePathConfig.js.map} +0 -0
- /package/dist/cjs/{getLinkingConfig.cjs.map → getLinkingConfig.js.map} +0 -0
- /package/dist/cjs/{getReactNavigationConfig.cjs.map → getReactNavigationConfig.js.map} +0 -0
- /package/dist/cjs/{getRoutes.cjs.map → getRoutes.js.map} +0 -0
- /package/dist/cjs/{getURL.cjs.map → getURL.js.map} +0 -0
- /package/dist/cjs/head/{Head.cjs.map → Head.js.map} +0 -0
- /package/dist/cjs/head/{HeadModule.cjs.map → HeadModule.js.map} +0 -0
- /package/dist/cjs/head/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/head/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/head/{url.cjs.map → url.js.map} +0 -0
- /package/dist/cjs/{hooks.cjs.map → hooks.js.map} +0 -0
- /package/dist/cjs/{imperative-api.cjs.map → imperative-api.js.map} +0 -0
- /package/dist/cjs/import-mode/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/import-mode/{index.web.cjs.map → index.web.js.map} +0 -0
- /package/dist/cjs/{index.cjs.map → index.js.map} +0 -0
- /package/dist/cjs/interfaces/{router.cjs.map → router.js.map} +0 -0
- /package/dist/cjs/layouts/{Drawer.cjs.map → Drawer.js.map} +0 -0
- /package/dist/cjs/layouts/{Stack.cjs.map → Stack.js.map} +0 -0
- /package/dist/cjs/layouts/{Tabs.cjs.map → Tabs.js.map} +0 -0
- /package/dist/cjs/layouts/{withLayoutContext.cjs.map → withLayoutContext.js.map} +0 -0
- /package/dist/cjs/link/{Link.cjs.map → Link.js.map} +0 -0
- /package/dist/cjs/link/{Redirect.cjs.map → Redirect.js.map} +0 -0
- /package/dist/cjs/link/{href.cjs.map → href.js.map} +0 -0
- /package/dist/cjs/link/{linking.cjs.map → linking.js.map} +0 -0
- /package/dist/cjs/link/{path.cjs.map → path.js.map} +0 -0
- /package/dist/cjs/link/{useLinkTo.cjs.map → useLinkTo.js.map} +0 -0
- /package/dist/cjs/link/{useLoadedNavigation.cjs.map → useLoadedNavigation.js.map} +0 -0
- /package/dist/cjs/{matchers.cjs.map → matchers.js.map} +0 -0
- /package/dist/cjs/{platform.cjs.map → platform.js.map} +0 -0
- /package/dist/cjs/{polyfills-mobile.cjs.map → polyfills-mobile.js.map} +0 -0
- /package/dist/cjs/{polyfills-server.cjs.map → polyfills-server.js.map} +0 -0
- /package/dist/cjs/{render.cjs.map → render.js.map} +0 -0
- /package/dist/cjs/router/{RouterStore.cjs.map → RouterStore.js.map} +0 -0
- /package/dist/cjs/router/{getNormalizedStatePath.cjs.map → getNormalizedStatePath.js.map} +0 -0
- /package/dist/cjs/router/{lastAction.cjs.map → lastAction.js.map} +0 -0
- /package/dist/cjs/router/{router.cjs.map → router.js.map} +0 -0
- /package/dist/cjs/router/{serverLocationContext.cjs.map → serverLocationContext.js.map} +0 -0
- /package/dist/cjs/router/{useInitializeOneRouter.cjs.map → useInitializeOneRouter.js.map} +0 -0
- /package/dist/cjs/{serve.cjs.map → serve.js.map} +0 -0
- /package/dist/cjs/server/{createRoutesManifest.cjs.map → createRoutesManifest.js.map} +0 -0
- /package/dist/cjs/server/{getServerManifest.cjs.map → getServerManifest.js.map} +0 -0
- /package/dist/cjs/{server-render.cjs.map → server-render.js.map} +0 -0
- /package/dist/cjs/{sortRoutes.cjs.map → sortRoutes.js.map} +0 -0
- /package/dist/cjs/typed-routes/{generateRouteTypes.cjs.map → generateRouteTypes.js.map} +0 -0
- /package/dist/cjs/typed-routes/{getTypedRoutesDeclarationFile.cjs.map → getTypedRoutesDeclarationFile.js.map} +0 -0
- /package/dist/cjs/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/{useFocusEffect.cjs.map → useFocusEffect.js.map} +0 -0
- /package/dist/cjs/{useLoader.cjs.map → useLoader.js.map} +0 -0
- /package/dist/cjs/{useNavigation.cjs.map → useNavigation.js.map} +0 -0
- /package/dist/cjs/{useScreens.cjs.map → useScreens.js.map} +0 -0
- /package/dist/cjs/{useViteRoutes.cjs.map → useViteRoutes.js.map} +0 -0
- /package/dist/cjs/utils/{assertIsReady.cjs.map → assertIsReady.js.map} +0 -0
- /package/dist/cjs/utils/{dynamicImport.cjs.map → dynamicImport.js.map} +0 -0
- /package/dist/cjs/utils/{existsAsync.cjs.map → existsAsync.js.map} +0 -0
- /package/dist/cjs/utils/{getPageExport.cjs.map → getPageExport.js.map} +0 -0
- /package/dist/cjs/utils/{globDir.cjs.map → globDir.js.map} +0 -0
- /package/dist/cjs/utils/{hashString.cjs.map → hashString.js.map} +0 -0
- /package/dist/cjs/utils/{isResponse.cjs.map → isResponse.js.map} +0 -0
- /package/dist/cjs/utils/{isStatus.cjs.map → isStatus.js.map} +0 -0
- /package/dist/cjs/utils/{promiseWithResolvers.cjs.map → promiseWithResolvers.js.map} +0 -0
- /package/dist/cjs/utils/{rand.cjs.map → rand.js.map} +0 -0
- /package/dist/cjs/utils/{redirect.cjs.map → redirect.js.map} +0 -0
- /package/dist/cjs/utils/{removeSearch.cjs.map → removeSearch.js.map} +0 -0
- /package/dist/cjs/utils/{removeUndefined.cjs.map → removeUndefined.js.map} +0 -0
- /package/dist/cjs/utils/{url.cjs.map → url.js.map} +0 -0
- /package/dist/cjs/utils/{weakKey.cjs.map → weakKey.js.map} +0 -0
- /package/dist/cjs/utils/{weakMemo.cjs.map → weakMemo.js.map} +0 -0
- /package/dist/cjs/views/{EmptyRoute.cjs.map → EmptyRoute.js.map} +0 -0
- /package/dist/cjs/views/{ErrorBoundary.cjs.map → ErrorBoundary.js.map} +0 -0
- /package/dist/cjs/views/{LoadProgressBar.cjs.map → LoadProgressBar.js.map} +0 -0
- /package/dist/cjs/views/{Navigator.cjs.map → Navigator.js.map} +0 -0
- /package/dist/cjs/views/{PreloadLinks.cjs.map → PreloadLinks.js.map} +0 -0
- /package/dist/cjs/views/{RootErrorBoundary.cjs.map → RootErrorBoundary.js.map} +0 -0
- /package/dist/cjs/views/{Screen.cjs.map → Screen.js.map} +0 -0
- /package/dist/cjs/views/{ScrollRestoration.cjs.map → ScrollRestoration.js.map} +0 -0
- /package/dist/cjs/views/{Try.cjs.map → Try.js.map} +0 -0
- /package/dist/cjs/vite/{build.cjs.map → build.js.map} +0 -0
- /package/dist/cjs/vite/{clientTreeShakePlugin.cjs.map → clientTreeShakePlugin.js.map} +0 -0
- /package/dist/cjs/vite/{constants.cjs.map → constants.js.map} +0 -0
- /package/dist/cjs/vite/{customNodeExternals.cjs.map → customNodeExternals.js.map} +0 -0
- /package/dist/cjs/vite/{ensureTsConfig.cjs.map → ensureTsConfig.js.map} +0 -0
- /package/dist/cjs/vite/{findDepsToOptimize.cjs.map → findDepsToOptimize.js.map} +0 -0
- /package/dist/cjs/vite/{fixDependenciesPlugin.cjs.map → fixDependenciesPlugin.js.map} +0 -0
- /package/dist/cjs/vite/{generateTypesForRoutes.cjs.map → generateTypesForRoutes.js.map} +0 -0
- /package/dist/cjs/vite/{getManifest.cjs.map → getManifest.js.map} +0 -0
- /package/dist/cjs/vite/{headers.cjs.map → headers.js.map} +0 -0
- /package/dist/cjs/vite/{makePluginWebOnly.cjs.map → makePluginWebOnly.js.map} +0 -0
- /package/dist/cjs/vite/{one.cjs.map → one.js.map} +0 -0
- /package/dist/cjs/vite/{removeReactNativeWebAnimatedPlugin.cjs.map → removeReactNativeWebAnimatedPlugin.js.map} +0 -0
- /package/dist/cjs/vite/{replaceLoader.cjs.map → replaceLoader.js.map} +0 -0
- /package/dist/cjs/vite/{resolveAPIRequest.cjs.map → resolveAPIRequest.js.map} +0 -0
- /package/dist/cjs/vite/{server.cjs.map → server.js.map} +0 -0
- /package/dist/cjs/vite/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/vite/{virtualEntryPlugin.cjs.map → virtualEntryPlugin.js.map} +0 -0
- /package/dist/cjs/vite/{vitePluginSsrCss.cjs.map → vitePluginSsrCss.js.map} +0 -0
- /package/dist/cjs/zero/{getQueryKey.cjs.map → getQueryKey.js.map} +0 -0
- /package/dist/cjs/zero/{isZeroQuery.cjs.map → isZeroQuery.js.map} +0 -0
- /package/dist/cjs/zero/{resolveQuery.cjs.map → resolveQuery.js.map} +0 -0
- /package/dist/cjs/zero/{subscribeToQuery.cjs.map → subscribeToQuery.js.map} +0 -0
- /package/dist/cjs/zero/{types.cjs.map → types.js.map} +0 -0
- /package/dist/cjs/zero/{useQuery.cjs.map → useQuery.js.map} +0 -0
- /package/dist/cjs/zero/{useQueryZero.cjs.map → useQueryZero.js.map} +0 -0
- /package/dist/cjs/{zero.cjs.map → zero.js.map} +0 -0
@@ -0,0 +1,98 @@
|
|
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 Link_exports = {};
|
24
|
+
__export(Link_exports, {
|
25
|
+
Link: () => Link
|
26
|
+
});
|
27
|
+
module.exports = __toCommonJS(Link_exports);
|
28
|
+
var import_react_slot = require("@radix-ui/react-slot"), React = __toESM(require("react"), 1), import_react_native = require("react-native-web"), import_href = require("./href"), import_useLinkTo = require("./useLinkTo"), import_jsx_runtime = require("react/jsx-runtime");
|
29
|
+
const Link = React.forwardRef(function({
|
30
|
+
href,
|
31
|
+
replace,
|
32
|
+
push,
|
33
|
+
// TODO: This does not prevent default on the anchor tag.
|
34
|
+
asChild,
|
35
|
+
rel,
|
36
|
+
target,
|
37
|
+
download,
|
38
|
+
...rest
|
39
|
+
}, ref) {
|
40
|
+
const style = useInteropClassName(rest), hrefAttrs = useHrefAttrs({ asChild, rel, target, download }), resolvedHref = React.useMemo(() => {
|
41
|
+
if (href == null)
|
42
|
+
throw new Error("Link: href is required");
|
43
|
+
return (0, import_href.resolveHref)(href);
|
44
|
+
}, [href]), props = (0, import_useLinkTo.useLinkTo)({ href: resolvedHref, replace }), onPress = (e) => {
|
45
|
+
"onPress" in rest && rest.onPress?.(e), props.onPress(e);
|
46
|
+
};
|
47
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
48
|
+
asChild ? import_react_slot.Slot : import_react_native.Text,
|
49
|
+
{
|
50
|
+
ref,
|
51
|
+
...props,
|
52
|
+
...hrefAttrs,
|
53
|
+
...rest,
|
54
|
+
style: asChild ? null : style,
|
55
|
+
...import_react_native.Platform.select({
|
56
|
+
web: {
|
57
|
+
onClick: onPress
|
58
|
+
},
|
59
|
+
default: { onPress }
|
60
|
+
})
|
61
|
+
}
|
62
|
+
);
|
63
|
+
});
|
64
|
+
Link.resolveHref = import_href.resolveHref;
|
65
|
+
function useInteropClassName(props) {
|
66
|
+
return import_react_native.Platform.OS !== "web" ? props.style : React.useMemo(() => {
|
67
|
+
if (props.className == null)
|
68
|
+
return props.style;
|
69
|
+
const cssStyle = {
|
70
|
+
$$css: !0,
|
71
|
+
__routerLinkClassName: props.className
|
72
|
+
};
|
73
|
+
return Array.isArray(props.style) ? [...props.style, cssStyle] : [props.style, cssStyle];
|
74
|
+
}, [props.style, props.className]);
|
75
|
+
}
|
76
|
+
const useHrefAttrs = import_react_native.Platform.select({
|
77
|
+
web: function({
|
78
|
+
asChild,
|
79
|
+
rel,
|
80
|
+
target,
|
81
|
+
download
|
82
|
+
}) {
|
83
|
+
return React.useMemo(() => {
|
84
|
+
const hrefAttrs = {
|
85
|
+
rel,
|
86
|
+
target,
|
87
|
+
download
|
88
|
+
};
|
89
|
+
return asChild ? hrefAttrs : {
|
90
|
+
hrefAttrs
|
91
|
+
};
|
92
|
+
}, [asChild, rel, target, download]);
|
93
|
+
},
|
94
|
+
default: function() {
|
95
|
+
return {};
|
96
|
+
}
|
97
|
+
});
|
98
|
+
//# sourceMappingURL=Link.js.map
|
@@ -0,0 +1,31 @@
|
|
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 Redirect_exports = {};
|
16
|
+
__export(Redirect_exports, {
|
17
|
+
Redirect: () => Redirect
|
18
|
+
});
|
19
|
+
module.exports = __toCommonJS(Redirect_exports);
|
20
|
+
var import_hooks = require("../hooks"), import_useFocusEffect = require("../useFocusEffect");
|
21
|
+
function Redirect({ href }) {
|
22
|
+
const router = (0, import_hooks.useRouter)();
|
23
|
+
return (0, import_useFocusEffect.useFocusEffect)(() => {
|
24
|
+
try {
|
25
|
+
router.replace(href);
|
26
|
+
} catch (error) {
|
27
|
+
console.error(error);
|
28
|
+
}
|
29
|
+
}), null;
|
30
|
+
}
|
31
|
+
//# sourceMappingURL=Redirect.js.map
|
@@ -0,0 +1,50 @@
|
|
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 href_exports = {};
|
16
|
+
__export(href_exports, {
|
17
|
+
resolveHref: () => resolveHref
|
18
|
+
});
|
19
|
+
module.exports = __toCommonJS(href_exports);
|
20
|
+
const resolveHref = (href) => {
|
21
|
+
if (typeof href == "string")
|
22
|
+
return resolveHref({ pathname: href });
|
23
|
+
const path = href.pathname ?? "";
|
24
|
+
if (!href?.params)
|
25
|
+
return path;
|
26
|
+
const { pathname, params } = createQualifiedPathname(path, {
|
27
|
+
...href.params
|
28
|
+
}), paramsString = createQueryParams(params);
|
29
|
+
return pathname + (paramsString ? `?${paramsString}` : "");
|
30
|
+
};
|
31
|
+
function createQualifiedPathname(pathname, params) {
|
32
|
+
for (const [key, value = ""] of Object.entries(params)) {
|
33
|
+
const dynamicKey = `[${key}]`, deepDynamicKey = `[...${key}]`;
|
34
|
+
if (pathname.includes(dynamicKey))
|
35
|
+
pathname = pathname.replace(dynamicKey, encodeParam(value));
|
36
|
+
else if (pathname.includes(deepDynamicKey))
|
37
|
+
pathname = pathname.replace(deepDynamicKey, encodeParam(value));
|
38
|
+
else
|
39
|
+
continue;
|
40
|
+
delete params[key];
|
41
|
+
}
|
42
|
+
return { pathname, params };
|
43
|
+
}
|
44
|
+
function encodeParam(param) {
|
45
|
+
return Array.isArray(param) ? param.map((p) => encodeParam(p)).join("/") : encodeURIComponent(`${param}`);
|
46
|
+
}
|
47
|
+
function createQueryParams(params) {
|
48
|
+
return Object.entries(params).filter(([, value]) => value != null).map(([key, value]) => `${key}=${encodeURIComponent(value.toString())}`).join("&");
|
49
|
+
}
|
50
|
+
//# sourceMappingURL=href.js.map
|
@@ -0,0 +1,82 @@
|
|
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 linking_exports = {};
|
24
|
+
__export(linking_exports, {
|
25
|
+
addEventListener: () => addEventListener,
|
26
|
+
getInitialURL: () => getInitialURL,
|
27
|
+
getPathFromState: () => import_getPathFromState.default,
|
28
|
+
getRootURL: () => getRootURL,
|
29
|
+
getStateFromPath: () => import_getStateFromPath.default
|
30
|
+
});
|
31
|
+
module.exports = __toCommonJS(linking_exports);
|
32
|
+
var Linking = __toESM(require("expo-linking"), 1), import_react_native = require("react-native-web"), import_extractPathFromURL = require("../fork/extractPathFromURL"), import_getPathFromState = __toESM(require("../fork/getPathFromState"), 1), import_getStateFromPath = __toESM(require("../fork/getStateFromPath"), 1);
|
33
|
+
const isExpoGo = typeof expo < "u" && globalThis.expo?.modules?.ExpoGo;
|
34
|
+
function getInitialURL() {
|
35
|
+
if (process.env.NODE_ENV === "test")
|
36
|
+
return Linking.getInitialURL() ?? getRootURL();
|
37
|
+
if (import_react_native.Platform.OS === "web") {
|
38
|
+
if (typeof window > "u")
|
39
|
+
return "";
|
40
|
+
if (window.location?.href)
|
41
|
+
return window.location.href;
|
42
|
+
}
|
43
|
+
return Promise.race([
|
44
|
+
(async () => {
|
45
|
+
const url = await Linking.getInitialURL();
|
46
|
+
if (url && isExpoGo) {
|
47
|
+
const parsed = Linking.parse(url);
|
48
|
+
if (parsed.path === null || ["", "/"].includes(
|
49
|
+
(0, import_extractPathFromURL.adjustPathname)({
|
50
|
+
hostname: parsed.hostname,
|
51
|
+
pathname: parsed.path
|
52
|
+
})
|
53
|
+
))
|
54
|
+
return getRootURL();
|
55
|
+
}
|
56
|
+
return url ?? getRootURL();
|
57
|
+
})(),
|
58
|
+
new Promise(
|
59
|
+
(resolve) => (
|
60
|
+
// Timeout in 150ms if `getInitialState` doesn't resolve
|
61
|
+
// Workaround for https://github.com/facebook/react-native/issues/25675
|
62
|
+
setTimeout(() => resolve(getRootURL()), 150)
|
63
|
+
)
|
64
|
+
)
|
65
|
+
]);
|
66
|
+
}
|
67
|
+
let _rootURL;
|
68
|
+
function getRootURL() {
|
69
|
+
return _rootURL === void 0 && (_rootURL = Linking.createURL("/")), _rootURL;
|
70
|
+
}
|
71
|
+
function addEventListener(listener) {
|
72
|
+
let callback;
|
73
|
+
isExpoGo ? callback = ({ url }) => {
|
74
|
+
const parsed = Linking.parse(url);
|
75
|
+
parsed.path === null || ["", "/"].includes((0, import_extractPathFromURL.adjustPathname)({ hostname: parsed.hostname, pathname: parsed.path })) ? listener(getRootURL()) : listener(url);
|
76
|
+
} : callback = ({ url }) => listener(url);
|
77
|
+
const subscription = Linking.addEventListener("url", callback);
|
78
|
+
return () => {
|
79
|
+
subscription?.remove?.();
|
80
|
+
};
|
81
|
+
}
|
82
|
+
//# sourceMappingURL=linking.js.map
|
@@ -0,0 +1,65 @@
|
|
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 path_exports = {};
|
16
|
+
__export(path_exports, {
|
17
|
+
resolve: () => resolve
|
18
|
+
});
|
19
|
+
module.exports = __toCommonJS(path_exports);
|
20
|
+
function assertPath(path) {
|
21
|
+
if (typeof path != "string")
|
22
|
+
throw new TypeError("Path must be a string. Received " + JSON.stringify(path));
|
23
|
+
}
|
24
|
+
function normalizeStringPosix(path, allowAboveRoot) {
|
25
|
+
let res = "", lastSegmentLength = 0, lastSlash = -1, dots = 0, code;
|
26
|
+
for (let i = 0; i <= path.length; ++i) {
|
27
|
+
if (i < path.length)
|
28
|
+
code = path.charCodeAt(i);
|
29
|
+
else {
|
30
|
+
if (code === 47)
|
31
|
+
break;
|
32
|
+
code = 47;
|
33
|
+
}
|
34
|
+
if (code === 47) {
|
35
|
+
if (!(lastSlash === i - 1 || dots === 1))
|
36
|
+
if (lastSlash !== i - 1 && dots === 2) {
|
37
|
+
if (res.length < 2 || lastSegmentLength !== 2 || res.charCodeAt(res.length - 1) !== 46 || res.charCodeAt(res.length - 2) !== 46) {
|
38
|
+
if (res.length > 2) {
|
39
|
+
const lastSlashIndex = res.lastIndexOf("/");
|
40
|
+
if (lastSlashIndex !== res.length - 1) {
|
41
|
+
lastSlashIndex === -1 ? (res = "", lastSegmentLength = 0) : (res = res.slice(0, lastSlashIndex), lastSegmentLength = res.length - 1 - res.lastIndexOf("/")), lastSlash = i, dots = 0;
|
42
|
+
continue;
|
43
|
+
}
|
44
|
+
} else if (res.length === 2 || res.length === 1) {
|
45
|
+
res = "", lastSegmentLength = 0, lastSlash = i, dots = 0;
|
46
|
+
continue;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
allowAboveRoot && (res.length > 0 ? res += "/.." : res = "..", lastSegmentLength = 2);
|
50
|
+
} else
|
51
|
+
res.length > 0 ? res += "/" + path.slice(lastSlash + 1, i) : res = path.slice(lastSlash + 1, i), lastSegmentLength = i - lastSlash - 1;
|
52
|
+
lastSlash = i, dots = 0;
|
53
|
+
} else code === 46 && dots !== -1 ? ++dots : dots = -1;
|
54
|
+
}
|
55
|
+
return res;
|
56
|
+
}
|
57
|
+
function resolve(...segments) {
|
58
|
+
let resolvedPath = "", resolvedAbsolute = !1;
|
59
|
+
for (let i = segments.length - 1; i >= -1 && !resolvedAbsolute; i--) {
|
60
|
+
let path;
|
61
|
+
i >= 0 ? path = segments[i] : path = "/", assertPath(path), path.length !== 0 && (resolvedPath = path + "/" + resolvedPath, resolvedAbsolute = path.charCodeAt(0) === 47);
|
62
|
+
}
|
63
|
+
return resolvedPath = normalizeStringPosix(resolvedPath, !resolvedAbsolute), resolvedAbsolute ? resolvedPath.length > 0 ? "/" + resolvedPath : "/" : resolvedPath.length > 0 ? resolvedPath : ".";
|
64
|
+
}
|
65
|
+
//# sourceMappingURL=path.js.map
|
@@ -0,0 +1,42 @@
|
|
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 useLinkTo_exports = {};
|
16
|
+
__export(useLinkTo_exports, {
|
17
|
+
useLinkTo: () => useLinkTo
|
18
|
+
});
|
19
|
+
module.exports = __toCommonJS(useLinkTo_exports);
|
20
|
+
var import_react_native = require("react-native-web"), import_getPathFromState = require("../fork/getPathFromState"), import_router = require("../router/router"), import_matchers = require("../matchers");
|
21
|
+
function eventShouldPreventDefault(e) {
|
22
|
+
return e?.defaultPrevented ? !1 : (
|
23
|
+
// Only check MouseEvents
|
24
|
+
!!("button" in e && // ignore clicks with modifier keys
|
25
|
+
!e.metaKey && !e.altKey && !e.ctrlKey && !e.shiftKey && (e.button == null || e.button === 0) && // Only accept left clicks
|
26
|
+
[void 0, null, "", "self"].includes(e.currentTarget.target))
|
27
|
+
);
|
28
|
+
}
|
29
|
+
function useLinkTo(props) {
|
30
|
+
const { linkTo } = (0, import_router.useOneRouter)(), onPress = (e) => {
|
31
|
+
const event = props.replace ? "REPLACE" : "PUSH";
|
32
|
+
let shouldHandle = !1;
|
33
|
+
import_react_native.Platform.OS !== "web" || !e ? shouldHandle = e ? !e.defaultPrevented : !0 : eventShouldPreventDefault(e) && (e.preventDefault(), shouldHandle = !0), shouldHandle && linkTo(props.href, event);
|
34
|
+
};
|
35
|
+
return {
|
36
|
+
// Ensure there's always a value for href. Manually append the baseUrl to the href prop that shows in the static HTML.
|
37
|
+
href: (0, import_getPathFromState.appendBaseUrl)((0, import_matchers.stripGroupSegmentsFromPath)(props.href) || "/"),
|
38
|
+
role: "link",
|
39
|
+
onPress
|
40
|
+
};
|
41
|
+
}
|
42
|
+
//# sourceMappingURL=useLinkTo.js.map
|
@@ -0,0 +1,50 @@
|
|
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 useLoadedNavigation_exports = {};
|
16
|
+
__export(useLoadedNavigation_exports, {
|
17
|
+
useLoadedNavigation: () => useLoadedNavigation,
|
18
|
+
useOptionalNavigation: () => useOptionalNavigation
|
19
|
+
});
|
20
|
+
module.exports = __toCommonJS(useLoadedNavigation_exports);
|
21
|
+
var import_native = require("@react-navigation/native"), import_react = require("react"), import_router = require("../router/router");
|
22
|
+
function useLoadedNavigation() {
|
23
|
+
const { navigationRef } = (0, import_router.useOneRouter)(), navigation = (0, import_native.useNavigation)(), isMounted = (0, import_react.useRef)(!0), pending = (0, import_react.useRef)([]);
|
24
|
+
(0, import_react.useEffect)(() => (isMounted.current = !0, () => {
|
25
|
+
isMounted.current = !1;
|
26
|
+
}), []);
|
27
|
+
const flush = (0, import_react.useCallback)(() => {
|
28
|
+
if (isMounted.current) {
|
29
|
+
const pendingCallbacks = pending.current;
|
30
|
+
pending.current = [], pendingCallbacks.forEach((callback) => {
|
31
|
+
callback(navigation);
|
32
|
+
});
|
33
|
+
}
|
34
|
+
}, [navigation]);
|
35
|
+
return (0, import_react.useEffect)(() => {
|
36
|
+
navigationRef.current && flush();
|
37
|
+
}, [flush, navigationRef]), (0, import_react.useCallback)(
|
38
|
+
(fn) => {
|
39
|
+
pending.current.push(fn), navigationRef.current && flush();
|
40
|
+
},
|
41
|
+
[flush, navigationRef]
|
42
|
+
);
|
43
|
+
}
|
44
|
+
function useOptionalNavigation() {
|
45
|
+
const [navigation, setNavigation] = (0, import_react.useState)(null), loadNavigation = useLoadedNavigation();
|
46
|
+
return (0, import_react.useEffect)(() => {
|
47
|
+
loadNavigation((nav) => setNavigation(nav));
|
48
|
+
}, [loadNavigation]), navigation;
|
49
|
+
}
|
50
|
+
//# sourceMappingURL=useLoadedNavigation.js.map
|
@@ -0,0 +1,68 @@
|
|
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 matchers_exports = {};
|
16
|
+
__export(matchers_exports, {
|
17
|
+
getContextKey: () => getContextKey,
|
18
|
+
getNameFromFilePath: () => getNameFromFilePath,
|
19
|
+
isTypedRoute: () => isTypedRoute,
|
20
|
+
matchArrayGroupName: () => matchArrayGroupName,
|
21
|
+
matchDeepDynamicRouteName: () => matchDeepDynamicRouteName,
|
22
|
+
matchDynamicName: () => matchDynamicName,
|
23
|
+
matchGroupName: () => matchGroupName,
|
24
|
+
removeFileSystemDots: () => removeFileSystemDots,
|
25
|
+
removeSupportedExtensions: () => removeSupportedExtensions,
|
26
|
+
stripGroupSegmentsFromPath: () => stripGroupSegmentsFromPath,
|
27
|
+
stripInvisibleSegmentsFromPath: () => stripInvisibleSegmentsFromPath,
|
28
|
+
testNotFound: () => testNotFound
|
29
|
+
});
|
30
|
+
module.exports = __toCommonJS(matchers_exports);
|
31
|
+
function matchDynamicName(name) {
|
32
|
+
return name.match(/^\[([^[\](?:\.\.\.)]+?)\]$/)?.[1];
|
33
|
+
}
|
34
|
+
function matchDeepDynamicRouteName(name) {
|
35
|
+
return name.match(/^\[\.\.\.([^/]+?)\]$/)?.[1];
|
36
|
+
}
|
37
|
+
function testNotFound(name) {
|
38
|
+
return /\+not-found$/.test(name);
|
39
|
+
}
|
40
|
+
function matchGroupName(name) {
|
41
|
+
return name.match(/^(?:[^\\(\\)])*?\(([^\\/]+)\).*?$/)?.[1];
|
42
|
+
}
|
43
|
+
function matchArrayGroupName(name) {
|
44
|
+
return name.match(/(?:[^\\(\\)])*?\(?([^\\/\(\)]+,[^\\/\(\)]+)\)?.*?$/)?.[1];
|
45
|
+
}
|
46
|
+
function getNameFromFilePath(name) {
|
47
|
+
return removeSupportedExtensions(removeFileSystemDots(name));
|
48
|
+
}
|
49
|
+
function getContextKey(name) {
|
50
|
+
const normal = "/" + getNameFromFilePath(name);
|
51
|
+
return normal.endsWith("_layout") ? normal.replace(/\/?_layout$/, "") : normal;
|
52
|
+
}
|
53
|
+
function removeSupportedExtensions(name) {
|
54
|
+
return name.replace(/(\+(api|spa|ssg|ssr))?\.[jt]sx?$/g, "");
|
55
|
+
}
|
56
|
+
function removeFileSystemDots(filePath) {
|
57
|
+
return filePath.replace(/^(?:\.\.?\/)+/g, "");
|
58
|
+
}
|
59
|
+
function stripGroupSegmentsFromPath(path) {
|
60
|
+
return path.split("/").reduce((acc, v) => (matchGroupName(v) == null && acc.push(v), acc), []).join("/");
|
61
|
+
}
|
62
|
+
function stripInvisibleSegmentsFromPath(path) {
|
63
|
+
return stripGroupSegmentsFromPath(path).replace(/\/?index$/, "");
|
64
|
+
}
|
65
|
+
function isTypedRoute(name) {
|
66
|
+
return !name.startsWith("+") && name.match(/(_layout|[^/]*?\+[^/]*?)\.[tj]sx?$/) === null;
|
67
|
+
}
|
68
|
+
//# sourceMappingURL=matchers.js.map
|
@@ -0,0 +1,21 @@
|
|
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 platform_exports = {};
|
16
|
+
__export(platform_exports, {
|
17
|
+
isWeb: () => isWeb
|
18
|
+
});
|
19
|
+
module.exports = __toCommonJS(platform_exports);
|
20
|
+
const isWeb = typeof window < "u" && typeof navigator < "u" && typeof document < "u";
|
21
|
+
//# sourceMappingURL=platform.js.map
|
@@ -0,0 +1,26 @@
|
|
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_structured_clone = __toESM(require("@ungap/structured-clone"), 1), import_core_asynciterator_polyfill = require("@azure/core-asynciterator-polyfill"), import_url = require("core-js/actual/url"), import_url_search_params = require("core-js/actual/url-search-params"), import_promiseWithResolvers = require("./utils/promiseWithResolvers");
|
21
|
+
globalThis.global = globalThis;
|
22
|
+
globalThis.structuredClone ||= import_structured_clone.default;
|
23
|
+
globalThis.requestAnimationFrame ||= setTimeout;
|
24
|
+
Promise.withResolvers || // @ts-ignore
|
25
|
+
(Promise.withResolvers = import_promiseWithResolvers.promiseWithResolvers);
|
26
|
+
//# sourceMappingURL=polyfills-mobile.js.map
|
@@ -0,0 +1,23 @@
|
|
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_ws = __toESM(require("ws"), 1);
|
21
|
+
globalThis.WebSocket ||= import_ws.default;
|
22
|
+
globalThis.requestAnimationFrame = setTimeout;
|
23
|
+
//# sourceMappingURL=polyfills-server.js.map
|
@@ -0,0 +1,44 @@
|
|
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 render_exports = {};
|
16
|
+
__export(render_exports, {
|
17
|
+
render: () => render
|
18
|
+
});
|
19
|
+
module.exports = __toCommonJS(render_exports);
|
20
|
+
var import_react = require("react"), import_client = require("react-dom/client");
|
21
|
+
globalThis.__vxrnVersion ||= 0;
|
22
|
+
function render(element) {
|
23
|
+
typeof document > "u" || (globalThis.__vxrnRoot ? (globalThis.__vxrnVersion++, globalThis.__vxrnRoot.render(element)) : (0, import_react.startTransition)(() => {
|
24
|
+
if (globalThis.__vxrnIsSPA) {
|
25
|
+
const root = (0, import_client.createRoot)(document.body);
|
26
|
+
globalThis.__vxrnRoot = root, root.render(element);
|
27
|
+
} else
|
28
|
+
globalThis.__vxrnRoot = (0, import_client.hydrateRoot)(document.body, element, {
|
29
|
+
onRecoverableError(...args) {
|
30
|
+
console.groupCollapsed(
|
31
|
+
"[one] Non-critical recoverable React error occurred, expand group to see details"
|
32
|
+
), console.error(...args), console.groupEnd();
|
33
|
+
},
|
34
|
+
// @ts-expect-error
|
35
|
+
onUncaughtError(...args) {
|
36
|
+
console.error("[one] onUncaughtError", ...args);
|
37
|
+
},
|
38
|
+
onCaughtError(...args) {
|
39
|
+
console.error("[one] onCaughtError", ...args);
|
40
|
+
}
|
41
|
+
});
|
42
|
+
}));
|
43
|
+
}
|
44
|
+
//# sourceMappingURL=render.js.map
|
@@ -0,0 +1,14 @@
|
|
1
|
+
var __defProp = Object.defineProperty;
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
6
|
+
if (from && typeof from == "object" || typeof from == "function")
|
7
|
+
for (let key of __getOwnPropNames(from))
|
8
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
9
|
+
return to;
|
10
|
+
};
|
11
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
12
|
+
var RouterStore_exports = {};
|
13
|
+
module.exports = __toCommonJS(RouterStore_exports);
|
14
|
+
//# sourceMappingURL=RouterStore.js.map
|