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
@@ -1 +1,6 @@
1
- {"version":3,"names":["protocolWarningString","memoize","fn","cache","_len","arguments","length","args","Array","_key","key","JSON","stringify","result","sanitizeUrl","url","_parsed","parsed","URL","validProtocol","protocol","throwOrAlert","pathname","search","hash","_protocol","toString","replace","memoSanitizeUrl","getUrlFromConstants","origin","process","env","One_ORIGIN","match","console","warn","msg","getStaticUrlFromOneRouter"],"sources":["../../../src/head/url.tsx"],"sourcesContent":[null],"mappings":"AAAA,IAAAA,qBAAM,yDAAwB;AAG9B,SAASC,QAA2CC,EAAA,EAAU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AASC,QAAQC,IAAIC;AAE3B,SAAKH,UASAA,OAAOI,MAAM,gBAAA,KAChBC,QAAQC,KACN,qBAAqBN,MAAAA,yCAA+CvB,qBAAAA,GAAwB,GAKzFqB,gBAAgBE,MAAAA,MAfrBR,aACE,4FAA4Ff,qBAAAA,uCAA4D,GAGnJ;AAYX;AAEA,SAASe,aAAae,KAAW;AAC/BF,UAAQC,KAAK,aAAaC,GAAAA,EAAK;AAWjC;AAEO,SAASC,0BAA0Bf,UAAgB;AAGxD,SAAOM,oBAAAA,IAAwBN;AACjC;",
5
+ "names": ["protocolWarningString", "memoize", "fn", "cache", "args", "key", "JSON", "stringify", "result", "sanitizeUrl", "url", "parsed", "URL", "validProtocol", "protocol", "throwOrAlert", "pathname", "search", "hash", "toString", "replace", "memoSanitizeUrl", "getUrlFromConstants", "origin", "process", "env", "One_ORIGIN", "match", "console", "warn", "msg", "getStaticUrlFromOneRouter"]
6
+ }
@@ -1,8 +1,8 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { NavigationRouteContext } from "@react-navigation/native";
3
3
  import React, { createContext } from "react";
4
- import { router } from "./imperative-api.native.js";
5
- import { navigationRef, useStoreRootState, useStoreRouteInfo } from "./router/router.native.js";
4
+ import { router } from "./imperative-api";
5
+ import { navigationRef, useStoreRootState, useStoreRouteInfo } from "./router/router";
6
6
  function useRootNavigationState() {
7
7
  return useStoreRootState();
8
8
  }
