one 1.1.319 → 1.1.321

Sign up to get free protection for your applications and to get access to all the features.
Files changed (332) hide show
  1. package/dist/cjs/Root.js +182 -0
  2. package/dist/cjs/Route.js +45 -0
  3. package/dist/cjs/cleanUrl.js +41 -0
  4. package/dist/cjs/cli/label-process.js +25 -0
  5. package/dist/cjs/cli/main.js +46 -0
  6. package/dist/cjs/{getURL.native.cjs → cli/patch.cjs} +11 -15
  7. package/dist/cjs/cli/patch.js +34 -0
  8. package/dist/cjs/cli/patch.js.map +6 -0
  9. package/dist/cjs/cli/patch.native.js +39 -0
  10. package/dist/cjs/cli/patch.native.js.map +6 -0
  11. package/dist/cjs/cli/prebuild.js +34 -0
  12. package/dist/cjs/cli/run.js +52 -0
  13. package/dist/cjs/cli/runAndroid.js +34 -0
  14. package/dist/cjs/cli/runIos.js +34 -0
  15. package/dist/cjs/cli.cjs +17 -0
  16. package/dist/cjs/cli.js +220 -0
  17. package/dist/cjs/{cli.cjs.map → cli.js.map} +1 -1
  18. package/dist/cjs/cli.native.js +12 -0
  19. package/dist/cjs/cli.native.js.map +2 -2
  20. package/dist/cjs/clientLoaderResolver.js +32 -0
  21. package/dist/cjs/config.js +27 -0
  22. package/dist/cjs/constants.js +28 -0
  23. package/dist/cjs/createApp.js +46 -0
  24. package/dist/cjs/createHandleRequest.js +138 -0
  25. package/dist/cjs/createRoute.js +37 -0
  26. package/dist/cjs/fallbackViews/Sitemap.js +82 -0
  27. package/dist/cjs/fallbackViews/Unmatched.js +58 -0
  28. package/dist/cjs/fork/NavigationContainer.js +85 -0
  29. package/dist/cjs/fork/createMemoryHistory.js +100 -0
  30. package/dist/cjs/fork/extractPathFromURL.js +62 -0
  31. package/dist/cjs/fork/findFocusedRoute.js +26 -0
  32. package/dist/cjs/fork/getPathFromState.js +265 -0
  33. package/dist/cjs/fork/getStateFromPath.js +381 -0
  34. package/dist/cjs/fork/useLinking.js +182 -0
  35. package/dist/cjs/fork/validatePathConfig.js +46 -0
  36. package/dist/cjs/getLinkingConfig.js +59 -0
  37. package/dist/cjs/getReactNavigationConfig.js +69 -0
  38. package/dist/cjs/getRoutes.js +294 -0
  39. package/dist/cjs/getURL.js +24 -0
  40. package/dist/cjs/head/Head.js +23 -0
  41. package/dist/cjs/head/HeadModule.js +22 -0
  42. package/dist/cjs/head/index.js +15 -0
  43. package/dist/cjs/head/types.js +14 -0
  44. package/dist/cjs/head/url.js +52 -0
  45. package/dist/cjs/hooks.js +99 -0
  46. package/dist/cjs/imperative-api.js +45 -0
  47. package/dist/cjs/import-mode/index.js +21 -0
  48. package/dist/cjs/import-mode/index.web.js +21 -0
  49. package/dist/cjs/index.js +65 -0
  50. package/dist/cjs/interfaces/router.js +23 -0
  51. package/dist/cjs/layouts/Drawer.js +24 -0
  52. package/dist/cjs/layouts/Stack.js +24 -0
  53. package/dist/cjs/layouts/Tabs.js +52 -0
  54. package/dist/cjs/layouts/withLayoutContext.js +77 -0
  55. package/dist/cjs/link/Link.js +98 -0
  56. package/dist/cjs/link/Redirect.js +31 -0
  57. package/dist/cjs/link/href.js +50 -0
  58. package/dist/cjs/link/linking.js +82 -0
  59. package/dist/cjs/link/path.js +65 -0
  60. package/dist/cjs/link/useLinkTo.js +42 -0
  61. package/dist/cjs/link/useLoadedNavigation.js +50 -0
  62. package/dist/cjs/matchers.js +68 -0
  63. package/dist/cjs/platform.js +21 -0
  64. package/dist/cjs/polyfills-mobile.js +26 -0
  65. package/dist/cjs/polyfills-server.js +23 -0
  66. package/dist/cjs/render.js +44 -0
  67. package/dist/cjs/router/RouterStore.js +14 -0
  68. package/dist/cjs/router/getNormalizedStatePath.js +50 -0
  69. package/dist/cjs/router/lastAction.js +25 -0
  70. package/dist/cjs/router/router.js +345 -0
  71. package/dist/cjs/router/serverLocationContext.js +22 -0
  72. package/dist/cjs/router/useInitializeOneRouter.js +43 -0
  73. package/dist/cjs/serve.js +184 -0
  74. package/dist/cjs/server/createRoutesManifest.js +40 -0
  75. package/dist/cjs/server/getServerManifest.js +109 -0
  76. package/dist/cjs/server-render.js +42 -0
  77. package/dist/cjs/sortRoutes.js +64 -0
  78. package/dist/cjs/typed-routes/generateRouteTypes.js +33 -0
  79. package/dist/cjs/typed-routes/getTypedRoutesDeclarationFile.js +83 -0
  80. package/dist/cjs/types.js +14 -0
  81. package/dist/cjs/useFocusEffect.js +79 -0
  82. package/dist/cjs/useLoader.js +97 -0
  83. package/dist/cjs/useNavigation.js +60 -0
  84. package/dist/cjs/useScreens.js +176 -0
  85. package/dist/cjs/useViteRoutes.js +77 -0
  86. package/dist/cjs/utils/assertIsReady.js +26 -0
  87. package/dist/cjs/utils/dynamicImport.js +24 -0
  88. package/dist/cjs/utils/existsAsync.js +28 -0
  89. package/dist/cjs/utils/getPageExport.js +38 -0
  90. package/dist/cjs/utils/globDir.js +37 -0
  91. package/dist/cjs/utils/hashString.js +32 -0
  92. package/dist/cjs/utils/isResponse.js +23 -0
  93. package/dist/cjs/utils/isStatus.js +23 -0
  94. package/dist/cjs/utils/promiseWithResolvers.js +26 -0
  95. package/dist/cjs/utils/rand.js +21 -0
  96. package/dist/cjs/utils/redirect.js +28 -0
  97. package/dist/cjs/utils/removeSearch.js +23 -0
  98. package/dist/cjs/utils/removeUndefined.js +26 -0
  99. package/dist/cjs/utils/url.js +31 -0
  100. package/dist/cjs/utils/weakKey.js +24 -0
  101. package/dist/cjs/utils/weakMemo.js +30 -0
  102. package/dist/cjs/views/EmptyRoute.js +25 -0
  103. package/dist/cjs/views/ErrorBoundary.js +33 -0
  104. package/dist/cjs/views/LoadProgressBar.js +83 -0
  105. package/dist/cjs/views/Navigator.js +101 -0
  106. package/dist/cjs/views/PreloadLinks.js +42 -0
  107. package/dist/cjs/views/RootErrorBoundary.js +47 -0
  108. package/dist/cjs/views/Screen.js +29 -0
  109. package/dist/cjs/views/ScrollRestoration.js +70 -0
  110. package/dist/cjs/views/Try.js +44 -0
  111. package/dist/cjs/vite/build.js +377 -0
  112. package/dist/cjs/vite/clientTreeShakePlugin.js +76 -0
  113. package/dist/cjs/vite/constants.js +22 -0
  114. package/dist/cjs/vite/createFileSystemRouter.cjs +2 -1
  115. package/dist/cjs/vite/createFileSystemRouter.js +244 -0
  116. package/dist/cjs/vite/createFileSystemRouter.js.map +6 -0
  117. package/dist/cjs/vite/createFileSystemRouter.native.js +2 -1
  118. package/dist/cjs/vite/createFileSystemRouter.native.js.map +2 -2
  119. package/dist/cjs/vite/customNodeExternals.js +52 -0
  120. package/dist/cjs/vite/ensureTsConfig.js +66 -0
  121. package/dist/cjs/vite/findDepsToOptimize.js +66 -0
  122. package/dist/cjs/vite/fixDependenciesPlugin.js +43 -0
  123. package/dist/cjs/vite/generateTypesForRoutes.js +36 -0
  124. package/dist/cjs/vite/getManifest.js +27 -0
  125. package/dist/cjs/vite/headers.js +39 -0
  126. package/dist/cjs/vite/makePluginWebOnly.js +27 -0
  127. package/dist/cjs/vite/one.js +290 -0
  128. package/dist/cjs/vite/removeReactNativeWebAnimatedPlugin.js +50 -0
  129. package/dist/cjs/vite/replaceLoader.js +34 -0
  130. package/dist/cjs/vite/resolveAPIRequest.js +71 -0
  131. package/dist/cjs/vite/server.js +16 -0
  132. package/dist/cjs/vite/types.js +14 -0
  133. package/dist/cjs/vite/virtualEntryPlugin.js +67 -0
  134. package/dist/cjs/vite/vitePluginSsrCss.js +130 -0
  135. package/dist/cjs/vite.cjs +2 -0
  136. package/dist/cjs/vite.js +29 -0
  137. package/dist/cjs/vite.js.map +6 -0
  138. package/dist/cjs/vite.native.js +3 -1
  139. package/dist/cjs/vite.native.js.map +1 -1
  140. package/dist/cjs/zero/getQueryKey.js +24 -0
  141. package/dist/cjs/zero/isZeroQuery.js +23 -0
  142. package/dist/cjs/zero/resolveQuery.js +38 -0
  143. package/dist/cjs/zero/subscribeToQuery.js +28 -0
  144. package/dist/cjs/zero/types.js +14 -0
  145. package/dist/cjs/zero/useQuery.js +47 -0
  146. package/dist/cjs/zero/useQueryZero.js +38 -0
  147. package/dist/cjs/zero.js +23 -0
  148. package/dist/esm/cli/patch.js +10 -0
  149. package/dist/esm/cli/patch.js.map +6 -0
  150. package/dist/esm/cli/patch.mjs +10 -0
  151. package/dist/esm/cli/patch.mjs.map +1 -0
  152. package/dist/esm/cli/patch.native.js +10 -0
  153. package/dist/esm/cli/patch.native.js.map +6 -0
  154. package/dist/esm/cli.js +12 -0
  155. package/dist/esm/cli.js.map +1 -1
  156. package/dist/esm/cli.mjs +17 -0
  157. package/dist/esm/cli.mjs.map +1 -1
  158. package/dist/esm/cli.native.js +12 -0
  159. package/dist/esm/cli.native.js.map +2 -2
  160. package/dist/esm/vite/createFileSystemRouter.js +2 -1
  161. package/dist/esm/vite/createFileSystemRouter.js.map +1 -1
  162. package/dist/esm/vite/createFileSystemRouter.mjs +2 -1
  163. package/dist/esm/vite/createFileSystemRouter.mjs.map +1 -1
  164. package/dist/esm/vite/createFileSystemRouter.native.js +2 -1
  165. package/dist/esm/vite/createFileSystemRouter.native.js.map +2 -2
  166. package/dist/esm/vite.js +2 -0
  167. package/dist/esm/vite.js.map +1 -1
  168. package/dist/esm/vite.mjs +2 -1
  169. package/dist/esm/vite.mjs.map +1 -1
  170. package/dist/esm/vite.native.js +2 -0
  171. package/dist/esm/vite.native.js.map +2 -2
  172. package/package.json +8 -8
  173. package/src/cli/patch.ts +6 -0
  174. package/src/cli.ts +14 -0
  175. package/src/vite/createFileSystemRouter.tsx +1 -1
  176. package/src/vite.ts +1 -0
  177. package/types/cli/patch.d.ts +2 -0
  178. package/types/cli/patch.d.ts.map +1 -0
  179. package/types/vite.d.ts +1 -0
  180. package/types/vite.d.ts.map +1 -1
  181. package/dist/cjs/createApp.native.cjs +0 -38
  182. package/dist/cjs/createApp.native.cjs.map +0 -6
  183. package/dist/cjs/fork/NavigationContainer.native.cjs +0 -103
  184. package/dist/cjs/fork/NavigationContainer.native.cjs.map +0 -6
  185. package/dist/cjs/fork/useLinking.native.cjs +0 -126
  186. package/dist/cjs/fork/useLinking.native.cjs.map +0 -6
  187. package/dist/cjs/getURL.native.cjs.map +0 -6
  188. package/dist/cjs/head/Head.android.cjs +0 -28
  189. package/dist/cjs/head/Head.android.cjs.map +0 -6
  190. package/dist/cjs/head/Head.ios.cjs +0 -210
  191. package/dist/cjs/head/Head.ios.cjs.map +0 -6
  192. package/dist/cjs/import-mode/index.android.cjs +0 -26
  193. package/dist/cjs/import-mode/index.android.cjs.map +0 -6
  194. package/dist/cjs/import-mode/index.ios.cjs +0 -26
  195. package/dist/cjs/import-mode/index.ios.cjs.map +0 -6
  196. package/dist/cjs/import-mode/index.native.cjs +0 -26
  197. package/dist/cjs/import-mode/index.native.cjs.map +0 -6
  198. package/dist/cjs/render.native.cjs +0 -28
  199. package/dist/cjs/render.native.cjs.map +0 -6
  200. package/dist/cjs/views/PreloadLinks.native.cjs +0 -28
  201. package/dist/cjs/views/PreloadLinks.native.cjs.map +0 -6
  202. package/dist/cjs/vite/createFileSystemRouter.cjs.map +0 -6
  203. package/dist/cjs/vite/headers.native.cjs +0 -32
  204. package/dist/cjs/vite/headers.native.cjs.map +0 -6
  205. package/dist/cjs/vite.cjs.map +0 -6
  206. /package/dist/cjs/{Root.cjs.map → Root.js.map} +0 -0
  207. /package/dist/cjs/{Route.cjs.map → Route.js.map} +0 -0
  208. /package/dist/cjs/{cleanUrl.cjs.map → cleanUrl.js.map} +0 -0
  209. /package/dist/cjs/cli/{label-process.cjs.map → label-process.js.map} +0 -0
  210. /package/dist/cjs/cli/{main.cjs.map → main.js.map} +0 -0
  211. /package/dist/cjs/cli/{prebuild.cjs.map → prebuild.js.map} +0 -0
  212. /package/dist/cjs/cli/{run.cjs.map → run.js.map} +0 -0
  213. /package/dist/cjs/cli/{runAndroid.cjs.map → runAndroid.js.map} +0 -0
  214. /package/dist/cjs/cli/{runIos.cjs.map → runIos.js.map} +0 -0
  215. /package/dist/cjs/{clientLoaderResolver.cjs.map → clientLoaderResolver.js.map} +0 -0
  216. /package/dist/cjs/{config.cjs.map → config.js.map} +0 -0
  217. /package/dist/cjs/{constants.cjs.map → constants.js.map} +0 -0
  218. /package/dist/cjs/{createApp.cjs.map → createApp.js.map} +0 -0
  219. /package/dist/cjs/{createHandleRequest.cjs.map → createHandleRequest.js.map} +0 -0
  220. /package/dist/cjs/{createRoute.cjs.map → createRoute.js.map} +0 -0
  221. /package/dist/cjs/fallbackViews/{Sitemap.cjs.map → Sitemap.js.map} +0 -0
  222. /package/dist/cjs/fallbackViews/{Unmatched.cjs.map → Unmatched.js.map} +0 -0
  223. /package/dist/cjs/fork/{NavigationContainer.cjs.map → NavigationContainer.js.map} +0 -0
  224. /package/dist/cjs/fork/{createMemoryHistory.cjs.map → createMemoryHistory.js.map} +0 -0
  225. /package/dist/cjs/fork/{extractPathFromURL.cjs.map → extractPathFromURL.js.map} +0 -0
  226. /package/dist/cjs/fork/{findFocusedRoute.cjs.map → findFocusedRoute.js.map} +0 -0
  227. /package/dist/cjs/fork/{getPathFromState.cjs.map → getPathFromState.js.map} +0 -0
  228. /package/dist/cjs/fork/{getStateFromPath.cjs.map → getStateFromPath.js.map} +0 -0
  229. /package/dist/cjs/fork/{useLinking.cjs.map → useLinking.js.map} +0 -0
  230. /package/dist/cjs/fork/{validatePathConfig.cjs.map → validatePathConfig.js.map} +0 -0
  231. /package/dist/cjs/{getLinkingConfig.cjs.map → getLinkingConfig.js.map} +0 -0
  232. /package/dist/cjs/{getReactNavigationConfig.cjs.map → getReactNavigationConfig.js.map} +0 -0
  233. /package/dist/cjs/{getRoutes.cjs.map → getRoutes.js.map} +0 -0
  234. /package/dist/cjs/{getURL.cjs.map → getURL.js.map} +0 -0
  235. /package/dist/cjs/head/{Head.cjs.map → Head.js.map} +0 -0
  236. /package/dist/cjs/head/{HeadModule.cjs.map → HeadModule.js.map} +0 -0
  237. /package/dist/cjs/head/{index.cjs.map → index.js.map} +0 -0
  238. /package/dist/cjs/head/{types.cjs.map → types.js.map} +0 -0
  239. /package/dist/cjs/head/{url.cjs.map → url.js.map} +0 -0
  240. /package/dist/cjs/{hooks.cjs.map → hooks.js.map} +0 -0
  241. /package/dist/cjs/{imperative-api.cjs.map → imperative-api.js.map} +0 -0
  242. /package/dist/cjs/import-mode/{index.cjs.map → index.js.map} +0 -0
  243. /package/dist/cjs/import-mode/{index.web.cjs.map → index.web.js.map} +0 -0
  244. /package/dist/cjs/{index.cjs.map → index.js.map} +0 -0
  245. /package/dist/cjs/interfaces/{router.cjs.map → router.js.map} +0 -0
  246. /package/dist/cjs/layouts/{Drawer.cjs.map → Drawer.js.map} +0 -0
  247. /package/dist/cjs/layouts/{Stack.cjs.map → Stack.js.map} +0 -0
  248. /package/dist/cjs/layouts/{Tabs.cjs.map → Tabs.js.map} +0 -0
  249. /package/dist/cjs/layouts/{withLayoutContext.cjs.map → withLayoutContext.js.map} +0 -0
  250. /package/dist/cjs/link/{Link.cjs.map → Link.js.map} +0 -0
  251. /package/dist/cjs/link/{Redirect.cjs.map → Redirect.js.map} +0 -0
  252. /package/dist/cjs/link/{href.cjs.map → href.js.map} +0 -0
  253. /package/dist/cjs/link/{linking.cjs.map → linking.js.map} +0 -0
  254. /package/dist/cjs/link/{path.cjs.map → path.js.map} +0 -0
  255. /package/dist/cjs/link/{useLinkTo.cjs.map → useLinkTo.js.map} +0 -0
  256. /package/dist/cjs/link/{useLoadedNavigation.cjs.map → useLoadedNavigation.js.map} +0 -0
  257. /package/dist/cjs/{matchers.cjs.map → matchers.js.map} +0 -0
  258. /package/dist/cjs/{platform.cjs.map → platform.js.map} +0 -0
  259. /package/dist/cjs/{polyfills-mobile.cjs.map → polyfills-mobile.js.map} +0 -0
  260. /package/dist/cjs/{polyfills-server.cjs.map → polyfills-server.js.map} +0 -0
  261. /package/dist/cjs/{render.cjs.map → render.js.map} +0 -0
  262. /package/dist/cjs/router/{RouterStore.cjs.map → RouterStore.js.map} +0 -0
  263. /package/dist/cjs/router/{getNormalizedStatePath.cjs.map → getNormalizedStatePath.js.map} +0 -0
  264. /package/dist/cjs/router/{lastAction.cjs.map → lastAction.js.map} +0 -0
  265. /package/dist/cjs/router/{router.cjs.map → router.js.map} +0 -0
  266. /package/dist/cjs/router/{serverLocationContext.cjs.map → serverLocationContext.js.map} +0 -0
  267. /package/dist/cjs/router/{useInitializeOneRouter.cjs.map → useInitializeOneRouter.js.map} +0 -0
  268. /package/dist/cjs/{serve.cjs.map → serve.js.map} +0 -0
  269. /package/dist/cjs/server/{createRoutesManifest.cjs.map → createRoutesManifest.js.map} +0 -0
  270. /package/dist/cjs/server/{getServerManifest.cjs.map → getServerManifest.js.map} +0 -0
  271. /package/dist/cjs/{server-render.cjs.map → server-render.js.map} +0 -0
  272. /package/dist/cjs/{sortRoutes.cjs.map → sortRoutes.js.map} +0 -0
  273. /package/dist/cjs/typed-routes/{generateRouteTypes.cjs.map → generateRouteTypes.js.map} +0 -0
  274. /package/dist/cjs/typed-routes/{getTypedRoutesDeclarationFile.cjs.map → getTypedRoutesDeclarationFile.js.map} +0 -0
  275. /package/dist/cjs/{types.cjs.map → types.js.map} +0 -0
  276. /package/dist/cjs/{useFocusEffect.cjs.map → useFocusEffect.js.map} +0 -0
  277. /package/dist/cjs/{useLoader.cjs.map → useLoader.js.map} +0 -0
  278. /package/dist/cjs/{useNavigation.cjs.map → useNavigation.js.map} +0 -0
  279. /package/dist/cjs/{useScreens.cjs.map → useScreens.js.map} +0 -0
  280. /package/dist/cjs/{useViteRoutes.cjs.map → useViteRoutes.js.map} +0 -0
  281. /package/dist/cjs/utils/{assertIsReady.cjs.map → assertIsReady.js.map} +0 -0
  282. /package/dist/cjs/utils/{dynamicImport.cjs.map → dynamicImport.js.map} +0 -0
  283. /package/dist/cjs/utils/{existsAsync.cjs.map → existsAsync.js.map} +0 -0
  284. /package/dist/cjs/utils/{getPageExport.cjs.map → getPageExport.js.map} +0 -0
  285. /package/dist/cjs/utils/{globDir.cjs.map → globDir.js.map} +0 -0
  286. /package/dist/cjs/utils/{hashString.cjs.map → hashString.js.map} +0 -0
  287. /package/dist/cjs/utils/{isResponse.cjs.map → isResponse.js.map} +0 -0
  288. /package/dist/cjs/utils/{isStatus.cjs.map → isStatus.js.map} +0 -0
  289. /package/dist/cjs/utils/{promiseWithResolvers.cjs.map → promiseWithResolvers.js.map} +0 -0
  290. /package/dist/cjs/utils/{rand.cjs.map → rand.js.map} +0 -0
  291. /package/dist/cjs/utils/{redirect.cjs.map → redirect.js.map} +0 -0
  292. /package/dist/cjs/utils/{removeSearch.cjs.map → removeSearch.js.map} +0 -0
  293. /package/dist/cjs/utils/{removeUndefined.cjs.map → removeUndefined.js.map} +0 -0
  294. /package/dist/cjs/utils/{url.cjs.map → url.js.map} +0 -0
  295. /package/dist/cjs/utils/{weakKey.cjs.map → weakKey.js.map} +0 -0
  296. /package/dist/cjs/utils/{weakMemo.cjs.map → weakMemo.js.map} +0 -0
  297. /package/dist/cjs/views/{EmptyRoute.cjs.map → EmptyRoute.js.map} +0 -0
  298. /package/dist/cjs/views/{ErrorBoundary.cjs.map → ErrorBoundary.js.map} +0 -0
  299. /package/dist/cjs/views/{LoadProgressBar.cjs.map → LoadProgressBar.js.map} +0 -0
  300. /package/dist/cjs/views/{Navigator.cjs.map → Navigator.js.map} +0 -0
  301. /package/dist/cjs/views/{PreloadLinks.cjs.map → PreloadLinks.js.map} +0 -0
  302. /package/dist/cjs/views/{RootErrorBoundary.cjs.map → RootErrorBoundary.js.map} +0 -0
  303. /package/dist/cjs/views/{Screen.cjs.map → Screen.js.map} +0 -0
  304. /package/dist/cjs/views/{ScrollRestoration.cjs.map → ScrollRestoration.js.map} +0 -0
  305. /package/dist/cjs/views/{Try.cjs.map → Try.js.map} +0 -0
  306. /package/dist/cjs/vite/{build.cjs.map → build.js.map} +0 -0
  307. /package/dist/cjs/vite/{clientTreeShakePlugin.cjs.map → clientTreeShakePlugin.js.map} +0 -0
  308. /package/dist/cjs/vite/{constants.cjs.map → constants.js.map} +0 -0
  309. /package/dist/cjs/vite/{customNodeExternals.cjs.map → customNodeExternals.js.map} +0 -0
  310. /package/dist/cjs/vite/{ensureTsConfig.cjs.map → ensureTsConfig.js.map} +0 -0
  311. /package/dist/cjs/vite/{findDepsToOptimize.cjs.map → findDepsToOptimize.js.map} +0 -0
  312. /package/dist/cjs/vite/{fixDependenciesPlugin.cjs.map → fixDependenciesPlugin.js.map} +0 -0
  313. /package/dist/cjs/vite/{generateTypesForRoutes.cjs.map → generateTypesForRoutes.js.map} +0 -0
  314. /package/dist/cjs/vite/{getManifest.cjs.map → getManifest.js.map} +0 -0
  315. /package/dist/cjs/vite/{headers.cjs.map → headers.js.map} +0 -0
  316. /package/dist/cjs/vite/{makePluginWebOnly.cjs.map → makePluginWebOnly.js.map} +0 -0
  317. /package/dist/cjs/vite/{one.cjs.map → one.js.map} +0 -0
  318. /package/dist/cjs/vite/{removeReactNativeWebAnimatedPlugin.cjs.map → removeReactNativeWebAnimatedPlugin.js.map} +0 -0
  319. /package/dist/cjs/vite/{replaceLoader.cjs.map → replaceLoader.js.map} +0 -0
  320. /package/dist/cjs/vite/{resolveAPIRequest.cjs.map → resolveAPIRequest.js.map} +0 -0
  321. /package/dist/cjs/vite/{server.cjs.map → server.js.map} +0 -0
  322. /package/dist/cjs/vite/{types.cjs.map → types.js.map} +0 -0
  323. /package/dist/cjs/vite/{virtualEntryPlugin.cjs.map → virtualEntryPlugin.js.map} +0 -0
  324. /package/dist/cjs/vite/{vitePluginSsrCss.cjs.map → vitePluginSsrCss.js.map} +0 -0
  325. /package/dist/cjs/zero/{getQueryKey.cjs.map → getQueryKey.js.map} +0 -0
  326. /package/dist/cjs/zero/{isZeroQuery.cjs.map → isZeroQuery.js.map} +0 -0
  327. /package/dist/cjs/zero/{resolveQuery.cjs.map → resolveQuery.js.map} +0 -0
  328. /package/dist/cjs/zero/{subscribeToQuery.cjs.map → subscribeToQuery.js.map} +0 -0
  329. /package/dist/cjs/zero/{types.cjs.map → types.js.map} +0 -0
  330. /package/dist/cjs/zero/{useQuery.cjs.map → useQuery.js.map} +0 -0
  331. /package/dist/cjs/zero/{useQueryZero.cjs.map → useQueryZero.js.map} +0 -0
  332. /package/dist/cjs/{zero.cjs.map → zero.js.map} +0 -0
