one 1.1.298 → 1.1.300

Sign up to get free protection for your applications and to get access to all the features.
Files changed (343) hide show
  1. package/dist/cjs/cleanUrl.js +1 -1
  2. package/dist/cjs/cleanUrl.js.map +1 -1
  3. package/dist/cjs/cleanUrl.native.js +1 -1
  4. package/dist/cjs/cleanUrl.native.js.map +1 -1
  5. package/dist/cjs/cli/runAndroid.js +34 -0
  6. package/dist/cjs/cli/runAndroid.js.map +6 -0
  7. package/dist/cjs/cli/runAndroid.native.js +39 -0
  8. package/dist/cjs/cli/runAndroid.native.js.map +6 -0
  9. package/dist/cjs/cli/runIos.js +34 -0
  10. package/dist/cjs/cli/runIos.js.map +6 -0
  11. package/dist/cjs/cli/runIos.native.js +39 -0
  12. package/dist/cjs/cli/runIos.native.js.map +6 -0
  13. package/dist/cjs/cli.js +23 -1
  14. package/dist/cjs/cli.js.map +1 -1
  15. package/dist/cjs/cli.native.js +25 -1
  16. package/dist/cjs/cli.native.js.map +2 -2
  17. package/dist/cjs/createHandleRequest.js +2 -2
  18. package/dist/cjs/createHandleRequest.js.map +1 -1
  19. package/dist/cjs/createHandleRequest.native.js +2 -2
  20. package/dist/cjs/createHandleRequest.native.js.map +2 -2
  21. package/dist/cjs/vite/createFileSystemRouter.js +1 -1
  22. package/dist/cjs/vite/createFileSystemRouter.js.map +1 -1
  23. package/dist/cjs/vite/createFileSystemRouter.native.js +1 -1
  24. package/dist/cjs/vite/createFileSystemRouter.native.js.map +1 -1
  25. package/dist/cjs/vite/replaceLoader.js +7 -1
  26. package/dist/cjs/vite/replaceLoader.js.map +1 -1
  27. package/dist/cjs/vite/replaceLoader.native.js +7 -1
  28. package/dist/cjs/vite/replaceLoader.native.js.map +1 -1
  29. package/dist/esm/Root.native.js +110 -104
  30. package/dist/esm/Root.native.js.map +6 -1
  31. package/dist/esm/Route.native.js +12 -10
  32. package/dist/esm/Route.native.js.map +6 -1
  33. package/dist/esm/cleanUrl.js +1 -1
  34. package/dist/esm/cleanUrl.js.map +1 -1
  35. package/dist/esm/cleanUrl.mjs +1 -1
  36. package/dist/esm/cleanUrl.mjs.map +1 -1
  37. package/dist/esm/cleanUrl.native.js +13 -14
  38. package/dist/esm/cleanUrl.native.js.map +6 -1
  39. package/dist/esm/cli/label-process.native.js +5 -4
  40. package/dist/esm/cli/label-process.native.js.map +6 -1
  41. package/dist/esm/cli/main.native.js +8 -13
  42. package/dist/esm/cli/main.native.js.map +6 -1
  43. package/dist/esm/cli/prebuild.native.js +5 -5
  44. package/dist/esm/cli/prebuild.native.js.map +6 -1
  45. package/dist/esm/cli/run.native.js +21 -28
  46. package/dist/esm/cli/run.native.js.map +6 -1
  47. package/dist/esm/cli/runAndroid.js +10 -0
  48. package/dist/esm/cli/runAndroid.js.map +6 -0
  49. package/dist/esm/cli/runAndroid.mjs +10 -0
  50. package/dist/esm/cli/runAndroid.mjs.map +1 -0
  51. package/dist/esm/cli/runAndroid.native.js +10 -0
  52. package/dist/esm/cli/runAndroid.native.js.map +6 -0
  53. package/dist/esm/cli/runIos.js +10 -0
  54. package/dist/esm/cli/runIos.js.map +6 -0
  55. package/dist/esm/cli/runIos.mjs +10 -0
  56. package/dist/esm/cli/runIos.mjs.map +1 -0
  57. package/dist/esm/cli/runIos.native.js +10 -0
  58. package/dist/esm/cli/runIos.native.js.map +6 -0
  59. package/dist/esm/cli.js +23 -1
  60. package/dist/esm/cli.js.map +1 -1
  61. package/dist/esm/cli.mjs +33 -1
  62. package/dist/esm/cli.mjs.map +1 -1
  63. package/dist/esm/cli.native.js +143 -148
  64. package/dist/esm/cli.native.js.map +6 -1
  65. package/dist/esm/clientLoaderResolver.native.js +9 -6
  66. package/dist/esm/clientLoaderResolver.native.js.map +6 -1
  67. package/dist/esm/config.native.js +12 -11
  68. package/dist/esm/config.native.js.map +6 -1
  69. package/dist/esm/constants.native.js +7 -5
  70. package/dist/esm/constants.native.js.map +6 -1
  71. package/dist/esm/createApp.native.js +13 -9
  72. package/dist/esm/createApp.native.js.map +6 -1
  73. package/dist/esm/createHandleRequest.js +2 -2
  74. package/dist/esm/createHandleRequest.js.map +1 -1
  75. package/dist/esm/createHandleRequest.mjs +2 -2
  76. package/dist/esm/createHandleRequest.mjs.map +1 -1
  77. package/dist/esm/createHandleRequest.native.js +57 -66
  78. package/dist/esm/createHandleRequest.native.js.map +6 -1
  79. package/dist/esm/createRoute.native.js +16 -16
  80. package/dist/esm/createRoute.native.js.map +6 -1
  81. package/dist/esm/fallbackViews/Sitemap.native.js +6 -3
  82. package/dist/esm/fallbackViews/Sitemap.native.js.map +6 -1
  83. package/dist/esm/fallbackViews/Unmatched.native.js +5 -3
  84. package/dist/esm/fallbackViews/Unmatched.native.js.map +6 -1
  85. package/dist/esm/fork/NavigationContainer.native.js +24 -31
  86. package/dist/esm/fork/NavigationContainer.native.js.map +6 -1
  87. package/dist/esm/fork/createMemoryHistory.native.js +99 -115
  88. package/dist/esm/fork/createMemoryHistory.native.js.map +6 -1
  89. package/dist/esm/fork/extractPathFromURL.native.js +16 -15
  90. package/dist/esm/fork/extractPathFromURL.native.js.map +6 -1
  91. package/dist/esm/fork/findFocusedRoute.native.js +6 -5
  92. package/dist/esm/fork/findFocusedRoute.native.js.map +6 -1
  93. package/dist/esm/fork/getPathFromState.native.js +127 -140
  94. package/dist/esm/fork/getPathFromState.native.js.map +6 -1
  95. package/dist/esm/fork/getStateFromPath.native.js +292 -288
  96. package/dist/esm/fork/getStateFromPath.native.js.map +6 -1
  97. package/dist/esm/fork/useLinking.native.js +70 -61
  98. package/dist/esm/fork/useLinking.native.js.map +6 -1
  99. package/dist/esm/fork/validatePathConfig.native.js +15 -9
  100. package/dist/esm/fork/validatePathConfig.native.js.map +6 -1
  101. package/dist/esm/getLinkingConfig.native.js +11 -6
  102. package/dist/esm/getLinkingConfig.native.js.map +6 -1
  103. package/dist/esm/getReactNavigationConfig.native.js +28 -20
  104. package/dist/esm/getReactNavigationConfig.native.js.map +6 -1
  105. package/dist/esm/getRoutes.native.js +249 -229
  106. package/dist/esm/getRoutes.native.js.map +6 -1
  107. package/dist/esm/getURL.native.js +4 -4
  108. package/dist/esm/getURL.native.js.map +6 -1
  109. package/dist/esm/head/Head.android.js +5 -3
  110. package/dist/esm/head/Head.android.js.map +6 -1
  111. package/dist/esm/head/Head.ios.js +144 -132
  112. package/dist/esm/head/Head.ios.js.map +6 -1
  113. package/dist/esm/head/Head.native.js +7 -7
  114. package/dist/esm/head/Head.native.js.map +6 -1
  115. package/dist/esm/head/HeadModule.native.js +6 -6
  116. package/dist/esm/head/HeadModule.native.js.map +6 -1
  117. package/dist/esm/head/index.native.js +2 -2
  118. package/dist/esm/head/index.native.js.map +6 -1
  119. package/dist/esm/head/types.native.js +1 -2
  120. package/dist/esm/head/types.native.js.map +6 -1
  121. package/dist/esm/head/url.native.js +10 -8
  122. package/dist/esm/head/url.native.js.map +6 -1
  123. package/dist/esm/hooks.native.js +53 -34
  124. package/dist/esm/hooks.native.js.map +6 -1
  125. package/dist/esm/imperative-api.native.js +9 -6
  126. package/dist/esm/imperative-api.native.js.map +6 -1
  127. package/dist/esm/import-mode/index.android.js +4 -3
  128. package/dist/esm/import-mode/index.android.js.map +6 -1
  129. package/dist/esm/import-mode/index.ios.js +4 -3
  130. package/dist/esm/import-mode/index.ios.js.map +6 -1
  131. package/dist/esm/import-mode/index.native.js +3 -1
  132. package/dist/esm/import-mode/index.native.js.map +6 -1
  133. package/dist/esm/index.native.js +65 -27
  134. package/dist/esm/index.native.js.map +6 -1
  135. package/dist/esm/interfaces/router.native.js +4 -2
  136. package/dist/esm/interfaces/router.native.js.map +6 -1
  137. package/dist/esm/layouts/Drawer.native.js +7 -6
  138. package/dist/esm/layouts/Drawer.native.js.map +6 -1
  139. package/dist/esm/layouts/Stack.native.js +7 -6
  140. package/dist/esm/layouts/Stack.native.js.map +6 -1
  141. package/dist/esm/layouts/Tabs.native.js +42 -39
  142. package/dist/esm/layouts/Tabs.native.js.map +6 -1
  143. package/dist/esm/layouts/withLayoutContext.native.js +51 -48
  144. package/dist/esm/layouts/withLayoutContext.native.js.map +6 -1
  145. package/dist/esm/link/Link.native.js +62 -53
  146. package/dist/esm/link/Link.native.js.map +6 -1
  147. package/dist/esm/link/Redirect.native.js +8 -9
  148. package/dist/esm/link/Redirect.native.js.map +6 -1
  149. package/dist/esm/link/href.native.js +28 -27
  150. package/dist/esm/link/href.native.js.map +6 -1
  151. package/dist/esm/link/linking.native.js +51 -40
  152. package/dist/esm/link/linking.native.js.map +6 -1
  153. package/dist/esm/link/path.native.js +28 -19
  154. package/dist/esm/link/path.native.js.map +6 -1
  155. package/dist/esm/link/useLinkTo.native.js +22 -20
  156. package/dist/esm/link/useLinkTo.native.js.map +6 -1
  157. package/dist/esm/link/useLoadedNavigation.native.js +30 -23
  158. package/dist/esm/link/useLoadedNavigation.native.js.map +6 -1
  159. package/dist/esm/matchers.native.js +16 -3
  160. package/dist/esm/matchers.native.js.map +6 -1
  161. package/dist/esm/platform.native.js +4 -2
  162. package/dist/esm/platform.native.js.map +6 -1
  163. package/dist/esm/polyfills-mobile.native.js +4 -5
  164. package/dist/esm/polyfills-mobile.native.js.map +6 -1
  165. package/dist/esm/polyfills-server.native.js +1 -1
  166. package/dist/esm/polyfills-server.native.js.map +6 -1
  167. package/dist/esm/render.native.js +3 -1
  168. package/dist/esm/render.native.js.map +6 -1
  169. package/dist/esm/router/RouterStore.native.js +1 -2
  170. package/dist/esm/router/RouterStore.native.js.map +6 -1
  171. package/dist/esm/router/constants.native.js +4 -2
  172. package/dist/esm/router/constants.native.js.map +6 -1
  173. package/dist/esm/router/getNormalizedStatePath.native.js +18 -17
  174. package/dist/esm/router/getNormalizedStatePath.native.js.map +6 -1
  175. package/dist/esm/router/lastAction.native.js +10 -9
  176. package/dist/esm/router/lastAction.native.js.map +6 -1
  177. package/dist/esm/router/router.native.js +135 -114
  178. package/dist/esm/router/router.native.js.map +6 -1
  179. package/dist/esm/router/serverLocationContext.native.js +4 -2
  180. package/dist/esm/router/serverLocationContext.native.js.map +6 -1
  181. package/dist/esm/router/useInitializeOneRouter.native.js +8 -5
  182. package/dist/esm/router/useInitializeOneRouter.native.js.map +6 -1
  183. package/dist/esm/serve.native.js +77 -104
  184. package/dist/esm/serve.native.js.map +6 -1
  185. package/dist/esm/server/createRoutesManifest.native.js +14 -11
  186. package/dist/esm/server/createRoutesManifest.native.js.map +6 -1
  187. package/dist/esm/server/getServerManifest.native.js +61 -67
  188. package/dist/esm/server/getServerManifest.native.js.map +6 -1
  189. package/dist/esm/server-render.native.js +9 -10
  190. package/dist/esm/server-render.native.js.map +6 -1
  191. package/dist/esm/sortRoutes.native.js +27 -17
  192. package/dist/esm/sortRoutes.native.js.map +6 -1
  193. package/dist/esm/typed-routes/generateRouteTypes.native.js +10 -11
  194. package/dist/esm/typed-routes/generateRouteTypes.native.js.map +6 -1
  195. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js +38 -37
  196. package/dist/esm/typed-routes/getTypedRoutesDeclarationFile.native.js.map +6 -1
  197. package/dist/esm/types.native.js +1 -2
  198. package/dist/esm/types.native.js.map +6 -1
  199. package/dist/esm/useFocusEffect.native.js +25 -22
  200. package/dist/esm/useFocusEffect.native.js.map +6 -1
  201. package/dist/esm/useLoader.native.js +50 -50
  202. package/dist/esm/useLoader.native.js.map +6 -1
  203. package/dist/esm/useNavigation.native.js +23 -19
  204. package/dist/esm/useNavigation.native.js.map +6 -1
  205. package/dist/esm/useScreens.native.js +143 -160
  206. package/dist/esm/useScreens.native.js.map +6 -1
  207. package/dist/esm/useViteRoutes.native.js +25 -28
  208. package/dist/esm/useViteRoutes.native.js.map +6 -1
  209. package/dist/esm/utils/assertIsReady.native.js +6 -3
  210. package/dist/esm/utils/assertIsReady.native.js.map +6 -1
  211. package/dist/esm/utils/dynamicImport.native.js +5 -3
  212. package/dist/esm/utils/dynamicImport.native.js.map +6 -1
  213. package/dist/esm/utils/existsAsync.native.js +6 -4
  214. package/dist/esm/utils/existsAsync.native.js.map +6 -1
  215. package/dist/esm/utils/getPageExport.native.js +12 -11
  216. package/dist/esm/utils/getPageExport.native.js.map +6 -1
  217. package/dist/esm/utils/globDir.native.js +5 -3
  218. package/dist/esm/utils/globDir.native.js.map +6 -1
  219. package/dist/esm/utils/hashString.native.js +4 -2
  220. package/dist/esm/utils/hashString.native.js.map +6 -1
  221. package/dist/esm/utils/isResponse.native.js +4 -2
  222. package/dist/esm/utils/isResponse.native.js.map +6 -1
  223. package/dist/esm/utils/isStatus.native.js +4 -2
  224. package/dist/esm/utils/isStatus.native.js.map +6 -1
  225. package/dist/esm/utils/promiseWithResolvers.native.js +7 -7
  226. package/dist/esm/utils/promiseWithResolvers.native.js.map +6 -1
  227. package/dist/esm/utils/rand.native.js +5 -3
  228. package/dist/esm/utils/rand.native.js.map +6 -1
  229. package/dist/esm/utils/redirect.native.js +7 -5
  230. package/dist/esm/utils/redirect.native.js.map +6 -1
  231. package/dist/esm/utils/removeSearch.native.js +4 -2
  232. package/dist/esm/utils/removeSearch.native.js.map +6 -1
  233. package/dist/esm/utils/removeUndefined.native.js +6 -3
  234. package/dist/esm/utils/removeUndefined.native.js.map +6 -1
  235. package/dist/esm/utils/requireResolve.native.js +4 -2
  236. package/dist/esm/utils/requireResolve.native.js.map +6 -1
  237. package/dist/esm/utils/url.native.js +6 -2
  238. package/dist/esm/utils/url.native.js.map +6 -1
  239. package/dist/esm/utils/weakKey.native.js +11 -10
  240. package/dist/esm/utils/weakKey.native.js.map +6 -1
  241. package/dist/esm/utils/weakMemo.native.js +8 -8
  242. package/dist/esm/utils/weakMemo.native.js.map +6 -1
  243. package/dist/esm/views/EmptyRoute.native.js +5 -3
  244. package/dist/esm/views/EmptyRoute.native.js.map +6 -1
  245. package/dist/esm/views/ErrorBoundary.native.js +5 -8
  246. package/dist/esm/views/ErrorBoundary.native.js.map +6 -1
  247. package/dist/esm/views/LoadProgressBar.native.js +58 -57
  248. package/dist/esm/views/LoadProgressBar.native.js.map +6 -1
  249. package/dist/esm/views/Navigator.native.js +54 -71
  250. package/dist/esm/views/Navigator.native.js.map +6 -1
  251. package/dist/esm/views/PreloadLinks.native.js +3 -1
  252. package/dist/esm/views/PreloadLinks.native.js.map +6 -1
  253. package/dist/esm/views/RootErrorBoundary.native.js +39 -29
  254. package/dist/esm/views/RootErrorBoundary.native.js.map +6 -1
  255. package/dist/esm/views/Screen.native.js +12 -12
  256. package/dist/esm/views/Screen.native.js.map +6 -1
  257. package/dist/esm/views/ScrollRestoration.native.js +27 -27
  258. package/dist/esm/views/ScrollRestoration.native.js.map +6 -1
  259. package/dist/esm/views/Try.native.js +40 -37
  260. package/dist/esm/views/Try.native.js.map +6 -1
  261. package/dist/esm/vite/build.native.js +260 -295
  262. package/dist/esm/vite/build.native.js.map +6 -1
  263. package/dist/esm/vite/clientTreeShakePlugin.native.js +34 -33
  264. package/dist/esm/vite/clientTreeShakePlugin.native.js.map +6 -1
  265. package/dist/esm/vite/constants.native.js +6 -4
  266. package/dist/esm/vite/constants.native.js.map +6 -1
  267. package/dist/esm/vite/createFileSystemRouter.js +1 -1
  268. package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
  269. package/dist/esm/vite/createFileSystemRouter.mjs +1 -1
  270. package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
  271. package/dist/esm/vite/createFileSystemRouter.native.js +100 -131
  272. package/dist/esm/vite/createFileSystemRouter.native.js.map +6 -1
  273. package/dist/esm/vite/customNodeExternals.native.js +9 -10
  274. package/dist/esm/vite/customNodeExternals.native.js.map +6 -1
  275. package/dist/esm/vite/ensureTsConfig.native.js +7 -5
  276. package/dist/esm/vite/ensureTsConfig.native.js.map +6 -1
  277. package/dist/esm/vite/findDepsToOptimize.native.js +27 -19
  278. package/dist/esm/vite/findDepsToOptimize.native.js.map +6 -1
  279. package/dist/esm/vite/fixDependenciesPlugin.native.js +5 -3
  280. package/dist/esm/vite/fixDependenciesPlugin.native.js.map +6 -1
  281. package/dist/esm/vite/generateTypesForRoutes.native.js +9 -9
  282. package/dist/esm/vite/generateTypesForRoutes.native.js.map +6 -1
  283. package/dist/esm/vite/getManifest.native.js +6 -4
  284. package/dist/esm/vite/getManifest.native.js.map +6 -1
  285. package/dist/esm/vite/headers.native.js +11 -5
  286. package/dist/esm/vite/headers.native.js.map +6 -1
  287. package/dist/esm/vite/loadEnv.native.js +7 -6
  288. package/dist/esm/vite/loadEnv.native.js.map +6 -1
  289. package/dist/esm/vite/makePluginWebOnly.native.js +9 -5
  290. package/dist/esm/vite/makePluginWebOnly.native.js.map +6 -1
  291. package/dist/esm/vite/one.native.js +142 -127
  292. package/dist/esm/vite/one.native.js.map +6 -1
  293. package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js +14 -11
  294. package/dist/esm/vite/removeReactNativeWebAnimatedPlugin.native.js.map +6 -1
  295. package/dist/esm/vite/replaceLoader.js +7 -1
  296. package/dist/esm/vite/replaceLoader.js.map +1 -1
  297. package/dist/esm/vite/replaceLoader.mjs +5 -1
  298. package/dist/esm/vite/replaceLoader.mjs.map +1 -1
  299. package/dist/esm/vite/replaceLoader.native.js +13 -10
  300. package/dist/esm/vite/replaceLoader.native.js.map +6 -1
  301. package/dist/esm/vite/resolveAPIRequest.native.js +44 -47
  302. package/dist/esm/vite/resolveAPIRequest.native.js.map +6 -1
  303. package/dist/esm/vite/server.native.js +5 -4
  304. package/dist/esm/vite/server.native.js.map +6 -1
  305. package/dist/esm/vite/types.native.js +1 -2
  306. package/dist/esm/vite/types.native.js.map +6 -1
  307. package/dist/esm/vite/virtualEntryPlugin.native.js +21 -16
  308. package/dist/esm/vite/virtualEntryPlugin.native.js.map +6 -1
  309. package/dist/esm/vite/vitePluginSsrCss.native.js +61 -50
  310. package/dist/esm/vite/vitePluginSsrCss.native.js.map +6 -1
  311. package/dist/esm/vite.native.js +19 -10
  312. package/dist/esm/vite.native.js.map +6 -1
  313. package/dist/esm/zero/getQueryKey.native.js +5 -3
  314. package/dist/esm/zero/getQueryKey.native.js.map +6 -1
  315. package/dist/esm/zero/isZeroQuery.native.js +4 -2
  316. package/dist/esm/zero/isZeroQuery.native.js.map +6 -1
  317. package/dist/esm/zero/resolveQuery.native.js +9 -8
  318. package/dist/esm/zero/resolveQuery.native.js.map +6 -1
  319. package/dist/esm/zero/subscribeToQuery.native.js +5 -3
  320. package/dist/esm/zero/subscribeToQuery.native.js.map +6 -1
  321. package/dist/esm/zero/types.native.js +1 -2
  322. package/dist/esm/zero/types.native.js.map +6 -1
  323. package/dist/esm/zero/useQuery.native.js +12 -12
  324. package/dist/esm/zero/useQuery.native.js.map +6 -1
  325. package/dist/esm/zero/useQueryZero.native.js +24 -20
  326. package/dist/esm/zero/useQueryZero.native.js.map +6 -1
  327. package/dist/esm/zero.native.js +9 -5
  328. package/dist/esm/zero.native.js.map +6 -1
  329. package/package.json +7 -7
  330. package/src/cleanUrl.ts +1 -1
  331. package/src/cli/runAndroid.ts +6 -0
  332. package/src/cli/runIos.ts +6 -0
  333. package/src/cli.ts +27 -1
  334. package/src/createHandleRequest.ts +7 -0
  335. package/src/vite/createFileSystemRouter.tsx +1 -2
  336. package/src/vite/replaceLoader.ts +7 -1
  337. package/types/cli/runAndroid.d.ts +2 -0
  338. package/types/cli/runAndroid.d.ts.map +1 -0
  339. package/types/cli/runIos.d.ts +2 -0
  340. package/types/cli/runIos.d.ts.map +1 -0
  341. package/types/createHandleRequest.d.ts.map +1 -1
  342. package/types/vite/createFileSystemRouter.d.ts.map +1 -1
  343. package/types/vite/replaceLoader.d.ts.map +1 -1
