one 1.1.309 → 1.1.311

Sign up to get free protection for your applications and to get access to all the features.
Files changed (401) hide show
  1. package/dist/cjs/Root.cjs +213 -0
  2. package/dist/cjs/Root.cjs.map +6 -0
  3. package/dist/cjs/Root.native.js +2 -2
  4. package/dist/cjs/Root.native.js.map +2 -2
  5. package/dist/cjs/{Route.js → Route.cjs} +34 -19
  6. package/dist/cjs/{cleanUrl.js → cleanUrl.cjs} +27 -18
  7. package/dist/cjs/cli/label-process.cjs +31 -0
  8. package/dist/cjs/cli/{main.js → main.cjs} +28 -16
  9. package/dist/cjs/cli/{prebuild.js → prebuild.cjs} +25 -15
  10. package/dist/cjs/cli/run.cjs +70 -0
  11. package/dist/cjs/cli/{runAndroid.js → runAndroid.cjs} +25 -15
  12. package/dist/cjs/cli/{runIos.js → runIos.cjs} +25 -15
  13. package/dist/cjs/cli.cjs +258 -0
  14. package/dist/cjs/clientLoaderResolver.cjs +35 -0
  15. package/dist/cjs/config.cjs +32 -0
  16. package/dist/cjs/constants.cjs +30 -0
  17. package/dist/cjs/{createApp.js → createApp.cjs} +33 -17
  18. package/dist/cjs/createApp.native.cjs +38 -0
  19. package/dist/cjs/createApp.native.cjs.map +6 -0
  20. package/dist/cjs/{createHandleRequest.js → createHandleRequest.cjs} +61 -49
  21. package/dist/cjs/createHandleRequest.cjs.map +6 -0
  22. package/dist/cjs/createHandleRequest.native.js +1 -0
  23. package/dist/cjs/createHandleRequest.native.js.map +2 -2
  24. package/dist/cjs/createRoute.cjs +42 -0
  25. package/dist/cjs/fallbackViews/{Sitemap.js → Sitemap.cjs} +35 -16
  26. package/dist/cjs/fallbackViews/{Unmatched.js → Unmatched.cjs} +32 -17
  27. package/dist/cjs/fork/NavigationContainer.cjs +105 -0
  28. package/dist/cjs/fork/NavigationContainer.native.cjs +103 -0
  29. package/dist/cjs/fork/NavigationContainer.native.cjs.map +6 -0
  30. package/dist/cjs/fork/createMemoryHistory.cjs +136 -0
  31. package/dist/cjs/fork/{extractPathFromURL.js → extractPathFromURL.cjs} +30 -21
  32. package/dist/cjs/fork/findFocusedRoute.cjs +30 -0
  33. package/dist/cjs/fork/{getPathFromState.js → getPathFromState.cjs} +120 -113
  34. package/dist/cjs/fork/getStateFromPath.cjs +366 -0
  35. package/dist/cjs/fork/useLinking.cjs +215 -0
  36. package/dist/cjs/fork/useLinking.native.cjs +126 -0
  37. package/dist/cjs/fork/useLinking.native.cjs.map +6 -0
  38. package/dist/cjs/fork/validatePathConfig.cjs +44 -0
  39. package/dist/cjs/{getLinkingConfig.js → getLinkingConfig.cjs} +21 -15
  40. package/dist/cjs/{getReactNavigationConfig.js → getReactNavigationConfig.cjs} +33 -32
  41. package/dist/cjs/getRoutes.cjs +276 -0
  42. package/dist/cjs/getURL.cjs +29 -0
  43. package/dist/cjs/getURL.native.cjs +48 -0
  44. package/dist/cjs/getURL.native.cjs.map +6 -0
  45. package/dist/cjs/head/Head.android.cjs +28 -0
  46. package/dist/cjs/head/Head.android.cjs.map +6 -0
  47. package/dist/cjs/head/Head.cjs +30 -0
  48. package/dist/cjs/head/Head.ios.cjs +210 -0
  49. package/dist/cjs/head/Head.ios.cjs.map +6 -0
  50. package/dist/cjs/head/HeadModule.cjs +27 -0
  51. package/dist/cjs/head/index.cjs +18 -0
  52. package/dist/cjs/head/types.cjs +16 -0
  53. package/dist/cjs/head/url.cjs +50 -0
  54. package/dist/cjs/{hooks.js → hooks.cjs} +52 -40
  55. package/dist/cjs/{imperative-api.js → imperative-api.cjs} +26 -19
  56. package/dist/cjs/import-mode/index.android.cjs +26 -0
  57. package/dist/cjs/import-mode/index.android.cjs.map +6 -0
  58. package/dist/cjs/import-mode/index.cjs +26 -0
  59. package/dist/cjs/import-mode/index.ios.cjs +26 -0
  60. package/dist/cjs/import-mode/index.ios.cjs.map +6 -0
  61. package/dist/cjs/import-mode/index.native.cjs +26 -0
  62. package/dist/cjs/import-mode/index.native.cjs.map +6 -0
  63. package/dist/cjs/import-mode/index.web.cjs +26 -0
  64. package/dist/cjs/{index.js → index.cjs} +50 -14
  65. package/dist/cjs/interfaces/router.cjs +27 -0
  66. package/dist/cjs/layouts/Drawer.cjs +31 -0
  67. package/dist/cjs/layouts/Stack.cjs +31 -0
  68. package/dist/cjs/layouts/Tabs.cjs +64 -0
  69. package/dist/cjs/layouts/withLayoutContext.cjs +91 -0
  70. package/dist/cjs/link/Link.cjs +120 -0
  71. package/dist/cjs/link/Redirect.cjs +39 -0
  72. package/dist/cjs/link/href.cjs +58 -0
  73. package/dist/cjs/link/linking.cjs +89 -0
  74. package/dist/cjs/link/path.cjs +69 -0
  75. package/dist/cjs/link/useLinkTo.cjs +54 -0
  76. package/dist/cjs/link/useLoadedNavigation.cjs +60 -0
  77. package/dist/cjs/{matchers.js → matchers.cjs} +16 -11
  78. package/dist/cjs/platform.cjs +26 -0
  79. package/dist/cjs/polyfills-mobile.cjs +33 -0
  80. package/dist/cjs/polyfills-server.cjs +25 -0
  81. package/dist/cjs/render.cjs +47 -0
  82. package/dist/cjs/render.native.cjs +28 -0
  83. package/dist/cjs/render.native.cjs.map +6 -0
  84. package/dist/cjs/router/RouterStore.cjs +16 -0
  85. package/dist/cjs/router/constants.cjs +26 -0
  86. package/dist/cjs/router/{getNormalizedStatePath.js → getNormalizedStatePath.cjs} +25 -23
  87. package/dist/cjs/router/lastAction.cjs +31 -0
  88. package/dist/cjs/router/{router.js → router.cjs} +104 -78
  89. package/dist/cjs/router/serverLocationContext.cjs +27 -0
  90. package/dist/cjs/router/{useInitializeOneRouter.js → useInitializeOneRouter.cjs} +26 -16
  91. package/dist/cjs/serve.cjs +185 -0
  92. package/dist/cjs/server/{createRoutesManifest.js → createRoutesManifest.cjs} +22 -16
  93. package/dist/cjs/server/{getServerManifest.js → getServerManifest.cjs} +58 -31
  94. package/dist/cjs/{server-render.js → server-render.cjs} +28 -17
  95. package/dist/cjs/sortRoutes.cjs +62 -0
  96. package/dist/cjs/typed-routes/generateRouteTypes.cjs +48 -0
  97. package/dist/cjs/typed-routes/{getTypedRoutesDeclarationFile.js → getTypedRoutesDeclarationFile.cjs} +37 -40
  98. package/dist/cjs/types.cjs +16 -0
  99. package/dist/cjs/{useFocusEffect.js → useFocusEffect.cjs} +33 -24
  100. package/dist/cjs/useLoader.cjs +114 -0
  101. package/dist/cjs/useNavigation.cjs +68 -0
  102. package/dist/cjs/useScreens.cjs +233 -0
  103. package/dist/cjs/{useViteRoutes.js → useViteRoutes.cjs} +36 -24
  104. package/dist/cjs/utils/assertIsReady.cjs +28 -0
  105. package/dist/cjs/utils/dynamicImport.cjs +27 -0
  106. package/dist/cjs/utils/existsAsync.cjs +33 -0
  107. package/dist/cjs/utils/getPageExport.cjs +32 -0
  108. package/dist/cjs/utils/{globDir.js → globDir.cjs} +23 -15
  109. package/dist/cjs/utils/{hashString.js → hashString.cjs} +22 -14
  110. package/dist/cjs/utils/isResponse.cjs +28 -0
  111. package/dist/cjs/utils/isStatus.cjs +28 -0
  112. package/dist/cjs/utils/promiseWithResolvers.cjs +37 -0
  113. package/dist/cjs/utils/rand.cjs +26 -0
  114. package/dist/cjs/utils/redirect.cjs +34 -0
  115. package/dist/cjs/utils/removeSearch.cjs +28 -0
  116. package/dist/cjs/utils/removeUndefined.cjs +30 -0
  117. package/dist/cjs/utils/{url.js → url.cjs} +16 -11
  118. package/dist/cjs/utils/weakKey.cjs +30 -0
  119. package/dist/cjs/utils/weakMemo.cjs +34 -0
  120. package/dist/cjs/views/EmptyRoute.cjs +30 -0
  121. package/dist/cjs/views/{ErrorBoundary.js → ErrorBoundary.cjs} +30 -16
  122. package/dist/cjs/views/LoadProgressBar.cjs +90 -0
  123. package/dist/cjs/views/Navigator.cjs +149 -0
  124. package/dist/cjs/views/{PreloadLinks.js → PreloadLinks.cjs} +20 -13
  125. package/dist/cjs/views/PreloadLinks.native.cjs +28 -0
  126. package/dist/cjs/views/PreloadLinks.native.cjs.map +6 -0
  127. package/dist/cjs/views/{RootErrorBoundary.js → RootErrorBoundary.cjs} +28 -16
  128. package/dist/cjs/views/Screen.cjs +39 -0
  129. package/dist/cjs/views/ScrollRestoration.cjs +74 -0
  130. package/dist/cjs/views/Try.cjs +68 -0
  131. package/dist/cjs/vite/build.cjs +425 -0
  132. package/dist/cjs/vite/{clientTreeShakePlugin.js → clientTreeShakePlugin.cjs} +53 -35
  133. package/dist/cjs/vite/constants.cjs +28 -0
  134. package/dist/cjs/vite/{createFileSystemRouter.js → createFileSystemRouter.cjs} +117 -84
  135. package/dist/cjs/vite/{customNodeExternals.js → customNodeExternals.cjs} +32 -20
  136. package/dist/cjs/vite/ensureTsConfig.cjs +68 -0
  137. package/dist/cjs/vite/findDepsToOptimize.cjs +74 -0
  138. package/dist/cjs/vite/{fixDependenciesPlugin.js → fixDependenciesPlugin.cjs} +17 -12
  139. package/dist/cjs/vite/generateTypesForRoutes.cjs +45 -0
  140. package/dist/cjs/vite/{getManifest.js → getManifest.cjs} +18 -12
  141. package/dist/cjs/vite/{headers.js → headers.cjs} +19 -14
  142. package/dist/cjs/vite/headers.native.cjs +32 -0
  143. package/dist/cjs/vite/headers.native.cjs.map +6 -0
  144. package/dist/cjs/vite/{loadEnv.js → loadEnv.cjs} +27 -16
  145. package/dist/cjs/vite/makePluginWebOnly.cjs +31 -0
  146. package/dist/cjs/vite/one.cjs +256 -0
  147. package/dist/cjs/vite/{removeReactNativeWebAnimatedPlugin.js → removeReactNativeWebAnimatedPlugin.cjs} +32 -25
  148. package/dist/cjs/vite/replaceLoader.cjs +37 -0
  149. package/dist/cjs/vite/resolveAPIRequest.cjs +90 -0
  150. package/dist/cjs/vite/server.cjs +13 -0
  151. package/dist/cjs/vite/types.cjs +16 -0
  152. package/dist/cjs/vite/{virtualEntryPlugin.js → virtualEntryPlugin.cjs} +28 -20
  153. package/dist/cjs/vite/{vitePluginSsrCss.js → vitePluginSsrCss.cjs} +56 -50
  154. package/dist/cjs/vite.cjs +40 -0
  155. package/dist/cjs/zero/getQueryKey.cjs +29 -0
  156. package/dist/cjs/zero/isZeroQuery.cjs +28 -0
  157. package/dist/cjs/zero/resolveQuery.cjs +41 -0
  158. package/dist/cjs/zero/{subscribeToQuery.js → subscribeToQuery.cjs} +16 -11
  159. package/dist/cjs/zero/types.cjs +16 -0
  160. package/dist/cjs/zero/useQuery.cjs +58 -0
  161. package/dist/cjs/zero/{useQueryZero.js → useQueryZero.cjs} +21 -15
  162. package/dist/cjs/zero.cjs +30 -0
  163. package/dist/esm/Root.js +2 -1
  164. package/dist/esm/Root.js.map +1 -1
  165. package/dist/esm/Root.mjs +2 -1
  166. package/dist/esm/Root.mjs.map +1 -1
  167. package/dist/esm/Root.native.js +2 -1
  168. package/dist/esm/Root.native.js.map +2 -2
  169. package/dist/esm/createHandleRequest.js +1 -0
  170. package/dist/esm/createHandleRequest.js.map +1 -1
  171. package/dist/esm/createHandleRequest.mjs +1 -0
  172. package/dist/esm/createHandleRequest.mjs.map +1 -1
  173. package/dist/esm/createHandleRequest.native.js +1 -0
  174. package/dist/esm/createHandleRequest.native.js.map +2 -2
  175. package/dist/esm/getURL.js +1 -1
  176. package/dist/esm/getURL.mjs +1 -1
  177. package/package.json +10 -10
  178. package/src/Root.tsx +2 -1
  179. package/src/createHandleRequest.ts +5 -0
  180. package/src/getURL.ts +1 -1
  181. package/types/Root.d.ts.map +1 -1
  182. package/types/createHandleRequest.d.ts.map +1 -1
  183. package/dist/cjs/Root.js +0 -182
  184. package/dist/cjs/Root.js.map +0 -6
  185. package/dist/cjs/cli/label-process.js +0 -25
  186. package/dist/cjs/cli/run.js +0 -52
  187. package/dist/cjs/cli.js +0 -209
  188. package/dist/cjs/clientLoaderResolver.js +0 -32
  189. package/dist/cjs/config.js +0 -27
  190. package/dist/cjs/constants.js +0 -23
  191. package/dist/cjs/createHandleRequest.js.map +0 -6
  192. package/dist/cjs/createRoute.js +0 -37
  193. package/dist/cjs/fork/NavigationContainer.js +0 -85
  194. package/dist/cjs/fork/createMemoryHistory.js +0 -100
  195. package/dist/cjs/fork/findFocusedRoute.js +0 -26
  196. package/dist/cjs/fork/getStateFromPath.js +0 -381
  197. package/dist/cjs/fork/useLinking.js +0 -182
  198. package/dist/cjs/fork/validatePathConfig.js +0 -46
  199. package/dist/cjs/getRoutes.js +0 -294
  200. package/dist/cjs/getURL.js +0 -24
  201. package/dist/cjs/head/Head.js +0 -23
  202. package/dist/cjs/head/HeadModule.js +0 -22
  203. package/dist/cjs/head/index.js +0 -15
  204. package/dist/cjs/head/types.js +0 -14
  205. package/dist/cjs/head/url.js +0 -52
  206. package/dist/cjs/import-mode/index.js +0 -21
  207. package/dist/cjs/import-mode/index.web.js +0 -21
  208. package/dist/cjs/interfaces/router.js +0 -23
  209. package/dist/cjs/layouts/Drawer.js +0 -24
  210. package/dist/cjs/layouts/Stack.js +0 -24
  211. package/dist/cjs/layouts/Tabs.js +0 -52
  212. package/dist/cjs/layouts/withLayoutContext.js +0 -77
  213. package/dist/cjs/link/Link.js +0 -98
  214. package/dist/cjs/link/Redirect.js +0 -31
  215. package/dist/cjs/link/href.js +0 -50
  216. package/dist/cjs/link/linking.js +0 -82
  217. package/dist/cjs/link/path.js +0 -65
  218. package/dist/cjs/link/useLinkTo.js +0 -42
  219. package/dist/cjs/link/useLoadedNavigation.js +0 -50
  220. package/dist/cjs/platform.js +0 -21
  221. package/dist/cjs/polyfills-mobile.js +0 -26
  222. package/dist/cjs/polyfills-server.js +0 -23
  223. package/dist/cjs/render.js +0 -44
  224. package/dist/cjs/router/RouterStore.js +0 -14
  225. package/dist/cjs/router/constants.js +0 -21
  226. package/dist/cjs/router/lastAction.js +0 -25
  227. package/dist/cjs/router/serverLocationContext.js +0 -22
  228. package/dist/cjs/serve.js +0 -175
  229. package/dist/cjs/sortRoutes.js +0 -64
  230. package/dist/cjs/typed-routes/generateRouteTypes.js +0 -33
  231. package/dist/cjs/types.js +0 -14
  232. package/dist/cjs/useLoader.js +0 -97
  233. package/dist/cjs/useNavigation.js +0 -60
  234. package/dist/cjs/useScreens.js +0 -176
  235. package/dist/cjs/utils/assertIsReady.js +0 -26
  236. package/dist/cjs/utils/dynamicImport.js +0 -24
  237. package/dist/cjs/utils/existsAsync.js +0 -28
  238. package/dist/cjs/utils/getPageExport.js +0 -27
  239. package/dist/cjs/utils/isResponse.js +0 -23
  240. package/dist/cjs/utils/isStatus.js +0 -23
  241. package/dist/cjs/utils/promiseWithResolvers.js +0 -26
  242. package/dist/cjs/utils/rand.js +0 -21
  243. package/dist/cjs/utils/redirect.js +0 -28
  244. package/dist/cjs/utils/removeSearch.js +0 -23
  245. package/dist/cjs/utils/removeUndefined.js +0 -26
  246. package/dist/cjs/utils/weakKey.js +0 -24
  247. package/dist/cjs/utils/weakMemo.js +0 -30
  248. package/dist/cjs/views/EmptyRoute.js +0 -25
  249. package/dist/cjs/views/LoadProgressBar.js +0 -83
  250. package/dist/cjs/views/Navigator.js +0 -101
  251. package/dist/cjs/views/Screen.js +0 -29
  252. package/dist/cjs/views/ScrollRestoration.js +0 -70
  253. package/dist/cjs/views/Try.js +0 -44
  254. package/dist/cjs/vite/build.js +0 -376
  255. package/dist/cjs/vite/constants.js +0 -22
  256. package/dist/cjs/vite/ensureTsConfig.js +0 -66
  257. package/dist/cjs/vite/findDepsToOptimize.js +0 -66
  258. package/dist/cjs/vite/generateTypesForRoutes.js +0 -36
  259. package/dist/cjs/vite/makePluginWebOnly.js +0 -27
  260. package/dist/cjs/vite/one.js +0 -255
  261. package/dist/cjs/vite/replaceLoader.js +0 -34
  262. package/dist/cjs/vite/resolveAPIRequest.js +0 -71
  263. package/dist/cjs/vite/server.js +0 -16
  264. package/dist/cjs/vite/types.js +0 -14
  265. package/dist/cjs/vite.js +0 -28
  266. package/dist/cjs/zero/getQueryKey.js +0 -24
  267. package/dist/cjs/zero/isZeroQuery.js +0 -23
  268. package/dist/cjs/zero/resolveQuery.js +0 -38
  269. package/dist/cjs/zero/types.js +0 -14
  270. package/dist/cjs/zero/useQuery.js +0 -47
  271. package/dist/cjs/zero.js +0 -23
  272. /package/dist/cjs/{Route.js.map → Route.cjs.map} +0 -0
  273. /package/dist/cjs/{cleanUrl.js.map → cleanUrl.cjs.map} +0 -0
  274. /package/dist/cjs/cli/{label-process.js.map → label-process.cjs.map} +0 -0
  275. /package/dist/cjs/cli/{main.js.map → main.cjs.map} +0 -0
  276. /package/dist/cjs/cli/{prebuild.js.map → prebuild.cjs.map} +0 -0
  277. /package/dist/cjs/cli/{run.js.map → run.cjs.map} +0 -0
  278. /package/dist/cjs/cli/{runAndroid.js.map → runAndroid.cjs.map} +0 -0
  279. /package/dist/cjs/cli/{runIos.js.map → runIos.cjs.map} +0 -0
  280. /package/dist/cjs/{cli.js.map → cli.cjs.map} +0 -0
  281. /package/dist/cjs/{clientLoaderResolver.js.map → clientLoaderResolver.cjs.map} +0 -0
  282. /package/dist/cjs/{config.js.map → config.cjs.map} +0 -0
  283. /package/dist/cjs/{constants.js.map → constants.cjs.map} +0 -0
  284. /package/dist/cjs/{createApp.js.map → createApp.cjs.map} +0 -0
  285. /package/dist/cjs/{createRoute.js.map → createRoute.cjs.map} +0 -0
  286. /package/dist/cjs/fallbackViews/{Sitemap.js.map → Sitemap.cjs.map} +0 -0
  287. /package/dist/cjs/fallbackViews/{Unmatched.js.map → Unmatched.cjs.map} +0 -0
  288. /package/dist/cjs/fork/{NavigationContainer.js.map → NavigationContainer.cjs.map} +0 -0
  289. /package/dist/cjs/fork/{createMemoryHistory.js.map → createMemoryHistory.cjs.map} +0 -0
  290. /package/dist/cjs/fork/{extractPathFromURL.js.map → extractPathFromURL.cjs.map} +0 -0
  291. /package/dist/cjs/fork/{findFocusedRoute.js.map → findFocusedRoute.cjs.map} +0 -0
  292. /package/dist/cjs/fork/{getPathFromState.js.map → getPathFromState.cjs.map} +0 -0
  293. /package/dist/cjs/fork/{getStateFromPath.js.map → getStateFromPath.cjs.map} +0 -0
  294. /package/dist/cjs/fork/{useLinking.js.map → useLinking.cjs.map} +0 -0
  295. /package/dist/cjs/fork/{validatePathConfig.js.map → validatePathConfig.cjs.map} +0 -0
  296. /package/dist/cjs/{getLinkingConfig.js.map → getLinkingConfig.cjs.map} +0 -0
  297. /package/dist/cjs/{getReactNavigationConfig.js.map → getReactNavigationConfig.cjs.map} +0 -0
  298. /package/dist/cjs/{getRoutes.js.map → getRoutes.cjs.map} +0 -0
  299. /package/dist/cjs/{getURL.js.map → getURL.cjs.map} +0 -0
  300. /package/dist/cjs/head/{Head.js.map → Head.cjs.map} +0 -0
  301. /package/dist/cjs/head/{HeadModule.js.map → HeadModule.cjs.map} +0 -0
  302. /package/dist/cjs/head/{index.js.map → index.cjs.map} +0 -0
  303. /package/dist/cjs/head/{types.js.map → types.cjs.map} +0 -0
  304. /package/dist/cjs/head/{url.js.map → url.cjs.map} +0 -0
  305. /package/dist/cjs/{hooks.js.map → hooks.cjs.map} +0 -0
  306. /package/dist/cjs/{imperative-api.js.map → imperative-api.cjs.map} +0 -0
  307. /package/dist/cjs/import-mode/{index.js.map → index.cjs.map} +0 -0
  308. /package/dist/cjs/import-mode/{index.web.js.map → index.web.cjs.map} +0 -0
  309. /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
  310. /package/dist/cjs/interfaces/{router.js.map → router.cjs.map} +0 -0
  311. /package/dist/cjs/layouts/{Drawer.js.map → Drawer.cjs.map} +0 -0
  312. /package/dist/cjs/layouts/{Stack.js.map → Stack.cjs.map} +0 -0
  313. /package/dist/cjs/layouts/{Tabs.js.map → Tabs.cjs.map} +0 -0
  314. /package/dist/cjs/layouts/{withLayoutContext.js.map → withLayoutContext.cjs.map} +0 -0
  315. /package/dist/cjs/link/{Link.js.map → Link.cjs.map} +0 -0
  316. /package/dist/cjs/link/{Redirect.js.map → Redirect.cjs.map} +0 -0
  317. /package/dist/cjs/link/{href.js.map → href.cjs.map} +0 -0
  318. /package/dist/cjs/link/{linking.js.map → linking.cjs.map} +0 -0
  319. /package/dist/cjs/link/{path.js.map → path.cjs.map} +0 -0
  320. /package/dist/cjs/link/{useLinkTo.js.map → useLinkTo.cjs.map} +0 -0
  321. /package/dist/cjs/link/{useLoadedNavigation.js.map → useLoadedNavigation.cjs.map} +0 -0
  322. /package/dist/cjs/{matchers.js.map → matchers.cjs.map} +0 -0
  323. /package/dist/cjs/{platform.js.map → platform.cjs.map} +0 -0
  324. /package/dist/cjs/{polyfills-mobile.js.map → polyfills-mobile.cjs.map} +0 -0
  325. /package/dist/cjs/{polyfills-server.js.map → polyfills-server.cjs.map} +0 -0
  326. /package/dist/cjs/{render.js.map → render.cjs.map} +0 -0
  327. /package/dist/cjs/router/{RouterStore.js.map → RouterStore.cjs.map} +0 -0
  328. /package/dist/cjs/router/{constants.js.map → constants.cjs.map} +0 -0
  329. /package/dist/cjs/router/{getNormalizedStatePath.js.map → getNormalizedStatePath.cjs.map} +0 -0
  330. /package/dist/cjs/router/{lastAction.js.map → lastAction.cjs.map} +0 -0
  331. /package/dist/cjs/router/{router.js.map → router.cjs.map} +0 -0
  332. /package/dist/cjs/router/{serverLocationContext.js.map → serverLocationContext.cjs.map} +0 -0
  333. /package/dist/cjs/router/{useInitializeOneRouter.js.map → useInitializeOneRouter.cjs.map} +0 -0
  334. /package/dist/cjs/{serve.js.map → serve.cjs.map} +0 -0
  335. /package/dist/cjs/server/{createRoutesManifest.js.map → createRoutesManifest.cjs.map} +0 -0
  336. /package/dist/cjs/server/{getServerManifest.js.map → getServerManifest.cjs.map} +0 -0
  337. /package/dist/cjs/{server-render.js.map → server-render.cjs.map} +0 -0
  338. /package/dist/cjs/{sortRoutes.js.map → sortRoutes.cjs.map} +0 -0
  339. /package/dist/cjs/typed-routes/{generateRouteTypes.js.map → generateRouteTypes.cjs.map} +0 -0
  340. /package/dist/cjs/typed-routes/{getTypedRoutesDeclarationFile.js.map → getTypedRoutesDeclarationFile.cjs.map} +0 -0
  341. /package/dist/cjs/{types.js.map → types.cjs.map} +0 -0
  342. /package/dist/cjs/{useFocusEffect.js.map → useFocusEffect.cjs.map} +0 -0
  343. /package/dist/cjs/{useLoader.js.map → useLoader.cjs.map} +0 -0
  344. /package/dist/cjs/{useNavigation.js.map → useNavigation.cjs.map} +0 -0
  345. /package/dist/cjs/{useScreens.js.map → useScreens.cjs.map} +0 -0
  346. /package/dist/cjs/{useViteRoutes.js.map → useViteRoutes.cjs.map} +0 -0
  347. /package/dist/cjs/utils/{assertIsReady.js.map → assertIsReady.cjs.map} +0 -0
  348. /package/dist/cjs/utils/{dynamicImport.js.map → dynamicImport.cjs.map} +0 -0
  349. /package/dist/cjs/utils/{existsAsync.js.map → existsAsync.cjs.map} +0 -0
  350. /package/dist/cjs/utils/{getPageExport.js.map → getPageExport.cjs.map} +0 -0
  351. /package/dist/cjs/utils/{globDir.js.map → globDir.cjs.map} +0 -0
  352. /package/dist/cjs/utils/{hashString.js.map → hashString.cjs.map} +0 -0
  353. /package/dist/cjs/utils/{isResponse.js.map → isResponse.cjs.map} +0 -0
  354. /package/dist/cjs/utils/{isStatus.js.map → isStatus.cjs.map} +0 -0
  355. /package/dist/cjs/utils/{promiseWithResolvers.js.map → promiseWithResolvers.cjs.map} +0 -0
  356. /package/dist/cjs/utils/{rand.js.map → rand.cjs.map} +0 -0
  357. /package/dist/cjs/utils/{redirect.js.map → redirect.cjs.map} +0 -0
  358. /package/dist/cjs/utils/{removeSearch.js.map → removeSearch.cjs.map} +0 -0
  359. /package/dist/cjs/utils/{removeUndefined.js.map → removeUndefined.cjs.map} +0 -0
  360. /package/dist/cjs/utils/{url.js.map → url.cjs.map} +0 -0
  361. /package/dist/cjs/utils/{weakKey.js.map → weakKey.cjs.map} +0 -0
  362. /package/dist/cjs/utils/{weakMemo.js.map → weakMemo.cjs.map} +0 -0
  363. /package/dist/cjs/views/{EmptyRoute.js.map → EmptyRoute.cjs.map} +0 -0
  364. /package/dist/cjs/views/{ErrorBoundary.js.map → ErrorBoundary.cjs.map} +0 -0
  365. /package/dist/cjs/views/{LoadProgressBar.js.map → LoadProgressBar.cjs.map} +0 -0
  366. /package/dist/cjs/views/{Navigator.js.map → Navigator.cjs.map} +0 -0
  367. /package/dist/cjs/views/{PreloadLinks.js.map → PreloadLinks.cjs.map} +0 -0
  368. /package/dist/cjs/views/{RootErrorBoundary.js.map → RootErrorBoundary.cjs.map} +0 -0
  369. /package/dist/cjs/views/{Screen.js.map → Screen.cjs.map} +0 -0
  370. /package/dist/cjs/views/{ScrollRestoration.js.map → ScrollRestoration.cjs.map} +0 -0
  371. /package/dist/cjs/views/{Try.js.map → Try.cjs.map} +0 -0
  372. /package/dist/cjs/vite/{build.js.map → build.cjs.map} +0 -0
  373. /package/dist/cjs/vite/{clientTreeShakePlugin.js.map → clientTreeShakePlugin.cjs.map} +0 -0
  374. /package/dist/cjs/vite/{constants.js.map → constants.cjs.map} +0 -0
  375. /package/dist/cjs/vite/{createFileSystemRouter.js.map → createFileSystemRouter.cjs.map} +0 -0
  376. /package/dist/cjs/vite/{customNodeExternals.js.map → customNodeExternals.cjs.map} +0 -0
  377. /package/dist/cjs/vite/{ensureTsConfig.js.map → ensureTsConfig.cjs.map} +0 -0
  378. /package/dist/cjs/vite/{findDepsToOptimize.js.map → findDepsToOptimize.cjs.map} +0 -0
  379. /package/dist/cjs/vite/{fixDependenciesPlugin.js.map → fixDependenciesPlugin.cjs.map} +0 -0
  380. /package/dist/cjs/vite/{generateTypesForRoutes.js.map → generateTypesForRoutes.cjs.map} +0 -0
  381. /package/dist/cjs/vite/{getManifest.js.map → getManifest.cjs.map} +0 -0
  382. /package/dist/cjs/vite/{headers.js.map → headers.cjs.map} +0 -0
  383. /package/dist/cjs/vite/{loadEnv.js.map → loadEnv.cjs.map} +0 -0
  384. /package/dist/cjs/vite/{makePluginWebOnly.js.map → makePluginWebOnly.cjs.map} +0 -0
  385. /package/dist/cjs/vite/{one.js.map → one.cjs.map} +0 -0
  386. /package/dist/cjs/vite/{removeReactNativeWebAnimatedPlugin.js.map → removeReactNativeWebAnimatedPlugin.cjs.map} +0 -0
  387. /package/dist/cjs/vite/{replaceLoader.js.map → replaceLoader.cjs.map} +0 -0
  388. /package/dist/cjs/vite/{resolveAPIRequest.js.map → resolveAPIRequest.cjs.map} +0 -0
  389. /package/dist/cjs/vite/{server.js.map → server.cjs.map} +0 -0
  390. /package/dist/cjs/vite/{types.js.map → types.cjs.map} +0 -0
  391. /package/dist/cjs/vite/{virtualEntryPlugin.js.map → virtualEntryPlugin.cjs.map} +0 -0
  392. /package/dist/cjs/vite/{vitePluginSsrCss.js.map → vitePluginSsrCss.cjs.map} +0 -0
  393. /package/dist/cjs/{vite.js.map → vite.cjs.map} +0 -0
  394. /package/dist/cjs/zero/{getQueryKey.js.map → getQueryKey.cjs.map} +0 -0
  395. /package/dist/cjs/zero/{isZeroQuery.js.map → isZeroQuery.cjs.map} +0 -0
  396. /package/dist/cjs/zero/{resolveQuery.js.map → resolveQuery.cjs.map} +0 -0
  397. /package/dist/cjs/zero/{subscribeToQuery.js.map → subscribeToQuery.cjs.map} +0 -0
  398. /package/dist/cjs/zero/{types.js.map → types.cjs.map} +0 -0
  399. /package/dist/cjs/zero/{useQuery.js.map → useQuery.cjs.map} +0 -0
  400. /package/dist/cjs/zero/{useQueryZero.js.map → useQueryZero.cjs.map} +0 -0
  401. /package/dist/cjs/{zero.js.map → zero.cjs.map} +0 -0