@@ -0,0 +1,130 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: !0 });
9
+ }, __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from == "object" || typeof from == "function")
11
+ for (let key of __getOwnPropNames(from))
12
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
13
+ return to;
14
+ };
15
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
16
+ // If the importer is in node compatibility mode or this is not an ESM
17
+ // file that has been converted to a CommonJS file using a Babel-
18
+ // compatible transform (i.e. "__esModule" has not been set), then set
19
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
21
+ mod
22
+ )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
+ var vitePluginSsrCss_exports = {};
24
+ __export(vitePluginSsrCss_exports, {
25
+ VIRTUAL_ENTRY: () => VIRTUAL_ENTRY,
26
+ collectStyle: () => collectStyle,
27
+ vitePluginSsrCss: () => vitePluginSsrCss
28
+ });
29
+ module.exports = __toCommonJS(vitePluginSsrCss_exports);
30
+ const VIRTUAL_ENTRY = "virtual:ssr-css.css";
31
+ function vitePluginSsrCss(pluginOpts) {
32
+ let server;
33
+ const virtualHref = "/@id/__x00__" + VIRTUAL_ENTRY;
34
+ return {
35
+ name: "one-plugin-ssr-css",
36
+ apply: "serve",
37
+ configureServer(server_) {
38
+ server = server_, server.middlewares.use(async (req, res, next) => {
39
+ if (req.url?.includes(virtualHref)) {
40
+ invalidateModule(server, "\0" + VIRTUAL_ENTRY + "?direct");
41
+ let code = await collectStyle(server, pluginOpts.entries);
42
+ res.setHeader("Content-Type", "text/css"), res.setHeader("Cache-Control", "no-store"), res.setHeader("Vary", "*"), res.write(code), res.end();
43
+ return;
44
+ }
45
+ next();
46
+ });
47
+ },
48
+ // virtual module
49
+ // (use `startsWith` since Vite adds `?direct` for raw css request)
50
+ resolveId(source, _importer, _options) {
51
+ return source.startsWith(VIRTUAL_ENTRY) ? "\0" + source : void 0;
52
+ },
53
+ async load(id, _options) {
54
+ if (id.startsWith("\0" + VIRTUAL_ENTRY)) {
55
+ const url = new URL(id.slice(1), "https://test.local");
56
+ let code = await collectStyle(server, pluginOpts.entries);
57
+ return url.searchParams.has("direct") || (code = `export default ${JSON.stringify(code)}`), code;
58
+ }
59
+ },
60
+ // also expose via transformIndexHtml
61
+ transformIndexHtml: {
62
+ handler: async () => [
63
+ {
64
+ tag: "link",
65
+ injectTo: "head",
66
+ attrs: {
67
+ rel: "stylesheet",
68
+ href: virtualHref,
69
+ "data-ssr-css": !0
70
+ }
71
+ },
72
+ {
73
+ tag: "script",
74
+ injectTo: "head",
75
+ attrs: { type: "module" },
76
+ children: (
77
+ /* js */
78
+ `
79
+ import { createHotContext } from "/@vite/client";
80
+ const hot = createHotContext("/__clear_ssr_css");
81
+ hot.on("vite:afterUpdate", () => {
82
+ document
83
+ .querySelectorAll("[data-ssr-css]")
84
+ .forEach(node => node.remove());
85
+ });
86
+ `
87
+ )
88
+ }
89
+ ]
90
+ }
91
+ };
92
+ }
93
+ function invalidateModule(server, id) {
94
+ const mod = server.moduleGraph.getModuleById(id);
95
+ mod && server.moduleGraph.invalidateModule(mod);
96
+ }
97
+ async function collectStyle(server, entries) {
98
+ const urls = await collectStyleUrls(server, entries);
99
+ return (await Promise.all(
100
+ urls.map(async (url) => {
101
+ const code = (await server.transformRequest(url + "?direct"))?.code || "", prefix = `/* [collectStyle] ${url} */`;
102
+ try {
103
+ const { transform } = await import("lightningcss"), processed = transform({
104
+ filename: "code.css",
105
+ code: Buffer.from(code),
106
+ ...server.config.css.lightningcss
107
+ }).code.toString();
108
+ return [prefix, processed];
109
+ } catch (err) {
110
+ return console.error(` [one] Error post-processing CSS, leaving un-processed: ${err}`), [prefix, code];
111
+ }
112
+ })
113
+ )).flat().filter(Boolean).join(`
114
+
115
+ `);
116
+ }
117
+ async function collectStyleUrls(server, entries) {
118
+ const visited = /* @__PURE__ */ new Set();
119
+ async function traverse(url) {
120
+ const [, id] = await server.moduleGraph.resolveUrl(url);
121
+ if (visited.has(id))
122
+ return;
123
+ visited.add(id);
124
+ const mod = server.moduleGraph.getModuleById(id);
125
+ mod && await Promise.all([...mod.importedModules].map((childMod) => traverse(childMod.url)));
126
+ }
127
+ return await Promise.all(entries.map((e) => server.transformRequest(e))), await Promise.all(entries.map((url) => traverse(url))), [...visited].filter((url) => url.match(CSS_LANGS_RE));
128
+ }
129
+ const CSS_LANGS_RE = /\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/;
130
+ //# sourceMappingURL=vitePluginSsrCss.js.map
package/dist/cjs/vite.cjs CHANGED
@@ -26,6 +26,7 @@ __export(vite_exports, {
26
26
  makePluginWebOnly: () => import_makePluginWebOnly.makePluginWebOnly,
27
27
  one: () => import_one.one,
28
28
  removeReactNativeWebAnimatedPlugin: () => import_removeReactNativeWebAnimatedPlugin.removeReactNativeWebAnimatedPlugin,
29
+ resolvePath: () => import_resolve.resolvePath,
29
30
  setCurrentRequestHeaders: () => import_headers.setCurrentRequestHeaders,
30
31
  vitePluginSsrCss: () => import_vitePluginSsrCss.vitePluginSsrCss
31
32
  });