@@ -12,23 +12,22 @@ function useRouteInfo() {
12
12
  function useNavigationContainerRef() {
13
13
  return navigationRef;
14
14
  }
15
- var FrozeContext = /* @__PURE__ */createContext(!1);
15
+ var FrozeContext = /* @__PURE__ */ createContext(!1);
16
16
  function Frozen(param) {
17
- var {
18
- on = !1,
19
- children
20
- } = param;
21
- return typeof window > "u" ? children : /* @__PURE__ */_jsx(FrozeContext.Provider, {
17
+ var { on = !1, children } = param;
18
+ return typeof window > "u" ? children : /* @__PURE__ */ _jsx(FrozeContext.Provider, {
22
19
  value: on,
23
- children: (/* <Freeze freeze={on}> */
24
- /* @__PURE__ */_jsx("div", {
25
- // @ts-ignore
26
- inert: !0,
27
- style: {
28
- display: "contents"
29
- },
30
- children
31
- }))
20
+ children: (
21
+ /* <Freeze freeze={on}> */
22
+ /* @__PURE__ */ _jsx("div", {
23
+ // @ts-ignore
24
+ inert: !0,
25
+ style: {
26
+ display: "contents"
27
+ },
28
+ children
29
+ })
30
+ )
32
31
  });
33
32
  }
34
33
  function useRouter() {
@@ -46,27 +45,47 @@ function usePathname() {
46
45
  function useActiveParams() {
47
46
  return useStoreRouteInfo().params;
48
47
  }
49
- var useLocalSearchParams = useParams,
50
- useGlobalSearchParams = useActiveParams;
48
+ var useLocalSearchParams = useParams, useGlobalSearchParams = useActiveParams;
51
49
  function useParams() {
52
- var context = React.useContext(NavigationRouteContext),
53
- _context_params,
54
- params = (_context_params = context?.params) !== null && _context_params !== void 0 ? _context_params : {};
55
- return Object.fromEntries(Object.entries(params).map(function (param) {
50
+ var context = React.useContext(NavigationRouteContext), _context_params, params = (_context_params = context?.params) !== null && _context_params !== void 0 ? _context_params : {};
51
+ return Object.fromEntries(Object.entries(params).map(function(param) {
56
52
  var [key, value] = param;
57
- if (Array.isArray(value)) return [key, value.map(function (v) {
58
- try {
59
- return decodeURIComponent(v);
60
- } catch {
61
- return v;
62
- }
63
- })];
53
+ if (Array.isArray(value))
54
+ return [
55
+ key,
56
+ value.map(function(v) {
57
+ try {
58
+ return decodeURIComponent(v);
59
+ } catch {
60
+ return v;
61
+ }
62
+ })
63
+ ];
64
64
  try {
65
- return [key, decodeURIComponent(value)];
65
+ return [
66
+ key,
67
+ decodeURIComponent(value)
68
+ ];
66
69
  } catch {
67
- return [key, value];
70
+ return [
71
+ key,
72
+ value
73
+ ];
68
74
  }
69
75
  }));
70
76
  }
71
- export { Frozen, useActiveParams, useGlobalSearchParams, useLocalSearchParams, useNavigationContainerRef, useParams, usePathname, useRootNavigationState, useRouteInfo, useRouter, useSegments, useUnstableGlobalHref };
72
- //# sourceMappingURL=hooks.native.js.map
77
+ export {
78
+ Frozen,
79
+ useActiveParams,
80
+ useGlobalSearchParams,
81
+ useLocalSearchParams,
82
+ useNavigationContainerRef,
83
+ useParams,
84
+ usePathname,
85
+ useRootNavigationState,
86
+ useRouteInfo,
87
+ useRouter,
88
+ useSegments,
89
+ useUnstableGlobalHref
90
+ };
91
+ //# sourceMappingURL=hooks.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["jsx","_jsx","NavigationRouteContext","React","createContext","router","navigationRef","useStoreRootState","useStoreRouteInfo","useRootNavigationState","useRouteInfo","useNavigationContainerRef","FrozeContext","Frozen","param","on","children","window","Provider","value","inert","style","display","useRouter","useUnstableGlobalHref","unstable_globalHref","useSegments","segments","usePathname","pathname","useActiveParams","params","useLocalSearchParams","useParams","useGlobalSearchParams","context","useContext","_context_params","Object","fromEntries","entries","map","key","Array","isArray","v","decodeURIComponent"],"sources":["../../src/hooks.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAASA,GAAA,IAAAC,IAAA,2BAA8B;AACvC,SAAOC,sBAAS,QAAqC;AACrD,OAAAC,KAAS,IAAAC,aAAc;AAEvB,SAASC,MAAA,oCAAe;AAkClB,SAAAC,aAAA,EAAAC,iBAAA,EAAAC,iBAAA;AA9BC,SAASC,uBAAA,EAAyB;EACvC,OAAOF,iBAAA,CAAkB;AAC3B;AAEO,SAASG,aAAA,EAAe;EAC7B,OAAOF,iBAAA,CAAkB;AAC3B;AAGO,SAASG,0BAAA,EAA4B;EAC1C,OAAOL,aAAA;AACT;AAEA,IAAAM,YAAM,kBAA6BR,aAAK;AAEjC,SAASS,OAAOC,KAAE,EAAK;EAQ5B;IAAAC,EAAI;IAAOC;EAAW,IAAAF,KACb;EAML,OAAC,OAAAG,MAAA,SAAAD,QAAA,kBAAAf,IAAA,CAAAW,YAAA,CAAAM,QAAA;IAAAC,KAAA,EAAAJ,EAAA;IAAAC,QAEC,GACA;IAEC,eAAAf,IAAA;MAAA;MAGLmB,K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names": ["NavigationRouteContext", "React", "createContext", "router", "navigationRef", "useStoreRootState", "useStoreRouteInfo", "useRootNavigationState", "useRouteInfo", "useNavigationContainerRef", "FrozeContext", "Frozen", "on", "children", "window", "Provider", "value", "div", "inert", "style", "display", "useRouter", "useUnstableGlobalHref", "unstable_globalHref", "useSegments", "segments", "usePathname", "pathname", "useActiveParams", "params", "useLocalSearchParams", "useParams", "useGlobalSearchParams", "context", "useContext", "Object", "fromEntries", "entries", "map", "key", "Array", "isArray", "v", "decodeURIComponent"]
6
+ }
@@ -1,4 +1,4 @@
1
- import * as store from "./router/router.native.js";
1
+ import * as store from "./router/router";
2
2
  var router = {
3
3
  navigate: store.navigate,
4
4
  push: store.push,
@@ -8,13 +8,16 @@ var router = {
8
8
  replace: store.replace,
9
9
  back: store.goBack,
10
10
  canGoBack: store.canGoBack,
11
- setParams: function (params) {
11
+ setParams: function(params) {
12
12
  return store.setParams(
13
- // TODO
14
- params);
13
+ // TODO
14
+ params
15
+ );
15
16
  },
16
17
  subscribe: store.subscribeToRootState,
17
18
  onLoadState: store.subscribeToLoadingState
18
19
  };
19
- export { router };
20
- //# sourceMappingURL=imperative-api.native.js.map
20
+ export {
21
+ router
22
+ };
23
+ //# sourceMappingURL=imperative-api.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["store","router","navigate","push","dismiss","dismissAll","canDismiss","replace","back","goBack","canGoBack","setParams","params","subscribe","subscribeToRootState"],"sources":["../../src/imperative-api.ts"],"sourcesContent":[null],"mappings":"AAAA,YAAYA,KAAA,MAAW;AAGhB,IAAAC,MAAM;EACXC,QAAA,EAAUF,KAAA,CAAME,QAAA;EAChBC,IAAA,EAAMH,KAAA,CAAMG,IAAA;EACZC,OAAA,EAASJ,KAAA,CAAMI,OAAA;EACfC,UAAA,EAAYL,KAAA,CAAMK,UAAA;EAClBC,UAAA,EAAYN,KAAA,CAAMM,UAAA;EAClBC,OAAA,EAASP,KAAA,CAAMO,OAAA;EACfC,IAAA,EAAMR,KAAA,CAAMS,MAAA;EACZC,SAAA,EAAWV,KAAA,CAAMU,SAAA;EACjBC,SAAA,EAAW,SAAAA,CAACC,MACV;IAAM,OAAAZ,KAAA,CAAAW,SAAA;IAEJ;IACFC,MACF;EACA;EACFC,SAAA,EAAAb,KAAA,CAAAc,oBAAA","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/one/packages/one/src/imperative-api.ts"],
4
+ "mappings": "AAAA,YAAYA,WAAW;AAGhB,IAAMC,SAA2B;EACtCC,UAAUF,MAAME;EAChBC,MAAMH,MAAMG;EACZC,SAASJ,MAAMI;EACfC,YAAYL,MAAMK;EAClBC,YAAYN,MAAMM;EAClBC,SAASP,MAAMO;EACfC,MAAMR,MAAMS;EACZC,WAAWV,MAAMU;EACjBC,WAAW,SAACC,QAAAA;WACVZ,MAAMW;;MAEJC;IAAAA;;EAEJC,WAAWb,MAAMc;EACjBC,aAAaf,MAAMgB;AACrB;",
5
+ "names": ["store", "router", "navigate", "push", "dismiss", "dismissAll", "canDismiss", "replace", "back", "goBack", "canGoBack", "setParams", "params", "subscribe", "subscribeToRootState", "onLoadState", "subscribeToLoadingState"]
6
+ }
@@ -1,4 +1,5 @@
1
- var _process_env_One_ROUTER_IMPORT_MODE_ANDROID,
2
- index_android_default = (_process_env_One_ROUTER_IMPORT_MODE_ANDROID = process.env.One_ROUTER_IMPORT_MODE_ANDROID) !== null && _process_env_One_ROUTER_IMPORT_MODE_ANDROID !== void 0 ? _process_env_One_ROUTER_IMPORT_MODE_ANDROID : "lazy";
3
- export { index_android_default as default };
1
+ var _process_env_One_ROUTER_IMPORT_MODE_ANDROID, index_android_default = (_process_env_One_ROUTER_IMPORT_MODE_ANDROID = process.env.One_ROUTER_IMPORT_MODE_ANDROID) !== null && _process_env_One_ROUTER_IMPORT_MODE_ANDROID !== void 0 ? _process_env_One_ROUTER_IMPORT_MODE_ANDROID : "lazy";
2
+ export {
3
+ index_android_default as default
4
+ };
4
5
  //# sourceMappingURL=index.android.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["_process_env_One_ROUTER_IMPORT_MODE_ANDROID","index_android_default","process","env","One_ROUTER_IMPORT_MODE_ANDROID"],"sources":["../../../src/import-mode/Users/n8/one/packages/one/src/import-mode/index.android.ts"],"sourcesContent":[null],"mappings":"IAAeA,2CAAA;EAAfC,qBAAA,IAAeD,2CAAA,GAAAE,OAAA,CAAQC,GAAA,CAAIC,8BAAA,MAA8B,QAA1CJ,2CAAA,cAAAA,2CAAA,GAA8C","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/import-mode/Users/n8/one/packages/one/src/import-mode/index.android.ts"],
4
+ "mappings": "IAAeA,6CAAf,yBAAeA,8CAAAA,QAAQC,IAAIC,oCAA8B,QAA1CF,gDAAAA,SAAAA,8CAA8C;",
5
+ "names": ["process", "env", "One_ROUTER_IMPORT_MODE_ANDROID"]
6
+ }
@@ -1,4 +1,5 @@
1
- var _process_env_One_ROUTER_IMPORT_MODE_IOS,
2
- index_ios_default = (_process_env_One_ROUTER_IMPORT_MODE_IOS = process.env.One_ROUTER_IMPORT_MODE_IOS) !== null && _process_env_One_ROUTER_IMPORT_MODE_IOS !== void 0 ? _process_env_One_ROUTER_IMPORT_MODE_IOS : "lazy";
3
- export { index_ios_default as default };
1
+ var _process_env_One_ROUTER_IMPORT_MODE_IOS, index_ios_default = (_process_env_One_ROUTER_IMPORT_MODE_IOS = process.env.One_ROUTER_IMPORT_MODE_IOS) !== null && _process_env_One_ROUTER_IMPORT_MODE_IOS !== void 0 ? _process_env_One_ROUTER_IMPORT_MODE_IOS : "lazy";
2
+ export {
3
+ index_ios_default as default
4
+ };
4
5
  //# sourceMappingURL=index.ios.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["_process_env_One_ROUTER_IMPORT_MODE_IOS","index_ios_default","process","env","One_ROUTER_IMPORT_MODE_IOS"],"sources":["../../../src/import-mode/Users/n8/one/packages/one/src/import-mode/index.ios.ts"],"sourcesContent":[null],"mappings":"IAAeA,uCAAA;EAAfC,iBAAA,IAAeD,uCAAA,GAAAE,OAAA,CAAQC,GAAA,CAAIC,0BAAA,MAA0B,QAAtCJ,uCAAA,cAAAA,uCAAA,GAA0C","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/import-mode/Users/n8/one/packages/one/src/import-mode/index.ios.ts"],
4
+ "mappings": "IAAeA,yCAAf,qBAAeA,0CAAAA,QAAQC,IAAIC,gCAA0B,QAAtCF,4CAAAA,SAAAA,0CAA0C;",
5
+ "names": ["process", "env", "One_ROUTER_IMPORT_MODE_IOS"]
6
+ }
@@ -1,3 +1,5 @@
1
1
  var index_native_default = "lazy";
2
- export { index_native_default as default };
2
+ export {
3
+ index_native_default as default
4
+ };
3
5
  //# sourceMappingURL=index.native.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["index_native_default"],"sources":["../../../src/import-mode/Users/n8/one/packages/one/src/import-mode/index.native.ts"],"sourcesContent":[null],"mappings":"AAEA,IAAAA,oBAAA,GAAe","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/import-mode/Users/n8/one/packages/one/src/import-mode/index.native.ts"],
4
+ "mappings": "AAEA,IAAA,uBAAe;",
5
+ "names": []
6
+ }
@@ -1,30 +1,68 @@
1
1
  export * from "@vxrn/universal-color-scheme";
2
- import { Root } from "./Root.native.js";
3
- import { render } from "./render.native.js";
4
- import { Stack } from "./layouts/Stack.native.js";
5
- import { Tabs } from "./layouts/Tabs.native.js";
2
+ import { Root } from "./Root";
3
+ import { render } from "./render";
4
+ import { Stack } from "./layouts/Stack";
5
+ import { Tabs } from "./layouts/Tabs";
6
6
  import { SafeAreaView } from "react-native-safe-area-context";
7
- import { Navigator, Slot } from "./views/Navigator.native.js";
8
- import { ErrorBoundary } from "./views/ErrorBoundary.native.js";
9
- import { ScrollRestoration } from "./views/ScrollRestoration.native.js";
10
- import { LoadProgressBar } from "./views/LoadProgressBar.native.js";
11
- import { createApp } from "./createApp.native.js";
12
- import { createRoute, route } from "./createRoute.native.js";
13
- import { onClientLoaderResolve } from "./clientLoaderResolver.native.js";
14
- import { isResponse } from "./utils/isResponse.native.js";
15
- import { getURL } from "./getURL.native.js";
16
- import { redirect } from "./utils/redirect.native.js";
17
- import { useLinkTo } from "./link/useLinkTo.native.js";
18
- import { useRouter, useUnstableGlobalHref, usePathname, useNavigationContainerRef, useParams, useActiveParams, useSegments, useRootNavigationState } from "./hooks.native.js";
19
- import { useLocalSearchParams, useGlobalSearchParams } from "./hooks.native.js";
20
- import * as _routerStore from "./router/router.native.js";
21
- import { router } from "./imperative-api.native.js";
22
- import { Link } from "./link/Link.native.js";
23
- import { Redirect } from "./link/Redirect.native.js";
7
+ import { Navigator, Slot } from "./views/Navigator";
8
+ import { ErrorBoundary } from "./views/ErrorBoundary";
9
+ import { ScrollRestoration } from "./views/ScrollRestoration";
10
+ import { LoadProgressBar } from "./views/LoadProgressBar";
11
+ import { createApp } from "./createApp";
12
+ import { createRoute, route } from "./createRoute";
13
+ import { onClientLoaderResolve } from "./clientLoaderResolver";
14
+ import { isResponse } from "./utils/isResponse";
15
+ import { getURL } from "./getURL";
16
+ import { redirect } from "./utils/redirect";
17
+ import { useLinkTo } from "./link/useLinkTo";
18
+ import { useRouter, useUnstableGlobalHref, usePathname, useNavigationContainerRef, useParams, useActiveParams, useSegments, useRootNavigationState } from "./hooks";
19
+ import { useLocalSearchParams, useGlobalSearchParams } from "./hooks";
20
+ import * as _routerStore from "./router/router";
21
+ import { router } from "./imperative-api";
22
+ import { Link } from "./link/Link";
23
+ import { Redirect } from "./link/Redirect";
24
24
  import { Head } from "./head";
25
- import { withLayoutContext } from "./layouts/withLayoutContext.native.js";
26
- import { useFocusEffect } from "./useFocusEffect.native.js";
27
- import { useNavigation } from "./useNavigation.native.js";
28
- import { useLoader } from "./useLoader.native.js";
29
- export { ErrorBoundary, Head, Link, LoadProgressBar, Navigator, Redirect, Root, SafeAreaView, ScrollRestoration, Slot, Stack, Tabs, createApp, createRoute, getURL, isResponse, onClientLoaderResolve, redirect, render, route, router, _routerStore as routerStore, useActiveParams, useFocusEffect, useGlobalSearchParams, useLinkTo, useLoader, useLocalSearchParams, useNavigation, useNavigationContainerRef, useParams, usePathname, useRootNavigationState, useRouter, useSegments, useUnstableGlobalHref, withLayoutContext };
30
- //# sourceMappingURL=index.native.js.map
25
+ import { withLayoutContext } from "./layouts/withLayoutContext";
26
+ import { useFocusEffect } from "./useFocusEffect";
27
+ import { useNavigation } from "./useNavigation";
28
+ import { useLoader } from "./useLoader";
29
+ export {
30
+ ErrorBoundary,
31
+ Head,
32
+ Link,
33
+ LoadProgressBar,
34
+ Navigator,
35
+ Redirect,
36
+ Root,
37
+ SafeAreaView,
38
+ ScrollRestoration,
39
+ Slot,
40
+ Stack,
41
+ Tabs,
42
+ createApp,
43
+ createRoute,
44
+ getURL,
45
+ isResponse,
46
+ onClientLoaderResolve,
47
+ redirect,
48
+ render,
49
+ route,
50
+ router,
51
+ _routerStore as routerStore,
52
+ useActiveParams,
53
+ useFocusEffect,
54
+ useGlobalSearchParams,
55
+ useLinkTo,
56
+ useLoader,
57
+ useLocalSearchParams,
58
+ useNavigation,
59
+ useNavigationContainerRef,
60
+ useParams,
61
+ usePathname,
62
+ useRootNavigationState,
63
+ useRouter,
64
+ useSegments,
65
+ useUnstableGlobalHref,
66
+ withLayoutContext
67
+ };
68
+ //# sourceMappingURL=index.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["Root","render","Stack","Tabs","SafeAreaView","Navigator","Slot","ErrorBoundary","ScrollRestoration","LoadProgressBar","createApp","createRoute","route","onClientLoaderResolve","isResponse","getURL","redirect","useLinkTo","useRouter","useUnstableGlobalHref","usePathname","useNavigationContainerRef","useParams","useActiveParams","useSegments","useRootNavigationState","useLocalSearchParams","useGlobalSearchParams","_routerStore","router","Link","Redirect","Head","withLayoutContext","useFocusEffect","useNavigation","useLoader"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAQA,cAAc;AAEd,SAASA,IAAA,QAAY;AACrB,SAASC,MAAA,QAAc;AAEvB,SAASC,KAAA,QAAa;AACtB,SAASC,IAAA,QAAY;AAKrB,SAASC,YAAA,QAAoB;AAC7B,SAASC,SAAA,EAAWC,IAAA,QAAY;AAChC,SAASC,aAAA,QAAqB;AAE9B,SAASC,iBAAA,QAAyB;AAClC,SAASC,eAAA,QAAuB;AAEhC,SAASC,SAAA,QAAiB;AAC1B,SAASC,WAAA,EAAaC,KAAA,QAAa;AACnC,SAASC,qBAAA,QAA6B;AAEtC,SAASC,UAAA,QAAkB;AAC3B,SAASC,MAAA,QAAc;AACvB,SAASC,QAAA,QAAgB;AAEzB,SAASC,SAAA,QAAiB;AAE1B,SAAAC,SAAA,EAAAC,qBAAA,EAAAC,WAAA,EAAAC,yBAAA,EAAAC,SAAA,EAAAC,eAAA,EAAAC,WAAA,EAAAC,sBAAA;AAAA,SACEC,oBAAA,EAAAC,qBAAA;AAAA,OACA,KAAAC,YAAA;AAAA,SACAC,MAAA;AAAA,SACAC,IAAA;AAAA,SACAC,QAAA;AAAA,SACAC,IAAA;AAAA,SACAC,iBAAA;AAAA,SACAC,cAAA;AAAA,SACKC,aAAA;AAGP,SAAAC,SAAA;AAAA,SAEE7B,aAAA,EAAAyB,IAAA,EAGFF,IAAA,EAEArB,eAAS,EAETJ,SAAS,EACT0B,QAAS,EAET/B,IAAA,EAEAI,YAAS,EAGTI,iBAAS,EACTF,IAAA,EAEAJ,KAAA,E","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Users/n8/one/packages/one/src/index.ts"],
4
+ "mappings": "AAQA,cAAc;AAEd,SAASA,YAAY;AACrB,SAASC,cAAc;AAEvB,SAASC,aAAa;AACtB,SAASC,YAAY;AAKrB,SAASC,oBAAoB;AAC7B,SAASC,WAAWC,YAAY;AAChC,SAASC,qBAAqB;AAE9B,SAASC,yBAAyB;AAClC,SAASC,uBAAuB;AAEhC,SAASC,iBAAiB;AAC1B,SAASC,aAAaC,aAAa;AACnC,SAASC,6BAA6B;AAEtC,SAASC,kBAAkB;AAC3B,SAASC,cAAc;AACvB,SAASC,gBAAgB;AAEzB,SAASC,iBAAiB;AAE1B,SACEC,WACAC,uBACAC,aACAC,2BACAC,WACAC,iBACAC,aACAC,8BACK;AAGP,SACEC,sBACAC,6BACK;AAEP,YAAA,kBAA6B;AAE7B,SAASC,cAAc;AAEvB,SAASC,YAAY;AACrB,SAASC,gBAAgB;AAEzB,SAASC,YAAY;AAErB,SAASC,yBAAyB;AAGlC,SAASC,sBAAsB;AAC/B,SAASC,qBAAqB;AAE9B,SAASC,iBAAiB;",
5
+ "names": ["Root", "render", "Stack", "Tabs", "SafeAreaView", "Navigator", "Slot", "ErrorBoundary", "ScrollRestoration", "LoadProgressBar", "createApp", "createRoute", "route", "onClientLoaderResolve", "isResponse", "getURL", "redirect", "useLinkTo", "useRouter", "useUnstableGlobalHref", "usePathname", "useNavigationContainerRef", "useParams", "useActiveParams", "useSegments", "useRootNavigationState", "useLocalSearchParams", "useGlobalSearchParams", "router", "Link", "Redirect", "Head", "withLayoutContext", "useFocusEffect", "useNavigation", "useLoader"]
6
+ }
@@ -1,4 +1,6 @@
1
1
  var OneRouter;
2
2
  OneRouter || (OneRouter = {});
3
- export { OneRouter };
4
- //# sourceMappingURL=router.native.js.map
3
+ export {
4
+ OneRouter
5
+ };
6
+ //# sourceMappingURL=router.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["OneRouter"],"sources":["../../../src/interfaces/router.ts"],"sourcesContent":[null],"mappings":"AAQO,IAAUA,SAAA;AAAAA,SAAA,KAAAA,SAAV;AAAA,S","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/interfaces/Users/n8/one/packages/one/src/interfaces/router.ts"],
4
+ "mappings": ";AAQiBA,cAAAA,YAAAA,CAAAA;",
5
+ "names": ["OneRouter"]
6
+ }
@@ -1,7 +1,8 @@
1
1
  import { createDrawerNavigator } from "@react-navigation/drawer";
2
- import { withLayoutContext } from "./withLayoutContext.native.js";
3
- var DrawerNavigator = createDrawerNavigator().Navigator,
4
- Drawer = withLayoutContext(DrawerNavigator),
5
- Drawer_default = Drawer;
6
- export { Drawer, Drawer_default as default };
7
- //# sourceMappingURL=Drawer.native.js.map
2
+ import { withLayoutContext } from "./withLayoutContext";
3
+ var DrawerNavigator = createDrawerNavigator().Navigator, Drawer = withLayoutContext(DrawerNavigator), Drawer_default = Drawer;
4
+ export {
5
+ Drawer,
6
+ Drawer_default as default
7
+ };
8
+ //# sourceMappingURL=Drawer.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["createDrawerNavigator","withLayoutContext","DrawerNavigator","Navigator","Drawer","Drawer_default","default"],"sources":["../../../src/layouts/Drawer.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAAAA,qBAAA;AAAA,SAGEC,iBAAA;AAAA,IAAAC,eACK,GAAAF,qBAAA,GAAAG,SAAA;EAAAC,MAAA,GAAAH,iBAAA,CAAAC,eAAA;EAAAG,cAAA,GAAAD,MAAA;AAGP,SAEAA,MAAM,EASNC,cAAO,IAAAC,OAAQ","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/layouts/Users/n8/one/packages/one/src/layouts/Drawer.tsx"],
4
+ "mappings": "AAAA,SAGEA,6BACK;AAGP,SAASC,yBAAyB;AAElC,IAAMC,kBAAkBF,sBAAAA,EAAwBG,WAEnCC,SAASH,kBAKpBC,eAAAA,GAEF,iBAAeE;",
5
+ "names": ["createDrawerNavigator", "withLayoutContext", "DrawerNavigator", "Navigator", "Drawer"]
6
+ }
@@ -1,7 +1,8 @@
1
1
  import { createNativeStackNavigator } from "@react-navigation/native-stack";
2
- import { withLayoutContext } from "./withLayoutContext.native.js";
3
- var NativeStackNavigator = createNativeStackNavigator().Navigator,
4
- Stack = withLayoutContext(NativeStackNavigator),
5
- Stack_default = Stack;
6
- export { Stack, Stack_default as default };
7
- //# sourceMappingURL=Stack.native.js.map
2
+ import { withLayoutContext } from "./withLayoutContext";
3
+ var NativeStackNavigator = createNativeStackNavigator().Navigator, Stack = withLayoutContext(NativeStackNavigator), Stack_default = Stack;
4
+ export {
5
+ Stack,
6
+ Stack_default as default
7
+ };
8
+ //# sourceMappingURL=Stack.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["createNativeStackNavigator","withLayoutContext","NativeStackNavigator","Navigator","Stack","Stack_default","default"],"sources":["../../../src/layouts/Stack.tsx"],"sourcesContent":[null],"mappings":"AACA,SAAAA,0BAAA;AAAA,SAGEC,iBAAA;AAAA,IAAAC,oBACK,GAAAF,0BAAA,GAAAG,SAAA;EAAAC,KAAA,GAAAH,iBAAA,CAAAC,oBAAA;EAAAG,aAAA,GAAAD,KAAA;AAEP,SAEAA,KAAM,EASNC,aAAO,IAAAC,OAAQ","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/layouts/Users/n8/one/packages/one/src/layouts/Stack.tsx"],
4
+ "mappings": "AACA,SAGEA,kCACK;AAEP,SAASC,yBAAyB;AAElC,IAAMC,uBAAuBF,2BAAAA,EAA6BG,WAE7CC,QAAQH,kBAKnBC,oBAAAA,GAEF,gBAAeE;",
5
+ "names": ["createNativeStackNavigator", "withLayoutContext", "NativeStackNavigator", "Navigator", "Stack"]
6
+ }
@@ -1,44 +1,47 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { createBottomTabNavigator } from "@react-navigation/bottom-tabs";
3
3
  import { Platform, Pressable } from "react-native";