@@ -0,0 +1,213 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
32
+ var Root_exports = {};
33
+ __export(Root_exports, {
34
+ Root: () => Root
35
+ });
36
+ module.exports = __toCommonJS(Root_exports);
37
+ var import_react = require("react"),
38
+ import_useViteRoutes = require("./useViteRoutes.cjs"),
39
+ import_RootErrorBoundary = require("./views/RootErrorBoundary.cjs"),
40
+ import_native = require("@react-navigation/native"),
41
+ import_elements = require("@react-navigation/elements"),
42
+ import_universal_color_scheme = require("@vxrn/universal-color-scheme"),
43
+ import_NavigationContainer = __toESM(require("./fork/NavigationContainer.cjs"), 1),
44
+ import_serverLocationContext = require("./router/serverLocationContext.cjs"),
45
+ import_useInitializeOneRouter = require("./router/useInitializeOneRouter.cjs"),
46
+ import_PreloadLinks = require("./views/PreloadLinks.cjs"),
47
+ import_ScrollRestoration = require("./views/ScrollRestoration.cjs"),
48
+ import_rand = require("./utils/rand.cjs"),
49
+ import_getURL = require("./getURL.cjs"),
50
+ import_jsx_runtime =
51
+ // <StrictMode>
52
+ require("react/jsx-runtime");
53
+ typeof window < "u" && (window.__getReactRefreshIgnoredExports = () => ["feedCardQuery", "feedCardReplyQuery", "loader"]);
54
+ function Root(props) {
55
+ const contents = /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_RootErrorBoundary.RootErrorBoundary, {
56
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(Contents, {
57
+ ...props
58
+ }, "contents"), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_PreloadLinks.PreloadLinks, {}, "preload-links")]
59
+ });
60
+ if (props.isClient) {
61
+ if (globalThis.__vxrnHydrateMode__ === "spa") {
62
+ const [show, setShow] = (0, import_react.useState)(!1);
63
+ return (0, import_react.useEffect)(() => {
64
+ setShow(!0);
65
+ }, []), show ? contents : null;
66
+ }
67
+ return contents;
68
+ }
69
+ let {
70
+ loaderData
71
+ } = props;
72
+ return loaderData?.constructor?.name === "QueryImpl" && (loaderData = void 0), /* @__PURE__ */(0, import_jsx_runtime.jsxs)("html", {
73
+ lang: "en-US",
74
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsxs)("head", {
75
+ children: [process.env.NODE_ENV === "development" ? /* @__PURE__ */(0, import_jsx_runtime.jsx)(DevHead, {}) : null, /* @__PURE__ */(0, import_jsx_runtime.jsx)("script", {
76
+ dangerouslySetInnerHTML: {
77
+ __html: "globalThis['global'] = globalThis"
78
+ }
79
+ }), props.css?.map(file => /* @__PURE__ */(0, import_jsx_runtime.jsx)("link", {
80
+ rel: "stylesheet",
81
+ href: file
82
+ }, file))]
83
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("body", {
84
+ children: contents
85
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("script", {
86
+ async: !0,
87
+ href: "one-loader-data",
88
+ dangerouslySetInnerHTML: {
89
+ __html: `
90
+ globalThis['__vxrnPostRenderData__'] = { __vxrn__: 'post-render' };
91
+ globalThis['__vxrnLoaderData__'] = ${JSON.stringify(loaderData)};
92
+ globalThis['__vxrnLoaderProps__'] = ${JSON.stringify(props.loaderProps)};
93
+ globalThis['__vxrnHydrateMode__'] = ${JSON.stringify(props.mode)};
94
+ `
95
+ }
96
+ })]
97
+ });
98
+ }
99
+ const ssrCSSID = `/@id/__x00__virtual:ssr-css.css?t=${(0, import_rand.rand)()}`;
100
+ function DevHead() {
101
+ return /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
102
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)("link", {
103
+ rel: "preload",
104
+ href: ssrCSSID,
105
+ as: "style"
106
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("link", {
107
+ rel: "stylesheet",
108
+ href: ssrCSSID,
109
+ "data-ssr-css": !0
110
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("script", {
111
+ type: "module",
112
+ dangerouslySetInnerHTML: {
113
+ __html: `import { createHotContext } from "/@vite/client";
114
+ const hot = createHotContext("/__clear_ssr_css");
115
+ hot.on("vite:afterUpdate", () => {
116
+ document
117
+ .querySelectorAll("[data-ssr-css]")
118
+ .forEach(node => node.remove());
119
+ });`
120
+ }
121
+ }), /* @__PURE__ */(0, import_jsx_runtime.jsx)("script", {
122
+ type: "module",
123
+ dangerouslySetInnerHTML: {
124
+ __html: `import { injectIntoGlobalHook } from "/@react-refresh";
125
+ injectIntoGlobalHook(window);
126
+ window.$RefreshReg$ = () => {};
127
+ window.$RefreshSig$ = () => (type) => type;`
128
+ }
129
+ })]
130
+ });
131
+ }
132
+ function Contents({
133
+ routes,
134
+ path,
135
+ wrapper = import_react.Fragment,
136
+ routeOptions,
137
+ ...props
138
+ }) {
139
+ const context = (0, import_useViteRoutes.useViteRoutes)(routes, routeOptions, globalThis.__vxrnVersion),
140
+ location = typeof window < "u" && window.location ? new URL(path || window.location.href || "/", window.location.href) : new URL(path || "/", (0, import_getURL.getURL)());
141
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(ContextNavigator, {
142
+ ...props,
143
+ location,
144
+ context,
145
+ wrapper
146
+ });
147
+ }
148
+ function ContextNavigator({
149
+ wrapper: ParentWrapper = import_react.Fragment,
150
+ context,
151
+ location: initialLocation,
152
+ navigationContainerProps
153
+ }) {
154
+ const store = (0, import_useInitializeOneRouter.useInitializeOneRouter)(context, initialLocation),
155
+ [colorScheme] = (0, import_universal_color_scheme.useColorScheme)(),
156
+ wrapper = children => /* @__PURE__ */(0, import_jsx_runtime.jsxs)(ParentWrapper, {
157
+ children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_ScrollRestoration.ScrollRestoration, {}), /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_elements.SafeAreaProviderCompat, {
158
+ children
159
+ })]
160
+ }),
161
+ Component = store.rootComponent;
162
+ if (!Component) throw new Error("No root component found");
163
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_NavigationContainer.default, {
164
+ ref: store.navigationRef,
165
+ initialState: store.initialState,
166
+ linking: store.linking,
167
+ onUnhandledAction,
168
+ theme: colorScheme === "dark" ? import_native.DarkTheme : import_native.DefaultTheme,
169
+ documentTitle: {
170
+ enabled: !1
171
+ },
172
+ ...navigationContainerProps,
173
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_serverLocationContext.ServerLocationContext.Provider, {
174
+ value: initialLocation,
175
+ children: wrapper(/* @__PURE__ */(0, import_jsx_runtime.jsx)(Component, {}))
176
+ })
177
+ });
178
+ }
179
+ let onUnhandledAction;
180
+ process.env.NODE_ENV !== "production" ? onUnhandledAction = action => {
181
+ const payload = action.payload;
182
+ let message = `The action '${action.type}'${payload ? ` with payload ${JSON.stringify(action.payload)}` : ""} was not handled by any navigator.`;
183
+ switch (action.type) {
184
+ case "NAVIGATE":
185
+ case "PUSH":
186
+ case "REPLACE":
187
+ case "JUMP_TO":
188
+ payload?.name ? message += `
189
+
190
+ Do you have a route named '${payload.name}'?` : message += `
191
+
192
+ You need to pass the name of the screen to navigate to. This may be a bug.`;
193
+ break;
194
+ case "GO_BACK":
195
+ case "POP":
196
+ case "POP_TO_TOP":
197
+ message += `
198
+
199
+ Is there any screen to go back to?`;
200
+ break;
201
+ case "OPEN_DRAWER":
202
+ case "CLOSE_DRAWER":
203
+ case "TOGGLE_DRAWER":
204
+ message += `
205
+
206
+ Is your screen inside a Drawer navigator?`;
207
+ break;
208
+ }
209
+ if (message += `
210
+
211
+ This is a development-only warning and won't be shown in production.`, process.env.NODE_ENV === "test") throw new Error(message);
212
+ console.error(message);
213
+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AO;AAEzB,UAAQ,MAAM,OAAO;AACvB,IAEA,oBAAoB,MAAM;AAAC;",
5
+ "names": ["UpstreamNavigationContainer"]
6
+ }
@@ -26,7 +26,7 @@ __export(Root_exports, {
26
26
  Root: () => Root
27
27
  });