@@ -35,6 +36,7 @@ var import_clientTreeShakePlugin = require("./vite/clientTreeShakePlugin.cjs"),
35
36
  import_vitePluginSsrCss = require("./vite/vitePluginSsrCss.cjs"),
36
37
  import_removeReactNativeWebAnimatedPlugin = require("./vite/removeReactNativeWebAnimatedPlugin.cjs"),
37
38
  import_makePluginWebOnly = require("./vite/makePluginWebOnly.cjs"),
39
+ import_resolve = require("@vxrn/resolve"),
38
40
  import_headers = require("./vite/headers.cjs"),
39
41
  import_build = require("./vite/build.cjs"),
40
42
  import_one = require("./vite/one.cjs");
@@ -0,0 +1,29 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var vite_exports = {};
16
+ __export(vite_exports, {
17
+ build: () => import_build.build,
18
+ clientTreeShakePlugin: () => import_clientTreeShakePlugin.clientTreeShakePlugin,
19
+ createFileSystemRouter: () => import_createFileSystemRouter.createFileSystemRouter,
20
+ makePluginWebOnly: () => import_makePluginWebOnly.makePluginWebOnly,
21
+ one: () => import_one.one,
22
+ removeReactNativeWebAnimatedPlugin: () => import_removeReactNativeWebAnimatedPlugin.removeReactNativeWebAnimatedPlugin,
23
+ resolvePath: () => import_resolve.resolvePath,
24
+ setCurrentRequestHeaders: () => import_headers.setCurrentRequestHeaders,
25
+ vitePluginSsrCss: () => import_vitePluginSsrCss.vitePluginSsrCss
26
+ });
27
+ module.exports = __toCommonJS(vite_exports);
28
+ var import_clientTreeShakePlugin = require("./vite/clientTreeShakePlugin"), import_createFileSystemRouter = require("./vite/createFileSystemRouter"), import_vitePluginSsrCss = require("./vite/vitePluginSsrCss"), import_removeReactNativeWebAnimatedPlugin = require("./vite/removeReactNativeWebAnimatedPlugin"), import_makePluginWebOnly = require("./vite/makePluginWebOnly"), import_resolve = require("@vxrn/resolve"), import_headers = require("./vite/headers"), import_build = require("./vite/build"), import_one = require("./vite/one");
29
+ //# sourceMappingURL=vite.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/vite.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mCAAsC,yCACtC,gCAAuC,0CACvC,0BAAiC,oCACjC,4CAAmD,sDACnD,2BAAkC,qCAClC,iBAA4B,0BAE5B,iBAAyC,2BAEzC,eAAsB,yBACtB,aAAoB;",
5
+ "names": []
6
+ }
@@ -21,11 +21,12 @@ __export(vite_exports, {
21
21
  makePluginWebOnly: () => import_makePluginWebOnly.makePluginWebOnly,
22
22
  one: () => import_one.one,
23
23
  removeReactNativeWebAnimatedPlugin: () => import_removeReactNativeWebAnimatedPlugin.removeReactNativeWebAnimatedPlugin,
24
+ resolvePath: () => import_resolve.resolvePath,
24
25
  setCurrentRequestHeaders: () => import_headers.setCurrentRequestHeaders,
25
26
  vitePluginSsrCss: () => import_vitePluginSsrCss.vitePluginSsrCss
26
27
  });