4
- import { Link } from "../link/Link.native.js";
5
- import { withLayoutContext } from "./withLayoutContext.native.js";
6
- var BottomTabNavigator = createBottomTabNavigator().Navigator,
7
- Tabs = withLayoutContext(BottomTabNavigator, function (screens) {
8
- return screens.map(function (screen) {
9
- var _screen_options;
10
- if (typeof screen.options != "function" && ((_screen_options = screen.options) === null || _screen_options === void 0 ? void 0 : _screen_options.href) !== void 0) {
11
- var {
12
- href,
13
- ...options
14
- } = screen.options;
15
- if (options.tabBarButton) throw new Error("Cannot use `href` and `tabBarButton` together.");
16
- return {
17
- ...screen,
18
- options: {
19
- ...options,
20
- tabBarButton: function (props) {
21
- if (href == null) return null;
22
- var children = Platform.OS === "web" ? props.children : /* @__PURE__ */_jsx(Pressable, {
23
- children: props.children
24
- });
25
- return /* @__PURE__ */_jsx(Link, {
26
- ...props,
27
- style: [{
4
+ import { Link } from "../link/Link";
5
+ import { withLayoutContext } from "./withLayoutContext";
6
+ var BottomTabNavigator = createBottomTabNavigator().Navigator, Tabs = withLayoutContext(BottomTabNavigator, function(screens) {
7
+ return screens.map(function(screen) {
8
+ var _screen_options;
9
+ if (typeof screen.options != "function" && ((_screen_options = screen.options) === null || _screen_options === void 0 ? void 0 : _screen_options.href) !== void 0) {
10
+ var { href, ...options } = screen.options;
11
+ if (options.tabBarButton)
12
+ throw new Error("Cannot use `href` and `tabBarButton` together.");
13
+ return {
14
+ ...screen,
15
+ options: {
16
+ ...options,
17
+ tabBarButton: function(props) {
18
+ if (href == null)
19
+ return null;
20
+ var children = Platform.OS === "web" ? props.children : /* @__PURE__ */ _jsx(Pressable, {
21
+ children: props.children
22
+ });
23
+ return /* @__PURE__ */ _jsx(Link, {
24
+ ...props,
25
+ style: [
26
+ {
28
27
  display: "flex"
29
- }, props.style],
30
- href,
31
- asChild: Platform.OS !== "web",
32
- // biome-ignore lint/correctness/noChildrenProp: <explanation>
33
- children
34
- });
35
- }
28
+ },
29
+ props.style
30
+ ],
31
+ href,
32
+ asChild: Platform.OS !== "web",
33
+ // biome-ignore lint/correctness/noChildrenProp: <explanation>
34
+ children
35
+ });
36
36
  }
37
- };
38
- }
39
- return screen;
40
- });
41
- }),
42
- Tabs_default = Tabs;
43
- export { Tabs, Tabs_default as default };
44
- //# sourceMappingURL=Tabs.native.js.map
37
+ }
38
+ };
39
+ }
40
+ return screen;
41
+ });
42
+ }), Tabs_default = Tabs;
43
+ export {
44
+ Tabs,
45
+ Tabs_default as default
46
+ };
47
+ //# sourceMappingURL=Tabs.js.map
@@ -1 +1,6 @@
1
- {"version":3,"names":["jsx","_jsx","createBottomTabNavigator","Platform","Pressable","Link","withLayoutContext","BottomTabNavigator","Navigator","Tabs","screens","map","screen","_screen_options","options","href","tabBarButton","Error","props","children","OS","style","display","asChild"],"sources":["../../../src/layouts/Tabs.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAAAA,GAAA,IAAAC,IAAA;AAAA,SACEC,wBAAA;AAAA,SAGKC,QAAA,EAAAC,SAAA;AAEP,SAASC,IAAA,QAAU;AAGnB,SAASC,iBAAY;AACrB,IAAAC,kBAAS,GAAAL,wBAAyB,GAAAM,SAAA;EAAAC,IAAA,GAAAH,iBAAA,CAAAC,kBAAA,YAAAG,OAAA;IA2BqB,OAAAA,OAAA,CAAAC,GAAA,WAAAC,MAAA;MAxBvD,IAAMC,eAAA;MAUF,IAAI,OAAOD,MAAO,CAAAE,OAAA,IAAY,cAAc,EAAAD,eAAgB,GAAAD,MAAS,CAAAE,OAAW,cAAAD,eAAA,uBAAAA,eAAA,CAAAE,IAAA;QAC9E,IAAM;UAAEA,IAAA;UAAM,GAAGD;QAAQ,IAAIF,MAAA,CAAOE,OAAA;QACpC,IAAIA,OAAQ,CAAAE,YAAA,EACV,MAAM,IAAIC,KAAM,iDAAgD;QAElE,OAAO;UACL,GAAGL,MAAA;UACHE,OAAS;YACP,GAAGA,OAAA;YACHE,YAAc,EAAC,SAAAA,CAAUE,KAAA;cACvB,IAAIH,IAAA,IAAQ,MACV,OAAO;cAET,IAAMI,QAAA,GACJhB,QAAA,CAASiB,EAAA,KAAO,QAAQF,KAAA,CAAMC,QAAA,GAAW,eAAAlB,IAAC,CAAAG,SAAA;gBAC5Ce,QACE,EAAAD,KAAA,CAAAC;cAAC;cAAA,sBAAAlB,IAAA,CAAAI,IAAA;gBACE,GAAGa,KAAA;gBACJG,KAAA,EAAO,CACP;kBACAC,OAAS;gBAET,GAAAJ,KAAA,CAAAG,KAAA,CACF;gBAEJN,IAAA;gBACFQ,OAAA,EAAApB,QAAA,CAAAiB,EAAA;gBACF;gBACFD;cACO;YAEV;UAEM","ignoreList":[]}
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/layouts/Users/n8/one/packages/one/src/layouts/Tabs.tsx"],
4
+ "mappings": ";AAAA,SACEA,gCAGK;AAEP,SAASC,UAAUC,iBAAiB;AAGpC,SAASC,YAAY;AACrB,SAASC,yBAAyB;AAGlC,IAAMC,qBAAqBL,yBAAAA,EAA2BM,WAEzCC,OAAOH,kBAKlBC,oBAAoB,SAACG,SAAAA;AAErB,SAAOA,QAAQC,IAAI,SAACC,QAAAA;QAC0BA;AAA5C,QAAI,OAAOA,OAAOC,WAAY,gBAAcD,kBAAAA,OAAOC,aAAO,QAAdD,oBAAAA,SAAAA,SAAAA,gBAAgBE,UAASC,QAAW;AAC9E,UAAM,EAAED,MAAM,GAAGD,QAAAA,IAAYD,OAAOC;AACpC,UAAIA,QAAQG;AACV,cAAM,IAAIC,MAAM,gDAAA;AAElB,aAAO;QACL,GAAGL;QACHC,SAAS;UACP,GAAGA;UACHG,cAAc,SAACE,OAAAA;AACb,gBAAIJ,QAAQ;AACV,qBAAO;AAET,gBAAMK,WACJhB,SAASiB,OAAO,QAAQF,MAAMC,WAAW,qBAACf,WAAAA;wBAAWc,MAAMC;;AAC7D,mBACE,qBAACd,MAAAA;cACE,GAAGa;cACJG,OAAO;gBAAC;kBAAEC,SAAS;gBAAO;gBAAGJ,MAAMG;;cACnCP;cACAS,SAASpB,SAASiB,OAAO;;cAEzBD;;UAGN;QACF;MACF;IACF;AACA,WAAOP;EACT,CAAA;AACF,CAAA,GAEA,eAAeH;",
5
+ "names": ["createBottomTabNavigator", "Platform", "Pressable", "Link", "withLayoutContext", "BottomTabNavigator", "Navigator", "Tabs", "screens", "map", "screen", "options", "href", "undefined", "tabBarButton", "Error", "props", "children", "OS", "style", "display", "asChild"]
6
+ }