one 1.1.319 → 1.1.321

Sign up to get free protection for your applications and to get access to all the features.
Files changed (332) hide show
  1. package/dist/cjs/Root.js +182 -0
  2. package/dist/cjs/Route.js +45 -0
  3. package/dist/cjs/cleanUrl.js +41 -0
  4. package/dist/cjs/cli/label-process.js +25 -0
  5. package/dist/cjs/cli/main.js +46 -0
  6. package/dist/cjs/{getURL.native.cjs → cli/patch.cjs} +11 -15
  7. package/dist/cjs/cli/patch.js +34 -0
  8. package/dist/cjs/cli/patch.js.map +6 -0
  9. package/dist/cjs/cli/patch.native.js +39 -0
  10. package/dist/cjs/cli/patch.native.js.map +6 -0
  11. package/dist/cjs/cli/prebuild.js +34 -0
  12. package/dist/cjs/cli/run.js +52 -0
  13. package/dist/cjs/cli/runAndroid.js +34 -0
  14. package/dist/cjs/cli/runIos.js +34 -0
  15. package/dist/cjs/cli.cjs +17 -0
  16. package/dist/cjs/cli.js +220 -0
  17. package/dist/cjs/{cli.cjs.map → cli.js.map} +1 -1
  18. package/dist/cjs/cli.native.js +12 -0
  19. package/dist/cjs/cli.native.js.map +2 -2
  20. package/dist/cjs/clientLoaderResolver.js +32 -0
  21. package/dist/cjs/config.js +27 -0
  22. package/dist/cjs/constants.js +28 -0
  23. package/dist/cjs/createApp.js +46 -0
  24. package/dist/cjs/createHandleRequest.js +138 -0
  25. package/dist/cjs/createRoute.js +37 -0
  26. package/dist/cjs/fallbackViews/Sitemap.js +82 -0
  27. package/dist/cjs/fallbackViews/Unmatched.js +58 -0
  28. package/dist/cjs/fork/NavigationContainer.js +85 -0
  29. package/dist/cjs/fork/createMemoryHistory.js +100 -0
  30. package/dist/cjs/fork/extractPathFromURL.js +62 -0
  31. package/dist/cjs/fork/findFocusedRoute.js +26 -0
  32. package/dist/cjs/fork/getPathFromState.js +265 -0
  33. package/dist/cjs/fork/getStateFromPath.js +381 -0
  34. package/dist/cjs/fork/useLinking.js +182 -0
  35. package/dist/cjs/fork/validatePathConfig.js +46 -0
  36. package/dist/cjs/getLinkingConfig.js +59 -0
  37. package/dist/cjs/getReactNavigationConfig.js +69 -0
  38. package/dist/cjs/getRoutes.js +294 -0
  39. package/dist/cjs/getURL.js +24 -0
  40. package/dist/cjs/head/Head.js +23 -0
  41. package/dist/cjs/head/HeadModule.js +22 -0
  42. package/dist/cjs/head/index.js +15 -0
  43. package/dist/cjs/head/types.js +14 -0
  44. package/dist/cjs/head/url.js +52 -0
  45. package/dist/cjs/hooks.js +99 -0
  46. package/dist/cjs/imperative-api.js +45 -0
  47. package/dist/cjs/import-mode/index.js +21 -0
  48. package/dist/cjs/import-mode/index.web.js +21 -0
  49. package/dist/cjs/index.js +65 -0
  50. package/dist/cjs/interfaces/router.js +23 -0
  51. package/dist/cjs/layouts/Drawer.js +24 -0
  52. package/dist/cjs/layouts/Stack.js +24 -0
  53. package/dist/cjs/layouts/Tabs.js +52 -0
  54. package/dist/cjs/layouts/withLayoutContext.js +77 -0
  55. package/dist/cjs/link/Link.js +98 -0
  56. package/dist/cjs/link/Redirect.js +31 -0
  57. package/dist/cjs/link/href.js +50 -0
  58. package/dist/cjs/link/linking.js +82 -0
  59. package/dist/cjs/link/path.js +65 -0
  60. package/dist/cjs/link/useLinkTo.js +42 -0
  61. package/dist/cjs/link/useLoadedNavigation.js +50 -0
  62. package/dist/cjs/matchers.js +68 -0
  63. package/dist/cjs/platform.js +21 -0
  64. package/dist/cjs/polyfills-mobile.js +26 -0
  65. package/dist/cjs/polyfills-server.js +23 -0
  66. package/dist/cjs/render.js +44 -0
  67. package/dist/cjs/router/RouterStore.js +14 -0
  68. package/dist/cjs/router/getNormalizedStatePath.js +50 -0
  69. package/dist/cjs/router/lastAction.js +25 -0
  70. package/dist/cjs/router/router.js +345 -0
  71. package/dist/cjs/router/serverLocationContext.js +22 -0
  72. package/dist/cjs/router/useInitializeOneRouter.js +43 -0
  73. package/dist/cjs/serve.js +184 -0
  74. package/dist/cjs/server/createRoutesManifest.js +40 -0
  75. package/dist/cjs/server/getServerManifest.js +109 -0
  76. package/dist/cjs/server-render.js +42 -0
  77. package/dist/cjs/sortRoutes.js +64 -0
  78. package/dist/cjs/typed-routes/generateRouteTypes.js +33 -0
  79. package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.js +83 -0
  80. package/dist/cjs/types.js +14 -0
  81. package/dist/cjs/useFocusEffect.js +79 -0
  82. package/dist/cjs/useLoader.js +97 -0
  83. package/dist/cjs/useNavigation.js +60 -0
  84. package/dist/cjs/useScreens.js +176 -0
  85. package/dist/cjs/useViteRoutes.js +77 -0
  86. package/dist/cjs/utils/assertIsReady.js +26 -0
  87. package/dist/cjs/utils/dynamicImport.js +24 -0
  88. package/dist/cjs/utils/existsAsync.js +28 -0
  89. package/dist/cjs/utils/getPageExport.js +38 -0
  90. package/dist/cjs/utils/globDir.js +37 -0
  91. package/dist/cjs/utils/hashString.js +32 -0
  92. package/dist/cjs/utils/isResponse.js +23 -0
  93. package/dist/cjs/utils/isStatus.js +23 -0
  94. package/dist/cjs/utils/promiseWithResolvers.js +26 -0
  95. package/dist/cjs/utils/rand.js +21 -0
  96. package/dist/cjs/utils/redirect.js +28 -0
  97. package/dist/cjs/utils/removeSearch.js +23 -0
  98. package/dist/cjs/utils/removeUndefined.js +26 -0
  99. package/dist/cjs/utils/url.js +31 -0
  100. package/dist/cjs/utils/weakKey.js +24 -0
  101. package/dist/cjs/utils/weakMemo.js +30 -0
  102. package/dist/cjs/views/EmptyRoute.js +25 -0
  103. package/dist/cjs/views/ErrorBoundary.js +33 -0
  104. package/dist/cjs/views/LoadProgressBar.js +83 -0
  105. package/dist/cjs/views/Navigator.js +101 -0
  106. package/dist/cjs/views/PreloadLinks.js +42 -0
  107. package/dist/cjs/views/RootErrorBoundary.js +47 -0
  108. package/dist/cjs/views/Screen.js +29 -0
  109. package/dist/cjs/views/ScrollRestoration.js +70 -0
  110. package/dist/cjs/views/Try.js +44 -0
  111. package/dist/cjs/vite/build.js +377 -0
  112. package/dist/cjs/vite/clientTreeShakePlugin.js +76 -0
  113. package/dist/cjs/vite/constants.js +22 -0
  114. package/dist/cjs/vite/createFileSystemRouter.cjs +2 -1
  115. package/dist/cjs/vite/createFileSystemRouter.js +244 -0
  116. package/dist/cjs/vite/createFileSystemRouter.js.map +6 -0
  117. package/dist/cjs/vite/createFileSystemRouter.native.js +2 -1
  118. package/dist/cjs/vite/createFileSystemRouter.native.js.map +2 -2
  119. package/dist/cjs/vite/customNodeExternals.js +52 -0
  120. package/dist/cjs/vite/ensureTsConfig.js +66 -0
  121. package/dist/cjs/vite/findDepsToOptimize.js +66 -0
  122. package/dist/cjs/vite/fixDependenciesPlugin.js +43 -0
  123. package/dist/cjs/vite/generateTypesForRoutes.js +36 -0
  124. package/dist/cjs/vite/getManifest.js +27 -0
  125. package/dist/cjs/vite/headers.js +39 -0
  126. package/dist/cjs/vite/makePluginWebOnly.js +27 -0
  127. package/dist/cjs/vite/one.js +290 -0
  128. package/dist/cjs/vite/removeReactNativeWebAnimatedPlugin.js +50 -0
  129. package/dist/cjs/vite/replaceLoader.js +34 -0
  130. package/dist/cjs/vite/resolveAPIRequest.js +71 -0
  131. package/dist/cjs/vite/server.js +16 -0
  132. package/dist/cjs/vite/types.js +14 -0
  133. package/dist/cjs/vite/virtualEntryPlugin.js +67 -0
  134. package/dist/cjs/vite/vitePluginSsrCss.js +130 -0
  135. package/dist/cjs/vite.cjs +2 -0
  136. package/dist/cjs/vite.js +29 -0
  137. package/dist/cjs/vite.js.map +6 -0
  138. package/dist/cjs/vite.native.js +3 -1
  139. package/dist/cjs/vite.native.js.map +1 -1
  140. package/dist/cjs/zero/getQueryKey.js +24 -0
  141. package/dist/cjs/zero/isZeroQuery.js +23 -0
  142. package/dist/cjs/zero/resolveQuery.js +38 -0
  143. package/dist/cjs/zero/subscribeToQuery.js +28 -0
  144. package/dist/cjs/zero/types.js +14 -0
  145. package/dist/cjs/zero/useQuery.js +47 -0
  146. package/dist/cjs/zero/useQueryZero.js +38 -0
  147. package/dist/cjs/zero.js +23 -0
  148. package/dist/esm/cli/patch.js +10 -0
  149. package/dist/esm/cli/patch.js.map +6 -0
  150. package/dist/esm/cli/patch.mjs +10 -0
  151. package/dist/esm/cli/patch.mjs.map +1 -0
  152. package/dist/esm/cli/patch.native.js +10 -0
  153. package/dist/esm/cli/patch.native.js.map +6 -0
  154. package/dist/esm/cli.js +12 -0
  155. package/dist/esm/cli.js.map +1 -1
  156. package/dist/esm/cli.mjs +17 -0
  157. package/dist/esm/cli.mjs.map +1 -1
  158. package/dist/esm/cli.native.js +12 -0
  159. package/dist/esm/cli.native.js.map +2 -2
  160. package/dist/esm/vite/createFileSystemRouter.js +2 -1
  161. package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
  162. package/dist/esm/vite/createFileSystemRouter.mjs +2 -1
  163. package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
  164. package/dist/esm/vite/createFileSystemRouter.native.js +2 -1
  165. package/dist/esm/vite/createFileSystemRouter.native.js.map +2 -2
  166. package/dist/esm/vite.js +2 -0
  167. package/dist/esm/vite.js.map +1 -1
  168. package/dist/esm/vite.mjs +2 -1
  169. package/dist/esm/vite.mjs.map +1 -1
  170. package/dist/esm/vite.native.js +2 -0
  171. package/dist/esm/vite.native.js.map +2 -2
  172. package/package.json +8 -8
  173. package/src/cli/patch.ts +6 -0
  174. package/src/cli.ts +14 -0
  175. package/src/vite/createFileSystemRouter.tsx +1 -1
  176. package/src/vite.ts +1 -0
  177. package/types/cli/patch.d.ts +2 -0
  178. package/types/cli/patch.d.ts.map +1 -0
  179. package/types/vite.d.ts +1 -0
  180. package/types/vite.d.ts.map +1 -1
  181. package/dist/cjs/createApp.native.cjs +0 -38
  182. package/dist/cjs/createApp.native.cjs.map +0 -6
  183. package/dist/cjs/fork/NavigationContainer.native.cjs +0 -103
  184. package/dist/cjs/fork/NavigationContainer.native.cjs.map +0 -6
  185. package/dist/cjs/fork/useLinking.native.cjs +0 -126
  186. package/dist/cjs/fork/useLinking.native.cjs.map +0 -6
  187. package/dist/cjs/getURL.native.cjs.map +0 -6
  188. package/dist/cjs/head/Head.android.cjs +0 -28
  189. package/dist/cjs/head/Head.android.cjs.map +0 -6
  190. package/dist/cjs/head/Head.ios.cjs +0 -210
  191. package/dist/cjs/head/Head.ios.cjs.map +0 -6
  192. package/dist/cjs/import-mode/index.android.cjs +0 -26
  193. package/dist/cjs/import-mode/index.android.cjs.map +0 -6
  194. package/dist/cjs/import-mode/index.ios.cjs +0 -26
  195. package/dist/cjs/import-mode/index.ios.cjs.map +0 -6
  196. package/dist/cjs/import-mode/index.native.cjs +0 -26
  197. package/dist/cjs/import-mode/index.native.cjs.map +0 -6
  198. package/dist/cjs/render.native.cjs +0 -28
  199. package/dist/cjs/render.native.cjs.map +0 -6
  200. package/dist/cjs/views/PreloadLinks.native.cjs +0 -28
  201. package/dist/cjs/views/PreloadLinks.native.cjs.map +0 -6
  202. package/dist/cjs/vite/createFileSystemRouter.cjs.map +0 -6
  203. package/dist/cjs/vite/headers.native.cjs +0 -32
  204. package/dist/cjs/vite/headers.native.cjs.map +0 -6
  205. package/dist/cjs/vite.cjs.map +0 -6
  206. /package/dist/cjs/{Root.cjs.map → Root.js.map} +0 -0
  207. /package/dist/cjs/{Route.cjs.map → Route.js.map} +0 -0
  208. /package/dist/cjs/{cleanUrl.cjs.map → cleanUrl.js.map} +0 -0
  209. /package/dist/cjs/cli/{label-process.cjs.map → label-process.js.map} +0 -0
  210. /package/dist/cjs/cli/{main.cjs.map → main.js.map} +0 -0
  211. /package/dist/cjs/cli/{prebuild.cjs.map → prebuild.js.map} +0 -0
  212. /package/dist/cjs/cli/{run.cjs.map → run.js.map} +0 -0
  213. /package/dist/cjs/cli/{runAndroid.cjs.map → runAndroid.js.map} +0 -0
  214. /package/dist/cjs/cli/{runIos.cjs.map → runIos.js.map} +0 -0
  215. /package/dist/cjs/{clientLoaderResolver.cjs.map → clientLoaderResolver.js.map} +0 -0
  216. /package/dist/cjs/{config.cjs.map → config.js.map} +0 -0
  217. /package/dist/cjs/{constants.cjs.map → constants.js.map} +0 -0
  218. /package/dist/cjs/{createApp.cjs.map → createApp.js.map} +0 -0
  219. /package/dist/cjs/{createHandleRequest.cjs.map → createHandleRequest.js.map} +0 -0
  220. /package/dist/cjs/{createRoute.cjs.map → createRoute.js.map} +0 -0
  221. /package/dist/cjs/fallbackViews/{Sitemap.cjs.map → Sitemap.js.map} +0 -0
  222. /package/dist/cjs/fallbackViews/{Unmatched.cjs.map → Unmatched.js.map} +0 -0
  223. /package/dist/cjs/fork/{NavigationContainer.cjs.map → NavigationContainer.js.map} +0 -0
  224. /package/dist/cjs/fork/{createMemoryHistory.cjs.map → createMemoryHistory.js.map} +0 -0
  225. /package/dist/cjs/fork/{extractPathFromURL.cjs.map → extractPathFromURL.js.map} +0 -0
  226. /package/dist/cjs/fork/{findFocusedRoute.cjs.map → findFocusedRoute.js.map} +0 -0
  227. /package/dist/cjs/fork/{getPathFromState.cjs.map → getPathFromState.js.map} +0 -0
  228. /package/dist/cjs/fork/{getStateFromPath.cjs.map → getStateFromPath.js.map} +0 -0
  229. /package/dist/cjs/fork/{useLinking.cjs.map → useLinking.js.map} +0 -0
  230. /package/dist/cjs/fork/{validatePathConfig.cjs.map → validatePathConfig.js.map} +0 -0
  231. /package/dist/cjs/{getLinkingConfig.cjs.map → getLinkingConfig.js.map} +0 -0
  232. /package/dist/cjs/{getReactNavigationConfig.cjs.map → getReactNavigationConfig.js.map} +0 -0
  233. /package/dist/cjs/{getRoutes.cjs.map → getRoutes.js.map} +0 -0
  234. /package/dist/cjs/{getURL.cjs.map → getURL.js.map} +0 -0
  235. /package/dist/cjs/head/{Head.cjs.map → Head.js.map} +0 -0
  236. /package/dist/cjs/head/{HeadModule.cjs.map → HeadModule.js.map} +0 -0
  237. /package/dist/cjs/head/{index.cjs.map → index.js.map} +0 -0
  238. /package/dist/cjs/head/{types.cjs.map → types.js.map} +0 -0
  239. /package/dist/cjs/head/{url.cjs.map → url.js.map} +0 -0
  240. /package/dist/cjs/{hooks.cjs.map → hooks.js.map} +0 -0
  241. /package/dist/cjs/{imperative-api.cjs.map → imperative-api.js.map} +0 -0
  242. /package/dist/cjs/import-mode/{index.cjs.map → index.js.map} +0 -0
  243. /package/dist/cjs/import-mode/{index.web.cjs.map → index.web.js.map} +0 -0
  244. /package/dist/cjs/{index.cjs.map → index.js.map} +0 -0
  245. /package/dist/cjs/interfaces/{router.cjs.map → router.js.map} +0 -0
  246. /package/dist/cjs/layouts/{Drawer.cjs.map → Drawer.js.map} +0 -0
  247. /package/dist/cjs/layouts/{Stack.cjs.map → Stack.js.map} +0 -0
  248. /package/dist/cjs/layouts/{Tabs.cjs.map → Tabs.js.map} +0 -0
  249. /package/dist/cjs/layouts/{withLayoutContext.cjs.map → withLayoutContext.js.map} +0 -0
  250. /package/dist/cjs/link/{Link.cjs.map → Link.js.map} +0 -0
  251. /package/dist/cjs/link/{Redirect.cjs.map → Redirect.js.map} +0 -0
  252. /package/dist/cjs/link/{href.cjs.map → href.js.map} +0 -0
  253. /package/dist/cjs/link/{linking.cjs.map → linking.js.map} +0 -0
  254. /package/dist/cjs/link/{path.cjs.map → path.js.map} +0 -0
  255. /package/dist/cjs/link/{useLinkTo.cjs.map → useLinkTo.js.map} +0 -0
  256. /package/dist/cjs/link/{useLoadedNavigation.cjs.map → useLoadedNavigation.js.map} +0 -0
  257. /package/dist/cjs/{matchers.cjs.map → matchers.js.map} +0 -0
  258. /package/dist/cjs/{platform.cjs.map → platform.js.map} +0 -0
  259. /package/dist/cjs/{polyfills-mobile.cjs.map → polyfills-mobile.js.map} +0 -0
  260. /package/dist/cjs/{polyfills-server.cjs.map → polyfills-server.js.map} +0 -0
  261. /package/dist/cjs/{render.cjs.map → render.js.map} +0 -0
  262. /package/dist/cjs/router/{RouterStore.cjs.map → RouterStore.js.map} +0 -0
  263. /package/dist/cjs/router/{getNormalizedStatePath.cjs.map → getNormalizedStatePath.js.map} +0 -0
  264. /package/dist/cjs/router/{lastAction.cjs.map → lastAction.js.map} +0 -0
  265. /package/dist/cjs/router/{router.cjs.map → router.js.map} +0 -0
  266. /package/dist/cjs/router/{serverLocationContext.cjs.map → serverLocationContext.js.map} +0 -0
  267. /package/dist/cjs/router/{useInitializeOneRouter.cjs.map → useInitializeOneRouter.js.map} +0 -0
  268. /package/dist/cjs/{serve.cjs.map → serve.js.map} +0 -0
  269. /package/dist/cjs/server/{createRoutesManifest.cjs.map → createRoutesManifest.js.map} +0 -0
  270. /package/dist/cjs/server/{getServerManifest.cjs.map → getServerManifest.js.map} +0 -0
  271. /package/dist/cjs/{server-render.cjs.map → server-render.js.map} +0 -0
  272. /package/dist/cjs/{sortRoutes.cjs.map → sortRoutes.js.map} +0 -0
  273. /package/dist/cjs/typed-routes/{generateRouteTypes.cjs.map → generateRouteTypes.js.map} +0 -0
  274. /package/dist/cjs/typed-routes/{getTypedRoutesDeclarationFile.cjs.map → getTypedRoutesDeclarationFile.js.map} +0 -0
  275. /package/dist/cjs/{types.cjs.map → types.js.map} +0 -0
  276. /package/dist/cjs/{useFocusEffect.cjs.map → useFocusEffect.js.map} +0 -0
  277. /package/dist/cjs/{useLoader.cjs.map → useLoader.js.map} +0 -0
  278. /package/dist/cjs/{useNavigation.cjs.map → useNavigation.js.map} +0 -0
  279. /package/dist/cjs/{useScreens.cjs.map → useScreens.js.map} +0 -0
  280. /package/dist/cjs/{useViteRoutes.cjs.map → useViteRoutes.js.map} +0 -0
  281. /package/dist/cjs/utils/{assertIsReady.cjs.map → assertIsReady.js.map} +0 -0
  282. /package/dist/cjs/utils/{dynamicImport.cjs.map → dynamicImport.js.map} +0 -0
  283. /package/dist/cjs/utils/{existsAsync.cjs.map → existsAsync.js.map} +0 -0
  284. /package/dist/cjs/utils/{getPageExport.cjs.map → getPageExport.js.map} +0 -0
  285. /package/dist/cjs/utils/{globDir.cjs.map → globDir.js.map} +0 -0
  286. /package/dist/cjs/utils/{hashString.cjs.map → hashString.js.map} +0 -0
  287. /package/dist/cjs/utils/{isResponse.cjs.map → isResponse.js.map} +0 -0
  288. /package/dist/cjs/utils/{isStatus.cjs.map → isStatus.js.map} +0 -0
  289. /package/dist/cjs/utils/{promiseWithResolvers.cjs.map → promiseWithResolvers.js.map} +0 -0
  290. /package/dist/cjs/utils/{rand.cjs.map → rand.js.map} +0 -0
  291. /package/dist/cjs/utils/{redirect.cjs.map → redirect.js.map} +0 -0
  292. /package/dist/cjs/utils/{removeSearch.cjs.map → removeSearch.js.map} +0 -0
  293. /package/dist/cjs/utils/{removeUndefined.cjs.map → removeUndefined.js.map} +0 -0
  294. /package/dist/cjs/utils/{url.cjs.map → url.js.map} +0 -0
  295. /package/dist/cjs/utils/{weakKey.cjs.map → weakKey.js.map} +0 -0
  296. /package/dist/cjs/utils/{weakMemo.cjs.map → weakMemo.js.map} +0 -0
  297. /package/dist/cjs/views/{EmptyRoute.cjs.map → EmptyRoute.js.map} +0 -0
  298. /package/dist/cjs/views/{ErrorBoundary.cjs.map → ErrorBoundary.js.map} +0 -0
  299. /package/dist/cjs/views/{LoadProgressBar.cjs.map → LoadProgressBar.js.map} +0 -0
  300. /package/dist/cjs/views/{Navigator.cjs.map → Navigator.js.map} +0 -0
  301. /package/dist/cjs/views/{PreloadLinks.cjs.map → PreloadLinks.js.map} +0 -0
  302. /package/dist/cjs/views/{RootErrorBoundary.cjs.map → RootErrorBoundary.js.map} +0 -0
  303. /package/dist/cjs/views/{Screen.cjs.map → Screen.js.map} +0 -0
  304. /package/dist/cjs/views/{ScrollRestoration.cjs.map → ScrollRestoration.js.map} +0 -0
  305. /package/dist/cjs/views/{Try.cjs.map → Try.js.map} +0 -0
  306. /package/dist/cjs/vite/{build.cjs.map → build.js.map} +0 -0
  307. /package/dist/cjs/vite/{clientTreeShakePlugin.cjs.map → clientTreeShakePlugin.js.map} +0 -0
  308. /package/dist/cjs/vite/{constants.cjs.map → constants.js.map} +0 -0
  309. /package/dist/cjs/vite/{customNodeExternals.cjs.map → customNodeExternals.js.map} +0 -0
  310. /package/dist/cjs/vite/{ensureTsConfig.cjs.map → ensureTsConfig.js.map} +0 -0
  311. /package/dist/cjs/vite/{findDepsToOptimize.cjs.map → findDepsToOptimize.js.map} +0 -0
  312. /package/dist/cjs/vite/{fixDependenciesPlugin.cjs.map → fixDependenciesPlugin.js.map} +0 -0
  313. /package/dist/cjs/vite/{generateTypesForRoutes.cjs.map → generateTypesForRoutes.js.map} +0 -0
  314. /package/dist/cjs/vite/{getManifest.cjs.map → getManifest.js.map} +0 -0
  315. /package/dist/cjs/vite/{headers.cjs.map → headers.js.map} +0 -0
  316. /package/dist/cjs/vite/{makePluginWebOnly.cjs.map → makePluginWebOnly.js.map} +0 -0
  317. /package/dist/cjs/vite/{one.cjs.map → one.js.map} +0 -0
  318. /package/dist/cjs/vite/{removeReactNativeWebAnimatedPlugin.cjs.map → removeReactNativeWebAnimatedPlugin.js.map} +0 -0
  319. /package/dist/cjs/vite/{replaceLoader.cjs.map → replaceLoader.js.map} +0 -0
  320. /package/dist/cjs/vite/{resolveAPIRequest.cjs.map → resolveAPIRequest.js.map} +0 -0
  321. /package/dist/cjs/vite/{server.cjs.map → server.js.map} +0 -0
  322. /package/dist/cjs/vite/{types.cjs.map → types.js.map} +0 -0
  323. /package/dist/cjs/vite/{virtualEntryPlugin.cjs.map → virtualEntryPlugin.js.map} +0 -0
  324. /package/dist/cjs/vite/{vitePluginSsrCss.cjs.map → vitePluginSsrCss.js.map} +0 -0
  325. /package/dist/cjs/zero/{getQueryKey.cjs.map → getQueryKey.js.map} +0 -0
  326. /package/dist/cjs/zero/{isZeroQuery.cjs.map → isZeroQuery.js.map} +0 -0
  327. /package/dist/cjs/zero/{resolveQuery.cjs.map → resolveQuery.js.map} +0 -0
  328. /package/dist/cjs/zero/{subscribeToQuery.cjs.map → subscribeToQuery.js.map} +0 -0
  329. /package/dist/cjs/zero/{types.cjs.map → types.js.map} +0 -0
  330. /package/dist/cjs/zero/{useQuery.cjs.map → useQuery.js.map} +0 -0
  331. /package/dist/cjs/zero/{useQueryZero.cjs.map → useQueryZero.js.map} +0 -0
  332. /package/dist/cjs/{zero.cjs.map → zero.js.map} +0 -0