27
28
  module.exports = __toCommonJS(vite_exports);
28
- var import_clientTreeShakePlugin = require("./vite/clientTreeShakePlugin"), import_createFileSystemRouter = require("./vite/createFileSystemRouter"), import_vitePluginSsrCss = require("./vite/vitePluginSsrCss"), import_removeReactNativeWebAnimatedPlugin = require("./vite/removeReactNativeWebAnimatedPlugin"), import_makePluginWebOnly = require("./vite/makePluginWebOnly"), import_headers = require("./vite/headers"), import_build = require("./vite/build"), import_one = require("./vite/one");
29
+ var import_clientTreeShakePlugin = require("./vite/clientTreeShakePlugin"), import_createFileSystemRouter = require("./vite/createFileSystemRouter"), import_vitePluginSsrCss = require("./vite/vitePluginSsrCss"), import_removeReactNativeWebAnimatedPlugin = require("./vite/removeReactNativeWebAnimatedPlugin"), import_makePluginWebOnly = require("./vite/makePluginWebOnly"), import_resolve = require("@vxrn/resolve"), import_headers = require("./vite/headers"), import_build = require("./vite/build"), import_one = require("./vite/one");
29
30
  // Annotate the CommonJS export names for ESM import in node:
30
31
  0 && (module.exports = {
31
32
  build,
@@ -34,6 +35,7 @@ var import_clientTreeShakePlugin = require("./vite/clientTreeShakePlugin"), impo
34
35
  makePluginWebOnly,
35
36
  one,
36
37
  removeReactNativeWebAnimatedPlugin,
38
+ resolvePath,
37
39
  setCurrentRequestHeaders,
38
40
  vitePluginSsrCss
39
41
  });
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Users/n8/one/packages/one/src/vite.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;AACA,mCAAsC,yCACtC,gCAAuC,0CACvC,0BAAiC,oCACjC,4CAAmD,sDACnD,2BAAkC,qCAElC,iBAAyC,2BAEzC,eAAsB,yBACtB,aAAoB;",
4
+ "mappings": ";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;AACA,mCAAsC,yCACtC,gCAAuC,0CACvC,0BAAiC,oCACjC,4CAAmD,sDACnD,2BAAkC,qCAClC,iBAA4B,0BAE5B,iBAAyC,2BAEzC,eAAsB,yBACtB,aAAoB;",
5
5
  "names": []
