@farm.js/core 0.1.0-beta.4 → 0.1.0-beta.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (441) hide show
  1. package/dist/internal/build-runtime.cjs +1 -1
  2. package/dist/internal/build-runtime.cjs.map +1 -1
  3. package/dist/internal/build-runtime.mjs +5 -5
  4. package/dist/plugin.cjs.map +1 -1
  5. package/dist/plugin.mjs +4 -4
  6. package/dist/server-query-client.cjs +1 -1
  7. package/dist/server-query-client.cjs.map +1 -1
  8. package/dist/server-query-client.mjs +1 -1
  9. package/dist/server.cjs +1 -1
  10. package/dist/server.cjs.map +1 -1
  11. package/dist/server.mjs +4 -4
  12. package/dist/version.cjs +1 -1
  13. package/dist/version.cjs.map +1 -1
  14. package/dist/version.mjs +1 -1
  15. package/dist/vite.cjs +1 -1
  16. package/dist/vite.cjs.map +1 -1
  17. package/dist/vite.mjs +4 -4
  18. package/package.json +1 -1
  19. package/dist/after.cjs +0 -227
  20. package/dist/after.cjs.map +0 -1
  21. package/dist/after.d.mts +0 -25
  22. package/dist/after.d.ts +0 -25
  23. package/dist/after.mjs +0 -14
  24. package/dist/after.mjs.map +0 -1
  25. package/dist/agent-runtime.cjs +0 -2379
  26. package/dist/agent-runtime.cjs.map +0 -1
  27. package/dist/agent-runtime.d.mts +0 -94
  28. package/dist/agent-runtime.d.ts +0 -94
  29. package/dist/agent-runtime.mjs +0 -479
  30. package/dist/agent-runtime.mjs.map +0 -1
  31. package/dist/api/route-manager.d.mts +0 -66
  32. package/dist/api/route-manager.d.ts +0 -66
  33. package/dist/api/runtime.d.mts +0 -3
  34. package/dist/api/runtime.d.ts +0 -3
  35. package/dist/api.cjs +0 -4100
  36. package/dist/api.cjs.map +0 -1
  37. package/dist/api.d.mts +0 -48
  38. package/dist/api.d.ts +0 -48
  39. package/dist/api.mjs +0 -93
  40. package/dist/api.mjs.map +0 -1
  41. package/dist/app-BjN-da13.d.ts +0 -300
  42. package/dist/app-CakAr8Be.d.mts +0 -300
  43. package/dist/app-markdown.cjs +0 -220
  44. package/dist/app-markdown.cjs.map +0 -1
  45. package/dist/app-markdown.d.mts +0 -22
  46. package/dist/app-markdown.d.ts +0 -22
  47. package/dist/app-markdown.mjs +0 -26
  48. package/dist/app-markdown.mjs.map +0 -1
  49. package/dist/cache.cjs +0 -945
  50. package/dist/cache.cjs.map +0 -1
  51. package/dist/cache.d.mts +0 -192
  52. package/dist/cache.d.ts +0 -192
  53. package/dist/cache.mjs +0 -46
  54. package/dist/cache.mjs.map +0 -1
  55. package/dist/chunk-2CUKEMVR.mjs +0 -872
  56. package/dist/chunk-2CUKEMVR.mjs.map +0 -1
  57. package/dist/chunk-2ED5Q2GH.mjs +0 -422
  58. package/dist/chunk-2ED5Q2GH.mjs.map +0 -1
  59. package/dist/chunk-32W4QEJP.mjs +0 -158
  60. package/dist/chunk-32W4QEJP.mjs.map +0 -1
  61. package/dist/chunk-3U3ZUQAQ.mjs +0 -41
  62. package/dist/chunk-3U3ZUQAQ.mjs.map +0 -1
  63. package/dist/chunk-3XNTL3FQ.mjs +0 -452
  64. package/dist/chunk-3XNTL3FQ.mjs.map +0 -1
  65. package/dist/chunk-44ZCFSKE.mjs +0 -84
  66. package/dist/chunk-44ZCFSKE.mjs.map +0 -1
  67. package/dist/chunk-4S3ORGFA.mjs +0 -44
  68. package/dist/chunk-4S3ORGFA.mjs.map +0 -1
  69. package/dist/chunk-5BY76U2M.mjs +0 -1
  70. package/dist/chunk-5BY76U2M.mjs.map +0 -1
  71. package/dist/chunk-5ZGPRGWV.mjs +0 -136
  72. package/dist/chunk-5ZGPRGWV.mjs.map +0 -1
  73. package/dist/chunk-65A7QIKI.mjs +0 -142
  74. package/dist/chunk-65A7QIKI.mjs.map +0 -1
  75. package/dist/chunk-74YTBPTY.mjs +0 -450
  76. package/dist/chunk-74YTBPTY.mjs.map +0 -1
  77. package/dist/chunk-7HO6AEOP.mjs +0 -74
  78. package/dist/chunk-7HO6AEOP.mjs.map +0 -1
  79. package/dist/chunk-7MABZJIM.mjs +0 -29
  80. package/dist/chunk-7MABZJIM.mjs.map +0 -1
  81. package/dist/chunk-7ZY5AIJO.mjs +0 -161
  82. package/dist/chunk-7ZY5AIJO.mjs.map +0 -1
  83. package/dist/chunk-AJWRO5WE.mjs +0 -6241
  84. package/dist/chunk-AJWRO5WE.mjs.map +0 -1
  85. package/dist/chunk-ALCLXXTY.mjs +0 -187
  86. package/dist/chunk-ALCLXXTY.mjs.map +0 -1
  87. package/dist/chunk-AOBXKNS5.mjs +0 -7631
  88. package/dist/chunk-AOBXKNS5.mjs.map +0 -1
  89. package/dist/chunk-AZ7YUVNR.mjs +0 -65
  90. package/dist/chunk-AZ7YUVNR.mjs.map +0 -1
  91. package/dist/chunk-B232I2GP.mjs +0 -163
  92. package/dist/chunk-B232I2GP.mjs.map +0 -1
  93. package/dist/chunk-BHG3LVHH.mjs +0 -176
  94. package/dist/chunk-BHG3LVHH.mjs.map +0 -1
  95. package/dist/chunk-C2ROET2V.mjs +0 -718
  96. package/dist/chunk-C2ROET2V.mjs.map +0 -1
  97. package/dist/chunk-C3DLZMBU.mjs +0 -597
  98. package/dist/chunk-C3DLZMBU.mjs.map +0 -1
  99. package/dist/chunk-CGILA3WO.mjs +0 -14
  100. package/dist/chunk-CGILA3WO.mjs.map +0 -1
  101. package/dist/chunk-E2MPIBRE.mjs +0 -149
  102. package/dist/chunk-E2MPIBRE.mjs.map +0 -1
  103. package/dist/chunk-E6EPN5BT.mjs +0 -203
  104. package/dist/chunk-E6EPN5BT.mjs.map +0 -1
  105. package/dist/chunk-EJ7T4TPB.mjs +0 -622
  106. package/dist/chunk-EJ7T4TPB.mjs.map +0 -1
  107. package/dist/chunk-FQYDHKKU.mjs +0 -128
  108. package/dist/chunk-FQYDHKKU.mjs.map +0 -1
  109. package/dist/chunk-FRPWCMMG.mjs +0 -299
  110. package/dist/chunk-FRPWCMMG.mjs.map +0 -1
  111. package/dist/chunk-GN72QAIH.mjs +0 -146
  112. package/dist/chunk-GN72QAIH.mjs.map +0 -1
  113. package/dist/chunk-GQVGIUSN.mjs +0 -149
  114. package/dist/chunk-GQVGIUSN.mjs.map +0 -1
  115. package/dist/chunk-GS6K5OCM.mjs +0 -407
  116. package/dist/chunk-GS6K5OCM.mjs.map +0 -1
  117. package/dist/chunk-GXASWWJU.mjs +0 -364
  118. package/dist/chunk-GXASWWJU.mjs.map +0 -1
  119. package/dist/chunk-GY2STC2S.mjs +0 -180
  120. package/dist/chunk-GY2STC2S.mjs.map +0 -1
  121. package/dist/chunk-H2FA2SBS.mjs +0 -51
  122. package/dist/chunk-H2FA2SBS.mjs.map +0 -1
  123. package/dist/chunk-HNIQFZKB.mjs +0 -3550
  124. package/dist/chunk-HNIQFZKB.mjs.map +0 -1
  125. package/dist/chunk-ITN462YM.mjs +0 -98
  126. package/dist/chunk-ITN462YM.mjs.map +0 -1
  127. package/dist/chunk-J23HNLFY.mjs +0 -72
  128. package/dist/chunk-J23HNLFY.mjs.map +0 -1
  129. package/dist/chunk-J4FNJ5IU.mjs +0 -179
  130. package/dist/chunk-J4FNJ5IU.mjs.map +0 -1
  131. package/dist/chunk-JDEOUK5V.mjs +0 -427
  132. package/dist/chunk-JDEOUK5V.mjs.map +0 -1
  133. package/dist/chunk-JK25YEN6.mjs +0 -219
  134. package/dist/chunk-JK25YEN6.mjs.map +0 -1
  135. package/dist/chunk-K4667E2Q.mjs +0 -1916
  136. package/dist/chunk-K4667E2Q.mjs.map +0 -1
  137. package/dist/chunk-LGHEOHBU.mjs +0 -218
  138. package/dist/chunk-LGHEOHBU.mjs.map +0 -1
  139. package/dist/chunk-LLC7BNXW.mjs +0 -275
  140. package/dist/chunk-LLC7BNXW.mjs.map +0 -1
  141. package/dist/chunk-LM2YNO4U.mjs +0 -24
  142. package/dist/chunk-LM2YNO4U.mjs.map +0 -1
  143. package/dist/chunk-MIUW47JX.mjs +0 -639
  144. package/dist/chunk-MIUW47JX.mjs.map +0 -1
  145. package/dist/chunk-NM3CRAAL.mjs +0 -467
  146. package/dist/chunk-NM3CRAAL.mjs.map +0 -1
  147. package/dist/chunk-NNLCAVB6.mjs +0 -391
  148. package/dist/chunk-NNLCAVB6.mjs.map +0 -1
  149. package/dist/chunk-P7QDS5AT.mjs +0 -191
  150. package/dist/chunk-P7QDS5AT.mjs.map +0 -1
  151. package/dist/chunk-PFE6GMNE.mjs +0 -603
  152. package/dist/chunk-PFE6GMNE.mjs.map +0 -1
  153. package/dist/chunk-QGOHVJ6J.mjs +0 -63
  154. package/dist/chunk-QGOHVJ6J.mjs.map +0 -1
  155. package/dist/chunk-QGQX7SFC.mjs +0 -180
  156. package/dist/chunk-QGQX7SFC.mjs.map +0 -1
  157. package/dist/chunk-QKVUNGAH.mjs +0 -39
  158. package/dist/chunk-QKVUNGAH.mjs.map +0 -1
  159. package/dist/chunk-QM746KUO.mjs +0 -56
  160. package/dist/chunk-QM746KUO.mjs.map +0 -1
  161. package/dist/chunk-RBRLLZL5.mjs +0 -81
  162. package/dist/chunk-RBRLLZL5.mjs.map +0 -1
  163. package/dist/chunk-RHIFZZUI.mjs +0 -69
  164. package/dist/chunk-RHIFZZUI.mjs.map +0 -1
  165. package/dist/chunk-RSKVYESE.mjs +0 -187
  166. package/dist/chunk-RSKVYESE.mjs.map +0 -1
  167. package/dist/chunk-SADGIRS2.mjs +0 -211
  168. package/dist/chunk-SADGIRS2.mjs.map +0 -1
  169. package/dist/chunk-SCFX4UTD.mjs +0 -28
  170. package/dist/chunk-SCFX4UTD.mjs.map +0 -1
  171. package/dist/chunk-SL6HTIOK.mjs +0 -66
  172. package/dist/chunk-SL6HTIOK.mjs.map +0 -1
  173. package/dist/chunk-SPBBQLXI.mjs +0 -207
  174. package/dist/chunk-SPBBQLXI.mjs.map +0 -1
  175. package/dist/chunk-T4QJQK76.mjs +0 -459
  176. package/dist/chunk-T4QJQK76.mjs.map +0 -1
  177. package/dist/chunk-TQAEEJB4.mjs +0 -157
  178. package/dist/chunk-TQAEEJB4.mjs.map +0 -1
  179. package/dist/chunk-UB5UOSHB.mjs +0 -458
  180. package/dist/chunk-UB5UOSHB.mjs.map +0 -1
  181. package/dist/chunk-USWZZUEH.mjs +0 -25
  182. package/dist/chunk-USWZZUEH.mjs.map +0 -1
  183. package/dist/chunk-UVCIEUJC.mjs +0 -16
  184. package/dist/chunk-UVCIEUJC.mjs.map +0 -1
  185. package/dist/chunk-UXUAWNO5.mjs +0 -396
  186. package/dist/chunk-UXUAWNO5.mjs.map +0 -1
  187. package/dist/chunk-V3XURYJO.mjs +0 -756
  188. package/dist/chunk-V3XURYJO.mjs.map +0 -1
  189. package/dist/chunk-V6WE6JSZ.mjs +0 -352
  190. package/dist/chunk-V6WE6JSZ.mjs.map +0 -1
  191. package/dist/chunk-V7RBCSDJ.mjs +0 -170
  192. package/dist/chunk-V7RBCSDJ.mjs.map +0 -1
  193. package/dist/chunk-VCANOYFI.mjs +0 -588
  194. package/dist/chunk-VCANOYFI.mjs.map +0 -1
  195. package/dist/chunk-VVKWFZAH.mjs +0 -753
  196. package/dist/chunk-VVKWFZAH.mjs.map +0 -1
  197. package/dist/chunk-VY2UYN5R.mjs +0 -224
  198. package/dist/chunk-VY2UYN5R.mjs.map +0 -1
  199. package/dist/chunk-W2CRQFF6.mjs +0 -1352
  200. package/dist/chunk-W2CRQFF6.mjs.map +0 -1
  201. package/dist/chunk-W4UIVMVI.mjs +0 -10
  202. package/dist/chunk-W4UIVMVI.mjs.map +0 -1
  203. package/dist/chunk-WZ5QFROO.mjs +0 -23
  204. package/dist/chunk-WZ5QFROO.mjs.map +0 -1
  205. package/dist/chunk-XIVV5IWN.mjs +0 -541
  206. package/dist/chunk-XIVV5IWN.mjs.map +0 -1
  207. package/dist/chunk-YW7OBE6Q.mjs +0 -119
  208. package/dist/chunk-YW7OBE6Q.mjs.map +0 -1
  209. package/dist/chunk-Z5CQMP54.mjs +0 -365
  210. package/dist/chunk-Z5CQMP54.mjs.map +0 -1
  211. package/dist/chunk-ZBE6MLHL.mjs +0 -230
  212. package/dist/chunk-ZBE6MLHL.mjs.map +0 -1
  213. package/dist/chunk-ZZ57EH5Z.mjs +0 -173
  214. package/dist/chunk-ZZ57EH5Z.mjs.map +0 -1
  215. package/dist/client-BT1mFQas.d.mts +0 -447
  216. package/dist/client-Nn0q4eO4.d.ts +0 -447
  217. package/dist/client-cache-CIlyBlmx.d.ts +0 -6
  218. package/dist/client-cache-D-EZ7XVW.d.mts +0 -6
  219. package/dist/client-plugins-Cw4qUGsw.d.ts +0 -1855
  220. package/dist/client-plugins-DQQ1adXM.d.mts +0 -1855
  221. package/dist/client-plugins.cjs +0 -415
  222. package/dist/client-plugins.cjs.map +0 -1
  223. package/dist/client-plugins.d.mts +0 -22
  224. package/dist/client-plugins.d.ts +0 -22
  225. package/dist/client-plugins.mjs +0 -10
  226. package/dist/client-plugins.mjs.map +0 -1
  227. package/dist/client.cjs +0 -5402
  228. package/dist/client.cjs.map +0 -1
  229. package/dist/client.d.mts +0 -447
  230. package/dist/client.d.ts +0 -447
  231. package/dist/client.mjs +0 -110
  232. package/dist/client.mjs.map +0 -1
  233. package/dist/config.cjs +0 -38
  234. package/dist/config.cjs.map +0 -1
  235. package/dist/config.d.mts +0 -29
  236. package/dist/config.d.ts +0 -29
  237. package/dist/config.mjs +0 -10
  238. package/dist/config.mjs.map +0 -1
  239. package/dist/cron.cjs +0 -406
  240. package/dist/cron.cjs.map +0 -1
  241. package/dist/cron.d.mts +0 -78
  242. package/dist/cron.d.ts +0 -78
  243. package/dist/cron.mjs +0 -30
  244. package/dist/cron.mjs.map +0 -1
  245. package/dist/deferred.cjs +0 -438
  246. package/dist/deferred.cjs.map +0 -1
  247. package/dist/deferred.d.mts +0 -42
  248. package/dist/deferred.d.ts +0 -42
  249. package/dist/deferred.mjs +0 -28
  250. package/dist/deferred.mjs.map +0 -1
  251. package/dist/deployment.cjs +0 -199
  252. package/dist/deployment.cjs.map +0 -1
  253. package/dist/deployment.d.mts +0 -34
  254. package/dist/deployment.d.ts +0 -34
  255. package/dist/deployment.mjs +0 -38
  256. package/dist/deployment.mjs.map +0 -1
  257. package/dist/devtools-LVC3VB5P.mjs +0 -370
  258. package/dist/devtools-LVC3VB5P.mjs.map +0 -1
  259. package/dist/devtools-client-3XRTBND5.mjs +0 -216
  260. package/dist/devtools-client-3XRTBND5.mjs.map +0 -1
  261. package/dist/devtools-ui-NJKFORTG.mjs +0 -1349
  262. package/dist/devtools-ui-NJKFORTG.mjs.map +0 -1
  263. package/dist/docs.cjs +0 -5553
  264. package/dist/docs.cjs.map +0 -1
  265. package/dist/docs.d.mts +0 -69
  266. package/dist/docs.d.ts +0 -69
  267. package/dist/docs.mjs +0 -46
  268. package/dist/docs.mjs.map +0 -1
  269. package/dist/env-types.cjs +0 -223
  270. package/dist/env-types.cjs.map +0 -1
  271. package/dist/env-types.d.mts +0 -11
  272. package/dist/env-types.d.ts +0 -11
  273. package/dist/env-types.mjs +0 -9
  274. package/dist/env-types.mjs.map +0 -1
  275. package/dist/env.cjs +0 -215
  276. package/dist/env.cjs.map +0 -1
  277. package/dist/env.d.mts +0 -45
  278. package/dist/env.d.ts +0 -45
  279. package/dist/env.mjs +0 -22
  280. package/dist/env.mjs.map +0 -1
  281. package/dist/environment/vite.d.mts +0 -22
  282. package/dist/environment/vite.d.ts +0 -22
  283. package/dist/environment.cjs +0 -96
  284. package/dist/environment.cjs.map +0 -1
  285. package/dist/environment.d.mts +0 -18
  286. package/dist/environment.d.ts +0 -18
  287. package/dist/environment.mjs +0 -14
  288. package/dist/environment.mjs.map +0 -1
  289. package/dist/headers.cjs +0 -126
  290. package/dist/headers.cjs.map +0 -1
  291. package/dist/headers.d.mts +0 -22
  292. package/dist/headers.d.ts +0 -22
  293. package/dist/headers.mjs +0 -12
  294. package/dist/headers.mjs.map +0 -1
  295. package/dist/i18n/client.d.mts +0 -32
  296. package/dist/i18n/client.d.ts +0 -32
  297. package/dist/i18n/index.d.mts +0 -20
  298. package/dist/i18n/index.d.ts +0 -20
  299. package/dist/i18n/server.d.mts +0 -30
  300. package/dist/i18n/server.d.ts +0 -30
  301. package/dist/image/server.d.mts +0 -37
  302. package/dist/image/server.d.ts +0 -37
  303. package/dist/image/sharp.d.mts +0 -7
  304. package/dist/image/sharp.d.ts +0 -7
  305. package/dist/image-config-Duob7wER.d.mts +0 -50
  306. package/dist/image-config-Duob7wER.d.ts +0 -50
  307. package/dist/image.cjs +0 -209
  308. package/dist/image.cjs.map +0 -1
  309. package/dist/image.d.mts +0 -39
  310. package/dist/image.d.ts +0 -39
  311. package/dist/image.mjs +0 -165
  312. package/dist/image.mjs.map +0 -1
  313. package/dist/index.cjs +0 -41822
  314. package/dist/index.cjs.map +0 -1
  315. package/dist/index.d.mts +0 -452
  316. package/dist/index.d.ts +0 -452
  317. package/dist/index.mjs +0 -973
  318. package/dist/index.mjs.map +0 -1
  319. package/dist/integration-api-CHT2OKAf.d.mts +0 -93
  320. package/dist/integration-api-CHT2OKAf.d.ts +0 -93
  321. package/dist/integration-orm-GQLGU66X.mjs +0 -13
  322. package/dist/integration-orm-GQLGU66X.mjs.map +0 -1
  323. package/dist/integrations.cjs +0 -2820
  324. package/dist/integrations.cjs.map +0 -1
  325. package/dist/integrations.d.mts +0 -22
  326. package/dist/integrations.d.ts +0 -22
  327. package/dist/integrations.mjs +0 -51
  328. package/dist/integrations.mjs.map +0 -1
  329. package/dist/internal/build-runtime.d.mts +0 -39
  330. package/dist/internal/build-runtime.d.ts +0 -39
  331. package/dist/internal/client-runtime.d.mts +0 -2
  332. package/dist/internal/client-runtime.d.ts +0 -2
  333. package/dist/internal/config-runtime.d.mts +0 -39
  334. package/dist/internal/config-runtime.d.ts +0 -39
  335. package/dist/internal/production-node-env.d.mts +0 -12
  336. package/dist/internal/production-node-env.d.ts +0 -12
  337. package/dist/internal/production-runtime.d.mts +0 -39
  338. package/dist/internal/production-runtime.d.ts +0 -39
  339. package/dist/layers-VWVDTPUZ.mjs +0 -16
  340. package/dist/layers-VWVDTPUZ.mjs.map +0 -1
  341. package/dist/manager-THKFTOFE.mjs +0 -10
  342. package/dist/manager-THKFTOFE.mjs.map +0 -1
  343. package/dist/markdown.cjs +0 -299
  344. package/dist/markdown.cjs.map +0 -1
  345. package/dist/markdown.d.mts +0 -43
  346. package/dist/markdown.d.ts +0 -43
  347. package/dist/markdown.mjs +0 -14
  348. package/dist/markdown.mjs.map +0 -1
  349. package/dist/metadata-BAPg_Nmo.d.ts +0 -22
  350. package/dist/metadata-_6i9oFG3.d.mts +0 -22
  351. package/dist/middleware.cjs +0 -2148
  352. package/dist/middleware.cjs.map +0 -1
  353. package/dist/middleware.d.mts +0 -164
  354. package/dist/middleware.d.ts +0 -164
  355. package/dist/middleware.mjs +0 -49
  356. package/dist/middleware.mjs.map +0 -1
  357. package/dist/navigation-errors-Dvwpzaer.d.mts +0 -13
  358. package/dist/navigation-errors-Dvwpzaer.d.ts +0 -13
  359. package/dist/navigation.cjs +0 -1329
  360. package/dist/navigation.cjs.map +0 -1
  361. package/dist/navigation.d.mts +0 -14
  362. package/dist/navigation.d.ts +0 -14
  363. package/dist/navigation.mjs +0 -33
  364. package/dist/navigation.mjs.map +0 -1
  365. package/dist/nitro-QO5LV6QK.mjs +0 -689
  366. package/dist/nitro-QO5LV6QK.mjs.map +0 -1
  367. package/dist/observability.cjs +0 -186
  368. package/dist/observability.cjs.map +0 -1
  369. package/dist/observability.d.mts +0 -335
  370. package/dist/observability.d.ts +0 -335
  371. package/dist/observability.mjs +0 -16
  372. package/dist/observability.mjs.map +0 -1
  373. package/dist/params-BALtrRim.d.ts +0 -15
  374. package/dist/params-ry-lxqmy.d.mts +0 -15
  375. package/dist/plugin-BJDf43dc.d.mts +0 -165
  376. package/dist/plugin-BJDf43dc.d.ts +0 -165
  377. package/dist/plugin.cjs +0 -23225
  378. package/dist/plugin.d.mts +0 -22
  379. package/dist/plugin.d.ts +0 -22
  380. package/dist/production-runtime-BoJDc5mc.d.ts +0 -79
  381. package/dist/production-runtime-C_B79w2P.d.mts +0 -28
  382. package/dist/production-runtime-DDEM1D2q.d.ts +0 -28
  383. package/dist/production-runtime-DPfgMV9Y.d.mts +0 -79
  384. package/dist/query/client.d.mts +0 -61
  385. package/dist/query/client.d.ts +0 -61
  386. package/dist/query/index.d.mts +0 -90
  387. package/dist/query/index.d.ts +0 -90
  388. package/dist/query/parsers.d.mts +0 -25
  389. package/dist/query/parsers.d.ts +0 -25
  390. package/dist/query/server.d.mts +0 -55
  391. package/dist/query/server.d.ts +0 -55
  392. package/dist/request-BrFBuc8G.d.mts +0 -6
  393. package/dist/request-BslSZIRz.d.ts +0 -6
  394. package/dist/request.d.mts +0 -2
  395. package/dist/request.d.ts +0 -2
  396. package/dist/resolver-C6iecsDV.d.ts +0 -14
  397. package/dist/resolver-DlOPpjkB.d.mts +0 -14
  398. package/dist/route-runtime-DoOHzCAD.d.mts +0 -38
  399. package/dist/route-runtime-DoOHzCAD.d.ts +0 -38
  400. package/dist/router.d.mts +0 -36
  401. package/dist/router.d.ts +0 -36
  402. package/dist/routes.d.mts +0 -224
  403. package/dist/routes.d.ts +0 -224
  404. package/dist/runtime-9nQjVM7X.d.mts +0 -206
  405. package/dist/runtime-B6GvwDS1.d.ts +0 -27
  406. package/dist/runtime-DeAAZ6gO.d.mts +0 -27
  407. package/dist/runtime-DgeS2skB.d.ts +0 -206
  408. package/dist/server-action-security.d.mts +0 -43
  409. package/dist/server-action-security.d.ts +0 -43
  410. package/dist/server-fn-client.d.mts +0 -32
  411. package/dist/server-fn-client.d.ts +0 -32
  412. package/dist/server-fn.d.mts +0 -93
  413. package/dist/server-fn.d.ts +0 -93
  414. package/dist/server-plugins.d.mts +0 -55
  415. package/dist/server-plugins.d.ts +0 -55
  416. package/dist/server-query-client.d.mts +0 -50
  417. package/dist/server-query-client.d.ts +0 -50
  418. package/dist/server-query.d.mts +0 -36
  419. package/dist/server-query.d.ts +0 -36
  420. package/dist/server.d.mts +0 -48
  421. package/dist/server.d.ts +0 -48
  422. package/dist/storage.d.mts +0 -52
  423. package/dist/storage.d.ts +0 -52
  424. package/dist/testing.d.mts +0 -101
  425. package/dist/testing.d.ts +0 -101
  426. package/dist/transport-BmbGTXA5.d.mts +0 -49
  427. package/dist/transport-BmbGTXA5.d.ts +0 -49
  428. package/dist/types-BH1lhg5G.d.mts +0 -81
  429. package/dist/types-BH1lhg5G.d.ts +0 -81
  430. package/dist/types-C9N-nk5R.d.mts +0 -53
  431. package/dist/types-C9N-nk5R.d.ts +0 -53
  432. package/dist/types-D1A6-XvH.d.mts +0 -73
  433. package/dist/types-D1A6-XvH.d.ts +0 -73
  434. package/dist/utils-CHXlMDkg.d.mts +0 -23
  435. package/dist/utils-Drsyz1Vj.d.ts +0 -23
  436. package/dist/version.d.mts +0 -3
  437. package/dist/version.d.ts +0 -3
  438. package/dist/vite.d.mts +0 -22
  439. package/dist/vite.d.ts +0 -22
  440. package/dist/workflows.d.mts +0 -110
  441. package/dist/workflows.d.ts +0 -110