@@ -0,0 +1,23 @@
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 Head_exports = {};
16
+ __export(Head_exports, {
17
+ Head: () => Head
18
+ });
19
+ module.exports = __toCommonJS(Head_exports);
20
+ var import_HeadModule = require("./HeadModule");
21
+ const Head = ({ children }) => children;
22
+ Object.assign(Head, import_HeadModule.HeadModule);
23
+ //# sourceMappingURL=Head.js.map
@@ -0,0 +1,22 @@
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 HeadModule_exports = {};
16
+ __export(HeadModule_exports, {
17
+ HeadModule: () => HeadModule
18
+ });
19
+ module.exports = __toCommonJS(HeadModule_exports);
20
+ let HeadModule = null;
21
+ typeof expo < "u" && globalThis.expo?.modules?.ExpoGo && (HeadModule = globalThis.expo?.modules?.HeadModule);
22
+ //# sourceMappingURL=HeadModule.js.map
@@ -0,0 +1,15 @@
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
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
+ var head_exports = {};
13
+ module.exports = __toCommonJS(head_exports);
14
+ __reExport(head_exports, require("./Head"), module.exports);
15
+ //# sourceMappingURL=index.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 types_exports = {};
13
+ module.exports = __toCommonJS(types_exports);
14
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,52 @@
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 url_exports = {};
16
+ __export(url_exports, {
17
+ getStaticUrlFromOneRouter: () => getStaticUrlFromOneRouter
18
+ });
19
+ module.exports = __toCommonJS(url_exports);
20
+ const protocolWarningString = '{ plugins: [["router", { origin: "...<URL>..." }]] }';
21
+ function memoize(fn) {
22
+ const cache = {};
23
+ return (...args) => {
24
+ const key = JSON.stringify(args);
25
+ if (cache[key])
26
+ return cache[key];
27
+ const result = fn(...args);
28
+ return cache[key] = result, result;
29
+ };
30
+ }
31
+ function sanitizeUrl(url) {
32
+ const parsed = new URL(url);
33
+ return !parsed.protocol || parsed.protocol === "http:" || parsed.protocol === "https:" || throwOrAlert(
34
+ `One Head: Native origin has invalid protocol "${parsed.protocol}" for URL in Config: ${protocolWarningString}.`
35
+ ), parsed.pathname = "", parsed.search = "", parsed.hash = "", parsed.protocol ??= "https:", parsed.toString().replace(/\/$/, "");
36
+ }
37
+ const memoSanitizeUrl = memoize(sanitizeUrl);
38
+ function getUrlFromConstants() {
39
+ const origin = process.env.One_ORIGIN;
40
+ return origin ? (origin.match(/^http(s)?:\/\//) || console.warn(
41
+ `One Head: origin "${origin}" is missing a \`https://\` protocol. ${protocolWarningString}.`
42
+ ), memoSanitizeUrl(origin)) : (throwOrAlert(
43
+ `One Head: Add the handoff origin to the Config (requires rebuild). Add the Config Plugin ${protocolWarningString}, where \`origin\` is the hosted URL.`
44
+ ), "https://expo.dev");
45
+ }
46
+ function throwOrAlert(msg) {
47
+ console.warn(`TODO FIX: ${msg}`);
48
+ }
49
+ function getStaticUrlFromOneRouter(pathname) {
50
+ return getUrlFromConstants() + pathname;
51
+ }
52
+ //# sourceMappingURL=url.js.map
@@ -0,0 +1,99 @@
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 hooks_exports = {};
24
+ __export(hooks_exports, {
25
+ Frozen: () => Frozen,
26
+ useActiveParams: () => useActiveParams,
27
+ useGlobalSearchParams: () => useGlobalSearchParams,
28
+ useLocalSearchParams: () => useLocalSearchParams,
29
+ useNavigationContainerRef: () => useNavigationContainerRef,
30
+ useParams: () => useParams,
31
+ usePathname: () => usePathname,
32
+ useRootNavigationState: () => useRootNavigationState,
33
+ useRouteInfo: () => useRouteInfo,
34
+ useRouter: () => useRouter,
35
+ useSegments: () => useSegments,
36
+ useUnstableGlobalHref: () => useUnstableGlobalHref
37
+ });
38
+ module.exports = __toCommonJS(hooks_exports);
39
+ var import_native = require("@react-navigation/native"), import_react = __toESM(require("react"), 1), import_imperative_api = require("./imperative-api"), import_router = require("./router/router"), import_jsx_runtime = require("react/jsx-runtime");
40
+ function useRootNavigationState() {
41
+ return (0, import_router.useStoreRootState)();
42
+ }
43
+ function useRouteInfo() {
44
+ return (0, import_router.useStoreRouteInfo)();
45
+ }
46
+ function useNavigationContainerRef() {
47
+ return import_router.navigationRef;
48
+ }
49
+ const FrozeContext = (0, import_react.createContext)(!1);
50
+ function Frozen({ on = !1, children }) {
51
+ return typeof window > "u" ? children : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FrozeContext.Provider, { value: on, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
52
+ "div",
53
+ {
54
+ inert: !0,
55
+ style: { display: "contents" },
56
+ children
57
+ }
58
+ ) });
59
+ }
60
+ function useRouter() {
61
+ return import_imperative_api.router;
62
+ }
63
+ function useUnstableGlobalHref() {
64
+ return (0, import_router.useStoreRouteInfo)().unstable_globalHref;
65
+ }
66
+ function useSegments() {
67
+ return (0, import_router.useStoreRouteInfo)().segments;
68
+ }
69
+ function usePathname() {
70
+ return (0, import_router.useStoreRouteInfo)().pathname;
71
+ }
72
+ function useActiveParams() {
73
+ return (0, import_router.useStoreRouteInfo)().params;
74
+ }
75
+ const useLocalSearchParams = useParams, useGlobalSearchParams = useActiveParams;
76
+ function useParams() {
77
+ const params = import_react.default.useContext(import_native.NavigationRouteContext)?.params ?? {};
78
+ return Object.fromEntries(
79
+ Object.entries(params).map(([key, value]) => {
80
+ if (Array.isArray(value))
81
+ return [
82
+ key,
83
+ value.map((v) => {
84
+ try {
85
+ return decodeURIComponent(v);
86
+ } catch {
87
+ return v;
88
+ }
89
+ })
90
+ ];
91
+ try {
92
+ return [key, decodeURIComponent(value)];
93
+ } catch {
94
+ return [key, value];
95
+ }
96
+ })
97
+ );
98
+ }
99
+ //# sourceMappingURL=hooks.js.map
@@ -0,0 +1,45 @@
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 imperative_api_exports = {};
24
+ __export(imperative_api_exports, {
25
+ router: () => router
26
+ });
27
+ module.exports = __toCommonJS(imperative_api_exports);
28
+ var store = __toESM(require("./router/router"), 1);
29
+ const router = {
30
+ navigate: store.navigate,
31
+ push: store.push,
32
+ dismiss: store.dismiss,
33
+ dismissAll: store.dismissAll,
34
+ canDismiss: store.canDismiss,
35
+ replace: store.replace,
36
+ back: store.goBack,
37
+ canGoBack: store.canGoBack,
38
+ setParams: (params) => store.setParams(
39
+ // TODO
40
+ params
41
+ ),
42
+ subscribe: store.subscribeToRootState,
43
+ onLoadState: store.subscribeToLoadingState
44
+ };
45
+ //# sourceMappingURL=imperative-api.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 import_mode_exports = {};
16
+ __export(import_mode_exports, {
17
+ default: () => import_mode_default
18
+ });
19
+ module.exports = __toCommonJS(import_mode_exports);
20
+ var import_mode_default = "sync";
21
+ //# sourceMappingURL=index.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 index_web_exports = {};
16
+ __export(index_web_exports, {
17
+ default: () => index_web_default
18
+ });
19
+ module.exports = __toCommonJS(index_web_exports);
20
+ var index_web_default = process.env.One_ROUTER_IMPORT_MODE_WEB;
21
+ //# sourceMappingURL=index.web.js.map
@@ -0,0 +1,65 @@
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
+ }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")), __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
15
+ // If the importer is in node compatibility mode or this is not an ESM
16
+ // file that has been converted to a CommonJS file using a Babel-
17
+ // compatible transform (i.e. "__esModule" has not been set), then set
18
+ // "default" to the CommonJS "module.exports" for node compatibility.
19
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
20
+ mod
21
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
22
+ var src_exports = {};
23
+ __export(src_exports, {
24
+ ErrorBoundary: () => import_ErrorBoundary.ErrorBoundary,
25
+ Head: () => import_head.Head,
26
+ Link: () => import_Link.Link,
27
+ LoadProgressBar: () => import_LoadProgressBar.LoadProgressBar,
28
+ Navigator: () => import_Navigator.Navigator,
29
+ Redirect: () => import_Redirect.Redirect,
30
+ Root: () => import_Root.Root,
31
+ SafeAreaView: () => import_react_native_safe_area_context.SafeAreaView,
32
+ ScrollRestoration: () => import_ScrollRestoration.ScrollRestoration,
33
+ Slot: () => import_Navigator.Slot,
34
+ Stack: () => import_Stack.Stack,
35
+ Tabs: () => import_Tabs.Tabs,
36
+ createApp: () => import_createApp.createApp,
37
+ createRoute: () => import_createRoute.createRoute,
38
+ getURL: () => import_getURL.getURL,
39
+ isResponse: () => import_isResponse.isResponse,
40
+ onClientLoaderResolve: () => import_clientLoaderResolver.onClientLoaderResolve,
41
+ redirect: () => import_redirect.redirect,
42
+ render: () => import_render.render,
43
+ route: () => import_createRoute.route,
44
+ router: () => import_imperative_api.router,
45
+ routerStore: () => routerStore,
46
+ useActiveParams: () => import_hooks.useActiveParams,
47
+ useFocusEffect: () => import_useFocusEffect.useFocusEffect,
48
+ useGlobalSearchParams: () => import_hooks2.useGlobalSearchParams,
49
+ useLinkTo: () => import_useLinkTo.useLinkTo,
50
+ useLoader: () => import_useLoader.useLoader,
51
+ useLocalSearchParams: () => import_hooks2.useLocalSearchParams,
52
+ useNavigation: () => import_useNavigation.useNavigation,
53
+ useNavigationContainerRef: () => import_hooks.useNavigationContainerRef,
54
+ useParams: () => import_hooks.useParams,
55
+ usePathname: () => import_hooks.usePathname,
56
+ useRootNavigationState: () => import_hooks.useRootNavigationState,
57
+ useRouter: () => import_hooks.useRouter,
58
+ useSegments: () => import_hooks.useSegments,
59
+ useUnstableGlobalHref: () => import_hooks.useUnstableGlobalHref,
60
+ withLayoutContext: () => import_withLayoutContext.withLayoutContext
61
+ });
62
+ module.exports = __toCommonJS(src_exports);
63
+ __reExport(src_exports, require("@vxrn/universal-color-scheme"), module.exports);
64
+ var import_Root = require("./Root"), import_render = require("./render"), import_Stack = require("./layouts/Stack"), import_Tabs = require("./layouts/Tabs"), import_react_native_safe_area_context = require("react-native-safe-area-context"), import_Navigator = require("./views/Navigator"), import_ErrorBoundary = require("./views/ErrorBoundary"), import_ScrollRestoration = require("./views/ScrollRestoration"), import_LoadProgressBar = require("./views/LoadProgressBar"), import_createApp = require("./createApp"), import_createRoute = require("./createRoute"), import_clientLoaderResolver = require("./clientLoaderResolver"), import_isResponse = require("./utils/isResponse"), import_getURL = require("./getURL"), import_redirect = require("./utils/redirect"), import_useLinkTo = require("./link/useLinkTo"), import_hooks = require("./hooks"), import_hooks2 = require("./hooks"), routerStore = __toESM(require("./router/router"), 1), import_imperative_api = require("./imperative-api"), import_Link = require("./link/Link"), import_Redirect = require("./link/Redirect"), import_head = require("./head"), import_withLayoutContext = require("./layouts/withLayoutContext"), import_useFocusEffect = require("./useFocusEffect"), import_useNavigation = require("./useNavigation"), import_useLoader = require("./useLoader");
65
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,23 @@
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 router_exports = {};
16
+ __export(router_exports, {
17
+ OneRouter: () => OneRouter
18
+ });
19
+ module.exports = __toCommonJS(router_exports);
20
+ var OneRouter;
21
+ ((OneRouter2) => {
22
+ })(OneRouter ||= {});
23
+ //# sourceMappingURL=router.js.map
@@ -0,0 +1,24 @@
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 Drawer_exports = {};
16
+ __export(Drawer_exports, {
17
+ Drawer: () => Drawer,
18
+ default: () => Drawer_default
19
+ });
20
+ module.exports = __toCommonJS(Drawer_exports);
21
+ var import_drawer = require("@react-navigation/drawer"), import_withLayoutContext = require("./withLayoutContext");
22
+ const DrawerNavigator = (0, import_drawer.createDrawerNavigator)().Navigator, Drawer = (0, import_withLayoutContext.withLayoutContext)(DrawerNavigator);
23
+ var Drawer_default = Drawer;
24
+ //# sourceMappingURL=Drawer.js.map
@@ -0,0 +1,24 @@
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 Stack_exports = {};
16
+ __export(Stack_exports, {
17
+ Stack: () => Stack,
18
+ default: () => Stack_default
19
+ });
20
+ module.exports = __toCommonJS(Stack_exports);
21
+ var import_native_stack = require("@react-navigation/native-stack"), import_withLayoutContext = require("./withLayoutContext");
22
+ const NativeStackNavigator = (0, import_native_stack.createNativeStackNavigator)().Navigator, Stack = (0, import_withLayoutContext.withLayoutContext)(NativeStackNavigator);
23
+ var Stack_default = Stack;
24
+ //# sourceMappingURL=Stack.js.map
@@ -0,0 +1,52 @@
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 Tabs_exports = {};
16
+ __export(Tabs_exports, {
17
+ Tabs: () => Tabs,
18
+ default: () => Tabs_default
19
+ });
20
+ module.exports = __toCommonJS(Tabs_exports);
21
+ var import_bottom_tabs = require("@react-navigation/bottom-tabs"), import_react_native = require("react-native-web"), import_Link = require("../link/Link"), import_withLayoutContext = require("./withLayoutContext"), import_jsx_runtime = require("react/jsx-runtime");
22
+ const BottomTabNavigator = (0, import_bottom_tabs.createBottomTabNavigator)().Navigator, Tabs = (0, import_withLayoutContext.withLayoutContext)(BottomTabNavigator, (screens) => screens.map((screen) => {
23
+ if (typeof screen.options != "function" && screen.options?.href !== void 0) {
24
+ const { href, ...options } = screen.options;
25
+ if (options.tabBarButton)
26
+ throw new Error("Cannot use `href` and `tabBarButton` together.");
27
+ return {
28
+ ...screen,
29
+ options: {
30
+ ...options,
31
+ tabBarButton: (props) => {
32
+ if (href == null)
33
+ return null;
34
+ const children = import_react_native.Platform.OS === "web" ? props.children : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.Pressable, { children: props.children });
35
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
36
+ import_Link.Link,
37
+ {
38
+ ...props,
39
+ style: [{ display: "flex" }, props.style],
40
+ href,
41
+ asChild: import_react_native.Platform.OS !== "web",
42
+ children
43
+ }
44
+ );
45
+ }
46
+ }
47
+ };
48
+ }
49
+ return screen;
50
+ }));
51
+ var Tabs_default = Tabs;
52
+ //# sourceMappingURL=Tabs.js.map
@@ -0,0 +1,77 @@
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 withLayoutContext_exports = {};
24
+ __export(withLayoutContext_exports, {
25
+ useFilterScreenChildren: () => useFilterScreenChildren,
26
+ withLayoutContext: () => withLayoutContext
27
+ });
28
+ module.exports = __toCommonJS(withLayoutContext_exports);
29
+ var import_react = __toESM(require("react"), 1), import_Route = require("../Route"), import_useScreens = require("../useScreens"), import_Screen = require("../views/Screen"), import_jsx_runtime = (
30
+ // @ts-expect-error
31
+ // biome-ignore lint/correctness/noChildrenProp: <explanation>
32
+ require("react/jsx-runtime")
33
+ );
34
+ function useFilterScreenChildren(children, {
35
+ isCustomNavigator,
36
+ contextKey
37
+ } = {}) {
38
+ return import_react.default.useMemo(() => {
39
+ const customChildren = [], screens = import_react.default.Children.map(children, (child) => {
40
+ if (import_react.default.isValidElement(child) && child && child.type === import_Screen.Screen) {
41
+ if (!child.props.name)
42
+ throw new Error(
43
+ `<Screen /> component in \`default export\` at \`app${contextKey}/_layout\` must have a \`name\` prop when used as a child of a Layout Route.`
44
+ );
45
+ if (process.env.NODE_ENV !== "production" && ["children", "component", "getComponent"].some((key) => key in child.props))
46
+ throw new Error(
47
+ `<Screen /> component in \`default export\` at \`app${contextKey}/_layout\` must not have a \`children\`, \`component\`, or \`getComponent\` prop when used as a child of a Layout Route`
48
+ );
49
+ return child.props;
50
+ }
51
+ isCustomNavigator ? customChildren.push(child) : console.warn(
52
+ `Layout children must be of type Screen, all other children are ignored. To use custom children, create a custom <Layout />. Update Layout Route at: "app${contextKey}/_layout"`
53
+ );
54
+ });
55
+ if (process.env.NODE_ENV !== "production") {
56
+ const names = screens?.map((screen) => screen.name);
57
+ if (names && new Set(names).size !== names.length)
58
+ throw new Error("Screen names must be unique: " + names);
59
+ }
60
+ return {
61
+ screens,
62
+ children: customChildren
63
+ };
64
+ }, [children, contextKey, isCustomNavigator]);
65
+ }
66
+ function withLayoutContext(Nav, processor) {
67
+ const Navigator = import_react.default.forwardRef(
68
+ ({ children: userDefinedChildren, ...props }, ref) => {
69
+ const contextKey = (0, import_Route.useContextKey)(), { screens } = useFilterScreenChildren(userDefinedChildren, {
70
+ contextKey
71
+ }), processed = processor ? processor(screens ?? []) : screens, sorted = (0, import_useScreens.useSortedScreens)(processed ?? []);
72
+ return sorted.length ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Nav, { ...props, id: contextKey, ref, children: sorted }) : null;
73
+ }
74
+ );
75
+ return Navigator.Screen = import_Screen.Screen, Navigator;
76
+ }
77
+ //# sourceMappingURL=withLayoutContext.js.map