6
6
  }
@@ -0,0 +1,24 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var getQueryKey_exports = {};
16
+ __export(getQueryKey_exports, {
17
+ getQueryKey: () => getQueryKey
18
+ });
19
+ module.exports = __toCommonJS(getQueryKey_exports);
20
+ var import_hashString = require("../utils/hashString");
21
+ function getQueryKey(query) {
22
+ return (0, import_hashString.hashString)(JSON.stringify(query.ast));
23
+ }
24
+ //# sourceMappingURL=getQueryKey.js.map
@@ -0,0 +1,23 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var isZeroQuery_exports = {};
16
+ __export(isZeroQuery_exports, {
17
+ isZeroQuery: () => isZeroQuery
18
+ });
19
+ module.exports = __toCommonJS(isZeroQuery_exports);
20
+ function isZeroQuery(obj) {
21
+ return !(!obj || typeof obj != "object" || !obj.ast || !obj.ast.table);
22
+ }
23
+ //# sourceMappingURL=isZeroQuery.js.map
@@ -0,0 +1,38 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var resolveQuery_exports = {};
16
+ __export(resolveQuery_exports, {
17
+ resolveZeroQuery: () => resolveZeroQuery
18
+ });
19
+ module.exports = __toCommonJS(resolveQuery_exports);
20
+ async function resolveZeroQuery(query) {
21
+ const view = query.materialize(), tm = setTimeout(() => {
22
+ console.warn(
23
+ " Warning: query slow to resolve, ensure Zero server is running",
24
+ JSON.stringify(query.ast, null, 2)
25
+ );
26
+ }, 2e3);
27
+ return new Promise((res, rej) => {
28
+ try {
29
+ const unsubscribe = view.addListener((snapshot) => {
30
+ unsubscribe(), clearTimeout(tm), res(snapshot);
31
+ });
32
+ view.hydrate();
33
+ } catch (err) {
34
+ clearTimeout(tm), rej(err);
35
+ }
36
+ });
37
+ }
38
+ //# sourceMappingURL=resolveQuery.js.map
@@ -0,0 +1,28 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var subscribeToQuery_exports = {};
16
+ __export(subscribeToQuery_exports, {
17
+ subscribeToZeroQuery: () => subscribeToZeroQuery
18
+ });
19
+ module.exports = __toCommonJS(subscribeToQuery_exports);
20
+ function subscribeToZeroQuery(query, onUpdate) {
21
+ const view = query.materialize();
22
+ view.hydrate();
23
+ const unsubscribe = view.addListener(onUpdate);
24
+ return () => {
25
+ unsubscribe(), view.destroy();
26
+ };
27
+ }
28
+ //# sourceMappingURL=subscribeToQuery.js.map
@@ -0,0 +1,14 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from == "object" || typeof from == "function")
7
+ for (let key of __getOwnPropNames(from))
8
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
+ return to;
10
+ };
11
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
+ var types_exports = {};
13
+ module.exports = __toCommonJS(types_exports);
14
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1,47 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var useQuery_exports = {};
16
+ __export(useQuery_exports, {
17
+ useQuery: () => useQuery
18
+ });
19
+ module.exports = __toCommonJS(useQuery_exports);
20
+ var import_react = require("react"), import_getQueryKey = require("./getQueryKey"), import_resolveQuery = require("./resolveQuery"), import_useQueryZero = require("./useQueryZero");
21
+ let clientInitialData = globalThis.__vxrnPostRenderData__;
22
+ const serverQueryData = {};
23
+ globalThis.__vxrnServerData__ = serverQueryData;
24
+ const promises = /* @__PURE__ */ new WeakMap(), useQuery = (query, enable = !0) => {
25
+ const snapshot = (0, import_useQueryZero.useQuery)(query, enable), queryIdRef = (0, import_react.useRef)();
26
+ query && !queryIdRef.current && (queryIdRef.current = (0, import_getQueryKey.getQueryKey)(query));
27
+ const queryId = queryIdRef.current || "";
28
+ if (typeof window > "u") {
29
+ if (!query) return [];
30
+ const promise = promises.get(query), value = serverQueryData[queryId];
31
+ if (value) return value;
32
+ if (!promise) {
33
+ const promise2 = new Promise((res, rej) => {
34
+ (0, import_resolveQuery.resolveZeroQuery)(query).then((val) => {
35
+ serverQueryData[queryId] = val, res();
36
+ }).catch((err) => {
37
+ promises.set(query, null), rej(err);
38
+ });
39
+ });
40
+ throw promises.set(query, promise2), promise2;
41
+ }
42
+ if (promise) throw promise;
43
+ return [];
44
+ }
45
+ return clientInitialData && !snapshot ? clientInitialData[queryId] || [] : snapshot || [];
46
+ };
47
+ //# sourceMappingURL=useQuery.js.map
@@ -0,0 +1,38 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var useQueryZero_exports = {};
16
+ __export(useQueryZero_exports, {
17
+ useQuery: () => useQuery
18
+ });
19
+ module.exports = __toCommonJS(useQueryZero_exports);
20
+ var import_react = require("react");
21
+ function useQuery(q, enable = !0) {
22
+ const queryImpl = q, [snapshot, setSnapshot] = (0, import_react.useState)(void 0), [, setView] = (0, import_react.useState)(void 0);
23
+ return (0, import_react.useLayoutEffect)(() => {
24
+ if (enable) {
25
+ const view = q.materialize();
26
+ setView(view);
27
+ const unsubscribe = view.addListener((snapshot2) => {
28
+ setSnapshot(structuredClone(snapshot2));
29
+ });
30
+ return view.hydrate(), () => {
31
+ unsubscribe(), view.destroy();
32
+ };
33
+ }
34
+ return setSnapshot(queryImpl.singular ? void 0 : []), setView(void 0), () => {
35
+ };
36
+ }, [JSON.stringify(enable ? q.ast : null)]), snapshot;
37
+ }
38
+ //# sourceMappingURL=useQueryZero.js.map
@@ -0,0 +1,23 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var zero_exports = {};
16
+ __export(zero_exports, {
17
+ isZeroQuery: () => import_isZeroQuery.isZeroQuery,
18
+ resolveZeroQuery: () => import_resolveQuery.resolveZeroQuery,
19
+ useQuery: () => import_useQuery.useQuery
20
+ });
21
+ module.exports = __toCommonJS(zero_exports);
22
+ var import_useQuery = require("./zero/useQuery"), import_resolveQuery = require("./zero/resolveQuery"), import_isZeroQuery = require("./zero/isZeroQuery");
23
+ //# sourceMappingURL=zero.js.map
@@ -0,0 +1,10 @@
1
+ async function run(args) {
2
+ const { patch } = await import("vxrn");
3
+ await patch({
4
+ root: process.cwd()
5
+ });
6
+ }
7
+ export {
8
+ run
9
+ };
10
+ //# sourceMappingURL=patch.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/cli/patch.ts"],
4
+ "mappings": "AAAA,eAAsB,IAAI,MAAU;AAClC,QAAM,EAAE,MAAM,IAAI,MAAM,OAAO,MAAM;AACrC,QAAM,MAAM;AAAA,IACV,MAAM,QAAQ,IAAI;AAAA,EACpB,CAAC;AACH;",
5
+ "names": []
6
+ }
@@ -0,0 +1,10 @@
1
+ async function run(args) {
2
+ const {
3
+ patch
4
+ } = await import("vxrn");
5
+ await patch({
6
+ root: process.cwd()
7
+ });
8
+ }
9
+ export { run };
10
+ //# sourceMappingURL=patch.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["run","args","patch","root","process","cwd"],"sources":["../../../src/cli/patch.ts"],"sourcesContent":[null],"mappings":"AAAA,eAAsBA,IAAIC,IAAA,EAAU;EAClC,MAAM;IAAEC;EAAM,IAAI,MAAM,OAAO,MAAM;EACrC,MAAMA,KAAA,CAAM;IACVC,IAAA,EAAMC,OAAA,CAAQC,GAAA,CAAI;EACpB,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ async function run(args) {
2
+ var { patch } = await import("vxrn");
3
+ await patch({
4
+ root: process.cwd()
5
+ });
6
+ }
7
+ export {
8
+ run
9
+ };
10
+ //# sourceMappingURL=patch.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/cli/Users/n8/one/packages/one/src/cli/patch.ts"],
4
+ "mappings": "AAAA,eAAsBA,IAAIC,MAAQ;AAChC,MAAM,EAAEC,MAAK,IAAK,MAAM,OAAO,MAAA;AAC/B,QAAMA,MAAM;IACVC,MAAMC,QAAQC,IAAG;EACnB,CAAA;AACF;",
5
+ "names": ["run", "args", "patch", "root", "process", "cwd"]
6
+ }
package/dist/esm/cli.js CHANGED
@@ -151,6 +151,17 @@ const modes = {
151
151
  root: process.cwd()
152
152
  });