@@ -3,41 +3,29 @@ import * as Linking from "expo-linking";
3
3
  import { nanoid } from "nanoid/non-secure";
4
4
  import { Fragment, startTransition, useSyncExternalStore } from "react";
5
5
  import { Platform } from "react-native";
6
- import { getLoaderPath, getPreloadPath } from "../cleanUrl.native.js";
7
- import { deepEqual, getPathDataFromState } from "../fork/getPathFromState.native.js";
8
- import { stripBaseUrl } from "../fork/getStateFromPath.native.js";
9
- import { getLinkingConfig } from "../getLinkingConfig.native.js";
10
- import { getRoutes } from "../getRoutes.native.js";
11
- import { resolveHref } from "../link/href.native.js";
12
- import { resolve } from "../link/path.native.js";
13
- import { matchDynamicName } from "../matchers.native.js";
14
- import { sortRoutes } from "../sortRoutes.native.js";
15
- import { getQualifiedRouteComponent } from "../useScreens.native.js";
16
- import { assertIsReady } from "../utils/assertIsReady.native.js";
17
- import { dynamicImport } from "../utils/dynamicImport.native.js";
18
- import { removeSearch } from "../utils/removeSearch.native.js";
19
- import { shouldLinkExternally } from "../utils/url.native.js";
20
- import { getNormalizedStatePath } from "./getNormalizedStatePath.native.js";
21
- import { setLastAction } from "./lastAction.native.js";
22
- var routeNode = null,
23
- rootComponent,
24
- linking,
25
- hasAttemptedToHideSplash = !1,
26
- initialState,
27
- rootState,
28
- nextState,
29
- routeInfo,
30
- splashScreenAnimationFrame,
31
- navigationRef = null,
32
- navigationRefSubscription,
33
- rootStateSubscribers = /* @__PURE__ */new Set(),
34
- loadingStateSubscribers = /* @__PURE__ */new Set(),
35
- storeSubscribers = /* @__PURE__ */new Set();
6
+ import { getLoaderPath, getPreloadPath } from "../cleanUrl";
7
+ import { deepEqual, getPathDataFromState } from "../fork/getPathFromState";
8
+ import { stripBaseUrl } from "../fork/getStateFromPath";
9
+ import { getLinkingConfig } from "../getLinkingConfig";
10
+ import { getRoutes } from "../getRoutes";
11
+ import { resolveHref } from "../link/href";
12
+ import { resolve } from "../link/path";
13
+ import { matchDynamicName } from "../matchers";
14
+ import { sortRoutes } from "../sortRoutes";
15
+ import { getQualifiedRouteComponent } from "../useScreens";
16
+ import { assertIsReady } from "../utils/assertIsReady";
17
+ import { dynamicImport } from "../utils/dynamicImport";
18
+ import { removeSearch } from "../utils/removeSearch";
19
+ import { shouldLinkExternally } from "../utils/url";
20
+ import { getNormalizedStatePath } from "./getNormalizedStatePath";
21
+ import { setLastAction } from "./lastAction";
22
+ var routeNode = null, rootComponent, linking, hasAttemptedToHideSplash = !1, initialState, rootState, nextState, routeInfo, splashScreenAnimationFrame, navigationRef = null, navigationRefSubscription, rootStateSubscribers = /* @__PURE__ */ new Set(), loadingStateSubscribers = /* @__PURE__ */ new Set(), storeSubscribers = /* @__PURE__ */ new Set();
36
23
  function initialize(context, ref, initialLocation) {
37
24
  if (cleanUpState(), routeNode = getRoutes(context, {
38
25
  ignoreEntryPoints: !0,
39
26
  platform: Platform.OS
40
- }), rootComponent = routeNode ? getQualifiedRouteComponent(routeNode) : Fragment, !routeNode && process.env.NODE_ENV === "production") throw new Error("No routes found");
27
+ }), rootComponent = routeNode ? getQualifiedRouteComponent(routeNode) : Fragment, !routeNode && process.env.NODE_ENV === "production")
28
+ throw new Error("No routes found");
41
29
  navigationRef = ref, setupLinking(initialLocation), subscribeToNavigationChanges();