28
28
  module.exports = __toCommonJS(Root_exports);
29
- var import_jsx_runtime = require("react/jsx-runtime"), import_react = require("react"), import_useViteRoutes = require("./useViteRoutes"), import_RootErrorBoundary = require("./views/RootErrorBoundary"), import_native = require("@react-navigation/native"), import_elements = require("@react-navigation/elements"), import_universal_color_scheme = require("@vxrn/universal-color-scheme"), import_NavigationContainer = __toESM(require("./fork/NavigationContainer"), 1), import_serverLocationContext = require("./router/serverLocationContext"), import_useInitializeOneRouter = require("./router/useInitializeOneRouter"), import_PreloadLinks = require("./views/PreloadLinks"), import_ScrollRestoration = require("./views/ScrollRestoration"), import_rand = require("./utils/rand");
29
+ var import_jsx_runtime = require("react/jsx-runtime"), import_react = require("react"), import_useViteRoutes = require("./useViteRoutes"), import_RootErrorBoundary = require("./views/RootErrorBoundary"), import_native = require("@react-navigation/native"), import_elements = require("@react-navigation/elements"), import_universal_color_scheme = require("@vxrn/universal-color-scheme"), import_NavigationContainer = __toESM(require("./fork/NavigationContainer"), 1), import_serverLocationContext = require("./router/serverLocationContext"), import_useInitializeOneRouter = require("./router/useInitializeOneRouter"), import_PreloadLinks = require("./views/PreloadLinks"), import_ScrollRestoration = require("./views/ScrollRestoration"), import_rand = require("./utils/rand"), import_getURL = require("./getURL");
30
30
  typeof window < "u" && (window.__getReactRefreshIgnoredExports = function() {
31
31
  return [
32
32
  "feedCardQuery",
@@ -135,7 +135,7 @@ window.$RefreshSig$ = () => (type) => type;`
135
135
  });
136
136
  }
137
137
  function Contents(param) {
138
- var { routes, path, wrapper = import_react.Fragment, routeOptions, ...props } = param, context = (0, import_useViteRoutes.useViteRoutes)(routes, routeOptions, globalThis.__vxrnVersion), location = typeof window < "u" && window.location ? new URL(path || window.location.href || "/", window.location.href) : new URL(path || "/", "http://localhost");
138
+ var { routes, path, wrapper = import_react.Fragment, routeOptions, ...props } = param, context = (0, import_useViteRoutes.useViteRoutes)(routes, routeOptions, globalThis.__vxrnVersion), location = typeof window < "u" && window.location ? new URL(path || window.location.href || "/", window.location.href) : new URL(path || "/", (0, import_getURL.getURL)());
139
139
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ContextNavigator, {
140
140
  ...props,
141
141
  location,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/Root.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAsF,kBAEtF,uBAA8B,4BAC9B,2BAAkC,sCAElC,gBAKO,qCACP,kBAAuC,uCACvC,gCAA+B,yCAC/B,6BAAwC,mDACxC,+BAAsC,2CACtC,gCAAuC,4CACvC,sBAA6B,iCAC7B,2BAAkC,sCAElC,cAAqB;AAGjB,OAAOA,SAAW,QAEpBA,OAAOC,kCAAkC,WAAA;SAAM;IAAC;IAAiB;IAAsB;;;AA8BlF,SAASC,KAAKC,OAAgB;MA+B/BC,yBAeGD,YA3CDE;;IAEJ,uCAAAC,MAACC,4CAAAA;;;QAEC,uCAAAC,KAACC,UAAAA;UAAyB,GAAGN;WAAf,UAAA;QACd,uCAAAK,KAACE,kCAAAA,CAAAA,GAAiB,eAAA;;;;AAKtB,MAAIP,MAAMQ,UAAU;AAClB,QAAIC,WAAW,wBAA2B,OAAO;AAE/C,UAAM,CAACC,MAAMC,OAAAA,QAAWC,uBAAS,EAAA;AAGjCC,yCAAU,WAAA;AACRF,gBAAQ,EAAA;MACV,GAAG,CAAA,CAAE,GAEED,OAAOR,WAAW;IAC3B;AACA,WAAOA;EACT;AAEA,MAAI,EAAED,WAAU,IAAKD;AAGrB,UAAIC,cAAAA,SAAAA,0BAAAA,WAAYa,iBAAW,QAAvBb,4BAAAA,SAAAA,SAAAA,wBAAyBc,UAAS,gBACpCd,aAA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,MAAI;IACjB,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;AACH,MAAIuC,WAAAA,QAAAA,QAASpE,OACXqE,WAAW;;6BAAkCD,QAAQpE,IAAI,OAEzDqE,WAAW;;;AAGb;IACF,KAAK;IACL,KAAK;IACL,KAAK;AACHA,iBAAW;;;AACX;IACF,KAAK;IACL,KAAK;IACL,KAAK;AACHA,iBAAW;;;AACX;EACJ;AAIA,MAFAA,WAAW;;uEAEPhE,QAAQC,IAAIC,aAAa;AAC3B,UAAM,IAAI6C,MAAMiB,OAAAA;AAElBC,UAAQC,MAAMF,OAAAA;AAChB,IAEAX,oBAAoB,WAAA;AAAO;",
5
- "names": ["window", "__getReactRefreshIgnoredExports", "Root", "props", "loaderData", "contents", "_jsxs", "RootErrorBoundary", "_jsx", "Contents", "PreloadLinks", "isClient", "globalThis", "show", "setShow", "useState", "useEffect", "constructor", "name", "undefined", "html", "lang", "head", "process", "env", "NODE_ENV", "DevHead", "script", "dangerouslySetInnerHTML", "__html", "css", "map", "file", "link", "rel", "href", "body", "async", "JSON", "stringify", "loaderProps", "mode", "ssrCSSID", "rand", "_Fragment", "as", "data-ssr-css", "type", "routes", "path", "wrapper", "Fragment", "routeOptions", "context", "useViteRoutes", "location", "URL", "ContextNavigator", "ParentWrapper", "initialLocation", "navigationContainerProps", "store", "useInitializeOneRouter", "colorScheme", "useColorScheme", "children", "ScrollRestoration", "SafeAreaProviderCompat", "Component", "rootComponent", "Error", "UpstreamNavigationContainer", "ref", "navigationRef", "initialState", "linking", "onUnhandledAction", "theme", "DarkTheme", "DefaultTheme", "documentTitle", "enabled", "ServerLocationContext", "Provider", "value", "action", "payload", "message", "console", "error"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAAA,eAAsF,kBAEtF,uBAA8B,4BAC9B,2BAAkC,sCAElC,gBAKO,qCACP,kBAAuC,uCACvC,gCAA+B,yCAC/B,6BAAwC,mDACxC,+BAAsC,2CACtC,gCAAuC,4C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EC,uCAAAnD,KAAC2D,4CAAAA,CAAAA,CAAAA;;QAED,uCAAA3D,KAAC4D,wCAAAA;;;;;EASP,GAEMC,YAAYP,MAAMQ;AAExB,MAAI,CAACD;AACH,UAAM,IAAIE,MAAM,yBAAyB;AAG3C,SACE,uCAAA/D,KAACgE,2BAAAA,SAAAA;IACCC,KAAKX,MAAMY;IACXC,cAAcb,MAAMa;IACpBC,SAASd,MAAMc;IACfC;IACAC,OAAOd,gBAAgB,SAASe,0BAAYC;IAC5CC,eAAe;MACbC,SAAS;IACX;IACC,GAAGrB;cAEJ,uCAAArD,KAAC2E,mDAAsBC,UAAQ;MAACC,OAAOzB;gBACpCV,QAAQ,uCAAA1C,KAAC6D,WAAAA,CAAAA,CAAAA,CAAAA;;;AAIlB;AAEA,IAAIQ;AAEAtD,QAAQC,IAAIC,aAAa,eAC3BoD,oBAAoB,SAACS,QAAAA;AACnB,MAAMC,UAA2CD,OAAOC,SAEpDC,UAAU,eAAeF,OAAOvC,IAAI,IACtCwC,UAAU,iBAAiBjD,KAAKC,UAAU+C,OAAOC,OAAO,CAAA,KAAM,EAAA;AAGhE,UAAQD,OAAOvC,MAAI;IACjB,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;AACH,MAAIwC,WAAAA,QAAAA,QAASrE,OACXsE,WAAW;;6BAAkCD,QAAQrE,IAAI,OAEzDsE,WAAW;;;AAGb;IACF,KAAK;IACL,KAAK;IACL,KAAK;AACHA,iBAAW;;;AACX;IACF,KAAK;IACL,KAAK;IACL,KAAK;AACHA,iBAAW;;;AACX;EACJ;AAIA,MAFAA,WAAW;;uEAEPjE,QAAQC,IAAIC,aAAa;AAC3B,UAAM,IAAI8C,MAAMiB,OAAAA;AAElBC,UAAQC,MAAMF,OAAAA;AAChB,IAEAX,oBAAoB,WAAA;AAAO;",
5
+ "names": ["window", "__getReactRefreshIgnoredExports", "Root", "props", "loaderData", "contents", "_jsxs", "RootErrorBoundary", "_jsx", "Contents", "PreloadLinks", "isClient", "globalThis", "show", "setShow", "useState", "useEffect", "constructor", "name", "undefined", "html", "lang", "head", "process", "env", "NODE_ENV", "DevHead", "script", "dangerouslySetInnerHTML", "__html", "css", "map", "file", "link", "rel", "href", "body", "async", "JSON", "stringify", "loaderProps", "mode", "ssrCSSID", "rand", "_Fragment", "as", "data-ssr-css", "type", "routes", "path", "wrapper", "Fragment", "routeOptions", "context", "useViteRoutes", "location", "URL", "getURL", "ContextNavigator", "ParentWrapper", "initialLocation", "navigationContainerProps", "store", "useInitializeOneRouter", "colorScheme", "useColorScheme", "children", "ScrollRestoration", "SafeAreaProviderCompat", "Component", "rootComponent", "Error", "UpstreamNavigationContainer", "ref", "navigationRef", "initialState", "linking", "onUnhandledAction", "theme", "DarkTheme", "DefaultTheme", "documentTitle", "enabled", "ServerLocationContext", "Provider", "value", "action", "payload", "message", "console", "error"]
6
6
  }
@@ -2,24 +2,33 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  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
- };
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
15
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
21
  // If the importer is in node compatibility mode or this is not an ESM
17
22
  // file that has been converted to a CommonJS file using a Babel-
18
23
  // compatible transform (i.e. "__esModule" has not been set), then set
19
24
  // "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);
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
23
32
  var Route_exports = {};
24
33
  __export(Route_exports, {
25
34
  Route: () => Route,
@@ -27,7 +36,9 @@ __export(Route_exports, {
27
36
  useRouteNode: () => useRouteNode
28
37
  });
29
38
  module.exports = __toCommonJS(Route_exports);
30
- var import_react = __toESM(require("react"), 1), import_matchers = require("./matchers"), import_jsx_runtime = require("react/jsx-runtime");
39
+ var import_react = __toESM(require("react"), 1),
40
+ import_matchers = require("./matchers.cjs"),
41
+ import_jsx_runtime = require("react/jsx-runtime");
31
42
  const CurrentRouteContext = import_react.default.createContext(null);
32
43
  process.env.NODE_ENV !== "production" && (CurrentRouteContext.displayName = "RouteNode");
33
44
  function useRouteNode() {
@@ -35,11 +46,15 @@ function useRouteNode() {
35
46
  }
36
47
  function useContextKey() {
37
48
  const node = useRouteNode();
38
- if (node == null)
39
- throw new Error("No filename found. This is likely a bug in router.");
49
+ if (node == null) throw new Error("No filename found. This is likely a bug in router.");
40
50
  return (0, import_matchers.getContextKey)(node.contextKey);
41
51
  }
42
- function Route({ children, node }) {
43
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CurrentRouteContext.Provider, { value: node, children });
44
- }
45
- //# sourceMappingURL=Route.js.map
52
+ function Route({
53
+ children,
54
+ node
55
+ }) {
56
+ return /* @__PURE__ */(0, import_jsx_runtime.jsx)(CurrentRouteContext.Provider, {
57
+ value: node,
58
+ children
59
+ });
60
+ }
@@ -3,15 +3,21 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- 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);
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
15
21
  var cleanUrl_exports = {};
16
22
  __export(cleanUrl_exports, {
17
23
  getLoaderPath: () => getLoaderPath,
@@ -19,20 +25,24 @@ __export(cleanUrl_exports, {
19
25
  getPreloadPath: () => getPreloadPath
20
26
  });
21
27
  module.exports = __toCommonJS(cleanUrl_exports);
22
- var import_constants = require("./constants"), import_getURL = require("./getURL"), import_constants2 = require("./router/constants"), import_removeSearch = require("./utils/removeSearch");
28
+ var import_constants = require("./constants.cjs"),
29
+ import_getURL = require("./getURL.cjs"),
30
+ import_constants2 = require("./router/constants.cjs"),
31
+ import_removeSearch = require("./utils/removeSearch.cjs");
23
32
  function cleanUrl(path) {
24
33
  return (0, import_removeSearch.removeSearch)(path).replaceAll("/", "_").replace(/_$/, "");
25
34
  }
26
- const isClient = typeof window < "u", clientSideSearch = isClient ? `?cache=${import_constants2.CACHE_KEY}` : "", clientSideURL = isClient ? (0, import_getURL.getURL)() : "";
35
+ const isClient = typeof window < "u",
36
+ clientSideSearch = isClient ? `?cache=${import_constants2.CACHE_KEY}` : "",
37
+ clientSideURL = isClient ? (0, import_getURL.getURL)() : "";
27
38
  function getPreloadPath(currentPath) {
28
39
  return `${clientSideURL}/assets/${cleanUrl(currentPath.slice(1))}_preload.js${clientSideSearch}`;
29
40
  }
30
41
  function getLoaderPath(currentPath, includeUrl = import_constants.isNative) {
31
- const baseURL = includeUrl ? (0, import_getURL.getURL)() : "", devPath = process.env.NODE_ENV === "development" ? "/_one" : "", currentPathUrl = new URL(
32
- currentPath,
33
- "http://example.com"
34
- /* not important, just for `new URL()` to work */
35
- );
42
+ const baseURL = includeUrl ? (0, import_getURL.getURL)() : "",
43
+ devPath = process.env.NODE_ENV === "development" ? "/_one" : "",
44
+ currentPathUrl = new URL(currentPath, "http://example.com"
45
+ /* not important, just for `new URL()` to work */);
36
46
  return `${baseURL}${devPath}/assets/${cleanUrl(currentPathUrl.pathname.slice(1))}_vxrn_loader.js${getSearchParams(currentPathUrl.search)}`;
37
47
  }
38
48
  function getPathFromLoaderPath(loaderPath) {
@@ -40,5 +50,4 @@ function getPathFromLoaderPath(loaderPath) {
40
50
  }
41
51
  function getSearchParams(searchParams) {
42
52
  return searchParams ? `${searchParams}&${clientSideSearch.slice(1)}` : clientSideSearch;
43
- }
44
- //# sourceMappingURL=cleanUrl.js.map
53
+ }
@@ -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) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: !0
9
+ });
10
+ },
11
+ __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
13
+ get: () => from[key],
14
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
+ });
16
+ return to;
17
+ };
18
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
+ value: !0
20
+ }), mod);
21
+ var label_process_exports = {};
22
+ __export(label_process_exports, {
23
+ labelProcess: () => labelProcess
24
+ });
25
+ module.exports = __toCommonJS(label_process_exports);
26
+ var import_node_os = require("node:os");
27
+ function labelProcess(title) {
28
+ const home = (0, import_node_os.homedir)(),
29
+ cwd = process.cwd();
30
+ process.title = `Onejs:${title} > ${cwd.replace(home, "~")}`;
31
+ }
@@ -2,30 +2,41 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  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
- };
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
15
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
21
  // If the importer is in node compatibility mode or this is not an ESM
17
22
  // file that has been converted to a CommonJS file using a Babel-
18
23
  // compatible transform (i.e. "__esModule" has not been set), then set
19
24
  // "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);
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
23
32
  var main_exports = {};
24
33
  __export(main_exports, {
25
34
  cliMain: () => cliMain
26
35
  });
27
36
  module.exports = __toCommonJS(main_exports);
28
- var import_node_fs = require("node:fs"), import_node_module = require("node:module"), import_run = require("./run");
37
+ var import_node_fs = require("node:fs"),
38
+ import_node_module = require("node:module"),
39
+ import_run = require("./run.cjs");
29
40
  const import_meta = {};
30
41
  async function getLatestVersion(packageName) {
31
42
  const currentVersion = (0, import_node_module.createRequire)(import_meta.url)("one/package.json").version;
@@ -40,7 +51,8 @@ async function getLatestVersion(packageName) {
40
51
  }
41
52
  async function cliMain(args = {}) {
42
53
  getLatestVersion("one"), (0, import_node_fs.existsSync)("vite.config.ts") && (await (0, import_run.run)({}), process.exit(0));
43
- const { create } = await import("create-vxrn/create");
54
+ const {
55
+ create
56
+ } = await import("create-vxrn/create");
44
57
  await create(args);
45
- }
46
- //# sourceMappingURL=main.js.map
58
+ }
@@ -2,33 +2,43 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __getProtoOf = Object.getPrototypeOf,
6
+ __hasOwnProp = Object.prototype.hasOwnProperty;
6
7
  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
- };
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: !0
11
+ });
12
+ },
13
+ __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ return to;
19
+ };
15
20
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
21
  // If the importer is in node compatibility mode or this is not an ESM
17
22
  // file that has been converted to a CommonJS file using a Babel-
18
23
  // compatible transform (i.e. "__esModule" has not been set), then set
19
24
  // "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);
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
26
+ value: mod,
27
+ enumerable: !0
28
+ }) : target, mod)),
29
+ __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
30
+ value: !0
31
+ }), mod);
23
32
  var prebuild_exports = {};
24
33
  __export(prebuild_exports, {
25
34
  run: () => run
26
35
  });
27
36
  module.exports = __toCommonJS(prebuild_exports);
28
37
  async function run(args) {
29
- const { prebuild } = await import("vxrn");
38
+ const {
39
+ prebuild
40
+ } = await import("vxrn");
30
41
  await prebuild({
31
42
  root: process.cwd()
32
43
  });
33
- }
34
- //# sourceMappingURL=prebuild.js.map
44
+ }