153
153
  }
154
+ }), patch = defineCommand({
155
+ meta: {
156
+ name: "patch",
157
+ version: "0.0.0",
158
+ description: "Apply package patches"
159
+ },
160
+ args: {},
161
+ async run({ args }) {
162
+ const { run } = await import("./cli/patch");
163
+ await run(args);
164
+ }
154
165
  }), subCommands = {
155
166
  dev,
156
167
  clean,
@@ -158,6 +169,7 @@ const modes = {
158
169
  prebuild,
159
170
  "run:ios": runIos,
160
171
  "run:android": runAndroid,
172
+ patch,
161
173
  serve: serveCommand
162
174
  }, subMain = defineCommand({
163
175
  meta: {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/cli.ts"],
4
- "mappings": "AAAA,SAAS,eAAe,eAAe;AACvC,OAAO,YAAY;AACnB,SAAS,oBAAoB;AAC7B,OAAO,UAAU;AACjB,SAAS,qBAAqB;AAE9B,SAAS,oBAAoB;AAC3B,MAAI;AACJ,EAAI,OAAO,YAAc,MAEvB,UAAU,YAGV,UAAU,KAAK,QAAQ,cAAc,YAAY,GAAG,CAAC;AAEvD,QAAM,cAAc,KAAK,KAAK,SAAS,MAAM,MAAM,cAAc;AAEj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AAAA,EAC5B,MAAM;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA;AACF,CAAC,GAEK,OAAO,cAAc;AAAA,EACzB,MAAM;AAAA,IACJ,MAAM;AAAA,IACN;AAAA,IACA,aAAa;AAAA,EACf;AAAA,EACA,MAAM;AAAA,IACJ,MAAM;AAAA,MACJ,MAAM;AAAA,MACN,aAAa;AAAA,MACb,UAAU;AAAA,IACZ;AAAA,EACF;AAAA,EACA,MAAM,IAAI,EAAE,KAAK,GAAG;AAClB,QAAI,YAAY,KAAK,IAAI,GAAG;AAE1B,cAAQ,OAAO;AACf;AAAA,IACF;AAEA,UAAM,EAAE,QAAQ,IAAI,MAAM,OAAO,YAAY;AAC7C,UAAM,QAAQ,IAAI;AAAA,EACpB;AACF,CAAC;AAED,QAAQ,IAAI;",
5
5
  "names": ["clean"]
6
6
  }
package/dist/esm/cli.mjs CHANGED
@@ -187,6 +187,22 @@ const modes = {
187
187
  });
188
188
  }
189
189
  }),