42
30
  }
43
31
  function cleanUpState() {
@@ -46,7 +34,7 @@ function cleanUpState() {
46
34
  function setupLinking(initialLocation) {
47
35
  if (routeNode && (linking = getLinkingConfig(routeNode), initialLocation)) {
48
36
  var _linking_getStateFromPath;
49
- linking.getInitialURL = function () {
37
+ linking.getInitialURL = function() {
50
38
  return initialLocation.toString();
51
39
  }, initialState = (_linking_getStateFromPath = linking.getStateFromPath) === null || _linking_getStateFromPath === void 0 ? void 0 : _linking_getStateFromPath.call(linking, initialLocation.pathname + (initialLocation.search || ""), linking.config);
52
40
  }
@@ -59,14 +47,13 @@ function setupLinking(initialLocation) {
59
47
  };
60
48
  }
61
49
  function subscribeToNavigationChanges() {
62
- navigationRefSubscription = navigationRef.addListener("state", function (data) {
50
+ navigationRefSubscription = navigationRef.addListener("state", function(data) {
63
51
  var state = data.data.state;
64
- hasAttemptedToHideSplash || (hasAttemptedToHideSplash = !0, splashScreenAnimationFrame = requestAnimationFrame(function () {})), nextOptions && (state.linkOptions = nextOptions, nextOptions = null);
52
+ hasAttemptedToHideSplash || (hasAttemptedToHideSplash = !0, splashScreenAnimationFrame = requestAnimationFrame(function() {
53
+ })), nextOptions && (state.linkOptions = nextOptions, nextOptions = null);
65
54
  var shouldUpdateSubscribers = nextState === state;
66
55
  if (nextState = void 0, state && state !== rootState && (updateState(state, void 0), shouldUpdateSubscribers = !0), shouldUpdateSubscribers) {
67
- var _iteratorNormalCompletion2 = !0,
68
- _didIteratorError2 = !1,
69
- _iteratorError2 = void 0;
56
+ var _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
70
57
  try {
71
58
  for (var _iterator2 = rootStateSubscribers[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0) {
72
59
  var subscriber2 = _step2.value;
@@ -78,14 +65,13 @@ function subscribeToNavigationChanges() {
78
65
  try {
79
66
  !_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
80
67
  } finally {
81
- if (_didIteratorError2) throw _iteratorError2;
68
+ if (_didIteratorError2)
69
+ throw _iteratorError2;
82
70
  }
83
71
  }
84
72
  }
85
73
  }), updateSnapshot();
86
- var _iteratorNormalCompletion = !0,
87
- _didIteratorError = !1,
88
- _iteratorError = void 0;
74
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
89
75
  try {
90
76
  for (var _iterator = storeSubscribers[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
91
77
  var subscriber = _step.value;
@@ -97,7 +83,8 @@ function subscribeToNavigationChanges() {
97
83
  try {
98
84
  !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
99
85
  } finally {
100
- if (_didIteratorError) throw _iteratorError;
86
+ if (_didIteratorError)
87
+ throw _iteratorError;
101
88
  }
102
89
  }
103
90
  }
@@ -114,11 +101,11 @@ function replace(url, options) {
114
101
  return linkTo(resolveHref(url), "REPLACE", options);
115
102
  }
116
103
  function setParams() {
117
- var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
118
- _navigationRef_current;
104
+ var params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, _navigationRef_current;
119
105
  return assertIsReady(navigationRef), navigationRef == null || (_navigationRef_current = navigationRef.current) === null || _navigationRef_current === void 0 ? void 0 : _navigationRef_current.setParams(
120
- // @ts-expect-error
121
- params);
106
+ // @ts-expect-error
107
+ params
108
+ );
122
109
  }
123
110
  function dismissAll() {
124
111
  navigationRef?.dispatch(StackActions.popToTop());
@@ -129,22 +116,26 @@ function goBack() {
129
116
  }
130
117
  function canGoBack() {
131
118
  var _navigationRef_current;
132
- if (!navigationRef.isReady()) return !1;
119
+ if (!navigationRef.isReady())
120
+ return !1;
133
121
  var _navigationRef_current_canGoBack;
134
122
  return (_navigationRef_current_canGoBack = navigationRef == null || (_navigationRef_current = navigationRef.current) === null || _navigationRef_current === void 0 ? void 0 : _navigationRef_current.canGoBack()) !== null && _navigationRef_current_canGoBack !== void 0 ? _navigationRef_current_canGoBack : !1;
135
123
  }
136
124
  function canDismiss() {
137
- for (var state = rootState; state;) {
125
+ for (var state = rootState; state; ) {
138
126
  var _state_routes_state_index, _state_routes;
139
- if (state.type === "stack" && state.routes.length > 1) return !0;
140
- if (state.index === void 0) return !1;
127
+ if (state.type === "stack" && state.routes.length > 1)
128
+ return !0;
129
+ if (state.index === void 0)
130
+ return !1;
141
131
  state = (_state_routes = state.routes) === null || _state_routes === void 0 || (_state_routes_state_index = _state_routes[state.index]) === null || _state_routes_state_index === void 0 ? void 0 : _state_routes_state_index.state;
142
132
  }
143
133
  return !1;
144
134
  }
145
135
  function getSortedRoutes() {
146
- if (!routeNode) throw new Error("No routes");
147
- return routeNode.children.filter(function (route) {
136
+ if (!routeNode)
137
+ throw new Error("No routes");
138
+ return routeNode.children.filter(function(route) {
148
139
  return !route.internal;
149
140
  }).sort(sortRoutes);
150
141
  }
@@ -155,7 +146,7 @@ function updateState(state) {
155
146
  deepEqual(routeInfo, nextRouteInfo) || (routeInfo = nextRouteInfo);
156
147
  }
157
148
  function getRouteInfo(state) {
158
- return getRouteInfoFromState(function (state2, asPath) {
149
+ return getRouteInfoFromState(function(state2, asPath) {
159
150
  return getPathDataFromState(state2, {
160
151
  screens: [],
161
152
  ...linking?.config,
@@ -165,10 +156,7 @@ function getRouteInfo(state) {
165
156
  }, state);
166
157
  }
167
158
  function getRouteInfoFromState(getPathFromState, state, baseUrl) {
168
- var {
169
- path
170
- } = getPathFromState(state, !1),
171
- qualified = getPathFromState(state, !0);
159
+ var { path } = getPathFromState(state, !1), qualified = getPathFromState(state, !0);
172
160
  return {
173
161
  unstable_globalHref: path,
174
162
  pathname: stripBaseUrl(path, baseUrl).split("?")[0],
@@ -177,24 +165,22 @@ function getRouteInfoFromState(getPathFromState, state, baseUrl) {
177
165
  };
178
166
  }
179
167
  function subscribeToRootState(subscriber) {
180
- return rootStateSubscribers.add(subscriber), function () {
168
+ return rootStateSubscribers.add(subscriber), function() {
181
169
  rootStateSubscribers.delete(subscriber);
182
170
  };
183
171
  }
184
172
  function subscribeToStore(subscriber) {
185
- return storeSubscribers.add(subscriber), function () {
173
+ return storeSubscribers.add(subscriber), function() {
186
174
  storeSubscribers.delete(subscriber);
187
175
  };
188
176
  }
189
177
  function subscribeToLoadingState(subscriber) {
190
- return loadingStateSubscribers.add(subscriber), function () {
178
+ return loadingStateSubscribers.add(subscriber), function() {
191
179
  loadingStateSubscribers.delete(subscriber);
192
180
  };
193
181
  }
194
182
  function setLoadingState(state) {
195
- var _iteratorNormalCompletion = !0,
196
- _didIteratorError = !1,
197
- _iteratorError = void 0;
183
+ var _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
198
184
  try {
199
185
  for (var _iterator = loadingStateSubscribers[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
200
186
  var listener = _step.value;
@@ -206,7 +192,8 @@ function setLoadingState(state) {
206
192
  try {
207
193
  !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
208
194
  } finally {
209
- if (_didIteratorError) throw _iteratorError;
195
+ if (_didIteratorError)
196
+ throw _iteratorError;
210
197
  }
211
198
  }
212
199
  }
@@ -245,7 +232,8 @@ function useOneRouter() {
245
232
  return useSyncExternalStore(subscribeToStore, snapshot, snapshot);
246
233
  }
247
234
  function syncStoreRootState() {
248
- if (!navigationRef) throw new Error("No navigationRef, possible duplicate One dep");
235
+ if (!navigationRef)
236
+ throw new Error("No navigationRef, possible duplicate One dep");
249
237
  if (navigationRef.isReady()) {
250
238
  var currentState = navigationRef.getRootState();
251
239
  rootState !== currentState && updateState(currentState);
@@ -258,13 +246,12 @@ function useStoreRouteInfo() {
258
246
  return syncStoreRootState(), useSyncExternalStore(subscribeToRootState, routeInfoSnapshot, routeInfoSnapshot);
259
247
  }
260
248
  function isIndexPath(state) {
261
- var _state_index,
262
- route = getActualLastRoute(state.routes[(_state_index = state.index) !== null && _state_index !== void 0 ? _state_index : state.routes.length - 1]);
249
+ var _state_index, route = getActualLastRoute(state.routes[(_state_index = state.index) !== null && _state_index !== void 0 ? _state_index : state.routes.length - 1]);
263
250
  return route.state ? isIndexPath(route.state) : route.name === "index" ? !0 : route.params && "screen" in route.params ? route.params.screen === "index" : !!route.name.match(/.+\/index$/);
264
251
  }
265
252
  function getActualLastRoute(routeLike) {
266
253
  var _routeLike_state;
267
- if (routeLike.name[0] === "(" && !((_routeLike_state = routeLike.state) === null || _routeLike_state === void 0) && _routeLike_state.routes) {
254
+ if (routeLike.name[0] === "(" && (!((_routeLike_state = routeLike.state) === null || _routeLike_state === void 0) && _routeLike_state.routes)) {
268
255
  var routes = routeLike.state.routes;
269
256
  return getActualLastRoute(routes[routes.length - 1]);
270
257
  }
@@ -275,18 +262,21 @@ function cleanup() {
275
262
  }
276
263
  var preloadingLoader = {};
277
264
  function setupPreload(href) {
278
- preloadingLoader[href] || (preloadingLoader[href] = async function () {
279
- var [_preload, loader] = await Promise.all([dynamicImport(getPreloadPath(href)), dynamicImport(getLoaderPath(href))]);
265
+ preloadingLoader[href] || (preloadingLoader[href] = async function() {
266
+ var [_preload, loader] = await Promise.all([
267
+ dynamicImport(getPreloadPath(href)),
268
+ dynamicImport(getLoaderPath(href))
269
+ ]);
280
270
  try {
281
- var _response_loader,
282
- response = await loader;
271
+ var _response_loader, response = await loader;
283
272
  return await ((_response_loader = response.loader) === null || _response_loader === void 0 ? void 0 : _response_loader.call(response));
284
273
  } catch (err) {
285
274
  return console.error(`Error preloading loader: ${err}`), null;
286
275
  }
287
276
  });
288
277
  }
289
- function preloadRoute(href) {}
278
+ function preloadRoute(href) {
279
+ }
290
280
  async function linkTo(href, event, options) {
291
281
  if (href[0] !== "#") {
292
282
  if (shouldLinkExternally(href)) {
@@ -295,28 +285,29 @@ async function linkTo(href, event, options) {
295
285
  }
296
286
  assertIsReady(navigationRef);
297
287
  var current = navigationRef.current;
298
- if (current == null) throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");
299
- if (!linking) throw new Error("Attempted to link to route when no routes are present");
288
+ if (current == null)
289
+ throw new Error("Couldn't find a navigation object. Is your component inside NavigationContainer?");
290
+ if (!linking)
291
+ throw new Error("Attempted to link to route when no routes are present");
300
292
  if (setLastAction(), href === ".." || href === "../") {
301
293
  current.goBack();
302
294
  return;
303
295
  }
304
296
  if (href.startsWith(".")) {
305
- var _routeInfo_segments,
306
- _routeInfo_segments_map_filter_join,
307
- base = (_routeInfo_segments_map_filter_join = routeInfo == null || (_routeInfo_segments = routeInfo.segments) === null || _routeInfo_segments === void 0 ? void 0 : _routeInfo_segments.map(function (segment) {
308
- var _routeInfo_params;
309
- if (!segment.startsWith("[")) return segment;
310
- if (segment.startsWith("[...")) {
311
- var _routeInfo_params1, _params_split;
312
- segment = segment.slice(4, -1);
313
- var params = routeInfo == null || (_routeInfo_params1 = routeInfo.params) === null || _routeInfo_params1 === void 0 ? void 0 : _routeInfo_params1[segment];
314
- if (Array.isArray(params)) return params.join("/");
315
- var _params_split_join;
316
- return (_params_split_join = params == null || (_params_split = params.split(",")) === null || _params_split === void 0 ? void 0 : _params_split.join("/")) !== null && _params_split_join !== void 0 ? _params_split_join : "";
317
- }
318
- return segment = segment.slice(1, -1), routeInfo == null || (_routeInfo_params = routeInfo.params) === null || _routeInfo_params === void 0 ? void 0 : _routeInfo_params[segment];
319
- }).filter(Boolean).join("/")) !== null && _routeInfo_segments_map_filter_join !== void 0 ? _routeInfo_segments_map_filter_join : "/";
297
+ var _routeInfo_segments, _routeInfo_segments_map_filter_join, base = (_routeInfo_segments_map_filter_join = routeInfo == null || (_routeInfo_segments = routeInfo.segments) === null || _routeInfo_segments === void 0 ? void 0 : _routeInfo_segments.map(function(segment) {
298
+ var _routeInfo_params;
299
+ if (!segment.startsWith("[")) return segment;
300
+ if (segment.startsWith("[...")) {
301
+ var _routeInfo_params1, _params_split;
302
+ segment = segment.slice(4, -1);
303
+ var params = routeInfo == null || (_routeInfo_params1 = routeInfo.params) === null || _routeInfo_params1 === void 0 ? void 0 : _routeInfo_params1[segment];
304
+ if (Array.isArray(params))
305
+ return params.join("/");
306
+ var _params_split_join;
307
+ return (_params_split_join = params == null || (_params_split = params.split(",")) === null || _params_split === void 0 ? void 0 : _params_split.join("/")) !== null && _params_split_join !== void 0 ? _params_split_join : "";
308
+ }
309
+ return segment = segment.slice(1, -1), routeInfo == null || (_routeInfo_params = routeInfo.params) === null || _routeInfo_params === void 0 ? void 0 : _routeInfo_params[segment];
310
+ }).filter(Boolean).join("/")) !== null && _routeInfo_segments_map_filter_join !== void 0 ? _routeInfo_segments_map_filter_join : "/";
320
311
  routeInfo?.isIndex || (base += "/.."), href = resolve(base, href);
321
312
  }
322
313
  var state = linking.getStateFromPath(href, linking.config);
@@ -325,19 +316,17 @@ async function linkTo(href, event, options) {
325
316
  return;
326
317
  }
327
318
  setLoadingState("loading"), globalThis.__vxrntodopath = removeSearch(href);
328
- var rootState2 = navigationRef.getRootState(),
329
- action = getNavigateAction(state, rootState2, event);
330
- nextOptions = options ?? null, startTransition(function () {
319
+ var rootState2 = navigationRef.getRootState(), action = getNavigateAction(state, rootState2, event);
320
+ nextOptions = options ?? null, startTransition(function() {
331
321
  var current2 = navigationRef.getCurrentRoute();
332
322
  navigationRef.dispatch(action);
333
- var warningTm,
334
- interval = setInterval(function () {
335
- var next = navigationRef.getCurrentRoute();
336
- current2 !== next && setTimeout(function () {
337
- setLoadingState("loaded");
338
- }), clearTimeout(warningTm), clearTimeout(interval);
339
- }, 16);
340
- process.env.NODE_ENV === "development" && (warningTm = setTimeout(function () {
323
+ var warningTm, interval = setInterval(function() {
324
+ var next = navigationRef.getCurrentRoute();
325
+ current2 !== next && setTimeout(function() {
326
+ setLoadingState("loaded");
327
+ }), clearTimeout(warningTm), clearTimeout(interval);
328
+ }, 16);
329
+ process.env.NODE_ENV === "development" && (warningTm = setTimeout(function() {
341
330
  console.warn("Routing took more than 8 seconds");
342
331
  }, 1e3));
343
332
  });
@@ -345,21 +334,17 @@ async function linkTo(href, event, options) {
345
334
  }
346
335
  var nextOptions = null;
347
336
  function getNavigateAction(actionState, navigationState) {
348
- for (var type = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "NAVIGATE", actionStateRoute; actionState && navigationState;) {
349
- var _actionStateRoute_params,
350
- _stateRoute_params,
351
- stateRoute = navigationState.routes[navigationState.index];
337
+ for (var type = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "NAVIGATE", actionStateRoute; actionState && navigationState; ) {
338
+ var _actionStateRoute_params, _stateRoute_params, stateRoute = navigationState.routes[navigationState.index];
352
339
  actionStateRoute = actionState.routes[actionState.routes.length - 1];
353
- var childState = actionStateRoute.state,
354
- nextNavigationState = stateRoute.state,
355
- dynamicName = matchDynamicName(actionStateRoute.name),
356
- didActionAndCurrentStateDiverge = actionStateRoute.name !== stateRoute.name || !childState || !nextNavigationState || dynamicName && ((_actionStateRoute_params = actionStateRoute.params) === null || _actionStateRoute_params === void 0 ? void 0 : _actionStateRoute_params[dynamicName]) !== ((_stateRoute_params = stateRoute.params) === null || _stateRoute_params === void 0 ? void 0 : _stateRoute_params[dynamicName]);
357
- if (didActionAndCurrentStateDiverge) break;
340
+ var childState = actionStateRoute.state, nextNavigationState = stateRoute.state, dynamicName = matchDynamicName(actionStateRoute.name), didActionAndCurrentStateDiverge = actionStateRoute.name !== stateRoute.name || !childState || !nextNavigationState || dynamicName && ((_actionStateRoute_params = actionStateRoute.params) === null || _actionStateRoute_params === void 0 ? void 0 : _actionStateRoute_params[dynamicName]) !== ((_stateRoute_params = stateRoute.params) === null || _stateRoute_params === void 0 ? void 0 : _stateRoute_params[dynamicName]);
341
+ if (didActionAndCurrentStateDiverge)
342
+ break;
358
343
  actionState = childState, navigationState = nextNavigationState;
359
344
  }
360
345
  for (var rootPayload = {
361
- params: {}
362
- }, payload = rootPayload, params = payload.params; actionStateRoute;) {
346
+ params: {}
347
+ }, payload = rootPayload, params = payload.params; actionStateRoute; ) {
363
348
  var _actionStateRoute_state, _actionStateRoute_state1, _payload;
364
349
  Object.assign(params, {
365
350
  ...actionStateRoute.params
@@ -379,5 +364,41 @@ function getNavigateAction(actionState, navigationState) {
379
364
  }
380
365
  };
381
366
  }
382
- export { canDismiss, canGoBack, cleanup, dismiss, dismissAll, getRouteInfo, getSortedRoutes, goBack, hasAttemptedToHideSplash, initialState, initialize, linkTo, linking, navigate, navigationRef, preloadRoute, preloadingLoader, push, replace, rootComponent, rootState, rootStateSnapshot, routeInfo, routeInfoSnapshot, routeNode, setLoadingState, setParams, snapshot, subscribeToLoadingState, subscribeToRootState, subscribeToStore, updateState, useOneRouter, useStoreRootState, useStoreRouteInfo };
383
- //# sourceMappingURL=router.native.js.map
367
+ export {
368
+ canDismiss,
369
+ canGoBack,
370
+ cleanup,
371
+ dismiss,
372
+ dismissAll,
373
+ getRouteInfo,
374
+ getSortedRoutes,
375
+ goBack,
376
+ hasAttemptedToHideSplash,
377
+ initialState,
378
+ initialize,
379
+ linkTo,
380
+ linking,
381
+ navigate,
382
+ navigationRef,
383
+ preloadRoute,
384
+ preloadingLoader,
385
+ push,
386
+ replace,
387
+ rootComponent,
388
+ rootState,
389
+ rootStateSnapshot,
390
+ routeInfo,
391
+ routeInfoSnapshot,
392
+ routeNode,
393
+ setLoadingState,
394
+ setParams,
395
+ snapshot,
396
+ subscribeToLoadingState,
397
+ subscribeToRootState,
398
+ subscribeToStore,
399
+ updateState,
400
+ useOneRouter,
401
+ useStoreRootState,
402
+ useStoreRouteInfo
403
+ };
404
+ //# sourceMappingURL=router.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["StackActions","Linking","nanoid","Fragment","startTransition","useSyncExternalStore","Platform","getLoaderPath","getPreloadPath","deepEqual","getPathDataFromState","stripBaseUrl","getLinkingConfig","getRoutes","resolveHref","resolve","matchDynamicName","sortRoutes","getQualifiedRouteComponent","assertIsReady","dynamicImport","removeSearch","shouldLinkExternally","getNormalizedStatePath","setLastAction","routeNode","rootComponent","linking","hasAttemptedToHideSplash","initialState","rootState","nextState","routeInfo","splashScreenAnimationFrame","navigationRef","navigationRefSubscription","rootStateSubscribers","Set","loadingStateSubscribers","storeSubscribers","initialize","context","ref","initialLocation","cleanUpState","ignoreEntryPoints","platform","OS","process","env","NODE_ENV","Error","setupLinking","subscribeToNavigationChanges","clear","_linking_getStateFromPath","getInitialURL","toString","getStateFromPath","call","pathname","search","config","getRouteInfo","unstable_globalHref","isIndex","params","segments","addListener","data","state","requestAnimationFrame","nextOptions","linkOptions","shouldUpdateSubscribers","updateState","_iteratorNormalCompletion2","_didIteratorError2","_iteratorError2","_iterator2","Symbol","iterator","_step2","next","done","subscriber2","value","err","return","updateSnapshot","_iteratorNormalCompletion","_didIteratorError","_iteratorError","_iterator","_step","subscriber","navigate","url","options","linkTo","push","dismiss","count","dispatch","pop","replace","setParams","arguments","length","_navigationRef_current","current","dismissAll","popToTop","goBack","canGoBack","isReady","_navigationRef_current_canGoBack","canDismiss","_state_routes_state_index","_state_routes","type","routes","index","getSortedRoutes","children","filter","route","internal","sort","nextStateParam","nextRouteInfo","getRouteInfoFromState","state2","asPath","screens","preserveDynamicRoutes","preserveGroups","getPathFromState","baseUrl","path","qualified","split","isIndexPath","subscribeToRootState","add","delete","subscribeToStore","subscribeToLoadingState","setLoadingState","listener","currentSnapshot","getSnapshot","snapshot","rootStateSnapshot","routeInfoSnapshot","useOneRouter","syncStoreRootState","currentState","getRootState","useStoreRootState","useStoreRouteInfo","_state_index","getActualLastRoute","name","screen","match","routeLike","_routeLike_state","cleanup","cancelAnimationFrame","preloadingLoader","setupPreload","href","_preload","loader","Promise","all","_response_loader","response","console","error","preloadRoute","event","openURL","startsWith","_routeInfo_segments","_routeInfo_segments_map_filter_join","base","map","segment","_routeInfo_params","_routeInfo_params1","_params_split","slice","Array","isArray","join"],"sources":["../../../src/router/router.ts"],"sourcesContent":[null],"mappings":"AACA,SAAAA,YAAA;AAAA,OACE,KAAAC,OAAA;AAAA,SAGKC,MAAA;AACP,SAAAC,QAAY,EAAAC,eAAa,EAAAC,oBAAA;AACzB,SAASC,QAAA,QAAc;AACvB,SAASC,aAAU,EAAAC,cAAiB;AACpC,SAASC,SAAA,EAAAC,oBAAgB;AAEzB,SAASC,YAAA,QAAe,oCAAsB;AAE9C,SAASC,gBAAW,uCAA4B;AAChD,SAASC,SAAA,gCAAoB;AAC7B,SAASC,WAAA,gCAAiD;AAC1D,SAASC,OAAA,gCAAiB;AAE1B,SAASC,gBAAA,QAAmB;AAC5B,SAASC,UAAA,QAAe;AACxB,SAASC,0BAAwB;AACjC,SAASC,aAAA,QAAkB;AAC3B,SAASC,aAAA,0CAAkC;AAC3C,SAASC,YAAA,yCAAqB;AAC9B,SAASC,oBAAA,QAAqB;AAC9B,SAASC,sBAAoB;AAC7B,SAASC,aAAA,gCAA4B;AAErC,IAAAC,SAAS;EAAAC,aAAA;EAAAC,OAA8C;EAAAC,wBAAA;EAAAC,YAAA;EAAAC,SAAA;EAAAC,SAAA;EAAAC,SAAA;EAAAC,0BAAA;EAAAC,aAAA;EAAAC,yBAAA;EAAAC,oBAAA,sBAAAC,GAAA;EAAAC,uBAAA,sBAAAD,GAAA;EAAAE,gBAAA,sBAAAF,GAAA;AACvD,SAASG,WAAAC,OAAA,EAAAC,GAAqB,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OAAQ,GAAAA,OAAY,CAAAI,KAAA;YACtB,IAAA/H,MAAA,GAAAlC,SAAA,aAAA+J,kBAAA,GAAA/J,SAAA,CAAAkC,MAAA,cAAA6H,kBAAA,uBAAAA,kBAAA,CAAAF,OAAA;YACF,IAAAK,KAAA,CAAAC,OAAA,CAAAjI,MAAA,GACF,OAAAA,MAAA,CAAAkI,IAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/router/Users/n8/one/packages/one/src/router/router.ts"],
4
+ "mappings": "AACA,SACEA,oBAGK;AACP,YAAYC,aAAa;AACzB,SAASC,cAAc;AACvB,SAASC,UAAUC,iBAAiBC,4BAAgD;AACpF,SAASC,gBAAgB;AAEzB,SAASC,eAAeC,sBAAsB;AAE9C,SAASC,WAAWC,4BAA4B;AAChD,SAASC,oBAAoB;AAC7B,SAASC,wBAAiD;AAC1D,SAASC,iBAAiB;AAE1B,SAASC,mBAAmB;AAC5B,SAASC,eAAe;AACxB,SAASC,wBAAwB;AACjC,SAASC,kBAAkB;AAC3B,SAASC,kCAAkC;AAC3C,SAASC,qBAAqB;AAC9B,SAASC,qBAAqB;AAC9B,SAASC,oBAAoB;AAC7B,SAASC,4BAA4B;AAErC,SAASC,8BAA8C;AACvD,SAASC,qBAAqB;AAGvB,IAAIC,YAA8B,MAC9BC,eACAC,SAEAC,2BAA2B,IAC3BC,cACAC,WAEPC,WACOC,WACPC,4BAGOC,gBAAyC,MAChDC,2BAEEC,uBAAuB,oBAAIC,IAAAA,GAC3BC,0BAA0B,oBAAID,IAAAA,GAC9BE,mBAAmB,oBAAIF,IAAAA;AAGtB,SAASG,WACdC,SACAC,KACAC,iBAAqB;AASrB,MAPAC,aAAAA,GACAnB,YAAYZ,UAAU4B,SAAS;IAC7BI,mBAAmB;IACnBC,UAAUxC,SAASyC;EACrB,CAAA,GACArB,gBAAgBD,YAAYP,2BAA2BO,SAAAA,IAAatB,UAEhE,CAACsB,aAAauB,QAAQC,IAAIC,aAAa;A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,mBAAoBG,WAAAA;AAEjF,QAAIC;AACF;AAGFP,kBAAcI,YACdH,kBAAkBI;EACpB;AAWA,WALMG,cAAmC;IAAE7H,QAAQ,CAAC;EAAE,GAClD8H,UAAUD,aACV7H,SAAS8H,QAAQ9H,QAGduH,oBAAkB;QAK2BA,yBAA/BA,0BAEnBO;AANAC,WAAOC,OAAOhI,QAAQ;MAAE,GAAGuH,iBAAiBvH;IAAO,CAAA,GACnD8H,QAAQhD,SAASyC,iBAAiB1C,MAClCiD,QAAQ9H,SAAS;MAAE,GAAGuH,iBAAiBvH;IAAO,GAE9CuH,oBAAmBA,2BAAAA,iBAAiBnH,WAAK,QAAtBmH,6BAAAA,SAAAA,SAAAA,yBAAwBnF,SAAOmF,0BAAAA,iBAAiBnH,WAAK,QAAtBmH,4BAAAA,SAAAA,SAAAA,wBAAwBnF,OAAOC,UAAS,CAAA;;AAE1FyF,KAAAA,WAAAA,WAAAA,SAAQ9H,YAAAA,QAAAA,YAAAA,WAAR8H,SAAQ9H,SAAW,CAAC,IACpB8H,UAAUA,QAAQ9H,QAClBA,SAAS8H;EACX;AAGA,SAAI3F,SAAS,WACX5E,cAAAA,GAGA4E,OAAO,YAgBHmF,gBAAgBnF,SAAS,YAC3B0F,YAAYI,MAAM,GAAGJ,YAAYhD,IAAI,IAAI5I,OAAAA,CAAAA,MAIzCkG,SAAS,aAAamF,gBAAgBnF,SAAS,UACjDA,OAAO,YAGF;IACLA;IACA+F,QAAQZ,gBAAgBW;IACxBH,SAAS;MACPG,KAAKJ,YAAYI;MACjBpD,MAAMgD,YAAY/C;MAClB9E,QAAQ6H,YAAY7H;IACtB;EACF;AACF;",
5
+ "names": ["StackActions", "Linking", "nanoid", "Fragment", "startTransition", "useSyncExternalStore", "Platform", "getLoaderPath", "getPreloadPath", "deepEqual", "getPathDataFromState", "stripBaseUrl", "getLinkingConfig", "getRoutes", "resolveHref", "resolve", "matchDynamicName", "sortRoutes", "getQualifiedRouteComponent", "assertIsReady", "dynamicImport", "removeSearch", "shouldLinkExternally", "getNormalizedStatePath", "setLastAction", "routeNode", "rootComponent", "linking", "hasAttemptedToHideSplash", "initialState", "rootState", "nextState", "routeInfo", "splashScreenAnimationFrame", "navigationRef", "navigationRefSubscription", "rootStateSubscribers", "Set", "loadingStateSubscribers", "storeSubscribers", "initialize", "context", "ref", "initialLocation", "cleanUpState", "ignoreEntryPoints", "platform", "OS", "process", "env", "NODE_ENV", "Error", "setupLinking", "subscribeToNavigationChanges", "undefined", "clear", "getInitialURL", "toString", "getStateFromPath", "pathname", "search", "config", "getRouteInfo", "unstable_globalHref", "isIndex", "params", "segments", "addListener", "data", "state", "requestAnimationFrame", "nextOptions", "linkOptions", "shouldUpdateSubscribers", "updateState", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "_iterator", "_step", "subscriber", "updateSnapshot", "navigate", "url", "options", "linkTo", "push", "dismiss", "count", "dispatch", "pop", "replace", "setParams", "current", "dismissAll", "popToTop", "goBack", "canGoBack", "isReady", "canDismiss", "type", "routes", "length", "index", "getSortedRoutes", "children", "filter", "route", "internal", "sort", "nextStateParam", "nextRouteInfo", "getRouteInfoFromState", "asPath", "screens", "preserveDynamicRoutes", "preserveGroups", "getPathFromState", "baseUrl", "path", "qualified", "split", "isIndexPath", "subscribeToRootState", "add", "delete", "subscribeToStore", "subscribeToLoadingState", "setLoadingState", "listener", "currentSnapshot", "getSnapshot", "snapshot", "rootStateSnapshot", "routeInfoSnapshot", "useOneRouter", "syncStoreRootState", "currentState", "getRootState", "useStoreRootState", "useStoreRouteInfo", "getActualLastRoute", "name", "screen", "match", "routeLike", "cleanup", "cancelAnimationFrame", "preloadingLoader", "setupPreload", "href", "_preload", "loader", "Promise", "all", "response", "err", "console", "error", "preloadRoute", "event", "openURL", "startsWith", "base", "map", "segment", "slice", "Array", "isArray", "join", "Boolean", "globalThis", "action", "getNavigateAction", "getCurrentRoute", "warningTm", "interval", "setInterval", "next", "setTimeout", "clearTimeout", "warn", "actionState", "navigationState", "actionStateRoute", "stateRoute", "childState", "nextNavigationState", "dynamicName", "didActionAndCurrentStateDiverge", "rootPayload", "payload", "Object", "assign", "key", "target"]
6
+ }
@@ -1,4 +1,6 @@
1
1
  import { createContext } from "react";
2
2
  var ServerLocationContext = createContext(void 0);
3
- export { ServerLocationContext };
4
- //# sourceMappingURL=serverLocationContext.native.js.map
3
+ export {
4
+ ServerLocationContext
5
+ };
6
+ //# sourceMappingURL=serverLocationContext.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["createContext","ServerLocationContext"],"sources":["../../../src/router/serverLocationContext.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,QAAqB;AAEvB,IAAAC,qBAAM,GAAAD,aAAwB,MAA+B","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/router/Users/n8/one/packages/one/src/router/serverLocationContext.ts"],
4
+ "mappings": "AAAA,SAASA,qBAAqB;AAEvB,IAAMC,wBAAwBD,cAA+BE,MAAAA;",
5
+ "names": ["createContext", "ServerLocationContext", "undefined"]
6
+ }
@@ -1,6 +1,6 @@
1
1
  import { useNavigationContainerRef } from "@react-navigation/native";
2
- import { initialize } from "./router.native.js";
3
- import * as routerStore from "./router.native.js";
2
+ import { initialize } from "./router";
3
+ import * as routerStore from "./router";
4
4
  var initialized = !1;
5
5
  function useInitializeOneRouter(context, initialLocation) {
6
6
  var navigationRef = useNavigationContainerRef();
@@ -12,7 +12,10 @@ function resetState() {
12
12
  globalThis.__vxrnresetState = resetState;
13
13
  function resetReactNavigationContexts() {
14
14
  var contexts = "__react_navigation__elements_contexts";
15
- globalThis[contexts] = /* @__PURE__ */new Map();
15
+ globalThis[contexts] = /* @__PURE__ */ new Map();
16
16
  }
17
- export { resetState, useInitializeOneRouter };
18
- //# sourceMappingURL=useInitializeOneRouter.native.js.map
17
+ export {
18
+ resetState,
19
+ useInitializeOneRouter
20
+ };
21
+ //# sourceMappingURL=useInitializeOneRouter.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["useNavigationContainerRef","initialize","routerStore","initialized","useInitializeOneRouter","context","initialLocation","navigationRef","resetState","resetReactNavigationContexts","globalThis","__vxrnresetState","contexts","Map"],"sources":["../../../src/router/useInitializeOneRouter.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,yBAAA,QAAiC;AAC1C,SAASC,UAAA,QAAkB;AAC3B,YAAYC,WAAA,MAAiB;AAG7B,IAAIC,WAAA,GAAc;AAEX,SAASC,uBACdC,OAAA,EACAC,eAAA,EACA;EACA,IAAAC,aAAM,GAAAP,yBAAgB;EAEtB,OAAKG,WAAA,KACHF,UAAA,CAAWI,OAAA,EAASE,aAAA,EAAeD,eAAe,GAClDH,WAAA,GAAc,KAGTD,WAAA;AACT;AAEO,SAASM,WAAA,EAAa;EAC3BL,WAAA,GAAc,IACdM,4BAAA,CAA6B;AAC/B;AAGAC,UAAA,CAAWC,gBAAA,GAAsBH,UAAA;AAEjC,SAASC,6BAAA,EAA+B;EAKtC,IAAAG,QAAM,0CAAW;EACjBF,UAAA,CAAWE,QAAQ,IAAI,mBAAIC,GAAA,CAAgC;AAC7D","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/router/Users/n8/one/packages/one/src/router/useInitializeOneRouter.ts"],
4
+ "mappings": "AAAA,SAASA,iCAAiC;AAC1C,SAASC,kBAAkB;AAC3B,YAAYC,iBAAiB;AAG7B,IAAIC,cAAc;AAEX,SAASC,uBACdC,SACAC,iBAAgC;AAEhC,MAAMC,gBAAgBP,0BAAAA;AAEtB,SAAKG,gBACHF,WAAWI,SAASE,eAAeD,eAAAA,GACnCH,cAAc,KAGTD;AACT;AAEO,SAASM,aAAAA;AACdL,gBAAc,IACdM,6BAAAA;AACF;AAGAC,WAAW,mBAAsBF;AAEjC,SAASC,+BAAAA;AAKP,MAAME,WAAW;AACjBD,aAAWC,QAAAA,IAAY,oBAAIC,IAAAA;AAC7B;",
5
+ "names": ["useNavigationContainerRef", "initialize", "routerStore", "initialized", "useInitializeOneRouter", "context", "initialLocation", "navigationRef", "resetState", "resetReactNavigationContexts", "globalThis", "contexts", "Map"]
6
+ }