package/dist/client.d.ts DELETED
@@ -1,447 +0,0 @@
1
- import { p as ClientOptions, g as APIResult } from './client-Nn0q4eO4.js';
2
- export { r as APIClient, h as APIClientError, b as APIClientOptions, i as APIClientSystemError, c as APIClientWithoutIntegrationsOptions, X as InferIntegrationOperationBody, Y as InferIntegrationOperationQuery, Z as InferIntegrationOperationResponse, T as IntegrationAPI, L as IntegrationClient, M as IntegrationClientAliases, V as IntegrationClientData, y as IntegrationClientError, P as IntegrationClientOptions, Q as IntegrationClientRequestOptions, N as IntegrationClientRoot, U as IntegrationClients, W as IntegrationOperationResult, _ as IntegrationServerClient, $ as IntegrationServerClientAliases, a0 as IntegrationServerClientOptions, a1 as IntegrationServerClientRequestOptions, a2 as IntegrationServerClientRoot, a3 as IntegrationServerRequestLike, q as RouteAPIClient, s as ServerAPIClient, S as ServerAPIClientOptions, d as ServerAPIClientWithoutIntegrationsOptions, t as createAPIClient, z as createIntegrationApi, x as createIntegrationClient, B as createIntegrationClients, E as createIntegrationServerClient, D as createIntegrations, w as createServerAPIClient, G as getIntegrationAPIManifest, H as integrationClients, J as integrationsClient, K as integrationsServer } from './client-Nn0q4eO4.js';
3
- export { F as FarmAPIStream } from './transport-BmbGTXA5.js';
4
- import React__default, { ComponentType, FormHTMLAttributes, FormEvent, AnchorHTMLAttributes, RefObject } from 'react';
5
- export { ServerQueryFetchOptions, UseServerQueryOptions, UseServerQueryResult, fetchServerQuery, prefetchServerQuery, useServerQuery } from './server-query-client.js';
6
- export { F as FarmIntegrationAPI, e as FarmIntegrationAPIBodyFormat, f as FarmIntegrationAPIMethod, a as FarmIntegrationAPIOperation, g as FarmIntegrationAPIResponseFormat, b as api, d as defineIntegrationAPI, c as defineIntegrationAPIOperation, i as endpoint } from './integration-api-CHT2OKAf.js';
7
- import { FarmRouterPathParams, FarmRouterPathParam, FarmRouterBuildOptions, FarmRouterRouteInput } from './router.js';
8
- import { F as FarmClientPluginManager } from './plugin-BJDf43dc.js';
9
- export { a as FarmClientHydrationCompleteEvent, b as FarmClientHydrationEvent, d as FarmClientHydrationMode, e as FarmClientHydrationSession, f as FarmClientLocation, g as FarmClientNavigationAction, h as FarmClientNavigationErrorEvent, i as FarmClientNavigationEvent, j as FarmClientNavigationLoadedEvent, k as FarmClientNavigationResolvedEvent, l as FarmClientNavigationSession, m as FarmClientPerformanceEvent, n as FarmClientPlugin, o as FarmClientPluginCloseEvent, p as FarmClientPluginEnforce, q as FarmClientPluginErrorEvent, r as FarmClientPluginErrorPhase, s as FarmClientPluginManagerOptions, t as FarmClientPluginMetadata, u as FarmClientPluginRegistration, v as FarmClientPluginRouter, w as FarmClientPluginSetupEvent, x as FarmClientPluginStateEvent, c as createClientPluginManager } from './plugin-BJDf43dc.js';
10
- import { a as FarmI18nClientSnapshot, c as FarmI18nLocale } from './types-BH1lhg5G.js';
11
- export { F as FarmChunkRecoveryOptions, i as installChunkErrorRecovery, a as isChunkLoadError } from './production-runtime-DDEM1D2q.js';
12
- import './client-cache-CIlyBlmx.js';
13
- import './cache.js';
14
- import './server-query.js';
15
- import './server-fn.js';
16
-
17
- type MutationStatus = "idle" | "pending" | "success" | "error";
18
- type AnyMutationTarget = (...args: any[]) => Promise<any>;
19
- type InferMutationVariables<TTarget extends AnyMutationTarget> = Parameters<TTarget> extends [] ? undefined : Parameters<TTarget>[0];
20
- type InferMutationData<TTarget extends AnyMutationTarget> = TTarget extends {
21
- readonly __farmRouteData: infer TData;
22
- } ? TData : Awaited<ReturnType<TTarget>>;
23
- type InferMutationError<TTarget extends AnyMutationTarget> = TTarget extends (...args: any[]) => Promise<APIResult<any, infer TError>> ? TError : Error;
24
- type MutationOptimisticContext<TVariables, TData> = {
25
- variables: TVariables | undefined;
26
- current: TData | null;
27
- };
28
- type UseMutationOptions<TVariables, TData, TError = Error> = {
29
- initialData?: TData | null;
30
- resetOnMutate?: boolean;
31
- optimistic?: (context: MutationOptimisticContext<TVariables, TData>) => TData | null | undefined;
32
- rollbackOnError?: boolean;
33
- /**
34
- * Options forwarded to generated `api.route.method` clients.
35
- * Server functions ignore this field.
36
- */
37
- request?: ClientOptions<TData, TError>;
38
- onSuccess?: (data: TData, variables: TVariables | undefined) => void;
39
- onError?: (error: TError, variables: TVariables | undefined) => void;
40
- onSettled?: (data: TData | null, error: TError | null, variables: TVariables | undefined) => void;
41
- };
42
- type MutationInput<TTarget extends AnyMutationTarget> = InferMutationVariables<TTarget>;
43
- type MutationData<TTarget extends AnyMutationTarget> = InferMutationData<TTarget>;
44
- type MutationError<TTarget extends AnyMutationTarget> = InferMutationError<TTarget>;
45
- type MutationAsync<TTarget extends AnyMutationTarget, TData = MutationData<TTarget>> = [
46
- ] extends Parameters<TTarget> ? (variables?: MutationInput<TTarget>) => Promise<TData> : (variables: MutationInput<TTarget>) => Promise<TData>;
47
- type MutationTrigger<TTarget extends AnyMutationTarget> = [
48
- ] extends Parameters<TTarget> ? (variables?: MutationInput<TTarget>) => void : (variables: MutationInput<TTarget>) => void;
49
- type UseMutationReturn<TTarget extends AnyMutationTarget, TData = MutationData<TTarget>, TError = MutationError<TTarget>> = {
50
- pending: boolean;
51
- status: MutationStatus;
52
- data: TData | null;
53
- error: TError | null;
54
- variables: MutationInput<TTarget> | undefined;
55
- mutate: MutationTrigger<TTarget>;
56
- mutateAsync: MutationAsync<TTarget, TData>;
57
- reset: () => void;
58
- };
59
- /**
60
- * Track a generated API route mutation or a Farm server function with one
61
- * React lifecycle.
62
- *
63
- * API routes keep using their existing fetch transport and request options.
64
- * Server functions keep using their configured server-function transport.
65
- */
66
- declare function useMutation<TTarget extends AnyMutationTarget>(target: TTarget, options?: UseMutationOptions<MutationInput<TTarget>, MutationData<TTarget>, MutationError<TTarget>>): UseMutationReturn<TTarget>;
67
-
68
- type FetcherState = "idle" | "submitting";
69
- type FetcherFormDataContext = {
70
- form: HTMLFormElement | null;
71
- submitter: HTMLElement | null;
72
- };
73
- type UseFetcherOptions<TTarget extends AnyMutationTarget> = UseMutationOptions<InferMutationVariables<TTarget>, InferMutationData<TTarget>, InferMutationError<TTarget>> & {
74
- /**
75
- * Convert browser FormData into the target's typed variables.
76
- *
77
- * Generated API routes default to `{ body: Object.fromEntries(formData) }`
78
- * (or `{ query: ... }` for GET/HEAD). Server functions receive FormData
79
- * directly so their input schema remains authoritative.
80
- */
81
- mapFormData?: (formData: FormData, context: FetcherFormDataContext) => InferMutationVariables<TTarget>;
82
- };
83
- type FetcherFormProps = Omit<FormHTMLAttributes<HTMLFormElement>, "action" | "onSubmit"> & {
84
- /**
85
- * Override the native form fallback. By default server functions remain the
86
- * action and generated GET/POST API routes use their real URL.
87
- */
88
- action?: string | ((formData: FormData) => void | Promise<void>);
89
- onSubmit?: (event: FormEvent<HTMLFormElement>) => void;
90
- };
91
- type FetcherInput<TTarget extends AnyMutationTarget> = InferMutationVariables<TTarget> | FormData;
92
- type FetcherSubmitAsync<TTarget extends AnyMutationTarget> = [
93
- ] extends Parameters<TTarget> ? (input?: FetcherInput<TTarget>) => Promise<InferMutationData<TTarget>> : (input: FetcherInput<TTarget>) => Promise<InferMutationData<TTarget>>;
94
- type FetcherSubmit<TTarget extends AnyMutationTarget> = [
95
- ] extends Parameters<TTarget> ? (input?: FetcherInput<TTarget>) => void : (input: FetcherInput<TTarget>) => void;
96
- type UseFetcherReturn<TTarget extends AnyMutationTarget> = {
97
- state: FetcherState;
98
- status: MutationStatus;
99
- pending: boolean;
100
- data: InferMutationData<TTarget> | null;
101
- error: InferMutationError<TTarget> | null;
102
- variables: InferMutationVariables<TTarget> | undefined;
103
- formData: FormData | null;
104
- submit: FetcherSubmit<TTarget>;
105
- submitAsync: FetcherSubmitAsync<TTarget>;
106
- Form: ComponentType<FetcherFormProps>;
107
- reset: () => void;
108
- };
109
- /**
110
- * Run a typed server function or generated API operation without navigating.
111
- *
112
- * `fetcher.Form` progressively keeps a server function as the native form
113
- * action, while hydration intercepts submissions into this fetcher lifecycle.
114
- */
115
- declare function useFetcher<TTarget extends AnyMutationTarget>(target: TTarget, options?: UseFetcherOptions<TTarget>): UseFetcherReturn<TTarget>;
116
-
117
- type StoreState = Record<string, any>;
118
- type StoreValueUpdater<T> = T | ((previous: T) => T);
119
- type StorePatch<T extends StoreState> = Partial<T> | ((state: T) => Partial<T>);
120
- type StoreListener<T extends StoreState> = (state: T, previousState: T) => void;
121
- type StoreKeyListener<T extends StoreState, K extends keyof T> = (value: T[K], previousValue: T[K]) => void;
122
- type StoreKeysListener<T extends StoreState, K extends keyof T> = (value: Pick<T, K>, previousValue: Pick<T, K>) => void;
123
- type FieldAccessor<T extends StoreState, K extends keyof T> = {
124
- (): T[K];
125
- get(): T[K];
126
- set(value: StoreValueUpdater<T[K]>): T[K];
127
- subscribe(listener: StoreKeyListener<T, K>): () => void;
128
- };
129
- type StoreFields<T extends StoreState> = {
130
- [K in keyof T]: FieldAccessor<T, K>;
131
- };
132
- interface StoreApi<T extends StoreState> {
133
- use(): T;
134
- use<K extends keyof T>(key: K): T[K];
135
- use<K extends keyof T>(keys: readonly K[]): Pick<T, K>;
136
- get(): T;
137
- get<K extends keyof T>(key: K): T[K];
138
- set<K extends keyof T>(key: K, value: StoreValueUpdater<T[K]>): T[K];
139
- set(patch: StorePatch<T>): T;
140
- replace(nextState: T | ((state: T) => T)): T;
141
- reset(): T;
142
- subscribe(listener: StoreListener<T>): () => void;
143
- subscribe<K extends keyof T>(key: K, listener: StoreKeyListener<T, K>): () => void;
144
- subscribe<K extends keyof T>(keys: readonly K[], listener: StoreKeysListener<T, K>): () => void;
145
- }
146
- type Store<T extends StoreState, TMethods extends Record<string, any> = {}> = StoreApi<T> & StoreFields<T> & TMethods;
147
- declare function createStore<T extends StoreState, TMethods extends Record<string, any> = {}>(initialState: T, extend?: (store: Store<T>) => TMethods): Store<T, TMethods>;
148
-
149
- /**
150
- * Farm.js SPA Router
151
- *
152
- * Provides client-side navigation without full page reloads.
153
- * Features:
154
- * - Prefetch on viewport intersection
155
- * - Prefetch on hover
156
- * - Page caching
157
- * - History API integration
158
- * - Scroll restoration
159
- */
160
- interface PageData {
161
- props: Record<string, any>;
162
- modulePath: string;
163
- canonicalPath?: string;
164
- isClientComponent?: boolean;
165
- shouldHydrate?: boolean;
166
- metadata?: {
167
- title?: string;
168
- description?: string;
169
- };
170
- layoutModules?: string[];
171
- routeSlots?: RouteSlotPageData[];
172
- interception?: {
173
- from?: string;
174
- slots: string[];
175
- };
176
- i18n?: FarmI18nClientSnapshot;
177
- }
178
- interface RouteSlotPageData {
179
- name: string;
180
- ownerPattern: string;
181
- containerId: string;
182
- interception: boolean;
183
- fallback: boolean;
184
- modulePath: string;
185
- isClientComponent: boolean;
186
- shouldHydrate: boolean;
187
- props: Record<string, any>;
188
- }
189
- interface RouterOptions {
190
- prefetchTimeout?: number;
191
- cacheMaxAge?: number;
192
- scrollRestoration?: boolean;
193
- shouldUseDocumentNavigation?: (pathname: string) => boolean;
194
- deploymentId?: string;
195
- }
196
- interface FarmNavigationBlockerContext {
197
- from: string;
198
- to: string;
199
- action: "push" | "replace" | "pop";
200
- }
201
- type FarmNavigationBlocker = (context: FarmNavigationBlockerContext) => boolean | void | Promise<boolean | void>;
202
- type FarmViewTransitionMode = boolean | "auto";
203
- interface FarmNavigateOptions {
204
- replace?: boolean;
205
- scroll?: boolean;
206
- state?: unknown;
207
- viewTransition?: FarmViewTransitionMode;
208
- }
209
- interface FarmNavigationLocation {
210
- href: string;
211
- pathname: string;
212
- search: string;
213
- hash: string;
214
- }
215
- interface FarmNavigationState {
216
- state: "idle" | "loading";
217
- pending: boolean;
218
- from: string | null;
219
- to: FarmNavigationLocation | null;
220
- action: FarmNavigationBlockerContext["action"] | null;
221
- startedAt: number | null;
222
- }
223
- type FarmNavigationListener = (state: FarmNavigationState) => void;
224
- declare class SPARouter {
225
- private cache;
226
- private prefetchingUrls;
227
- private observers;
228
- private blockers;
229
- private navigationListeners;
230
- private navigationState;
231
- private scrollElements;
232
- private options;
233
- private onNavigate?;
234
- private clientPlugins?;
235
- constructor(options?: RouterOptions);
236
- /**
237
- * Set the navigation handler that updates React
238
- */
239
- setNavigationHandler(handler: (data: PageData) => Promise<void>): void;
240
- /**
241
- * Connect Farm's browser plugin lifecycle to SPA navigation.
242
- */
243
- setClientPluginManager(manager: FarmClientPluginManager): void;
244
- /**
245
- * Navigate to a new URL
246
- */
247
- navigate(href: string, options?: FarmNavigateOptions): Promise<void>;
248
- /**
249
- * Prefetch a URL
250
- */
251
- prefetch(href: string): Promise<void>;
252
- /**
253
- * Observe an element for viewport intersection (prefetch when visible)
254
- */
255
- observeForPrefetch(element: HTMLAnchorElement): void;
256
- /**
257
- * Stop observing an element
258
- */
259
- unobserveForPrefetch(element: HTMLAnchorElement): void;
260
- addBlocker(blocker: FarmNavigationBlocker): () => void;
261
- getNavigationState(): FarmNavigationState;
262
- subscribeNavigation(listener: FarmNavigationListener): () => void;
263
- registerScrollElement(key: string, element: HTMLElement): () => void;
264
- pushState(state: unknown, href?: string): void;
265
- replaceState(state: unknown, href?: string): void;
266
- private commitNavigation;
267
- private runViewTransition;
268
- /**
269
- * Fetch page data from cache or server
270
- */
271
- private fetchPageData;
272
- /**
273
- * Handle browser back/forward navigation
274
- */
275
- private handlePopState;
276
- /**
277
- * Check if URL is cached
278
- */
279
- private isCached;
280
- /**
281
- * Check if URL is external
282
- */
283
- private isExternalUrl;
284
- private shouldBlockNavigation;
285
- private startNavigation;
286
- private finishNavigation;
287
- private setNavigationState;
288
- private writePageState;
289
- /**
290
- * Save scroll position for a path
291
- */
292
- private saveScrollPosition;
293
- /**
294
- * Restore scroll position for a path
295
- */
296
- private restoreScrollPosition;
297
- private restoreScrollElement;
298
- /**
299
- * Clear the page cache
300
- */
301
- clearCache(): void;
302
- }
303
- /**
304
- * Get or create the global router instance
305
- */
306
- declare function getRouter(): SPARouter;
307
- /**
308
- * Navigate to a URL using the SPA router
309
- */
310
- declare function navigateTo(href: string, options?: FarmNavigateOptions): Promise<void>;
311
- /**
312
- * Prefetch a URL
313
- */
314
- declare function prefetch(href: string): Promise<void>;
315
- declare function pushState(state: unknown, href?: string): void;
316
- declare function replaceState(state: unknown, href?: string): void;
317
- declare function readPageState<TState = unknown>(): TState | null;
318
-
319
- /**
320
- * Prefetch strategy (TanStack Router–style):
321
- * - "intent": prefetch on hover and touchstart (with prefetchDelay)
322
- * - "viewport": prefetch when link enters viewport (IntersectionObserver)
323
- * - "render": prefetch as soon as the link is mounted
324
- * - "none" | false: no prefetch
325
- */
326
- type PrefetchBehavior = false | "intent" | "viewport" | "render" | "none";
327
- /** @internal Legacy prefetch mode for backward compatibility */
328
- type PrefetchLegacy = boolean | "hover" | "viewport" | "none";
329
- /**
330
- * Augment this interface via your generated farm-routes.d.ts so Link href is typed
331
- * without passing a generic. Defaults to string when not augmented.
332
- */
333
- interface LinkDefaultRoute {
334
- }
335
- type DefaultRoutePath = LinkDefaultRoute extends {
336
- _: infer TRoute extends string;
337
- } ? TRoute : string;
338
- type DefaultRoutePattern = LinkDefaultRoute extends {
339
- pattern: infer TRoute extends string;
340
- } ? TRoute : DefaultRoutePath;
341
- type DefaultRouteHref = DefaultRoutePath | DefaultRoutePattern;
342
- type RouteHref<TRoute extends string> = TRoute | `${TRoute}?${string}` | `${TRoute}#${string}` | `${TRoute}?${string}#${string}`;
343
- type RouteParamValue = Exclude<FarmRouterPathParam, null | undefined>;
344
- type RouteOptionalParamValue = FarmRouterPathParam;
345
- type RouteParams<TRoute extends string> = string extends TRoute ? FarmRouterPathParams : ExtractRouteParams<StripRouteSuffix<TRoute>>;
346
- /** External URLs; these are never type-checked as routes. */
347
- type ExternalHref = `http://${string}` | `https://${string}` | `//${string}` | `mailto:${string}`;
348
- type StripRouteSuffix<TRoute extends string> = TRoute extends `${infer Path}?${string}` ? StripRouteSuffix<Path> : TRoute extends `${infer Path}#${string}` ? StripRouteSuffix<Path> : TRoute;
349
- type ExtractRouteParams<TRoute extends string> = Simplify<ExtractOptionalCatchAllParams<TRoute> & ExtractCatchAllParams<TRoute> & ExtractDynamicParams<TRoute>>;
350
- type ExtractOptionalCatchAllParams<TRoute extends string> = TRoute extends `${string}[[...${infer Param}]]${infer Rest}` ? {
351
- [Key in Param]?: RouteOptionalParamValue;
352
- } & ExtractOptionalCatchAllParams<Rest> : {};
353
- type ExtractCatchAllParams<TRoute extends string> = TRoute extends `${string}[...${infer Param}]${infer Rest}` ? Param extends `[...${string}` ? ExtractCatchAllParams<Rest> : {
354
- [Key in Param]: RouteParamValue;
355
- } & ExtractCatchAllParams<Rest> : {};
356
- type ExtractDynamicParams<TRoute extends string> = TRoute extends `${string}[${infer Param}]${infer Rest}` ? Param extends `...${string}` | `[...${string}` ? ExtractDynamicParams<Rest> : {
357
- [Key in Param]: RouteParamValue;
358
- } & ExtractDynamicParams<Rest> : {};
359
- type Simplify<T> = {
360
- [Key in keyof T]: T[Key];
361
- } & {};
362
- type HasRouteParams<TRoute extends string> = keyof RouteParams<TRoute> extends never ? false : true;
363
- type RoutesWithRequiredParams<TRoute extends string> = TRoute extends string ? HasRouteParams<TRoute> extends true ? TRoute : never : never;
364
- type LinkRouteParamsProps<TRoute extends string> = string extends TRoute ? {
365
- params?: FarmRouterPathParams;
366
- } : HasRouteParams<TRoute> extends true ? {
367
- params: RouteParams<TRoute>;
368
- } : {
369
- params?: FarmRouterPathParams;
370
- };
371
- type LinkRouteTargetProps<TRoute extends string> = [RoutesWithRequiredParams<TRoute>] extends [
372
- never
373
- ] ? {
374
- /** Internal route path with all params already resolved. */
375
- href: RouteHref<TRoute>;
376
- params?: FarmRouterPathParams;
377
- } : TRoute extends string ? {
378
- /** Internal route path or route pattern. */
379
- href: RouteHref<TRoute>;
380
- } & LinkRouteParamsProps<TRoute> : never;
381
- type LinkExternalTargetProps = {
382
- /** External URL; these are never type-checked as app routes. */
383
- href: ExternalHref;
384
- params?: never;
385
- };
386
- type LinkTargetProps<TRoute extends string> = LinkExternalTargetProps | LinkRouteTargetProps<TRoute>;
387
- type LinkProps<TRoute extends string = DefaultRouteHref> = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, "href"> & LinkTargetProps<TRoute> & {
388
- /**
389
- * When to prefetch. TanStack-style: "intent" (hover+touch), "viewport", "render", or "none".
390
- * Legacy: true (intent+viewport), "hover" (intent), "viewport", false/"none".
391
- */
392
- prefetch?: PrefetchBehavior | PrefetchLegacy;
393
- /** Search params appended after route params are resolved. */
394
- query?: FarmRouterBuildOptions["query"];
395
- /** Hash appended after route params and search params are resolved. */
396
- hash?: string;
397
- /** Add a trailing slash to the generated internal href. */
398
- trailingSlash?: boolean;
399
- /** Delay in ms before intent-based prefetch (hover/touch). Default 50. */
400
- prefetchDelay?: number;
401
- /** Replace current history entry instead of pushing */
402
- replace?: boolean;
403
- /** Scroll to top after navigation (default: true) */
404
- scroll?: boolean;
405
- /** Wrap this SPA navigation in a browser View Transition when supported. */
406
- viewTransition?: FarmViewTransitionMode;
407
- /** Preserve the active locale by default, or navigate using this locale. */
408
- locale?: FarmI18nLocale;
409
- };
410
- type LinkComponentType = <TRoute extends string = DefaultRouteHref>(props: LinkProps<TRoute> & {
411
- ref?: React__default.ForwardedRef<HTMLAnchorElement>;
412
- }) => React__default.ReactElement;
413
- declare const Link: LinkComponentType;
414
-
415
- interface UseRouterOptions {
416
- basePath?: string;
417
- routes?: FarmRouterRouteInput[];
418
- }
419
- interface UseBlockerOptions {
420
- when: boolean | ((context: FarmNavigationBlockerContext) => boolean);
421
- message?: string;
422
- shouldBlock?: (context: FarmNavigationBlockerContext) => boolean | Promise<boolean>;
423
- }
424
- interface UseBlockerReturn {
425
- active: boolean;
426
- }
427
- /**
428
- * Hook for accessing router state and navigation
429
- */
430
- declare function useRouter(options?: UseRouterOptions): {
431
- push: (href: string) => void;
432
- replace: (href: string) => void;
433
- pushState: <TState>(pageState: TState, href?: string) => void;
434
- replaceState: <TState>(pageState: TState, href?: string) => void;
435
- back: () => void;
436
- forward: () => void;
437
- pathname: string;
438
- searchParams: URLSearchParams;
439
- params: Record<string, string>;
440
- pageState: unknown;
441
- };
442
- declare function usePageState<TState = unknown>(): TState | null;
443
- declare function useNavigation(): FarmNavigationState;
444
- declare function useBlocker(options: UseBlockerOptions): UseBlockerReturn;
445
- declare function useScrollRestoration<TElement extends HTMLElement = HTMLElement>(key: string): RefObject<TElement>;
446
-
447
- export { type AnyMutationTarget, type DefaultRouteHref, type DefaultRoutePath, type DefaultRoutePattern, type ExternalHref, FarmClientPluginManager, type FarmNavigateOptions, type FarmNavigationBlocker, type FarmNavigationBlockerContext, type FarmNavigationListener, type FarmNavigationLocation, type FarmNavigationState, type FarmViewTransitionMode, type FetcherFormDataContext, type FetcherFormProps, type FetcherState, type FetcherSubmit, type FetcherSubmitAsync, type InferMutationData, type InferMutationError, type InferMutationVariables, Link, type LinkDefaultRoute, type LinkProps, type MutationAsync, type MutationOptimisticContext, type MutationStatus, type MutationTrigger, type PrefetchBehavior, type RouteHref, type RouteOptionalParamValue, type RouteParamValue, type RouteParams, SPARouter, type Store, type StoreApi, type StoreFields, type StoreKeyListener, type StoreKeysListener, type StoreListener, type StorePatch, type StoreState, type StoreValueUpdater, type UseBlockerOptions, type UseBlockerReturn, type UseFetcherOptions, type UseFetcherReturn, type UseMutationOptions, type UseMutationReturn, type UseRouterOptions, createStore, getRouter, navigateTo, prefetch, pushState, readPageState, replaceState, useBlocker, useFetcher, useMutation, useNavigation, usePageState, useRouter, useScrollRestoration };
package/dist/client.mjs DELETED
@@ -1,110 +0,0 @@
1
- import {
2
- Link,
3
- createStore,
4
- useFetcher,
5
- useMutation
6
- } from "./chunk-2CUKEMVR.mjs";
7
- import {
8
- installChunkErrorRecovery,
9
- isChunkLoadError
10
- } from "./chunk-ZZ57EH5Z.mjs";
11
- import {
12
- fetchServerQuery,
13
- prefetchServerQuery,
14
- useServerQuery
15
- } from "./chunk-SADGIRS2.mjs";
16
- import {
17
- APIClientError,
18
- IntegrationClientError,
19
- createAPIClient,
20
- createIntegrationApi,
21
- createIntegrationClient,
22
- createIntegrationClients,
23
- createIntegrationServerClient,
24
- createIntegrations,
25
- createServerAPIClient,
26
- getIntegrationAPIManifest,
27
- integrationClients,
28
- integrationsClient,
29
- integrationsServer
30
- } from "./chunk-W2CRQFF6.mjs";
31
- import "./chunk-TQAEEJB4.mjs";
32
- import "./chunk-SCFX4UTD.mjs";
33
- import {
34
- SPARouter,
35
- getRouter,
36
- navigateTo,
37
- prefetch,
38
- pushState,
39
- readPageState,
40
- replaceState,
41
- useBlocker,
42
- useNavigation,
43
- usePageState,
44
- useRouter,
45
- useScrollRestoration
46
- } from "./chunk-VVKWFZAH.mjs";
47
- import "./chunk-ITN462YM.mjs";
48
- import "./chunk-B232I2GP.mjs";
49
- import {
50
- api,
51
- defineIntegrationAPI,
52
- defineIntegrationAPIOperation,
53
- endpoint
54
- } from "./chunk-JK25YEN6.mjs";
55
- import "./chunk-GS6K5OCM.mjs";
56
- import "./chunk-44ZCFSKE.mjs";
57
- import "./chunk-ALCLXXTY.mjs";
58
- import "./chunk-V3XURYJO.mjs";
59
- import "./chunk-WZ5QFROO.mjs";
60
- import "./chunk-RBRLLZL5.mjs";
61
- import "./chunk-7ZY5AIJO.mjs";
62
- import "./chunk-ZBE6MLHL.mjs";
63
- import {
64
- FarmClientPluginManager,
65
- createClientPluginManager
66
- } from "./chunk-NNLCAVB6.mjs";
67
- import "./chunk-CGILA3WO.mjs";
68
- export {
69
- APIClientError,
70
- FarmClientPluginManager,
71
- IntegrationClientError,
72
- Link,
73
- SPARouter,
74
- api,
75
- createAPIClient,
76
- createClientPluginManager,
77
- createIntegrationApi,
78
- createIntegrationClient,
79
- createIntegrationClients,
80
- createIntegrationServerClient,
81
- createIntegrations,
82
- createServerAPIClient,
83
- createStore,
84
- defineIntegrationAPI,
85
- defineIntegrationAPIOperation,
86
- endpoint,
87
- fetchServerQuery,
88
- getIntegrationAPIManifest,
89
- getRouter,
90
- installChunkErrorRecovery,
91
- integrationClients,
92
- integrationsClient,
93
- integrationsServer,
94
- isChunkLoadError,
95
- navigateTo,
96
- prefetch,
97
- prefetchServerQuery,
98
- pushState,
99
- readPageState,
100
- replaceState,
101
- useBlocker,
102
- useFetcher,
103
- useMutation,
104
- useNavigation,
105
- usePageState,
106
- useRouter,
107
- useScrollRestoration,
108
- useServerQuery
109
- };
110
- //# sourceMappingURL=client.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/dist/config.cjs DELETED
@@ -1,38 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/config-entry.ts
22
- var config_entry_exports = {};
23
- __export(config_entry_exports, {
24
- defineConfig: () => defineConfig,
25
- defineFarmConfig: () => defineFarmConfig
26
- });
27
- module.exports = __toCommonJS(config_entry_exports);
28
- function defineConfig(config) {
29
- return config;
30
- }
31
- __name(defineConfig, "defineConfig");
32
- var defineFarmConfig = defineConfig;
33
- // Annotate the CommonJS export names for ESM import in node:
34
- 0 && (module.exports = {
35
- defineConfig,
36
- defineFarmConfig
37
- });
38
- //# sourceMappingURL=config.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/config-entry.ts"],"sourcesContent":["import type { FarmUserConfig } from \"./config\";\n\n/** Define a Farm application config while preserving literal types. */\nexport function defineConfig<const TConfig extends FarmUserConfig>(config: TConfig): TConfig {\n return config;\n}\n\n/** @deprecated Use {@link defineConfig}. */\nexport const defineFarmConfig = defineConfig;\n\nexport type { FarmUserConfig };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGO,SAAS,aAAmD,QAA0B;AAC3F,SAAO;AACT;AAFgB;AAKT,IAAM,mBAAmB;","names":[]}
package/dist/config.d.mts DELETED
@@ -1,29 +0,0 @@
1
- import { T as FarmUserConfig } from './client-plugins-DQQ1adXM.mjs';
2
- import './plugin-BJDf43dc.mjs';
3
- import 'react';
4
- import 'http';
5
- import './types-D1A6-XvH.mjs';
6
- import 'db0';
7
- import 'unstorage';
8
- import './integration-api-CHT2OKAf.mjs';
9
- import '@farming-labs/orm';
10
- import './types-C9N-nk5R.mjs';
11
- import '@farming-labs/docs';
12
- import './markdown.mjs';
13
- import './observability.mjs';
14
- import 'vite';
15
- import './workflows.mjs';
16
- import './cron.mjs';
17
- import './env.mjs';
18
- import './server-action-security.mjs';
19
- import './image-config-Duob7wER.mjs';
20
- import './types-BH1lhg5G.mjs';
21
- import './cache.mjs';
22
- import './route-runtime-DoOHzCAD.mjs';
23
-
24
- /** Define a Farm application config while preserving literal types. */
25
- declare function defineConfig<const TConfig extends FarmUserConfig>(config: TConfig): TConfig;
26
- /** @deprecated Use {@link defineConfig}. */
27
- declare const defineFarmConfig: typeof defineConfig;
28
-
29
- export { FarmUserConfig, defineConfig, defineFarmConfig };
package/dist/config.d.ts DELETED
@@ -1,29 +0,0 @@
1
- import { T as FarmUserConfig } from './client-plugins-Cw4qUGsw.js';
2
- import './plugin-BJDf43dc.js';
3
- import 'react';
4
- import 'http';
5
- import './types-D1A6-XvH.js';
6
- import 'db0';
7
- import 'unstorage';
8
- import './integration-api-CHT2OKAf.js';
9
- import '@farming-labs/orm';
10
- import './types-C9N-nk5R.js';
11
- import '@farming-labs/docs';
12
- import './markdown.js';
13
- import './observability.js';
14
- import 'vite';
15
- import './workflows.js';
16
- import './cron.js';
17
- import './env.js';
18
- import './server-action-security.js';
19
- import './image-config-Duob7wER.js';
20
- import './types-BH1lhg5G.js';
21
- import './cache.js';
22
- import './route-runtime-DoOHzCAD.js';
23
-
24
- /** Define a Farm application config while preserving literal types. */
25
- declare function defineConfig<const TConfig extends FarmUserConfig>(config: TConfig): TConfig;
26
- /** @deprecated Use {@link defineConfig}. */
27
- declare const defineFarmConfig: typeof defineConfig;
28
-
29
- export { FarmUserConfig, defineConfig, defineFarmConfig };
package/dist/config.mjs DELETED
@@ -1,10 +0,0 @@
1
- import {
2
- defineConfig,
3
- defineFarmConfig
4
- } from "./chunk-UVCIEUJC.mjs";
5
- import "./chunk-CGILA3WO.mjs";
6
- export {
7
- defineConfig,
8
- defineFarmConfig
9
- };
10
- //# sourceMappingURL=config.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}