190
+ patch = defineCommand({
191
+ meta: {
192
+ name: "patch",
193
+ version: "0.0.0",
194
+ description: "Apply package patches"
195
+ },
196
+ args: {},
197
+ async run({
198
+ args
199
+ }) {
200
+ const {
201
+ run
202
+ } = await import("./cli/patch.mjs");
203
+ await run(args);
204
+ }
205
+ }),
190
206
  subCommands = {
191
207
  dev,
192
208
  clean,
@@ -194,6 +210,7 @@ const modes = {
194
210
  prebuild,
195
211
  "run:ios": runIos,
196
212
  "run:android": runAndroid,
213
+ patch,
197
214
  serve: serveCommand
198
215
  },
199
216
  subMain = defineCommand({
@@ -1 +1 @@
1
- {"version":3,"names":["defineCommand","runMain","colors","readFileSync","path","fileURLToPath","getPackageVersion","dirname","__dirname","import","meta","url","packagePath","join","JSON","parse","version","sep","console","warn","bgYellow","yellow","modes","development","production","dev","name","description","args","clean","type","host","port","https","mode","run","clean2","buildCommand","step","required","only","build","process","exit","serveCommand","platform","compress","cacheHeaders","serve","prebuild","runIos","runAndroid","vxrnClean","root","cwd","subCommands","subMain","main","cliMain"],"sources":["../../src/cli.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EAAeC,OAAA,QAAe;AACvC,OAAOC,MAAA,MAAY;AACnB,SAASC,YAAA,QAAoB;AAC7B,OAAOC,IAAA,MAAU;AACjB,SAASC,aAAA,QAAqB;AAE9B,SAASC,kBAAA,EAAoB;EAC3B,IAAIC,OAAA;EACA,OAAOC,SAAA,GAAc,MAEvBD,OAAA,GAAUC,SAAA,GAGVD,OAAA,GAAUH,IAAA,CAAKG,OAAA,CAAQF,aAAA,CAAcI,MAAA,CAAAC,IAAA,CAAYC,GAAG,CAAC;EAEvD,MAAMC,WAAA,GAAcR,IAAA,CAAKS,IAAA,CAAKN,OAAA,EAAS,MAAM,MAAM,cAAc;EAEjE,OADoBO,IAAA,CAAKC,KAAA,CAAMZ,YAAA,CAAaS,WAAA,EAAa,OAAO,CAAC,EAC9CI,OAAA;AACrB;AAEA,MAAMA,OAAA,GAAUV,iBAAA,CAAkB;AAE9BF,IAAA,CAAKa,GAAA,KAAQ,OACfC,OAAA,CAAQC,IAAA,CACNjB,MAAA,CAAOkB,QAAA,CAAS,yBAAyB,IACvClB,MAAA,CAAOmB,MAAA,CACL,kHACF,CACJ;AAGF,MAAMC,KAAA,GAAQ;IACZC,WAAA,EAAa;IACbC,UAAA,EAAY;EACd;EAEMC,GAAA,GAAMzB,aAAA,CAAc;IACxBU,IAAA,EAAM;MACJgB,IAAA,EAAM;MACNV,OAAA;MACAW,WAAA,EAAa;IACf;IACAC,IAAA,EAAM;MACJC,KAAA,EAAO;QACLC,IAAA,EAAM;MACR;MACAC,IAAA,EAAM;QACJD,IAAA,EAAM;MACR;MACAE,IAAA,EAAM;QACJF,IAAA,EAAM;MACR;MACAG,KAAA,EAAO;QACLH,IAAA,EAAM;MACR;MACAI,IAAA,EAAM;QACJJ,IAAA,EAAM;QACNH,WAAA,EACE;MACJ;IACF;IACA,MAAMQ,IAA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KAAA,EAAOuB;MAAU,IAAI,MAAM,OAAO,MAAM;MAChD,MAAMA,SAAA,CAAU;QACdC,IAAA,EAAMX,OAAA,CAAQY,GAAA,CAAI;MACpB,CAAC;IACH;EACF,CAAC;EAEKC,WAAA,GAAc;IAClB9B,GAAA;IACAI,KAAA;IACAY,KAAA,EAAOJ,YAAA;IACPY,QAAA;IACA,WAAWC,MAAA;IACX,eAAeC,UAAA;IACfH,KAAA,EAAOJ;EACT;EAGMY,OAAA,GAAUxD,aAAA,CAAc;IAC5BU,IAAA,EAAM;MACJgB,IAAA,EAAM;MACNV,OAAA;MACAW,WAAA,EAAa;IACf;IACA4B;EACF,CAAC;EAEKE,IAAA,GAAOzD,aAAA,CAAc;IACzBU,IAAA,EAAM;MACJgB,IAAA,EAAM;MACNV,OAAA;MACAW,WAAA,EAAa;IACf;IACAC,IAAA,EAAM;MACJF,IAAA,EAAM;QACJI,IAAA,EAAM;QACNH,WAAA,EAAa;QACbY,QAAA,EAAU;MACZ;IACF;IACA,MAAMJ,IAAI;MAAEP;IAAK,GAAG;MAClB,IAAI2B,WAAA,CAAY3B,IAAA,CAAKF,IAAI,GAAG;QAE1BzB,OAAA,CAAQuD,OAAO;QACf;MACF;MAEA,MAAM;QAAEE;MAAQ,IAAI,MAAM,OAAO,gBAAY;MAC7C,MAAMA,OAAA,CAAQ9B,IAAI;IACpB;EACF,CAAC;AAED3B,OAAA,CAAQwD,IAAI","ignoreList":[]}
1
+ {"version":3,"names":["defineCommand","runMain","colors","readFileSync","path","fileURLToPath","getPackageVersion","dirname","__dirname","import","meta","url","packagePath","join","JSON","parse","version","sep","console","warn","bgYellow","yellow","modes","development","production","dev","name","description","args","clean","type","host","port","https","mode","run","clean2","buildCommand","step","required","only","build","process","exit","serveCommand","platform","compress","cacheHeaders","serve","prebuild","runIos","runAndroid","vxrnClean","root","cwd","patch","subCommands","subMain","main","cliMain"],"sources":["../../src/cli.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,aAAA,EA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